
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddd	Zej                   ej                  ej                  j                  ej                  j                          G d
 dej"                                      Zee_        y)z/Describe command for Colab Enterprise Runtimes.    )runtimes)util)base)endpoint_util)flagsz;
        Describe a Colab Enterprise notebook runtime.
    z
        To describe a runtime with id 'my-runtime' in region 'us-central1', run:

        $ {command} my-runtime --region=us-central1
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)DescribezDescribe a runtime.c                 .    t        j                  |        y)z Register flags for this command.N)r   AddDescribeRuntimeFlags)parsers    &lib/surface/colab/runtimes/describe.pyArgszDescribe.Args)   s     
!!&)    c                    | j                         }t        j                  | j                               }|j                  j                  j                         }|j                         d   }t        j                  d|      5  t        j                  |      }|j                  }|j                  t        j                  ||            cddd       S # 1 sw Y   yxY w)z9This is what gets called when the user runs this command.locationsIdBETA)versionregionN)ReleaseTrackr   GetMessagesCONCEPTSruntimeParseAsDictr   AiplatformEndpointOverrides	GetClient#projects_locations_notebookRuntimesGetruntimes_utilCreateRuntimeGetRequestMessage)selfargsrelease_trackmessagesruntime_refr   
api_clientruntimes_services           r   RunzDescribe.Run.   s    %%'M 1 1 34H--''--/K!-0F		2	2v
 >>-0j

8
8  !!

6
6H
 
 
s   ACCN)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r   r   $   s     * *r   r   N)r.   'googlecloudsdk.api_lib.colab_enterpriser   r!   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   +googlecloudsdk.command_lib.colab_enterpriser   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   GAr   DescribeCommandr   detailed_helpr0   r   r   <module>r;      s     6 M 8 ( 7 =		 D%%(($*;*;*@*@At##  B : ( r   