Sha256: 1e6a002485b838f21292f14ff290bd166c44c588a70ea25101becb5a1d0755d0
Contents?: true
Size: 788 Bytes
Versions: 4
Compression:
Stored size: 788 Bytes
Contents
require 'fog/compute/gridscale/models/paging_collection' require 'fog/compute/gridscale/models/server_relation_storage' module Fog module Compute class Gridscale class ServerRelationStorages < Fog::Compute::Gridscale::PagingCollection model Fog::Compute::Gridscale::ServerRelationStorage def all(server_uuid) data = service.server_relation_storages_get(server_uuid) storages_relations = data.body['storage_relations'] load(storages_relations) end def get(payload) storages_relation = service.server_relation_storage_get(payload).body['storage_relation'] new(storages_relation) if storages_relation rescue Fog::Errors::NotFound nil end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems