
                         :    d Z ddlZddlmZ ddlmZ ddlmZ d Zy)zJArgument processors for Zone Management service account surface arguments.    N)encoding)log)filesc                    t        j                  |       }	 t        j                  |      }t        j                  |d      }|j                  syt        j                  |j                  |       t
        j                  j                  dj                  |j                               y# t        j                  $ r"}t        j                  d|        Y d}~yd}~ww xY w)z:Write the private key response to parsed_args.output_file.zError decoding JSON: N   )indentz%Service account key file [{}] created)r   MessageToJsonjsonloadsJSONDecodeErrorr   errordumpsoutput_filer   WriteFileContentsoutPrintformat)responseparsed_argsjson_response	json_dataeformatted_jsons         Glib/googlecloudsdk/command_lib/zone_management/service_account/hooks.py#PossiblyWritePrivateKeyToOutputFiler      s    ((2-

=)I
 ::i2.		 	 +11>B''---44[5L5LM 
 
		 II%aS)*s   B) )C<CC)	__doc__r
   apitools.base.pyr   googlecloudsdk.corer   googlecloudsdk.core.utilr   r        r   <module>r"      s    Q  % # *r!   