2013-08-30 04:15:06 -04:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module Redshift
|
|
|
|
module AWS
|
|
|
|
|
|
|
|
class DescribeClusterParameters < Fog::Parsers::Base
|
|
|
|
# :marker - (String)
|
|
|
|
# :parameters - (Array)
|
|
|
|
# :parameter_name - (String)
|
|
|
|
# :parameter_value - (String)
|
|
|
|
# :description - (String)
|
|
|
|
# :source - (String)
|
|
|
|
# :data_type - (String)
|
|
|
|
# :allowed_values - (String)
|
|
|
|
# :is_modifiable - (Boolean)
|
|
|
|
# :minimum_engine_version - (String)
|
|
|
|
|
|
|
|
def reset
|
|
|
|
@response = { 'Parameters' => [] }
|
|
|
|
end
|
|
|
|
|
|
|
|
def start_element(name, attrs = [])
|
|
|
|
super
|
|
|
|
case name
|
|
|
|
when 'Parameters'
|
|
|
|
@parameter = {}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
super
|
|
|
|
case name
|
|
|
|
when 'Marker'
|
|
|
|
@response[name] = value
|
|
|
|
when 'ParameterName', 'ParameterValue', 'Description', 'Source', 'DataType', 'AllowedValues', 'MinimumEngineVersion'
|
|
|
|
@parameter[name] = value
|
|
|
|
when 'IsModifiable'
|
|
|
|
@parameter[name] = (value == true)
|
|
|
|
when 'Parameter'
|
2013-09-02 00:23:04 -04:00
|
|
|
@response['Parameters'] << {name => @parameter}
|
2013-08-30 04:15:06 -04:00
|
|
|
@parameter = {}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|