
                             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 scopes describe' command.    )absolute_import)division)unicode_literals)util)basez4
        Display information about a log scope.
    zh
     To describe a log scope in a project, run:

        $ {command} my-scope --project=my-project
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)Describez&Display information about a log scope.c                 Z    | j                  dd       t        j                  | dd       y)z Register flags for this command.LOG_SCOPE_IDz$The ID of the log scope to describe.)helpzlog scope to describeTexclude_billing_accountN)add_argumentr   AddParentArgs)parsers    &lib/surface/logging/scopes/describe.pyArgszDescribe.Args)   s5     C   	'    c                 2   t        j                         j                  j                  t        j                         j                  t        j                  t        j                  t        j                  |d      dd      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 log scope.
    Tr   	locationsglobal	logScopes)name)	r   	GetClientprojects_locations_logScopesGetGetMessages+LoggingProjectsLocationsLogScopesGetRequestCreateResourceNameGetParentFromArgsr   )selfargss     r   RunzDescribe.Run3   s     >>88<<FF((''**4N
 !! 	G 
	
 r   N)__name__
__module____qualname____doc__staticmethodr   r%    r   r   r   r   %   s    . r   r   N)r)   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   DETAILED_HELPUniverseCompatibleDescribeCommandr   detailed_helpr+   r   r   <module>r3      s\     ) &  ' / (		 #t## # #L ' r   