
                             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K	Jr  SS	K	Jr  SS
KJr   " S S\R                  5      rg)z%Cloud Transcoder jobs create command.    )absolute_import)division)unicode_literals)jobs)base)flags)resource_args)util)labels_utilc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Create   z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                     [         R                  " U 5        [        R                  " U 5        U R                  R                  S5        [        R                  " U 5        g )Njson)r	   AddLocationResourceArgr   AddCreateJobFlagsdisplay_info	AddFormatr   AddCreateLabelsFlags)parsers    %lib/surface/transcoder/jobs/create.pyArgsCreate.ArgsC   s@    ((0	F#
!!&)$$V,    c                     [         R                  " U5        [        R                  " U R	                  5       5      nUR
                  R                  R                  5       nUR                  UUS9$ )zCreate a job.)
parent_refargs)	r
   ValidateCreateJobArgumentsr   
JobsClientReleaseTrackCONCEPTSlocationParser   )selfr   clientr   s       r   Run
Create.RunJ   s[    ##D)__T..01F''--/J==   r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r'   __static_attributes__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>r8      s7     , &  ' 2 ( 7 ? 6 <7T 7r   