Interface TemplatesServiceGrpc.AsyncService (0.66.0)

public static interface TemplatesServiceGrpc.AsyncService

Provides a method to create Cloud Dataflow jobs from templates.

Methods

createJobFromTemplate(CreateJobFromTemplateRequest request, StreamObserver<Job> responseObserver)

public default void createJobFromTemplate(CreateJobFromTemplateRequest request, StreamObserver<Job> responseObserver)

Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. To create a job, we recommend using projects.locations.templates.create with a regional endpoint. Using projects.templates.create is not recommended, because your job will always start in us-central1.

Parameters
Name Description
request CreateJobFromTemplateRequest
responseObserver io.grpc.stub.StreamObserver<Job>

getTemplate(GetTemplateRequest request, StreamObserver<GetTemplateResponse> responseObserver)

public default void getTemplate(GetTemplateRequest request, StreamObserver<GetTemplateResponse> responseObserver)

Get the template associated with a template. To get the template, we recommend using projects.locations.templates.get with a regional endpoint. Using projects.templates.get is not recommended, because only templates that are running in us-central1 are retrieved.

Parameters
Name Description
request GetTemplateRequest
responseObserver io.grpc.stub.StreamObserver<GetTemplateResponse>

launchTemplate(LaunchTemplateRequest request, StreamObserver<LaunchTemplateResponse> responseObserver)

public default void launchTemplate(LaunchTemplateRequest request, StreamObserver<LaunchTemplateResponse> responseObserver)

Launches a template. To launch a template, we recommend using projects.locations.templates.launch with a regional endpoint. Using projects.templates.launch is not recommended, because jobs launched from the template will always start in us-central1.

Parameters
Name Description
request LaunchTemplateRequest
responseObserver io.grpc.stub.StreamObserver<LaunchTemplateResponse>