Class QuotaUsedArtifact
java.lang.Object
build.cursed.genapi.forgejo.model.QuotaUsedArtifact
@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 QuotaUsedArtifact
extends Object
QuotaUsedArtifact represents an artifact counting towards a user's quota
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic QuotaUsedArtifactCreate an instance of QuotaUsedArtifact given an JSON stringHTML URL to the action run containing the artifactgetName()Name of the artifactgetSize()Size of the artifact (compressed)inthashCode()voidsetHtmlUrl(String htmlUrl) voidvoidtoJson()Convert an instance of QuotaUsedArtifact 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuotaUsedArtifact
public QuotaUsedArtifact()
-
-
Method Details
-
htmlUrl
-
getHtmlUrl
HTML URL to the action run containing the artifact- Returns:
- htmlUrl
-
setHtmlUrl
-
name
-
getName
Name of the artifact- Returns:
- name
-
setName
-
size
-
getSize
Size of the artifact (compressed)- Returns:
- size
-
setSize
-
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 QuotaUsedArtifact
-
fromJson
Create an instance of QuotaUsedArtifact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuotaUsedArtifact
- Throws:
IOException- if the JSON string is invalid with respect to QuotaUsedArtifact
-
toJson
Convert an instance of QuotaUsedArtifact to an JSON string- Returns:
- JSON string
-