
    	                        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	r\R                  " \R                  R                   \R                  R"                  5       " S
 S\R$                  5      5       rg)z<Command to delete a node pool in an Anthos cluster on Azure.    )azure)base)resource_args)command_util)	constants)endpoint_util)flagsz
To delete a node pool named ``my-node-pool'' in a cluster named ``my-cluster''
managed in location ``us-west1'', run:

$ {command} my-node-pool --cluster=my-cluster --location=us-west1
c                   6    \ rS rSrSrS\0r\S 5       rS r	Sr
g)Delete"   z1Delete a node pool in an Anthos cluster on Azure.EXAMPLESc                     [         R                  " U S5        [        R                  " U S5        [        R                  " U [
        R                  S5        [        R                  R                  U 5        g )Nz	to deletez	node pool)
r   AddAzureNodePoolResourceArgr	   AddAllowMissingAddIgnoreErrorsr   AZUREr   
ASYNC_FLAGAddToParser)parsers    0lib/surface/container/azure/node_pools/delete.pyArgsDelete.Args(   sJ    --fkB	&+.	&)//;?OO'    c                    [         R                  " U5      R                  n[        R                  " U5         [         R                  " U5      n[
        R                  " 5       n[        R                  " UR                  UR                  S9n[        R                  " UUUU[        R                  5        SSS5        g! , (       d  f       g= f)zRuns the delete command.)clusterN)r   ParseAzureNodePoolResourceArglocationsIdr   GkemulticloudEndpointOverrideapi_utilNodePoolsClientr   NodePoolMessageazureNodePoolsIdazureClustersIdDeleteWithIgnoreErrorsr   AZURE_NODEPOOL_KIND)selfargslocationnode_pool_refnode_pool_clientmessages         r   Run
Delete.Run1   s    ::4@LLH		4	4X	>#AA$Gm!113,,

(
(-2O2Og ))





'
' 
?	>	>s   A=B==
C N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   r,   __static_attributes__r.   r   r   r   r   "   s&    9y)-( (r   r   N)r3   .googlecloudsdk.api_lib.container.gkemulticloudr   r   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.azurer   2googlecloudsdk.command_lib.container.gkemulticloudr   r   r   r	   r4   ReleaseTracksReleaseTrackALPHAGADeleteCommandr   r.   r   r   <module>rA      sq    C M ( D K H L D	 D%%++T->->-A-ABT  Cr   