
    	                        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  S r\R                  " \R                   R"                  5      \R$                   " S S\R&                  5      5       5       r\R                  " \R                   R*                  \R                   R,                  5      \R$                   " S S\5      5       5       rg)z%Vertex AI endpoints describe command.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)region_utilc                 2   U R                   R                  R                  5       nUR                  5       S   U l        [
        R                  " XR                  S9   [        R                  " US9R                  U5      sS S S 5        $ ! , (       d  f       g = f)NlocationsId)region)version)
CONCEPTSendpointParseAsDictr   r	   AiplatformEndpointOverridesr   EndpointsClientGet)argsr   endpoint_refs      $lib/surface/ai/endpoints/describe.py_Runr      sg    ''--/,##%m4$+00M!!'266|D NMMs   #B
Bc                   .    \ rS rSrSr\S 5       rS rSrg)
DescribeGa$   Describe 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                 L    [         R                  " U S[        R                  S9  g )Nzto describe)prompt_func)r
   AddEndpointResourceArgr   PromptForOpRegion)parsers    r   ArgsDescribeGa.Args1   s    	  ;+H+HJ    c                 6    [        U[        R                  5      $ N)r   r   
GA_VERSIONselfr   s     r   RunDescribeGa.Run6   s    i**++r&    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr$   r,   __static_attributes__r.   r&   r   r   r   $   s"     J J,r&   r   c                       \ rS rSrSrS rSrg)DescribeBeta:   r   c                 6    [        U[        R                  5      $ r(   )r   r   BETA_VERSIONr*   s     r   r,   DescribeBeta.RunG   s    i,,--r&   r.   N)r/   r0   r1   r2   r3   r,   r5   r.   r&   r   r7   r7   :   s    .r&   r7   N)r3   
__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ALPHAr7   r.   r&   r   <module>rG      s    , &  ' 6 ( 3 7 / 5E D%%((),%% ,  *,( D%%**D,=,=,C,CD.: .  E.r&   