
    d                     n    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\R                  5      rg	)
z)Command to wait for operation completion.    )
datafusion)waiter)base)operation_poller)resource_argsc                   2    \ rS rSrSrSr\S 5       rS rSr	g)Wait   zWait for asynchronous operation to complete.

## EXAMPLES

To wait for operation `my-operation` in project `my-project` and location
`my-location`, run:

  $ {command} my-operation --project=my-project --location=my-location
iO c                 2    [         R                  " U S5        g )NzThe operation to wait for.)r   AddOperationResourceArg)parsers    *lib/surface/data_fusion/operations/wait.pyArgs	Wait.Args&   s    ))&2NO    c                    [         R                  " 5       nUR                  R                  R	                  5       nUR
                  R                  UR                  5       S9nUR                  R                  R                  U5      n[        R                  " [        R                  " 5       UR                  SR!                  UR                  5      U R"                  S9  g )N)namezWaiting for [{}] to complete.)wait_ceiling_ms)df
DatafusionCONCEPTS	operationParsemessages/DatafusionProjectsLocationsOperationsGetRequestRelativeNameclientprojects_locations_operationsGetr   WaitForr   OperationPollerr   formatWAIT_CEILING_MS)selfargsr   operation_refreqr   s         r   RunWait.Run*   s    JMM++113M



M
M'') N +C !!??CCCHI
NN((*'..y~~>,,	.r    N)
__name__
__module____qualname____firstlineno____doc__r#   staticmethodr   r(   __static_attributes__r*   r   r   r	   r	      s'     #/P P.r   r	   N)r/   "googlecloudsdk.api_lib.data_fusionr   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.data_fusionr   r   SilentCommandr	   r*   r   r   <module>r7      s.    0 @ . ( C @.4 .r   