
                         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 snapshot describe command.    )absolute_import)division)unicode_literals)	snapshots)base)utilc                   &    e Zd ZdZed        Zd Zy)Describez#Describes a Cloud Pub/Sub snapshot.c                 *    | j                  dd       y)z!Registers flags for this command.snapshotzsnapshot to describe.)helpN)add_argument)parsers    (lib/surface/pubsub/snapshots/describe.pyArgszDescribe.Args   s     
)@A    c                     t        j                         }t        j                  |j                        }|j                  |      S )a  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.

    Returns:
      A serialized object (dict) describing the results of the operation.
      This description fits the Resource described in the ResourceRegistry under
      'pubsub.projects.snapshots'.
    )r   SnapshotsClientr   ParseSnapshotr   Get)selfargsclientsnapshot_refs       r   RunzDescribe.Run"   s5     &&(F%%dmm4L::l##r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r
   r
      s    +B B$r   r
   N)r   
__future__r   r   r   googlecloudsdk.api_lib.pubsubr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.pubsubr   DescribeCommandr
   r!   r   r   <module>r'      s.    / &  ' 3 ( 2$t## $r   