Class: Com::Vmware::Vcenter::Cluster

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 ``Com::Vmware::Vcenter::Cluster`` class provides methods to manage clusters in the vCenter Server.

Defined Under Namespace

Classes: FilterSpec, Info, Summary

Constant Summary

RESOURCE_TYPE =
'ClusterComputeResource'

Instance Method Summary (collapse)

Constructor Details

- (Cluster) initialize(config)

Constructs a new instance.

Parameters:

  • config (VAPI::Bindings::StubConfig)

    A hash with the api provider details.



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

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

Instance Method Details

- (Com::Vmware::Vcenter::Cluster::Info) get(cluster)

Retrieves information about the cluster corresponding to ``cluster`` .

Parameters:

  • cluster (String)

    Identifier of the cluster.

Returns:

Raises:



112
113
114
115
116
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 112

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

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

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

Parameters:

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

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

Returns:

Raises:



91
92
93
94
95
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vcenter.rb', line 91

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