| 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-Create command for Colab Enterprise Runtimes.� )�
operations)�runtimes)�util)�base)�
endpoint_util)�flagsze
Create a notebook runtime that can be used to run code from your notebook (IPYNB file).
a�
To create a runtime in region 'us-central1' with the display name 'my-runtime' and template with id 'my-template', run:
$ {command} --region=us-central1 --display-name=my-runtime --runtime-template=my-template
To create a runtime for user 'USER@DOMAIN.COM', run:
$ {command} --runtime-user=USER@DOMAIN.COM --region=us-central1 --display-name=my-runtime --runtime-template=my-template
)�DESCRIPTION�EXAMPLESc �. � e Zd ZdZed� � � Zd� ZdS )�CreatezCreate a notebook runtime.c �. � t j | � � dS )z Register flags for this command.N)r �AddCreateRuntimeFlags)�parsers �$lib/surface/colab/runtimes/create.py�ArgszCreate.Args/ s � �
���'�'�'�'�'� c
� � | � � � }t j | � � � � � }|j j � � � }|� � � d }t j d|�� � 5 t j |� � }|j
}|� t j
||� � � � }t j t j |�� � |t j |j � � t j |� � dddt j |� � � d�� � � 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�runtime�createzCreating a runtime for z...)�operations_client�op�op_ref�asynchronous�kind�
log_method�messageN)�ReleaseTrackr �GetMessages�CONCEPTSr �Parse�AsDictr �AiplatformEndpointOverrides� GetClient�#projects_locations_notebookRuntimes�Assign�
runtimes_util�!CreateRuntimeAssignRequestMessage�WaitForOpMayber �OperationsClient�ParseRuntimeOperation�name�GetAsyncConfig�"GetRuntimeUserFromArgsOrProperties) �self�args�
release_track�messages�
region_refr �
api_client�runtimes_service� operations r �Runz
Create.Run4 s� � ��%�%�'�'�M���� 1� 1� 3� 3�4�4�H���%�+�+�-�-�J�
�
�
�
�
��
/�F� � 2��v�
�
�
� � � �>�-�0�0�j�#�G��"�)�)�
�
9�$��
I�
I�� �i� �
�&�7�z�J�J�J�
��4�Y�^�D�D��*�4�0�0���N��B�4�H�H�N� N� N�� � �� � � � � � � � � � � ���� � � � � � s � B0E�E
�
E
N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r; � r r r r * sD � � � � � � #�"��(� (� �<�(�� � � � r r N)r? �googlecloudsdk.api_lib.air �'googlecloudsdk.api_lib.colab_enterpriser r+ r �googlecloudsdk.callioper �googlecloudsdk.command_lib.air �+googlecloudsdk.command_lib.colab_enterpriser �_DETAILED_HELP�DefaultUniverseOnly�
ReleaseTracksr"