Class SessionTemplateControllerConnection (2.32.0)

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

To create a concrete instance, see MakeSessionTemplateControllerConnection().

For mocking, see dataproc_v1_mocks::MockSessionTemplateControllerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateSessionTemplate(google::cloud::dataproc::v1::CreateSessionTemplateRequest const &)

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

virtual UpdateSessionTemplate(google::cloud::dataproc::v1::UpdateSessionTemplateRequest const &)

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

virtual GetSessionTemplate(google::cloud::dataproc::v1::GetSessionTemplateRequest const &)

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

virtual ListSessionTemplates(google::cloud::dataproc::v1::ListSessionTemplatesRequest)

Parameter
Name Description
request google::cloud::dataproc::v1::ListSessionTemplatesRequest
Returns
Type Description
StreamRange< google::cloud::dataproc::v1::SessionTemplate >

virtual DeleteSessionTemplate(google::cloud::dataproc::v1::DeleteSessionTemplateRequest const &)

Parameter
Name Description
request google::cloud::dataproc::v1::DeleteSessionTemplateRequest 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