
                             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
S.r\R                  " \R                  R                   5       " S S\R"                  5      5       rg)z!'vmware networks create' command.    )absolute_import)division)unicode_literals)NetworksClient)base)flags)logz
          Create a VMware Engine network. VMware Engine network creation is considered finished when the VMware Engine network is in ACTIVE state. Check the progress of a VMware Engine network creation using `{parent_command} list`.
        a0  
          To create a VMware Engine network of type `STANDARD`, run:

            $ {command} my-network --type=STANDARD --location=global --project=my-project

          Or:

            $ {command} my-network --type=STANDARD

          In the second example, the project is taken from gcloud properties core/project and the location is taken as `global`.

          To create a VMware Engine network of type `LEGACY` in the `us-west2` region, run:

            $ {command} my-network --type=LEGACY --location=us-west2 --project=my-project

          Or:

            $ {command} my-network --type=LEGACY --location=us-west2

          In the last example, the project is taken from gcloud properties core/project. For VMware Engine networks of type `LEGACY`, you must always specify a region as the location.
    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Create8   z,Create a Google Cloud VMware Engine network.c                 0   SSS.n[         R                  " U SS9  [        R                  R	                  U 5        [        R                  R                  U S5        U R                  R                  S5        U R                  SSS	9  U R                  S
SUSS9  g)z Register flags for this command.zyStandard network type used for private cloud connectivity. A VMware Engine network of type STANDARD is a global resource.zNetwork type used by private clouds created in projects without a network of type STANDARD. This network type is only used for new PCs in existing projects that continue to use LEGACY network. A VMware Engine network of type LEGACY is a regional resource.)STANDARDLEGACYT)
positionalyamlz--descriptionz;        Text describing the VMware Engine network.
        )helpz--typez"Type of the VMware Engine network.)requiredchoicesr   N)	r   AddNetworkToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormatadd_argument)parsertype_choicess     %lib/surface/vmware/networks/create.pyArgsCreate.Args>   s    
KK	L 
V5OO'OOvt,
!!&)
  
 5	  7    c                    UR                   R                  R                  5       n[        5       nUR                  nUR                  X!R                  UR                  5      nU(       a!  [        R                  " UR                  SSS9  g UR                  UR                  U5      SR                  UR                  5       5      S9n[        R                  " UR                  5       SS9  U$ )NzVMware Engine networkT)kindis_asyncz4waiting for VMware Engine network [{}] to be created)operation_refmessage)r%   )CONCEPTSvmware_engine_networkParser   async_r   typedescriptionr	   CreatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsnetworkclientr&   	operationresources          r    Run
Create.RunZ   s    mm11779GF{{Hgyy$2B2BCI	
..6G&&,,Y7FMM  "
 ' H ,,.5LMOr#    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr!   r;   __static_attributes__r=   r#   r    r   r   8   s!    4-7 76r#   r   N)rB   
__future__r   r   r   &googlecloudsdk.api_lib.vmware.networksr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.vmware.networksr   googlecloudsdk.corer	   rC   ReleaseTracksReleaseTrackGACreateCommandr   r=   r#   r    <module>rP      sh    ( &  ' A ( < #		< D%%(()2T 2 *2r#   