Class VSphereMachineProviderSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.VSphereMachineProviderSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<VSphereMachineProviderSpecBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,io.fabric8.kubernetes.api.model.Namespaced,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class VSphereMachineProviderSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<VSphereMachineProviderSpecBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.Namespaced
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VSphereMachineProviderSpec()No args constructor for use in serializationVSphereMachineProviderSpec(String apiVersion, String cloneMode, io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret, List<VSphereDisk> dataDisks, Integer diskGiB, String kind, Long memoryMiB, io.fabric8.kubernetes.api.model.ObjectMeta metadata, NetworkSpec network, Integer numCPUs, Integer numCoresPerSocket, String snapshot, List<String> tagIDs, String template, io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret, Workspace workspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VSphereMachineProviderSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.StringgetCloneMode()cloneMode specifies the type of clone operation.io.fabric8.kubernetes.api.model.LocalObjectReferencegetCredentialsSecret()VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.List<VSphereDisk>getDataDisks()dataDisks is a list of non OS disks to be created and attached to the VM.IntegergetDiskGiB()diskGiB is the size of a virtual machine's disk, in GiB.StringgetKind()Kind is a string value representing the REST resource this object represents.LonggetMemoryMiB()memoryMiB is the size of a virtual machine's memory, in MiB.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.NetworkSpecgetNetwork()VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.IntegergetNumCoresPerSocket()NumCPUs is the number of cores among which to distribute CPUs in this virtual machine.IntegergetNumCPUs()numCPUs is the number of virtual processors in a virtual machine.StringgetSnapshot()snapshot is the name of the snapshot from which the VM was clonedList<String>getTagIDs()tagIDs is an optional set of tags to add to an instance.StringgetTemplate()template is the name, inventory path, or instance UUID of the template used to clone new machines.io.fabric8.kubernetes.api.model.LocalObjectReferencegetUserDataSecret()VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.WorkspacegetWorkspace()VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetCloneMode(String cloneMode)cloneMode specifies the type of clone operation.voidsetCredentialsSecret(io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret)VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.voidsetDataDisks(List<VSphereDisk> dataDisks)dataDisks is a list of non OS disks to be created and attached to the VM.voidsetDiskGiB(Integer diskGiB)diskGiB is the size of a virtual machine's disk, in GiB.voidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetMemoryMiB(Long memoryMiB)memoryMiB is the size of a virtual machine's memory, in MiB.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.voidsetNetwork(NetworkSpec network)VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.voidsetNumCoresPerSocket(Integer numCoresPerSocket)NumCPUs is the number of cores among which to distribute CPUs in this virtual machine.voidsetNumCPUs(Integer numCPUs)numCPUs is the number of virtual processors in a virtual machine.voidsetSnapshot(String snapshot)snapshot is the name of the snapshot from which the VM was clonedvoidsetTagIDs(List<String> tagIDs)tagIDs is an optional set of tags to add to an instance.voidsetTemplate(String template)template is the name, inventory path, or instance UUID of the template used to clone new machines.voidsetUserDataSecret(io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret)VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.voidsetWorkspace(Workspace workspace)VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine.VSphereMachineProviderSpecBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Constructor Detail
-
VSphereMachineProviderSpec
public VSphereMachineProviderSpec()
No args constructor for use in serialization
-
VSphereMachineProviderSpec
public VSphereMachineProviderSpec(String apiVersion, String cloneMode, io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret, List<VSphereDisk> dataDisks, Integer diskGiB, String kind, Long memoryMiB, io.fabric8.kubernetes.api.model.ObjectMeta metadata, NetworkSpec network, Integer numCPUs, Integer numCoresPerSocket, String snapshot, List<String> tagIDs, String template, io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret, Workspace workspace)
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getCloneMode
public String getCloneMode()
cloneMode specifies the type of clone operation. The LinkedClone mode is only support for templates that have at least one snapshot. If the template has no snapshots, then CloneMode defaults to FullClone. When LinkedClone mode is enabled the DiskGiB field is ignored as it is not possible to expand disks of linked clones. Defaults to FullClone. When using LinkedClone, if no snapshots exist for the source template, falls back to FullClone.
-
setCloneMode
public void setCloneMode(String cloneMode)
cloneMode specifies the type of clone operation. The LinkedClone mode is only support for templates that have at least one snapshot. If the template has no snapshots, then CloneMode defaults to FullClone. When LinkedClone mode is enabled the DiskGiB field is ignored as it is not possible to expand disks of linked clones. Defaults to FullClone. When using LinkedClone, if no snapshots exist for the source template, falls back to FullClone.
-
getCredentialsSecret
public io.fabric8.kubernetes.api.model.LocalObjectReference getCredentialsSecret()
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setCredentialsSecret
public void setCredentialsSecret(io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret)
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getDataDisks
public List<VSphereDisk> getDataDisks()
dataDisks is a list of non OS disks to be created and attached to the VM. The max number of disk allowed to be attached is currently 29. The max number of disks for any controller is 30, but VM template will always have OS disk so that will leave 29 disks on any controller type.
-
setDataDisks
public void setDataDisks(List<VSphereDisk> dataDisks)
dataDisks is a list of non OS disks to be created and attached to the VM. The max number of disk allowed to be attached is currently 29. The max number of disks for any controller is 30, but VM template will always have OS disk so that will leave 29 disks on any controller type.
-
getDiskGiB
public Integer getDiskGiB()
diskGiB is the size of a virtual machine's disk, in GiB. Defaults to the analogue property value in the template from which this machine is cloned. This parameter will be ignored if 'LinkedClone' CloneMode is set.
-
setDiskGiB
public void setDiskGiB(Integer diskGiB)
diskGiB is the size of a virtual machine's disk, in GiB. Defaults to the analogue property value in the template from which this machine is cloned. This parameter will be ignored if 'LinkedClone' CloneMode is set.
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getMemoryMiB
public Long getMemoryMiB()
memoryMiB is the size of a virtual machine's memory, in MiB. Defaults to the analogue property value in the template from which this machine is cloned.
-
setMemoryMiB
public void setMemoryMiB(Long memoryMiB)
memoryMiB is the size of a virtual machine's memory, in MiB. Defaults to the analogue property value in the template from which this machine is cloned.
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getNetwork
public NetworkSpec getNetwork()
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setNetwork
public void setNetwork(NetworkSpec network)
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getNumCPUs
public Integer getNumCPUs()
numCPUs is the number of virtual processors in a virtual machine. Defaults to the analogue property value in the template from which this machine is cloned.
-
setNumCPUs
public void setNumCPUs(Integer numCPUs)
numCPUs is the number of virtual processors in a virtual machine. Defaults to the analogue property value in the template from which this machine is cloned.
-
getNumCoresPerSocket
public Integer getNumCoresPerSocket()
NumCPUs is the number of cores among which to distribute CPUs in this virtual machine. Defaults to the analogue property value in the template from which this machine is cloned.
-
setNumCoresPerSocket
public void setNumCoresPerSocket(Integer numCoresPerSocket)
NumCPUs is the number of cores among which to distribute CPUs in this virtual machine. Defaults to the analogue property value in the template from which this machine is cloned.
-
getSnapshot
public String getSnapshot()
snapshot is the name of the snapshot from which the VM was cloned
-
setSnapshot
public void setSnapshot(String snapshot)
snapshot is the name of the snapshot from which the VM was cloned
-
getTagIDs
public List<String> getTagIDs()
tagIDs is an optional set of tags to add to an instance. Specified tagIDs must use URN-notation instead of display names. A maximum of 10 tag IDs may be specified.
-
setTagIDs
public void setTagIDs(List<String> tagIDs)
tagIDs is an optional set of tags to add to an instance. Specified tagIDs must use URN-notation instead of display names. A maximum of 10 tag IDs may be specified.
-
getTemplate
public String getTemplate()
template is the name, inventory path, or instance UUID of the template used to clone new machines.
-
setTemplate
public void setTemplate(String template)
template is the name, inventory path, or instance UUID of the template used to clone new machines.
-
getUserDataSecret
public io.fabric8.kubernetes.api.model.LocalObjectReference getUserDataSecret()
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setUserDataSecret
public void setUserDataSecret(io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret)
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getWorkspace
public Workspace getWorkspace()
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setWorkspace
public void setWorkspace(Workspace workspace)
VSphereMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field for an VSphere virtual machine. It is used by the vSphere machine actuator to create a single Machine. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
edit
public VSphereMachineProviderSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<VSphereMachineProviderSpecBuilder>
-
toBuilder
public VSphereMachineProviderSpecBuilder toBuilder()
-
-