Sha256: 774de62660de49dfcc4a4e0d680ffabf1c566d2d49baf8dc07e0f6cd63914967

Contents?: true

Size: 495 Bytes

Versions: 12

Compression:

Stored size: 495 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

12 entries across 12 versions & 2 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/volume/accept_transfer.rb
fog-1.37.0 lib/fog/openstack/requests/volume/accept_transfer.rb