Class: Fog::Compute::Vsphere::Cluster
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Vsphere::Cluster
- 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_s ⇒ Object
21 22 23 |
# File 'lib/fog/vsphere/models/compute/cluster.rb', line 21 def to_s name end |