Sha256: 828ff6469a1ced59da7251c03ed63dd886948b861972ccca9bdb2be0cbdb0396
Contents?: true
Size: 938 Bytes
Versions: 16
Compression:
Stored size: 938 Bytes
Contents
module Fog module Compute class Vsphere class Cluster < Fog::Model identity :id attribute :name attribute :datacenter attribute :num_host attribute :num_cpu_cores attribute :overall_status attribute :full_path def resource_pools(filters = { }) self.attributes[:resource_pools] ||= id.nil? ? [] : service.resource_pools({ :service => service, :cluster => name, :datacenter => datacenter }.merge(filters)) end def to_s name end end end end end
Version data entries
16 entries across 16 versions & 3 rubygems