Class GenerateRepoOption
java.lang.Object
build.cursed.genapi.forgejo.model.GenerateRepoOption
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class GenerateRepoOption
extends Object
GenerateRepoOption options when creating repository using a template
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultBranch(String defaultBranch) description(String description) booleanstatic GenerateRepoOptionCreate an instance of GenerateRepoOption given an JSON stringinclude avatar of the template repoDefault branch of the new repositoryDescription of the repository to createinclude git content of default branch in template repoinclude git hooks in template repoinclude labels in template repogetName()Name of the repository to creategetOwner()The organization or person who will own the new repositoryWhether the repository is privateinclude protected branches in template repoinclude topics in template repoinclude webhooks in template repogitContent(Boolean gitContent) inthashCode()protectedBranch(Boolean protectedBranch) voidvoidsetDefaultBranch(String defaultBranch) voidsetDescription(String description) voidsetGitContent(Boolean gitContent) voidsetGitHooks(Boolean gitHooks) voidvoidvoidvoidsetPrivate(Boolean _private) voidsetProtectedBranch(Boolean protectedBranch) voidvoidsetWebhooks(Boolean webhooks) toJson()Convert an instance of GenerateRepoOption to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AVATAR
- See Also:
-
SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_GIT_CONTENT
- See Also:
-
SERIALIZED_NAME_GIT_HOOKS
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OWNER
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
SERIALIZED_NAME_PROTECTED_BRANCH
- See Also:
-
SERIALIZED_NAME_TOPICS
- See Also:
-
SERIALIZED_NAME_WEBHOOKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GenerateRepoOption
public GenerateRepoOption()
-
-
Method Details
-
avatar
-
getAvatar
include avatar of the template repo- Returns:
- avatar
-
setAvatar
-
defaultBranch
-
getDefaultBranch
Default branch of the new repository- Returns:
- defaultBranch
-
setDefaultBranch
-
description
-
getDescription
Description of the repository to create- Returns:
- description
-
setDescription
-
gitContent
-
getGitContent
include git content of default branch in template repo- Returns:
- gitContent
-
setGitContent
-
gitHooks
-
getGitHooks
include git hooks in template repo- Returns:
- gitHooks
-
setGitHooks
-
labels
-
getLabels
include labels in template repo- Returns:
- labels
-
setLabels
-
name
-
getName
Name of the repository to create- Returns:
- name
-
setName
-
owner
-
getOwner
The organization or person who will own the new repository- Returns:
- owner
-
setOwner
-
_private
-
getPrivate
Whether the repository is private- Returns:
- _private
-
setPrivate
-
protectedBranch
-
getProtectedBranch
include protected branches in template repo- Returns:
- protectedBranch
-
setProtectedBranch
-
topics
-
getTopics
include topics in template repo- Returns:
- topics
-
setTopics
-
webhooks
-
getWebhooks
include webhooks in template repo- Returns:
- webhooks
-
setWebhooks
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to GenerateRepoOption
-
fromJson
Create an instance of GenerateRepoOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GenerateRepoOption
- Throws:
IOException- if the JSON string is invalid with respect to GenerateRepoOption
-
toJson
Convert an instance of GenerateRepoOption to an JSON string- Returns:
- JSON string
-