Sha256: 11331d667adb75474b17a4868334cf3f73658eba149477cb04e7eb68b74eb665

Contents?: true

Size: 1.62 KB

Versions: 29

Compression:

Stored size: 1.62 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

        require 'fog/aws/parsers/rds/describe_db_snapshots'

        # Describe all or specified db snapshots
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DescribeDBSnapshots.html
        # ==== Parameters
        # * DBInstanceIdentifier <~String> - ID of instance to retrieve information for. if absent information for all instances is returned
        # * DBSnapshotIdentifier <~String> - ID of snapshot to retrieve information for. if absent information for all snapshots is returned
        # * Marker               <~String> - An optional marker provided in the previous DescribeDBInstances request
        # * MaxRecords           <~Integer> - Max number of records to return (between 20 and 100) 
        # Only one of DBInstanceIdentifier or DBSnapshotIdentifier can be specified
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def describe_db_snapshots(opts={})
          params = {}
          params['DBInstanceIdentifier'] = opts[:identifier] if opts[:identifier]
          params['DBSnapshotIdentifier'] = opts[:snapshot_id] if opts[:snapshot_id]
          params['Marker'] = opts[:marker] if opts[:marker]
          params['MaxRecords'] = opts[:max_records] if opts[:max_records]
          request({
            'Action'  => 'DescribeDBSnapshots',
            :parser   => Fog::Parsers::AWS::RDS::DescribeDBSnapshots.new
          }.merge(params))
        end

      end

      class Mock

        def describe_db_snapshots(opts={})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog-1.1.2 lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog_tractical-1.1.4 lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog_tractical-1.1.3 lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog-1.1.1 lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog-1.1.0 lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
tag-fog-1.0.1 lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog-1.0.0 lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog-0.11.0 lib/fog/aws/requests/rds/describe_db_snapshots.rb
fog-0.10.0 lib/fog/aws/requests/rds/describe_db_snapshots.rb