
    	                     H   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S
KJr  Sr\
R$                  " \
R&                  R(                  \
R&                  R*                  \
R&                  R,                  5       " S S\
R.                  5      5       rg)z2Command to delete an Anthos cluster on bare metal.    )absolute_import)division)unicode_literals)bare_metal_clusters)
operations)base)parser_arguments)cluster_flags)logz}
To delete a cluster named ``my-cluster'' managed in location ``us-west1'', run:

$ {command} my-cluster --location=us-west1
c                   R    \ rS rSrSrS\0r\S\R                  4S j5       r
S rSrg)	Delete#   z'Delete an Anthos cluster on bare metal.EXAMPLESparserc                    [         R                  " U SS9  [         R                  " U 5        [         R                  " U 5        [         R                  " U 5        [         R
                  " U 5        [        R                  R                  U 5        g )Nz	to delete)verb)	flagsAddClusterResourceArgAddValidationOnlyAddForceClusterAddAllowMissingClusterAddIgnoreErrorsr   
ASYNC_FLAGAddToParser)r   s    3lib/surface/container/bare_metal/clusters/delete.pyArgsDelete.Args+   s\    	[9	F#	&!	  (	&!OO'    c                    UR                   R                  R                  5       n[        R                  " 5       nUR                  U5      nUR                  (       a  gUR                  c  U$ UR                  (       a$  [        R                  " USUR                  5        U$ [        R                  " 5       nUR                  U5      n[        R                  " USUR                  5        U$ )zRuns the delete command.NzAnthos Cluster on bare metal)CONCEPTSclusterParseapisClustersClientr   validate_onlynameasync_r   DeletedResourcer   OperationsClientWait)selfargscluster_refclient	operationoperation_clientresponses          r   Run
Delete.Run4   s    --''--/K  "Fd#I~~{{	+'E++'#446!&&y1h	+'E++'or    N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr	   ArgumentInterceptorr   r2   __static_attributes__r4   r   r   r   r   #   s6     0y)-(#77 ( (r   r   N)r9   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   r#   r   googlecloudsdk.callioper   r	   /googlecloudsdk.command_lib.container.bare_metalr
   r   googlecloudsdk.corer   r:   ReleaseTracksReleaseTrackALPHABETAGADeleteCommandr   r4   r   r   <module>rJ      s    9 &  ' R A ( 4 R #	 T..33T5F5F5I5I$T $$r   