Class WorkflowsConnection (2.31.0-rc)

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
Type Description
Options

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

Parameter
Name Description
request google::cloud::workflows::v1::ListWorkflowsRequest
Returns
Type Description
StreamRange< google::cloud::workflows::v1::Workflow >

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

Parameter
Name Description
request google::cloud::workflows::v1::GetWorkflowRequest const &
Returns
Type Description
StatusOr< google::cloud::workflows::v1::Workflow >

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

Parameter
Name Description
request google::cloud::workflows::v1::CreateWorkflowRequest const &
Returns
Type Description
future< StatusOr< google::cloud::workflows::v1::Workflow > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::workflows::v1::CreateWorkflowRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateWorkflow(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::workflows::v1::Workflow > >

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

Parameter
Name Description
request google::cloud::workflows::v1::DeleteWorkflowRequest const &
Returns
Type Description
future< StatusOr< google::cloud::workflows::v1::OperationMetadata > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::workflows::v1::DeleteWorkflowRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteWorkflow(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::workflows::v1::OperationMetadata > >

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

Parameter
Name Description
request google::cloud::workflows::v1::UpdateWorkflowRequest const &
Returns
Type Description
future< StatusOr< google::cloud::workflows::v1::Workflow > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::workflows::v1::UpdateWorkflowRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateWorkflow(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::workflows::v1::Workflow > >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status