
    }                     z    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	\R                  5      rg
)z%Cloud Pub/Sub snapshots list command.    )absolute_import)division)unicode_literals)	snapshots)base)utilc                   .    \ rS rSrSr\S 5       rS rSrg)List   z+Lists all the snapshots in a given project.c                     U R                   R                  S5        U R                   R                  [        R                  5        g )Nz
          table[box](
            projectId:label=PROJECT,
            snapshotId:label=SNAPSHOT,
            topicId:label=TOPIC,
            expireTime:label=EXPIRE_TIME
            )
        )display_info	AddFormat
AddUriFuncr   SnapshotUriFunc)parsers    $lib/surface/pubsub/snapshots/list.pyArgs	List.Args   s7    
!! #  ""4#7#78    c              #      #    [         R                  " 5       nUR                  [        R                  " 5       UR
                  S9 H  n[        R                  " U5      v   M     g7f)aQ  This 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.

Yields:
  Snapshot paths that match the regular expression in args.name_filter.

Raises:
  sdk_ex.HttpException if there is an error with the regular
  expression syntax.
)	page_sizeN)r   SnapshotsClientr
   r   ParseProjectr   ListSnapshotDisplayDict)selfargsclientsnapshots       r   RunList.Run)   sK      &&(FKK 1 1 3t~~KN((22 Os   A#A% N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r!   r   r   r
   r
      s    3	9 	93r   r
   N)r&   
__future__r   r   r   googlecloudsdk.api_lib.pubsubr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.pubsubr   ListCommandr
   r!   r   r   <module>r.      s.    , &  ' 3 ( 234 3r   