Sha256: d329be9ad2d542b7eacef81c760d1313e30d1d504e7af98b03e13ad1c3151913
Contents?: true
Size: 999 Bytes
Versions: 4
Compression:
Stored size: 999 Bytes
Contents
require 'fog/huaweicloud/models/collection' module Fog module Volume class HuaweiCloud module Transfers def all(options = {}) load_response(service.list_transfers_detailed(options), 'transfers') end def summary(options = {}) load_response(service.list_transfers(options), 'transfers') end def get(transfer_id) if transfer = service.get_transfer_details(transfer_id).body['transfer'] new(transfer) end rescue Fog::Volume::HuaweiCloud::NotFound nil end def accept(transfer_id, auth_key) # NOTE: This is NOT a method on the Transfer object, since the # receiver cannot see the transfer object in the get_transfer_details # or list_transfers(_detailed) requests. if transfer = service.accept_transfer(transfer_id, auth_key).body['transfer'] new(transfer) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems