
                            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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&                  R0                  5       " S S\
R*                  5      5       rg)z-Command to delete a Tensorboard in Vertex AI.    )absolute_import)division)unicode_literals)
operations)client)base)	constants)endpoint_util)flags)operations_util)tensorboards_utilc                    U R                   R                  R                  5       nUR                  5       S   n[        R
                  " XS9   [        R                  " US9R                  U5      n[        R                  " [        R                  " 5       U[        R                  " UR                  5      S9sS S S 5        $ ! , (       d  f       g = f)NlocationsId)versionregion)r   )operations_clientopop_ref)CONCEPTStensorboardParseAsDictr
   AiplatformEndpointOverridesr   TensorboardsClientDeleter   WaitForOpMayber   OperationsClientr   ParseTensorboardOperationname)argsr   tensorboard_refr   	operations        %lib/surface/ai/tensorboards/delete.py_Runr$      s    MM--335/!!#M2&00&))0 ))$557 ::9>>JL	& & &s   A*C  
Cc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	DeleteGa,   )Delete an existing Vertex AI Tensorboard.EXAMPLES          To delete 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 deleter   AddTensorboardResourceArgparsers    r#   ArgsDeleteGa.Args=       	##FK8    c                 6    [        U[        R                  5      $ N)r$   r	   
GA_VERSIONselfr    s     r#   RunDeleteGa.RunA   s    i**++r4    N
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr1   r:   __static_attributes__r<   r4   r#   r&   r&   ,   s/    1 - 9 9,r4   r&   c                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	
DeleteBetaE   r(   r)   r*   c                 2    [         R                  " U S5        g r,   r-   r/   s    r#   r1   DeleteBeta.ArgsV   r3   r4   c                 6    [        U[        R                  5      $ r6   )r$   r	   BETA_VERSIONr8   s     r#   r:   DeleteBeta.RunZ   s    i,,--r4   r<   Nr=   r<   r4   r#   rG   rG   E   s/    1 - 9 9.r4   rG   N)rB   
__future__r   r   r   googlecloudsdk.api_lib.air   &googlecloudsdk.api_lib.ai.tensorboardsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air	   r
   r   r   r   r$   ReleaseTracksReleaseTrackGADeleteCommandr&   BETAALPHArG   r<   r4   r#   <module>rY      s    4 &  ' 0 9 ( 3 7 / 9 ;
L D%%((),t!! , *,0 D%%**D,=,=,C,CD.## . E.r4   