projects

Creates a job in the specified region.

post/v1/{+parent}/jobs

Request

  • Base URL: https://transcoder.googleapis.com
  • URL: https://transcoder.googleapis.com/v1/{+parent}/jobs
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

Path parameters

parentstring required

Required. The parent location to create and process this job. Format: projects/{project}/locations/{location}

Request body

batchModePriorityinteger

The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.

createTimestring google-datetime

Output only. The time the job was created.

endTimestring google-datetime

Output only. The time the transcoding finished.

fillContentGapsboolean

Optional. Insert silence and duplicate frames when timestamp gaps are detected in a given stream.

inputUristring

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.config.inputs when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, gs://bucket/inputs/file.mp4). See Supported input and output formats.

labelsobject

The labels associated with this job. You can use these to organize and group your jobs.

mode'PROCESSING_MODE_UNSPECIFIED' | 'PROCESSING_MODE_INTERACTIVE' | 'PROCESSING_MODE_BATCH'

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

namestring

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

optimization'OPTIMIZATION_STRATEGY_UNSPECIFIED' | 'AUTODETECT' | 'DISABLED'

Optional. The optimization strategy of the job. The default is AUTODETECT.

outputUristring

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.config.output.uri when using template. URI for the output file(s). For example, gs://my-bucket/outputs/. See Supported input and output formats.

startTimestring google-datetime

Output only. The time the transcoding started.

state'PROCESSING_STATE_UNSPECIFIED' | 'PENDING' | 'RUNNING' | 'SUCCEEDED' | 'FAILED'

Output only. The current state of the job.

templateIdstring

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset. User defined JobTemplate: {job_template_id}

ttlAfterCompletionDaysinteger

Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status