Class QuotaUsedPackage
java.lang.Object
build.cursed.genapi.forgejo.model.QuotaUsedPackage
@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 QuotaUsedPackage
extends Object
QuotaUsedPackage represents a package counting towards a user's quota
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic QuotaUsedPackageCreate an instance of QuotaUsedPackage given an JSON stringHTML URL to the package versiongetName()Name of the packagegetSize()Size of the package versiongetType()Type of the packageVersion of the packageinthashCode()voidsetHtmlUrl(String htmlUrl) voidvoidvoidvoidsetVersion(String version) toJson()Convert an instance of QuotaUsedPackage 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_HTML_URL
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuotaUsedPackage
public QuotaUsedPackage()
-
-
Method Details
-
htmlUrl
-
getHtmlUrl
HTML URL to the package version- Returns:
- htmlUrl
-
setHtmlUrl
-
name
-
getName
Name of the package- Returns:
- name
-
setName
-
size
-
getSize
Size of the package version- Returns:
- size
-
setSize
-
type
-
getType
Type of the package- Returns:
- type
-
setType
-
version
-
getVersion
Version of the package- Returns:
- version
-
setVersion
-
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 QuotaUsedPackage
-
fromJson
Create an instance of QuotaUsedPackage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuotaUsedPackage
- Throws:
IOException- if the JSON string is invalid with respect to QuotaUsedPackage
-
toJson
Convert an instance of QuotaUsedPackage to an JSON string- Returns:
- JSON string
-