
                             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 ej                   G d dej                               Zy	)
z!'logging sinks describe' command.    )absolute_import)division)unicode_literals)util)basec                   &    e Zd ZdZed        Zd Zy)DescribezDisplay information about a sink.

  Display information about a sink.

  ## EXAMPLES

  To describe a sync 'my-bq-sync':

    $ {command} my-bq-sink
  c                 V    | j                  dd       t        j                  | d       y)z Register flags for this command.	sink_namez!The name of the sink to describe.)helpzsink to describeN)add_argumentr   AddParentArgs)parsers    %lib/surface/logging/sinks/describe.pyArgszDescribe.Args'   s)     *MNv12    c                 H   t        j                  |j                  |      }t        j                  t        j                  |      d|j
                        }t        j                         j                  j                  t        j                         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 sink with its destination.
    sinks)sinkName)r   GetSinkReferencer   CreateResourceNameGetParentFromArgssinksId	GetClientprojects_sinksGetGetMessagesLoggingProjectsSinksGetRequest)selfargssink_refsink_resources       r   RunzDescribe.Run-   s     $$T^^T:H++D,B,B4,H,3X5E5EGM>>**..99" 	: 	$% %r   N)__name__
__module____qualname____doc__staticmethodr   r#    r   r   r	   r	      s     	 3 3
%r   r	   N)r'   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   UniverseCompatibleDescribeCommandr	   r)   r   r   <module>r/      s@     ( &  ' / ( !%t## !% !%r   