HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/sql/operations/__pycache__/wait.cpython-312.pyc
�

���	��D�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
l
mZe
je
j j"e
j j$e
j j&�Gd�de
j(��Zy
)z;Retrieves information about a Cloud SQL instance operation.�)�absolute_import)�division)�unicode_literals)�api_util)�
operations)�arg_parsers)�base)�flags)�
propertiesc�&�eZdZdZed��Zd�Zy)�Waitz-Waits for one or more operations to complete.c���tj|�|jdtjdd��dd��|j
j
tj�y)Nz	--timeoutrT)�lower_bound�	unlimitedi,z�Maximum 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�Argsz	Wait.Args"sZ��	���v�&�
����
�
#�
#��T�
B���	� ����!�!�%�"=�"=�>�c#�K�tjtj�}|j}|jD]�}|j
j
|ddtjjjji��}tjj||dj|��|j ������y�w)z�Wait for a Cloud SQL instance operation.

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

    Yields:
      Operations that were waited for.
    zsql.operations�project)�
collection�paramszWaiting 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�RunzWait.Run.s������
�
�� <� <�
=�F��"�"�J��n�n���,�,�2�2�
�%��Z�.�.�3�3�;�;�E�E�F�3�H�m�

�(�(�9�9�
�
�
%�
,�
,�}�
,�
E��<�<�	
:�
)�)�
�s�C
CN)�__name__�
__module__�__qualname__�__doc__�staticmethodrr5�rrr
r
s��6��	?��	?�)rr
N)r9�
__future__rrr�googlecloudsdk.api_lib.sqlrr�googlecloudsdk.callioperr	�googlecloudsdk.command_lib.sqlr
�googlecloudsdk.corer�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�Commandr
r;rr�<module>rGs}��B�&��'�/�1�/�(�0�*�����D�%�%�(�(�$�*;�*;�*@�*@��%�%�+�+�-�&)�4�<�<�&)�-�&)r