
    	                        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                   \R                  R"                  5       " S S\R$                  5      5       rg)z8Command to delete a Tensorboard experiment in Vertex AI.    )
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_experimentParseAsDictr   AiplatformEndpointOverridesr   TensorboardExperimentsClientDeleter	   WaitForOpMayber   OperationsClientr
   ParseTensorboardOperationname)argsr   tensorboard_refr   	operations        0lib/surface/ai/tensorboard_experiments/delete.py_Runr!      s    MM88>>@/!!#M2&00&33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)	
DeleteBeta)   z4Delete an existing Vertex AI Tensorboard experiment.EXAMPLESa            To delete a Tensorboard Experiment `my-tensorboard-experiment` in Tensorboard `12345`, region `us-central1`, and project `my-project`:

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

          Or with flags:

              $ {command} my-tensorboard-experiment --tensorboard-id=12345
          c                 2    [         R                  " U S5        g )Nz	to delete)r   #AddTensorboardExperimentResourceArg)parsers    r    ArgsDeleteBeta.Args:   s    	--fkB    c                 6    [        U[        R                  5      $ )N)r!   r   BETA_VERSION)selfr   s     r    RunDeleteBeta.Run>   s    i,,--r+    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr)   r/   __static_attributes__r1   r+   r    r#   r#   )   s1    < - C C.r+   r#   N)r6   googlecloudsdk.api_lib.air   1googlecloudsdk.api_lib.ai.tensorboard_experimentsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r   r   r	   r
   r!   ReleaseTracksReleaseTrackBETAALPHADeleteCommandr#   r1   r+   r    <module>rC      sq    ? 1 D ( 3 7 / 9 ;
L D%%**D,=,=,C,CD.## . E.r+   