
                         D   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lm
Z
 ddlmZ d	d
dZ ej                  ej                  j                   ej                  j"                  ej                  j$                         G d dej&                               Zee_        y)z#'notebooks locations list' command.    )absolute_import)division)unicode_literals)
list_pager)	locations)util)basez,
        Request for listing locations.
    z3
    To list locations, run:
      $ {command}
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)ListzRequest for listing locations.c                     |j                   j                  d       |j                   j                  t        j                         y)z Register flags for this command.ztable(locationId)N)display_info	AddFormat
AddUriFuncloc_utilGetLocationURI)clsparsers     'lib/surface/notebooks/locations/list.pyArgsz	List.Args*   s3     !!"56
""8#:#:;    c                     | j                         }t        j                  |      }t        j                  |      }|j                  }t        j                  |t        j                  ||      d|j                  d      S )z9This is what gets called when the user runs this command.r   pageSize)fieldlimitbatch_size_attribute)
ReleaseTrackr   	GetClientGetMessagesprojects_locationsr   YieldFromListr   CreateLocationListRequestr   )selfargsrelease_trackclientmessageslocation_services         r   RunzList.Run0   sm    %%'M^^M*F.H00##**4:jj') )r   N)__name__
__module____qualname____doc__classmethodr   r*    r   r   r   r   %   s     '< <
)r   r   N)r.   
__future__r   r   r   apitools.base.pyr    googlecloudsdk.api_lib.notebooksr   r   r   googlecloudsdk.callioper	   DETAILED_HELPReleaseTracksr   ALPHABETAGAListCommandr   detailed_helpr0   r   r   <module>r<      s    * &  ' ' B 1 (	 D%%++T->->-C-C%%((*)4 )*). # r   