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 webpage provides documentation for the Google Cloud GKE Hub C++ client library, with a focus on version 2.12.0, but also including links to older versions and the latest release candidate.\u003c/p\u003e\n"],["\u003cp\u003eThe GKE Hub service manages the registration of multiple Kubernetes clusters to Google Cloud and supports multi-cluster feature management, with the \u003ccode\u003eGkeHubClient\u003c/code\u003e being the main entrypoint.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the use of \u003ccode\u003eGkeHubConnection\u003c/code\u003e, which is required to be passed to the \u003ccode\u003eGkeHubClient\u003c/code\u003e constructor and the function to create it \u003ccode\u003eMakeGkeHubConnection\u003c/code\u003e using various options to configure the connection.\u003c/p\u003e\n"],["\u003cp\u003eThere are several classes, structs, functions and type aliases that can be found here related to the library, such as \u003ccode\u003eGkeHubBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eMakeDefaultGkeHubConnectionIdempotencyPolicy\u003c/code\u003e, and \u003ccode\u003eGkeHubRetryPolicy\u003c/code\u003e, which allow users to set up the GKE Hub client behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate is version 2.37.0-rc, and the content of the documentation covers all versions from 2.11.0 to 2.37.0-rc, that can be accessed via links.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::gkehub_v1 (2.12.0)\n\nVersion 2.12.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.12.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.12.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection)\n\nThe [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.12.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) object for [`GkeHubClient`](/cpp/docs/reference/gkehub/2.12.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient).\n\n### [GkeHubConnectionIdempotencyPolicy](/cpp/docs/reference/gkehub/2.12.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnectionIdempotencyPolicy)\n\nStructs\n-------\n\n### [GkeHubBackoffPolicyOption](/cpp/docs/reference/gkehub/2.12.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.12.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.12.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.12.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.12.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.12.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.12.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`](/cpp/docs/reference/gkehub/2.12.0/namespacegoogle_1_1cloud_1_1gkehub__v1)\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()\n\nType Aliases\n------------\n\n### GkeHubRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::TraitBasedRetryPolicy\u003c gkehub_v1_internal::GkeHubRetryTraits \u003e` \n\n### GkeHubLimitedTimeRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedTimeRetryPolicy\u003c gkehub_v1_internal::GkeHubRetryTraits \u003e` \n\n### GkeHubLimitedErrorCountRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedErrorCountRetryPolicy\u003c gkehub_v1_internal::GkeHubRetryTraits \u003e` \n\n### GkeHubPolicyOptionList\n\n**Alias Of** : `OptionList\u003c GkeHubRetryPolicyOption, GkeHubBackoffPolicyOption, GkeHubPollingPolicyOption, GkeHubConnectionIdempotencyPolicyOption \u003e` \nThe options applicable to GkeHub."]]