
                             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 update' command.    )absolute_import)division)unicode_literals)NetworksClient)base)flags)logz3
          Update a VMware Engine network.
        a  
          To update a network named `my-network` of type `STANDARD` by changing its description to `Example description`, run:

            $ {command} my-network --location=global --project=my-project --description='Example description'

          Or:

            $ {command} my-network --description='Example description'

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

          To update a network named `my-network` of type `LEGACY` by changing its description to `Example description`, run:

            $ {command} my-network --location=us-west2 --project=my-project --description='Example description'

          Or:

            $ {command} my-network --location=us-west2 --description='Example description'

          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)Update8   z,Update a Google Cloud VMware Engine network.c                    [         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  g)z Register flags for this command.T)
positionalyamlz--descriptionz:        Text describing the VMware Engine network
        )helpN)	r   AddNetworkToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormatadd_argument)parsers    %lib/surface/vmware/networks/update.pyArgsUpdate.Args>   si     
V5OO'OOvt,
!!&)
      c                    UR                   R                  R                  5       n[        5       nUR                  nUR                  X!R                  S9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$ )N)descriptionzVMware Engine networkT)kindis_asyncz4waiting for VMware Engine network [{}] to be updated)operation_refmessage)r!   )CONCEPTSvmware_engine_networkParser   async_r   r    r	   UpdatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsnetworkclientr"   	operationresources          r   Run
Update.RunK   s    mm11779GF{{Hg3C3CDI	
..6G&&,,Y7FMM  "
 ' H ,,.5LMOr    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r5   __static_attributes__r7   r   r   r   r   8   s!    4-
 
r   r   N)r<   
__future__r   r   r   &googlecloudsdk.api_lib.vmware.networksr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.vmware.networksr   googlecloudsdk.corer	   r=   ReleaseTracksReleaseTrackGAUpdateCommandr   r7   r   r   <module>rJ      sh    ( &  ' A ( < #		< D%%(()#T # *#r   