Class EditRepoOption
java.lang.Object
build.cursed.genapi.forgejo.model.EditRepoOption
@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 EditRepoOption
extends Object
EditRepoOption options when editing a repository's properties
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowFastForwardOnlyMerge(Boolean allowFastForwardOnlyMerge) allowManualMerge(Boolean allowManualMerge) allowMergeCommits(Boolean allowMergeCommits) allowRebase(Boolean allowRebase) allowRebaseExplicit(Boolean allowRebaseExplicit) allowRebaseUpdate(Boolean allowRebaseUpdate) allowSquashMerge(Boolean allowSquashMerge) autodetectManualMerge(Boolean autodetectManualMerge) defaultAllowMaintainerEdit(Boolean defaultAllowMaintainerEdit) defaultBranch(String defaultBranch) defaultDeleteBranchAfterMerge(Boolean defaultDeleteBranchAfterMerge) defaultMergeStyle(String defaultMergeStyle) defaultUpdateStyle(String defaultUpdateStyle) description(String description) enablePrune(Boolean enablePrune) booleanexternalTracker(ExternalTracker externalTracker) externalWiki(ExternalWiki externalWiki) static EditRepoOptionCreate an instance of EditRepoOption given an JSON stringeither `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging.either `true` to allow mark pr as merged manually, or `false` to prevent it.either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.either `true` to allow updating pull request branch by rebase, or `false` to prevent it.either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.set to `true` to archive this repository.either `true` to enable AutodetectManualMerge, or `false` to prevent it.set to `true` to allow edits from maintainers by defaultsets the default branch for this repository.set to `true` to delete pr branch after merge by defaultset to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", \"squash\", \"fast-forward-only\", \"manually-merged\", or \"rebase-update-only\".set to a update style to be used by this repository: \"rebase\" or \"merge\"a short description of the repository.enable prune - remove obsolete remote-tracking references when mirroringGet externalTrackerGet externalWikiset the globally editable state of the wikieither `true` to enable actions unit, or `false` to disable them.either `true` to enable issues for this repository or `false` to disable them.either `true` to enable packages unit, or `false` to disable them.either `true` to enable project unit, or `false` to disable them.either `true` to allow pull requests, or `false` to prevent pull request.either `true` to enable releases unit, or `false` to disable them.either `true` to enable the wiki for this repository or `false` to disable it.either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.Get internalTrackerset to a string like `8h30m0s` to set the mirror interval timegetName()name of the repositoryeither `true` to make the repository private or `false` to make it public.either `true` to make this repository a template or `false` to make it a normal repositorya URL with more information about the repository.sets the branch used for this repository's wiki.globallyEditableWiki(Boolean globallyEditableWiki) hasActions(Boolean hasActions) inthashCode()hasPackages(Boolean hasPackages) hasProjects(Boolean hasProjects) hasPullRequests(Boolean hasPullRequests) hasReleases(Boolean hasReleases) ignoreWhitespaceConflicts(Boolean ignoreWhitespaceConflicts) internalTracker(InternalTracker internalTracker) mirrorInterval(String mirrorInterval) voidsetAllowFastForwardOnlyMerge(Boolean allowFastForwardOnlyMerge) voidsetAllowManualMerge(Boolean allowManualMerge) voidsetAllowMergeCommits(Boolean allowMergeCommits) voidsetAllowRebase(Boolean allowRebase) voidsetAllowRebaseExplicit(Boolean allowRebaseExplicit) voidsetAllowRebaseUpdate(Boolean allowRebaseUpdate) voidsetAllowSquashMerge(Boolean allowSquashMerge) voidsetArchived(Boolean archived) voidsetAutodetectManualMerge(Boolean autodetectManualMerge) voidsetDefaultAllowMaintainerEdit(Boolean defaultAllowMaintainerEdit) voidsetDefaultBranch(String defaultBranch) voidsetDefaultDeleteBranchAfterMerge(Boolean defaultDeleteBranchAfterMerge) voidsetDefaultMergeStyle(String defaultMergeStyle) voidsetDefaultUpdateStyle(String defaultUpdateStyle) voidsetDescription(String description) voidsetEnablePrune(Boolean enablePrune) voidsetExternalTracker(ExternalTracker externalTracker) voidsetExternalWiki(ExternalWiki externalWiki) voidsetGloballyEditableWiki(Boolean globallyEditableWiki) voidsetHasActions(Boolean hasActions) voidsetHasIssues(Boolean hasIssues) voidsetHasPackages(Boolean hasPackages) voidsetHasProjects(Boolean hasProjects) voidsetHasPullRequests(Boolean hasPullRequests) voidsetHasReleases(Boolean hasReleases) voidsetHasWiki(Boolean hasWiki) voidsetIgnoreWhitespaceConflicts(Boolean ignoreWhitespaceConflicts) voidsetInternalTracker(InternalTracker internalTracker) voidsetMirrorInterval(String mirrorInterval) voidvoidsetPrivate(Boolean _private) voidsetTemplate(Boolean template) voidsetWebsite(String website) voidsetWikiBranch(String wikiBranch) toJson()Convert an instance of EditRepoOption to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwikiBranch(String wikiBranch)
-
Field Details
-
SERIALIZED_NAME_ALLOW_FAST_FORWARD_ONLY_MERGE
- See Also:
-
SERIALIZED_NAME_ALLOW_MANUAL_MERGE
- See Also:
-
SERIALIZED_NAME_ALLOW_MERGE_COMMITS
- See Also:
-
SERIALIZED_NAME_ALLOW_REBASE
- See Also:
-
SERIALIZED_NAME_ALLOW_REBASE_EXPLICIT
- See Also:
-
SERIALIZED_NAME_ALLOW_REBASE_UPDATE
- See Also:
-
SERIALIZED_NAME_ALLOW_SQUASH_MERGE
- See Also:
-
SERIALIZED_NAME_ARCHIVED
- See Also:
-
SERIALIZED_NAME_AUTODETECT_MANUAL_MERGE
- See Also:
-
SERIALIZED_NAME_DEFAULT_ALLOW_MAINTAINER_EDIT
- See Also:
-
SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
-
SERIALIZED_NAME_DEFAULT_DELETE_BRANCH_AFTER_MERGE
- See Also:
-
SERIALIZED_NAME_DEFAULT_MERGE_STYLE
- See Also:
-
SERIALIZED_NAME_DEFAULT_UPDATE_STYLE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENABLE_PRUNE
- See Also:
-
SERIALIZED_NAME_EXTERNAL_TRACKER
- See Also:
-
SERIALIZED_NAME_EXTERNAL_WIKI
- See Also:
-
SERIALIZED_NAME_GLOBALLY_EDITABLE_WIKI
- See Also:
-
SERIALIZED_NAME_HAS_ACTIONS
- See Also:
-
SERIALIZED_NAME_HAS_ISSUES
- See Also:
-
SERIALIZED_NAME_HAS_PACKAGES
- See Also:
-
SERIALIZED_NAME_HAS_PROJECTS
- See Also:
-
SERIALIZED_NAME_HAS_PULL_REQUESTS
- See Also:
-
SERIALIZED_NAME_HAS_RELEASES
- See Also:
-
SERIALIZED_NAME_HAS_WIKI
- See Also:
-
SERIALIZED_NAME_IGNORE_WHITESPACE_CONFLICTS
- See Also:
-
SERIALIZED_NAME_INTERNAL_TRACKER
- See Also:
-
SERIALIZED_NAME_MIRROR_INTERVAL
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
SERIALIZED_NAME_TEMPLATE
- See Also:
-
SERIALIZED_NAME_WEBSITE
- See Also:
-
SERIALIZED_NAME_WIKI_BRANCH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EditRepoOption
public EditRepoOption()
-
-
Method Details
-
allowFastForwardOnlyMerge
-
getAllowFastForwardOnlyMerge
either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging.- Returns:
- allowFastForwardOnlyMerge
-
setAllowFastForwardOnlyMerge
-
allowManualMerge
-
getAllowManualMerge
either `true` to allow mark pr as merged manually, or `false` to prevent it.- Returns:
- allowManualMerge
-
setAllowManualMerge
-
allowMergeCommits
-
getAllowMergeCommits
either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.- Returns:
- allowMergeCommits
-
setAllowMergeCommits
-
allowRebase
-
getAllowRebase
either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.- Returns:
- allowRebase
-
setAllowRebase
-
allowRebaseExplicit
-
getAllowRebaseExplicit
either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.- Returns:
- allowRebaseExplicit
-
setAllowRebaseExplicit
-
allowRebaseUpdate
-
getAllowRebaseUpdate
either `true` to allow updating pull request branch by rebase, or `false` to prevent it.- Returns:
- allowRebaseUpdate
-
setAllowRebaseUpdate
-
allowSquashMerge
-
getAllowSquashMerge
either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.- Returns:
- allowSquashMerge
-
setAllowSquashMerge
-
archived
-
getArchived
set to `true` to archive this repository.- Returns:
- archived
-
setArchived
-
autodetectManualMerge
-
getAutodetectManualMerge
either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.- Returns:
- autodetectManualMerge
-
setAutodetectManualMerge
-
defaultAllowMaintainerEdit
-
getDefaultAllowMaintainerEdit
set to `true` to allow edits from maintainers by default- Returns:
- defaultAllowMaintainerEdit
-
setDefaultAllowMaintainerEdit
-
defaultBranch
-
getDefaultBranch
sets the default branch for this repository.- Returns:
- defaultBranch
-
setDefaultBranch
-
defaultDeleteBranchAfterMerge
public EditRepoOption defaultDeleteBranchAfterMerge(@Nullable Boolean defaultDeleteBranchAfterMerge) -
getDefaultDeleteBranchAfterMerge
set to `true` to delete pr branch after merge by default- Returns:
- defaultDeleteBranchAfterMerge
-
setDefaultDeleteBranchAfterMerge
-
defaultMergeStyle
-
getDefaultMergeStyle
set to a merge style to be used by this repository: \"merge\", \"rebase\", \"rebase-merge\", \"squash\", \"fast-forward-only\", \"manually-merged\", or \"rebase-update-only\".- Returns:
- defaultMergeStyle
-
setDefaultMergeStyle
-
defaultUpdateStyle
-
getDefaultUpdateStyle
set to a update style to be used by this repository: \"rebase\" or \"merge\"- Returns:
- defaultUpdateStyle
-
setDefaultUpdateStyle
-
description
-
getDescription
a short description of the repository.- Returns:
- description
-
setDescription
-
enablePrune
-
getEnablePrune
enable prune - remove obsolete remote-tracking references when mirroring- Returns:
- enablePrune
-
setEnablePrune
-
externalTracker
-
getExternalTracker
Get externalTracker- Returns:
- externalTracker
-
setExternalTracker
-
externalWiki
-
getExternalWiki
Get externalWiki- Returns:
- externalWiki
-
setExternalWiki
-
globallyEditableWiki
-
getGloballyEditableWiki
set the globally editable state of the wiki- Returns:
- globallyEditableWiki
-
setGloballyEditableWiki
-
hasActions
-
getHasActions
either `true` to enable actions unit, or `false` to disable them.- Returns:
- hasActions
-
setHasActions
-
hasIssues
-
getHasIssues
either `true` to enable issues for this repository or `false` to disable them.- Returns:
- hasIssues
-
setHasIssues
-
hasPackages
-
getHasPackages
either `true` to enable packages unit, or `false` to disable them.- Returns:
- hasPackages
-
setHasPackages
-
hasProjects
-
getHasProjects
either `true` to enable project unit, or `false` to disable them.- Returns:
- hasProjects
-
setHasProjects
-
hasPullRequests
-
getHasPullRequests
either `true` to allow pull requests, or `false` to prevent pull request.- Returns:
- hasPullRequests
-
setHasPullRequests
-
hasReleases
-
getHasReleases
either `true` to enable releases unit, or `false` to disable them.- Returns:
- hasReleases
-
setHasReleases
-
hasWiki
-
getHasWiki
either `true` to enable the wiki for this repository or `false` to disable it.- Returns:
- hasWiki
-
setHasWiki
-
ignoreWhitespaceConflicts
-
getIgnoreWhitespaceConflicts
either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.- Returns:
- ignoreWhitespaceConflicts
-
setIgnoreWhitespaceConflicts
-
internalTracker
-
getInternalTracker
Get internalTracker- Returns:
- internalTracker
-
setInternalTracker
-
mirrorInterval
-
getMirrorInterval
set to a string like `8h30m0s` to set the mirror interval time- Returns:
- mirrorInterval
-
setMirrorInterval
-
name
-
getName
name of the repository- Returns:
- name
-
setName
-
_private
-
getPrivate
either `true` to make the repository private or `false` to make it public. Note: you will get a 422 error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private.- Returns:
- _private
-
setPrivate
-
template
-
getTemplate
either `true` to make this repository a template or `false` to make it a normal repository- Returns:
- template
-
setTemplate
-
website
-
getWebsite
a URL with more information about the repository.- Returns:
- website
-
setWebsite
-
wikiBranch
-
getWikiBranch
sets the branch used for this repository's wiki.- Returns:
- wikiBranch
-
setWikiBranch
-
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 EditRepoOption
-
fromJson
Create an instance of EditRepoOption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EditRepoOption
- Throws:
IOException- if the JSON string is invalid with respect to EditRepoOption
-
toJson
Convert an instance of EditRepoOption to an JSON string- Returns:
- JSON string
-