
    
                     8   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
S.r\R                  \R                   " \R"                  R$                  \R"                  R&                  5       " S S\R(                  5      5       5       r\\l        g)z#'workbench instances list' command.    )
list_pager)	instances)util)base)parser_errors)flags)
propertiesz(
        Lists workbench instances.
    zh
    To list instances in a particular location, run:

        $ {command} --location=us-central1-a
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)List(   zLists workbench instances.c                     U R                   R                  S5        U R                   R                  [        R                  5        [
        R                  " U 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)display_info	AddFormat
AddUriFuncinstance_utilGetInstanceURIr   AddListInstanceFlags)parsers    'lib/surface/workbench/instances/list.pyArgs	List.Args-   sG     !! # 	 ""=#?#?@	v&    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)ReleaseTrackr   	GetClientGetMessagesIsSpecifiedr	   VALUES	notebooksr   IsExplicitlySetr   RequiredErrorprojects_locations_instancesr   YieldFromListr   CreateInstanceListRequestr    )selfargsrelease_trackclientmessagesinstance_services         r   RunList.Run<   s    %%'M^^M*F.HZ((''00@@BB''>>::##//?jj') )r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r3   __static_attributes__r5   r   r   r   r   (   s     #' ')r   r   N)r:   apitools.base.pyr    googlecloudsdk.api_lib.workbenchr   r   r   googlecloudsdk.callioper   r   $googlecloudsdk.command_lib.workbenchr   googlecloudsdk.corer	   DETAILED_HELPDefaultUniverseOnlyReleaseTracksr"   GABETAListCommandr   detailed_helpr5   r   r   <module>rI      s    * ( G 1 ( 1 6 *		 D%%(($*;*;*@*@A )4  ) B  )F # r   