
                              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d	Z	ej                   G d
 dej                               Ze	e_        y)z#'logging buckets describe' command.    )absolute_import)division)unicode_literals)util)basez1
        Display information about a bucket.
    zc
     To describe a bucket in a project, run:

        $ {command} my-bucket --location=global
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Describez#Display information about a bucket.c                     | j                  dd       t        j                  | d       t        j                  | dd       y)z Register flags for this command.	BUCKET_IDz!The id of the bucket to describe.)helpzbucket to describeTzLocation of the bucket.N)add_argumentr   AddParentArgsAddBucketLocationArg)parsers    'lib/surface/logging/buckets/describe.pyArgszDescribe.Args)   s<     *MNv34fd,EF    c           	         t        j                         j                  j                  t        j                         j                  t        j                  t        j                  |      d|j                                    S )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 bucket.
    buckets)name)	r   	GetClientprojects_locations_bucketsGetGetMessages)LoggingProjectsLocationsBucketsGetRequestCreateResourceNameGetBucketLocationFromArgsr   )selfargss     r   RunzDescribe.Run0   sf     >>66::DD((..t4i  	E 	!" "r   N)__name__
__module____qualname____doc__staticmethodr   r"    r   r   r   r   %   s    +G G"r   r   N)r&   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   DETAILED_HELPUniverseCompatibleDescribeCommandr   detailed_helpr(   r   r   <module>r0      s[     * &  ' / (		 "t## " "6 ' r   