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/instances/__pycache__/create.cpython-312.pyc
�

�����v�dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	d
d�Z
e
je
je
j j"�Gd�d
e
j$���Ze
je
j j(�Gd�de��Ze
e_y)z%'workbench instances create' command.�)�absolute_import)�division)�unicode_literals)�	instances)�util)�base)�flagsz+
        Creates a workbench instance.
    a�
    To create an instance from a VmImage family, run:

      $ {command} example-instance --vm-image-project=cloud-notebooks-managed --vm-image-family=workbench-instances --machine-type=n1-standard-4 --location=us-central1-b

    To create an instance from a VmImage name, run:

      $ {command} example-instance --vm-image-project=cloud-notebooks-managed --vm-image-name=workbench-instances-v20230925-debian-11-py310 --machine-type=n1-standard-4 --location=us-central1-b

    To create an instance from a Container Repository, run:

      $ {command} example-instance --container-repository=gcr.io/deeplearning-platform-release/base-cpu --container-tag=latest --machine-type=n1-standard-4 --location=us-central1-b

    To create an instance with shielded-secure-boot, shielded-vtpm and shielded-integrity-monitoring disabled, run:

      $ {command} example-instance --shielded-integrity-monitoring=false --shielded-secure-boot=false --shielded-vtpm=false --location=us-central1-b
    )�DESCRIPTION�EXAMPLESc�*�eZdZdZdZed��Zd�Zy)�Create�Creates a workbench instance.Fc�D�tj|j|�y)z Register flags for this command.N)r	�AddCreateInstanceFlags�_support_managed_euc)�cls�parsers  �)lib/surface/workbench/instances/create.py�ArgszCreate.Args;s��
� � ��!9�!9�6�B�c�R�|j�}tj|�}tj|�}|j}|jt
j|||j��}t
j||||tjj��S)z9This is what gets called when the user runs this command.)�operation_type)�ReleaseTrackr�	GetClient�GetMessages�projects_locations_instancesr
�
instance_util�CreateInstanceCreateRequestr�	HandleLRO�
OperationType�CREATE)�self�args�
release_track�client�messages�instance_service�	operations       r�Runz
Create.Run@s����%�%�'�M�
�^�^�M�
*�F����
�.�H��:�:�� �'�'��1�1��(�D�5�5�	
��I�
�"�"�����$�2�2�9�9��rN)�__name__�
__module__�__qualname__�__doc__r�classmethodrr)�rrr
r
4s&��&����C��C�rr
c��eZdZdZdZy)�
CreateBetarTN)r*r+r,r-rr/rrr1r1Ts��%��rr1N)r-�
__future__rrr� googlecloudsdk.api_lib.workbenchrrr�googlecloudsdk.callioper�$googlecloudsdk.command_lib.workbenchr	�
DETAILED_HELP�DefaultUniverseOnly�
ReleaseTracksr�GA�
CreateCommandr
�BETAr1�
detailed_helpr/rr�<module>r=s���,�&��'�G�1�(�6�	�	�
�
�4�������D�%�%�(�(�)��T�
�
��*���<����D�%�%�*�*�+����,��%��r