Sha256: 4a3f77476df3098d3b137ef832fa75e01295416f002952fe22e6b0bde12050a8
Contents?: true
Size: 886 Bytes
Versions: 16
Compression:
Stored size: 886 Bytes
Contents
module Fog module Parsers module AWS module IAM class GetUserPolicy < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetUserPolicy.html def reset @response = { 'Policy' => {} } end def end_element(name) case name when 'UserName', 'PolicyName' @response['Policy'][name] = value when 'PolicyDocument' @response['Policy'][name] = if decoded_string = URI.decode_www_form_component(value) Fog::JSON.decode(decoded_string) rescue value else value end when 'RequestId' @response[name] = value end end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems