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 documentation covers various versions of the App Hub API, with version 2.37.0-rc being the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe AppHubClient class manages App Hub resources, while AppHubConnection provides the object for AppHubClient.\u003c/p\u003e\n"],["\u003cp\u003eSeveral retry policies, such as AppHubLimitedErrorCountRetryPolicy, and AppHubLimitedTimeRetryPolicy, can be implemented for the AppHubConnection.\u003c/p\u003e\n"],["\u003cp\u003eStructs like AppHubBackoffPolicyOption and AppHubRetryPolicyOption allow configuration of policies using google::cloud::Options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeAppHubConnection\u003c/code\u003e function creates an \u003ccode\u003eAppHubConnection\u003c/code\u003e object, which should be used as an argument for \u003ccode\u003eAppHubClient\u003c/code\u003e's constructor.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::apphub_v1 (2.42.0-rc)\n\nVersion latestkeyboard_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/latest/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/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection)\n\nThe [`AppHubConnection`](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) object for [`AppHubClient`](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\n### [AppHubConnectionIdempotencyPolicy](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicy)\n\n### [AppHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on counting errors.\n\n### [AppHubLimitedTimeRetryPolicy](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedTimeRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on elapsed time.\n\n### [AppHubRetryPolicy](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicy)\n\nThe retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/latest/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection).\n\nStructs\n-------\n\n### [AppHubBackoffPolicyOption](/cpp/docs/reference/apphub/latest/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/latest/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/latest/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/latest/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/latest/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/latest/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/latest/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`](about:invalid#zCSafez)\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()"]]