module Fog::OpenStack::Volume::Transfers

Public Instance Methods

accept(transfer_id, auth_key) click to toggle source
# File lib/fog/openstack/volume/models/transfers.rb, line 23
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
all(options = {}) click to toggle source
# File lib/fog/openstack/volume/models/transfers.rb, line 7
def all(options = {})
  load_response(service.list_transfers_detailed(options), 'transfers')
end
get(transfer_id) click to toggle source
# File lib/fog/openstack/volume/models/transfers.rb, line 15
def get(transfer_id)
  if transfer = service.get_transfer_details(transfer_id).body['transfer']
    new(transfer)
  end
rescue Fog::OpenStack::Volume::NotFound
  nil
end
summary(options = {}) click to toggle source
# File lib/fog/openstack/volume/models/transfers.rb, line 11
def summary(options = {})
  load_response(service.list_transfers(options), 'transfers')
end