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

NameDatatypeDescription
namestringThe resource name of the job template. Format: projects/{project_number}/locations/{location}/jobTemplates/{job_template}
configobjectJob configuration
labelsobjectThe labels associated with this job template. You can use these to organize and group your job templates.

Methods

NameAccessible byRequired ParamsDescription
getSELECTjobTemplatesId, locationsId, projectsIdReturns the job template data.
listSELECTlocationsId, projectsIdLists job templates in the specified region.
createINSERTlocationsId, projectsIdCreates a job template in the specified region.
deleteDELETEjobTemplatesId, locationsId, projectsIdDeletes a job template.

SELECT examples

Lists job templates in the specified region.

SELECT
name,
config,
labels
FROM google.transcoder.job_templates
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new job_templates resource.

/*+ create */
INSERT INTO google.transcoder.job_templates (
locationsId,
projectsId,
name,
config,
labels
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ config }}',
'{{ labels }}'
;

DELETE example

Deletes the specified job_templates resource.

/*+ delete */
DELETE FROM google.transcoder.job_templates
WHERE jobTemplatesId = '{{ jobTemplatesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';