Class: Com::Vmware::Appliance::Techpreview::Shutdown

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

Overview

``Com::Vmware::Appliance::Techpreview::Shutdown`` class provides methods Performs reboot/shutdow operations on appliance.

Defined Under Namespace

Classes: ShutdownConfig, ShutdownGetConfig

Instance Method Summary (collapse)

Constructor Details

- (Shutdown) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



726
727
728
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 726

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

Instance Method Details

- (Void) cancel

Cancel pending shutdown action.

Returns:

  • (Void)

Raises:



736
737
738
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 736

def cancel()
    invoke_with_info(@@cancel_info)
end

- (Com::Vmware::Appliance::Techpreview::Shutdown::ShutdownGetConfig) get

Get details about the pending shutdown action.

Returns:

Raises:



775
776
777
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 775

def get()
    invoke_with_info(@@get_info)
end

- (Void) poweroff(config)

Power off the appliance.

Parameters:

Returns:

  • (Void)

Raises:



748
749
750
751
752
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 748

def poweroff(config)
    invoke_with_info(@@poweroff_info, {
        'config' => config,
    })
end

- (Void) reboot(config)

Reboot the appliance.

Parameters:

Returns:

  • (Void)

Raises:



762
763
764
765
766
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview.rb', line 762

def reboot(config)
    invoke_with_info(@@reboot_info, {
        'config' => config,
    })
end