
                         "   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	d
ZdZ ej                  ej                  j                  ej                  j                         ej"                   G d dej$                                      Zy)z<Command to list all message buses in a project and location.    )absolute_import)division)unicode_literals)message_buses)base)flagsz{description}z        To list all message buses in location ``us-central1'', run:

          $ {command} --location=us-central1

        To list all message buses in all locations, run:

          $ {command} --location=-

        or

          $ {command}
        )DESCRIPTIONEXAMPLESztable(
    name.scope("messageBuses"):label=NAME,
    name.scope("locations").segment(0):label=LOCATION,
    loggingConfig.logSeverity:label=LOGGING_CONFIG
)
c                   *    e Zd ZdZeZed        Zd Zy)ListzList Eventarc message buses.c                     t        j                  | ddd       t        j                  |        | j                  j	                  t
               | j                  j                  t        j                         y )NzZThe location for which to list message buses. This should be one of the supported regions.FT)requiredallow_aggregation)	r   AddLocationResourceArgAddProjectResourceArgdisplay_info	AddFormat_FORMAT
AddUriFuncr   GetMessageBusURI)parsers    *lib/surface/eventarc/message_buses/list.pyArgsz	List.Args:   s\    	  	" 
'
!!'*
""=#A#AB    c                     t        j                         }|j                  j                  j	                         }|j                  ||j                  |j                        S )N)r   MessageBusClientV1CONCEPTSlocationParser   limit	page_size)selfargsclientlocation_refs       r   RunzList.RunG   sC    --/F==))//1L;;|TZZ@@r   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r&    r   r   r   r   3   s&     % -
C 
CAr   r   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   r+   r   ReleaseTracksReleaseTrackBETAGADefaultUniverseOnlyListCommandr   r.   r   r   <module>r9      s    C &  ' 9 ( 5 #" D%%**D,=,=,@,@AA4 A  BAr   