Package io.gitea.model
Class CreateRepoOption
java.lang.Object
io.gitea.model.CreateRepoOption
public class CreateRepoOption
extends java.lang.Object
CreateRepoOption options when creating repository
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateRepoOption.TrustModelEnumTrustModel of the repository -
Constructor Summary
Constructors Constructor Description CreateRepoOption() -
Method Summary
Modifier and Type Method Description CreateRepoOption_private(java.lang.Boolean _private)CreateRepoOptionautoInit(java.lang.Boolean autoInit)CreateRepoOptiondefaultBranch(java.lang.String defaultBranch)CreateRepoOptiondescription(java.lang.String description)booleanequals(java.lang.Object o)java.lang.StringgetDefaultBranch()DefaultBranch of the repository (used when initializes and in template)java.lang.StringgetDescription()Description of the repository to createjava.lang.StringgetGitignores()Gitignores to usejava.lang.StringgetIssueLabels()Label-Set to usejava.lang.StringgetLicense()License to usejava.lang.StringgetName()Name of the repository to createjava.lang.StringgetReadme()Readme of the repository to createCreateRepoOption.TrustModelEnumgetTrustModel()TrustModel of the repositoryCreateRepoOptiongitignores(java.lang.String gitignores)inthashCode()java.lang.BooleanisAutoInit()Whether the repository should be auto-intialized?java.lang.BooleanisPrivate()Whether the repository is privateCreateRepoOptionissueLabels(java.lang.String issueLabels)java.lang.BooleanisTemplate()Whether the repository is templateCreateRepoOptionlicense(java.lang.String license)CreateRepoOptionname(java.lang.String name)CreateRepoOptionreadme(java.lang.String readme)voidsetAutoInit(java.lang.Boolean autoInit)voidsetDefaultBranch(java.lang.String defaultBranch)voidsetDescription(java.lang.String description)voidsetGitignores(java.lang.String gitignores)voidsetIssueLabels(java.lang.String issueLabels)voidsetLicense(java.lang.String license)voidsetName(java.lang.String name)voidsetPrivate(java.lang.Boolean _private)voidsetReadme(java.lang.String readme)voidsetTemplate(java.lang.Boolean template)voidsetTrustModel(CreateRepoOption.TrustModelEnum trustModel)CreateRepoOptiontemplate(java.lang.Boolean template)java.lang.StringtoString()CreateRepoOptiontrustModel(CreateRepoOption.TrustModelEnum trustModel)
-
Constructor Details
-
CreateRepoOption
public CreateRepoOption()
-
-
Method Details
-
autoInit
-
isAutoInit
public java.lang.Boolean isAutoInit()Whether the repository should be auto-intialized?- Returns:
- autoInit
-
setAutoInit
public void setAutoInit(java.lang.Boolean autoInit) -
defaultBranch
-
getDefaultBranch
public java.lang.String getDefaultBranch()DefaultBranch of the repository (used when initializes and in template)- Returns:
- defaultBranch
-
setDefaultBranch
public void setDefaultBranch(java.lang.String defaultBranch) -
description
-
getDescription
public java.lang.String getDescription()Description of the repository to create- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description) -
gitignores
-
getGitignores
public java.lang.String getGitignores()Gitignores to use- Returns:
- gitignores
-
setGitignores
public void setGitignores(java.lang.String gitignores) -
issueLabels
-
getIssueLabels
public java.lang.String getIssueLabels()Label-Set to use- Returns:
- issueLabels
-
setIssueLabels
public void setIssueLabels(java.lang.String issueLabels) -
license
-
getLicense
public java.lang.String getLicense()License to use- Returns:
- license
-
setLicense
public void setLicense(java.lang.String license) -
name
-
getName
public java.lang.String getName()Name of the repository to create- Returns:
- name
-
setName
public void setName(java.lang.String name) -
_private
-
isPrivate
public java.lang.Boolean isPrivate()Whether the repository is private- Returns:
- _private
-
setPrivate
public void setPrivate(java.lang.Boolean _private) -
readme
-
getReadme
public java.lang.String getReadme()Readme of the repository to create- Returns:
- readme
-
setReadme
public void setReadme(java.lang.String readme) -
template
-
isTemplate
public java.lang.Boolean isTemplate()Whether the repository is template- Returns:
- template
-
setTemplate
public void setTemplate(java.lang.Boolean template) -
trustModel
-
getTrustModel
TrustModel of the repository- Returns:
- trustModel
-
setTrustModel
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-