2010-11-01 18:01:55 -04:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
|
|
|
module CDN
|
|
|
|
|
|
|
|
class PostInvalidation < Fog::Parsers::Base
|
|
|
|
|
|
|
|
def reset
|
|
|
|
@response = { 'InvalidationBatch' => { 'Path' => [] } }
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
|
|
|
when 'CallerReference'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['InvalidationBatch'][name] = value
|
2010-11-01 20:44:14 -04:00
|
|
|
when 'CreateTime', 'Id', 'Status'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response[name] = value
|
2010-11-01 18:01:55 -04:00
|
|
|
when 'Path'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['InvalidationBatch'][name] << value
|
2010-11-01 18:01:55 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|