1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/rds/describe_db_parameter_groups.rb
2011-03-01 07:17:06 +08:00

45 lines
1.4 KiB
Ruby

module Fog
module AWS
class RDS
class Real
require 'fog/aws/parsers/rds/describe_db_parameter_groups'
# This API returns a list of DBParameterGroup descriptions. If a DBParameterGroupName is specified, the list will contain only the descriptions of the specified DBParameterGroup
# http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_DescribeDBParameterGroups.html
# ==== Parameters
# * DBParameterGroupName <~String> - The name of a specific database parameter group to return details for.
# * Source <~String> - The parameter types to return. user | system | engine-default
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
def describe_db_parameter_groups(name=nil, opts={})
params={}
if opts[:marker]
params['Marker'] = opts[:marker]
end
if name
params['DBParameterGroupName'] = name
end
if opts[:max_records]
params['MaxRecords'] = opts[:max_records]
end
request({
'Action' => 'DescribeDBParameterGroups',
:parser => Fog::Parsers::AWS::RDS::DescribeDBParameterGroups.new
}.merge(params))
end
end
class Mock
def describe_db_parameter_groups(name=nil, opts={})
Fog::Mock.not_implemented
end
end
end
end
end