
    A	                     j   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  ej                  ej                  j                         ej"                   G d
 dej$                                      Z ej                  ej                  j(                         G d de             Zy)z1Command to get a serverless ray job in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flagsc                   >    e Zd ZdZej
                  Zed        Zd Z	y)
DescribeGAzGet detailed information about the servless ray 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
   AddServerlessRayJobResourceArg)parsers    "lib/surface/ai/ray/job/describe.pyArgszDescribeGA.Args+   s    	((?    c                 \   |j                   j                  j                         }|j                         d   }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serverless_ray_jobParseAsDictr	   AiplatformEndpointOverrides_api_versionr   ServerlessRayJobsClientGetRelativeName)selfargsserverless_ray_job_refr   responses        r   RunzDescribeGA.Run/   s    !]]==CCE#**,];F		2	2!!&
2//8I8IJNN
 
-
-
/h 
2 
2 
2s   ?B""B+N)
__name__
__module____qualname____doc__r   
GA_VERSIONr   staticmethodr   r$    r   r   r   r      s-     %%,@ @
r   r   c                   (    e Zd ZdZej
                  Zy)DescribePreGAzGet 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
  N)r%   r&   r'   r(   r   BETA_VERSIONr   r+   r   r   r-   r-   <   s     '',r   r-   N)r(   
__future__r   r   r   -googlecloudsdk.api_lib.ai.serverless_ray_jobsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   1googlecloudsdk.command_lib.ai.serverless_ray_jobsr
   ReleaseTracksReleaseTrackGAUniverseCompatibleDescribeCommandr   BETAr-   r+   r   r   <module>r:      s    8 &  ' @ ( 3 7 C D%%(()%%   *< D%%**+(J ( ,(r   