
    u                     v   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	l	mZ  ej                  ej                  j                         G d
 dej                                Z ej                  ej                  j$                  ej                  j&                         G d de             Zy)z#Vertex AI indexes describe command.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flagsc                   ,    e Zd ZdZed        Zd Zd Zy)
DescribeV1Gets detailed index information about the given index id.

  ## EXAMPLES

  Describe an index `123` of project `example` in region `us-central1`, run:

    $ {command} 123 --project=example --region=us-central1
  c                 0    t        j                  | d       y )Nzto describe)r
   AddIndexResourceArg)parsers    "lib/surface/ai/indexes/describe.pyArgszDescribeV1.Args'   s    	fm4    c                    |j                   j                  j                         }|j                         d   }t	        j
                  ||      5  t        j                  |      j                  |      cd d d        S # 1 sw Y   y xY w)NlocationsId)region)version)	CONCEPTSindexParseAsDictr	   AiplatformEndpointOverridesr   IndexesClientGet)selfargsr   	index_refr   s        r   _RunzDescribeV1._Run+   sc    ##))+I.F		2	276	J!!'266yA 
K	J	Js   %A>>Bc                 B    | j                  |t        j                        S N)r"   r   
GA_VERSIONr   r    s     r   RunzDescribeV1.Run1   s    99T9//00r   N)__name__
__module____qualname____doc__staticmethodr   r"   r'    r   r   r   r      s&     5 5B1r   r   c                       e Zd ZdZd Zy)DescribeV1Beta1r   c                 B    | j                  |t        j                        S r$   )r"   r   BETA_VERSIONr&   s     r   r'   zDescribeV1Beta1.Run@   s    99T91122r   N)r(   r)   r*   r+   r'   r-   r   r   r/   r/   5   s    3r   r/   N)r+   
__future__r   r   r   !googlecloudsdk.api_lib.ai.indexesr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   ReleaseTracksReleaseTrackGADescribeCommandr   ALPHABETAr/   r-   r   r   <module>r<      s    * &  ' 4 ( 3 7 / D%%(()1%% 1 *10 D%%++T->->-C-CD3j 3 E3r   