
                            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SKJ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$Command to get a model in Vertex AI.    )absolute_import)division)unicode_literals)client)apis)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)
DescribeV1   a  Get detailed model information about the given model id.

## EXAMPLES

Describe a model `123` of project `example` in region `us-central1`,
run:

  $ {command} 123 --project=example --region=us-central1

Describe a model `123` of version `2` of project `example` in region
`us-central1`, run:

  $ {command} 123@2 --project=example --region=us-central1
c                 P    [         R                  " U S[        R                  5        g )Nzto describe)r   AddModelResourceArgr   PromptForOpRegion)parsers    !lib/surface/ai/models/describe.pyArgsDescribeV1.Args0   s    	fm);;=    c                 b   [         R                  " [        R                  US9   [        R
                  " [        R                  [        R                  [        R                     5      n[        R                  " UUR                  S9R                  U5      sS S S 5        $ ! , (       d  f       g = f)Nversionregion)r   messages)r
   AiplatformEndpointOverridesr	   
GA_VERSIONr   GetClientInstanceAI_PLATFORM_API_NAMEAI_PLATFORM_API_VERSIONr   ModelsClientMESSAGES_MODULEGet)selfargs	model_refr   client_instances        r   _RunDescribeV1._Run5   s~    		2	2$$V
5..

(
(

+
+I,@,@
ACo    "22447C	N
5 
5 
5s   A2B  
B.c                     UR                   R                  R                  5       nUR                  5       S   nU R	                  XU5      $ )NlocationsId)CONCEPTSmodelParseAsDictr*   )r&   r'   r(   r   s       r   RunDescribeV1.Run?   s>    ##))+I.F99Tf--r    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r*   r2   __static_attributes__r4   r   r   r   r      s&     = =C.r   r   c                       \ rS rSrSrS rSrg)DescribeV1Beta1E   r   c                     [         R                  " [        R                  US9   [        R
                  " 5       R                  U5      nUsS S S 5        $ ! , (       d  f       g = f)Nr   )r
   r   r	   BETA_VERSIONr   r#   r%   )r&   r'   r(   r   responses        r   r*   DescribeV1Beta1._RunW   sG    		2	2&&v
7$$&**95h
7 
7 
7s   &A
A"r4   N)r5   r6   r7   r8   r9   r*   r;   r4   r   r   r=   r=   E   s    r   r=   N)r9   
__future__r   r   r    googlecloudsdk.api_lib.ai.modelsr   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air	   r
   r   r   ReleaseTracksReleaseTrackGAUniverseCompatibleDescribeCommandr   ALPHABETAr=   r4   r   r   <module>rO      s    + &  ' 3 , ( 3 7 / 5 D%%(()".%% ".  *".J D%%++T->->-C-CDj   Er   