
    .                         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 r\R                   " S	 S
\R                  5      5       rg)z%Cloud Pub/Sub topic describe command.    )absolute_import)division)unicode_literals)topics)base)resource_argsc                 j    U S L =(       d)    U R                  S5      =(       d    U R                  S5      $ )Nyamldefault)
startswith)output_formats    %lib/surface/pubsub/topics/describe.py _FormatRequiresDelimiterEscapingr      s5    t -		!	!&	)-		!	!)	,    c                   .    \ rS rSrSr\S 5       rS rSrg)Describe"   z Describes a Cloud Pub/Sub topic.c                 2    [         R                  " U S5        g )Nzto describe.)r   AddTopicResourceArg)parsers    r   ArgsDescribe.Args&   s    %%fn=r   c                    [         R                  " 5       nUR                  R                  R	                  5       nUR                  U5      n[        UR                  5      (       d  U$ UR                  nU(       au  UR                  (       ad  UR                  R                  (       aI  UR                  R                  R                  S:X  a%  SUR                  R                  R                  l        U$ )N
z\n)r   TopicsClientCONCEPTStopicParseGetr   formatingestionDataSourceSettingscloudStorage
textFormat	delimiter)selfargsclient	topic_reftopic_resultingestion_settingss         r   RunDescribe.Run*   s      "F##))+I::i(L,T[[99 &AA++++66++66@@DH  ..;;FFP r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r+   __static_attributes__r-   r   r   r   r   "   s    (> >r   r   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.pubsubr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.pubsubr   r   UniverseCompatibleDescribeCommandr   r-   r   r   <module>r;      sH    , &  ' 0 ( ; t##  r   