Class MachinePool
- java.lang.Object
-
- io.fabric8.openshift.api.model.installer.nutanix.v1.MachinePool
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachinePool extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachinePool stores the configuration for a machine pool installed on Nutanix.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachinePool()No args constructor for use in serializationMachinePool(String bootType, List<io.fabric8.openshift.api.model.machine.v1.NutanixCategory> categories, Long coresPerSocket, Long cpus, List<DataDisk> dataDisks, List<String> failureDomains, List<io.fabric8.openshift.api.model.machine.v1.NutanixGPU> gpus, Long memoryMiB, OSDisk osDisk, io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachinePoolBuilderedit()Map<String,Object>getAdditionalProperties()StringgetBootType()BootType indicates the boot type (Legacy, UEFI or SecureBoot) the Machine's VM uses to boot.List<io.fabric8.openshift.api.model.machine.v1.NutanixCategory>getCategories()Categories optionally adds one or more prism categories (each with key and value) for the Machine's VM to associate with.LonggetCoresPerSocket()NumCoresPerSocket is the number of cores per socket in a vm.LonggetCpus()NumCPUs is the total number of virtual processor cores to assign a vm.List<DataDisk>getDataDisks()DataDisks holds information of the data disks to attach to the Machine's VMList<String>getFailureDomains()FailureDomains optionally configures a list of failure domain names that will be applied to the MachinePoolList<io.fabric8.openshift.api.model.machine.v1.NutanixGPU>getGpus()GPUs is a list of GPU devices to attach to the machine's VM.LonggetMemoryMiB()Memory is the size of a VM's memory in MiB.OSDiskgetOsDisk()MachinePool stores the configuration for a machine pool installed on Nutanix.io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifiergetProject()MachinePool stores the configuration for a machine pool installed on Nutanix.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetBootType(String bootType)BootType indicates the boot type (Legacy, UEFI or SecureBoot) the Machine's VM uses to boot.voidsetCategories(List<io.fabric8.openshift.api.model.machine.v1.NutanixCategory> categories)Categories optionally adds one or more prism categories (each with key and value) for the Machine's VM to associate with.voidsetCoresPerSocket(Long coresPerSocket)NumCoresPerSocket is the number of cores per socket in a vm.voidsetCpus(Long cpus)NumCPUs is the total number of virtual processor cores to assign a vm.voidsetDataDisks(List<DataDisk> dataDisks)DataDisks holds information of the data disks to attach to the Machine's VMvoidsetFailureDomains(List<String> failureDomains)FailureDomains optionally configures a list of failure domain names that will be applied to the MachinePoolvoidsetGpus(List<io.fabric8.openshift.api.model.machine.v1.NutanixGPU> gpus)GPUs is a list of GPU devices to attach to the machine's VM.voidsetMemoryMiB(Long memoryMiB)Memory is the size of a VM's memory in MiB.voidsetOsDisk(OSDisk osDisk)MachinePool stores the configuration for a machine pool installed on Nutanix.voidsetProject(io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier project)MachinePool stores the configuration for a machine pool installed on Nutanix.MachinePoolBuildertoBuilder()
-
-
-
Constructor Detail
-
MachinePool
public MachinePool()
No args constructor for use in serialization
-
MachinePool
public MachinePool(String bootType, List<io.fabric8.openshift.api.model.machine.v1.NutanixCategory> categories, Long coresPerSocket, Long cpus, List<DataDisk> dataDisks, List<String> failureDomains, List<io.fabric8.openshift.api.model.machine.v1.NutanixGPU> gpus, Long memoryMiB, OSDisk osDisk, io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier project)
-
-
Method Detail
-
getBootType
public String getBootType()
BootType indicates the boot type (Legacy, UEFI or SecureBoot) the Machine's VM uses to boot. If this field is empty or omitted, the VM will use the default boot type "Legacy" to boot. "SecureBoot" depends on "UEFI" boot, i.e., enabling "SecureBoot" means that "UEFI" boot is also enabled.
-
setBootType
public void setBootType(String bootType)
BootType indicates the boot type (Legacy, UEFI or SecureBoot) the Machine's VM uses to boot. If this field is empty or omitted, the VM will use the default boot type "Legacy" to boot. "SecureBoot" depends on "UEFI" boot, i.e., enabling "SecureBoot" means that "UEFI" boot is also enabled.
-
getCategories
public List<io.fabric8.openshift.api.model.machine.v1.NutanixCategory> getCategories()
Categories optionally adds one or more prism categories (each with key and value) for the Machine's VM to associate with. All the category key and value pairs specified must already exist in the prism central.
-
setCategories
public void setCategories(List<io.fabric8.openshift.api.model.machine.v1.NutanixCategory> categories)
Categories optionally adds one or more prism categories (each with key and value) for the Machine's VM to associate with. All the category key and value pairs specified must already exist in the prism central.
-
getCoresPerSocket
public Long getCoresPerSocket()
NumCoresPerSocket is the number of cores per socket in a vm. The number of vCPUs on the vm will be NumCPUs times NumCoresPerSocket. For example: 4 CPUs and 4 Cores per socket will result in 16 VPUs. The AHV scheduler treats socket and core allocation exactly the same so there is no benefit to configuring cores over CPUs.
-
setCoresPerSocket
public void setCoresPerSocket(Long coresPerSocket)
NumCoresPerSocket is the number of cores per socket in a vm. The number of vCPUs on the vm will be NumCPUs times NumCoresPerSocket. For example: 4 CPUs and 4 Cores per socket will result in 16 VPUs. The AHV scheduler treats socket and core allocation exactly the same so there is no benefit to configuring cores over CPUs.
-
getCpus
public Long getCpus()
NumCPUs is the total number of virtual processor cores to assign a vm.
-
setCpus
public void setCpus(Long cpus)
NumCPUs is the total number of virtual processor cores to assign a vm.
-
getDataDisks
public List<DataDisk> getDataDisks()
DataDisks holds information of the data disks to attach to the Machine's VM
-
setDataDisks
public void setDataDisks(List<DataDisk> dataDisks)
DataDisks holds information of the data disks to attach to the Machine's VM
-
getFailureDomains
public List<String> getFailureDomains()
FailureDomains optionally configures a list of failure domain names that will be applied to the MachinePool
-
setFailureDomains
public void setFailureDomains(List<String> failureDomains)
FailureDomains optionally configures a list of failure domain names that will be applied to the MachinePool
-
getGpus
public List<io.fabric8.openshift.api.model.machine.v1.NutanixGPU> getGpus()
GPUs is a list of GPU devices to attach to the machine's VM.
-
setGpus
public void setGpus(List<io.fabric8.openshift.api.model.machine.v1.NutanixGPU> gpus)
GPUs is a list of GPU devices to attach to the machine's VM.
-
getMemoryMiB
public Long getMemoryMiB()
Memory is the size of a VM's memory in MiB.
-
setMemoryMiB
public void setMemoryMiB(Long memoryMiB)
Memory is the size of a VM's memory in MiB.
-
getOsDisk
public OSDisk getOsDisk()
MachinePool stores the configuration for a machine pool installed on Nutanix.
-
setOsDisk
public void setOsDisk(OSDisk osDisk)
MachinePool stores the configuration for a machine pool installed on Nutanix.
-
getProject
public io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier getProject()
MachinePool stores the configuration for a machine pool installed on Nutanix.
-
setProject
public void setProject(io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier project)
MachinePool stores the configuration for a machine pool installed on Nutanix.
-
edit
public MachinePoolBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>
-
toBuilder
public MachinePoolBuilder toBuilder()
-
-