Class NotebookServiceConnection (2.29.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
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 CreateInstance(NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::CreateInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UpdateInstance(NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::UpdateInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteInstance(NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::DeleteInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 StartInstance(NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::StartInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual StartInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 StopInstance(NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::StopInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual StopInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ResetInstance(NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::ResetInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ResetInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UpgradeInstance(NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::UpgradeInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpgradeInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 RollbackInstance(NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::RollbackInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RollbackInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 > >

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

Parameters
Name Description
NoAwaitTag
request google::cloud::notebooks::v2::DiagnoseInstanceRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DiagnoseInstance(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::notebooks::v2::Instance > >