A factory function to construct an object of typeAppHubConnection.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor ofAppHubClient.
The optionaloptionsargument may be used to configure aspects of the returnedAppHubConnection. 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 App Hub API, specifically for version 2.31.0 of the C++ client library.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate is version 2.37.0-rc, and the page lists all available versions, ranging from 2.37.0-rc to 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details on various classes, such as \u003ccode\u003eAppHubClient\u003c/code\u003e and \u003ccode\u003eAppHubConnection\u003c/code\u003e, which are used to interact with the App Hub API.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage documents structs like \u003ccode\u003eAppHubBackoffPolicyOption\u003c/code\u003e and \u003ccode\u003eAppHubRetryPolicyOption\u003c/code\u003e, which are used for configuring different aspects of API interactions.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines functions like \u003ccode\u003eMakeAppHubConnection\u003c/code\u003e for creating an object of \u003ccode\u003eAppHubConnection\u003c/code\u003e and \u003ccode\u003eMakeDefaultAppHubConnectionIdempotencyPolicy\u003c/code\u003e for obtaining the default idempotency policy.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::apphub_v1 (2.31.0)\n\nVersion 2.31.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/apphub/latest/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.41.0](/cpp/docs/reference/apphub/2.41.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.40.0](/cpp/docs/reference/apphub/2.40.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.39.0](/cpp/docs/reference/apphub/2.39.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.38.0](/cpp/docs/reference/apphub/2.38.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.37.0](/cpp/docs/reference/apphub/2.37.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.36.0](/cpp/docs/reference/apphub/2.36.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.35.0](/cpp/docs/reference/apphub/2.35.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.34.0](/cpp/docs/reference/apphub/2.34.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.33.0](/cpp/docs/reference/apphub/2.33.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.32.0](/cpp/docs/reference/apphub/2.32.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.31.0](/cpp/docs/reference/apphub/2.31.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.30.0](/cpp/docs/reference/apphub/2.30.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.29.0](/cpp/docs/reference/apphub/2.29.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.28.0](/cpp/docs/reference/apphub/2.28.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.27.0](/cpp/docs/reference/apphub/2.27.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.26.0](/cpp/docs/reference/apphub/2.26.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.25.1](/cpp/docs/reference/apphub/2.25.1/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.24.0](/cpp/docs/reference/apphub/2.24.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.23.0](/cpp/docs/reference/apphub/2.23.0/namespacegoogle_1_1cloud_1_1apphub__v1) \n\nClasses\n-------\n\n### [AppHubClient](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient)\n\nThe App Hub API allows you to manage App Hub resources.\n\n### [AppHubConnection](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection)\n\nThe [`AppHubConnection`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) object for [`AppHubClient`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\n### [AppHubConnectionIdempotencyPolicy](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicy)\n\n### [AppHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on counting errors.\n\n### [AppHubLimitedTimeRetryPolicy](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedTimeRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on elapsed time.\n\n### [AppHubRetryPolicy](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicy)\n\nThe retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection).\n\nStructs\n-------\n\n### [AppHubBackoffPolicyOption](/cpp/docs/reference/apphub/2.31.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubBackoffPolicyOption)\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### [AppHubConnectionIdempotencyPolicyOption](/cpp/docs/reference/apphub/2.31.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicyOption)\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### [AppHubPollingPolicyOption](/cpp/docs/reference/apphub/2.31.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubPollingPolicyOption)\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### [AppHubRetryPolicyOption](/cpp/docs/reference/apphub/2.31.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicyOption)\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### MakeAppHubConnection(Options)\n\nA factory function to construct an object of type [`AppHubConnection`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [AppHubClient](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`AppHubConnection`](/cpp/docs/reference/apphub/2.31.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection). 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::apphub_v1::AppHubPolicyOptionList`](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### MakeDefaultAppHubConnectionIdempotencyPolicy()"]]