The GKE Hub service handles the registration of many Kubernetes clusters to Google Cloud, and the management of multi-cluster features over those clusters.
A factory function to construct an object of typeGkeHubConnection.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor ofGkeHubClient.
The optionaloptionsargument may be used to configure aspects of the returnedGkeHubConnection. 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-09-04 UTC."],[[["\u003cp\u003eThis document provides comprehensive C++ reference documentation for the GKE Hub service, covering versions from 2.11.0 up to the latest release candidate, 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe GKE Hub service is designed to manage the registration of Kubernetes clusters to Google Cloud and oversee multi-cluster features across them.\u003c/p\u003e\n"],["\u003cp\u003eKey classes documented include \u003ccode\u003eGkeHubClient\u003c/code\u003e, \u003ccode\u003eGkeHubConnection\u003c/code\u003e, and various retry and policy-related classes like \u003ccode\u003eGkeHubRetryPolicy\u003c/code\u003e and \u003ccode\u003eGkeHubConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document details a \u003ccode\u003eMakeGkeHubConnection\u003c/code\u003e function, which is used to construct a \u003ccode\u003eGkeHubConnection\u003c/code\u003e object that is configurable via options like \u003ccode\u003eCommonOptionList\u003c/code\u003e, \u003ccode\u003eGrpcOptionList\u003c/code\u003e, \u003ccode\u003eUnifiedCredentialsOptionList\u003c/code\u003e, and \u003ccode\u003eGkeHubPolicyOptionList\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eMakeDefaultGkeHubConnectionIdempotencyPolicy()\u003c/code\u003e function is also present, allowing the creation of the default \u003ccode\u003eGkeHubConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::gkehub_v1 (2.23.0)\n\nVersion 2.23.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/gkehub/latest/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.41.0](/cpp/docs/reference/gkehub/2.41.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.40.0](/cpp/docs/reference/gkehub/2.40.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.39.0](/cpp/docs/reference/gkehub/2.39.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.38.0](/cpp/docs/reference/gkehub/2.38.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.37.0](/cpp/docs/reference/gkehub/2.37.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.36.0](/cpp/docs/reference/gkehub/2.36.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.35.0](/cpp/docs/reference/gkehub/2.35.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.34.0](/cpp/docs/reference/gkehub/2.34.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.33.0](/cpp/docs/reference/gkehub/2.33.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.32.0](/cpp/docs/reference/gkehub/2.32.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.31.0](/cpp/docs/reference/gkehub/2.31.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.30.0](/cpp/docs/reference/gkehub/2.30.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.29.0](/cpp/docs/reference/gkehub/2.29.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.28.0](/cpp/docs/reference/gkehub/2.28.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.27.0](/cpp/docs/reference/gkehub/2.27.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.26.0](/cpp/docs/reference/gkehub/2.26.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.25.1](/cpp/docs/reference/gkehub/2.25.1/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.24.0](/cpp/docs/reference/gkehub/2.24.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.23.0](/cpp/docs/reference/gkehub/2.23.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.22.1](/cpp/docs/reference/gkehub/2.22.1/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.21.0](/cpp/docs/reference/gkehub/2.21.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.20.0](/cpp/docs/reference/gkehub/2.20.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.19.0](/cpp/docs/reference/gkehub/2.19.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.18.0](/cpp/docs/reference/gkehub/2.18.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.17.0](/cpp/docs/reference/gkehub/2.17.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.16.0](/cpp/docs/reference/gkehub/2.16.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.15.1](/cpp/docs/reference/gkehub/2.15.1/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.14.0](/cpp/docs/reference/gkehub/2.14.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.13.0](/cpp/docs/reference/gkehub/2.13.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.12.0](/cpp/docs/reference/gkehub/2.12.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\n- [2.11.0](/cpp/docs/reference/gkehub/2.11.0/namespacegoogle_1_1cloud_1_1gkehub__v1) \n\nClasses\n-------\n\n### [GkeHubClient](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient)\n\nThe GKE Hub service handles the registration of many Kubernetes clusters to Google Cloud, and the management of multi-cluster features over those clusters.\n\n### [GkeHubConnection](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection)\n\nThe [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) object for [`GkeHubClient`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient).\n\n### [GkeHubConnectionIdempotencyPolicy](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnectionIdempotencyPolicy)\n\n### [GkeHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on counting errors.\n\n### [GkeHubLimitedTimeRetryPolicy](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedTimeRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on elapsed time.\n\n### [GkeHubRetryPolicy](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubRetryPolicy)\n\nThe retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection).\n\nStructs\n-------\n\n### [GkeHubBackoffPolicyOption](/cpp/docs/reference/gkehub/2.23.0/structgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubBackoffPolicyOption)\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### [GkeHubConnectionIdempotencyPolicyOption](/cpp/docs/reference/gkehub/2.23.0/structgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnectionIdempotencyPolicyOption)\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### [GkeHubPollingPolicyOption](/cpp/docs/reference/gkehub/2.23.0/structgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubPollingPolicyOption)\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### [GkeHubRetryPolicyOption](/cpp/docs/reference/gkehub/2.23.0/structgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubRetryPolicyOption)\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### MakeGkeHubConnection(Options)\n\nA factory function to construct an object of type [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [GkeHubClient](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.23.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](about:invalid#zCSafez)\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::gkehub_v1::GkeHubPolicyOptionList`](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### MakeDefaultGkeHubConnectionIdempotencyPolicy()"]]