Class: Com::Vmware::Vcenter::Inventory::Datastore

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

Overview

The ``Com::Vmware::Vcenter::Inventory::Datastore`` class provides methods to retrieve information about datastores.

Defined Under Namespace

Classes: Info

Instance Method Summary (collapse)

Constructor Details

- (Datastore) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



52
53
54
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/inventory.rb', line 52

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

Instance Method Details

- (Hash<String, Com::Vmware::Vcenter::Inventory::Datastore::Info, nil>) find(datastores)

Returns datastore information for the specified datastores. The key in the result map is the datastore identifier and the value in the map is the datastore information.

Parameters:

  • datastores (Array<String>)

    Identifiers of the datastores for which information will be returned.

Returns:

Raises:



69
70
71
72
73
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter/inventory.rb', line 69

def find(datastores)
    invoke_with_info(@@find_info, {
        'datastores' => datastores,
    })
end