
                             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.Cloud Transcoder job templates create command.    )absolute_import)division)unicode_literals)	templates)base)flags)resource_args)labels_utilc                   .    e Zd ZdZddiZed        Zd Zy)Createz Create Transcoder job templates.EXAMPLESa  
        To create a job template with json format configuration:

          $ {command} TEMPLATE_ID --json="config: json-format" --location=us-central1

        To create a job template with json format configuration file:

          $ {command} TEMPLATE_ID --file="config.json" --location=us-central1

        To create a job template with json format configuration and labels

          $ {command} TEMPLATE_ID --file="config.json" --location=us-central1 --labels=key=value
        c                     t        j                  |        t        j                  |        | j                  j                  d       t        j                  |        y )Njson)r	   AddTemplateResourceArgr   AddCreateTemplateFlagsdisplay_info	AddFormatr
   AddCreateLabelsFlags)parsers    *lib/surface/transcoder/templates/create.pyArgszCreate.Args1   s@    ((0	  (
!!&)$$V,    c                     t        j                  | j                               }|j                  j                  j                         }|j                         }|j                  }|j                  |||      S )zCreate a job template.)
parent_reftemplate_idargs)	r   TemplatesClientReleaseTrackCONCEPTSr   ParseParentjobTemplatesIdr   )selfr   clienttemplate_refr   r   s         r   Runz
Create.Run8   si    &&t'8'8':;F==,,224L$$&J--K==JK"  $ $r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r&    r   r   r   r      s/    ( -" - -
$r   r   N)r*   
__future__r   r   r   !googlecloudsdk.api_lib.transcoderr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.transcoderr   r	   $googlecloudsdk.command_lib.util.argsr
   CreateCommandr   r-   r   r   <module>r4      s4     5 &  ' 7 ( 7 ? <%$T %$r   