Workflows v1 API - Class WorkflowsClientImpl (2.2.0)

public sealed class WorkflowsClientImpl : WorkflowsClient

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

Workflows client wrapper implementation, for convenient use.

Inheritance

object > WorkflowsClient > WorkflowsClientImpl

Namespace

Google.Cloud.Workflows.V1

Assembly

Google.Cloud.Workflows.V1.dll

Remarks

Workflows is used to deploy and execute workflow programs. Workflows makes sure the program executes reliably, despite hardware and networking interruptions.

Constructors

WorkflowsClientImpl(WorkflowsClient, WorkflowsSettings, ILogger)

public WorkflowsClientImpl(Workflows.WorkflowsClient grpcClient, WorkflowsSettings settings, ILogger logger)

Constructs a client wrapper for the Workflows service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientWorkflowsWorkflowsClient

The underlying gRPC client.

settingsWorkflowsSettings

The base WorkflowsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateWorkflowOperationsClient

public override OperationsClient CreateWorkflowOperationsClient { get; }

The long-running operations client for CreateWorkflow.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteWorkflowOperationsClient

public override OperationsClient DeleteWorkflowOperationsClient { get; }

The long-running operations client for DeleteWorkflow.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Workflows.WorkflowsClient GrpcClient { get; }

The underlying gRPC Workflows client

Property Value
TypeDescription
WorkflowsWorkflowsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

UpdateWorkflowOperationsClient

public override OperationsClient UpdateWorkflowOperationsClient { get; }

The long-running operations client for UpdateWorkflow.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateWorkflow(CreateWorkflowRequest, CallSettings)

public override Operation<Workflow, OperationMetadata> CreateWorkflow(CreateWorkflowRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationWorkflowOperationMetadata

The RPC response.

Overrides

CreateWorkflowAsync(CreateWorkflowRequest, CallSettings)

public override Task<Operation<Workflow, OperationMetadata>> CreateWorkflowAsync(CreateWorkflowRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationWorkflowOperationMetadata

A Task containing the RPC response.

Overrides

DeleteWorkflow(DeleteWorkflowRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteWorkflow(DeleteWorkflowRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteWorkflowRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteWorkflowAsync(DeleteWorkflowRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeleteWorkflowAsync(DeleteWorkflowRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestDeleteWorkflowRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

GetWorkflow(GetWorkflowRequest, CallSettings)

public override Workflow GetWorkflow(GetWorkflowRequest request, CallSettings callSettings = null)

Gets details of a single workflow.

Parameters
NameDescription
requestGetWorkflowRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Workflow

The RPC response.

Overrides

GetWorkflowAsync(GetWorkflowRequest, CallSettings)

public override Task<Workflow> GetWorkflowAsync(GetWorkflowRequest request, CallSettings callSettings = null)

Gets details of a single workflow.

Parameters
NameDescription
requestGetWorkflowRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskWorkflow

A Task containing the RPC response.

Overrides

ListWorkflows(ListWorkflowsRequest, CallSettings)

public override PagedEnumerable<ListWorkflowsResponse, Workflow> ListWorkflows(ListWorkflowsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListWorkflowsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListWorkflowsResponseWorkflow

A pageable sequence of Workflow resources.

Overrides

ListWorkflowsAsync(ListWorkflowsRequest, CallSettings)

public override PagedAsyncEnumerable<ListWorkflowsResponse, Workflow> ListWorkflowsAsync(ListWorkflowsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListWorkflowsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListWorkflowsResponseWorkflow

A pageable asynchronous sequence of Workflow resources.

Overrides

UpdateWorkflow(UpdateWorkflowRequest, CallSettings)

public override Operation<Workflow, OperationMetadata> UpdateWorkflow(UpdateWorkflowRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationWorkflowOperationMetadata

The RPC response.

Overrides

UpdateWorkflowAsync(UpdateWorkflowRequest, CallSettings)

public override Task<Operation<Workflow, OperationMetadata>> UpdateWorkflowAsync(UpdateWorkflowRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationWorkflowOperationMetadata

A Task containing the RPC response.

Overrides