
                             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 dd
lmZ  G d dej                        Zy)z%Cloud Transcoder jobs create command.    )absolute_import)division)unicode_literals)jobs)base)flags)resource_args)util)labels_utilc                   .    e Zd ZdZddiZed        Zd Zy)CreatezCreate Transcoder jobs.EXAMPLESa;  
        To create a transcoder job with default template, input URI, and output URI:

          $ {command} --location=us-central1 --input-uri="gs://bucket/input.mp4" --output-uri="gs://bucket/output/"

        To create a transcoder job with template id, input URI, and output URI:

          $ {command} --location=us-central1 --input-uri="gs://bucket/input.mp4" --output-uri="gs://bucket/output/" --template-id=my-template

        To create a transcoder job with json format configuration:

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

        To create a transcoder job with json format configuration file:

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

        To create a transcoder job with labels:

          $ {command} --location=us-central1 --file="config.json" --labels=key=value

        To create a transcoder job in batch mode:

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

        To create a transcoder job in batch mode with priority:

          $ {command} --location=us-central1 --file="config.json" --mode=PROCESSING_MODE_BATCH --batch-mode-priority=3

        To create a transcoder job with optimizations disabled:

          $ {command} --location=us-central1 --file="config.json" --optimization=DISABLED
      c                     t        j                  |        t        j                  |        | j                  j                  d       t        j                  |        y )Njson)r	   AddLocationResourceArgr   AddCreateJobFlagsdisplay_info	AddFormatr   AddCreateLabelsFlags)parsers    %lib/surface/transcoder/jobs/create.pyArgszCreate.ArgsC   s@    ((0	F#
!!&)$$V,    c                     t        j                  |       t        j                  | j	                               }|j
                  j                  j                         }|j                  ||      S )zCreate a job.)
parent_refargs)	r
   ValidateCreateJobArgumentsr   
JobsClientReleaseTrackCONCEPTSlocationParser   )selfr   clientr   s       r   Runz
Create.RunJ   s[    ##D)__T..01F''--/J==   r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r%    r   r   r   r      s.       
  -D - -r   r   N)r)   
__future__r   r   r   !googlecloudsdk.api_lib.transcoderr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.transcoderr   r	   r
   $googlecloudsdk.command_lib.util.argsr   CreateCommandr   r,   r   r   <module>r3      s7     , &  ' 2 ( 7 ? 6 <7T 7r   