
                             d Z ddlmZ ddlmZ ddlmZ ddl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)z*Implementation of delete command for HMAC.    )absolute_import)division)unicode_literalsN)api_factory)base)storage_urlc                   0    e Zd ZdZdddZed        Zd Zy)DeletezRemove a service account HMAC.z
       *{command}* permanently deletes the specified HMAC key. Note that keys
       must be updated to be in the ``INACTIVE'' state before they can be
       deleted.
      z
       To delete a specific HMAC key:

         $ {command} GOOG56JBMFZX6PMPTQ62VD2

       To be prompted for HMAC keys to delete:

         $ {command}
      )DESCRIPTIONEXAMPLESc                 P    | j                  dt        j                  d             y )N	access_idz-            Access ID for HMAC key to delete.)help)add_argumenttextwrapdedent)parsers    "lib/surface/storage/hmac/delete.pyArgszDelete.Args1   s)    
__ 1 2  3    c                     t        j                  t        j                  j                        }|j                  |j                        }|S )N)r   get_apir   ProviderPrefixGCSdelete_hmac_keyr   )selfargsapiresponses       r   Runz
Delete.Run8   s7    


k88<<
=C""4>>2HOr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r     r   r   r
   r
      s/    &


-" 3 3r   r
   )r$   
__future__r   r   r   r   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   "googlecloudsdk.command_lib.storager   UniverseCompatibleCommandr
   r'   r   r   <module>r.      sD    1 &  '  6 ( : T\\  r   