Sha256: 31e6009cf3dceac3535a53bf826f1e3c30f1867b3a427ddd74cfa1e7d3da95d3

Contents?: true

Size: 446 Bytes

Versions: 15

Compression:

Stored size: 446 Bytes

Contents

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fog-openstack-0.3.10 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.9 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.8 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.7 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.6 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.5 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.4 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.3 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.2 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.3.0 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.2.4 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.2.3 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.2.2 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.2.1 lib/fog/volume/openstack/requests/restore_backup.rb
fog-openstack-0.2.0 lib/fog/volume/openstack/requests/restore_backup.rb