2014-12-30 17:25:09 -05:00
|
|
|
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
|
2014-12-30 17:25:09 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|