Class: Com::Vmware::Vcenter::Vm::Hardware::Adapter::Sata

Inherits:
VAPI::Bindings::VapiService
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb

Overview

The ``Com::Vmware::Vcenter::Vm::Hardware::Adapter::Sata`` class provides methods for configuring the virtual SATA adapters of a virtual machine.

Defined Under Namespace

Classes: CreateSpec, Info, Summary, Type

Constant Summary

RESOURCE_TYPE =
'com.vmware.vcenter.vm.hardware.SataAdapter'

Instance Method Summary (collapse)

Constructor Details

- (Sata) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



128
129
130
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 128

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

Instance Method Details

- (String) create(vm, spec)

Adds a virtual SATA adapter to the virtual machine.

Parameters:

Returns:

  • (String)

    Virtual SATA adapter identifier.

Raises:



222
223
224
225
226
227
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 222

def create(vm, spec)
    invoke_with_info(@@create_info, {
        'vm' => vm,
        'spec' => spec,
    })
end

- (Void) delete(vm, adapter)

Removes a virtual SATA adapter from the virtual machine.

Parameters:

  • vm (String)

    Virtual machine identifier.

  • adapter (String)

    Virtual SATA adapter identifier.

Returns:

  • (Void)

Raises:



253
254
255
256
257
258
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 253

def delete(vm, adapter)
    invoke_with_info(@@delete_info, {
        'vm' => vm,
        'adapter' => adapter,
    })
end

- (Com::Vmware::Vcenter::Vm::Hardware::Adapter::Sata::Info) get(vm, adapter)

Returns information about a virtual SATA adapter.

Parameters:

  • vm (String)

    Virtual machine identifier.

  • adapter (String)

    Virtual SATA adapter identifier.

Returns:

Raises:



180
181
182
183
184
185
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 180

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

- (Array<Com::Vmware::Vcenter::Vm::Hardware::Adapter::Sata::Summary>) list(vm)

Returns commonly used information about the virtual SATA adapters belonging to the virtual machine.

Parameters:

  • vm (String)

    Virtual machine identifier.

Returns:

Raises:



153
154
155
156
157
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 153

def list(vm)
    invoke_with_info(@@list_info, {
        'vm' => vm,
    })
end