
    m
                        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                          G d dej"                               Z ej                  ej                  j&                  ej                  j(                         G d dej"                               Zy)z*Command to get a Tensorboard 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ParseAsDictr	   AiplatformEndpointOverridesr   TensorboardsClientGet)argsr   tensorboard_refr   responses        'lib/surface/ai/tensorboards/describe.py_Runr      sn    MM--335/!!#M2&00f&((9==oNH& & &s   'B  B	c                   .    e Zd ZdZddiZed        Zd Zy)
DescribeGaEGets detailed Tensorboard information about the given Tensorboard id.EXAMPLES          To describe a Tensorboard `12345` in region `us-central1` and project `my-project`:

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

          Or with flags:

              $ {command} 12345
          c                 0    t        j                  | d       y Nzto describer
   AddTensorboardResourceArgparsers    r   ArgszDescribeGa.Args6       	##FM:    c                 6    t        |t        j                        S N)r   r   
GA_VERSIONselfr   s     r   RunzDescribeGa.Run:   s    i**++r(   N__name__
__module____qualname____doc__detailed_helpstaticmethodr&   r.    r(   r   r   r   %   s/    M - ; ;,r(   r   c                   .    e Zd ZdZddiZed        Zd Zy)DescribeBetar   r   r   c                 0    t        j                  | d       y r!   r"   r$   s    r   r&   zDescribeBeta.ArgsO   r'   r(   c                 6    t        |t        j                        S r*   )r   r   BETA_VERSIONr,   s     r   r.   zDescribeBeta.RunS   s    i,,--r(   Nr/   r6   r(   r   r8   r8   >   s/    M - ; ;.r(   r8   N)r3   
__future__r   r   r   &googlecloudsdk.api_lib.ai.tensorboardsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   ReleaseTracksReleaseTrackGADescribeCommandr   BETAALPHAr8   r6   r(   r   <module>rF      s    1 &  ' 9 ( 3 7 / D%%((),%% , *,0 D%%**D,=,=,C,CD.4'' . E.r(   