Class NotebookServiceConnection (2.18.0)

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

To create a concrete instance, see MakeNotebookServiceConnection().

For mocking, see notebooks_v2_mocks::MockNotebookServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListInstances(google::cloud::notebooks::v2::ListInstancesRequest)

Parameter
Name Description
request google::cloud::notebooks::v2::ListInstancesRequest
Returns
Type Description
StreamRange< google::cloud::notebooks::v2::Instance >

virtual GetInstance(google::cloud::notebooks::v2::GetInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::GetInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::notebooks::v2::Instance >

virtual CreateInstance(google::cloud::notebooks::v2::CreateInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::CreateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual UpdateInstance(google::cloud::notebooks::v2::UpdateInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::UpdateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual DeleteInstance(google::cloud::notebooks::v2::DeleteInstanceRequest const &)

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

virtual StartInstance(google::cloud::notebooks::v2::StartInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::StartInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual StopInstance(google::cloud::notebooks::v2::StopInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::StopInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual ResetInstance(google::cloud::notebooks::v2::ResetInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::ResetInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual CheckInstanceUpgradability(google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const &
Returns
Type Description
StatusOr< google::cloud::notebooks::v2::CheckInstanceUpgradabilityResponse >

virtual UpgradeInstance(google::cloud::notebooks::v2::UpgradeInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::UpgradeInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual RollbackInstance(google::cloud::notebooks::v2::RollbackInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::RollbackInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >

virtual DiagnoseInstance(google::cloud::notebooks::v2::DiagnoseInstanceRequest const &)

Parameter
Name Description
request google::cloud::notebooks::v2::DiagnoseInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >