Class: Com::Vmware::Vcenter::Vm::Hardware::BootService

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::Boot`` class provides methods for configuring the settings used when booting a virtual machine.

Defined Under Namespace

Classes: CreateSpec, Info, NetworkProtocol, Type, UpdateSpec

Instance Method Summary (collapse)

Constructor Details

- (BootService) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



80
81
82
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 80

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

Instance Method Details

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

Returns the boot-related settings of a virtual machine.

Parameters:

  • vm (String)

    Virtual machine identifier.

Returns:

  • (Com::Vmware::Vcenter::Vm::Hardware::Boot::Info)

    Boot-related settings of the virtual machine.

Raises:



103
104
105
106
107
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 103

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

- (Void) update(vm, spec)

Updates the boot-related settings of a virtual machine.

Parameters:

  • vm (String)

    Virtual machine identifier.

  • spec (Com::Vmware::Vcenter::Vm::Hardware::Boot::UpdateSpec)

    Specification for updating the boot-related settings of the virtual machine.

Returns:

  • (Void)

Raises:



133
134
135
136
137
138
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/vm/hardware.rb', line 133

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