Sha256: 1a08fcb497c72c28b57f84a8905816aa26e96925c5c56bffad0cc70978714eeb
Contents?: true
Size: 649 Bytes
Versions: 17
Compression:
Stored size: 649 Bytes
Contents
require 'fog/ecloud/models/compute/trusted_network_group' module Fog module Compute class Ecloud class TrustedNetworkGroups < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::TrustedNetworkGroup def all data = service.get_trusted_network_groups(href).body data = data[:TrustedNetworkGroup] ? data[:TrustedNetworkGroup] : data load(data) end def get(uri) if data = service.get_trusted_network_group(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
17 entries across 17 versions & 5 rubygems