
    8
                         S 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)z1VMware Engine VPC network peering update command.    )networkpeering)base)flags)logzK
          Update a VMware Engine VPC network peering description.
        a;  

          To update only the description of a VPC network peering named `my-peering` to `Example description`, run:

            $ {command} my-peering --description="Example description"

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

    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Update)   z8Update a Google Cloud VMware Engine VPC network peering.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S9  g)	z Register flags for this command.T)
positionalyamlz--descriptionFzB        Updated description for this VPC network peering.
        )requiredhelpN)	r   AddNetworkPeeringToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormatadd_argument)parsers    -lib/surface/vmware/network_peerings/update.pyArgsUpdate.Args/   sl     
##Ft<OO'OOvt,
!!&)
      c                    UR                   R                  R                  5       n[        R                  " 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VPC network peeringT)kindis_asyncz*waiting for vpc peering [{}] to be updated)operation_refmessage)r   )CONCEPTSnetwork_peeringParser   NetworkPeeringClientasync_r
   r   r   UpdatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargspeeringclientr    	operationresources          r   Run
Update.Run=   s    mm++113G002F{{Hg3C3CDI	
..4tE&&,,Y7<CC  "$ ' %H ,,.5JKOr    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r4   __static_attributes__r6   r   r   r
   r
   )   s!    @- r   r
   N)r;   googlecloudsdk.api_lib.vmwarer   googlecloudsdk.callioper   2googlecloudsdk.command_lib.vmware.network_peeringsr   googlecloudsdk.corer   r<   ReleaseTracksReleaseTrackGAUpdateCommandr
   r6   r   r   <module>rH      sa    8 9 ( D #		$ D%%(()"T " *"r   