
    R	                         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
  \R                  " \R                  R                  \R                  R                  5       " S S	\R                  5      5       rg
)z9Implementation of gcloud dataflow jobs describe command.
    )absolute_import)division)unicode_literals)apis)base)	job_utilsc                   .    \ rS rSrSr\S 5       rS rSrg)Describe   a  Outputs the Job object resulting from the Get API.

By default this will display the Summary view which includes:
  - Project ID
  - Regional Endpoint
  - Job ID
  - Job Name
  - Job Type (Batch vs. Streaming)
  - Job Create Time
  - Job Status (Running, Done, Cancelled, Failed)
  - Job Status Time

Notable values that are only in the full view:
  - Environment (staging Jars, information about workers, etc.)
  - Steps from the workflow graph
c                    [         R                  " U 5        U R                  SS[        R                  R
                  R                  R                  [        R                  R
                  R                  R                  SS9  g)zfRegister flags for this command.

Args:
  parser: argparse.ArgumentParser to register arguments with.
z--fullstore_constz2Retrieve the full Job rather than the summary view)actionconstdefaulthelpN)	r   ArgsForJobRefadd_argumentr   JobsGET_REQUESTViewValueValuesEnumJOB_VIEW_ALLJOB_VIEW_SUMMARY)parsers    %lib/surface/dataflow/jobs/describe.pyArgsDescribe.Args/   sa     F#
ii##77DD		%%99JJA  C    c                     [         R                  " U5      n[        R                  R	                  UR
                  UR                  UR                  UR                  S9$ )zyRuns the command.

Args:
  args: The arguments that were provided to this command invocation.

Returns:
  A Job message.
)
project_id	region_idview)	r   ExtractJobRefr   r   GetjobId	projectIdlocationfull)selfargsjob_refs      r   RunDescribe.Run?   sN     %%d+G99==$$""YY	   r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r+   __static_attributes__r-   r   r   r
   r
      s"    " C Cr   r
   N)r2   
__future__r   r   r   googlecloudsdk.api_lib.dataflowr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataflowr   ReleaseTracksReleaseTrackBETAGADescribeCommandr
   r-   r   r   <module>r>      se     '  ' 0 ( 9 D%%**D,=,=,@,@A0t## 0 B0r   