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-02-28 19:00:25 -05:00
|
|
|
@response['Certificate'][name] = @value
|
2011-05-07 14:43:51 -04:00
|
|
|
when 'UploadDate'
|
|
|
|
@response['Certificate'][name] = Time.parse(@value)
|
2011-02-28 19:00:25 -05:00
|
|
|
when 'RequestId'
|
|
|
|
@response[name] = @value
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|