Sha256: cdb8adb4597d347b4c9896386cd9d1a3a06ad327311fd636482d424e760cb2eb

Contents?: true

Size: 540 Bytes

Versions: 33

Compression:

Stored size: 540 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Datastores < Fog::Collection
        autoload :Datastore, File.expand_path('../datastore', __FILE__)

        model Fog::Compute::Vsphere::Datastore
        attr_accessor :datacenter, :cluster

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

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
fog-vsphere-1.7.0.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-2.1.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-2.1.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-2.0.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-2.0.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.13.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.13.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.12.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.11.3 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.11.2 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.11.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.11.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.10.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.9.2 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.9.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.9.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.8.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.7.1 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.7.0 lib/fog/vsphere/models/compute/datastores.rb
fog-vsphere-1.6.0 lib/fog/vsphere/models/compute/datastores.rb