Class GeneralAPISettings

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

@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 GeneralAPISettings extends Object
GeneralAPISettings contains global api settings exposed by it
  • Field Details

    • SERIALIZED_NAME_DEFAULT_GIT_TREES_PER_PAGE

      public static final String SERIALIZED_NAME_DEFAULT_GIT_TREES_PER_PAGE
      See Also:
    • SERIALIZED_NAME_DEFAULT_MAX_BLOB_SIZE

      public static final String SERIALIZED_NAME_DEFAULT_MAX_BLOB_SIZE
      See Also:
    • SERIALIZED_NAME_DEFAULT_PAGING_NUM

      public static final String SERIALIZED_NAME_DEFAULT_PAGING_NUM
      See Also:
    • SERIALIZED_NAME_MAX_RESPONSE_ITEMS

      public static final String SERIALIZED_NAME_MAX_RESPONSE_ITEMS
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • GeneralAPISettings

      public GeneralAPISettings()
  • Method Details

    • defaultGitTreesPerPage

      public GeneralAPISettings defaultGitTreesPerPage(@Nullable Long defaultGitTreesPerPage)
    • getDefaultGitTreesPerPage

      @Nullable public Long getDefaultGitTreesPerPage()
      Get defaultGitTreesPerPage
      Returns:
      defaultGitTreesPerPage
    • setDefaultGitTreesPerPage

      public void setDefaultGitTreesPerPage(@Nullable Long defaultGitTreesPerPage)
    • defaultMaxBlobSize

      public GeneralAPISettings defaultMaxBlobSize(@Nullable Long defaultMaxBlobSize)
    • getDefaultMaxBlobSize

      @Nullable public Long getDefaultMaxBlobSize()
      Get defaultMaxBlobSize
      Returns:
      defaultMaxBlobSize
    • setDefaultMaxBlobSize

      public void setDefaultMaxBlobSize(@Nullable Long defaultMaxBlobSize)
    • defaultPagingNum

      public GeneralAPISettings defaultPagingNum(@Nullable Long defaultPagingNum)
    • getDefaultPagingNum

      @Nullable public Long getDefaultPagingNum()
      Get defaultPagingNum
      Returns:
      defaultPagingNum
    • setDefaultPagingNum

      public void setDefaultPagingNum(@Nullable Long defaultPagingNum)
    • maxResponseItems

      public GeneralAPISettings maxResponseItems(@Nullable Long maxResponseItems)
    • getMaxResponseItems

      @Nullable public Long getMaxResponseItems()
      Get maxResponseItems
      Returns:
      maxResponseItems
    • setMaxResponseItems

      public void setMaxResponseItems(@Nullable Long maxResponseItems)
    • 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 GeneralAPISettings
    • fromJson

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

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