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 reference information for the Google Cloud GKE Hub C++ client library, focusing on version 2.34.0, while also listing links to other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version of the GKE Hub C++ client library is 2.37.0-rc, and the page includes a comprehensive list of versions from 2.37.0-rc down to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eKey classes detailed include \u003ccode\u003eGkeHubClient\u003c/code\u003e, which manages the registration and multi-cluster features of Kubernetes clusters to Google Cloud, and \u003ccode\u003eGkeHubConnection\u003c/code\u003e, which serves as the connection object for \u003ccode\u003eGkeHubClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe content outlines several structs related to retry and backoff policies, such as \u003ccode\u003eGkeHubBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eGkeHubRetryPolicyOption\u003c/code\u003e, and \u003ccode\u003eGkeHubConnectionIdempotencyPolicyOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMakeGkeHubConnection\u003c/code\u003e is a function highlighted, which constructs a \u003ccode\u003eGkeHubConnection\u003c/code\u003e object and details the options used to configure it, which include Common, gRPC, Unified Credentials, and GKE Hub Policy options.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::gkehub_v1 (2.34.0)\n\nVersion 2.34.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.34.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.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection)\n\nThe [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) object for [`GkeHubClient`](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubClient).\n\n### [GkeHubConnectionIdempotencyPolicy](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnectionIdempotencyPolicy)\n\n### [GkeHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on counting errors.\n\n### [GkeHubLimitedTimeRetryPolicy](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubLimitedTimeRetryPolicy)\n\nA retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection) based on elapsed time.\n\n### [GkeHubRetryPolicy](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubRetryPolicy)\n\nThe retry policy for [`GkeHubConnection`](/cpp/docs/reference/gkehub/2.34.0/classgoogle_1_1cloud_1_1gkehub__v1_1_1GkeHubConnection).\n\nStructs\n-------\n\n### [GkeHubBackoffPolicyOption](/cpp/docs/reference/gkehub/2.34.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.34.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.34.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.34.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.34.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.34.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.34.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()"]]