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

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

Overview

The Datastore class provides methods for manipulating a datastore.

Defined Under Namespace

Classes: FilterSpec, Info, Summary, Type

Constant Summary

RESOURCE_TYPE =
'Datastore'

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.



688
689
690
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 688

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

Instance Method Details

- (Com::Vmware::Vcenter::Datastore::Info) get(datastore)

Retrieves information about the datastore indicated by ``datastore`` .

Parameters:

  • datastore (String)

    Identifier of the datastore for which information should be retrieved.

Returns:

Raises:



709
710
711
712
713
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 709

def get(datastore)
    invoke_with_info(@@get_info, {
        'datastore' => datastore,
    })
end

- (Array<Com::Vmware::Vcenter::Datastore::Summary>) list(filter = nil)

Returns information about at most 1000 visible (subject to permission checks) datastores in vCenter matching the :class:`Com::Vmware::Vcenter::Datastore::FilterSpec` .

Parameters:

  • filter (Com::Vmware::Vcenter::Datastore::FilterSpec, nil) (defaults to: nil)

    Specification of matching datastores for which information should be returned. If nil , the behavior is equivalent to a :class:`Com::Vmware::Vcenter::Datastore::FilterSpec` with all fields nil which means all datastores match the filter.

Returns:

Raises:



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

def list(filter=nil)
    invoke_with_info(@@list_info, {
        'filter' => filter,
    })
end