
                            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 delete a Tensorboard 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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.Run>   s    i**++r1    N
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr.   r7   __static_attributes__r9   r1   r    r#   r#   )   s/    1 - 9 9,r1   r#   c                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	
DeleteBetaB   r%   r&   r'   c                 2    [         R                  " U S5        g r)   r*   r,   s    r    r.   DeleteBeta.ArgsS   r0   r1   c                 6    [        U[        R                  5      $ r3   )r!   r   BETA_VERSIONr5   s     r    r7   DeleteBeta.RunW   s    i,,--r1   r9   Nr:   r9   r1   r    rD   rD   B   s/    1 - 9 9.r1   rD   N)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ALPHArD   r9   r1   r    <module>rU      s    4 1 9 ( 3 7 / 9 ;
L D%%((),t!! , *,0 D%%**D,=,=,C,CD.## . E.r1   