
                            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)z5Command to get a Tensorboard experiment 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_experimentParseAsDictr	   AiplatformEndpointOverridesr   TensorboardExperimentsClientGet)argsr   tensorboard_exp_refr   responses        2lib/surface/ai/tensorboard_experiments/describe.py_Runr      su    <<BBD%%'6&00f&2201 	& & &s   'B  B	c                   .    e Zd ZdZddiZed        Zd Zy)DescribeBetazZGet detailed Tensorboard experiment information about the given Tensorboard experiment id.EXAMPLESa            To describe a Tensorboard Experiment `my-tensorboard-experiment` in Tensorboard `12345`, region `us-central1`, and project `my-project`:

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

          Or with flags:

              $ {command} my-tensorboard-experiment --tensorboard-id=12345
          c                 0    t        j                  | d       y )Nzto describe)r
   #AddTensorboardExperimentResourceArg)parsers    r   ArgszDescribeBeta.Args7   s    	--fmD    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   &   s1    b - E E.r"   r   N)r*   
__future__r   r   r   1googlecloudsdk.api_lib.ai.tensorboard_experimentsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   ReleaseTracksReleaseTrackBETAALPHADescribeCommandr   r-   r"   r   <module>r7      sp    < &  ' D ( 3 7 / D%%**D,=,=,C,CD.4'' . E.r"   