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

$ {command} OPERATION_ID --location=us-west1
c                   .    e Zd ZdZdeiZed        Zd Zy)Describez"Wait for an operation to complete.EXAMPLESc                 0    t        j                  | d       y)z!Registers flags for this command.zto wait forN)r   AddOperationResourceArg)parsers    1lib/surface/container/attached/operations/wait.pyArgszDescribe.Args'   s     ))&-@    c                    t        j                  t        j                  |      j                  | j                               5  t        j                         }t        j                  |      }|j                  |dj                  |j                                      |j                  |      cddd       S # 1 sw Y   yxY w)zRuns the wait command.z$Waiting for operation {} to completeN)r	   GkemulticloudEndpointOverrider   ParseOperationResourceArglocationsIdReleaseTrackop_api_utilOperationsClientWaitformatRelativeNameGet)selfargs	op_clientop_refs       r   RunzDescribe.Run,   s    		4	4//5AA
 ..0i66t<fnn

0
7
78K8K8M
N ]]6"
 
 
s   A)B55B>N)	__name__
__module____qualname____doc__	_EXAMPLESdetailed_helpstaticmethodr   r"    r   r   r   r   !   s(    *y)-A A#r   r   N)r&   
__future__r   r   r   .googlecloudsdk.api_lib.container.gkemulticloudr   r   googlecloudsdk.callioper   -googlecloudsdk.command_lib.container.attachedr   2googlecloudsdk.command_lib.container.gkemulticloudr	   r'   ReleaseTracksr   ALPHAGADescribeCommandr   r*   r   r   <module>r4      so    4 &  ' T ( G L	 D%%++T->->-A-AB#t## # C#r   