
                         ~    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Z
 G d	 d
e	j                        Zy)z+service-management operations wait command.    )absolute_import)division)unicode_literals)peering)services_util)basezThe name of operation to waitc                   &    e Zd ZdZed        Zd Zy)Waita  Waits 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} --name=operations/abc
  c                 6    | j                  dddt               y)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--nameOPERATION_NAMET)metavarrequiredhelpN)add_argument
_NAME_HELP)parsers    4lib/surface/services/vpc_peerings/operations/wait.pyArgsz	Wait.Args)   s"     *T
  L    c                     t        j                  |j                  t        j                        }t        j
                  |       y)zRun 'services operations wait'.

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

    Returns:
      Nothing.
    N)r   WaitOperationnamer   GetOperationPrintOperation)selfargsops      r   RunzWait.Run5   s.     
	$	$TYY0D0D	EB  $r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r
   r
      s"    	 	L 	L%r   r
   N)r"   
__future__r   r   r   googlecloudsdk.api_lib.servicesr   r   googlecloudsdk.callioper   r   Commandr
   r$   r   r   <module>r)      s1    2 &  ' 3 9 (,
$%4<< $%r   