Class CreateRepoOption
java.lang.Object
build.cursed.genapi.forgejo.model.CreateRepoOption
@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 CreateRepoOption
extends Object
CreateRepoOption options when creating repository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumObjectFormatName of the underlying git repositorystatic enumTrustModel of the repository -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultBranch(String defaultBranch) description(String description) booleanstatic CreateRepoOptionCreate an instance of CreateRepoOption given an JSON stringWhether the repository should be auto-initialized?DefaultBranch of the repository (used when initializes and in template)Description of the repository to createGitignores to useLabel-Set to useLicense to usegetName()Name of the repository to createObjectFormatName of the underlying git repositoryWhether the repository is privateReadme of the repository to createWhether the repository is templateTrustModel of the repositorygitignores(String gitignores) inthashCode()issueLabels(String issueLabels) objectFormatName(CreateRepoOption.ObjectFormatNameEnum objectFormatName) voidsetAutoInit(Boolean autoInit) voidsetDefaultBranch(String defaultBranch) voidsetDescription(String description) voidsetGitignores(String gitignores) voidsetIssueLabels(String issueLabels) voidsetLicense(String license) voidvoidsetObjectFormatName(CreateRepoOption.ObjectFormatNameEnum objectFormatName) voidsetPrivate(Boolean _private) voidvoidsetTemplate(Boolean template) voidsetTrustModel(CreateRepoOption.TrustModelEnum trustModel) toJson()Convert an instance of CreateRepoOption to an JSON stringtoString()trustModel(CreateRepoOption.TrustModelEnum trustModel) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUTO_INIT
- See Also:
-
SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_GITIGNORES
- See Also:
-
SERIALIZED_NAME_ISSUE_LABELS
- See Also:
-
SERIALIZED_NAME_LICENSE
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OBJECT_FORMAT_NAME
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
SERIALIZED_NAME_README
- See Also:
-
SERIALIZED_NAME_TEMPLATE
- See Also:
-
SERIALIZED_NAME_TRUST_MODEL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateRepoOption
public CreateRepoOption()
-
-
Method Details
-
autoInit
-
getAutoInit
Whether the repository should be auto-initialized?- Returns:
- autoInit
-
setAutoInit
-
defaultBranch
-
getDefaultBranch
DefaultBranch of the repository (used when initializes and in template)- Returns:
- defaultBranch
-
setDefaultBranch
-
description
-
getDescription
Description of the repository to create- Returns:
- description
-
setDescription
-
gitignores
-
getGitignores
Gitignores to use- Returns:
- gitignores
-
setGitignores
-
issueLabels
-
getIssueLabels
Label-Set to use- Returns:
- issueLabels
-
setIssueLabels
-
license
-
getLicense
License to use- Returns:
- license
-
setLicense
-
name
-
getName
Name of the repository to create- Returns:
- name
-
setName
-
objectFormatName
public CreateRepoOption objectFormatName(@Nullable CreateRepoOption.ObjectFormatNameEnum objectFormatName) -
getObjectFormatName
ObjectFormatName of the underlying git repository- Returns:
- objectFormatName
-
setObjectFormatName
-
_private
-
getPrivate
Whether the repository is private- Returns:
- _private
-
setPrivate
-
readme
-
getReadme
Readme of the repository to create- Returns:
- readme
-
setReadme
-
template
-
getTemplate
Whether the repository is template- Returns:
- template
-
setTemplate
-
trustModel
-
getTrustModel
TrustModel of the repository- Returns:
- trustModel
-
setTrustModel
-
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 CreateRepoOption
-
fromJson
Create an instance of CreateRepoOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateRepoOption
- Throws:
IOException- if the JSON string is invalid with respect to CreateRepoOption
-
toJson
Convert an instance of CreateRepoOption to an JSON string- Returns:
- JSON string
-