2010-09-08 15:00:47 -07:00
|
|
|
module Fog
|
2011-06-16 16:28:54 -07:00
|
|
|
module Compute
|
|
|
|
class Slicehost
|
2010-09-08 15:00:47 -07:00
|
|
|
class Real
|
|
|
|
|
2011-08-24 20:35:05 -05:00
|
|
|
require 'fog/slicehost/parsers/compute/get_backups'
|
2010-09-08 15:00:47 -07:00
|
|
|
|
|
|
|
# Get list of backups
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Array>:
|
|
|
|
# * 'date'<~Time> - Timestamp of backup creation
|
|
|
|
# * 'id'<~Integer> - Id of the backup
|
|
|
|
# * 'name'<~String> - Name of the backup
|
|
|
|
# * 'slice-id'<~Integer> - Id of slice the backup was made from
|
|
|
|
def get_backups
|
|
|
|
request(
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
2011-06-16 16:28:54 -07:00
|
|
|
:parser => Fog::Parsers::Compute::Slicehost::GetBackups.new,
|
2010-09-08 15:00:47 -07:00
|
|
|
:path => 'backups.xml'
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|