
    s                         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
 ddlmZ  G d	 d
e
j                        Zy)z3Implementation of gcloud genomics operations wait.
    )absolute_import)division)unicode_literals)genomics_client)waiter)base)flagsc                   &    e Zd ZdZed        Zd Zy)Waitz&Waits for an operation to complete.
  c                 .    t        j                  |        y)z Register flags for this command.N)r	   AddName)parsers    'lib/surface/genomics/operations/wait.pyArgsz	Wait.Args    s     
MM&    c                     t        j                  |j                        \  }}t        j                  |j                         |dj                  |j                               d       y)zThis 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.
    zWaiting for [{}]i $)max_wait_msN)r   CreateFromNamenamer   WaitForPollerformatRelativeName)selfargsclientresources       r   RunzWait.Run%   sR     '55dii@FH
NN6==?H%,,X-B-B-DE68 r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r      s       r   r   N)r"   
__future__r   r   r   googlecloudsdk.api_lib.genomicsr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.genomicsr	   SilentCommandr   r$   r   r   <module>r+      s3    '  ' ; . ( 54 r   