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