
    P	                     *   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 ddlmZ dd	lmZ dd
lmZ ddlmZ dZ e	j$                  e	j&                  j(                  e	j&                  j*                         G d de	j,                               Zy)z"Command to delete an Azure Client.    )absolute_import)division)unicode_literals)azure)base)resource_args)command_util)	constants)endpoint_util)flagszy
To delete an Azure client named ``my-client'' in location ``us-west1'', run:

$ {command} my-client --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)DeletezDelete an Azure client.EXAMPLESc                     t        j                  | d       t        j                  j	                  |        t        j                  | d       y )Nz	to deleteclient)r   AddAzureClientResourceArgr   
ASYNC_FLAGAddToParserr   AddAllowMissing)parsers    -lib/surface/container/azure/clients/delete.pyArgszDelete.Args*   s4    ++FK@OO'	&(+    c                 z   t        j                  |      j                  }t        j                  |      5  t        j                  |      }t        j                         }t        j                  |j                  |      }t        j                  ||||t        j                        cddd       S # 1 sw Y   yxY w)zRuns the delete command.)region)resource_refresource_clientmessageargskindN)r   ParseAzureClientResourceArglocationsIdr   GkemulticloudEndpointOverrideapi_utilClientsClientr	   ClientMessageazureClientsIdr   r
   AZURE_CLIENT_KIND)selfr   location
client_ref
api_clientr   s         r   Runz
Delete.Run1   s    88>JJH		4	4X	> <<TBj))+j**

#
#Hg   !$** 
?	>	>s   A2B11B:N)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r-    r   r   r   r   $   s&    y)-, ,r   r   N)r1   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r$   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.azurer   2googlecloudsdk.command_lib.container.gkemulticloudr	   r
   r   r   r2   ReleaseTracksReleaseTrackALPHAGADeleteCommandr   r5   r   r   <module>r@      sx    ) &  ' L ( D K H L D	 D%%++T->->-A-ABT  Cr   