Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Appliance::System::Storage
  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)

- - (Storage) initialize(config) constructor

  Constructs a new instance.

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

  Get disk to partition mapping.

- - (Void) resize

  Resize all partitions to 100 percent of disk size.

## 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:

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

  list of mapping items

Raises:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    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:

- (`Com::Vmware::Vapi::Std::Errors::Error`) —

  Generic error

    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