
    _                     ,   S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SS	S
.r\R                  \R                  " \R                   R"                  \R                   R$                  5       " S S\R&                  5      5       5       r\\l        g)z6Create command for Colab Enterprise Runtime Templates.    )
operations)runtime_templates)util)base)endpoint_util)flagszh
        Create a Colab Enterprise runtime template, a VM configuration for your notebook runtimes.
    a  
        To create a runtime template in region 'us-central1' with the display name 'my-runtime-template', run:

        $ {command} --region=us-central1 --display-name=my-runtime-template

        To create a runtime template for a VM with machine type n1-standard-2 and one NVIDIA_TESLA_V100 accelerator, run:

        $ {command} --machine-type=n1-standard-2 --accelerator-type=NVIDIA_TESLA_V100 --accelerator-count=1 --region=us-central1 --display-name=my-runtime-template

        To create a runtime template that disables end user credential access, run:

        $ {command} --no-enable-euc --region=us-central1 --display-name=my-runtime-template
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Create.   zCreate a runtime template.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddCreateRuntimeTemplateFlags)parsers    -lib/surface/colab/runtime_templates/create.pyArgsCreate.Args3   s     
''/    c                    U R                  5       n[        R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  5       S   n[        R                  " SUS9   [        R                  " U5      nUR                  nUR                  [        R                  " X5      5      n[        R                  " [        R                   " US9U[        R"                  " UR$                  5      [        R&                  " U5      SSSS9sS	S	S	5        $ ! , (       d  f       g	= f)
z9This is what gets called when the user runs this command.locationsIdBETA)versionregion)clientzruntime templatecreatez-Waiting for runtime template to be created...)operations_clientopop_refasynchronouskind
log_methodmessageN)ReleaseTrackr   GetMessagesCONCEPTSr   ParseAsDictr   AiplatformEndpointOverrides	GetClient+projects_locations_notebookRuntimeTemplatesr   runtime_templates_util"CreateRuntimeTemplateCreateRequestWaitForOpMayber   OperationsClientParseRuntimeTemplateOperationnameGetAsyncConfig)	selfargsrelease_trackmessages
region_refr   
api_clientruntime_templates_service	operations	            r   Run
Create.Run8   s   %%'M 1 1 34H%%++-J /F		2	2v
 >>-0j

@
@   ,22
 
C
Ci
   &77zJ'EEnn **40!A

 
 
s   B%D00
D> N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r:   __static_attributes__r<   r   r   r   r   .   s     #0 0r   r   N)rA   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#   GAr   CreateCommandr   detailed_helpr<   r   r   <module>rO      s     = 0 _ 8 ( 7 =	( D%%(($*;*;*@*@A%T % B %P & r   