
    	                     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\	R0                  5      5       rg)zMCommand to list all admin clusters in the Anthos clusters on bare metal API.
    )absolute_import)division)unicode_literals)bare_metal_admin_clusters)base)parser_arguments)admin_cluster_flags)	constants)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 bare metal 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 bare metal admin clustersN)display_info	AddFormatr
    BARE_METAL_ADMIN_CLUSTERS_FORMATcluster_flagsAddLocationResourceArg)r   s    7lib/surface/container/bare_metal/admin_clusters/list.pyArgs	List.Args2   s2     !!)"L"LM((=?    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.EpilogI   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   *   sA     2y)-?#77 ? ?
 r   r   N)r1   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   r   googlecloudsdk.callioper   r   /googlecloudsdk.command_lib.container.bare_metalr	   r   r
   googlecloudsdk.corer   r2   r(   ReleaseTracksReleaseTrackALPHABETAGAListCommandr   r,   r   r   <module>rC      s    '  ' X ( 4 ` E #	 T..33T5F5F5I5I4 r   