Class ManagedNotebookServiceConnection (2.24.0)

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

To create a concrete instance, see MakeManagedNotebookServiceConnection().

For mocking, see notebooks_v1_mocks::MockManagedNotebookServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListRuntimes(google::cloud::notebooks::v1::ListRuntimesRequest)

Parameter
Name Description
request google::cloud::notebooks::v1::ListRuntimesRequest
Returns
Type Description
StreamRange< google::cloud::notebooks::v1::Runtime >

virtual GetRuntime(google::cloud::notebooks::v1::GetRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::GetRuntimeRequest const &
Returns
Type Description
StatusOr< google::cloud::notebooks::v1::Runtime >

virtual CreateRuntime(google::cloud::notebooks::v1::CreateRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::CreateRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual UpdateRuntime(google::cloud::notebooks::v1::UpdateRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::UpdateRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual DeleteRuntime(google::cloud::notebooks::v1::DeleteRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::DeleteRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::OperationMetadata > >

virtual StartRuntime(google::cloud::notebooks::v1::StartRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::StartRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual StopRuntime(google::cloud::notebooks::v1::StopRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::StopRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual SwitchRuntime(google::cloud::notebooks::v1::SwitchRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::SwitchRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual ResetRuntime(google::cloud::notebooks::v1::ResetRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::ResetRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual UpgradeRuntime(google::cloud::notebooks::v1::UpgradeRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::UpgradeRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual ReportRuntimeEvent(google::cloud::notebooks::v1::ReportRuntimeEventRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::ReportRuntimeEventRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >

virtual RefreshRuntimeTokenInternal(google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const &
Returns
Type Description
StatusOr< google::cloud::notebooks::v1::RefreshRuntimeTokenInternalResponse >

virtual DiagnoseRuntime(google::cloud::notebooks::v1::DiagnoseRuntimeRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v1::DiagnoseRuntimeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v1::Runtime > >