Sha256: 4f463ab92af1404d9fdc92e919697a96b583d7f41c0418713ca2256142284712

Contents?: true

Size: 872 Bytes

Versions: 7

Compression:

Stored size: 872 Bytes

Contents

module Fog
  module Slicehost
    class Compute
      class Real

        require 'fog/compute/parsers/slicehost/get_backups'

        # 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',
            :parser   => Fog::Parsers::Slicehost::Compute::GetBackups.new,
            :path     => 'backups.xml'
          )
        end

      end

      class Mock

        def get_backups
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/slicehost/get_backups.rb
fog-0.5.0 lib/fog/compute/requests/slicehost/get_backups.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/slicehost/get_backups.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/slicehost/get_backups.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/slicehost/get_backups.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/slicehost/get_backups.rb
fog-0.4.1 lib/fog/compute/requests/slicehost/get_backups.rb