Class V1PersistentVolumeSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1PersistentVolumeSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1PersistentVolumeSpec
extends Object
PersistentVolumeSpec is the specification of a persistent volume.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessModes(List<String> accessModes) addAccessModesItem(String accessModesItem) addMountOptionsItem(String mountOptionsItem) awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) azureDisk(V1AzureDiskVolumeSource azureDisk) azureFile(V1AzureFilePersistentVolumeSource azureFile) cephfs(V1CephFSPersistentVolumeSource cephfs) cinder(V1CinderPersistentVolumeSource cinder) claimRef(V1ObjectReference claimRef) booleanfc(V1FCVolumeSource fc) flexVolume(V1FlexPersistentVolumeSource flexVolume) flocker(V1FlockerVolumeSource flocker) static V1PersistentVolumeSpecCreate an instance of V1PersistentVolumeSpec given an JSON stringgcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) accessModes contains all ways the volume can be mounted.Get awsElasticBlockStoreGet azureDiskGet azureFilecapacity is the description of the persistent volume's resources and capacity.Get cephfsGet cinderGet claimRefgetCsi()Get csigetFc()Get fcGet flexVolumeGet flockerGet gcePersistentDiskGet glusterfsGet hostPathgetIscsi()Get iscsigetLocal()Get localmountOptions is the list of mount options, e.g.getNfs()Get nfsGet nodeAffinitypersistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.Get photonPersistentDiskGet portworxVolumeGet quobytegetRbd()Get rbdGet scaleIOstorageClassName is the name of StorageClass to which this persistent volume belongs.Get storageosvolumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state.Get vsphereVolumeglusterfs(V1GlusterfsPersistentVolumeSource glusterfs) inthashCode()hostPath(V1HostPathVolumeSource hostPath) local(V1LocalVolumeSource local) mountOptions(List<String> mountOptions) nfs(V1NFSVolumeSource nfs) nodeAffinity(V1VolumeNodeAffinity nodeAffinity) persistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) portworxVolume(V1PortworxVolumeSource portworxVolume) putCapacityItem(String key, Quantity capacityItem) quobyte(V1QuobyteVolumeSource quobyte) scaleIO(V1ScaleIOPersistentVolumeSource scaleIO) voidsetAccessModes(List<String> accessModes) voidsetAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) voidsetAzureDisk(V1AzureDiskVolumeSource azureDisk) voidsetAzureFile(V1AzureFilePersistentVolumeSource azureFile) voidsetCapacity(Map<String, Quantity> capacity) voidvoidvoidsetClaimRef(V1ObjectReference claimRef) voidvoidvoidsetFlexVolume(V1FlexPersistentVolumeSource flexVolume) voidsetFlocker(V1FlockerVolumeSource flocker) voidsetGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) voidsetGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) voidsetHostPath(V1HostPathVolumeSource hostPath) voidvoidsetLocal(V1LocalVolumeSource local) voidsetMountOptions(List<String> mountOptions) voidsetNfs(V1NFSVolumeSource nfs) voidsetNodeAffinity(V1VolumeNodeAffinity nodeAffinity) voidsetPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) voidsetPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) voidsetPortworxVolume(V1PortworxVolumeSource portworxVolume) voidsetQuobyte(V1QuobyteVolumeSource quobyte) voidvoidvoidsetStorageClassName(String storageClassName) voidsetStorageos(V1StorageOSPersistentVolumeSource storageos) voidsetVolumeMode(String volumeMode) voidsetVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) storageClassName(String storageClassName) storageos(V1StorageOSPersistentVolumeSource storageos) toJson()Convert an instance of V1PersistentVolumeSpec to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvolumeMode(String volumeMode) vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume)
-
Field Details
-
SERIALIZED_NAME_ACCESS_MODES
- See Also:
-
SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE
- See Also:
-
SERIALIZED_NAME_AZURE_DISK
- See Also:
-
SERIALIZED_NAME_AZURE_FILE
- See Also:
-
SERIALIZED_NAME_CAPACITY
- See Also:
-
SERIALIZED_NAME_CEPHFS
- See Also:
-
SERIALIZED_NAME_CINDER
- See Also:
-
SERIALIZED_NAME_CLAIM_REF
- See Also:
-
SERIALIZED_NAME_CSI
- See Also:
-
SERIALIZED_NAME_FC
- See Also:
-
SERIALIZED_NAME_FLEX_VOLUME
- See Also:
-
SERIALIZED_NAME_FLOCKER
- See Also:
-
SERIALIZED_NAME_GCE_PERSISTENT_DISK
- See Also:
-
SERIALIZED_NAME_GLUSTERFS
- See Also:
-
SERIALIZED_NAME_HOST_PATH
- See Also:
-
SERIALIZED_NAME_ISCSI
- See Also:
-
SERIALIZED_NAME_LOCAL
- See Also:
-
SERIALIZED_NAME_MOUNT_OPTIONS
- See Also:
-
SERIALIZED_NAME_NFS
- See Also:
-
SERIALIZED_NAME_NODE_AFFINITY
- See Also:
-
SERIALIZED_NAME_PERSISTENT_VOLUME_RECLAIM_POLICY
- See Also:
-
SERIALIZED_NAME_PHOTON_PERSISTENT_DISK
- See Also:
-
SERIALIZED_NAME_PORTWORX_VOLUME
- See Also:
-
SERIALIZED_NAME_QUOBYTE
- See Also:
-
SERIALIZED_NAME_RBD
- See Also:
-
SERIALIZED_NAME_SCALE_I_O
- See Also:
-
SERIALIZED_NAME_STORAGE_CLASS_NAME
- See Also:
-
SERIALIZED_NAME_STORAGEOS
- See Also:
-
SERIALIZED_NAME_VOLUME_MODE
- See Also:
-
SERIALIZED_NAME_VSPHERE_VOLUME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PersistentVolumeSpec
public V1PersistentVolumeSpec()
-
-
Method Details
-
accessModes
-
addAccessModesItem
-
getAccessModes
accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes- Returns:
- accessModes
-
setAccessModes
-
awsElasticBlockStore
public V1PersistentVolumeSpec awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) -
getAwsElasticBlockStore
Get awsElasticBlockStore- Returns:
- awsElasticBlockStore
-
setAwsElasticBlockStore
-
azureDisk
-
getAzureDisk
Get azureDisk- Returns:
- azureDisk
-
setAzureDisk
-
azureFile
-
getAzureFile
Get azureFile- Returns:
- azureFile
-
setAzureFile
-
capacity
-
putCapacityItem
-
getCapacity
capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity- Returns:
- capacity
-
setCapacity
-
cephfs
-
getCephfs
Get cephfs- Returns:
- cephfs
-
setCephfs
-
cinder
-
getCinder
Get cinder- Returns:
- cinder
-
setCinder
-
claimRef
-
getClaimRef
Get claimRef- Returns:
- claimRef
-
setClaimRef
-
csi
-
getCsi
Get csi- Returns:
- csi
-
setCsi
-
fc
-
getFc
Get fc- Returns:
- fc
-
setFc
-
flexVolume
-
getFlexVolume
Get flexVolume- Returns:
- flexVolume
-
setFlexVolume
-
flocker
-
getFlocker
Get flocker- Returns:
- flocker
-
setFlocker
-
gcePersistentDisk
-
getGcePersistentDisk
Get gcePersistentDisk- Returns:
- gcePersistentDisk
-
setGcePersistentDisk
-
glusterfs
-
getGlusterfs
Get glusterfs- Returns:
- glusterfs
-
setGlusterfs
-
hostPath
-
getHostPath
Get hostPath- Returns:
- hostPath
-
setHostPath
-
iscsi
-
getIscsi
Get iscsi- Returns:
- iscsi
-
setIscsi
-
local
-
getLocal
Get local- Returns:
- local
-
setLocal
-
mountOptions
-
addMountOptionsItem
-
getMountOptions
mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options- Returns:
- mountOptions
-
setMountOptions
-
nfs
-
getNfs
Get nfs- Returns:
- nfs
-
setNfs
-
nodeAffinity
-
getNodeAffinity
Get nodeAffinity- Returns:
- nodeAffinity
-
setNodeAffinity
-
persistentVolumeReclaimPolicy
-
getPersistentVolumeReclaimPolicy
persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming- Returns:
- persistentVolumeReclaimPolicy
-
setPersistentVolumeReclaimPolicy
-
photonPersistentDisk
public V1PersistentVolumeSpec photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) -
getPhotonPersistentDisk
Get photonPersistentDisk- Returns:
- photonPersistentDisk
-
setPhotonPersistentDisk
-
portworxVolume
-
getPortworxVolume
Get portworxVolume- Returns:
- portworxVolume
-
setPortworxVolume
-
quobyte
-
getQuobyte
Get quobyte- Returns:
- quobyte
-
setQuobyte
-
rbd
-
getRbd
Get rbd- Returns:
- rbd
-
setRbd
-
scaleIO
-
getScaleIO
Get scaleIO- Returns:
- scaleIO
-
setScaleIO
-
storageClassName
-
getStorageClassName
storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.- Returns:
- storageClassName
-
setStorageClassName
-
storageos
-
getStorageos
Get storageos- Returns:
- storageos
-
setStorageos
-
volumeMode
-
getVolumeMode
volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.- Returns:
- volumeMode
-
setVolumeMode
-
vsphereVolume
-
getVsphereVolume
Get vsphereVolume- Returns:
- vsphereVolume
-
setVsphereVolume
-
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 V1PersistentVolumeSpec
-
fromJson
Create an instance of V1PersistentVolumeSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1PersistentVolumeSpec
- Throws:
IOException- if the JSON string is invalid with respect to V1PersistentVolumeSpec
-
toJson
Convert an instance of V1PersistentVolumeSpec to an JSON string- Returns:
- JSON string
-