Package io.gitea.model
Class GenerateRepoOption
java.lang.Object
io.gitea.model.GenerateRepoOption
public class GenerateRepoOption
extends java.lang.Object
GenerateRepoOption options when creating repository using a template
-
Constructor Summary
Constructors Constructor Description GenerateRepoOption() -
Method Summary
Modifier and Type Method Description GenerateRepoOption_private(java.lang.Boolean _private)GenerateRepoOptionavatar(java.lang.Boolean avatar)GenerateRepoOptiondescription(java.lang.String description)booleanequals(java.lang.Object o)java.lang.StringgetDescription()Description of the repository to createjava.lang.StringgetName()Name of the repository to createjava.lang.StringgetOwner()The organization or person who will own the new repositoryGenerateRepoOptiongitContent(java.lang.Boolean gitContent)GenerateRepoOptiongitHooks(java.lang.Boolean gitHooks)inthashCode()java.lang.BooleanisAvatar()include avatar of the template repojava.lang.BooleanisGitContent()include git content of default branch in template repojava.lang.BooleanisGitHooks()include git hooks in template repojava.lang.BooleanisLabels()include labels in template repojava.lang.BooleanisPrivate()Whether the repository is privatejava.lang.BooleanisTopics()include topics in template repojava.lang.BooleanisWebhooks()include webhooks in template repoGenerateRepoOptionlabels(java.lang.Boolean labels)GenerateRepoOptionname(java.lang.String name)GenerateRepoOptionowner(java.lang.String owner)voidsetAvatar(java.lang.Boolean avatar)voidsetDescription(java.lang.String description)voidsetGitContent(java.lang.Boolean gitContent)voidsetGitHooks(java.lang.Boolean gitHooks)voidsetLabels(java.lang.Boolean labels)voidsetName(java.lang.String name)voidsetOwner(java.lang.String owner)voidsetPrivate(java.lang.Boolean _private)voidsetTopics(java.lang.Boolean topics)voidsetWebhooks(java.lang.Boolean webhooks)GenerateRepoOptiontopics(java.lang.Boolean topics)java.lang.StringtoString()GenerateRepoOptionwebhooks(java.lang.Boolean webhooks)
-
Constructor Details
-
GenerateRepoOption
public GenerateRepoOption()
-
-
Method Details
-
avatar
-
isAvatar
public java.lang.Boolean isAvatar()include avatar of the template repo- Returns:
- avatar
-
setAvatar
public void setAvatar(java.lang.Boolean avatar) -
description
-
getDescription
public java.lang.String getDescription()Description of the repository to create- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description) -
gitContent
-
isGitContent
public java.lang.Boolean isGitContent()include git content of default branch in template repo- Returns:
- gitContent
-
setGitContent
public void setGitContent(java.lang.Boolean gitContent) -
gitHooks
-
isGitHooks
public java.lang.Boolean isGitHooks()include git hooks in template repo- Returns:
- gitHooks
-
setGitHooks
public void setGitHooks(java.lang.Boolean gitHooks) -
labels
-
isLabels
public java.lang.Boolean isLabels()include labels in template repo- Returns:
- labels
-
setLabels
public void setLabels(java.lang.Boolean labels) -
name
-
getName
public java.lang.String getName()Name of the repository to create- Returns:
- name
-
setName
public void setName(java.lang.String name) -
owner
-
getOwner
public java.lang.String getOwner()The organization or person who will own the new repository- Returns:
- owner
-
setOwner
public void setOwner(java.lang.String owner) -
_private
-
isPrivate
public java.lang.Boolean isPrivate()Whether the repository is private- Returns:
- _private
-
setPrivate
public void setPrivate(java.lang.Boolean _private) -
topics
-
isTopics
public java.lang.Boolean isTopics()include topics in template repo- Returns:
- topics
-
setTopics
public void setTopics(java.lang.Boolean topics) -
webhooks
-
isWebhooks
public java.lang.Boolean isWebhooks()include webhooks in template repo- Returns:
- webhooks
-
setWebhooks
public void setWebhooks(java.lang.Boolean webhooks) -
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
-