Sha256: 518d468eed5c3f6ef52a4bce00c7c7fdecfec6e11951dc2a8ccb1f6ca8a411be
Contents?: true
Size: 608 Bytes
Versions: 5
Compression:
Stored size: 608 Bytes
Contents
require 'fog/core/collection' require 'fog/vsphere/models/compute/resource_pool' module Fog module Compute class Vsphere class ResourcePools < Fog::Collection model Fog::Compute::Vsphere::ResourcePool attr_accessor :datacenter, :cluster def all(filters = {}) load connection.list_resource_pools(filters.merge(:datacenter => datacenter, :cluster => cluster)) end def get(id) requires :datacenter requires :cluster new connection.get_resource_pool(id, cluster, datacenter) end end end end end
Version data entries
5 entries across 5 versions & 4 rubygems