Package kubevirt.io

Class V1Volume


  • @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
               date="2019-11-10T14:44:51.030+02:00")
    public class V1Volume
    extends java.lang.Object
    Volume represents a named volume in a vmi.
    • Constructor Detail

      • V1Volume

        public V1Volume()
    • Method Detail

      • getCloudInitConfigDrive

        public V1CloudInitConfigDriveSource 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
      • getCloudInitNoCloud

        public V1CloudInitNoCloudSource 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
      • getConfigMap

        public V1ConfigMapVolumeSource 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
      • getContainerDisk

        public V1ContainerDiskSource 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
      • getDataVolume

        public V1DataVolumeSource 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
      • getEmptyDisk

        public V1EmptyDiskSource 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
      • getEphemeral

        public V1EphemeralVolumeSource getEphemeral()
        Ephemeral is a special volume source that \"wraps\" specified source and provides copy-on-write image on top of it. +optional
        Returns:
        ephemeral
      • getHostDisk

        public V1HostDisk getHostDisk()
        HostDisk represents a disk created on the cluster level +optional
        Returns:
        hostDisk
      • setHostDisk

        public void setHostDisk​(V1HostDisk hostDisk)
      • name

        public V1Volume name​(java.lang.String name)
      • getName

        public java.lang.String 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

        public void setName​(java.lang.String name)
      • getPersistentVolumeClaim

        public V1PersistentVolumeClaimVolumeSource 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
      • getSecret

        public V1SecretVolumeSource 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
      • getServiceAccount

        public V1ServiceAccountVolumeSource 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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toIndentedString

        private java.lang.String toIndentedString​(java.lang.Object o)
        Convert the given object to string with each line indented by 4 spaces (except the first line).