
                         ,   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	d
Zej                   ej                  ej                   j"                  ej                   j$                         G d dej&                                      Zee_        y)z6Delete command for Colab Enterprise Runtime Templates.    )
operations)runtime_templates)util)base)endpoint_util)flagszB
        Delete a Colab Enterprise notebook runtime template.
    z
        To delete a runtime template with id 'my-runtime-template' in region 'us-central1', run:

        $ {command} my-runtime-template --region=us-central1
    )DESCRIPTIONEXAMPLESc                   &    e Zd ZdZed        Zd Zy)DeletezDelete a runtime template.c                 .    t        j                  |        y)z Register flags for this command.N)r   AddDeleteRuntimeTemplateFlags)parsers    -lib/surface/colab/runtime_templates/delete.pyArgszDelete.Args+   s     
''/    c                    | j                         }t        j                  | j                               }|j                  j                  j                         }|j                         d   }t        j                  d|      5  t        j                  |      }|j                  }|j                  t        j                  ||            }t        j                  t        j                   |      |t        j"                  |j$                        ddt        j&                  |      d|j                  j                  j                         j)                               cd	d	d	       S # 1 sw Y   y	xY w)
z9This is what gets called when the user runs this command.locationsIdBETA)versionregion)clientdeletezruntime templatez-Waiting for runtime template to be deleted...)operations_clientopop_ref
log_methodkindasynchronousmessageresourceN)ReleaseTrackr   GetMessagesCONCEPTSruntime_templateParseAsDictr   AiplatformEndpointOverrides	GetClient+projects_locations_notebookRuntimeTemplatesr   runtime_templates_util"CreateRuntimeTemplateDeleteRequestWaitForOpMayber   OperationsClientParseRuntimeTemplateOperationnameGetAsyncConfigRelativeName)	selfargsrelease_trackmessagesruntime_template_refr   
api_clientruntime_templates_service	operations	            r   Runz
Delete.Run0   s)   %%'M 1 1 34H==99??A!((*=9F		2	2v
 >>-0j

@
@   ,22
 
C
CHi
   &77zJ'EEnn !**40A==11779FFH
 
 
s   CE##E,N)__name__
__module____qualname____doc__staticmethodr   r;    r   r   r   r   &   s     #0 0r   r   N)r?   googlecloudsdk.api_lib.air   'googlecloudsdk.api_lib.colab_enterpriser   r+   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   +googlecloudsdk.command_lib.colab_enterpriser   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr"   GAr   DeleteCommandr   detailed_helprA   r   r   <module>rM      s     = 0 _ 8 ( 7 =		 D%%(($*;*;*@*@A&T & B &R & r   