
    
                        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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*                  5       " S S\R,                  5      5       r\\l        g)z"'notebooks runtimes list' command.    )absolute_import)division)unicode_literals)
list_pager)runtimes)util)base)parser_errors)flags)
propertiesz+
        Request for listing runtimes.
    ze
    To list runtimes in a particular location, run:

        $ {command} --location=us-central1
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)List+   zRequest for listing runtimes.c                     [         R                  " U R                  5       5      nUR                  R	                  S5        UR                  R                  [        R                  5        [        R                  " X!5        g)z Register flags for this command.z
        table(name.segment(-1),
        name.segment(-3):label=LOCATION,
        name.segment(-5):label=PROJECT,
        state,
        machineType.segment(-1),
        network.segment(-1),
        subnet.segment(-1))
    N)
r   ApiVersionSelectorReleaseTrackdisplay_info	AddFormat
AddUriFuncruntime_utilGetRuntimeURIr   AddListRuntimeFlags)clsparserapi_versions      &lib/surface/notebooks/runtimes/list.pyArgs	List.Args/   s`     ))#*:*:*<=K
!! # 	 ""<#=#=>	k2    c                    U R                  5       n[        R                  " U5      n[        R                  " U5      nUR	                  S5      (       dK  [
        R                  R                  R                  R                  5       (       d  [        R                  " SS9eUR                  n[        R                  " U[        R                   " X5      SUR"                  SS9$ )z9This is what gets called when the user runs this command.locationz
--location)argumentr   pageSize)fieldlimitbatch_size_attribute)r   r   	GetClientGetMessagesIsSpecifiedr   VALUES	notebooksr#   IsExplicitlySetr
   RequiredErrorprojects_locations_runtimesr   YieldFromListr   CreateRuntimeListRequestr'   )selfargsrelease_trackclientmessagesruntime_services         r   RunList.Run?   s    %%'M^^M*F.HZ((''00@@BB''>>88O##--d=jj') )r!    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r9   __static_attributes__r;   r!   r   r   r   +   s    %3 3)r!   r   N)r@   
__future__r   r   r   apitools.base.pyr    googlecloudsdk.api_lib.notebooksr   r   r   googlecloudsdk.callioper	   r
   $googlecloudsdk.command_lib.notebooksr   googlecloudsdk.corer   DETAILED_HELPReleaseTracksr   GAListCommandr   detailed_helpr;   r!   r   <module>rN      s|    ) &  ' ' E 1 ( 1 6 *		 D%%(()!)4 !) *!)H # r!   