
    3                         S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	  SSK
Jr  SS	K
Jr  \R                   " S
 S\R                  5      5       rg)z Command to describe credentials.    )absolute_import)division)unicode_literalsN)base)
exceptions)creds)storec                   .    \ rS rSrSr\S 5       rS rSrg)Describe   zDescribes credentials.

Returns internal details about specified credentials.

## EXAMPLES

To describe existing credentials, run:

          $ {command} ACCOUNT_NAME
c                 $    U R                  SSS9  g)zAdds args for this command.account_namezName of the account to describe)helpN)add_argument)parsers    lib/surface/auth/describe.pyArgsDescribe.Args+   s     .  0    c                    [         R                  " UR                  SS9nU(       d/  [        R                  " SR                  UR                  5      5      e[        R                  " U5      (       a,  [        R                  " U5      n[        R                  " U5      $ [        R                  " UR                  5       5      $ )NT)use_google_authz/The credentials for account [{0}] do not exist.)r	   Loadr   r   CredentialsNotFoundformatr   IsGoogleAuthCredentialsSerializeCredsGoogleAuthjsonloadsto_json)selfargs
credential	json_creds       r   RunDescribe.Run2   s    D--tDJ**
;6$##$& & $$Z0000<iZZ	""::j((*++r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r$   __static_attributes__r&   r   r   r   r      s     	 0 0
,r   r   )r+   
__future__r   r   r   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.authr   googlecloudsdk.core.credentialsr   r	   HiddenDescribeCommandr   r&   r   r   <module>r4      sG     ' &  '  ( 6 1 1 ,t## , ,r   