Class QuotaUsedSizeAssets

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

@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 QuotaUsedSizeAssets extends Object
QuotaUsedSizeAssets represents the size-based asset usage of a user
  • Field Details

  • Constructor Details

    • QuotaUsedSizeAssets

      public QuotaUsedSizeAssets()
  • Method Details

    • artifacts

      public QuotaUsedSizeAssets artifacts(@Nullable Long artifacts)
    • getArtifacts

      @Nullable public Long getArtifacts()
      Storage size used for the user's artifacts
      Returns:
      artifacts
    • setArtifacts

      public void setArtifacts(@Nullable Long artifacts)
    • attachments

      public QuotaUsedSizeAssets attachments(@Nullable QuotaUsedSizeAssetsAttachments attachments)
    • getAttachments

      @Nullable public QuotaUsedSizeAssetsAttachments getAttachments()
      Get attachments
      Returns:
      attachments
    • setAttachments

      public void setAttachments(@Nullable QuotaUsedSizeAssetsAttachments attachments)
    • packages

      public QuotaUsedSizeAssets packages(@Nullable QuotaUsedSizeAssetsPackages packages)
    • getPackages

      @Nullable public QuotaUsedSizeAssetsPackages getPackages()
      Get packages
      Returns:
      packages
    • setPackages

      public void setPackages(@Nullable QuotaUsedSizeAssetsPackages packages)
    • 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 QuotaUsedSizeAssets
    • fromJson

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

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