class ProjectsLocationsTemplates extends Resource (View source)

The "templates" collection of methods.

Typical usage is:

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

Methods

Job
create(string $projectId, string $location, 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, string $location, array $optParams = [])

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

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

Launch a template. (templates.launch)

Details

Job create(string $projectId, string $location, 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.

string $location

The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.

CreateJobFromTemplateRequest $postBody
array $optParams

Optional parameters.

Return Value

Job

Exceptions

Exception

GetTemplateResponse get(string $projectId, string $location, 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.

string $location

The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.

array $optParams

Optional parameters.

Return Value

GetTemplateResponse

Exceptions

Exception

LaunchTemplateResponse launch(string $projectId, string $location, 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.

string $location

The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request.

LaunchTemplateParameters $postBody
array $optParams

Optional parameters.

Return Value

LaunchTemplateResponse

Exceptions

Exception