
    
                     ,   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,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                   .    \ rS rSrSr\S 5       rS rSrg)Start&   zStart a stopped runtime.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddStartRuntimeFlags)parsers    #lib/surface/colab/runtimes/start.pyArgs
Start.Args+   s     
v&    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      SS[        R&                  " U5      SUR                  R                  R                  5       R)                  5       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updateruntimezStarting 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   Run	Start.Run0   s#   %%'M 1 1 34H--''--/K!-0F		2	2v
 >>-0j

8
8  "''

8
8
Hi   &77zJ44nn **40'==((..0==?
 
 
s   C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   UpdateCommandr   detailed_helpr?   r   r   <module>rR      s     3 0 M 8 ( 7 =		 D%%(($*;*;*@*@A$D $ B $N % r   