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

���
���dZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZd
dd�Zej"ej$ej&j(�Gd
�dej*���Zee_y)z&Pause command for Workbench Schedules.�)�util)�	schedules)�base)�parser_arguments)�parser_extensions)�
endpoint_util)�flags)�logz<
        Pause a Workbench notebook execution schedule.
    z�
        To pause a schedule with id `my-schedule`, in region `us-central1`, run:

         $ {command} my-schedule --region=us-central1
    )�DESCRIPTION�EXAMPLESc�Z�eZdZdZedejfd��Zdejfd�Z
y)�PausezPause a schedule.�parserc�.�tj|�y)z^Register flags for this command.

    Args:
      parser: argparse parser for the command
    N)r	�AddPauseScheduleFlags)rs �(lib/surface/workbench/schedules/pause.py�Argsz
Pause.Args-s��
����'��argsc�,�|j�}tj|j��}|jjj�}|j
�d}tjd|��5tj|�}|j}tj|||�|jtj||��}tj j#d�|cddd�S#1swYyxYw)z�This is what gets called when the user runs this command.

    Args:
      args: the arguments that this command was invoked
        with.

    Returns:
      the API response for pausing the schedule.
    �locationsId�BETA)�version�regionzPaused schedule.N)�ReleaseTrackr�GetMessages�CONCEPTS�schedule�Parse�AsDictr�AiplatformEndpointOverrides�	GetClient�projects_locations_schedules�schedules_util�ValidateAndGetWorkbenchScheduler�CreateSchedulePauseRequestr
�status�Print)	�selfr�
release_track�messages�schedule_refr�
api_client�schedules_service�api_responses	         r�Runz	Pause.Run6s����%�%�'�M����� 1� 1� 3�4�H��=�=�)�)�/�/�1�L�
�
 �
 �
"�=�
1�F�	�	2�	2��v�
��>�>�-�0�j�
�
1�
1���4�4�
��+��'�,�,�
�
3�
3��H���l�

�j�j���)�*�
�!
�
�
�s
�A>D
�
DN)�__name__�
__module__�__qualname__�__doc__�staticmethodr�ArgumentInterceptorrr�	Namespacer0�rrrr(s:����(�#�7�7�(��(��'�1�1�rrN)r4�'googlecloudsdk.api_lib.colab_enterpriser�(googlecloudsdk.api_lib.notebook_executorrr$�googlecloudsdk.callioperrr�googlecloudsdk.command_lib.air�,googlecloudsdk.command_lib.notebook_executorr	�googlecloudsdk.corer
�_DETAILED_HELP�DefaultUniverseOnly�
ReleaseTracksrr�
UpdateCommandr�
detailed_helpr8rr�<module>rDs��� -�8�P�(�4�5�7�>�#���		���������D�%�%�*�*�+�*�D���*�,��*�X%��r