
                         ,   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)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                   .    \ rS rSrSr\S 5       rS rSrg)Create*   zCreate a notebook runtime.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddCreateRuntimeFlags)parsers    $lib/surface/colab/runtimes/create.pyArgsCreate.Args/   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[        R(                  " U5       S3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)clientruntimecreatezCreating 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   Run
Create.Run4   s   %%'M 1 1 34H%%++-J /F		2	2v
 >>-0j#GG"))

9
9$
Ii   &77zJ44Y^^D**40BB4HIN
 
 
s   B=E
E N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r=   __static_attributes__r?   r   r   r   r   *   s     #( (r   r   N)rD   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>rR      s     4 0 M 8 ( 7 =	  D%%(($*;*;*@*@A"T " B "J & r   