Skip to main content

job_templates

Creates, updates, deletes, gets or lists a job_templates resource.

Overview

Namejob_templates
TypeResource
Idgoogle.transcoder.job_templates

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}
configobjectThe configuration for this template. (id: JobConfig)
labelsobjectThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, jobTemplatesIdReturns the job template data.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists job templates in the specified region.
createinsertprojectsId, locationsIdjobTemplateIdCreates a job template in the specified region.
deletedeleteprojectsId, locationsId, jobTemplatesIdallowMissingDeletes 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.

NameDatatypeDescription
jobTemplatesIdstring
locationsIdstring
projectsIdstring
allowMissingboolean
filterstring
jobTemplateIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

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;

INSERT examples

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
;

DELETE examples

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 }}';