Class WorkflowTemplateServiceConnection (2.24.0)

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

To create a concrete instance, see MakeWorkflowTemplateServiceConnection().

For mocking, see dataproc_v1_mocks::MockWorkflowTemplateServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateWorkflowTemplate(google::cloud::dataproc::v1::CreateWorkflowTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::CreateWorkflowTemplateRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::WorkflowTemplate >

virtual GetWorkflowTemplate(google::cloud::dataproc::v1::GetWorkflowTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::GetWorkflowTemplateRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::WorkflowTemplate >

virtual InstantiateWorkflowTemplate(google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::WorkflowMetadata > >

virtual InstantiateInlineWorkflowTemplate(google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::WorkflowMetadata > >

virtual UpdateWorkflowTemplate(google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const &
Returns
Type Description
StatusOr< google::cloud::dataproc::v1::WorkflowTemplate >

virtual ListWorkflowTemplates(google::cloud::dataproc::v1::ListWorkflowTemplatesRequest)

Parameter
Name Description
request google::cloud::dataproc::v1::ListWorkflowTemplatesRequest
Returns
Type Description
StreamRange< google::cloud::dataproc::v1::WorkflowTemplate >

virtual DeleteWorkflowTemplate(google::cloud::dataproc::v1::DeleteWorkflowTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DeleteWorkflowTemplateRequest const &
Returns
Type Description
Status