2011-02-28 19:00:25 -05:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
|
|
|
module IAM
|
|
|
|
|
|
|
|
class UploadServerCertificate < Fog::Parsers::Base
|
|
|
|
|
|
|
|
def reset
|
|
|
|
@response = { 'Certificate' => {} }
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
2011-05-07 14:43:51 -04:00
|
|
|
when 'Arn', 'Path', 'ServerCertificateId', 'ServerCertificateName'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['Certificate'][name] = value
|
2011-05-07 14:43:51 -04:00
|
|
|
when 'UploadDate'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['Certificate'][name] = Time.parse(value)
|
2011-02-28 19:00:25 -05:00
|
|
|
when 'RequestId'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response[name] = value
|
2011-02-28 19:00:25 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|