Class 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 serialization
      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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MachinePoolBuilder edit()  
      Map<String,​Object> getAdditionalProperties()  
      String getBootType()
      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.
      Long getCoresPerSocket()
      NumCoresPerSocket is the number of cores per socket in a vm.
      Long getCpus()
      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 VM
      List<String> getFailureDomains()
      FailureDomains optionally configures a list of failure domain names that will be applied to the MachinePool
      List<io.fabric8.openshift.api.model.machine.v1.NutanixGPU> getGpus()
      GPUs is a list of GPU devices to attach to the machine's VM.
      Long getMemoryMiB()
      Memory is the size of a VM's memory in MiB.
      OSDisk getOsDisk()
      MachinePool stores the configuration for a machine pool installed on Nutanix.
      io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier getProject()
      MachinePool stores the configuration for a machine pool installed on Nutanix.
      void setAdditionalProperties​(Map<String,​Object> additionalProperties)  
      void setAdditionalProperty​(String name, Object value)  
      void setBootType​(String bootType)
      BootType indicates the boot type (Legacy, UEFI or SecureBoot) the Machine's VM uses to boot.
      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.
      void setCoresPerSocket​(Long coresPerSocket)
      NumCoresPerSocket is the number of cores per socket in a vm.
      void setCpus​(Long cpus)
      NumCPUs is the total number of virtual processor cores to assign a vm.
      void setDataDisks​(List<DataDisk> dataDisks)
      DataDisks holds information of the data disks to attach to the Machine's VM
      void setFailureDomains​(List<String> failureDomains)
      FailureDomains optionally configures a list of failure domain names that will be applied to the MachinePool
      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.
      void setMemoryMiB​(Long memoryMiB)
      Memory is the size of a VM's memory in MiB.
      void setOsDisk​(OSDisk osDisk)
      MachinePool stores the configuration for a machine pool installed on Nutanix.
      void setProject​(io.fabric8.openshift.api.model.machine.v1.NutanixResourceIdentifier project)
      MachinePool stores the configuration for a machine pool installed on Nutanix.
      MachinePoolBuilder toBuilder()  
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)