Class List Method List File List

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

Inherits:
  VAPI::Bindings::VapiService
  - Object
  - VAPI::Bindings::VapiService
  - Com::Vmware::Vcenter::Inventory::Datastore
  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)

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

  Returns datastore information for the specified datastores.

- - (Datastore) initialize(config) constructor

  Constructs a new instance.

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

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

  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.

Raises:

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

  if no datastore can be found for one or more of the datastore identifiers in ``datastores``

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

  If you do not have all of the privileges described in the following list:

  System.Read

    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