
                             S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSS	.r	 " S
 S\R                  5      r\	\l        g)z'trace sinks list' command.    )absolute_import)division)unicode_literals)util)basez6
        Lists the defined sinks for the project.
    z/

        $ {command}
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)List#   z(Lists the defined sinks for the project.c                    [         R                  R                  U 5        [         R                  R                  U 5        [         R                  R                  U 5        [         R
                  R                  U 5        [         R                  R                  U 5        U R                  SSS9  U R                  R                  S5        U R                  R                  S5        g)z Register flags for this command.z	--projectzTList all sinks associated with this project. This will override the default project.)helpz)table(name, destination, writer_identity)N)r   PAGE_SIZE_FLAGRemoveFromParser
LIMIT_FLAGSORT_BY_FLAGFILTER_FLAGURI_FLAGadd_argumentdisplay_info	AddFormatAddCacheUpdater)parsers    lib/surface/trace/sinks/list.pyArgs	List.Args&   s     	((0OO$$V,&&v.%%f-MM""6*
3  4 !!"MN
''-    c              #   V  #    [         R                  " 5       R                  R                  [         R                  " 5       R                  [         R                  " UR                  5      R                  5       S95      nUR                   H  n[         R                  " U5      v   M     g7f)zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Yields:
  The list of sinks.
)parentN)r   	GetClientprojects_traceSinksr   GetMessages'CloudtraceProjectsTraceSinksListRequestGetProjectResourceprojectRelativeNamesinksFormatTraceSink)selfargsresultsinks       r   RunList.Run5   s      ^^1166BB**4<<8EEG 	C 	IJF   && s   B'B) N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r-   __static_attributes__r/   r   r   r   r   #   s    0. .'r   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.tracer   googlecloudsdk.callioper   DETAILED_HELPListCommandr   detailed_helpr/   r   r   <module>r=      sG    " &  ' - (	 '4  'F # r   