
    (                         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"                         G d dej$                               Zy)zHCommand to list all clusters in the Anthos on bare metal standalone API.    )absolute_import)division)unicode_literals)standalone_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 on bare metal standalone clusters.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_STANDALONE_CLUSTERS_FORMAT)r   s    <lib/surface/container/bare_metal/standalone_clusters/list.pyArgsz	List.Args(   s1     
  i8
!!77    c                     |j                   j                  j                         }t        j                         }|j                  ||j                  |j                        S )zRuns the list command.

    Args:
      args: Arguments received from command line.

    Returns:
      The resources listed by the service.
    )limit	page_size)CONCEPTSlocationParser   StandaloneClustersClientr   r   r   )selfargslocation_refclients       r   RunzList.Run0   sG     ==))//1L 99;F;;|4::;PPr   N)__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   ArgumentInterceptorr   r$    r   r   r   r   "   s5    6y)-#77  Q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ListCommandr   r-   r   r   <module>r6      sg    O &  ' J ( 4 R E	 D%%++,Q4 Q -Qr   