v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1366359.1 KB
projects

Creates a job in the specified region.

post/v1/{+parent}/jobs

Path parameters

parentstring required

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

Request body

endTimestring google-datetime

Output only. The time the transcoding finished.

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.

startTimestring google-datetime

Output only. The time the transcoding started.

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

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

fillContentGapsboolean

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

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.

labelsobject

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

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

Output only. The current state of the job.

namestring

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

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.

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

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

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.

createTimestring google-datetime

Output only. The time the job was created.

Response

Successful response