1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/rds/describe_db_engine_versions.rb
Josh Lane d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00

30 lines
1,005 B
Ruby

module Fog
module AWS
class RDS
class Real
require 'fog/aws/parsers/rds/describe_db_engine_versions'
def describe_db_engine_versions(opts={})
params = {}
params['DBParameterGroupFamily'] = opts[:db_parameter_group_family] if opts[:db_parameter_group_family]
params['DefaultOnly'] = opts[:default_only] if opts[:default_only]
params['Engine'] = opts[:engine] if opts[:engine]
params['EngineVersion'] = opts[:engine_version] if opts[:engine_version]
params['Marker'] = opts[:marker] if opts[:marker]
params['MaxRecords'] = opts[:max_records] if opts[:max_records]
request({
'Action' => 'DescribeDBEngineVersions',
:parser => Fog::Parsers::AWS::RDS::DescribeDBEngineVersions.new
}.merge(params))
end
end
class Mock
def describe_db_engine_versions(opts={})
Fog::Mock.not_implemented
end
end
end
end
end