
    	                        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)z6Command to get a Tensorboard time series 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_time_seriesParseAsDictr	   AiplatformEndpointOverridesr   TensorboardTimeSeriesClientGet)argsr   tensorboard_time_series_refr   responses        2lib/surface/ai/tensorboard_time_series/describe.py_Runr      su     $ E E K K M&--/>&00f&1189 	& & &s   'B  B	c                   .    e Zd ZdZddiZed        Zd Zy)DescribeBetaz\Get detailed Tensorboard time series information about the given Tensorboard time series id.EXAMPLESa4            To describe a Tensorboard Time Series `123` in Tensorboard `12345`, Tensorboard Experiment `my-tensorboard-experiment, Tensorboard Run `my-tensorboard-run`, region `us-central1`, and project `my-project`:

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

          Or with flags:

              $ {command} 123 --tensorboard-id=12345 --tensorboard-experiment-id=my-tensorboard-experiment --tensorboard-run-id=my-tensorboard-run
          c                 0    t        j                  | d       y )Nzto describe)r
   #AddTensorboardTimeSeriesResourceArg)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    d - E E.r"   r   N)r*   
__future__r   r   r   1googlecloudsdk.api_lib.ai.tensorboard_time_seriesr   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"   