VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
 All Classes Files Functions
List of all members
Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec Class Reference
Inheritance diagram for Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec:

Avaliable Methods

public method get_cores_per_socket ()
 
public method set_hot_add_enabled ()
 
public method get_hot_add_enabled ()
 
public method set_hot_remove_enabled ()
 
public method get_count ()
 
public method set_count ()
 
public method new ()
 
public method set_cores_per_socket ()
 
public method get_hot_remove_enabled ()
 

Detailed Description

The Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec class describes the updates to be made to the CPU-related settings of a virtual machine.

Member Function Documentation

public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::get_cores_per_socket ( )

Gets the value of 'cores_per_socket' property.

Return values
cores_per_socket- The current value of the field. New number of CPU cores per socket. The number of CPU cores in the virtual machine must be a multiple of the number of cores per socket. Optional#
Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::get_count ( )

Gets the value of 'count' property.

Return values
count- The current value of the field. New number of CPU cores. The number of CPU cores in the virtual machine must be a multiple of the number of cores per socket.

The supported range of CPU counts is constrained by the configured guest operating system and virtual hardware version of the virtual machine.

If the virtual machine is running, the number of CPU cores may only be increased if :attr:Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info.hot_add_enabled is true, and may only be decreased if :attr:Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info.hot_remove_enabled is true.

Optional#

Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::get_hot_add_enabled ( )

Gets the value of 'hot_add_enabled' property.

Return values
hot_add_enabled- The current value of the field. Flag indicating whether adding CPUs while the virtual machine is running is enabled.

This field may only be modified if the virtual machine is powered off.

Optional#

Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::get_hot_remove_enabled ( )

Gets the value of 'hot_remove_enabled' property.

Return values
hot_remove_enabled- The current value of the field. Flag indicating whether removing CPUs while the virtual machine is running is enabled.

This field may only be modified if the virtual machine is powered off.

Optional#

Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::new ( )

Constructor to initialize the Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec structure

Return values
Blessedobject
Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::set_cores_per_socket ( )

Sets the given value for 'cores_per_socket' property.

Parameters
cores_per_socket- New value for the field. New number of CPU cores per socket. The number of CPU cores in the virtual machine must be a multiple of the number of cores per socket.
Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::set_count ( )

Sets the given value for 'count' property.

Parameters
count- New value for the field. New number of CPU cores. The number of CPU cores in the virtual machine must be a multiple of the number of cores per socket.

The supported range of CPU counts is constrained by the configured guest operating system and virtual hardware version of the virtual machine.

If the virtual machine is running, the number of CPU cores may only be increased if :attr:Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info.hot_add_enabled is true, and may only be decreased if :attr:Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info.hot_remove_enabled is true.

Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::set_hot_add_enabled ( )

Sets the given value for 'hot_add_enabled' property.

Parameters
hot_add_enabled- New value for the field. Flag indicating whether adding CPUs while the virtual machine is running is enabled.

This field may only be modified if the virtual machine is powered off.

Code:
click to view
public method Com::Vmware::Vcenter::Vm::Hardware::Cpu::UpdateSpec::set_hot_remove_enabled ( )

Sets the given value for 'hot_remove_enabled' property.

Parameters
hot_remove_enabled- New value for the field. Flag indicating whether removing CPUs while the virtual machine is running is enabled.

This field may only be modified if the virtual machine is powered off.

Code:
click to view

The documentation for this class was generated from the following file: