
    	                        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 dd
l	mZ d Z ej                  ej                   j"                        ej$                   G d dej&                                      Z ej                  ej                   j*                  ej                   j,                        ej$                   G d de                    Zy)z%Vertex AI endpoints describe command.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)region_utilc                 2   | j                   j                  j                         }|j                         d   | _        t        j                  || j                        5  t        j                  |      j                  |      cd d d        S # 1 sw Y   y xY w)NlocationsId)region)version)
CONCEPTSendpointParseAsDictr   r	   AiplatformEndpointOverridesr   EndpointsClientGet)argsr   endpoint_refs      $lib/surface/ai/endpoints/describe.py_Runr      si    ''--/,##%m4$+00M!!'266|D NMMs   %BBc                   &    e Zd ZdZed        Zd Zy)
DescribeGaDescribe an existing Vertex AI endpoint.

  ## EXAMPLES

  To describe an endpoint ``123'' under project ``example'' in region
  ``us-central1'', run:

    $ {command} 123 --project=example --region=us-central1
  c                 P    t        j                  | dt        j                         y )Nzto describe)prompt_func)r
   AddEndpointResourceArgr   PromptForOpRegion)parsers    r   ArgszDescribeGa.Args1   s    	  ;+H+HJ    c                 6    t        |t        j                        S N)r   r   
GA_VERSIONselfr   s     r   RunzDescribeGa.Run6   s    i**++r$   N)__name__
__module____qualname____doc__staticmethodr#   r*    r$   r   r   r   $   s"     J J,r$   r   c                       e Zd ZdZd Zy)DescribeBetar   c                 6    t        |t        j                        S r&   )r   r   BETA_VERSIONr(   s     r   r*   zDescribeBeta.RunG   s    i,,--r$   N)r+   r,   r-   r.   r*   r0   r$   r   r2   r2   :   s    .r$   r2   N)r.   
__future__r   r   r   #googlecloudsdk.api_lib.ai.endpointsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   r   ReleaseTracksReleaseTrackGAUniverseCompatibleDescribeCommandr   BETAALPHAr2   r0   r$   r   <module>r@      s    , &  ' 6 ( 3 7 / 5E D%%((),%% ,  *,( D%%**D,=,=,C,CD.: .  E.r$   