Class Repository

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

@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 Repository extends Object
Repository represents a repository
  • Field Details

  • Constructor Details

    • Repository

      public Repository()
  • Method Details

    • allowFastForwardOnlyMerge

      public Repository allowFastForwardOnlyMerge(@Nullable Boolean allowFastForwardOnlyMerge)
    • getAllowFastForwardOnlyMerge

      @Nullable public Boolean getAllowFastForwardOnlyMerge()
      Get allowFastForwardOnlyMerge
      Returns:
      allowFastForwardOnlyMerge
    • setAllowFastForwardOnlyMerge

      public void setAllowFastForwardOnlyMerge(@Nullable Boolean allowFastForwardOnlyMerge)
    • allowMergeCommits

      public Repository allowMergeCommits(@Nullable Boolean allowMergeCommits)
    • getAllowMergeCommits

      @Nullable public Boolean getAllowMergeCommits()
      Get allowMergeCommits
      Returns:
      allowMergeCommits
    • setAllowMergeCommits

      public void setAllowMergeCommits(@Nullable Boolean allowMergeCommits)
    • allowRebase

      public Repository allowRebase(@Nullable Boolean allowRebase)
    • getAllowRebase

      @Nullable public Boolean getAllowRebase()
      Get allowRebase
      Returns:
      allowRebase
    • setAllowRebase

      public void setAllowRebase(@Nullable Boolean allowRebase)
    • allowRebaseExplicit

      public Repository allowRebaseExplicit(@Nullable Boolean allowRebaseExplicit)
    • getAllowRebaseExplicit

      @Nullable public Boolean getAllowRebaseExplicit()
      Get allowRebaseExplicit
      Returns:
      allowRebaseExplicit
    • setAllowRebaseExplicit

      public void setAllowRebaseExplicit(@Nullable Boolean allowRebaseExplicit)
    • allowRebaseUpdate

      public Repository allowRebaseUpdate(@Nullable Boolean allowRebaseUpdate)
    • getAllowRebaseUpdate

      @Nullable public Boolean getAllowRebaseUpdate()
      Get allowRebaseUpdate
      Returns:
      allowRebaseUpdate
    • setAllowRebaseUpdate

      public void setAllowRebaseUpdate(@Nullable Boolean allowRebaseUpdate)
    • allowSquashMerge

      public Repository allowSquashMerge(@Nullable Boolean allowSquashMerge)
    • getAllowSquashMerge

      @Nullable public Boolean getAllowSquashMerge()
      Get allowSquashMerge
      Returns:
      allowSquashMerge
    • setAllowSquashMerge

      public void setAllowSquashMerge(@Nullable Boolean allowSquashMerge)
    • archived

      public Repository archived(@Nullable Boolean archived)
    • getArchived

      @Nullable public Boolean getArchived()
      Get archived
      Returns:
      archived
    • setArchived

      public void setArchived(@Nullable Boolean archived)
    • archivedAt

      public Repository archivedAt(@Nullable OffsetDateTime archivedAt)
    • getArchivedAt

      @Nullable public OffsetDateTime getArchivedAt()
      Get archivedAt
      Returns:
      archivedAt
    • setArchivedAt

      public void setArchivedAt(@Nullable OffsetDateTime archivedAt)
    • avatarUrl

      public Repository avatarUrl(@Nullable String avatarUrl)
    • getAvatarUrl

      @Nullable public String getAvatarUrl()
      Get avatarUrl
      Returns:
      avatarUrl
    • setAvatarUrl

      public void setAvatarUrl(@Nullable String avatarUrl)
    • cloneUrl

      public Repository cloneUrl(@Nullable String cloneUrl)
    • getCloneUrl

      @Nullable public String getCloneUrl()
      Get cloneUrl
      Returns:
      cloneUrl
    • setCloneUrl

      public void setCloneUrl(@Nullable String cloneUrl)
    • createdAt

      public Repository createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • defaultAllowMaintainerEdit

      public Repository defaultAllowMaintainerEdit(@Nullable Boolean defaultAllowMaintainerEdit)
    • getDefaultAllowMaintainerEdit

      @Nullable public Boolean getDefaultAllowMaintainerEdit()
      Get defaultAllowMaintainerEdit
      Returns:
      defaultAllowMaintainerEdit
    • setDefaultAllowMaintainerEdit

      public void setDefaultAllowMaintainerEdit(@Nullable Boolean defaultAllowMaintainerEdit)
    • defaultBranch

      public Repository defaultBranch(@Nullable String defaultBranch)
    • getDefaultBranch

      @Nullable public String getDefaultBranch()
      Get defaultBranch
      Returns:
      defaultBranch
    • setDefaultBranch

      public void setDefaultBranch(@Nullable String defaultBranch)
    • defaultDeleteBranchAfterMerge

      public Repository defaultDeleteBranchAfterMerge(@Nullable Boolean defaultDeleteBranchAfterMerge)
    • getDefaultDeleteBranchAfterMerge

      @Nullable public Boolean getDefaultDeleteBranchAfterMerge()
      Get defaultDeleteBranchAfterMerge
      Returns:
      defaultDeleteBranchAfterMerge
    • setDefaultDeleteBranchAfterMerge

      public void setDefaultDeleteBranchAfterMerge(@Nullable Boolean defaultDeleteBranchAfterMerge)
    • defaultMergeStyle

      public Repository defaultMergeStyle(@Nullable String defaultMergeStyle)
    • getDefaultMergeStyle

      @Nullable public String getDefaultMergeStyle()
      Get defaultMergeStyle
      Returns:
      defaultMergeStyle
    • setDefaultMergeStyle

      public void setDefaultMergeStyle(@Nullable String defaultMergeStyle)
    • defaultUpdateStyle

      public Repository defaultUpdateStyle(@Nullable String defaultUpdateStyle)
    • getDefaultUpdateStyle

      @Nullable public String getDefaultUpdateStyle()
      Get defaultUpdateStyle
      Returns:
      defaultUpdateStyle
    • setDefaultUpdateStyle

      public void setDefaultUpdateStyle(@Nullable String defaultUpdateStyle)
    • description

      public Repository description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • empty

      public Repository empty(@Nullable Boolean empty)
    • getEmpty

      @Nullable public Boolean getEmpty()
      Get empty
      Returns:
      empty
    • setEmpty

      public void setEmpty(@Nullable Boolean empty)
    • externalTracker

      public Repository externalTracker(@Nullable ExternalTracker externalTracker)
    • getExternalTracker

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

      public void setExternalTracker(@Nullable ExternalTracker externalTracker)
    • externalWiki

      public Repository externalWiki(@Nullable ExternalWiki externalWiki)
    • getExternalWiki

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

      public void setExternalWiki(@Nullable ExternalWiki externalWiki)
    • fork

      public Repository fork(@Nullable Boolean fork)
    • getFork

      @Nullable public Boolean getFork()
      Get fork
      Returns:
      fork
    • setFork

      public void setFork(@Nullable Boolean fork)
    • forksCount

      public Repository forksCount(@Nullable Long forksCount)
    • getForksCount

      @Nullable public Long getForksCount()
      Get forksCount
      Returns:
      forksCount
    • setForksCount

      public void setForksCount(@Nullable Long forksCount)
    • fullName

      public Repository fullName(@Nullable String fullName)
    • getFullName

      @Nullable public String getFullName()
      Get fullName
      Returns:
      fullName
    • setFullName

      public void setFullName(@Nullable String fullName)
    • globallyEditableWiki

      public Repository globallyEditableWiki(@Nullable Boolean globallyEditableWiki)
    • getGloballyEditableWiki

      @Nullable public Boolean getGloballyEditableWiki()
      Get globallyEditableWiki
      Returns:
      globallyEditableWiki
    • setGloballyEditableWiki

      public void setGloballyEditableWiki(@Nullable Boolean globallyEditableWiki)
    • hasActions

      public Repository hasActions(@Nullable Boolean hasActions)
    • getHasActions

      @Nullable public Boolean getHasActions()
      Get hasActions
      Returns:
      hasActions
    • setHasActions

      public void setHasActions(@Nullable Boolean hasActions)
    • hasIssues

      public Repository hasIssues(@Nullable Boolean hasIssues)
    • getHasIssues

      @Nullable public Boolean getHasIssues()
      Get hasIssues
      Returns:
      hasIssues
    • setHasIssues

      public void setHasIssues(@Nullable Boolean hasIssues)
    • hasPackages

      public Repository hasPackages(@Nullable Boolean hasPackages)
    • getHasPackages

      @Nullable public Boolean getHasPackages()
      Get hasPackages
      Returns:
      hasPackages
    • setHasPackages

      public void setHasPackages(@Nullable Boolean hasPackages)
    • hasProjects

      public Repository hasProjects(@Nullable Boolean hasProjects)
    • getHasProjects

      @Nullable public Boolean getHasProjects()
      Get hasProjects
      Returns:
      hasProjects
    • setHasProjects

      public void setHasProjects(@Nullable Boolean hasProjects)
    • hasPullRequests

      public Repository hasPullRequests(@Nullable Boolean hasPullRequests)
    • getHasPullRequests

      @Nullable public Boolean getHasPullRequests()
      Get hasPullRequests
      Returns:
      hasPullRequests
    • setHasPullRequests

      public void setHasPullRequests(@Nullable Boolean hasPullRequests)
    • hasReleases

      public Repository hasReleases(@Nullable Boolean hasReleases)
    • getHasReleases

      @Nullable public Boolean getHasReleases()
      Get hasReleases
      Returns:
      hasReleases
    • setHasReleases

      public void setHasReleases(@Nullable Boolean hasReleases)
    • hasWiki

      public Repository hasWiki(@Nullable Boolean hasWiki)
    • getHasWiki

      @Nullable public Boolean getHasWiki()
      is the wiki enabled
      Returns:
      hasWiki
    • setHasWiki

      public void setHasWiki(@Nullable Boolean hasWiki)
    • hasWikiContents

      public Repository hasWikiContents(@Nullable Boolean hasWikiContents)
    • getHasWikiContents

      @Nullable public Boolean getHasWikiContents()
      have wiki pages ever been created
      Returns:
      hasWikiContents
    • setHasWikiContents

      public void setHasWikiContents(@Nullable Boolean hasWikiContents)
    • htmlUrl

      public Repository htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

      @Nullable public String getHtmlUrl()
      Get htmlUrl
      Returns:
      htmlUrl
    • setHtmlUrl

      public void setHtmlUrl(@Nullable String htmlUrl)
    • id

      public Repository id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • ignoreWhitespaceConflicts

      public Repository ignoreWhitespaceConflicts(@Nullable Boolean ignoreWhitespaceConflicts)
    • getIgnoreWhitespaceConflicts

      @Nullable public Boolean getIgnoreWhitespaceConflicts()
      Get ignoreWhitespaceConflicts
      Returns:
      ignoreWhitespaceConflicts
    • setIgnoreWhitespaceConflicts

      public void setIgnoreWhitespaceConflicts(@Nullable Boolean ignoreWhitespaceConflicts)
    • internal

      public Repository internal(@Nullable Boolean internal)
    • getInternal

      @Nullable public Boolean getInternal()
      Get internal
      Returns:
      internal
    • setInternal

      public void setInternal(@Nullable Boolean internal)
    • internalTracker

      public Repository internalTracker(@Nullable InternalTracker internalTracker)
    • getInternalTracker

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

      public void setInternalTracker(@Nullable InternalTracker internalTracker)
    • language

      public Repository language(@Nullable String language)
    • getLanguage

      @Nullable public String getLanguage()
      Get language
      Returns:
      language
    • setLanguage

      public void setLanguage(@Nullable String language)
    • languagesUrl

      public Repository languagesUrl(@Nullable String languagesUrl)
    • getLanguagesUrl

      @Nullable public String getLanguagesUrl()
      Get languagesUrl
      Returns:
      languagesUrl
    • setLanguagesUrl

      public void setLanguagesUrl(@Nullable String languagesUrl)
    • link

      public Repository link(@Nullable String link)
    • getLink

      @Nullable public String getLink()
      Get link
      Returns:
      link
    • setLink

      public void setLink(@Nullable String link)
    • mirror

      public Repository mirror(@Nullable Boolean mirror)
    • getMirror

      @Nullable public Boolean getMirror()
      Get mirror
      Returns:
      mirror
    • setMirror

      public void setMirror(@Nullable Boolean mirror)
    • mirrorInterval

      public Repository mirrorInterval(@Nullable String mirrorInterval)
    • getMirrorInterval

      @Nullable public String getMirrorInterval()
      Get mirrorInterval
      Returns:
      mirrorInterval
    • setMirrorInterval

      public void setMirrorInterval(@Nullable String mirrorInterval)
    • mirrorUpdated

      public Repository mirrorUpdated(@Nullable OffsetDateTime mirrorUpdated)
    • getMirrorUpdated

      @Nullable public OffsetDateTime getMirrorUpdated()
      Get mirrorUpdated
      Returns:
      mirrorUpdated
    • setMirrorUpdated

      public void setMirrorUpdated(@Nullable OffsetDateTime mirrorUpdated)
    • name

      public Repository name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • objectFormatName

      public Repository objectFormatName(@Nullable Repository.ObjectFormatNameEnum objectFormatName)
    • getObjectFormatName

      @Nullable public Repository.ObjectFormatNameEnum getObjectFormatName()
      ObjectFormatName of the underlying git repository
      Returns:
      objectFormatName
    • setObjectFormatName

      public void setObjectFormatName(@Nullable Repository.ObjectFormatNameEnum objectFormatName)
    • openIssuesCount

      public Repository openIssuesCount(@Nullable Long openIssuesCount)
    • getOpenIssuesCount

      @Nullable public Long getOpenIssuesCount()
      Get openIssuesCount
      Returns:
      openIssuesCount
    • setOpenIssuesCount

      public void setOpenIssuesCount(@Nullable Long openIssuesCount)
    • openPrCounter

      public Repository openPrCounter(@Nullable Long openPrCounter)
    • getOpenPrCounter

      @Nullable public Long getOpenPrCounter()
      Get openPrCounter
      Returns:
      openPrCounter
    • setOpenPrCounter

      public void setOpenPrCounter(@Nullable Long openPrCounter)
    • originalUrl

      public Repository originalUrl(@Nullable String originalUrl)
    • getOriginalUrl

      @Nullable public String getOriginalUrl()
      Get originalUrl
      Returns:
      originalUrl
    • setOriginalUrl

      public void setOriginalUrl(@Nullable String originalUrl)
    • owner

      public Repository owner(@Nullable User owner)
    • getOwner

      @Nullable public User getOwner()
      Get owner
      Returns:
      owner
    • setOwner

      public void setOwner(@Nullable User owner)
    • parent

      public Repository parent(@Nullable Repository parent)
    • getParent

      @Nullable public Repository getParent()
      Get parent
      Returns:
      parent
    • setParent

      public void setParent(@Nullable Repository parent)
    • permissions

      public Repository permissions(@Nullable Permission permissions)
    • getPermissions

      @Nullable public Permission getPermissions()
      Get permissions
      Returns:
      permissions
    • setPermissions

      public void setPermissions(@Nullable Permission permissions)
    • _private

      public Repository _private(@Nullable Boolean _private)
    • getPrivate

      @Nullable public Boolean getPrivate()
      Get _private
      Returns:
      _private
    • setPrivate

      public void setPrivate(@Nullable Boolean _private)
    • releaseCounter

      public Repository releaseCounter(@Nullable Long releaseCounter)
    • getReleaseCounter

      @Nullable public Long getReleaseCounter()
      Get releaseCounter
      Returns:
      releaseCounter
    • setReleaseCounter

      public void setReleaseCounter(@Nullable Long releaseCounter)
    • repoTransfer

      public Repository repoTransfer(@Nullable RepoTransfer repoTransfer)
    • getRepoTransfer

      @Nullable public RepoTransfer getRepoTransfer()
      Get repoTransfer
      Returns:
      repoTransfer
    • setRepoTransfer

      public void setRepoTransfer(@Nullable RepoTransfer repoTransfer)
    • size

      public Repository size(@Nullable Long size)
    • getSize

      @Nullable public Long getSize()
      Get size
      Returns:
      size
    • setSize

      public void setSize(@Nullable Long size)
    • sshUrl

      public Repository sshUrl(@Nullable String sshUrl)
    • getSshUrl

      @Nullable public String getSshUrl()
      Get sshUrl
      Returns:
      sshUrl
    • setSshUrl

      public void setSshUrl(@Nullable String sshUrl)
    • starsCount

      public Repository starsCount(@Nullable Long starsCount)
    • getStarsCount

      @Nullable public Long getStarsCount()
      Get starsCount
      Returns:
      starsCount
    • setStarsCount

      public void setStarsCount(@Nullable Long starsCount)
    • template

      public Repository template(@Nullable Boolean template)
    • getTemplate

      @Nullable public Boolean getTemplate()
      Get template
      Returns:
      template
    • setTemplate

      public void setTemplate(@Nullable Boolean template)
    • topics

      public Repository topics(@Nullable List<String> topics)
    • addTopicsItem

      public Repository addTopicsItem(String topicsItem)
    • getTopics

      @Nullable public List<String> getTopics()
      Get topics
      Returns:
      topics
    • setTopics

      public void setTopics(@Nullable List<String> topics)
    • updatedAt

      public Repository updatedAt(@Nullable OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Get updatedAt
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable OffsetDateTime updatedAt)
    • url

      public Repository url(@Nullable String url)
    • getUrl

      @Nullable public String getUrl()
      Get url
      Returns:
      url
    • setUrl

      public void setUrl(@Nullable String url)
    • watchersCount

      public Repository watchersCount(@Nullable Long watchersCount)
    • getWatchersCount

      @Nullable public Long getWatchersCount()
      Get watchersCount
      Returns:
      watchersCount
    • setWatchersCount

      public void setWatchersCount(@Nullable Long watchersCount)
    • website

      public Repository website(@Nullable String website)
    • getWebsite

      @Nullable public String getWebsite()
      Get website
      Returns:
      website
    • setWebsite

      public void setWebsite(@Nullable String website)
    • wikiBranch

      public Repository wikiBranch(@Nullable String wikiBranch)
    • getWikiBranch

      @Nullable public String getWikiBranch()
      Get wikiBranch
      Returns:
      wikiBranch
    • setWikiBranch

      public void setWikiBranch(@Nullable String wikiBranch)
    • wikiCloneUrl

      public Repository wikiCloneUrl(@Nullable String wikiCloneUrl)
    • getWikiCloneUrl

      @Nullable public String getWikiCloneUrl()
      Get wikiCloneUrl
      Returns:
      wikiCloneUrl
    • setWikiCloneUrl

      public void setWikiCloneUrl(@Nullable String wikiCloneUrl)
    • wikiSshUrl

      public Repository wikiSshUrl(@Nullable String wikiSshUrl)
    • getWikiSshUrl

      @Nullable public String getWikiSshUrl()
      Get wikiSshUrl
      Returns:
      wikiSshUrl
    • setWikiSshUrl

      public void setWikiSshUrl(@Nullable String wikiSshUrl)
    • 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 Repository
    • fromJson

      public static Repository fromJson(String jsonString) throws IOException
      Create an instance of Repository given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Repository
      Throws:
      IOException - if the JSON string is invalid with respect to Repository
    • toJson

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