Class SessionControllerConnection (2.26.0)

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

To create a concrete instance, see MakeSessionControllerConnection().

For mocking, see dataproc_v1_mocks::MockSessionControllerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateSession(google::cloud::dataproc::v1::CreateSessionRequest const &)

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

virtual CreateSession(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::CreateSessionRequest const &)

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

virtual CreateSession(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Session > >

virtual GetSession(google::cloud::dataproc::v1::GetSessionRequest const &)

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

virtual ListSessions(google::cloud::dataproc::v1::ListSessionsRequest)

Parameter
Name Description
request google::cloud::dataproc::v1::ListSessionsRequest
Returns
Type Description
StreamRange< google::cloud::dataproc::v1::Session >

virtual TerminateSession(google::cloud::dataproc::v1::TerminateSessionRequest const &)

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

virtual TerminateSession(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::TerminateSessionRequest const &)

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

virtual TerminateSession(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Session > >

virtual DeleteSession(google::cloud::dataproc::v1::DeleteSessionRequest const &)

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

virtual DeleteSession(ExperimentalTag, NoAwaitTag, google::cloud::dataproc::v1::DeleteSessionRequest const &)

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

virtual DeleteSession(ExperimentalTag, google::longrunning::Operation const &)

Parameters
Name Description
ExperimentalTag
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::dataproc::v1::Session > >