Class NotebookServiceConnection (2.16.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::notebooks::v2::ListInstancesRequest
Returns
TypeDescription
StreamRange< google::cloud::notebooks::v2::Instance >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::GetInstanceRequest const &
Returns
TypeDescription
StatusOr< google::cloud::notebooks::v2::Instance >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::CreateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::UpdateInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::DeleteInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::StartInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::StopInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::ResetInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const &
Returns
TypeDescription
StatusOr< google::cloud::notebooks::v2::CheckInstanceUpgradabilityResponse >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::UpgradeInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::RollbackInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >

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

Parameter
NameDescription
request google::cloud::notebooks::v2::DiagnoseInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::notebooks::v2::Instance > >