Class StorageClass
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.storage.v1beta1.StorageClass
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StorageClassBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StorageClass extends Object implements io.fabric8.kubernetes.api.builder.Editable<StorageClassBuilder>, io.fabric8.kubernetes.api.model.HasMetadata
StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StorageClass()No args constructor for use in serializationStorageClass(Boolean allowVolumeExpansion, List<io.fabric8.kubernetes.api.model.TopologySelectorTerm> allowedTopologies, String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, List<String> mountOptions, Map<String,String> parameters, String provisioner, String reclaimPolicy, String volumeBindingMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageClassBuilderedit()Map<String,Object>getAdditionalProperties()List<io.fabric8.kubernetes.api.model.TopologySelectorTerm>getAllowedTopologies()Restrict the node topologies where volumes can be dynamically provisioned.BooleangetAllowVolumeExpansion()AllowVolumeExpansion shows whether the storage class allow volume expandStringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetKind()Kind is a string value representing the REST resource this object represents.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.List<String>getMountOptions()Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g.Map<String,String>getParameters()Parameters holds the parameters for the provisioner that should create volumes of this storage class.StringgetProvisioner()Provisioner indicates the type of the provisioner.StringgetReclaimPolicy()Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy.StringgetVolumeBindingMode()VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedTopologies(List<io.fabric8.kubernetes.api.model.TopologySelectorTerm> allowedTopologies)Restrict the node topologies where volumes can be dynamically provisioned.voidsetAllowVolumeExpansion(Boolean allowVolumeExpansion)AllowVolumeExpansion shows whether the storage class allow volume expandvoidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.voidsetMountOptions(List<String> mountOptions)Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g.voidsetParameters(Map<String,String> parameters)Parameters holds the parameters for the provisioner that should create volumes of this storage class.voidsetProvisioner(String provisioner)Provisioner indicates the type of the provisioner.voidsetReclaimPolicy(String reclaimPolicy)Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy.voidsetVolumeBindingMode(String volumeBindingMode)VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound.StorageClassBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Constructor Detail
-
StorageClass
public StorageClass()
No args constructor for use in serialization
-
StorageClass
public StorageClass(Boolean allowVolumeExpansion, List<io.fabric8.kubernetes.api.model.TopologySelectorTerm> allowedTopologies, String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, List<String> mountOptions, Map<String,String> parameters, String provisioner, String reclaimPolicy, String volumeBindingMode)
-
-
Method Detail
-
getAllowVolumeExpansion
public Boolean getAllowVolumeExpansion()
AllowVolumeExpansion shows whether the storage class allow volume expand
-
setAllowVolumeExpansion
public void setAllowVolumeExpansion(Boolean allowVolumeExpansion)
AllowVolumeExpansion shows whether the storage class allow volume expand
-
getAllowedTopologies
public List<io.fabric8.kubernetes.api.model.TopologySelectorTerm> getAllowedTopologies()
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
-
setAllowedTopologies
public void setAllowedTopologies(List<io.fabric8.kubernetes.api.model.TopologySelectorTerm> allowedTopologies)
Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getMountOptions
public List<String> getMountOptions()
Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
-
setMountOptions
public void setMountOptions(List<String> mountOptions)
Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
-
getParameters
public Map<String,String> getParameters()
Parameters holds the parameters for the provisioner that should create volumes of this storage class.
-
setParameters
public void setParameters(Map<String,String> parameters)
Parameters holds the parameters for the provisioner that should create volumes of this storage class.
-
getProvisioner
public String getProvisioner()
Provisioner indicates the type of the provisioner.
-
setProvisioner
public void setProvisioner(String provisioner)
Provisioner indicates the type of the provisioner.
-
getReclaimPolicy
public String getReclaimPolicy()
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
-
setReclaimPolicy
public void setReclaimPolicy(String reclaimPolicy)
Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
-
getVolumeBindingMode
public String getVolumeBindingMode()
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
-
setVolumeBindingMode
public void setVolumeBindingMode(String volumeBindingMode)
VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
-
edit
public StorageClassBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<StorageClassBuilder>
-
toBuilder
public StorageClassBuilder toBuilder()
-
-