
    
                     *   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 a node pool in an Anthos cluster on Azure.    )absolute_import)division)unicode_literals)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                   .    e Zd ZdZdeiZed        Zd Zy)Deletez1Delete a node pool in an Anthos cluster on Azure.EXAMPLESc                     t        j                  | d       t        j                  | d       t        j                  | t
        j                  d       t        j                  j                  |        y )Nz	to deletez	node pool)
r   AddAzureNodePoolResourceArgr   AddAllowMissingAddIgnoreErrorsr
   AZUREr   
ASYNC_FLAGAddToParser)parsers    0lib/surface/container/azure/node_pools/delete.pyArgszDelete.Args+   sJ    --fkB	&+.	&)//;?OO'    c                    t        j                  |      j                  }t        j                  |      5  t        j                  |      }t        j                         }t        j                  |j                  |j                        }t        j                  ||||t        j                         ddd       y# 1 sw Y   yxY w)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   Runz
Delete.Run4   s    ::4@LLH		4	4X	>#AA$Gm!113,,

(
(-2O2Og ))





'
' 
?	>	>s   A<B::CN)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r-    r   r   r   r   %   s&    9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@      sy    C &  ' L ( D K H L D	 D%%++T->->-A-ABT  Cr   