Class EditRepoOption

java.lang.Object
build.cursed.genapi.forgejo.model.EditRepoOption

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class EditRepoOption extends Object
EditRepoOption options when editing a repository's properties
  • Field Details

  • Constructor Details

    • EditRepoOption

      public EditRepoOption()
  • Method Details

    • allowFastForwardOnlyMerge

      public EditRepoOption allowFastForwardOnlyMerge(@Nullable Boolean allowFastForwardOnlyMerge)
    • getAllowFastForwardOnlyMerge

      @Nullable public Boolean getAllowFastForwardOnlyMerge()
      either `true` to allow fast-forward-only merging pull requests, or `false` to prevent fast-forward-only merging.
      Returns:
      allowFastForwardOnlyMerge
    • setAllowFastForwardOnlyMerge

      public void setAllowFastForwardOnlyMerge(@Nullable Boolean allowFastForwardOnlyMerge)
    • allowManualMerge

      public EditRepoOption allowManualMerge(@Nullable Boolean allowManualMerge)
    • getAllowManualMerge

      @Nullable public Boolean getAllowManualMerge()
      either `true` to allow mark pr as merged manually, or `false` to prevent it.
      Returns:
      allowManualMerge
    • setAllowManualMerge

      public void setAllowManualMerge(@Nullable Boolean allowManualMerge)
    • allowMergeCommits

      public EditRepoOption allowMergeCommits(@Nullable Boolean allowMergeCommits)
    • getAllowMergeCommits

      @Nullable public Boolean 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

      public void setAllowMergeCommits(@Nullable Boolean allowMergeCommits)
    • allowRebase

      public EditRepoOption allowRebase(@Nullable Boolean allowRebase)
    • getAllowRebase

      @Nullable public Boolean getAllowRebase()
      either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.
      Returns:
      allowRebase
    • setAllowRebase

      public void setAllowRebase(@Nullable Boolean allowRebase)
    • allowRebaseExplicit

      public EditRepoOption allowRebaseExplicit(@Nullable Boolean allowRebaseExplicit)
    • getAllowRebaseExplicit

      @Nullable public Boolean getAllowRebaseExplicit()
      either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits.
      Returns:
      allowRebaseExplicit
    • setAllowRebaseExplicit

      public void setAllowRebaseExplicit(@Nullable Boolean allowRebaseExplicit)
    • allowRebaseUpdate

      public EditRepoOption allowRebaseUpdate(@Nullable Boolean allowRebaseUpdate)
    • getAllowRebaseUpdate

      @Nullable public Boolean getAllowRebaseUpdate()
      either `true` to allow updating pull request branch by rebase, or `false` to prevent it.
      Returns:
      allowRebaseUpdate
    • setAllowRebaseUpdate

      public void setAllowRebaseUpdate(@Nullable Boolean allowRebaseUpdate)
    • allowSquashMerge

      public EditRepoOption allowSquashMerge(@Nullable Boolean allowSquashMerge)
    • getAllowSquashMerge

      @Nullable public Boolean getAllowSquashMerge()
      either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.
      Returns:
      allowSquashMerge
    • setAllowSquashMerge

      public void setAllowSquashMerge(@Nullable Boolean allowSquashMerge)
    • archived

      public EditRepoOption archived(@Nullable Boolean archived)
    • getArchived

      @Nullable public Boolean getArchived()
      set to `true` to archive this repository.
      Returns:
      archived
    • setArchived

      public void setArchived(@Nullable Boolean archived)
    • autodetectManualMerge

      public EditRepoOption autodetectManualMerge(@Nullable Boolean autodetectManualMerge)
    • getAutodetectManualMerge

      @Nullable public Boolean getAutodetectManualMerge()
      either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur.
      Returns:
      autodetectManualMerge
    • setAutodetectManualMerge

      public void setAutodetectManualMerge(@Nullable Boolean autodetectManualMerge)
    • defaultAllowMaintainerEdit

      public EditRepoOption defaultAllowMaintainerEdit(@Nullable Boolean defaultAllowMaintainerEdit)
    • getDefaultAllowMaintainerEdit

      @Nullable public Boolean getDefaultAllowMaintainerEdit()
      set to `true` to allow edits from maintainers by default
      Returns:
      defaultAllowMaintainerEdit
    • setDefaultAllowMaintainerEdit

      public void setDefaultAllowMaintainerEdit(@Nullable Boolean defaultAllowMaintainerEdit)
    • defaultBranch

      public EditRepoOption defaultBranch(@Nullable String defaultBranch)
    • getDefaultBranch

      @Nullable public String getDefaultBranch()
      sets the default branch for this repository.
      Returns:
      defaultBranch
    • setDefaultBranch

      public void setDefaultBranch(@Nullable String defaultBranch)
    • defaultDeleteBranchAfterMerge

      public EditRepoOption defaultDeleteBranchAfterMerge(@Nullable Boolean defaultDeleteBranchAfterMerge)
    • getDefaultDeleteBranchAfterMerge

      @Nullable public Boolean getDefaultDeleteBranchAfterMerge()
      set to `true` to delete pr branch after merge by default
      Returns:
      defaultDeleteBranchAfterMerge
    • setDefaultDeleteBranchAfterMerge

      public void setDefaultDeleteBranchAfterMerge(@Nullable Boolean defaultDeleteBranchAfterMerge)
    • defaultMergeStyle

      public EditRepoOption defaultMergeStyle(@Nullable String defaultMergeStyle)
    • getDefaultMergeStyle

      @Nullable public String 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

      public void setDefaultMergeStyle(@Nullable String defaultMergeStyle)
    • defaultUpdateStyle

      public EditRepoOption defaultUpdateStyle(@Nullable String defaultUpdateStyle)
    • getDefaultUpdateStyle

      @Nullable public String getDefaultUpdateStyle()
      set to a update style to be used by this repository: \"rebase\" or \"merge\"
      Returns:
      defaultUpdateStyle
    • setDefaultUpdateStyle

      public void setDefaultUpdateStyle(@Nullable String defaultUpdateStyle)
    • description

      public EditRepoOption description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      a short description of the repository.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • enablePrune

      public EditRepoOption enablePrune(@Nullable Boolean enablePrune)
    • getEnablePrune

      @Nullable public Boolean getEnablePrune()
      enable prune - remove obsolete remote-tracking references when mirroring
      Returns:
      enablePrune
    • setEnablePrune

      public void setEnablePrune(@Nullable Boolean enablePrune)
    • externalTracker

      public EditRepoOption externalTracker(@Nullable ExternalTracker externalTracker)
    • getExternalTracker

      @Nullable public ExternalTracker getExternalTracker()
      Get externalTracker
      Returns:
      externalTracker
    • setExternalTracker

      public void setExternalTracker(@Nullable ExternalTracker externalTracker)
    • externalWiki

      public EditRepoOption externalWiki(@Nullable ExternalWiki externalWiki)
    • getExternalWiki

      @Nullable public ExternalWiki getExternalWiki()
      Get externalWiki
      Returns:
      externalWiki
    • setExternalWiki

      public void setExternalWiki(@Nullable ExternalWiki externalWiki)
    • globallyEditableWiki

      public EditRepoOption globallyEditableWiki(@Nullable Boolean globallyEditableWiki)
    • getGloballyEditableWiki

      @Nullable public Boolean getGloballyEditableWiki()
      set the globally editable state of the wiki
      Returns:
      globallyEditableWiki
    • setGloballyEditableWiki

      public void setGloballyEditableWiki(@Nullable Boolean globallyEditableWiki)
    • hasActions

      public EditRepoOption hasActions(@Nullable Boolean hasActions)
    • getHasActions

      @Nullable public Boolean getHasActions()
      either `true` to enable actions unit, or `false` to disable them.
      Returns:
      hasActions
    • setHasActions

      public void setHasActions(@Nullable Boolean hasActions)
    • hasIssues

      public EditRepoOption hasIssues(@Nullable Boolean hasIssues)
    • getHasIssues

      @Nullable public Boolean getHasIssues()
      either `true` to enable issues for this repository or `false` to disable them.
      Returns:
      hasIssues
    • setHasIssues

      public void setHasIssues(@Nullable Boolean hasIssues)
    • hasPackages

      public EditRepoOption hasPackages(@Nullable Boolean hasPackages)
    • getHasPackages

      @Nullable public Boolean getHasPackages()
      either `true` to enable packages unit, or `false` to disable them.
      Returns:
      hasPackages
    • setHasPackages

      public void setHasPackages(@Nullable Boolean hasPackages)
    • hasProjects

      public EditRepoOption hasProjects(@Nullable Boolean hasProjects)
    • getHasProjects

      @Nullable public Boolean getHasProjects()
      either `true` to enable project unit, or `false` to disable them.
      Returns:
      hasProjects
    • setHasProjects

      public void setHasProjects(@Nullable Boolean hasProjects)
    • hasPullRequests

      public EditRepoOption hasPullRequests(@Nullable Boolean hasPullRequests)
    • getHasPullRequests

      @Nullable public Boolean getHasPullRequests()
      either `true` to allow pull requests, or `false` to prevent pull request.
      Returns:
      hasPullRequests
    • setHasPullRequests

      public void setHasPullRequests(@Nullable Boolean hasPullRequests)
    • hasReleases

      public EditRepoOption hasReleases(@Nullable Boolean hasReleases)
    • getHasReleases

      @Nullable public Boolean getHasReleases()
      either `true` to enable releases unit, or `false` to disable them.
      Returns:
      hasReleases
    • setHasReleases

      public void setHasReleases(@Nullable Boolean hasReleases)
    • hasWiki

      public EditRepoOption hasWiki(@Nullable Boolean hasWiki)
    • getHasWiki

      @Nullable public Boolean getHasWiki()
      either `true` to enable the wiki for this repository or `false` to disable it.
      Returns:
      hasWiki
    • setHasWiki

      public void setHasWiki(@Nullable Boolean hasWiki)
    • ignoreWhitespaceConflicts

      public EditRepoOption ignoreWhitespaceConflicts(@Nullable Boolean ignoreWhitespaceConflicts)
    • getIgnoreWhitespaceConflicts

      @Nullable public Boolean getIgnoreWhitespaceConflicts()
      either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace.
      Returns:
      ignoreWhitespaceConflicts
    • setIgnoreWhitespaceConflicts

      public void setIgnoreWhitespaceConflicts(@Nullable Boolean ignoreWhitespaceConflicts)
    • internalTracker

      public EditRepoOption internalTracker(@Nullable InternalTracker internalTracker)
    • getInternalTracker

      @Nullable public InternalTracker getInternalTracker()
      Get internalTracker
      Returns:
      internalTracker
    • setInternalTracker

      public void setInternalTracker(@Nullable InternalTracker internalTracker)
    • mirrorInterval

      public EditRepoOption mirrorInterval(@Nullable String mirrorInterval)
    • getMirrorInterval

      @Nullable public String getMirrorInterval()
      set to a string like `8h30m0s` to set the mirror interval time
      Returns:
      mirrorInterval
    • setMirrorInterval

      public void setMirrorInterval(@Nullable String mirrorInterval)
    • name

      public EditRepoOption name(@Nullable String name)
    • getName

      @Nullable public String getName()
      name of the repository
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • _private

      public EditRepoOption _private(@Nullable Boolean _private)
    • getPrivate

      @Nullable public Boolean 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

      public void setPrivate(@Nullable Boolean _private)
    • template

      public EditRepoOption template(@Nullable Boolean template)
    • getTemplate

      @Nullable public Boolean getTemplate()
      either `true` to make this repository a template or `false` to make it a normal repository
      Returns:
      template
    • setTemplate

      public void setTemplate(@Nullable Boolean template)
    • website

      public EditRepoOption website(@Nullable String website)
    • getWebsite

      @Nullable public String getWebsite()
      a URL with more information about the repository.
      Returns:
      website
    • setWebsite

      public void setWebsite(@Nullable String website)
    • wikiBranch

      public EditRepoOption wikiBranch(@Nullable String wikiBranch)
    • getWikiBranch

      @Nullable public String getWikiBranch()
      sets the branch used for this repository's wiki.
      Returns:
      wikiBranch
    • setWikiBranch

      public void setWikiBranch(@Nullable String wikiBranch)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static EditRepoOption fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of EditRepoOption to an JSON string
      Returns:
      JSON string