Class V1Volume
java.lang.Object
io.kubernetes.client.openapi.models.V1Volume
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1Volume
extends Object
Volume represents a named volume in a pod that may be accessed by any container in the pod.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsElasticBlockStore
(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) azureDisk
(V1AzureDiskVolumeSource azureDisk) azureFile
(V1AzureFileVolumeSource azureFile) cephfs
(V1CephFSVolumeSource cephfs) cinder
(V1CinderVolumeSource cinder) configMap
(V1ConfigMapVolumeSource configMap) csi
(V1CSIVolumeSource csi) downwardAPI
(V1DownwardAPIVolumeSource downwardAPI) emptyDir
(V1EmptyDirVolumeSource emptyDir) ephemeral
(V1EphemeralVolumeSource ephemeral) boolean
fc
(V1FCVolumeSource fc) flexVolume
(V1FlexVolumeSource flexVolume) flocker
(V1FlockerVolumeSource flocker) static V1Volume
Create an instance of V1Volume given an JSON stringgcePersistentDisk
(V1GCEPersistentDiskVolumeSource gcePersistentDisk) Get awsElasticBlockStoreGet azureDiskGet azureFileGet cephfsGet cinderGet configMapgetCsi()
Get csiGet downwardAPIGet emptyDirGet ephemeralgetFc()
Get fcGet flexVolumeGet flockerGet gcePersistentDiskGet gitRepoGet glusterfsGet hostPathgetIscsi()
Get iscsigetName()
name of the volume.getNfs()
Get nfsGet persistentVolumeClaimGet photonPersistentDiskGet portworxVolumeGet projectedGet quobytegetRbd()
Get rbdGet scaleIOGet secretGet storageosGet vsphereVolumegitRepo
(V1GitRepoVolumeSource gitRepo) glusterfs
(V1GlusterfsVolumeSource glusterfs) int
hashCode()
hostPath
(V1HostPathVolumeSource hostPath) iscsi
(V1ISCSIVolumeSource iscsi) nfs
(V1NFSVolumeSource nfs) persistentVolumeClaim
(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) photonPersistentDisk
(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) portworxVolume
(V1PortworxVolumeSource portworxVolume) projected
(V1ProjectedVolumeSource projected) quobyte
(V1QuobyteVolumeSource quobyte) rbd
(V1RBDVolumeSource rbd) scaleIO
(V1ScaleIOVolumeSource scaleIO) secret
(V1SecretVolumeSource secret) void
setAwsElasticBlockStore
(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) void
setAzureDisk
(V1AzureDiskVolumeSource azureDisk) void
setAzureFile
(V1AzureFileVolumeSource azureFile) void
setCephfs
(V1CephFSVolumeSource cephfs) void
setCinder
(V1CinderVolumeSource cinder) void
setConfigMap
(V1ConfigMapVolumeSource configMap) void
setCsi
(V1CSIVolumeSource csi) void
setDownwardAPI
(V1DownwardAPIVolumeSource downwardAPI) void
setEmptyDir
(V1EmptyDirVolumeSource emptyDir) void
setEphemeral
(V1EphemeralVolumeSource ephemeral) void
void
setFlexVolume
(V1FlexVolumeSource flexVolume) void
setFlocker
(V1FlockerVolumeSource flocker) void
setGcePersistentDisk
(V1GCEPersistentDiskVolumeSource gcePersistentDisk) void
setGitRepo
(V1GitRepoVolumeSource gitRepo) void
setGlusterfs
(V1GlusterfsVolumeSource glusterfs) void
setHostPath
(V1HostPathVolumeSource hostPath) void
setIscsi
(V1ISCSIVolumeSource iscsi) void
void
setNfs
(V1NFSVolumeSource nfs) void
setPersistentVolumeClaim
(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) void
setPhotonPersistentDisk
(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) void
setPortworxVolume
(V1PortworxVolumeSource portworxVolume) void
setProjected
(V1ProjectedVolumeSource projected) void
setQuobyte
(V1QuobyteVolumeSource quobyte) void
setRbd
(V1RBDVolumeSource rbd) void
setScaleIO
(V1ScaleIOVolumeSource scaleIO) void
setSecret
(V1SecretVolumeSource secret) void
setStorageos
(V1StorageOSVolumeSource storageos) void
setVsphereVolume
(V1VsphereVirtualDiskVolumeSource vsphereVolume) storageos
(V1StorageOSVolumeSource storageos) toJson()
Convert an instance of V1Volume to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvsphereVolume
(V1VsphereVirtualDiskVolumeSource vsphereVolume)
-
Field Details
-
SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE
- See Also:
-
SERIALIZED_NAME_AZURE_DISK
- See Also:
-
SERIALIZED_NAME_AZURE_FILE
- See Also:
-
SERIALIZED_NAME_CEPHFS
- See Also:
-
SERIALIZED_NAME_CINDER
- See Also:
-
SERIALIZED_NAME_CONFIG_MAP
- See Also:
-
SERIALIZED_NAME_CSI
- See Also:
-
SERIALIZED_NAME_DOWNWARD_A_P_I
- See Also:
-
SERIALIZED_NAME_EMPTY_DIR
- See Also:
-
SERIALIZED_NAME_EPHEMERAL
- 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_GIT_REPO
- See Also:
-
SERIALIZED_NAME_GLUSTERFS
- See Also:
-
SERIALIZED_NAME_HOST_PATH
- See Also:
-
SERIALIZED_NAME_ISCSI
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NFS
- See Also:
-
SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM
- See Also:
-
SERIALIZED_NAME_PHOTON_PERSISTENT_DISK
- See Also:
-
SERIALIZED_NAME_PORTWORX_VOLUME
- See Also:
-
SERIALIZED_NAME_PROJECTED
- See Also:
-
SERIALIZED_NAME_QUOBYTE
- See Also:
-
SERIALIZED_NAME_RBD
- See Also:
-
SERIALIZED_NAME_SCALE_I_O
- See Also:
-
SERIALIZED_NAME_SECRET
- See Also:
-
SERIALIZED_NAME_STORAGEOS
- See Also:
-
SERIALIZED_NAME_VSPHERE_VOLUME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Volume
public V1Volume()
-
-
Method Details
-
awsElasticBlockStore
-
getAwsElasticBlockStore
Get awsElasticBlockStore- Returns:
- awsElasticBlockStore
-
setAwsElasticBlockStore
-
azureDisk
-
getAzureDisk
Get azureDisk- Returns:
- azureDisk
-
setAzureDisk
-
azureFile
-
getAzureFile
Get azureFile- Returns:
- azureFile
-
setAzureFile
-
cephfs
-
getCephfs
Get cephfs- Returns:
- cephfs
-
setCephfs
-
cinder
-
getCinder
Get cinder- Returns:
- cinder
-
setCinder
-
configMap
-
getConfigMap
Get configMap- Returns:
- configMap
-
setConfigMap
-
csi
-
getCsi
Get csi- Returns:
- csi
-
setCsi
-
downwardAPI
-
getDownwardAPI
Get downwardAPI- Returns:
- downwardAPI
-
setDownwardAPI
-
emptyDir
-
getEmptyDir
Get emptyDir- Returns:
- emptyDir
-
setEmptyDir
-
ephemeral
-
getEphemeral
Get ephemeral- Returns:
- ephemeral
-
setEphemeral
-
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
-
gitRepo
-
getGitRepo
Get gitRepo- Returns:
- gitRepo
-
setGitRepo
-
glusterfs
-
getGlusterfs
Get glusterfs- Returns:
- glusterfs
-
setGlusterfs
-
hostPath
-
getHostPath
Get hostPath- Returns:
- hostPath
-
setHostPath
-
iscsi
-
getIscsi
Get iscsi- Returns:
- iscsi
-
setIscsi
-
name
-
getName
name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names- Returns:
- name
-
setName
-
nfs
-
getNfs
Get nfs- Returns:
- nfs
-
setNfs
-
persistentVolumeClaim
-
getPersistentVolumeClaim
Get persistentVolumeClaim- Returns:
- persistentVolumeClaim
-
setPersistentVolumeClaim
-
photonPersistentDisk
-
getPhotonPersistentDisk
Get photonPersistentDisk- Returns:
- photonPersistentDisk
-
setPhotonPersistentDisk
-
portworxVolume
-
getPortworxVolume
Get portworxVolume- Returns:
- portworxVolume
-
setPortworxVolume
-
projected
-
getProjected
Get projected- Returns:
- projected
-
setProjected
-
quobyte
-
getQuobyte
Get quobyte- Returns:
- quobyte
-
setQuobyte
-
rbd
-
getRbd
Get rbd- Returns:
- rbd
-
setRbd
-
scaleIO
-
getScaleIO
Get scaleIO- Returns:
- scaleIO
-
setScaleIO
-
secret
-
getSecret
Get secret- Returns:
- secret
-
setSecret
-
storageos
-
getStorageos
Get storageos- Returns:
- storageos
-
setStorageos
-
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 V1Volume
-
fromJson
Create an instance of V1Volume given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1Volume
- Throws:
IOException
- if the JSON string is invalid with respect to V1Volume
-
toJson
Convert an instance of V1Volume to an JSON string- Returns:
- JSON string
-