
    %	                        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  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)Command to get a custom job in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)
validationc                   >    e Zd ZdZej
                  Zed        Zd Z	y)
DescribeGAGet detailed information about the custom job by given id.

  ## EXAMPLES

  To get a job ``123'' under project ``example'' in region
  ``us-central1'', run:

    $ {command} 123 --project=example --region=us-central1
  c                 0    t        j                  | d       y )Nzto describe)r
   AddCustomJobResourceArg)parsers    &lib/surface/ai/custom_jobs/describe.pyArgszDescribeGA.Args+   s    	!!&-8    c                    |j                   j                  j                         }|j                         d   }t	        j
                  |       t        j                  | j                  |      5  t        j                  | j                        j                  |j                               }|cd d d        S # 1 sw Y   y xY w)NlocationsId)versionregion)r   )CONCEPTS
custom_jobParseAsDictr   ValidateRegionr	   AiplatformEndpointOverrides_api_versionr   CustomJobsClientGetRelativeName)selfargscustom_job_refr   responses        r   RunzDescribeGA.Run/   s    ]]--335N""$]3Ff%		2	2!!&
2((1B1BCGG

%
%
')h	
2 
2 
2s   .?B77C N)
__name__
__module____qualname____doc__r   
GA_VERSIONr   staticmethodr   r'    r   r   r   r      s+     %%,9 9	r   r   c                   (    e Zd ZdZej
                  Zy)DescribePreGAr   N)r(   r)   r*   r+   r   BETA_VERSIONr   r.   r   r   r0   r0   ;   s     '',r   r0   N)r+   
__future__r   r   r   %googlecloudsdk.api_lib.ai.custom_jobsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   )googlecloudsdk.command_lib.ai.custom_jobsr
   r   ReleaseTracksReleaseTrackGADescribeCommandr   BETAALPHAr0   r.   r   r   <module>r=      s    0 &  ' 8 ( 3 7 ; @ D%%(()%%  *: D%%**D,=,=,C,CD(J ( E(r   