Sha256: 0075bd53f9d43e8bdb58b15f3a1620b315996419dacfaf4bafae15955267aa2c

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Networks < Fog::Collection
        autoload :Network, File.expand_path('../network', __FILE__)

        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

10 entries across 10 versions & 1 rubygems

Version Path
fog-vsphere-3.4.0 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.3.1 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.3.0 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.2.5 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.2.2 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.2.1 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.2.0 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.1.1 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.1.0 lib/fog/vsphere/models/compute/networks.rb
fog-vsphere-3.0.0 lib/fog/vsphere/models/compute/networks.rb