The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of NotebookServiceClient.
The optional options argument may be used to configure aspects of the returned NotebookServiceConnection. Expected options are any of the types in the following option lists:
[[["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-14 UTC."],[[["\u003cp\u003eThis document provides a comprehensive reference for Google Cloud Notebooks API v2 in C++.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 2.37.0-rc, with a detailed list of previous versions from 2.36.0 down to 2.11.0 accessible.\u003c/p\u003e\n"],["\u003cp\u003eKey classes documented include \u003ccode\u003eNotebookServiceClient\u003c/code\u003e, \u003ccode\u003eNotebookServiceConnection\u003c/code\u003e, and several classes for retry and policy management.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides functions, \u003ccode\u003eMakeNotebookServiceConnection\u003c/code\u003e, and \u003ccode\u003eMakeDefaultNotebookServiceConnectionIdempotencyPolicy\u003c/code\u003e, to establish a connection and manage connection policies.\u003c/p\u003e\n"],["\u003cp\u003eSeveral struct options are documented, such as \u003ccode\u003eNotebookServiceBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eNotebookServiceConnectionIdempotencyPolicyOption\u003c/code\u003e, \u003ccode\u003eNotebookServicePollingPolicyOption\u003c/code\u003e, and \u003ccode\u003eNotebookServiceRetryPolicyOption\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::notebooks_v2 (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/notebooks/latest/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.41.0](/cpp/docs/reference/notebooks/2.41.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.40.0](/cpp/docs/reference/notebooks/2.40.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.39.0](/cpp/docs/reference/notebooks/2.39.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.38.0](/cpp/docs/reference/notebooks/2.38.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.37.0](/cpp/docs/reference/notebooks/2.37.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.36.0](/cpp/docs/reference/notebooks/2.36.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.35.0](/cpp/docs/reference/notebooks/2.35.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.34.0](/cpp/docs/reference/notebooks/2.34.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.33.0](/cpp/docs/reference/notebooks/2.33.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.32.0](/cpp/docs/reference/notebooks/2.32.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.31.0](/cpp/docs/reference/notebooks/2.31.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.30.0](/cpp/docs/reference/notebooks/2.30.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.29.0](/cpp/docs/reference/notebooks/2.29.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.28.0](/cpp/docs/reference/notebooks/2.28.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.27.0](/cpp/docs/reference/notebooks/2.27.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.26.0](/cpp/docs/reference/notebooks/2.26.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.25.1](/cpp/docs/reference/notebooks/2.25.1/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.24.0](/cpp/docs/reference/notebooks/2.24.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.23.0](/cpp/docs/reference/notebooks/2.23.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.22.1](/cpp/docs/reference/notebooks/2.22.1/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.21.0](/cpp/docs/reference/notebooks/2.21.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.20.0](/cpp/docs/reference/notebooks/2.20.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.19.0](/cpp/docs/reference/notebooks/2.19.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.18.0](/cpp/docs/reference/notebooks/2.18.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.17.0](/cpp/docs/reference/notebooks/2.17.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.16.0](/cpp/docs/reference/notebooks/2.16.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.15.1](/cpp/docs/reference/notebooks/2.15.1/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.14.0](/cpp/docs/reference/notebooks/2.14.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.13.0](/cpp/docs/reference/notebooks/2.13.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.12.0](/cpp/docs/reference/notebooks/2.12.0/namespacegoogle_1_1cloud_1_1notebooks__v2)\n- [2.11.0](/cpp/docs/reference/notebooks/2.11.0/namespacegoogle_1_1cloud_1_1notebooks__v2) \n\nClasses\n-------\n\n### [NotebookServiceClient](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceClient)\n\nAPI v2 service for Workbench Notebooks Instances.\n\n### [NotebookServiceConnection](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection)\n\nThe [`NotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection) object for [`NotebookServiceClient`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceClient).\n\n### [NotebookServiceConnectionIdempotencyPolicy](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnectionIdempotencyPolicy)\n\n### [NotebookServiceLimitedErrorCountRetryPolicy](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceLimitedErrorCountRetryPolicy)\n\nA retry policy for [`NotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection) based on counting errors.\n\n### [NotebookServiceLimitedTimeRetryPolicy](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceLimitedTimeRetryPolicy)\n\nA retry policy for [`NotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection) based on elapsed time.\n\n### [NotebookServiceRetryPolicy](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceRetryPolicy)\n\nThe retry policy for [`NotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection).\n\nStructs\n-------\n\n### [NotebookServiceBackoffPolicyOption](/cpp/docs/reference/notebooks/latest/structgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceBackoffPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.\n\n### [NotebookServiceConnectionIdempotencyPolicyOption](/cpp/docs/reference/notebooks/latest/structgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnectionIdempotencyPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.\n\n### [NotebookServicePollingPolicyOption](/cpp/docs/reference/notebooks/latest/structgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServicePollingPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the long-running operations polling policy.\n\n### [NotebookServiceRetryPolicyOption](/cpp/docs/reference/notebooks/latest/structgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceRetryPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.\n\nFunctions\n---------\n\n### MakeNotebookServiceConnection(Options)\n\nA factory function to construct an object of type [`NotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [NotebookServiceClient](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`NotebookServiceConnection`](/cpp/docs/reference/notebooks/latest/classgoogle_1_1cloud_1_1notebooks__v2_1_1NotebookServiceConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::GrpcOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::UnifiedCredentialsOptionList`](about:invalid#zCSafez)\n- [`google::cloud::notebooks_v2::NotebookServicePolicyOptionList`](about:invalid#zCSafez)\n\n| **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.\n\n### MakeDefaultNotebookServiceConnectionIdempotencyPolicy()"]]