
    	                         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 S	\R                  5      rg
)zWait operations command.    )absolute_import)division)unicode_literals)
exceptions)util)basec                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Wait   z!Poll an operation for completion.z{description}zk          To poll an operation for completion, run:

            $ {command} sample-operation-id
          )DESCRIPTIONEXAMPLESc                 $    U R                  SSS9  g)zRegister flags for this command.

Args:
  parser: An argparse.ArgumentParser-like object. It is mocked out in order
    to capture some information, but behaves like an ArgumentParser.
operation_idzThe operation id to poll.)helpN)add_argument)parsers    (lib/surface/container/operations/wait.pyArgs	Wait.Args*   s     -HI    c                    U R                   S   nU R                   S   nU" U5      nUR                  UR                  U5      n UR                  U5        UR	                  USR                  UR                  5      5      $ ! [        R                   a*  n[        R                  " U[        R                  5      eSnAff = f)zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  Some value that we want to have printed later.
api_adapterlocation_getzWaiting for {0} to completeN)contextParseOperationr   GetOperationWaitForOperationformatoperationIdapitools_exceptions	HttpErrorr   HttpExceptionr   HTTP_ERROR_FORMAT)selfargsadapterr   locationoperation_referrors          r   RunWait.Run4   s     ll=)G<</LD!H**4+<+<hGMD=)%%

'
.
.}/H/H
IK K (( D$$UD,B,BCCDs   ;B   B>%B99B> N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r*   __static_attributes__r,   r   r   r
   r
      s2    ) 		- J JDr   r
   N)r1   
__future__r   r   r   apitools.base.pyr   r     googlecloudsdk.api_lib.containerr   googlecloudsdk.callioper   Commandr
   r,   r   r   <module>r:      s1     &  ' > 1 ( .0D4<< 0Dr   