The returned connection object should not be used directly; instead it should be passed as an argument to the constructor ofOsConfigServiceClient.
The optionaloptionsargument may be used to configure aspects of the returnedOsConfigServiceConnection. 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 OS Config API C++ client library, with a focus on version 2.13.0.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version of the OS Config API is version 2.37.0-rc, with other documented versions including from 2.36.0 to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eKey classes documented include \u003ccode\u003eOsConfigServiceClient\u003c/code\u003e and \u003ccode\u003eOsConfigServiceConnection\u003c/code\u003e, which facilitate interaction with the OS Config API.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers structs like \u003ccode\u003eOsConfigServiceBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eOsConfigServiceConnectionIdempotencyPolicyOption\u003c/code\u003e, and \u003ccode\u003eOsConfigServiceRetryPolicyOption\u003c/code\u003e for configuring API interactions.\u003c/p\u003e\n"],["\u003cp\u003eType aliases are detailed, such as \u003ccode\u003eOsConfigServiceRetryPolicy\u003c/code\u003e, \u003ccode\u003eOsConfigServiceLimitedTimeRetryPolicy\u003c/code\u003e, \u003ccode\u003eOsConfigServiceLimitedErrorCountRetryPolicy\u003c/code\u003e, and \u003ccode\u003eOsConfigServicePolicyOptionList\u003c/code\u003e that simplify the usage of the OS Config API.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::osconfig_v1 (2.13.0)\n\nVersion 2.13.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/osconfig/latest/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.41.0](/cpp/docs/reference/osconfig/2.41.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.40.0](/cpp/docs/reference/osconfig/2.40.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.39.0](/cpp/docs/reference/osconfig/2.39.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.38.0](/cpp/docs/reference/osconfig/2.38.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.37.0](/cpp/docs/reference/osconfig/2.37.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.36.0](/cpp/docs/reference/osconfig/2.36.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.35.0](/cpp/docs/reference/osconfig/2.35.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.34.0](/cpp/docs/reference/osconfig/2.34.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.33.0](/cpp/docs/reference/osconfig/2.33.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.32.0](/cpp/docs/reference/osconfig/2.32.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.31.0](/cpp/docs/reference/osconfig/2.31.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.30.0](/cpp/docs/reference/osconfig/2.30.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.29.0](/cpp/docs/reference/osconfig/2.29.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.28.0](/cpp/docs/reference/osconfig/2.28.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.27.0](/cpp/docs/reference/osconfig/2.27.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.26.0](/cpp/docs/reference/osconfig/2.26.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.25.1](/cpp/docs/reference/osconfig/2.25.1/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.24.0](/cpp/docs/reference/osconfig/2.24.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.23.0](/cpp/docs/reference/osconfig/2.23.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.22.1](/cpp/docs/reference/osconfig/2.22.1/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.21.0](/cpp/docs/reference/osconfig/2.21.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.20.0](/cpp/docs/reference/osconfig/2.20.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.19.0](/cpp/docs/reference/osconfig/2.19.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.18.0](/cpp/docs/reference/osconfig/2.18.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.17.0](/cpp/docs/reference/osconfig/2.17.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.16.0](/cpp/docs/reference/osconfig/2.16.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.15.1](/cpp/docs/reference/osconfig/2.15.1/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.14.0](/cpp/docs/reference/osconfig/2.14.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.13.0](/cpp/docs/reference/osconfig/2.13.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.12.0](/cpp/docs/reference/osconfig/2.12.0/namespacegoogle_1_1cloud_1_1osconfig__v1)\n- [2.11.0](/cpp/docs/reference/osconfig/2.11.0/namespacegoogle_1_1cloud_1_1osconfig__v1) \n\nClasses\n-------\n\n### [OsConfigServiceClient](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceClient)\n\nOS Config API.\n\n### [OsConfigServiceConnection](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceConnection)\n\nThe [`OsConfigServiceConnection`](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceConnection) object for [`OsConfigServiceClient`](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceClient).\n\n### [OsConfigServiceConnectionIdempotencyPolicy](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceConnectionIdempotencyPolicy)\n\nStructs\n-------\n\n### [OsConfigServiceBackoffPolicyOption](/cpp/docs/reference/osconfig/2.13.0/structgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceBackoffPolicyOption)\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### [OsConfigServiceConnectionIdempotencyPolicyOption](/cpp/docs/reference/osconfig/2.13.0/structgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceConnectionIdempotencyPolicyOption)\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### [OsConfigServiceRetryPolicyOption](/cpp/docs/reference/osconfig/2.13.0/structgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceRetryPolicyOption)\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### MakeOsConfigServiceConnection(Options)\n\nA factory function to construct an object of type [`OsConfigServiceConnection`](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [OsConfigServiceClient](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`OsConfigServiceConnection`](/cpp/docs/reference/osconfig/2.13.0/classgoogle_1_1cloud_1_1osconfig__v1_1_1OsConfigServiceConnection). 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::osconfig_v1::OsConfigServicePolicyOptionList`](/cpp/docs/reference/osconfig/2.13.0/namespacegoogle_1_1cloud_1_1osconfig__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### MakeDefaultOsConfigServiceConnectionIdempotencyPolicy()\n\nType Aliases\n------------\n\n### OsConfigServiceRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::TraitBasedRetryPolicy\u003c osconfig_v1_internal::OsConfigServiceRetryTraits \u003e` \n\n### OsConfigServiceLimitedTimeRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedTimeRetryPolicy\u003c osconfig_v1_internal::OsConfigServiceRetryTraits \u003e` \n\n### OsConfigServiceLimitedErrorCountRetryPolicy\n\n**Alias Of** : `::google::cloud::internal::LimitedErrorCountRetryPolicy\u003c osconfig_v1_internal::OsConfigServiceRetryTraits \u003e` \n\n### OsConfigServicePolicyOptionList\n\n**Alias Of** : `OptionList\u003c OsConfigServiceRetryPolicyOption, OsConfigServiceBackoffPolicyOption, OsConfigServiceConnectionIdempotencyPolicyOption \u003e` \nThe options applicable to OsConfigService."]]