Class: Com::Vmware::Vcenter::Vm::Hardware::Memory

Inherits:
VAPI::Bindings::VapiService
  • Object
show all
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::Memory`` class provides methods for configuring the memory settings of a virtual machine.

Defined Under Namespace

Classes: Info, UpdateSpec

Instance Method Summary (collapse)

Constructor Details

- (Memory) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



4100
4101
4102
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4100

def initialize(config)
    super(config, @@service_info)
end

Instance Method Details

- (Com::Vmware::Vcenter::Vm::Hardware::Memory::Info) get(vm)

Returns the memory-related settings of a virtual machine.

Parameters:

  • vm (String)

    Virtual machine identifier.

Returns:

Raises:



4123
4124
4125
4126
4127
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4123

def get(vm)
    invoke_with_info(@@get_info, {
        'vm' => vm,
    })
end

- (Void) update(vm, spec)

Updates the memory-related settings of a virtual machine.

Parameters:

Returns:

  • (Void)

Raises:



4157
4158
4159
4160
4161
4162
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 4157

def update(vm, spec)
    invoke_with_info(@@update_info, {
        'vm' => vm,
        'spec' => spec,
    })
end