Class: Com::Vmware::Appliance::System::Storage

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

Overview

``Com::Vmware::Appliance::System::Storage`` class provides methods Appliance storage configuration

Defined Under Namespace

Classes: StorageMapping

Instance Method Summary (collapse)

Constructor Details

- (Storage) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



107
108
109
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/system.rb', line 107

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

Instance Method Details

- (Array<Com::Vmware::Appliance::System::Storage::StorageMapping>) list

Get disk to partition mapping

Returns:

Raises:



118
119
120
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/system.rb', line 118

def list()
    invoke_with_info(@@list_info)
end

- (Void) resize

Resize all partitions to 100 percent of disk size

Returns:

  • (Void)

Raises:



128
129
130
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/system.rb', line 128

def resize()
    invoke_with_info(@@resize_info)
end