
    H	                         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
  \R                  " \R                  R                  \R                  R                  \R                  R                  5       " S S	\R                   5      5       rg
)z;Retrieves information about a Cloud SQL instance operation.    )api_util)
operations)arg_parsers)base)flags)
propertiesc                   .    \ rS rSrSr\S 5       rS rSrg)Wait   z-Waits for one or more operations to complete.c                     [         R                  " U 5        U R                  S[        R                  " SSS9SSS9  U R
                  R                  [         R                  5        g )Nz	--timeoutr   T)lower_bound	unlimitedi,  zMaximum number of seconds to wait for an operation to complete. By default, wait for 300s. Set to *unlimited* to wait indefinitely.)typedefaulthelp)r   AddOperationArgumentadd_argumentr   
BoundedIntdisplay_info	AddFormatOPERATION_FORMAT_BETA)parsers    "lib/surface/sql/operations/wait.pyArgs	Wait.Args   sZ    	v&
##TB	    !!%"="=>    c           	   #     #    [         R                  " [         R                  5      nUR                  nUR                   H  nUR
                  R                  USS[        R                  R                  R                  R                  0S9n[        R                  R                  UUSR                  US9UR                   S9v   M     g7f)zWait for a Cloud SQL instance operation.

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

Yields:
  Operations that were waited for.
zsql.operationsproject)
collectionparamszWaiting for [{operation}])	operation)max_wait_secondsN)r   	SqlClientAPI_VERSION_DEFAULT
sql_clientr!   resource_parserParser   VALUEScorer   	GetOrFailr   OperationsV1Beta4WaitForOperationformattimeout)selfargsclientr%   opoperation_refs         r   RunWait.Run+   s       < <=F""Jnn,,22
%Z..33;;EEF 3 Hm
 ((99


%
,
,}
,
E<<	 : ) ) s   CC	 N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r4   __static_attributes__r6   r   r   r
   r
      s     6	? 	?)r   r
   N)r;   googlecloudsdk.api_lib.sqlr   r   googlecloudsdk.callioper   r   googlecloudsdk.command_lib.sqlr   googlecloudsdk.corer   ReleaseTracksReleaseTrackGABETAALPHACommandr
   r6   r   r   <module>rH      st    B 0 1 / ( 0 * D%%(($*;*;*@*@%%++-&)4<< &)-&)r   