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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document details the \u003ccode\u003eManagedNotebookServiceConnection\u003c/code\u003e class, which provides an interface for interacting with the \u003ccode\u003eManagedNotebookServiceClient\u003c/code\u003e in Google Cloud Notebooks.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eManagedNotebookServiceConnection\u003c/code\u003e allows for the injection of custom behavior in testing environments, such as with a Google Mock object.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is 2.37.0-rc, and there are many previous versions of the connection available, ranging down to version 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eManagedNotebookServiceConnection\u003c/code\u003e class provides a series of virtual methods for various operations, including managing runtimes, such as creating, deleting, starting, stopping, and updating them, as well as other functions such as listing operations and getting policy information.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create a \u003ccode\u003eManagedNotebookServiceConnection\u003c/code\u003e instance using the \u003ccode\u003eMakeManagedNotebookServiceConnection()\u003c/code\u003e function, or they can utilize the \u003ccode\u003enotebooks_v1_mocks::MockManagedNotebookServiceConnection\u003c/code\u003e for mocking.\u003c/p\u003e\n"]]],[],null,["# Class ManagedNotebookServiceConnection (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.41.0](/cpp/docs/reference/notebooks/2.41.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.40.0](/cpp/docs/reference/notebooks/2.40.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.39.0](/cpp/docs/reference/notebooks/2.39.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.38.0](/cpp/docs/reference/notebooks/2.38.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.37.0](/cpp/docs/reference/notebooks/2.37.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.36.0](/cpp/docs/reference/notebooks/2.36.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.35.0](/cpp/docs/reference/notebooks/2.35.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.34.0](/cpp/docs/reference/notebooks/2.34.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.33.0](/cpp/docs/reference/notebooks/2.33.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.32.0](/cpp/docs/reference/notebooks/2.32.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.31.0](/cpp/docs/reference/notebooks/2.31.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.30.0](/cpp/docs/reference/notebooks/2.30.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.29.0](/cpp/docs/reference/notebooks/2.29.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.28.0](/cpp/docs/reference/notebooks/2.28.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.27.0](/cpp/docs/reference/notebooks/2.27.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.26.0](/cpp/docs/reference/notebooks/2.26.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.25.1](/cpp/docs/reference/notebooks/2.25.1/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.24.0](/cpp/docs/reference/notebooks/2.24.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.23.0](/cpp/docs/reference/notebooks/2.23.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.22.1](/cpp/docs/reference/notebooks/2.22.1/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.21.0](/cpp/docs/reference/notebooks/2.21.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.20.0](/cpp/docs/reference/notebooks/2.20.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.19.0](/cpp/docs/reference/notebooks/2.19.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.18.0](/cpp/docs/reference/notebooks/2.18.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.17.0](/cpp/docs/reference/notebooks/2.17.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.16.0](/cpp/docs/reference/notebooks/2.16.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.15.1](/cpp/docs/reference/notebooks/2.15.1/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.14.0](/cpp/docs/reference/notebooks/2.14.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.13.0](/cpp/docs/reference/notebooks/2.13.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.12.0](/cpp/docs/reference/notebooks/2.12.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection)\n- [2.11.0](/cpp/docs/reference/notebooks/2.11.0/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection) \nThe [`ManagedNotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceConnection) object for [`ManagedNotebookServiceClient`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceClient). \nThis interface defines virtual methods for each of the user-facing overload sets in [`ManagedNotebookServiceClient`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceClient). This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type [`ManagedNotebookServiceClient`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v1_1_1ManagedNotebookServiceClient).\n\nTo create a concrete instance, see [`MakeManagedNotebookServiceConnection()`](/cpp/docs/reference/notebooks/latest/namespacegoogle_1_1cloud_1_1notebooks__v1).\n\nFor mocking, see [`notebooks_v1_mocks::MockManagedNotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v1__mocks_1_1MockManagedNotebookServiceConnection).\n\nFunctions\n---------\n\n### virtual options()\n\n### virtual ListRuntimes(google::cloud::notebooks::v1::ListRuntimesRequest)\n\n### virtual GetRuntime(google::cloud::notebooks::v1::GetRuntimeRequest const \\&)\n\n### virtual CreateRuntime(google::cloud::notebooks::v1::CreateRuntimeRequest const \\&)\n\n### virtual CreateRuntime(NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const \\&)\n\n### virtual CreateRuntime(google::longrunning::Operation const \\&)\n\n### virtual UpdateRuntime(google::cloud::notebooks::v1::UpdateRuntimeRequest const \\&)\n\n### virtual UpdateRuntime(NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const \\&)\n\n### virtual UpdateRuntime(google::longrunning::Operation const \\&)\n\n### virtual DeleteRuntime(google::cloud::notebooks::v1::DeleteRuntimeRequest const \\&)\n\n### virtual DeleteRuntime(NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const \\&)\n\n### virtual DeleteRuntime(google::longrunning::Operation const \\&)\n\n### virtual StartRuntime(google::cloud::notebooks::v1::StartRuntimeRequest const \\&)\n\n### virtual StartRuntime(NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const \\&)\n\n### virtual StartRuntime(google::longrunning::Operation const \\&)\n\n### virtual StopRuntime(google::cloud::notebooks::v1::StopRuntimeRequest const \\&)\n\n### virtual StopRuntime(NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const \\&)\n\n### virtual StopRuntime(google::longrunning::Operation const \\&)\n\n### virtual SwitchRuntime(google::cloud::notebooks::v1::SwitchRuntimeRequest const \\&)\n\n### virtual SwitchRuntime(NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const \\&)\n\n### virtual SwitchRuntime(google::longrunning::Operation const \\&)\n\n### virtual ResetRuntime(google::cloud::notebooks::v1::ResetRuntimeRequest const \\&)\n\n### virtual ResetRuntime(NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const \\&)\n\n### virtual ResetRuntime(google::longrunning::Operation const \\&)\n\n### virtual UpgradeRuntime(google::cloud::notebooks::v1::UpgradeRuntimeRequest const \\&)\n\n### virtual UpgradeRuntime(NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const \\&)\n\n### virtual UpgradeRuntime(google::longrunning::Operation const \\&)\n\n### virtual ReportRuntimeEvent(google::cloud::notebooks::v1::ReportRuntimeEventRequest const \\&)\n\n### virtual ReportRuntimeEvent(NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const \\&)\n\n### virtual ReportRuntimeEvent(google::longrunning::Operation const \\&)\n\n### virtual RefreshRuntimeTokenInternal(google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const \\&)\n\n### virtual DiagnoseRuntime(google::cloud::notebooks::v1::DiagnoseRuntimeRequest const \\&)\n\n### virtual DiagnoseRuntime(NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const \\&)\n\n### virtual DiagnoseRuntime(google::longrunning::Operation const \\&)\n\n### virtual ListLocations(google::cloud::location::ListLocationsRequest)\n\n### virtual GetLocation(google::cloud::location::GetLocationRequest const \\&)\n\n### virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const \\&)\n\n### virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const \\&)\n\n### virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const \\&)\n\n### virtual ListOperations(google::longrunning::ListOperationsRequest)\n\n### virtual GetOperation(google::longrunning::GetOperationRequest const \\&)\n\n### virtual DeleteOperation(google::longrunning::DeleteOperationRequest const \\&)\n\n### virtual CancelOperation(google::longrunning::CancelOperationRequest const \\&)"]]