
                            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
Zd Zd Z ej                   ej"                  j$                         G d dej&                               Z ej                   ej"                  j*                  ej"                  j,                         G d dej&                               Zy)z$ai-platform models describe command.    )absolute_import)division)unicode_literals)models)base)endpoint_util)flags)region_utilz	ml.modelsc                     t        j                         j                  |        t        j                  d      j                  |        y )NT)include_global)r	   GetModelNameAddToParserGetRegionArgparsers    *lib/surface/ai_platform/models/describe.py_AddDescribeArgsr      s2    ""6*D)55f=    c                     t        j                  |       }t        j                  |      5  t	        j
                         j                  | j                        cd d d        S # 1 sw Y   y xY w)N)region)r
   	GetRegionr   MlEndpointOverridesr   ModelsClientGetmodel)argsr   s     r   _Runr   $   sG      &&((7 $$TZZ0 877s   -A##A,c                   &    e Zd ZdZed        Zd Zy)DescribeDescribe an existing AI Platform model.

  Describe an existing AI Platform model.

  If you would like to see all versions of a model, use
  `gcloud ai-platform versions list`.
  c                     t        |        y Nr   r   s    r   ArgszDescribe.Args6   
    Vr   c                     t        |      S r"   r   selfr   s     r   RunzDescribe.Run:       :r   N__name__
__module____qualname____doc__staticmethodr$   r*    r   r   r   r   ,          r   r   c                   &    e Zd ZdZed        Zd Zy)DescribeBetar    c                     t        |        y r"   r#   r   s    r   r$   zDescribeBeta.ArgsH   r%   r   c                     t        |      S r"   r'   r(   s     r   r*   zDescribeBeta.RunL   r+   r   Nr,   r2   r   r   r5   r5   >   r3   r   r5   N)r0   
__future__r   r   r    googlecloudsdk.api_lib.ml_enginer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.ml_enginer   r	   r
   _COLLECTIONr   r   ReleaseTracksReleaseTrackGADescribeCommandr   BETAALPHAr5   r2   r   r   <module>rC      s    + &  ' 3 ( > 6 < >
1 D%%(()t##  *" D%%**D,=,=,C,CD4''  Er   