
    	                         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KJ	r	  SS	S
.r
 " S S\	R                  5      r\
\l        g)z#'logging buckets describe' command.    )absolute_import)division)unicode_literals)util)arg_parsers)basez9
        Display information about a linked dataset.
    z|
     To describe a linked dataset in a project, run:

        $ {command} my-link --bucket=my-bucket --location=global
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Describe%   z+Display information about a linked dataset.c                     U R                  SSS9  [        R                  " U S5        [        R                  " U SS5        U R                  SS[        R
                  " SS	5      S
S9  g)z Register flags for this command.LINK_IDz%Id of the linked dataset to describe.)helpzlinked dataset to describeTzLocation of the bucket.z--bucketz.+zmust be non-emptyzID of bucket)requiredtyper   N)add_argumentr   AddParentArgsAddBucketLocationArgr   RegexpValidator)parsers    %lib/surface/logging/links/describe.pyArgsDescribe.Args(   si     	(OPv;<fd,EF
((0CD	      c                 F   [         R                  " 5       R                  R                  [         R                  " 5       R                  [         R                  " [         R                  " [         R                  " U5      SUR                  5      SUR                  5      S95      $ )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.

Returns:
  The specified linked dataset
bucketslinks)name)
r   	GetClient projects_locations_buckets_linksGetGetMessages.LoggingProjectsLocationsBucketsLinksGetRequestCreateResourceNameGetBucketLocationFromArgsbucketr   )selfargss     r   RunDescribe.Run5   s     >><<@@II((''2248)T[[  	J 	

 
r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r*   __static_attributes__r,   r   r   r   r   %   s    3
 
r   r   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   r   DETAILED_HELPDescribeCommandr   detailed_helpr,   r   r   <module>r:      sJ    * &  ' / / (		$t## $N ' r   