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