
    H                         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d	Z	d
Z
 ej                  ej                  j                        ej                   G d dej                                      Zy)z8Command to list all locations available in Eventarc API.    )absolute_import)division)unicode_literals)	locations)basez{description}zD         To list all locations, run:

          $ {command}
        )DESCRIPTIONEXAMPLESztable(locationId:label=NAME)c                   *    e Zd ZdZeZed        Zd Zy)Listz&List locations available for Eventarc.c                     | j                   j                  t               | j                   j                  t        j
                         y )N)display_info	AddFormat_FORMAT
AddUriFuncr   GetLocationsURI)parsers    &lib/surface/eventarc/locations/list.pyArgsz	List.Args-   s0    
!!'*
""9#<#<=    c                     t        j                  | j                               }|j                  |j                  |j
                        S )zRun the list command.)limit	page_size)r   LocationsClientReleaseTrackr   r   r   )selfargsclients      r   RunzList.Run2   s6    &&t'8'8':;F;;TZZ4>>;BBr   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r    r   r   r   r   &   s$     / -> >Cr   r   N)r"   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   r#   r   ReleaseTracksr   GADefaultUniverseOnlyListCommandr   r&   r   r   <module>r.      s|    ? &  ' 5 ( 				 ) D%%(()C4 C  *Cr   