Sha256: 618c141c322f356f7952f39b9e0c42507ad10559b482bf9cb9e7768dd8ffa4df
Contents?: true
Size: 685 Bytes
Versions: 4
Compression:
Stored size: 685 Bytes
Contents
require 'fog/compute/models/vcloud/network' module Fog module Vcloud class Compute class Networks < Fog::Vcloud::Collection undef_method :create model Fog::Vcloud::Compute::Network attribute :href def all self.href = connection.default_vdc_href unless self.href check_href!("Vdc") if data = connection.get_vdc(href).body[:AvailableNetworks][:Network] load(data) end end def get(uri) if data = connection.get_network(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems