
    s                     t   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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)z)Cloud Pub/Sub subscriptions list command.    )absolute_import)division)unicode_literals)subscriptions)base)util)
propertiesc              #      #    [         R                  " 5       nUR                  [        R                  " 5       U R
                  S9 H$  nU(       a  [        R                  " U5      nUv   M&     g 7f)N)	page_size)r   SubscriptionsClientListr   ParseProjectr   ListSubscriptionDisplayDict)argslegacy_outputclientsubs       (lib/surface/pubsub/subscriptions/list.py_Runr      sP     ,,.&[[**,[Gc,,S1c
I Hs   A,A.c                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	r   #   "Lists Cloud Pub/Sub subscriptions.DESCRIPTIONzKLists all of the Cloud Pub/Sub subscriptions that exist in a given project.c                 V    U R                   R                  [        R                  5        g N)display_info
AddUriFuncr   SubscriptionUriFunc)parsers    r   Args	List.Args,   s    
""4#;#;<    c                     [        U5      $ r   )r   )selfr   s     r   RunList.Run0   s    :r"    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr    r%   __static_attributes__r'   r"   r   r   r   #   s/    *  +-
 = =r"   r   c                       \ rS rSrSrS rSrg)ListBeta4   r   c                 x    [         R                  R                  R                  R	                  5       n[        XS9$ )N)r   )r	   VALUESpubsubr   GetBoolr   )r$   r   r   s      r   r%   ListBeta.Run8   s-    %%,,::BBDM22r"   r'   N)r(   r)   r*   r+   r,   r%   r/   r'   r"   r   r1   r1   4   s
    *3r"   r1   N)F)r,   
__future__r   r   r   googlecloudsdk.api_lib.pubsubr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.pubsubr   googlecloudsdk.corer	   r   ReleaseTracksReleaseTrackGAListCommandr   BETAALPHAr1   r'   r"   r   <module>rC      s    0 &  ' 7 ( 2 * D%%(()4  *  D%%**D,=,=,C,CD3t 3 E3r"   