public static final class WorkflowTemplateServiceGrpc.WorkflowTemplateServiceFutureStub extends io.grpc.stub.AbstractStub<WorkflowTemplateServiceGrpc.WorkflowTemplateServiceFutureStub>
The API interface for managing Workflow Templates in the Cloud Dataproc API.
| Modifier and Type | Method and Description |
|---|---|
protected WorkflowTemplateServiceGrpc.WorkflowTemplateServiceFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<WorkflowTemplate> |
createWorkflowTemplate(CreateWorkflowTemplateRequest request)
Creates new workflow template.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request)
Deletes a workflow template.
|
com.google.common.util.concurrent.ListenableFuture<WorkflowTemplate> |
getWorkflowTemplate(GetWorkflowTemplateRequest request)
Retrieves the latest workflow template.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
instantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest request)
Instantiates a template and begins execution.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
instantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest request)
Instantiates a template and begins execution.
|
com.google.common.util.concurrent.ListenableFuture<ListWorkflowTemplatesResponse> |
listWorkflowTemplates(ListWorkflowTemplatesRequest request)
Lists workflows that match the specified filter in the request.
|
com.google.common.util.concurrent.ListenableFuture<WorkflowTemplate> |
updateWorkflowTemplate(UpdateWorkflowTemplateRequest request)
Updates (replaces) workflow template.
|
protected WorkflowTemplateServiceGrpc.WorkflowTemplateServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<WorkflowTemplateServiceGrpc.WorkflowTemplateServiceFutureStub>public com.google.common.util.concurrent.ListenableFuture<WorkflowTemplate> createWorkflowTemplate(CreateWorkflowTemplateRequest request)
Creates new workflow template.
public com.google.common.util.concurrent.ListenableFuture<WorkflowTemplate> getWorkflowTemplate(GetWorkflowTemplateRequest request)
Retrieves the latest workflow template. Can retrieve previously instantiated template by specifying optional version parameter.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> instantiateWorkflowTemplate(InstantiateWorkflowTemplateRequest request)
Instantiates a template and begins execution. The returned Operation can be used to track execution of workflow by polling [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when entire workflow is finished. The running workflow can be aborted via [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted. The [Operation.metadata][google.longrunning.Operation.metadata] will be [WorkflowMetadata][google.cloud.dataproc.v1beta2.WorkflowMetadata]. On successful completion, [Operation.response][google.longrunning.Operation.response] will be [Empty][google.protobuf.Empty].
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> instantiateInlineWorkflowTemplate(InstantiateInlineWorkflowTemplateRequest request)
Instantiates a template and begins execution. This method is equivalent to executing the sequence [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. The returned Operation can be used to track execution of workflow by polling [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when entire workflow is finished. The running workflow can be aborted via [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted. The [Operation.metadata][google.longrunning.Operation.metadata] will be [WorkflowMetadata][google.cloud.dataproc.v1beta2.WorkflowMetadata]. On successful completion, [Operation.response][google.longrunning.Operation.response] will be [Empty][google.protobuf.Empty].
public com.google.common.util.concurrent.ListenableFuture<WorkflowTemplate> updateWorkflowTemplate(UpdateWorkflowTemplateRequest request)
Updates (replaces) workflow template. The updated template must contain version that matches the current server version.
public com.google.common.util.concurrent.ListenableFuture<ListWorkflowTemplatesResponse> listWorkflowTemplates(ListWorkflowTemplatesRequest request)
Lists workflows that match the specified filter in the request.
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteWorkflowTemplate(DeleteWorkflowTemplateRequest request)
Deletes a workflow template. It does not cancel in-progress workflows.
Copyright © 2019 Google LLC. All rights reserved.