| 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/colab/runtimes/__pycache__/ |
Upload File : |
�
���
� � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ dd d
�Z
ej ej ej j ej j � � G d� dej � � � � � � Ze
e_ d
S )z,Start command for Colab Enterprise Runtimes.� )�
operations)�runtimes)�util)�base)�
endpoint_util)�flagsz@
Start a stopped Colab Enterprise notebook runtime.
z�
To start a runtime with id 'my-runtime' in region 'us-central1', run:
$ {command} my-runtime --region=us-central1
)�DESCRIPTION�EXAMPLESc �. � e Zd ZdZed� � � Zd� ZdS )�StartzStart a stopped runtime.c �. � t j | � � dS )z Register flags for this command.N)r �AddStartRuntimeFlags)�parsers �#lib/surface/colab/runtimes/start.py�Argsz
Start.Args+ s � �
��v�&�&�&�&�&� c �� � | � � � }t j | � � � � � }|j j � � � }|� � � d }t j d|�� � 5 t j |� � }|j
}|� t j
||� � � � }t j t j |�� � |t j |j � � ddt j |� � d|j j � � � � � � �� � cd d d � � S # 1 swxY w Y d S )
z9This is what gets called when the user runs this command.�locationsId�BETA)�version�region)�client�update�runtimezStarting runtime...)�operations_client�op�op_ref�
log_method�kind�asynchronous�message�resourceN)�ReleaseTrackr �GetMessages�CONCEPTSr �Parse�AsDictr �AiplatformEndpointOverrides� GetClient�#projects_locations_notebookRuntimesr �
runtimes_util� CreateRuntimeStartRequestMessage�WaitForOpMayber �OperationsClient�ParseRuntimeOperation�name�GetAsyncConfig�RelativeName) �self�args�
release_track�messages�runtime_refr �
api_client�runtime_service� operations r �Runz Start.Run0 s� � ��%�%�'�'�M���� 1� 1� 3� 3�4�4�H��-�'�-�-�/�/�K�
�
�
�
!�
!�-�
0�F� � 2��v�
�
�
� � � �>�-�0�0�j�
�
8� � "�'�'�
�
8��x�
H�
H�� �i� �
�&�7�z�J�J�J�
��4��n�� � ���*�4�0�0�'��=�(�.�.�0�0�=�=�?�?�� � �� � � � � � � � � � � ���� � � � � � s � C E�E#�&E#N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r; � r r r r &