Class WorkflowTemplateServiceConnection (2.31.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 InstantiateWorkflowTemplate(NoAwaitTag, google::cloud::dataproc::v1::InstantiateWorkflowTemplateRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation 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 InstantiateInlineWorkflowTemplate(NoAwaitTag, google::cloud::dataproc::v1::InstantiateInlineWorkflowTemplateRequest const &)

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

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

Parameter
Name Description
operation google::longrunning::Operation 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

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

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

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

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