class ProjectsLocationsJobTemplates extends Resource (View source)

The "jobTemplates" collection of methods.

Typical usage is:

 $transcoderService = new Google\Service\Transcoder(...);
 $jobTemplates = $transcoderService->projects_locations_jobTemplates;

Methods

create(string $parent, JobTemplate $postBody, array $optParams = [])

Creates a job template in the specified region. (jobTemplates.create)

delete(string $name, array $optParams = [])

Deletes a job template. (jobTemplates.delete)

get(string $name, array $optParams = [])

Returns the job template data. (jobTemplates.get)

listProjectsLocationsJobTemplates(string $parent, array $optParams = [])

Lists job templates in the specified region.

Details

JobTemplate create(string $parent, JobTemplate $postBody, array $optParams = [])

Creates a job template in the specified region. (jobTemplates.create)

Parameters

string $parent

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

JobTemplate $postBody
array $optParams

Optional parameters.

Return Value

JobTemplate

Exceptions

Exception

TranscoderEmpty delete(string $name, array $optParams = [])

Deletes a job template. (jobTemplates.delete)

Parameters

string $name

Required. The name of the job template to delete. projects/{project}/locations/{location}/jobTemplates/{job_template}

array $optParams

Optional parameters.

Return Value

TranscoderEmpty

Exceptions

Exception

JobTemplate get(string $name, array $optParams = [])

Returns the job template data. (jobTemplates.get)

Parameters

string $name

Required. The name of the job template to retrieve. Format: projects/{project}/locations/{location}/jobTemplates/{job_template}

array $optParams

Optional parameters.

Return Value

JobTemplate

Exceptions

Exception

ListJobTemplatesResponse listProjectsLocationsJobTemplates(string $parent, array $optParams = [])

Lists job templates in the specified region.

(jobTemplates.listProjectsLocationsJobTemplates)

Parameters

string $parent

Required. The parent location from which to retrieve the collection of job templates. Format: projects/{project}/locations/{location}

array $optParams

Optional parameters.

Return Value

ListJobTemplatesResponse

Exceptions

Exception