
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJr  S	r\	R                  " \	R                   R"                  \	R                   R$                  5       " S
 S\	R&                  5      5       rg)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                   6    \ rS rSrSrS\0r\S 5       rS r	Sr
g)Describe!   z"Wait for an operation to complete.EXAMPLESc                 2    [         R                  " U S5        g)z!Registers flags for this command.zto wait forN)r   AddOperationResourceArg)parsers    1lib/surface/container/attached/operations/wait.pyArgsDescribe.Args'   s     ))&-@    c                    [         R                  " [        R                  " U5      R                  U R                  5       5         [        R                  " 5       n[        R                  " U5      nUR                  USR                  UR                  5       5      5        UR                  U5      sSSS5        $ ! , (       d  f       g= f)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   RunDescribe.Run,   s    		4	4//5AA
 ..0i66t<fnn

0
7
78K8K8M
N ]]6"
 
 
s   A+B99
C N)__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   r$   __static_attributes__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>r9      sm    4 &  ' T ( G L	 D%%++T->->-A-AB#t## # C#r   