
    
                     ,   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	S
.r\	R                  \	R                   " \	R"                  R$                  \	R"                  R&                  5       " S S\	R(                  5      5       5       r\\l        g)z/Delete command for Colab Enterprise Executions.    )
operations)util)
executions)base)endpoint_util)flagsz;
        Delete a Colab Enterprise notebook execution.
    z
        To delete an execution with id `my-execution`, in region `us-central1`, run:

         $ {command} my-execution --region=us-central1
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete&   zDelete an execution.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddDeleteExecutionFlags)parsers    &lib/surface/colab/executions/delete.pyArgsDelete.Args+   s     
!!&)    c                    U R                  5       n[        R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  5       S   n[        R                  " SUS9   [        R                  " U5      nUR                  n[        R                  " XU5        UR                  [        R                  " X5      5      n[        R                  " [         R"                  " US9U[        R$                  " UR&                  5      [        R(                  " U5      SSSS9sS	S	S	5        $ ! , (       d  f       g	= f)
z9This is what gets called when the user runs this command.locationsIdBETA)versionregion)clientznotebook executiondeletez&Waiting for execution to be deleted...)operations_clientopop_refasynchronouskind
log_methodmessageN)ReleaseTrackr   GetMessagesCONCEPTS	executionParseAsDictr   AiplatformEndpointOverrides	GetClient(projects_locations_notebookExecutionJobsexecutions_utilValidateAndGetColabExecutionr   CreateExecutionDeleteRequestWaitForOpMayber   OperationsClientParseExecutionOperationnameGetAsyncConfig)	selfargsrelease_trackmessagesexecution_refr   
api_clientexecutions_service	operations	            r   Run
Delete.Run0   s   %%'M 1 1 34HMM++113M!!#M2F		2	2v
 >>-0j

=
=  224CUV$++

6
6i
   &77zJ 88nn **40#:

 
 
s   B<E
E N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r<   __static_attributes__r>   r   r   r   r   &   s     * *r   r   N)rC   googlecloudsdk.api_lib.air   'googlecloudsdk.api_lib.colab_enterpriser   (googlecloudsdk.api_lib.notebook_executorr   r,   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   ,googlecloudsdk.command_lib.notebook_executorr   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr#   GAr   DeleteCommandr   detailed_helpr>   r   r   <module>rR      s     6 0 8 R ( 7 >		 D%%(($*;*;*@*@A%T % B %P & r   