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
14 15 16 17 18 19 20 |
# File 'lib/fog/vsphere/models/compute/cluster.rb', line 14 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
22 23 24 |
# File 'lib/fog/vsphere/models/compute/cluster.rb', line 22 def to_s name end |