Class V1ResourceQuotaSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1ResourceQuotaSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object 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
-