
    Y	                        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  \R                  " \R                  R                   5       " S S\R"                  5      5       r\R                  " \R                  R&                  \R                  R(                  5       " S S\5      5       rg)z'Vertex AI index endpoints list command.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)region_utilc                   4    \ rS rSrSr\S 5       rS rS rSr	g)ListV1   Lists the index endpoints of the given project and region.

## EXAMPLES

Lists the index endpoints of project `example` in region `us-central1`, run:

  $ {command} --project=example --region=us-central1
c                 t    [         R                  " U S[        R                  " [        R
                  5      S9  g )Nzto list index endpoints)prompt_func)r
   AddRegionResourceArgr   GetPromptForRegionFuncr   SUPPORTED_OP_REGIONS)parsers    &lib/surface/ai/index_endpoints/list.pyArgsListV1.Args(   s-    	!66**
    c                    UR                   R                  R                  5       nUR                  5       S   n[        R
                  " X$S9   [        R                  " US9R                  US9sS S S 5        $ ! , (       d  f       g = f)NlocationsId)region)version)
region_ref)	CONCEPTSr   ParseAsDictr	   AiplatformEndpointOverridesr   IndexEndpointsClientList)selfargsr   r   r   s        r   _RunListV1._Run2   si    %%++-J /F		2	27	J((9>> ? ! 
K	J	Js   !A77
Bc                 B    U R                  U[        R                  5      $ N)r'   r   
GA_VERSIONr%   r&   s     r   Run
ListV1.Run9   s    99T9//00r    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r'   r-   __static_attributes__r/   r   r   r   r      s%      !1r   r   c                       \ rS rSrSrS rSrg)ListV1Beta1=   r   c                 B    U R                  U[        R                  5      $ r*   )r'   r   BETA_VERSIONr,   s     r   r-   ListV1Beta1.RunH   s    99T91122r   r/   N)r0   r1   r2   r3   r4   r-   r6   r/   r   r   r8   r8   =   s    3r   r8   N)r4   
__future__r   r   r   )googlecloudsdk.api_lib.ai.index_endpointsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   ReleaseTracksReleaseTrackGAListCommandr   ALPHABETAr8   r/   r   r   <module>rG      s    . &  ' < ( 3 7 / 5 D%%(()1T 1 *1> D%%++T->->-C-CD3& 3 E3r   