2010-11-09 20:47:35 -05:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
|
|
|
module IAM
|
|
|
|
|
2010-11-17 15:04:49 -05:00
|
|
|
class ListPolicies < Fog::Parsers::Base
|
2010-11-09 20:47:35 -05:00
|
|
|
|
|
|
|
def reset
|
|
|
|
@response = { 'PolicyNames' => [] }
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
|
|
|
when 'member'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['PolicyNames'] << value
|
2010-11-09 20:47:35 -05:00
|
|
|
when 'IsTruncated'
|
2011-05-12 16:15:13 -04:00
|
|
|
response[name] = (value == 'true')
|
2010-11-09 20:47:35 -05:00
|
|
|
when 'Marker', 'RequestId'
|
2011-05-12 16:15:13 -04:00
|
|
|
response[name] = value
|
2010-11-09 20:47:35 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|