Class QuotaUsedSizeAssets
java.lang.Object
build.cursed.genapi.forgejo.model.QuotaUsedSizeAssets
@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 QuotaUsedSizeAssets
extends Object
QuotaUsedSizeAssets represents the size-based asset usage of a user
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachments(QuotaUsedSizeAssetsAttachments attachments) booleanstatic QuotaUsedSizeAssetsCreate an instance of QuotaUsedSizeAssets given an JSON stringStorage size used for the user's artifactsGet attachmentsGet packagesinthashCode()packages(QuotaUsedSizeAssetsPackages packages) voidsetArtifacts(Long artifacts) voidsetAttachments(QuotaUsedSizeAssetsAttachments attachments) voidsetPackages(QuotaUsedSizeAssetsPackages packages) toJson()Convert an instance of QuotaUsedSizeAssets to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ARTIFACTS
- See Also:
-
SERIALIZED_NAME_ATTACHMENTS
- See Also:
-
SERIALIZED_NAME_PACKAGES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuotaUsedSizeAssets
public QuotaUsedSizeAssets()
-
-
Method Details
-
artifacts
-
getArtifacts
Storage size used for the user's artifacts- Returns:
- artifacts
-
setArtifacts
-
attachments
-
getAttachments
Get attachments- Returns:
- attachments
-
setAttachments
-
packages
-
getPackages
Get packages- Returns:
- packages
-
setPackages
-
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 QuotaUsedSizeAssets
-
fromJson
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
Convert an instance of QuotaUsedSizeAssets to an JSON string- Returns:
- JSON string
-