
                         <   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dd	l
mZ d
Z ej                  ej                   j"                  ej                   j$                  ej                   j&                         G d dej(                               Zy)z=Command to list all clusters in the Anthos on bare metal API.    )absolute_import)division)unicode_literals)bare_metal_clusters)base)parser_arguments)cluster_flags)	constantsz_
To lists all clusters managed in location ``us-west1'', run:

$ {command} --location=us-west1
c                   H    e Zd ZdZdeiZedej                  fd       Z	d Z
y)Listz#List Anthos clusters on bare metal.EXAMPLESparserc                     t        j                  | d       | j                  j                  t        j
                         y)z4Gathers command line arguments for the list command.zto list)verbN)flagsAddLocationResourceArgdisplay_info	AddFormatr
   BARE_METAL_CLUSTERS_FORMAT)r   s    1lib/surface/container/bare_metal/clusters/list.pyArgsz	List.Args*   s.     
  i8
!!)"F"FG    c                 L    t        j                         }|j                  |      S )zRuns the list command.

    Args:
      args: Arguments received from command line.

    Returns:
      The resources listed by the service.
    )r   ClustersClientr   )selfargsclients      r   RunzList.Run0   s!     !//1F;;tr   N)__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   ArgumentInterceptorr   r    r   r   r   r   #   s9     ,y)-H#77 H H

r   r   N)r"   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   googlecloudsdk.callioper   r   /googlecloudsdk.command_lib.container.bare_metalr	   r   r
   r#   ReleaseTracksReleaseTrackALPHABETAGAListCommandr   r'   r   r   <module>r2      s    D &  ' J ( 4 R E	 T..33T5F5F5I5I4 r   