| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/logging/operations/__pycache__/ |
Upload File : |
�
��h
� � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ej ej ej
j ej
j ej
j � � G d� d ej � � � � � � Zd
S )z$'logging operations cancel' command.� )�absolute_import)�division)�unicode_literals)�util)�base)�
console_ioc �. � e Zd ZdZed� � � Zd� ZdS )�Cancela" Cancel a long running operation.
Cancel a long running operation with given OPERATION_ID in given LOCATION.
This operation can be a copy_log_entries operation which is scheduled before.
## EXAMPLES
To cancel an operation, run:
$ {command} OPERATION_ID --location=LOCATION
c � � | � dd�� � | � ddd�� � t j | d� � d S )
z Register flags for this command.�operation_idzThe Id of the operation.)�helpz
--locationTzLocation of the operation.)�requiredr
zoperation to cancelN)�add_argumentr �
AddParentArgs)�parsers �(lib/surface/logging/operations/cancel.py�ArgszCancel.Args+ sb � � ����-G��H�H�H�
����t�*F� � H� H� H� ��v�4�5�5�5�5�5� c �� � t j t j t j |� � d|j � � d|j � � }t j |j |� � }t
j d|z d�� � t j � � � |�� � }t j
� � j � |� � t d|z � � t d� � d S )
z�This is what gets called when the user runs this command.
Args:
args: an argparse namespace. All the arguments that were provided to this
command invocation.
Returns:
A long running operation.
� locations�
operationszReally cancel operation [%s]?T)�cancel_on_no)�namezCancelled [%s]zKNote:it may take up to 10 minutes for the operation's status to be updated.N)r �CreateResourceName�GetParentFromArgs�locationr �GetOperationReferencer �PromptContinue�GetMessages�/LoggingProjectsLocationsOperationsCancelRequest� GetClient�projects_locations_operationsr
�print)�self�args�operation_name�operation_reference�requests r �Runz
Cancel.Run4 s � � �,����"�4�(�(�+�t�}� F� F��d�'�)� )�N� �4�T�5F��M�M����=��N�+/�1� 1� 1� 1� �� � �5�5�>�5�J�J� � �N���2�9�9�'�B�B�B� �
�0�
0�1�1�1� � .� /� /� /� /� /r N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r) � r r r
r
sH � � � � � �
�
� �6� 6� �<�6�/� /� /� /� /r r
N)r- �
__future__r r r �googlecloudsdk.api_lib.loggingr �googlecloudsdk.callioper �googlecloudsdk.core.consoler �DefaultUniverseOnly�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�Commandr
r/ r r �<module>r; s� �� +� *� &� &� &� &� &� &� � � � � � � '� '� '� '� '� '� /� /� /� /� /� /� (� (� (� (� (� (� 2� 2� 2� 2� 2� 2� ��������$�+�0�$�2C�2I�� �0/� 0/� 0/� 0/� 0/�T�\� 0/� 0/�� � ��0/� 0/� 0/r