Class WorkflowTemplateServiceConnection (2.22.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::dataproc::v1::CreateWorkflowTemplateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::WorkflowTemplate >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::GetWorkflowTemplateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::WorkflowTemplate >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataproc::v1::WorkflowMetadata > >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::dataproc::v1::WorkflowMetadata > >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::UpdateWorkflowTemplateRequest const &
Returns
TypeDescription
StatusOr< google::cloud::dataproc::v1::WorkflowTemplate >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::ListWorkflowTemplatesRequest
Returns
TypeDescription
StreamRange< google::cloud::dataproc::v1::WorkflowTemplate >

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

Parameter
NameDescription
request google::cloud::dataproc::v1::DeleteWorkflowTemplateRequest const &
Returns
TypeDescription
Status