Class ManagedNotebookServiceConnection (2.31.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 CreateRuntime(NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const &)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status