Sha256: bc084946e5a93db700faffc1108cf2e0512097f5f07397553c475c6267bf5a22

Contents?: true

Size: 334 Bytes

Versions: 13

Compression:

Stored size: 334 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Datacenters < Fog::Collection
        model Fog::Vsphere::Compute::Datacenter

        def all(filters = {})
          load service.list_datacenters(filters)
        end

        def get(name)
          new service.get_datacenter(name)
        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/datacenters.rb
fog-vsphere-3.6.8 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.7 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.6 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.5 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.4 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.3 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.2 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.5.3 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.6.0 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.5.2 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.5.1 lib/fog/vsphere/models/compute/datacenters.rb
fog-vsphere-3.5.0 lib/fog/vsphere/models/compute/datacenters.rb