
                         n    S 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'logging links list' command.    )util)arg_parsers)basez<
        List the linked datasets created for a bucket.
    zV
     To list the linked datasets created for a bucket, run:

        $ {command}
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)List#   z5List created linked datasets on the specified bucket.c                     [         R                  " U S5        [         R                  " U SS5        U R                  SS[        R
                  " SS5      SS9  U R                  R                  S	5        g
)z Register flags for this command.zlinked datasets to listTz Location of the specified bucketz--bucketz.+zmust be non-emptyzID of bucket)requiredtypehelpz2table(name.segment(-1):label=LINK_ID, create_time)N)r   AddParentArgsAddBucketLocationArgadd_argumentr   RegexpValidatordisplay_info	AddFormat)parsers    !lib/surface/logging/links/list.pyArgs	List.Args&   sn     	v89fd,NO
((0CD	   !!<    c           	   #   >  #    [         R                  " 5       R                  R                  [         R                  " 5       R                  [         R                  " [         R                  " U5      SUR                  5      S95      nUR                   H  nU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 linked datasets.
buckets)parentN)
r   	GetClient projects_locations_buckets_linksr	   GetMessages/LoggingProjectsLocationsBucketsLinksListRequestCreateResourceNameGetBucketLocationFromArgsbucketlinks)selfargsresultlinks       r   RunList.Run6   sz      ^^>>CCJJ**..t4i 	K 	
F j s   BB N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r)   __static_attributes__r+   r   r   r	   r	   #   s    = r   r	   N)
r0   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   r   DETAILED_HELPListCommandr	   detailed_helpr+   r   r   <module>r8      sC     $ 0 / (		%4 %P # r   