Sha256: e96235be3fcbbc38cb53e3e8d02662cff26ae5616f0448ad46436e74cb8c65f4

Contents?: true

Size: 512 Bytes

Versions: 13

Compression:

Stored size: 512 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class ResourcePools < Fog::Collection
        model Fog::Vsphere::Compute::ResourcePool
        attr_accessor :datacenter, :cluster

        def all(filters = {})
          load service.list_resource_pools(filters.merge(datacenter: datacenter, cluster: cluster))
        end

        def get(id)
          requires :datacenter
          requires :cluster
          new service.get_resource_pool(id, cluster, datacenter)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.8 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.7 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.6 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.5 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.4 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.3 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.2 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.5.3 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.6.0 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.5.2 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.5.1 lib/fog/vsphere/models/compute/resource_pools.rb
fog-vsphere-3.5.0 lib/fog/vsphere/models/compute/resource_pools.rb