Class V1PersistentVolumeSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1PersistentVolumeSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1PersistentVolumeSpec
extends Object
PersistentVolumeSpec is the specification of a persistent volume.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
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) boolean
fc
(V1FCVolumeSource fc) flexVolume
(V1FlexPersistentVolumeSource flexVolume) flocker
(V1FlockerVolumeSource flocker) gcePersistentDisk
(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) int
hashCode()
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) void
setAccessModes
(List<String> accessModes) void
setAwsElasticBlockStore
(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) void
setAzureDisk
(V1AzureDiskVolumeSource azureDisk) void
setAzureFile
(V1AzureFilePersistentVolumeSource azureFile) void
setCapacity
(Map<String, Quantity> capacity) void
void
void
setClaimRef
(V1ObjectReference claimRef) void
void
void
setFlexVolume
(V1FlexPersistentVolumeSource flexVolume) void
setFlocker
(V1FlockerVolumeSource flocker) void
setGcePersistentDisk
(V1GCEPersistentDiskVolumeSource gcePersistentDisk) void
setGlusterfs
(V1GlusterfsPersistentVolumeSource glusterfs) void
setHostPath
(V1HostPathVolumeSource hostPath) void
void
setLocal
(V1LocalVolumeSource local) void
setMountOptions
(List<String> mountOptions) void
setNfs
(V1NFSVolumeSource nfs) void
setNodeAffinity
(V1VolumeNodeAffinity nodeAffinity) void
setPersistentVolumeReclaimPolicy
(String persistentVolumeReclaimPolicy) void
setPhotonPersistentDisk
(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) void
setPortworxVolume
(V1PortworxVolumeSource portworxVolume) void
setQuobyte
(V1QuobyteVolumeSource quobyte) void
void
void
setStorageClassName
(String storageClassName) void
setStorageos
(V1StorageOSPersistentVolumeSource storageos) void
setVolumeMode
(String volumeMode) void
setVsphereVolume
(V1VsphereVirtualDiskVolumeSource vsphereVolume) storageClassName
(String storageClassName) storageos
(V1StorageOSPersistentVolumeSource storageos) toString()
volumeMode
(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:
-
-
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
-