
    
                     ,   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)z4List command for Colab Enterprise Runtime Templates.    )
list_pager)runtime_templates)util)base)endpoint_util)flagsz`
        List your project's Colab Enterprise notebook runtime templates in a given region.
    zt
        To list your runtime templates in region 'us-central1', run:

        $ {command} --region=us-central1
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)List&   zList your runtime templates.c                 f    [         R                  " U 5        U R                  R                  S5        g)z Register flags for this command.z
        table(name.segment(-1):label=ID,
        displayName.segment(-1),
        name.segment(-3):label=REGION,
        machineSpec.machineType.segment(-1))
    N)r   AddListRuntimeTemplatesFlagsdisplay_info	AddFormat)parsers    +lib/surface/colab/runtime_templates/list.pyArgs	List.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[        R                  " U[        R                  " X5      SUR                  SUR                   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notebookRuntimeTemplatespageSize)servicerequestfieldlimitbatch_size_attribute
batch_sizeN)ReleaseTrackr   GetMessagesCONCEPTSr   ParseAsDictr   AiplatformEndpointOverrides	GetClient+projects_locations_notebookRuntimeTemplatesr   YieldFromListruntime_templates_util CreateRuntimeTemplateListRequestr!   	page_size)selfargsrelease_trackmessages
region_refr   
api_clientruntime_templates_services           r   RunList.Run6   s    %%'M 1 1 34H%%++-J /F		2	2v
 >>-0j

@
@   %%+(II +

)^^	
 
 
s   A#C..
C< N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r7   __static_attributes__r9   r   r   r   r   &   s     %	 	r   r   N)r>   apitools.base.pyr   'googlecloudsdk.api_lib.colab_enterpriser   r-   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   +googlecloudsdk.command_lib.colab_enterpriser   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr$   GAr   ListCommandr   detailed_helpr9   r   r   <module>rL      s     ; ' _ 8 ( 7 =		 D%%(($*;*;*@*@A%4 % B %N $ r   