
    m
                        S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  SS	K	Jr  S
 r\R                  " \R                  R                   5       " S S\R"                  5      5       r\R                  " \R                  R&                  \R                  R(                  5       " S S\R"                  5      5       rg)z*Command to get a Tensorboard in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flagsc                    U R                   R                  R                  5       nUR                  5       S   n[        R
                  " XS9   [        R                  " US9R                  U5      nUsS S S 5        $ ! , (       d  f       g = f)NlocationsId)versionregion)r   )	CONCEPTStensorboardParseAsDictr	   AiplatformEndpointOverridesr   TensorboardsClientGet)argsr   tensorboard_refr   responses        'lib/surface/ai/tensorboards/describe.py_Runr      sl    MM--335/!!#M2&00&((9==oNH& & &s   %A;;
B	c                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	
DescribeGa%   EGets 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                 2    [         R                  " U S5        g Nzto describer
   AddTensorboardResourceArgparsers    r   ArgsDescribeGa.Args6       	##FM:    c                 6    [        U[        R                  5      $ N)r   r   
GA_VERSIONselfr   s     r   RunDescribeGa.Run:   s    i**++r*    N
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr'   r0   __static_attributes__r2   r*   r   r   r   %   s/    M - ; ;,r*   r   c                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	DescribeBeta>   r   r   r    c                 2    [         R                  " U S5        g r"   r#   r%   s    r   r'   DescribeBeta.ArgsO   r)   r*   c                 6    [        U[        R                  5      $ r,   )r   r   BETA_VERSIONr.   s     r   r0   DescribeBeta.RunS   s    i,,--r*   r2   Nr3   r2   r*   r   r=   r=   >   s/    M - ; ;.r*   r=   N)r8   
__future__r   r   r   &googlecloudsdk.api_lib.ai.tensorboardsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   ReleaseTracksReleaseTrackGADescribeCommandr   BETAALPHAr=   r2   r*   r   <module>rN      s    1 &  ' 9 ( 3 7 / D%%((),%% , *,0 D%%**D,=,=,C,CD.4'' . E.r*   