Sha256: ba18c6fca83d63322cfdcf9195a40784e9a3d38cc235ffeeb7626927ca677cc0

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

module Fog
  module AWS
    class RDS
      class Real

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

        # Describe  parameters from a parameter group
        # http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DescribeDBParameters.html
        # ==== Parameters
        # * DBParameterGroupName <~String> - name of parameter group to retrieve parameters for
        # * Source <~String> - The parameter types to return. user | system | engine-default
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        def describe_db_parameters(name, opts={})
          params={}
          if opts[:marker]
            params['Marker'] = opts[:marker]
          end
          if opts[:source]
            params['Source'] = opts[:source]
          end
          if opts[:max_records]
            params['MaxRecords'] = opts[:max_records]
          end
          
          request({
            'Action'  => 'DescribeDBParameters',
            'DBParameterGroupName' => name,
            :parser   => Fog::Parsers::AWS::RDS::DescribeDBParameters.new
          }.merge(params))
        end

      end

      class Mock

        def describe_db_parameters(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/describe_db_parameters.rb