
    8
                     D   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                   R&                  5       " S S\R(                  5      5       r\\l        g)z&'notebooks environments list' command.    )
list_pager)environments)util)base)parser_errors)flags)
propertiesz/
        Request for listing environments.
    zl
    To list environments in location 'us-central1-a', 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!Request for listing environments.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,
        vmImage.imageFamily,
        vmImage.imageName,
        containerImage.repository)
    N)display_info	AddFormat
AddUriFuncenv_utilGetEnvironmentURIr   AddListEnvironmentFlags)clsparsers     *lib/surface/notebooks/environments/list.pyArgs	List.Args-   sG     !! # 	 ""8#=#=>	!!&)    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_environmentsr   YieldFromListr   CreateEnvironmentListRequestr!   )selfargsrelease_trackclientmessagesenvironment_services         r   RunList.Run;   s    %%'M^^M*F.HZ((''00@@BB''>> @@##--d=jj') )r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r4   __static_attributes__r6   r   r   r   r   (   s     ** *)r   r   N)r;   apitools.base.pyr    googlecloudsdk.api_lib.notebooksr   r   r   googlecloudsdk.callioper   r   $googlecloudsdk.command_lib.notebooksr   googlecloudsdk.corer	   DETAILED_HELPReleaseTracksr#   ALPHABETAGAListCommandr   detailed_helpr6   r   r   <module>rJ      s    - ( E 1 ( 1 6 *		 D%%++T->->-C-C%%((* )4  )* )F # r   