Package io.fabric8.kubernetes.api.model
Class ResourceQuotaSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.ResourceQuotaSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceQuotaSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceQuotaSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceQuotaSpecBuilder>, KubernetesResource
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceQuotaSpec()No args constructor for use in serializationResourceQuotaSpec(Map<String,Quantity> hard, ScopeSelector scopeSelector, List<String> scopes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceQuotaSpecBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,Quantity>getHard()hard is the set of desired hard limits for each named resource.List<String>getScopes()A collection of filters that must match each object tracked by a quota.ScopeSelectorgetScopeSelector()ResourceQuotaSpec defines the desired hard limits to enforce for Quota.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHard(Map<String,Quantity> hard)hard is the set of desired hard limits for each named resource.voidsetScopes(List<String> scopes)A collection of filters that must match each object tracked by a quota.voidsetScopeSelector(ScopeSelector scopeSelector)ResourceQuotaSpec defines the desired hard limits to enforce for Quota.ResourceQuotaSpecBuildertoBuilder()
-
-
-
Method Detail
-
getHard
public Map<String,Quantity> getHard()
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
-
setHard
public void setHard(Map<String,Quantity> hard)
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
-
getScopeSelector
public ScopeSelector getScopeSelector()
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
-
setScopeSelector
public void setScopeSelector(ScopeSelector scopeSelector)
ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
-
getScopes
public List<String> getScopes()
A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
-
setScopes
public void setScopes(List<String> scopes)
A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
-
edit
public ResourceQuotaSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceQuotaSpecBuilder>
-
toBuilder
public ResourceQuotaSpecBuilder toBuilder()
-
-