
    	                         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	d
Z ej                  ej                  j                         G d dej                               Zee_        y)z+'vmware sddc clusters removenodes' command.    )absolute_import)division)unicode_literals)ClustersClient)base)flagsa%  
          Remove a node from the VMware Engine cluster. Successful removal
          of a node results in a cluster in READY state. Check the progress
          of a cluster using `gcloud alpha vmware clusters list`.

          For more examples, refer to the EXAMPLES section below.
        aq  
          To remove a node from the cluster called ``my-cluster'', run:

            $ {command} my-cluster --privatecloud=my-privatecloud --region=us-central1 --project=my-project

          Or:

            $ {command} my-cluster

          In the second example, the project and region are taken from
          gcloud properties core/project and vmware/region.
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)RemoveNodesz@Remove a node from the cluster in a VMware Engine private cloud.c                 .    t        j                  |        y)z Register flags for this command.N)r   AddClusterArgToParser)parsers    /lib/surface/vmware/sddc/clusters/removenodes.pyArgszRemoveNodes.Args6   s     
'    c                     |j                   j                  j                         }t               }|j	                  |d      }|j                  |dj                  |            S )N   z4waiting for node to be removed from the cluster [{}])CONCEPTSclusterParser   r   WaitForOperationformat)selfargsr   client	operations        r   RunzRemoveNodes.Run;   sZ    mm##))+GF""7A.I"">EEgNP Pr   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r   2   s    H( (Pr   r   N)r"   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.sddc.clustersr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.vmware.sddcr   DETAILED_HELPReleaseTracksReleaseTrackALPHAUpdateCommandr   detailed_helpr$   r   r   <module>r/      st    2 &  ' F ( 8		2 D%%++,P$$$ P -P" * r   