
                         ,   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  ej                  ej                  j                  ej                  j                  ej                  j                          G d	 d
ej"                               Zy)"Wait for an execution to complete.    )absolute_import)division)unicode_literals)	workflows)base)flags)hooksc                   0    e Zd ZdZdddZed        Zd Zy)Waitr   z{description}z          To wait for an execution with ID 'my-workflow-execution-ID' from a
          workflow named 'my-workflow' to finish, run:

            $ {command} my-workflow-execution-ID --workflow=my-workflow

          )DESCRIPTIONEXAMPLESc                 2    t        j                  | d       y )Nz
to wait on)verb)r	   AddExecutionResourceArg)parsers    (lib/surface/workflows/executions/wait.pyArgsz	Wait.Args-   s    	!!&|<    c                     t        j                  d|d       t        j                  | j	                               }t        j                  |      }t        j                  |      }|j                  |      S )z3Starts the wait on the completion of the execution.N)	r
   print_default_location_warningr   ReleaseTrackToApiVersionReleaseTrackr	   ParseExecutionWorkflowExecutionClientWaitForExecution)selfargsapi_versionexecution_refclients        r   RunzWait.Run1   s^    	((tT:44T5F5F5HIK((.M..{;F""=11r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r"    r   r   r   r      s1     + 	- = =2r   r   N)r&   
__future__r   r   r    googlecloudsdk.api_lib.workflowsr   googlecloudsdk.callioper   $googlecloudsdk.command_lib.workflowsr	   r
   ReleaseTracksr   ALPHABETAGADescribeCommandr   r)   r   r   <module>r3      sx    ) &  ' 6 ( 6 6 D%%++T->->-C-C%%((*24 2*2r   