Class VSpherePlatformTopology
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.VSpherePlatformTopology
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<VSpherePlatformTopologyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class VSpherePlatformTopology extends Object implements io.fabric8.kubernetes.api.builder.Editable<VSpherePlatformTopologyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
VSpherePlatformTopology holds the required and optional vCenter objects - datacenter, computeCluster, networks, datastore and resourcePool - to provision virtual machines.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VSpherePlatformTopology()No args constructor for use in serializationVSpherePlatformTopology(String computeCluster, String datacenter, String datastore, String folder, List<String> networks, String resourcePool, String template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VSpherePlatformTopologyBuilderedit()Map<String,Object>getAdditionalProperties()StringgetComputeCluster()computeCluster the absolute path of the vCenter cluster in which virtual machine will be located.StringgetDatacenter()datacenter is the name of vCenter datacenter in which virtual machines will be located.StringgetDatastore()datastore is the absolute path of the datastore in which the virtual machine is located.StringgetFolder()folder is the absolute path of the folder where virtual machines are located.List<String>getNetworks()networks is the list of port group network names within this failure domain.StringgetResourcePool()resourcePool is the absolute path of the resource pool where virtual machines will be created.StringgetTemplate()template is the full inventory path of the virtual machine or template that will be cloned when creating new machines in this failure domain.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetComputeCluster(String computeCluster)computeCluster the absolute path of the vCenter cluster in which virtual machine will be located.voidsetDatacenter(String datacenter)datacenter is the name of vCenter datacenter in which virtual machines will be located.voidsetDatastore(String datastore)datastore is the absolute path of the datastore in which the virtual machine is located.voidsetFolder(String folder)folder is the absolute path of the folder where virtual machines are located.voidsetNetworks(List<String> networks)networks is the list of port group network names within this failure domain.voidsetResourcePool(String resourcePool)resourcePool is the absolute path of the resource pool where virtual machines will be created.voidsetTemplate(String template)template is the full inventory path of the virtual machine or template that will be cloned when creating new machines in this failure domain.VSpherePlatformTopologyBuildertoBuilder()
-
-
-
Method Detail
-
getComputeCluster
public String getComputeCluster()
computeCluster the absolute path of the vCenter cluster in which virtual machine will be located. The absolute path is of the form /<datacenter>/host/<cluster>. The maximum length of the path is 2048 characters.
-
setComputeCluster
public void setComputeCluster(String computeCluster)
computeCluster the absolute path of the vCenter cluster in which virtual machine will be located. The absolute path is of the form /<datacenter>/host/<cluster>. The maximum length of the path is 2048 characters.
-
getDatacenter
public String getDatacenter()
datacenter is the name of vCenter datacenter in which virtual machines will be located. The maximum length of the datacenter name is 80 characters.
-
setDatacenter
public void setDatacenter(String datacenter)
datacenter is the name of vCenter datacenter in which virtual machines will be located. The maximum length of the datacenter name is 80 characters.
-
getDatastore
public String getDatastore()
datastore is the absolute path of the datastore in which the virtual machine is located. The absolute path is of the form /<datacenter>/datastore/<datastore> The maximum length of the path is 2048 characters.
-
setDatastore
public void setDatastore(String datastore)
datastore is the absolute path of the datastore in which the virtual machine is located. The absolute path is of the form /<datacenter>/datastore/<datastore> The maximum length of the path is 2048 characters.
-
getFolder
public String getFolder()
folder is the absolute path of the folder where virtual machines are located. The absolute path is of the form /<datacenter>/vm/<folder>. The maximum length of the path is 2048 characters.
-
setFolder
public void setFolder(String folder)
folder is the absolute path of the folder where virtual machines are located. The absolute path is of the form /<datacenter>/vm/<folder>. The maximum length of the path is 2048 characters.
-
getNetworks
public List<String> getNetworks()
networks is the list of port group network names within this failure domain. If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined. 10 is the maximum number of virtual network devices which may be attached to a VM as defined by: https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0 The available networks (port groups) can be listed using `govc ls 'network/*'` Networks should be in the form of an absolute path: /<datacenter>/network/<portgroup>.
-
setNetworks
public void setNetworks(List<String> networks)
networks is the list of port group network names within this failure domain. If feature gate VSphereMultiNetworks is enabled, up to 10 network adapters may be defined. 10 is the maximum number of virtual network devices which may be attached to a VM as defined by: https://configmax.esp.vmware.com/guest?vmwareproduct=vSphere&release=vSphere%208.0&categories=1-0 The available networks (port groups) can be listed using `govc ls 'network/*'` Networks should be in the form of an absolute path: /<datacenter>/network/<portgroup>.
-
getResourcePool
public String getResourcePool()
resourcePool is the absolute path of the resource pool where virtual machines will be created. The absolute path is of the form /<datacenter>/host/<cluster>/Resources/<resourcepool>. The maximum length of the path is 2048 characters.
-
setResourcePool
public void setResourcePool(String resourcePool)
resourcePool is the absolute path of the resource pool where virtual machines will be created. The absolute path is of the form /<datacenter>/host/<cluster>/Resources/<resourcepool>. The maximum length of the path is 2048 characters.
-
getTemplate
public String getTemplate()
template is the full inventory path of the virtual machine or template that will be cloned when creating new machines in this failure domain. The maximum length of the path is 2048 characters.When omitted, the template will be calculated by the control plane machineset operator based on the region and zone defined in VSpherePlatformFailureDomainSpec. For example, for zone=zonea, region=region1, and infrastructure name=test, the template path would be calculated as /<datacenter>/vm/test-rhcos-region1-zonea.
-
setTemplate
public void setTemplate(String template)
template is the full inventory path of the virtual machine or template that will be cloned when creating new machines in this failure domain. The maximum length of the path is 2048 characters.When omitted, the template will be calculated by the control plane machineset operator based on the region and zone defined in VSpherePlatformFailureDomainSpec. For example, for zone=zonea, region=region1, and infrastructure name=test, the template path would be calculated as /<datacenter>/vm/test-rhcos-region1-zonea.
-
edit
public VSpherePlatformTopologyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<VSpherePlatformTopologyBuilder>
-
toBuilder
public VSpherePlatformTopologyBuilder toBuilder()
-
-