The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of DeviceManagerClient.
The optional options argument may be used to configure aspects of the returned DeviceManagerConnection. 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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for version 2.12.0 of the Google Cloud IoT C++ client library, including links to other available versions.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the \u003ccode\u003eDeviceManagerClient\u003c/code\u003e and \u003ccode\u003eDeviceManagerConnection\u003c/code\u003e classes, which are central to interacting with the Internet of Things (IoT) service.\u003c/p\u003e\n"],["\u003cp\u003eSeveral structs are available for configuring retry and backoff policies, including \u003ccode\u003eDeviceManagerBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eDeviceManagerConnectionIdempotencyPolicyOption\u003c/code\u003e, and \u003ccode\u003eDeviceManagerRetryPolicyOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeDeviceManagerConnection\u003c/code\u003e function creates a \u003ccode\u003eDeviceManagerConnection\u003c/code\u003e object, which should be used indirectly through the \u003ccode\u003eDeviceManagerClient\u003c/code\u003e, and takes optional arguments to configure the object's behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also provides type aliases like \u003ccode\u003eDeviceManagerRetryPolicy\u003c/code\u003e, \u003ccode\u003eDeviceManagerLimitedTimeRetryPolicy\u003c/code\u003e, \u003ccode\u003eDeviceManagerLimitedErrorCountRetryPolicy\u003c/code\u003e, and \u003ccode\u003eDeviceManagerPolicyOptionList\u003c/code\u003e, allowing for easier customization of the IoT service interaction.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::iot_v1 (2.12.0)\n\nVersion 2.12.0keyboard_arrow_down\n\n- [2.15.0-rc (latest)](/cpp/docs/reference/iot/latest/namespacegoogle_1_1cloud_1_1iot__v1)\n- [2.14.0](/cpp/docs/reference/iot/2.14.0/namespacegoogle_1_1cloud_1_1iot__v1)\n- [2.13.0](/cpp/docs/reference/iot/2.13.0/namespacegoogle_1_1cloud_1_1iot__v1)\n- [2.12.0](/cpp/docs/reference/iot/2.12.0/namespacegoogle_1_1cloud_1_1iot__v1)\n- [2.11.0](/cpp/docs/reference/iot/2.11.0/namespacegoogle_1_1cloud_1_1iot__v1) \n\nClasses\n-------\n\n### [DeviceManagerClient](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerClient)\n\nInternet of Things (IoT) service.\n\n### [DeviceManagerConnection](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerConnection)\n\nThe [`DeviceManagerConnection`](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerConnection) object for [`DeviceManagerClient`](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerClient).\n\n### [DeviceManagerConnectionIdempotencyPolicy](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerConnectionIdempotencyPolicy)\n\nStructs\n-------\n\n### [DeviceManagerBackoffPolicyOption](/cpp/docs/reference/iot/2.12.0/structgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerBackoffPolicyOption)\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### [DeviceManagerConnectionIdempotencyPolicyOption](/cpp/docs/reference/iot/2.12.0/structgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerConnectionIdempotencyPolicyOption)\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### [DeviceManagerRetryPolicyOption](/cpp/docs/reference/iot/2.12.0/structgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerRetryPolicyOption)\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### MakeDeviceManagerConnection(Options)\n\nA factory function to construct an object of type [`DeviceManagerConnection`](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [DeviceManagerClient](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`DeviceManagerConnection`](/cpp/docs/reference/iot/2.12.0/classgoogle_1_1cloud_1_1iot__v1_1_1DeviceManagerConnection). 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::iot_v1::DeviceManagerPolicyOptionList`](/cpp/docs/reference/iot/2.12.0/namespacegoogle_1_1cloud_1_1iot__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### MakeDefaultDeviceManagerConnectionIdempotencyPolicy()\n\nType Aliases\n------------\n\n### DeviceManagerRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::TraitBasedRetryPolicy\u003c iot_v1_internal::DeviceManagerRetryTraits \u003e` \n\n### DeviceManagerLimitedTimeRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedTimeRetryPolicy\u003c iot_v1_internal::DeviceManagerRetryTraits \u003e` \n\n### DeviceManagerLimitedErrorCountRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedErrorCountRetryPolicy\u003c iot_v1_internal::DeviceManagerRetryTraits \u003e` \n\n### DeviceManagerPolicyOptionList\n\n**Alias Of** : `OptionList\u003c DeviceManagerRetryPolicyOption, DeviceManagerBackoffPolicyOption, DeviceManagerConnectionIdempotencyPolicyOption \u003e` \nThe options applicable to DeviceManager."]]