Class V1StorageClass
java.lang.Object
io.kubernetes.client.openapi.models.V1StorageClass
- All Implemented Interfaces:
KubernetesObject,KubernetesType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1StorageClass
extends Object
implements KubernetesObject
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowedTopologiesItem(V1TopologySelectorTerm allowedTopologiesItem) addMountOptionsItem(String mountOptionsItem) allowedTopologies(List<V1TopologySelectorTerm> allowedTopologies) allowVolumeExpansion(Boolean allowVolumeExpansion) apiVersion(String apiVersion) booleanallowedTopologies restrict the node topologies where volumes can be dynamically provisioned.allowVolumeExpansion shows whether the storage class allow volume expand.APIVersion defines the versioned schema of this representation of an object.getKind()Kind is a string value representing the REST resource this object represents.Get metadatamountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class.parameters holds the parameters for the provisioner that should create volumes of this storage class.provisioner indicates the type of the provisioner.reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class.volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound.inthashCode()metadata(V1ObjectMeta metadata) mountOptions(List<String> mountOptions) parameters(Map<String, String> parameters) provisioner(String provisioner) putParametersItem(String key, String parametersItem) reclaimPolicy(String reclaimPolicy) voidsetAllowedTopologies(List<V1TopologySelectorTerm> allowedTopologies) voidsetAllowVolumeExpansion(Boolean allowVolumeExpansion) voidsetApiVersion(String apiVersion) voidvoidsetMetadata(V1ObjectMeta metadata) voidsetMountOptions(List<String> mountOptions) voidsetParameters(Map<String, String> parameters) voidsetProvisioner(String provisioner) voidsetReclaimPolicy(String reclaimPolicy) voidsetVolumeBindingMode(String volumeBindingMode) toString()volumeBindingMode(String volumeBindingMode)
-
Field Details
-
SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION
- See Also:
-
SERIALIZED_NAME_ALLOWED_TOPOLOGIES
- See Also:
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_MOUNT_OPTIONS
- See Also:
-
SERIALIZED_NAME_PARAMETERS
- See Also:
-
SERIALIZED_NAME_PROVISIONER
- See Also:
-
SERIALIZED_NAME_RECLAIM_POLICY
- See Also:
-
SERIALIZED_NAME_VOLUME_BINDING_MODE
- See Also:
-
-
Constructor Details
-
V1StorageClass
public V1StorageClass()
-
-
Method Details
-
allowVolumeExpansion
-
getAllowVolumeExpansion
allowVolumeExpansion shows whether the storage class allow volume expand.- Returns:
- allowVolumeExpansion
-
setAllowVolumeExpansion
-
allowedTopologies
-
addAllowedTopologiesItem
-
getAllowedTopologies
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.- Returns:
- allowedTopologies
-
setAllowedTopologies
-
apiVersion
-
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 interfaceKubernetesType- Returns:
- apiVersion
-
setApiVersion
-
kind
-
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 interfaceKubernetesType- Returns:
- kind
-
setKind
-
metadata
-
getMetadata
Get metadata- Specified by:
getMetadatain interfaceKubernetesObject- Returns:
- metadata
-
setMetadata
-
mountOptions
-
addMountOptionsItem
-
getMountOptions
mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.- Returns:
- mountOptions
-
setMountOptions
-
parameters
-
putParametersItem
-
getParameters
parameters holds the parameters for the provisioner that should create volumes of this storage class.- Returns:
- parameters
-
setParameters
-
provisioner
-
getProvisioner
provisioner indicates the type of the provisioner.- Returns:
- provisioner
-
setProvisioner
-
reclaimPolicy
-
getReclaimPolicy
reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.- Returns:
- reclaimPolicy
-
setReclaimPolicy
-
volumeBindingMode
-
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.- Returns:
- volumeBindingMode
-
setVolumeBindingMode
-
equals
-
hashCode
public int hashCode() -
toString
-