class ProjectsTemplates extends Resource (View source)

The "templates" collection of methods.

Typical usage is:

 $dataflowService = new Google\Service\Dataflow(...);
 $templates = $dataflowService->projects_templates;

Methods

Job
create(string $projectId, CreateJobFromTemplateRequest $postBody, array $optParams = [])

Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. (templates.create)

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

Get the template associated with a template. (templates.get)

launch(string $projectId, LaunchTemplateParameters $postBody, array $optParams = [])

Launch a template. (templates.launch)

Details

Job create(string $projectId, CreateJobFromTemplateRequest $postBody, array $optParams = [])

Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. (templates.create)

Parameters

string $projectId

Required. The ID of the Cloud Platform project that the job belongs to.

CreateJobFromTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

Job

Exceptions

Exception

GetTemplateResponse get(string $projectId, array $optParams = [])

Get the template associated with a template. (templates.get)

Parameters

string $projectId

Required. The ID of the Cloud Platform project that the job belongs to.

array $optParams

Optional parameters.

Return Value

GetTemplateResponse

Exceptions

Exception

LaunchTemplateResponse launch(string $projectId, LaunchTemplateParameters $postBody, array $optParams = [])

Launch a template. (templates.launch)

Parameters

string $projectId

Required. The ID of the Cloud Platform project that the job belongs to.

LaunchTemplateParameters $postBody
array $optParams

Optional parameters.

Return Value

LaunchTemplateResponse

Exceptions

Exception