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 page provides documentation for the Google Cloud GKE Hub C++ client library, specifically focusing on version 2.17.0, while also listing links to many prior versions.\u003c/p\u003e\n"],["\u003cp\u003eThe GKE Hub service facilitates the registration and management of multiple Kubernetes clusters within Google Cloud, enabling multi-cluster features.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details the \u003ccode\u003eGkeHubClient\u003c/code\u003e class for interacting with the GKE Hub service, along with its related classes for managing connections and retry policies, such as \u003ccode\u003eGkeHubConnection\u003c/code\u003e and \u003ccode\u003eGkeHubRetryPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSeveral structs are documented, allowing options to be configured for the backoff policy, connection idempotency policy, long-running operation polling policy, and the retry policy, which are all used via \u003ccode\u003egoogle::cloud::Options\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA function \u003ccode\u003eMakeGkeHubConnection\u003c/code\u003e is available to create a \u003ccode\u003eGkeHubConnection\u003c/code\u003e object, and a \u003ccode\u003eMakeDefaultGkeHubConnectionIdempotencyPolicy()\u003c/code\u003e function provides a default option, with a \u003ccode\u003eGkeHubPolicyOptionList\u003c/code\u003e alias that groups the applicable options for the GKE Hub.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::gkehub_v1 (2.17.0)\n\nVersion 2.17.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.17.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.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection)\n\nThe [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) object for [`GkeHubClient`](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient).\n\n### [GkeHubConnectionIdempotencyPolicy](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnectionIdempotencyPolicy)\n\n### [GkeHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on counting errors.\n\n### [GkeHubLimitedTimeRetryPolicy](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedTimeRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on elapsed time.\n\n### [GkeHubRetryPolicy](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubRetryPolicy)\n\nThe retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.17.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection).\n\nStructs\n-------\n\n### [GkeHubBackoffPolicyOption](/cpp/docs/reference/gkehub/2.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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### GkeHubPolicyOptionList\n\n**Alias Of** : `OptionList\u003c GkeHubRetryPolicyOption, GkeHubBackoffPolicyOption, GkeHubPollingPolicyOption, GkeHubConnectionIdempotencyPolicyOption \u003e` \nThe options applicable to GkeHub."]]