
    	                     \   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 jr
\R                  " \R                  R                  5       " S S	\R                  5      5       r\R                  " \R                  R                   \R                  R"                  5       " S
 S\5      5       rg)z0Cloud Pub/Sub topics list_subscriptions command.    )topics)base)resource_args)util)
propertiesc              #      #    [         R                  " 5       nU R                  R                  R	                  5       nUR                  X0R                  S9 H$  nU(       a  [        R                  " U5      nUv   M&     g 7f)N)	page_size)	r   TopicsClientCONCEPTStopicParseListSubscriptionsr	   r    ListTopicSubscriptionDisplayDict)argslegacy_outputclient	topic_ref	topic_subs        /lib/surface/pubsub/topics/list_subscriptions.py_Runr      sd      &mm!!''))++>> , +i77	Bi
O	+s   A<A>c                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
r   $   5Lists Cloud Pub/Sub subscriptions from a given topic.z}          Lists all of the Cloud Pub/Sub subscriptions attached to the given
          topic and that match the given filter.a            To filter results by subscription name
          (ie. only show subscription 'mysubs'), run:

            $ {command} mytopic --filter=mysubs

          To combine multiple filters (with AND or OR), run:

            $ {command} mytopic --filter="mysubs1 OR mysubs2"
          )DESCRIPTIONEXAMPLESc                     U R                   R                  S5        U R                   R                  [        R                  5        [
        R                  " U S5        g )Nyamlzto list subscriptions for.)display_info	AddFormat
AddUriFuncr   SubscriptionUriFuncr   AddTopicResourceArg)parsers    r   ArgsListSubscriptions.Args:   sA    
!!&)
""4#;#;<%%f.JK    c                     [        U5      $ )N)r   )selfr   s     r   RunListSubscriptions.RunA   s    :r&    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr$   r)   __static_attributes__r+   r&   r   r   r   $   s1    =4	-$ L Lr&   r   c                       \ rS rSrSrS rSrg)ListSubscriptionsBetaE   r   c                 x    [         R                  R                  R                  R	                  5       n[        XS9$ )N)r   )r   VALUESpubsubr   GetBoolr   )r(   r   r   s      r   r)   ListSubscriptionsBeta.RunI   s-    %%,,::BBDM22r&   r+   N)r,   r-   r.   r/   r0   r)   r3   r+   r&   r   r5   r5   E   s
    =3r&   r5   N)F)r0   googlecloudsdk.api_lib.pubsubr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.pubsubr   r   googlecloudsdk.corer   r   ReleaseTracksReleaseTrackGAListCommandr   BETAALPHAr5   r+   r&   r   <module>rF      s    7 1 ( ; 2 * D%%(()((  *@ D%%**D,=,=,C,CD3- 3 E3r&   