Sha256: 16cd5a18ed854728d6170f6b0037b94ef562c7d5fe62c23a271104dc3b846ef0

Contents?: true

Size: 416 Bytes

Versions: 23

Compression:

Stored size: 416 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      module Real
        def restore_backup(backup_id, volume_id)
          data = { 'restore' => { 'volume_id' => volume_id } }
          request(
            :expects  => 202,
            :method   => 'POST',
            :path     => "backups/#{backup_id}/restore",
            :body     => Fog::JSON.encode(data)
          )
        end
      end
    end
  end
end

Version data entries

23 entries across 21 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.30 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.29 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.28 lib/fog/volume/openstack/requests/restore_backup.rb
fog-zj-0.1.28 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.27 lib/fog/volume/openstack/requests/restore_backup.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/volume/openstack/requests/restore_backup.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/volume/openstack/requests/restore_backup.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.26 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.25 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.24 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.23 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.22 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.21 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.20 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.19 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.18 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.17 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.1.15 lib/fog/volume/openstack/requests/restore_backup.rb