Class: Com::Vmware::Vcenter::Folder

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 Folder class provides methods for manipulating a vCenter Server folder.

Defined Under Namespace

Classes: FilterSpec, Summary, Type

Constant Summary

RESOURCE_TYPE =
'Folder'

Instance Method Summary (collapse)

Constructor Details

- (Folder) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



1056
1057
1058
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1056

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

Instance Method Details

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

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

Parameters:

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

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

Returns:

Raises:



1080
1081
1082
1083
1084
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 1080

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