Sha256: a0205419ab27d25a7bc7571767fc3caa9ca51bfd159ff39efbd10409b0d1e3fb

Contents?: true

Size: 515 Bytes

Versions: 23

Compression:

Stored size: 515 Bytes

Contents

require 'fog/core/collection'
require 'fog/vsphere/models/compute/storage_pod'

module Fog
  module Vsphere
    class Compute
      class StoragePods < Fog::Collection
        model Fog::Vsphere::Compute::StoragePod
        attribute :datacenter

        def all(filters = {})
          load service.list_storage_pods(filters.merge(datacenter: datacenter))
        end

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.8 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.7 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.6 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.5 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.4 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.3 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.2 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.5.3 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.6.0 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.5.2 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.5.1 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.5.0 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.4.0 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.3.1 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.3.0 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.2.5 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.2.2 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.2.1 lib/fog/vsphere/models/compute/storage_pods.rb
fog-vsphere-3.2.0 lib/fog/vsphere/models/compute/storage_pods.rb