Class SessionTemplateControllerConnection (2.26.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