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

          $ {command} --location=us-central1

        To list all Kafka sources in all locations, run:

          $ {command} --location=-

        or

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