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

38 lines
1.3 KiB
Ruby
Raw Normal View History

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={})
2015-03-24 14:06:22 -04:00
response = Excon::Response.new
response.status = 200
response.body = {
"ResponseMetadata" => { "RequestId" => Fog::AWS::Mock.request_id },
"DescribeDBEngineVersionsResult" => { "DBEngineVersions" => self.data[:db_engine_versions] }
}
response
end
end
end
end
end