
    Q	                         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	K
Jr  SS
KJr  \R                  \R                  S.r " S S\R                   5      rg)z service operations wait command.    )absolute_import)division)unicode_literals)apikeys)scm)services_util)serviceusage)base)common_flags)akmfacfc                   .    \ rS rSrSr\S 5       rS rSrg)	WaitAlpha#   zWaits for an operation to complete for a given operation name.

This command will block until an operation has been marked as complete.

## EXAMPLES
To wait on an operation named `operations/abc`
to complete, run:

  $ {command} operations/abc
c                 J    [         R                  " SS9R                  U 5        g)zArgs is called by calliope to gather arguments for this command.

Args:
  parser: An argparse parser that you can use to add arguments that go
      on the command line after this command. Positional arguments are
      allowed.
zon which to wait)suffixN)r   operation_flagAddToParser)parsers    'lib/surface/services/operations/wait.pyArgsWaitAlpha.Args/   s     '9:FFvN    c                     [         R                  " UR                  5      n[        R	                  U[
        R                  5      n[        R                  " UR                  U5      n[        R                  " U5        g)zRun 'services operations wait'.

Args:
  args: argparse.Namespace, The arguments that this command was invoked
      with.

Returns:
  If successful, the response from the operations.Get API call.
N)
r   get_operation_namespace	operation_GET_OP_FUNC_MAPgetr	   GetOperationr   WaitOperationPrintOperationWithResponse)selfargs	namespaceget_op_funcops        r   RunWaitAlpha.Run:   sT     44T^^DI"&&y,2K2KLK		$	$T^^[	AB,,R0r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r'   __static_attributes__r)   r   r   r   r   #   s"    	 O O1r   r   N)r.   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   r   r   r	   googlecloudsdk.callioper
   #googlecloudsdk.command_lib.servicesr   r   r   Commandr   r)   r   r   <module>r6      sQ     ' &  ' 3 / 9 8 ( <    %1 %1r   