Class: Com::Vmware::Vcenter::Vm::Hardware::Cpu
- Inherits:
-
VAPI::Bindings::VapiService
- Object
- VAPI::Bindings::VapiService
- Com::Vmware::Vcenter::Vm::Hardware::Cpu
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb
Overview
The ``Com::Vmware::Vcenter::Vm::Hardware::Cpu`` class provides methods for configuring the CPU settings of a virtual machine.
Defined Under Namespace
Classes: Info, UpdateSpec
Instance Method Summary (collapse)
-
- (Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info) get(vm)
Returns the CPU-related settings of a virtual machine.
-
- (Cpu) initialize(config)
constructor
Constructs a new instance.
-
- (Void) update(vm, spec)
Updates the CPU-related settings of a virtual machine.
Constructor Details
- (Cpu) initialize(config)
Constructs a new instance.
1415 1416 1417 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1415 def initialize(config) super(config, @@service_info) end |
Instance Method Details
- (Com::Vmware::Vcenter::Vm::Hardware::Cpu::Info) get(vm)
Returns the CPU-related settings of a virtual machine.
1438 1439 1440 1441 1442 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1438 def get(vm) invoke_with_info(@@get_info, { 'vm' => vm, }) end |
- (Void) update(vm, spec)
Updates the CPU-related settings of a virtual machine.
1474 1475 1476 1477 1478 1479 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 1474 def update(vm, spec) invoke_with_info(@@update_info, { 'vm' => vm, 'spec' => spec, }) end |