
                             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S	KJr  S
SS.r\R                   " \R"                  R$                  5       " S S\R&                  5      5       r\\l        g)z&'vmware sddc clusters create' command.    )absolute_import)division)unicode_literals)ClustersClient)base)labels_util)flags)
propertiesa3  
          Create a cluster in a VMware Engine private cloud. Successful creation
          of a cluster 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.
        a4  
          To create a cluster called ``my-cluster'' in private cloud
          ``my-privatecloud'', with three initial nodes created in zone
          ``us-central1-a'', run:

            $ {command} my-cluster --privatecloud=my-privatecloud --region=us-central1 --project=my-project --zone=us-central1-a --node-count=3

          Or:

            $ {command} my-cluster --privatecloud=my-privatecloud -zone=us-central1-a --node-count=3

          In the second example, the project and region are taken from gcloud properties core/project and vmware/region.
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Create5   z2Create a cluster in a VMware Engine private cloud.c                     [         R                  " U 5        U R                  SS[        SS9  U R                  SSSS9  [        R
                  " U 5        g)	z Register flags for this command.z--node-countTz7        Initial number of nodes in the cluster
        )requiredtypehelpz--zonez=        Zone in which to create nodes in the cluster
        )r   r   N)r	   AddClusterArgToParseradd_argumentintr   AddCreateLabelsFlags)parsers    *lib/surface/vmware/sddc/clusters/create.pyArgsCreate.Args9   sc     
'
	      $$V,    c                 n   UR                   R                  R                  5       n[        5       n[        R
                  R                  R                  R                  5       nUR                  nUR                  nUR                  X%XFUR                  5      nUR                  USR                  U5      5      $ )Nz&waiting for cluster [{}] to be created)CONCEPTSclusterParser   r
   VALUESvmware	node_typeGet
node_countzoner   labelsWaitForOperationformat)selfargsr   clientr#   r%   r&   	operations           r   Run
Create.RunL   s    mm##))+GF!!((22668IJ99Dg9DKKPI"";BB7KM Mr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r.   __static_attributes__r0   r   r   r   r   5   s    :- -$Mr   r   N)r5   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.sddc.clustersr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.util.argsr   &googlecloudsdk.command_lib.vmware.sddcr	   googlecloudsdk.corer
   DETAILED_HELPReleaseTracksReleaseTrackALPHACreateCommandr   detailed_helpr0   r   r   <module>rD      sy    - &  ' F ( < 8 *		4 D%%++,MT M -MB % r   