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: //usr/lib/google-cloud-sdk/lib/surface/sql/operations/__pycache__/cancel.cpython-312.pyc
�

�� ��@�dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	lm
Z
d
diZejej j"ej j$ej j&�Gd�d
ej(��Zy)�'Cancels a Cloud SQL instance operation.�)�absolute_import)�division)�unicode_literals)�api_util)�base)�log)�
properties)�
console_io�EXAMPLESz�        To cancel an operation with the id "prod-operation-id",
        like "acb40108-a483-4a8b-8a5c-e27100000032", run:

          $ {command} prod-operation-id
        c�*�eZdZdZeZed��Zd�Zy)�Cancelrc�*�|jdd��y)z�Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use it to add arguments that go on
        the command line after this command. Positional arguments are allowed.
    �	operationz,Name that uniquely identifies the operation.)�helpN)�add_argument)�parsers �$lib/surface/sql/operations/cancel.py�ArgszCancel.Args-s������H��J�c��tjtj�}|j}|j}|j
j
|jddtjjjji��}tjdj|j���t!j"d��|j$j'|j)|j|j���}tj*j-d	j|j���|S)
z�Cancels a Cloud SQL instance operation.

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

    Returns:
      An empty response.
    zsql.operations�project)�
collection�paramsz/Warning: You are about to cancel [{operation}].)rT)�cancel_on_no)rrz&Cancellation issued on [{operation}].
)r�	SqlClient�API_VERSION_DEFAULT�
sql_client�sql_messages�resource_parser�Parserr
�VALUES�corer�	GetOrFailr	�warning�formatr�PromptContinue�
operationsr�SqlOperationsCancelRequest�status�write)�self�args�clientrr�
operation_ref�emptys       r�Runz
Cancel.Run8s!���
�
�� <� <�
=�F��"�"�J��&�&�L��*�*�0�0����#��:�,�,�1�1�9�9�C�C�D�1�F�M�
�K�K�A�H�H��)�)�I�+�,����4�0��!�!�(�(��/�/�!�)�)�]�5L�5L�	0�	N�
O�E��J�J���>�E�E��)�)�F�+�,��LrN)	�__name__�
__module__�__qualname__�__doc__�
DETAILED_HELP�
detailed_help�staticmethodrr1�rrrr&s%��0��-��J��J�rrN)r5�
__future__rrr�googlecloudsdk.api_lib.sqlr�googlecloudsdk.callioper�googlecloudsdk.corer	r
�googlecloudsdk.core.consolerr6�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�
UpdateCommandrr9rr�<module>rEs���.�&��'�/�(�#�*�2��	��
�����D�%�%�(�(�$�*;�*;�*@�*@��%�%�+�+�-�,�T�
�
�,�-�,r