
    
                         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 private-clouds update' command.    )absolute_import)division)unicode_literals)PrivateCloudsClient)base)flags)logz9
          Update a VMware Engine private cloud.
        a  
          To update a private cloud named `my-private-cloud` by changing its description to `Example description` run:

            $ {command} my-private-cloud --location=us-west2-a --project=my-project --description='Example description'

          Or:

            $ {command} my-private-cloud --description='Example description'

          In the second example, the project and location are taken from gcloud properties core/project and compute/zone.

    )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Update/   z2Update a Google Cloud VMware Engine private cloud.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--descriptionz2        Text describing the private cloud
        )helpN)	r   AddPrivatecloudArgToParserr   
ASYNC_FLAGAddToParser
SetDefaultdisplay_info	AddFormatadd_argument)parsers    +lib/surface/vmware/private_clouds/update.pyArgsUpdate.Args5   si     
$$V=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private cloudT)kindis_asyncz,waiting for private cloud [{}] to be updated)operation_refmessage)r!   )CONCEPTSprivate_cloudParser   async_r   r    r	   UpdatedResourcenameWaitForOperationGetOperationRefformatRelativeName)selfargsprivatecloudclientr"   	operationresources          r   Run
Update.RunB   s    ==..446L "F{{Hl8H8HII	)..N&&,,Y7>EE%%') ' *H 113/JOr    N)__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr   r5   __static_attributes__r7   r   r   r   r   /   s!    :-
 
r   r   N)r<   
__future__r   r   r   +googlecloudsdk.api_lib.vmware.privatecloudsr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.vmwarer   googlecloudsdk.corer	   r=   ReleaseTracksReleaseTrackGAUpdateCommandr   r7   r   r   <module>rJ      sh    . &  ' K ( 3 #		* D%%(() T   * r   