
    	                     F   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SS	KJr  S
r\S-   r\	R                   " \	R"                  R$                  \	R"                  R&                  \	R"                  R(                  5       " S S\	R*                  5      5       rg)z!services api-keys delete command.    )absolute_import)division)unicode_literals)apikeys)services_util)base)common_flags)logzgcloud services operations zwait {0}c                   .    \ rS rSrSr\S 5       rS rSrg)Delete   zDelete an API key.

Delete an API key.

## EXAMPLES

 Delete an API Key :

 $ {command} projects/myproject/locations/global/keys/1234

 $ {command} 1234
c                 l    [         R                  " U SS9  [        R                  R	                  U 5        g )Nz	to delete)parsersuffix)r	   key_flagr   
ASYNC_FLAGAddToParser)r   s    'lib/surface/services/api_keys/delete.pyArgsDelete.Args0   s&     <OO'    c                 l   [         R                  " 5       nUR                  nUR                  R                  R                  5       nUR                  UR                  5       S9nUR                  R                  U5      nUR                  (       d  UR                  (       aO  [        R                  UR                  5      n[        R                   R#                  SR                  U5      5        U$ [$        R&                  " UR                  [         R(                  5      n[$        R*                  " U5        U$ )zRun command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  The response from the Delete API call.
)namezcAsynchronous operation is in progress... Use the following command to wait for its completion:
 {0})r   GetClientInstanceMESSAGES_MODULECONCEPTSkeyParse)ApikeysProjectsLocationsKeysDeleteRequestRelativeNameprojects_locations_keysr   doneasync_OP_WAIT_CMDformatr   r
   statusPrintr   WaitOperationGetOperationPrintOperationWithResponse)selfargsclientmessageskey_refrequestopcmds           r   Run
Delete.Run6   s     &&(F%%Hmm%%'G@@!!# A %G		'	'	.	.w	7B77	  )

 --3VC[	: 	&&rww0D0DEb,,R0Ir    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r3   __static_attributes__r5   r   r   r   r      s      ( (
r   r   N)r:   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.servicesr	   googlecloudsdk.corer
   OP_BASE_CMDr$   ReleaseTracksReleaseTrackALPHABETAGADeleteCommandr   r5   r   r   <module>rI      s    ( &  ' 3 9 ( < #+J& T..33T5F5F5I5I0T 00r   