Class QuotaInfo
java.lang.Object
build.cursed.genapi.forgejo.model.QuotaInfo
@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 QuotaInfo
extends Object
QuotaInfo represents information about a user's quota
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupsItem(QuotaGroup groupsItem) booleanstatic QuotaInfoCreate an instance of QuotaInfo given an JSON stringQuotaGroupList represents a list of quota groupsgetUsed()Get usedgroups(List<QuotaGroup> groups) inthashCode()voidsetGroups(List<QuotaGroup> groups) voidtoJson()Convert an instance of QuotaInfo 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_GROUPS
- See Also:
-
SERIALIZED_NAME_USED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
QuotaInfo
public QuotaInfo()
-
-
Method Details
-
groups
-
addGroupsItem
-
getGroups
QuotaGroupList represents a list of quota groups- Returns:
- groups
-
setGroups
-
used
-
getUsed
Get used- Returns:
- used
-
setUsed
-
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 QuotaInfo
-
fromJson
Create an instance of QuotaInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of QuotaInfo
- Throws:
IOException- if the JSON string is invalid with respect to QuotaInfo
-
toJson
Convert an instance of QuotaInfo to an JSON string- Returns:
- JSON string
-