
                         0   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 d	Z ej                  ej                  j                   ej                  j"                  ej                  j$                         G d
 dej&                               Zy)z-Command to wait for an operation to complete.    )absolute_import)division)unicode_literals)
operations)base)parser_arguments)flagszs
To wait for an operation in location ``us-west1'' to complete, run:

$ {command} OPERATION_ID --location=us-west1
c                   H    e Zd ZdZdeiZedej                  fd       Z	d Z
y)Waitz!Poll an operation for completion.EXAMPLESparserc                 0    t        j                  | d       y)z!Registers flags for this command.zto wait for completionN)vmware_flagsAddOperationResourceArg)r   s    /lib/surface/container/vmware/operations/wait.pyArgsz	Wait.Args(   s     ((1IJ    c                     t        j                         }|j                  j                  j	                         }|j                  |      S )zRuns the wait command.)operation_ref)r   OperationsClientCONCEPTSoperation_idParser   )selfargsoperation_clientr   s       r   RunzWait.Run-   s=    !224MM..446M  } ==r   N)__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   ArgumentInterceptorr   r    r   r   r   r   !   s9     *y)-K#77 K K>r   r   N)r!   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   googlecloudsdk.callioper   r   +googlecloudsdk.command_lib.container.vmwarer	   r   r"   ReleaseTracksReleaseTrackALPHABETAGACommandr   r&   r   r   <module>r1      s}    4 &  ' A ( 4 M	 T..33T5F5F5I5I>4<< >>r   