Sha256: 5c384f236d5809c2cb86c9c663bc376f63fc6da1aa88b1863dfc234acb051f2b

Contents?: true

Size: 473 Bytes

Versions: 13

Compression:

Stored size: 473 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Networks < Fog::Collection
        model Fog::Vsphere::Compute::Network
        attr_accessor :datacenter, :cluster

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

        def get(id)
          requires :datacenter
          new service.get_network(id, 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/networks.rb
fog-vsphere-3.6.8 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.7 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.6 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.5 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.4 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.3 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.2 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.5.3 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.6.0 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.5.2 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.5.1 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.5.0 lib/fog/vsphere/models/compute/networks.rb