
                         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 index endpoints 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 endpoint information about the given index endpoint id.

  ## EXAMPLES

  Describe an index endpoint `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
   AddIndexEndpointResourceArg)parsers    *lib/surface/ai/index_endpoints/describe.pyArgszDescribeV1.Args(   s    	%%fm<    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_endpointParseAsDictr	   AiplatformEndpointOverridesr   IndexEndpointsClientGet)selfargsr   index_endpoint_refr   s        r   _RunzDescribeV1._Run,   sg    55;;=&&(7F		2	276	J((312 
K	J	Js   %A>>Bc                 B    | j                  |t        j                        S N)r"   r   
GA_VERSIONr   r    s     r   RunzDescribeV1.Run3   s    99T9//00r   N)__name__
__module____qualname____doc__staticmethodr   r"   r'    r   r   r   r      s%     = =3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.RunC   s    99T91122r   N)r(   r)   r*   r+   r'   r-   r   r   r/   r/   7   s    3r   r/   N)r+   
__future__r   r   r   )googlecloudsdk.api_lib.ai.index_endpointsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   ReleaseTracksReleaseTrackGADescribeCommandr   ALPHABETAr/   r-   r   r   <module>r<      s    2 &  ' < ( 3 7 / D%%(()1%% 1 *14 D%%++T->->-C-CD3j 3 E3r   