Class VSphereDisk
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.VSphereDisk
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<VSphereDiskBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class VSphereDisk extends Object implements io.fabric8.kubernetes.api.builder.Editable<VSphereDiskBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
VSphereDisk describes additional disks for vSphere.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VSphereDisk()No args constructor for use in serializationVSphereDisk(String name, String provisioningMode, Integer sizeGiB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VSphereDiskBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()name is used to identify the disk definition. name is required needs to be unique so that it can be used to clearly identify purpose of the disk.StringgetProvisioningMode()provisioningMode is an optional field that specifies the provisioning type to be used by this vSphere data disk.IntegergetSizeGiB()sizeGiB is the size of the disk in GiB.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name is used to identify the disk definition. name is required needs to be unique so that it can be used to clearly identify purpose of the disk.voidsetProvisioningMode(String provisioningMode)provisioningMode is an optional field that specifies the provisioning type to be used by this vSphere data disk.voidsetSizeGiB(Integer sizeGiB)sizeGiB is the size of the disk in GiB.VSphereDiskBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
name is used to identify the disk definition. name is required needs to be unique so that it can be used to clearly identify purpose of the disk. It must be at most 80 characters in length and must consist only of alphanumeric characters, hyphens and underscores, and must start and end with an alphanumeric character.
-
setName
public void setName(String name)
name is used to identify the disk definition. name is required needs to be unique so that it can be used to clearly identify purpose of the disk. It must be at most 80 characters in length and must consist only of alphanumeric characters, hyphens and underscores, and must start and end with an alphanumeric character.
-
getProvisioningMode
public String getProvisioningMode()
provisioningMode is an optional field that specifies the provisioning type to be used by this vSphere data disk. Allowed values are "Thin", "Thick", "EagerlyZeroed", and omitted. When set to Thin, the disk will be made using thin provisioning allocating the bare minimum space. When set to Thick, the full disk size will be allocated when disk is created. When set to EagerlyZeroed, the disk will be created using eager zero provisioning. An eager zeroed thick disk has all space allocated and wiped clean of any previous contents on the physical media at creation time. Such disks may take longer time during creation compared to other disk formats. When omitted, no setting will be applied to the data disk and the provisioning mode for the disk will be determined by the default storage policy configured for the datastore in vSphere.
-
setProvisioningMode
public void setProvisioningMode(String provisioningMode)
provisioningMode is an optional field that specifies the provisioning type to be used by this vSphere data disk. Allowed values are "Thin", "Thick", "EagerlyZeroed", and omitted. When set to Thin, the disk will be made using thin provisioning allocating the bare minimum space. When set to Thick, the full disk size will be allocated when disk is created. When set to EagerlyZeroed, the disk will be created using eager zero provisioning. An eager zeroed thick disk has all space allocated and wiped clean of any previous contents on the physical media at creation time. Such disks may take longer time during creation compared to other disk formats. When omitted, no setting will be applied to the data disk and the provisioning mode for the disk will be determined by the default storage policy configured for the datastore in vSphere.
-
getSizeGiB
public Integer getSizeGiB()
sizeGiB is the size of the disk in GiB. The maximum supported size 16384 GiB.
-
setSizeGiB
public void setSizeGiB(Integer sizeGiB)
sizeGiB is the size of the disk in GiB. The maximum supported size 16384 GiB.
-
edit
public VSphereDiskBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<VSphereDiskBuilder>
-
toBuilder
public VSphereDiskBuilder toBuilder()
-
-