
                             S r SSKJr  SSKJr  SSKJr  SSS.r\R                   " S S	\R                  5      5       r	\\	l
        g
)z#'logging buckets describe' command.    )util)arg_parsers)basez4
        Displays information about a log view.
    zr
     To describe a view in a project, run:

        $ {command} my-view --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 view.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.VIEW_IDzId of the view to describe.)helpzview 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/views/describe.pyArgsDescribe.Args&   si     	(EFv12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 view
bucketsviews)name)
r   	GetClient projects_locations_buckets_viewsGetGetMessages.LoggingProjectsLocationsBucketsViewsGetRequestCreateResourceNameGetBucketLocationFromArgsbucketr   )selfargss     r   RunDescribe.Run2   s}     >><<@@II((''2248)KK!")4<<9 	J 	:; ;r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r'   __static_attributes__r)   r   r   r	   r	   "   s    )	 	;r   r	   N)r.   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   r   DETAILED_HELPUniverseCompatibleDescribeCommandr	   detailed_helpr)   r   r   <module>r7      sX    * 0 / (		 ;t## ; ;B ' r   