Sha256: 8a9beef771c4fc6f8ffa112ebd58a01dd5bda2a307e7d9bef943463c0ed6e222

Contents?: true

Size: 479 Bytes

Versions: 39

Compression:

Stored size: 479 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      module Real
        def accept_transfer(transfer_id, auth_key)
          data = {
            'accept' => {
              'auth_key' => auth_key
            }
          }

          request(
            :body    => Fog::JSON.encode(data),
            :expects => [200, 202],
            :method  => 'POST',
            :path    => "os-volume-transfer/#{transfer_id}/accept"
          )
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.10 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.1.30 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.1.29 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.9 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.1.28 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.8 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.7 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.6 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.5 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.4 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.3 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.2 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.3.0 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.2.4 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.2.3 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.2.2 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.2.1 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-openstack-0.2.0 lib/fog/volume/openstack/requests/accept_transfer.rb
fog-zj-0.1.28 lib/fog/volume/openstack/requests/accept_transfer.rb