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

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::Scsi`` class provides methods for configuring the virtual SCSI adapters of a virtual machine.

Defined Under Namespace

Classes: CreateSpec, Info, Sharing, Summary, Type, UpdateSpec

Constant Summary

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

Instance Method Summary (collapse)

Constructor Details

- (Scsi) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



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

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

Instance Method Details

- (String) create(vm, spec)

Adds a virtual SCSI adapter to the virtual machine.

Parameters:

Returns:

  • (String)

    Virtual SCSI adapter identifier.

Raises:



659
660
661
662
663
664
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 659

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

- (Void) delete(vm, adapter)

Removes a virtual SCSI adapter from the virtual machine.

Parameters:

  • vm (String)

    Virtual machine identifier.

  • adapter (String)

    Virtual SCSI adapter identifier.

Returns:

  • (Void)

Raises:



724
725
726
727
728
729
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 724

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

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

Returns information about a virtual SCSI adapter.

Parameters:

  • vm (String)

    Virtual machine identifier.

  • adapter (String)

    Virtual SCSI adapter identifier.

Returns:

Raises:



617
618
619
620
621
622
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 617

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

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

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

Parameters:

  • vm (String)

    Virtual machine identifier.

Returns:

Raises:



590
591
592
593
594
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 590

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

- (Void) update(vm, adapter, spec)

Updates the configuration of a virtual SCSI adapter.

Parameters:

Returns:

  • (Void)

Raises:



692
693
694
695
696
697
698
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware/adapter.rb', line 692

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