
    s                     ~   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	KJr  SS
KJr  SSKJr  Sr\
R(                  " \
R*                  R,                  \
R*                  R.                  \
R*                  R0                  5      \
R2                   " S S\
R4                  5      5       5       rg)z.Command to update an Anthos cluster on VMware.    )absolute_import)division)unicode_literals)
operations)vmware_admin_clusters)base)parser_arguments)	constants)flags)logz}
To update a cluster named ``my-cluster'' managed in location ``us-west1'', run:

$ {command} my-cluster --location=us-west1
c                   R    \ rS rSrSrS\0r\S\R                  4S j5       r
S rSrg)	Update%   z)Update an Anthos on VMware admin cluster.EXAMPLESparserc                    U R                   R                  [        R                  5        [        R
                  " U SS5        [        R                  " U 5        [        R                  " U 5        [        R                  R                  U 5        g)zpGathers command line arguments for the update command.

Args:
  parser: The argparse parser to add the flag to.
z	to updateTN)display_info	AddFormatvmware_constantsVMWARE_ADMIN_CLUSTERS_FORMATr   AddAdminClusterResourceArgAddRequiredPlatformVersion
AddVersionr   
ASYNC_FLAGAddToParser)r   s    5lib/surface/container/vmware/admin_clusters/update.pyArgsUpdate.Args.   s_     !!"2"O"OP	$$V[$?	$$V,	VOO'    c                    UR                   R                  R                  5       n[        R                  " 5       nUR                  U5      nUR                  (       a+  UR                  S5      (       d  [        R                  Ul
        UR                  (       a$  [        R                  " USUR                  5        U$ [        R                  " 5       nUR                  U5      n[        R                  " USUR                  5        U$ )zRuns the update command.

Args:
  args: The arguments received from command line.

Returns:
  The return value depends on the command arguments. If `--async` is
  specified, it returns an operation; otherwise, it returns the updated
  resource.
formatzAnthos on VMware Admin Cluster)CONCEPTSadmin_clusterParseapisAdminClustersClientr   async_IsSpecifiedr
   OPERATIONS_FORMATr!   r   UpdatedResourcer   OperationsClientWait)selfargscluster_refcluster_client	operationoperation_clientoperation_responses          r   Run
Update.Run;   s     ----335K--/N%%d+I{{4++H55//dk{{	+:++' #446+00;	+:++'  r    N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr	   ArgumentInterceptorr   r4   __static_attributes__r6   r   r   r   r   %   s6    
 2y)-
(#77 
( 
( r   r   N)r;   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   r   r%   googlecloudsdk.callioper   r	   .googlecloudsdk.command_lib.container.gkeonpremr
   +googlecloudsdk.command_lib.container.vmwarer   r   googlecloudsdk.corer   r<   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyUpdateCommandr   r6   r   r   <module>rN      s    5 &  ' A T ( 4 D U = #	 T..33T5F5F5I5I 0 T 0  0 r   