
    }                     z    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 ddl	m
Z
  G d d	ej                        Zy
)z%Cloud Pub/Sub snapshots list command.    )absolute_import)division)unicode_literals)	snapshots)base)utilc                   &    e Zd ZdZed        Zd Zy)Listz+Lists all the snapshots in a given project.c                     | j                   j                  d       | j                   j                  t        j                         y )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Argsz	List.Args   s7    
!! #  ""4#7#78    c              #      K   t        j                         }|j                  t        j                         |j
                        D ]  }t        j                  |        yw)au  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   RunzList.Run)   sL      &&(FKK 1 1 3t~~KN((22 Os   A!A#N)__name__
__module____qualname____doc__staticmethodr   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   