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/workbench/executions/__pycache__/delete.cpython-312.pyc
�

��
���dZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	d
�Ze	je	j e	j"j$�Gd�de	j&���Zee_y
)z(Delete command for Workbench Executions.�)�
operations)�util)�
executions)�base)�
endpoint_util)�flagsz4
        Delete a Workbench notebook execution.
    z�
        To delete an execution with id `my-execution`, in region `us-central1`, run:

         $ {command} my-execution --region=us-central1
    )�DESCRIPTION�EXAMPLESc�&�eZdZdZed��Zd�Zy)�DeletezDelete an execution.c�2�tj|d��y)z_Register flags for this command.

    Args:
      parser: argparse parser for the command.
    T)�
for_workbenchN)r�AddDeleteExecutionFlags)�parsers �*lib/surface/workbench/executions/delete.py�ArgszDelete.Args+s��
�!�!�&��=�c
��|j�}tj|j��}|jjj�}|j}tjd|��5tj|�}|j}tj|||d��|jtj||��}tjt!j"|��|tj$|j&�tj(|�ddd�	�cd
d
d
�S#1swYy
xYw)z�This is what gets called when the user runs this command.

    Args:
      args: argparse namespace, the arguments of the command.

    Returns:
      The delete operation or the results if async.
    �BETA)�version�regionT)�skip_workbench_check)�clientznotebook execution�deletez&Waiting for execution to be deleted...)�operations_client�op�op_ref�asynchronous�kind�
log_method�messageN)�ReleaseTrackr�GetMessages�CONCEPTS�	execution�Parse�locationsIdr�AiplatformEndpointOverrides�	GetClient�(projects_locations_notebookExecutionJobs�executions_util� ValidateAndGetWorkbenchExecutionr�CreateExecutionDeleteRequest�WaitForOpMayber�OperationsClient�ParseExecutionOperation�name�GetAsyncConfig)	�self�args�
release_track�messages�
execution_refr�
api_client�executions_service�	operations	         r�Runz
Delete.Run4s���%�%�'�M����� 1� 1� 3�4�H��M�M�+�+�1�1�3�M�
�
&�
&�F�	�	2�	2��v�
��>�>�-�0�j�
�
=�
=���6�6�
��,�4��%�+�+�
�
6�
6��H���i�
�
 �
 �&�7�7�z�J�
� �8�8��n�n���*�*�4�0�#��:�
�'
�
�
�s
�;B?E�E
N)�__name__�
__module__�__qualname__�__doc__�staticmethodrr;�rrrr&s����>��>�*rrN)r?�googlecloudsdk.api_lib.air�'googlecloudsdk.api_lib.colab_enterpriser�(googlecloudsdk.api_lib.notebook_executorrr+�googlecloudsdk.callioper�googlecloudsdk.command_lib.air�,googlecloudsdk.command_lib.notebook_executorr�_DETAILED_HELP�DefaultUniverseOnly�
ReleaseTracksr"r�
DeleteCommandr�
detailed_helprArr�<module>rMs��� /�0�8�R�(�7�>���		���������D�%�%�*�*�+�6�T�
�
�6�,��6�r&��r