
                            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                  5       " S
 S\R                   5      5       r\R                  " \R                  R$                  5       " S S\R                   5      5       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)parser_arguments)cluster_flagszs
To wait for an operation in location ``us-west1'' to complete, run:

$ {command} OPERATION_ID --location=us-west1
c                   R    \ rS rSrSrS\0r\S\R                  4S j5       r
S rSrg)		WaitAlpha!   !Poll an operation for completion.EXAMPLESparserc                 ^    [         R                  " U S5        [         R                  " U 5        gz!Registers flags for this command.zto wait for completionN)r	   AddOperationResourceArgAddOperationTimeoutr   s    3lib/surface/container/bare_metal/operations/wait.pyArgsWaitAlpha.Args'   s#     ))&2JK%%f-    c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  X1R                  S9$ )Runs the wait command.)operation_reftimeout)r   OperationsClientCONCEPTSoperation_idParseWaitr   selfargsoperation_clientr   s       r   RunWaitAlpha.Run-   sH    !224MM..446M  #\\ !  r    N__name__
__module____qualname____firstlineno____doc__	_EXAMPLESdetailed_helpstaticmethodr   ArgumentInterceptorr   r&   __static_attributes__r(   r   r   r   r   !   s4    )y)-.#77 . .
r   r   c                   R    \ rS rSrSrS\0r\S\R                  4S j5       r
S rSrg)	WaitBeta6   r   r   r   c                 2    [         R                  " U S5        gr   r	   r   r   s    r   r   WaitBeta.Args<        ))&2JKr   c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  US9$ r   )r   r   r   r   r   r    r!   r"   s       r   r&   WaitBeta.RunA   =    !224MM..446M  } ==r   r(   Nr)   r(   r   r   r5   r5   6   7    )y)-L#77 L L>r   r5   c                   R    \ rS rSrSrS\0r\S\R                  4S j5       r
S rSrg)	r!   H   r   r   r   c                 2    [         R                  " U S5        gr   r8   r   s    r   r   	Wait.ArgsN   r:   r   c                     [         R                  " 5       nUR                  R                  R	                  5       nUR                  US9$ r<   r=   r"   s       r   r&   Wait.RunS   r?   r   r(   Nr)   r(   r   r   r!   r!   H   r@   r   r!   N)r.   
__future__r   r   r   *googlecloudsdk.api_lib.container.gkeonpremr   googlecloudsdk.callioper   r   /googlecloudsdk.command_lib.container.bare_metalr	   r/   ReleaseTracksReleaseTrackALPHACommandr   BETAr5   GAr!   r(   r   r   <module>rQ      s    4 &  ' A ( 4 I	 D%%++,  -( D%%**+>t|| > ,>" D%%(()>4<< > *>r   