Class: Fog::Compute::Vsphere::Cluster

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vsphere/models/compute/cluster.rb

Instance Method Summary collapse

Instance Method Details

#resource_pools(filters = { }) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/fog/vsphere/models/compute/cluster.rb', line 13

def resource_pools(filters = { })
  self.attributes[:resource_pools] ||= id.nil? ? [] : service.resource_pools({
                                                                                  :service => service,
                                                                                  :cluster    => name,
                                                                                  :datacenter => datacenter
                                                                                }.merge(filters))
end

#to_sObject



21
22
23
# File 'lib/fog/vsphere/models/compute/cluster.rb', line 21

def to_s
  name
end