
    @                         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  G d
 dej                        Zy)z,Transcoder API job templates delete command.    )absolute_import)division)unicode_literals)	templates)base)resource_args)log)
console_ioc                   .    e Zd ZdZddiZed        Zd Zy)Deletez Delete transcoder job templates.EXAMPLESz|
          To delete a transcoder job template:

              $ {command} TEMPLATE_ID --location=us-central1
              c                 .    t        j                  |        y )N)r   AddTemplateResourceArg)parsers    *lib/surface/transcoder/templates/delete.pyArgszDelete.Args(   s    ((0    c                 b   t        j                  | j                               }|j                  j                  j                         }t        j                  dj                  |j                        dd       |j                  |      }t        j                  |j                         d       |S )zDeletes a job template.z%You are about to delete template [{}]T)throw_if_unattendedcancel_on_notemplate)kind)r   TemplatesClientReleaseTrackCONCEPTStemplate_idParser
   PromptContinueformatjobTemplatesIdr   r	   DeletedResourceRelativeName)selfargsclienttemplate_refresults        r   Runz
Delete.Run,   s    &&t'8'8':;F==,,224L/66''	) t5
 ]]<(F113*EMr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r(    r   r   r   r      s/    (  - 1 1r   r   N)r,   
__future__r   r   r   !googlecloudsdk.api_lib.transcoderr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.transcoderr   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   DeleteCommandr   r/   r   r   <module>r7      s4     3 &  ' 7 ( ? # 2T r   