
    	                        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
 Z ej                  ej                  j                   ej                  j"                         G d dej$                               Zy)z.Command to get a Tensorboard run in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flagsc                    | j                   j                  j                         }|j                         d   }t	        j
                  ||      5  t        j                  |      j                  |      }|cd d d        S # 1 sw Y   y xY w)NlocationsId)versionregion)r   )	CONCEPTStensorboard_runParseAsDictr	   AiplatformEndpointOverridesr   TensorboardRunsClientGet)argsr   tensorboard_run_refr   responses        +lib/surface/ai/tensorboard_runs/describe.py_Runr      su    55;;=%%'6&00f&++01 	& & &s   'B  B	c                   .    e Zd ZdZddiZed        Zd Zy)DescribeBetazLGet detailed Tensorboard run information about the given Tensorboard run id.EXAMPLESa            To describe a Tensorboard Run `my-tensorboard-run` in Tensorboard `12345`, Tensorboard Experiment `my-tensorboard-experiment`, region `us-central1`, and project `my-project`:

              $ {command} projects/my-project/locations/us-central1/tensorboards/12345/experiments/my-tensorboard-experiment/runs/my-tensorboard-run

          Or with flags:

              $ {command} my-tensorboard-run --tensorboard-id=12345 --tensorboard-experiment-id=my-tensorboard-experiment
          c                 0    t        j                  | d       y )Nzto describe)r
   AddTensorboardRunResourceArg)parsers    r   ArgszDescribeBeta.Args7   s    	&&v}=    c                 6    t        |t        j                        S )N)r   r   BETA_VERSION)selfr   s     r   RunzDescribeBeta.Run;   s    i,,--r"   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr!   r&    r"   r   r   r   &   s/    T - > >.r"   r   N)r*   
__future__r   r   r   *googlecloudsdk.api_lib.ai.tensorboard_runsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   ReleaseTracksReleaseTrackBETAALPHADescribeCommandr   r-   r"   r   <module>r7      sp    5 &  ' = ( 3 7 / D%%**D,=,=,C,CD.4'' . E.r"   