
                             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 addnodes' command.    )absolute_import)division)unicode_literals)ClustersClient)base)flagsa&  
          Add a node in the VMware Engine cluster. Successful addition
          of a node results in a cluster in READY state. Check the progress
          of a cluster using `gcloud alpha vmware sddc clusters list`.

          For more examples, refer to the EXAMPLES section below.
        al  
          To add a node in 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)AddNodesz;Add a node to 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/addnodes.pyArgszAddNodes.Args6   s     
'    c                     |j                   j                  j                         }t               }|j	                  |d      }|j                  |dj                  |            S )N   z0waiting for node to be added in the cluster [{}])CONCEPTSclusterParser   r   WaitForOperationformat)selfargsr   client	operations        r   RunzAddNodes.Run;   sX    mm##))+GF+I"":AA'JL Lr   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r   2   s    C( (L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    / &  ' F ( 8		2 D%%++,Lt!! L -L" ' r   