
    ?
                     *   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 AWS.    )absolute_import)division)unicode_literals)aws)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)Deletez/Delete a node pool in an Anthos cluster on AWS.EXAMPLESc                    t        j                  | d       t        j                  | d       t        j                  | d       t        j
                  | t        j                  d       t        j                  j                  |        y )Nz	to deleteznode pool to deletez	node pool)r   AddAwsNodePoolResourceArgr   AddValidateOnlyAddAllowMissingAddIgnoreErrorsr
   AWSr   
ASYNC_FLAGAddToParser)parsers    .lib/surface/container/aws/node_pools/delete.pyArgszDelete.Args+   s[    ++FK@	&"78	&+.	&)--=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   ParseAwsNodePoolResourceArglocationsIdr   GkemulticloudEndpointOverrideapi_utilNodePoolsClientr	   NodePoolMessageawsNodePoolsIdawsClustersIdDeleteWithIgnoreErrorsr
   AWS_NODEPOOL_KIND)selfargslocationnode_pool_refnode_pool_clientmessages         r   Runz
Delete.Run5   s    88>JJH		4	4X	>#??Em!113,,

&
&0K0Kg ))





%
% 
?	>	>s   A<B::CN)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r.    r   r   r   r   %   s&    7y)-( (r   r   N)r2   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r!   googlecloudsdk.callioper   (googlecloudsdk.command_lib.container.awsr   2googlecloudsdk.command_lib.container.gkemulticloudr	   r
   r   r   r3   ReleaseTracksReleaseTrackALPHAGADeleteCommandr   r6   r   r   <module>rA      sy    A &  ' J ( B K H L D	 D%%++T->->-A-ABT  Cr   