
    G
                     8   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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)z1Command to delete a Tensorboard run in Vertex AI.    )absolute_import)division)unicode_literals)
operations)client)base)	constants)endpoint_util)flags)operations_util)tensorboards_utilc                    | j                   j                  j                         }|j                         d   }t	        j
                  ||      5  t        j                  |      j                  |      }t        j                  t        j                         |t        j                  |j                              cd d d        S # 1 sw Y   y xY w)NlocationsId)versionregion)r   )operations_clientopop_ref)CONCEPTStensorboard_runParseAsDictr
   AiplatformEndpointOverridesr   TensorboardRunsClientDeleter   WaitForOpMayber   OperationsClientr   ParseTensorboardOperationname)argsr   tensorboard_run_refr   	operations        )lib/surface/ai/tensorboard_runs/delete.py_Runr$      s    55;;=%%'6&00f&,, 34 ))$557 ::9>>JL	& & &s   A,CCc                   .    e Zd ZdZddiZed        Zd Zy)
DeleteBetaz-Delete an existing Vertex AI Tensorboard run.EXAMPLESa            To delete a Tensorboard Run `my-tensorboard-run` in Tensorboard `12345`, Tensorboard Experiment `my-tensorboard-experiment`, region `us-central1`, and project `my-project`:

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

          Or with flags:

              $ {command} my-tensorboard-run --tensorboard-id=12345 --tensorboard-experiment-id=my-tensorboard-experiment
          c                 0    t        j                  | d       y )Nz	to delete)r   AddTensorboardRunResourceArg)parsers    r#   ArgszDeleteBeta.Args=   s    	&&v{;    c                 6    t        |t        j                        S )N)r$   r	   BETA_VERSION)selfr    s     r#   RunzDeleteBeta.RunA   s    i,,--r,   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr+   r0    r,   r#   r&   r&   ,   s/    5 - < <.r,   r&   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.air   *googlecloudsdk.api_lib.ai.tensorboard_runsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air	   r
   r   r   r   r$   ReleaseTracksReleaseTrackBETAALPHADeleteCommandr&   r7   r,   r#   <module>rB      sz    8 &  ' 0 = ( 3 7 / 9 ;
L D%%**D,=,=,C,CD.## . E.r,   