job_templates
Creates, updates, deletes, gets or lists a job_templates resource.
Overview
| Name | job_templates |
| Type | Resource |
| Id | google.transcoder.job_templates |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template} |
config | object | The configuration for this template. (id: JobConfig) |
labels | object | The labels associated with this job template. You can use these to organize and group your job templates. |
| Name | Datatype | Description |
|---|---|---|
name | string | The resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template} |
config | object | The configuration for this template. (id: JobConfig) |
labels | object | The labels associated with this job template. You can use these to organize and group your job templates. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, jobTemplatesId | Returns the job template data. | |
list | select | projectsId, locationsId | orderBy, filter, pageSize, pageToken | Lists job templates in the specified region. |
create | insert | projectsId, locationsId | jobTemplateId | Creates a job template in the specified region. |
delete | delete | projectsId, locationsId, jobTemplatesId | allowMissing | Deletes a job template. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
jobTemplatesId | string | |
locationsId | string | |
projectsId | string | |
allowMissing | boolean | |
filter | string | |
jobTemplateId | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
Returns the job template data.
SELECT
name,
config,
labels
FROM google.transcoder.job_templates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND jobTemplatesId = '{{ jobTemplatesId }}' -- required
;
Lists job templates in the specified region.
SELECT
name,
config,
labels
FROM google.transcoder.job_templates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND orderBy = '{{ orderBy }}'
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
INSERT examples
- create
- Manifest
Creates a job template in the specified region.
INSERT INTO google.transcoder.job_templates (
data__name,
data__config,
data__labels,
projectsId,
locationsId,
jobTemplateId
)
SELECT
'{{ name }}',
'{{ config }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ jobTemplateId }}'
RETURNING
name,
config,
labels
;
# Description fields are for documentation purposes
- name: job_templates
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the job_templates resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the job_templates resource.
- name: name
value: "{{ name }}"
description: |
The resource name of the job template. Format: `projects/{project_number}/locations/{location}/jobTemplates/{job_template}`
- name: config
description: |
The configuration for this template.
value:
muxStreams:
- fileName: "{{ fileName }}"
container: "{{ container }}"
fmp4:
codecTag: "{{ codecTag }}"
segmentSettings:
segmentDuration: "{{ segmentDuration }}"
individualSegments: {{ individualSegments }}
key: "{{ key }}"
encryptionId: "{{ encryptionId }}"
elementaryStreams: "{{ elementaryStreams }}"
overlays:
- image:
uri: "{{ uri }}"
resolution:
x: {{ x }}
y: {{ y }}
alpha: {{ alpha }}
animations: "{{ animations }}"
manifests:
- fileName: "{{ fileName }}"
muxStreams: "{{ muxStreams }}"
type: "{{ type }}"
dash:
segmentReferenceScheme: "{{ segmentReferenceScheme }}"
spriteSheets:
- columnCount: {{ columnCount }}
startTimeOffset: "{{ startTimeOffset }}"
spriteWidthPixels: {{ spriteWidthPixels }}
rowCount: {{ rowCount }}
endTimeOffset: "{{ endTimeOffset }}"
totalCount: {{ totalCount }}
format: "{{ format }}"
interval: "{{ interval }}"
filePrefix: "{{ filePrefix }}"
spriteHeightPixels: {{ spriteHeightPixels }}
quality: {{ quality }}
output:
uri: "{{ uri }}"
encryptions:
- drmSystems:
fairplay: "{{ fairplay }}"
widevine: "{{ widevine }}"
playready: "{{ playready }}"
clearkey: "{{ clearkey }}"
aes128: "{{ aes128 }}"
secretManagerKeySource:
secretVersion: "{{ secretVersion }}"
id: "{{ id }}"
sampleAes: "{{ sampleAes }}"
mpegCenc:
scheme: "{{ scheme }}"
adBreaks:
- startTimeOffset: "{{ startTimeOffset }}"
inputs:
- uri: "{{ uri }}"
preprocessingConfig:
audio:
highBoost: {{ highBoost }}
lufs: {{ lufs }}
lowBoost: {{ lowBoost }}
deinterlace:
yadif:
mode: "{{ mode }}"
disableSpatialInterlacing: {{ disableSpatialInterlacing }}
parity: "{{ parity }}"
deinterlaceAllFrames: {{ deinterlaceAllFrames }}
bwdif:
mode: "{{ mode }}"
parity: "{{ parity }}"
deinterlaceAllFrames: {{ deinterlaceAllFrames }}
color:
contrast: {{ contrast }}
brightness: {{ brightness }}
saturation: {{ saturation }}
denoise:
strength: {{ strength }}
tune: "{{ tune }}"
deblock:
enabled: {{ enabled }}
strength: {{ strength }}
crop:
topPixels: {{ topPixels }}
bottomPixels: {{ bottomPixels }}
leftPixels: {{ leftPixels }}
rightPixels: {{ rightPixels }}
pad:
leftPixels: {{ leftPixels }}
rightPixels: {{ rightPixels }}
topPixels: {{ topPixels }}
bottomPixels: {{ bottomPixels }}
key: "{{ key }}"
attributes:
trackDefinitions:
- languages: "{{ languages }}"
detectedLanguages: "{{ detectedLanguages }}"
inputTrack: {{ inputTrack }}
detectLanguages: {{ detectLanguages }}
elementaryStreams:
- key: "{{ key }}"
textStream:
codec: "{{ codec }}"
mapping:
- atomKey: "{{ atomKey }}"
inputKey: "{{ inputKey }}"
inputTrack: {{ inputTrack }}
displayName: "{{ displayName }}"
languageCode: "{{ languageCode }}"
videoStream:
h264:
bitrateBps: {{ bitrateBps }}
vbvFullnessBits: {{ vbvFullnessBits }}
aqStrength: {{ aqStrength }}
entropyCoder: "{{ entropyCoder }}"
widthPixels: {{ widthPixels }}
pixelFormat: "{{ pixelFormat }}"
bPyramid: {{ bPyramid }}
bFrameCount: {{ bFrameCount }}
rateControlMode: "{{ rateControlMode }}"
hlg: "{{ hlg }}"
heightPixels: {{ heightPixels }}
gopFrameCount: {{ gopFrameCount }}
profile: "{{ profile }}"
sdr: "{{ sdr }}"
vbvSizeBits: {{ vbvSizeBits }}
frameRateConversionStrategy: "{{ frameRateConversionStrategy }}"
tune: "{{ tune }}"
allowOpenGop: {{ allowOpenGop }}
frameRate: {{ frameRate }}
gopDuration: "{{ gopDuration }}"
enableTwoPass: {{ enableTwoPass }}
crfLevel: {{ crfLevel }}
preset: "{{ preset }}"
h265:
frameRateConversionStrategy: "{{ frameRateConversionStrategy }}"
hdr10: "{{ hdr10 }}"
tune: "{{ tune }}"
allowOpenGop: {{ allowOpenGop }}
frameRate: {{ frameRate }}
gopDuration: "{{ gopDuration }}"
enableTwoPass: {{ enableTwoPass }}
crfLevel: {{ crfLevel }}
preset: "{{ preset }}"
bitrateBps: {{ bitrateBps }}
vbvFullnessBits: {{ vbvFullnessBits }}
aqStrength: {{ aqStrength }}
widthPixels: {{ widthPixels }}
pixelFormat: "{{ pixelFormat }}"
bPyramid: {{ bPyramid }}
bFrameCount: {{ bFrameCount }}
heightPixels: {{ heightPixels }}
rateControlMode: "{{ rateControlMode }}"
hlg: "{{ hlg }}"
profile: "{{ profile }}"
gopFrameCount: {{ gopFrameCount }}
vbvSizeBits: {{ vbvSizeBits }}
sdr: "{{ sdr }}"
vp9:
frameRate: {{ frameRate }}
gopDuration: "{{ gopDuration }}"
crfLevel: {{ crfLevel }}
frameRateConversionStrategy: "{{ frameRateConversionStrategy }}"
rateControlMode: "{{ rateControlMode }}"
hlg: "{{ hlg }}"
heightPixels: {{ heightPixels }}
gopFrameCount: {{ gopFrameCount }}
profile: "{{ profile }}"
sdr: "{{ sdr }}"
bitrateBps: {{ bitrateBps }}
widthPixels: {{ widthPixels }}
pixelFormat: "{{ pixelFormat }}"
audioStream:
codec: "{{ codec }}"
mapping:
- inputTrack: {{ inputTrack }}
inputChannel: {{ inputChannel }}
gainDb: {{ gainDb }}
inputKey: "{{ inputKey }}"
atomKey: "{{ atomKey }}"
outputChannel: {{ outputChannel }}
displayName: "{{ displayName }}"
channelCount: {{ channelCount }}
channelLayout:
- "{{ channelLayout }}"
languageCode: "{{ languageCode }}"
bitrateBps: {{ bitrateBps }}
sampleRateHertz: {{ sampleRateHertz }}
pubsubDestination:
topic: "{{ topic }}"
editList:
- startTimeOffset: "{{ startTimeOffset }}"
endTimeOffset: "{{ endTimeOffset }}"
key: "{{ key }}"
inputs: "{{ inputs }}"
- name: labels
value: "{{ labels }}"
description: |
The labels associated with this job template. You can use these to organize and group your job templates.
- name: jobTemplateId
value: "{{ jobTemplateId }}"
DELETE examples
- delete
Deletes a job template.
DELETE FROM google.transcoder.job_templates
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND jobTemplatesId = '{{ jobTemplatesId }}' --required
AND allowMissing = '{{ allowMissing }}'
;