Class V1ResourceQuotaSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceQuotaSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ResourceQuotaSpec
extends Object
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddScopesItem(String scopesItem) booleanstatic V1ResourceQuotaSpecCreate an instance of V1ResourceQuotaSpec given an JSON stringgetHard()hard is the set of desired hard limits for each named resource.A collection of filters that must match each object tracked by a quota.Get scopeSelectorinthashCode()putHardItem(String key, Quantity hardItem) scopeSelector(V1ScopeSelector scopeSelector) voidvoidvoidsetScopeSelector(V1ScopeSelector scopeSelector) toJson()Convert an instance of V1ResourceQuotaSpec 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_HARD
- See Also:
-
SERIALIZED_NAME_SCOPE_SELECTOR
- See Also:
-
SERIALIZED_NAME_SCOPES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ResourceQuotaSpec
public V1ResourceQuotaSpec()
-
-
Method Details
-
hard
-
putHardItem
-
getHard
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/- Returns:
- hard
-
setHard
-
scopeSelector
-
getScopeSelector
Get scopeSelector- Returns:
- scopeSelector
-
setScopeSelector
-
scopes
-
addScopesItem
-
getScopes
A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.- Returns:
- scopes
-
setScopes
-
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 V1ResourceQuotaSpec
-
fromJson
Create an instance of V1ResourceQuotaSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ResourceQuotaSpec
- Throws:
IOException- if the JSON string is invalid with respect to V1ResourceQuotaSpec
-
toJson
Convert an instance of V1ResourceQuotaSpec to an JSON string- Returns:
- JSON string
-