
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ej                   G d d	ej                               Zy
)z0Implementation of describe command for HMAC key.    )absolute_import)division)unicode_literals)api_factory)base)storage_urlc                   0    e Zd ZdZdddZed        Zd Zy)Describez%Describes a service account HMAC key.z
       *{command}* retrieves the specified HMAC key's metadata. Note that there
       is no option to retrieve a key's secret material after it has
       been created.
      z
      The following command retrieves the HMAC key's metadata:

          $ {command} GOOG56JBMFZX6PMPTQ62VD2

      Note `GOOG56JBMFZX6PMPTQ62VD2` is the `ACCESS_ID` of the HMAC key.
      )DESCRIPTIONEXAMPLESc                 4    | j                  dt        d       y )N	access_idzgThe [Access ID](https://cloud.google.com/storage/docs/authentication/hmackeys#overview) of the HMAC key)typehelp)add_argumentstr)parsers    $lib/surface/storage/hmac/describe.pyArgszDescribe.Args-   s!    
M	      c                     t        j                  t        j                  j                        j                  |j                        }|j                  S )N)r   get_apir   ProviderPrefixGCSget_hmac_keyr   metadata)selfargshmac_resources      r   RunzDescribe.Run8   s@    ''""&&l4>>"  !!!r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r     r   r   r
   r
      s/    -


-  "r   r
   N)r$   
__future__r   r   r   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager   UniverseCompatibleDescribeCommandr
   r'   r   r   <module>r.      sC    7 &  ' 6 ( : !"t## !" !"r   