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\u003eThe latest release candidate version for GKE Hub is 2.37.0-rc, and the content provides documentation for versions spanning from 2.37.0-rc down to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe GKE Hub service facilitates the registration of multiple Kubernetes clusters to Google Cloud, and it manages multi-cluster features across these clusters.\u003c/p\u003e\n"],["\u003cp\u003eKey classes include \u003ccode\u003eGkeHubClient\u003c/code\u003e, for interacting with the service, \u003ccode\u003eGkeHubConnection\u003c/code\u003e, for establishing connections, and various retry policy classes like \u003ccode\u003eGkeHubLimitedErrorCountRetryPolicy\u003c/code\u003e and \u003ccode\u003eGkeHubLimitedTimeRetryPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe content includes structs such as \u003ccode\u003eGkeHubBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eGkeHubConnectionIdempotencyPolicyOption\u003c/code\u003e, \u003ccode\u003eGkeHubPollingPolicyOption\u003c/code\u003e, and \u003ccode\u003eGkeHubRetryPolicyOption\u003c/code\u003e, which are used with Google Cloud Options to configure connection behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eMakeGkeHubConnection(Options)\u003c/code\u003e creates a \u003ccode\u003eGkeHubConnection\u003c/code\u003e object, used by \u003ccode\u003eGkeHubClient\u003c/code\u003e, configurable with various option lists 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"]]],[],null,["# Namespace google::cloud::gkehub_v1 (2.26.0)\n\nVersion 2.26.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.26.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.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection)\n\nThe [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) object for [`GkeHubClient`](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient).\n\n### [GkeHubConnectionIdempotencyPolicy](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnectionIdempotencyPolicy)\n\n### [GkeHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on counting errors.\n\n### [GkeHubLimitedTimeRetryPolicy](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedTimeRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on elapsed time.\n\n### [GkeHubRetryPolicy](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubRetryPolicy)\n\nThe retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.26.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection).\n\nStructs\n-------\n\n### [GkeHubBackoffPolicyOption](/cpp/docs/reference/gkehub/2.26.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.26.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.26.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.26.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.26.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.26.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.26.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`](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`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\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()"]]