Workflows v1 API - Class Workflows.WorkflowsBase (2.4.0)

[BindServiceMethod(typeof(Workflows), "BindService")]
public abstract class Workflows.WorkflowsBase

Reference documentation and code samples for the Workflows v1 API class Workflows.WorkflowsBase.

Base class for server-side implementations of Workflows

Inheritance

object > Workflows.WorkflowsBase

Namespace

Google.Cloud.Workflows.V1

Assembly

Google.Cloud.Workflows.V1.dll

Methods

CreateWorkflow(CreateWorkflowRequest, ServerCallContext)

public virtual Task<Operation> CreateWorkflow(CreateWorkflowRequest request, ServerCallContext context)

Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.

Parameters
NameDescription
requestCreateWorkflowRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteWorkflow(DeleteWorkflowRequest, ServerCallContext)

public virtual Task<Operation> DeleteWorkflow(DeleteWorkflowRequest request, ServerCallContext context)

Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.

Parameters
NameDescription
requestDeleteWorkflowRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GetWorkflow(GetWorkflowRequest, ServerCallContext)

public virtual Task<Workflow> GetWorkflow(GetWorkflowRequest request, ServerCallContext context)

Gets details of a single workflow.

Parameters
NameDescription
requestGetWorkflowRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskWorkflow

The response to send back to the client (wrapped by a task).

ListWorkflows(ListWorkflowsRequest, ServerCallContext)

public virtual Task<ListWorkflowsResponse> ListWorkflows(ListWorkflowsRequest request, ServerCallContext context)

Lists workflows in a given project and location. The default order is not specified.

Parameters
NameDescription
requestListWorkflowsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListWorkflowsResponse

The response to send back to the client (wrapped by a task).

UpdateWorkflow(UpdateWorkflowRequest, ServerCallContext)

public virtual Task<Operation> UpdateWorkflow(UpdateWorkflowRequest request, ServerCallContext context)

Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.

Parameters
NameDescription
requestUpdateWorkflowRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).