2011-02-23 09:58:07 -05:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
|
|
|
module IAM
|
|
|
|
|
|
|
|
class UpdateUser < Fog::Parsers::Base
|
2011-02-23 11:50:38 -05:00
|
|
|
# http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateUser.html
|
|
|
|
|
2011-02-23 09:58:07 -05:00
|
|
|
def reset
|
|
|
|
@response = { 'User' => {} }
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
|
|
|
when 'Arn', 'UserId', 'UserName', 'Path'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['User'][name] = value
|
2011-02-23 09:58:07 -05:00
|
|
|
when 'RequestId'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response[name] = value
|
2011-02-23 09:58:07 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|