
                             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iZd Z G d dej                         Zy)z"ai-platform jobs describe command.    )absolute_import)division)unicode_literals)jobs)base)flags)	jobs_util)logEXAMPLESzg          To describe the AI Platform job named ``my-job'', run:

            {command} my-job
        c                     t         j                  j                  |        t        j                         j                  |        y N)r   JOB_NAMEAddToParserGetSummarizeFlagparsers    (lib/surface/ai_platform/jobs/describe.py_AddDescribeArgsr   &   s+    ..V$&&v.    c                   0    e Zd ZdZeZed        Zd Zd Z	y)DescribezDescribe an AI Platform job.c                     t        |        y r   )r   r   s    r   ArgszDescribe.Args0   s
    Vr   c                    t        j                  t        j                         |j                        }|| _        |j
                  r;|j                  rt        j                  d       t        j                  |      |_        |S )Nz/--format is ignored when --summarize is present)
r	   r   r   
JobsClientjob	summarizeformatr
   warningGetSummaryFormat)selfargsr   s      r   RunzDescribe.Run4   sX    


T__.
9CDH~~	EF..s3dkJr   c                 \    |r*t        j                  | j                  j                         y y r   )r	   PrintDescribeFollowUpr   jobId)r!   resources_were_displayeds     r   EpilogzDescribe.Epilog=   s     %%dhhnn5  r   N)
__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r#   r(    r   r   r   r   +   s&    $- 6r   r   N)r,   
__future__r   r   r    googlecloudsdk.api_lib.ml_enginer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.ml_enginer   r	   googlecloudsdk.corer
   r-   r   DescribeCommandr   r0   r   r   <module>r7      sJ    ) &  ' 1 ( 6 : # 	/
6t## 6r   