
    	                     L   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rSr\	R$                  " \	R&                  R(                  \	R&                  R*                  \	R&                  R,                  5       " S S\	R.                  5      5       rg)zHCommand to list all admin clusters in the Anthos clusters on VMware API.    )absolute_import)division)unicode_literals)vmware_admin_clusters)base)parser_arguments)	constants)flags)logzd
To list all admin clusters managed in location ``us-west1'', run:

$ {command} --location=us-west1
z
To include admin clusters that are not enrolled with the Anthos On-Prem API, run:

$ gcloud container fleet memberships list --filter='endpoint.onPremCluster.adminCluster=true'
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$ )	List)   z%List Anthos on VMware admin clusters.EXAMPLESparserc                     U R                   R                  [        R                  5        [        R
                  " U S5        g)znGathers command line arguments for the list command.

Args:
  parser: The argparse parser to add the flag to.
z'to list Anthos on VMware admin clustersN)display_info	AddFormatr	   VMWARE_ADMIN_CLUSTERS_FORMATr
   AddLocationResourceArg)r   s    3lib/surface/container/vmware/admin_clusters/list.pyArgs	List.Args1   s2     !!)"H"HI	  !JL    c                 N    [         R                  " 5       nUR                  U5      $ )zRuns the list command.

Args:
  args: Arguments received from command line.

Returns:
  protorpc.message.Message, The resources listed by the service.
)apisAdminClustersClientr   )selfargsclients      r   RunList.Run<   s!     %%'F;;tr   c                 r   > [         [        U ]  U5        [        R                  R                  [        5        g )N)superr   Epilogr   statusPrint_EPILOG)r   resources_were_displayed	__class__s     r   r$   List.EpilogH   s%    	$56JJWr    )__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   ArgumentInterceptorr   r    r$   __static_attributes____classcell__)r)   s   @r   r   r   )   sD     .y)-L#77 L L
 r   r   N)r0   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   r   googlecloudsdk.callioper   r   +googlecloudsdk.command_lib.container.vmwarer	   r
   googlecloudsdk.corer   r1   r'   ReleaseTracksReleaseTrackALPHABETAGAListCommandr   r+   r   r   <module>rB      s    O &  ' T ( 4 A = #	 T..33T5F5F5I5I4 r   