Sha256: d2efcc5dc6b58fce196e2d6f2ef69201faa62cc5ec9aa72d0c598a1770a5380a

Contents?: true

Size: 1019 Bytes

Versions: 1

Compression:

Stored size: 1019 Bytes

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'rackspace-fog/aws/parsers/rds/restore_db_instance_to_point_in_time'

        # Restores a DB Instance to a point in time
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/index.html?API_RestoreDBInstanceToPointInTime.html
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def restore_db_instance_to_point_in_time(source_db_name, target_db_name, opts={})
          request({
            'Action'  => 'RestoreDBInstanceToPointInTime',
            'SourceDBInstanceIdentifier' => source_db_name,
            'TargetDBInstanceIdentifier' => target_db_name,
            :parser   => Fog::Parsers::AWS::RDS::RestoreDBInstanceToPointInTime.new,
          }.merge(opts))
        end

      end

      class Mock

        def restore_db_instance_to_point_in_time(source_db_name, target_db_name, opts={})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/rds/restore_db_instance_to_point_in_time.rb