Package kubevirt.io
Class V1Volume
java.lang.Object
kubevirt.io.V1Volume
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1Volume
extends Object
Volume represents a named volume in a vmi.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate V1CloudInitConfigDriveSourceprivate V1CloudInitNoCloudSourceprivate V1ConfigMapVolumeSourceprivate V1ContainerDiskSourceprivate V1DataVolumeSourceprivate V1EmptyDiskSourceprivate V1EphemeralVolumeSourceprivate V1HostDiskprivate Stringprivate V1SecretVolumeSourceprivate V1ServiceAccountVolumeSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloudInitConfigDrive(V1CloudInitConfigDriveSource cloudInitConfigDrive) cloudInitNoCloud(V1CloudInitNoCloudSource cloudInitNoCloud) configMap(V1ConfigMapVolumeSource configMap) containerDisk(V1ContainerDiskSource containerDisk) dataVolume(V1DataVolumeSource dataVolume) emptyDisk(V1EmptyDiskSource emptyDisk) ephemeral(V1EphemeralVolumeSource ephemeral) booleanCloudInitConfigDrive represents a cloud-init Config Drive user-data source.CloudInitNoCloud represents a cloud-init NoCloud user-data source.ConfigMapSource represents a reference to a ConfigMap in the same namespace.ContainerDisk references a docker image, embedding a qcow or raw disk.DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.EmptyDisk represents a temporary disk which shares the vmis lifecycle.Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it.HostDisk represents a disk created on the cluster level +optionalgetName()Volume's name.PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace.SecretVolumeSource represents a reference to a secret data in the same namespace.ServiceAccountVolumeSource represents a reference to a service account.inthashCode()hostDisk(V1HostDisk hostDisk) persistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) secret(V1SecretVolumeSource secret) serviceAccount(V1ServiceAccountVolumeSource serviceAccount) voidsetCloudInitConfigDrive(V1CloudInitConfigDriveSource cloudInitConfigDrive) voidsetCloudInitNoCloud(V1CloudInitNoCloudSource cloudInitNoCloud) voidsetConfigMap(V1ConfigMapVolumeSource configMap) voidsetContainerDisk(V1ContainerDiskSource containerDisk) voidsetDataVolume(V1DataVolumeSource dataVolume) voidsetEmptyDisk(V1EmptyDiskSource emptyDisk) voidsetEphemeral(V1EphemeralVolumeSource ephemeral) voidsetHostDisk(V1HostDisk hostDisk) voidvoidsetPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) voidsetSecret(V1SecretVolumeSource secret) voidsetServiceAccount(V1ServiceAccountVolumeSource serviceAccount) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
cloudInitConfigDrive
-
cloudInitNoCloud
-
configMap
-
containerDisk
-
dataVolume
-
emptyDisk
-
ephemeral
-
hostDisk
-
name
-
persistentVolumeClaim
-
secret
-
serviceAccount
-
-
Constructor Details
-
V1Volume
public V1Volume()
-
-
Method Details
-
cloudInitConfigDrive
-
getCloudInitConfigDrive
CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html +optional- Returns:
- cloudInitConfigDrive
-
setCloudInitConfigDrive
-
cloudInitNoCloud
-
getCloudInitNoCloud
CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html +optional- Returns:
- cloudInitNoCloud
-
setCloudInitNoCloud
-
configMap
-
getConfigMap
ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ +optional- Returns:
- configMap
-
setConfigMap
-
containerDisk
-
getContainerDisk
ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html +optional- Returns:
- containerDisk
-
setContainerDisk
-
dataVolume
-
getDataVolume
DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. +optional- Returns:
- dataVolume
-
setDataVolume
-
emptyDisk
-
getEmptyDisk
EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html +optional- Returns:
- emptyDisk
-
setEmptyDisk
-
ephemeral
-
getEphemeral
Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional- Returns:
- ephemeral
-
setEphemeral
-
hostDisk
-
getHostDisk
HostDisk represents a disk created on the cluster level +optional- Returns:
- hostDisk
-
setHostDisk
-
name
-
getName
Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names- Returns:
- name
-
setName
-
persistentVolumeClaim
-
getPersistentVolumeClaim
PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims +optional- Returns:
- persistentVolumeClaim
-
setPersistentVolumeClaim
-
secret
-
getSecret
SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/ +optional- Returns:
- secret
-
setSecret
-
serviceAccount
-
getServiceAccount
ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional- Returns:
- serviceAccount
-
setServiceAccount
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-