
                         H   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rSrSr\	R$                  " \	R&                  R(                  \	R&                  R*                  \	R&                  R,                  5       " S S\	R.                  5      5       rg
)z8Command to query Anthos on VMware version configuration.    )absolute_import)division)unicode_literals)vmware_clusters)base)parser_arguments)flags)logNaM  
To query all available versions in location `us-west1`, run:

$ {command} --location=us-west1

To query versions for creating a cluster with an admin cluster membership named
`my-admin-cluster-membership` managed in project `my-admin-cluster-project` and
location `us-west`, run:

$ {command} --location=us-west1 --admin-cluster-membership=my-admin-cluster-membership --admin-cluster-membership-project=my-admin-cluster-project

To query versions for upgrading a user cluster named `my-user-cluster` in
location `us-west1`, run:

$ {command} --location=us-west1 --cluster=my-user-cluster
a  
An Anthos version must be made available on the admin cluster ahead of the user
cluster creation or upgrade. Versions annotated with isInstalled=true are
installed on the admin cluster for the purpose of user cluster creation or
upgrade whereas other version are released and will be available for upgrade
once dependencies are resolved.

To install the version in the admin cluster, run:
$ {} container vmware admin-clusters update my-admin-cluster --required-platform-version=VERSION
c                   f   ^  \ rS rSrSrS\0r\S\R                  4S j5       r
S rU 4S jrSrU =r$ )	QueryVersionConfig9   zJQuery versions for creating or upgrading an Anthos on VMware user cluster.EXAMPLESparserc                 ^    [         R                  " U S5        [         R                  " U 5        g)z!Registers flags for this command.zto query versionsN)r	   AddLocationResourceArgAddConfigType)r   s    =lib/surface/container/vmware/clusters/query_version_config.pyArgsQueryVersionConfig.ArgsA   s#     
  )<=	    c                 N    [         R                  " 5       nUR                  U5      $ )z&Runs the query-version-config command.)apisClustersClientr   )selfargsclients      r   RunQueryVersionConfig.RunG   s!      "F$$T**r   c                   > [         [        U ]  U5        SnU R                  5       [        R                  R
                  L d+  U R                  5       [        R                  R                  L a8  US[        R                  " U R                  5       5      R                  5       -   -  n[        R                  R                  [        R                  U5      5        g )Ngcloud )superr   EpilogReleaseTrackr   BETAALPHAsix	text_typelowerr
   statusPrint_EPILOGformat)r   resources_were_displayedcommand_base	__class__s      r   r#   QueryVersionConfig.EpilogL   s    	
d*+CDLt00555$"3"3"9"99cCMM$*;*;*=>DDFFFlJJW^^L12r    )__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   ArgumentInterceptorr   r   r#   __static_attributes____classcell__)r0   s   @r   r   r   9   sB     Sy)- #77    
+
3 3r   r   )r7   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   r   googlecloudsdk.callioper   r   +googlecloudsdk.command_lib.container.vmwarer	   googlecloudsdk.corer
   r'   r8   r,   ReleaseTracksr$   r&   r%   GACommandr   r2   r   r   <module>rF      s    ? &  ' N ( 4 = # 
	"	 T..33T5F5F5I5I3 33r   