Class WorkflowsConnection (2.20.0)

This interface defines virtual methods for each of the user-facing overload sets in WorkflowsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type WorkflowsClient.

To create a concrete instance, see MakeWorkflowsConnection().

For mocking, see workflows_v1_mocks::MockWorkflowsConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual ListWorkflows(google::cloud::workflows::v1::ListWorkflowsRequest)

Parameter
NameDescription
request google::cloud::workflows::v1::ListWorkflowsRequest
Returns
TypeDescription
StreamRange< google::cloud::workflows::v1::Workflow >

virtual GetWorkflow(google::cloud::workflows::v1::GetWorkflowRequest const &)

Parameter
NameDescription
request google::cloud::workflows::v1::GetWorkflowRequest const &
Returns
TypeDescription
StatusOr< google::cloud::workflows::v1::Workflow >

virtual CreateWorkflow(google::cloud::workflows::v1::CreateWorkflowRequest const &)

Parameter
NameDescription
request google::cloud::workflows::v1::CreateWorkflowRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workflows::v1::Workflow > >

virtual DeleteWorkflow(google::cloud::workflows::v1::DeleteWorkflowRequest const &)

Parameter
NameDescription
request google::cloud::workflows::v1::DeleteWorkflowRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workflows::v1::OperationMetadata > >

virtual UpdateWorkflow(google::cloud::workflows::v1::UpdateWorkflowRequest const &)

Parameter
NameDescription
request google::cloud::workflows::v1::UpdateWorkflowRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::workflows::v1::Workflow > >