
    	                         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d	Zej                   ej                  ej                  j                          G d
 dej"                                      Zee_        y)z*Describe command for Workbench Executions.    )util)
executions)base)endpoint_util)flagsz6
        Describe a Workbench notebook execution.
    z
        To describe a notebook execution with id `my-execution` in region `us-central1`, run:

        $ {command} my-execution --region=us-central1
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)DescribezDescribe an execution.c                 2    t        j                  | d       y)z`Register flags for this command.

    Args:
      parser: argparse parser for the command.

    T)for_workbenchN)r   AddDescribeExecutionFlags)parsers    ,lib/surface/workbench/executions/describe.pyArgszDescribe.Args*   s     
##F$?    c                    | j                         }t        j                  | j                               }|j                  j                  j                         }|j                         d   }t        j                  d|      5  t        j                  |      }|j                  }t        j                  |||      cddd       S # 1 sw Y   yxY w)zThis is what gets called when the user runs this command.

    Args:
      args: argparse namespace, the arguments of the command.

    Returns:
      The execution to describe.
    locationsIdBETA)versionregionN)ReleaseTrackr   GetMessagesCONCEPTS	executionParseAsDictr   AiplatformEndpointOverrides	GetClient(projects_locations_notebookExecutionJobsexecutions_util ValidateAndGetWorkbenchExecution)selfargsrelease_trackmessagesexecution_refr   
api_clientexecutions_services           r   RunzDescribe.Run4   s     %%'M 1 1 34HMM++113M!!#M2F		2	2v
 >>-0j%NN==
,
 
 
s   8CCN)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r   r   %   s      @ @r   r   N)r.   'googlecloudsdk.api_lib.colab_enterpriser   (googlecloudsdk.api_lib.notebook_executorr   r!   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   ,googlecloudsdk.command_lib.notebook_executorr   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   r   DescribeCommandr   detailed_helpr0   r   r   <module>r;      s}     1 8 R ( 7 >		 D%%**+"t## " , "J ( r   