
    A
                     *   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)z9Command to delete a registered AttachedCluster resource..    )absolute_import)division)unicode_literals)attached)base)resource_args)command_util)	constants)endpoint_util)flagsz
To delete an AttachedCluster resource named ``my-cluster'' managed in location
``us-west1'', run:

$ {command} my-cluster --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)Deletez-Delete a registered AttachedCluster resource.EXAMPLESc                    t        j                  | d       t        j                  | d       t        j                  | d       t        j
                  | t        j                  d       t        j                  j                  |        y)z Register flags for this command.z	to deletezcluster to deleteclusterN)r   AddAttachedClusterResourceArgr   AddValidateOnlyAddAllowMissingAddIgnoreErrorsr
   ATTACHEDr   
ASYNC_FLAGAddToParser)parsers    1lib/surface/container/attached/clusters/delete.pyArgszDelete.Args+   s_     //D	&"56	&),	&)"4"4i@OO'    c                    t        j                  |      j                  }t        j                  |      5  t        j                  |      }t        j                         }t        j                  |j                  t        j                        }t        j                  ||||t        j                         ddd       y# 1 sw Y   yxY w)zRuns the delete command.)kindN)r   ParseAttachedClusterResourceArglocationsIdr   GkemulticloudEndpointOverrideapi_utilClustersClientr	   ClusterMessageattachedClustersIdr
   r   DeleteWithIgnoreErrorsATTACHED_CLUSTER_KIND)selfargslocationcluster_refcluster_clientmessages         r   Runz
Delete.Run6   s    <<TBNNH		4	4X	>!AA$Gk..0n++

(
(y/A/Ag ))





)
) 
?	>	>s   B B>>CN)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r.    r   r   r   r   %   s&    5y)-( (r   r   N)r2   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r"   googlecloudsdk.callioper   -googlecloudsdk.command_lib.container.attachedr   2googlecloudsdk.command_lib.container.gkemulticloudr	   r
   r   r   r3   ReleaseTracksReleaseTrackALPHAGADeleteCommandr   r6   r   r   <module>rA      sy    @ &  ' O ( G K H L D	 D%%++T->->-A-ABT  Cr   