
    	                         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(Implementation of list command for HMAC.    )absolute_import)division)unicode_literalsN)api_factory)	cloud_api)base)storage_urlc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List   zList service account HMAC keys.zW
       *{command}* lists the HMAC key metadata for keys in the current project.
      a/  
       To show metadata for all keys, including recently deleted keys:

         $ {command} --all --long

       To list only HMAC keys belonging to the service account
       ``test.sa@test.iam.gserviceaccount.com'':

         $ {command} --service-account=test.sa@test.iam.gserviceaccount.com
      )DESCRIPTIONEXAMPLESc                     U R                  SSSSS9  U R                  SSS[        R                  " S5      S9  U R                  S	S
SS9  g )Nz-az--all
store_truez0Shows all keys, including recently deleted keys.)actionhelpz-lz--longzm            Use long listing format, showing the full metadata for each key
            excluding the secret.z-uz--service-accountz3Filter keys for the provided service account email.)r   )add_argumenttextwrapdedent)parsers     lib/surface/storage/hmac/list.pyArgs	List.Args1   sp    
?	  A
 __ % &	  ' B  D    c              #   h  #    UR                   (       a  [        R                  R                  nO[        R                  R                  n[
        R                  " [        R                  R                  5      nUR                  UR                  UR                  US9 H  nUR                  v   M     g 7f)N)service_account_emailshow_deleted_keysfields_scope)longr   FieldsScopeFULLSHORTr   get_apir	   ProviderPrefixGCSlist_hmac_keysservice_accountallmetadata)selfargsr   apihmac_keys        r   RunList.RunD   s     yy**//l**00l


k88<<
=C&&"22((! ' 
 s   B0B2 N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r   r      s1    '
	
	-  D D$r   r   )r5   
__future__r   r   r   r   googlecloudsdk.api_lib.storager   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager	   UniverseCompatibleListCommandr   r0   r   r   <module>r?      sI    / &  '  6 4 ( : 24 2 2r   