The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of WorkstationsClient.
The optional options argument may be used to configure aspects of the returned WorkstationsConnection. 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-08-14 UTC."],[[["\u003cp\u003eThis document provides comprehensive reference information for Google Cloud Workstations C++ client library, with version 2.37.0-rc as the latest release, and 26 other older versions available.\u003c/p\u003e\n"],["\u003cp\u003eThe core classes for interacting with Cloud Workstations include \u003ccode\u003eWorkstationsClient\u003c/code\u003e for service interaction and \u003ccode\u003eWorkstationsConnection\u003c/code\u003e to manage the underlying connection.\u003c/p\u003e\n"],["\u003cp\u003eThere are various classes available in order to customize the connections, including the likes of \u003ccode\u003eWorkstationsRetryPolicy\u003c/code\u003e, \u003ccode\u003eWorkstationsLimitedTimeRetryPolicy\u003c/code\u003e, and \u003ccode\u003eWorkstationsLimitedErrorCountRetryPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis document also describes helper functions such as \u003ccode\u003eMakeWorkstationsConnection\u003c/code\u003e to create a connection object, and \u003ccode\u003eMakeDefaultWorkstationsConnectionIdempotencyPolicy\u003c/code\u003e to create a default idempotency policy.\u003c/p\u003e\n"],["\u003cp\u003eStructs like \u003ccode\u003eWorkstationsBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eWorkstationsConnectionIdempotencyPolicyOption\u003c/code\u003e, \u003ccode\u003eWorkstationsPollingPolicyOption\u003c/code\u003e and \u003ccode\u003eWorkstationsRetryPolicyOption\u003c/code\u003e are available for custom configurations.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::workstations_v1 (2.42.0-rc)\n\nVersion latestkeyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/workstations/latest/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.41.0](/cpp/docs/reference/workstations/2.41.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.40.0](/cpp/docs/reference/workstations/2.40.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.39.0](/cpp/docs/reference/workstations/2.39.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.38.0](/cpp/docs/reference/workstations/2.38.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.37.0](/cpp/docs/reference/workstations/2.37.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.36.0](/cpp/docs/reference/workstations/2.36.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.35.0](/cpp/docs/reference/workstations/2.35.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.34.0](/cpp/docs/reference/workstations/2.34.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.33.0](/cpp/docs/reference/workstations/2.33.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.32.0](/cpp/docs/reference/workstations/2.32.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.31.0](/cpp/docs/reference/workstations/2.31.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.30.0](/cpp/docs/reference/workstations/2.30.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.29.0](/cpp/docs/reference/workstations/2.29.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.28.0](/cpp/docs/reference/workstations/2.28.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.27.0](/cpp/docs/reference/workstations/2.27.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.26.0](/cpp/docs/reference/workstations/2.26.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.25.1](/cpp/docs/reference/workstations/2.25.1/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.24.0](/cpp/docs/reference/workstations/2.24.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.23.0](/cpp/docs/reference/workstations/2.23.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.22.1](/cpp/docs/reference/workstations/2.22.1/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.21.0](/cpp/docs/reference/workstations/2.21.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.20.0](/cpp/docs/reference/workstations/2.20.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.19.0](/cpp/docs/reference/workstations/2.19.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.18.0](/cpp/docs/reference/workstations/2.18.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.17.0](/cpp/docs/reference/workstations/2.17.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.16.0](/cpp/docs/reference/workstations/2.16.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.15.1](/cpp/docs/reference/workstations/2.15.1/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.14.0](/cpp/docs/reference/workstations/2.14.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.13.0](/cpp/docs/reference/workstations/2.13.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.12.0](/cpp/docs/reference/workstations/2.12.0/namespacegoogle_1_1cloud_1_1workstations__v1)\n- [2.11.0](/cpp/docs/reference/workstations/2.11.0/namespacegoogle_1_1cloud_1_1workstations__v1) \n\nClasses\n-------\n\n### [WorkstationsClient](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsClient)\n\nService for interacting with Cloud Workstations.\n\n### [WorkstationsConnection](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection)\n\nThe [`WorkstationsConnection`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection) object for [`WorkstationsClient`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsClient).\n\n### [WorkstationsConnectionIdempotencyPolicy](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnectionIdempotencyPolicy)\n\n### [WorkstationsLimitedErrorCountRetryPolicy](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsLimitedErrorCountRetryPolicy)\n\nA retry policy for [`WorkstationsConnection`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection) based on counting errors.\n\n### [WorkstationsLimitedTimeRetryPolicy](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsLimitedTimeRetryPolicy)\n\nA retry policy for [`WorkstationsConnection`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection) based on elapsed time.\n\n### [WorkstationsRetryPolicy](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsRetryPolicy)\n\nThe retry policy for [`WorkstationsConnection`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection).\n\nStructs\n-------\n\n### [WorkstationsBackoffPolicyOption](/cpp/docs/reference/workstations/latest/structgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsBackoffPolicyOption)\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### [WorkstationsConnectionIdempotencyPolicyOption](/cpp/docs/reference/workstations/latest/structgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnectionIdempotencyPolicyOption)\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### [WorkstationsPollingPolicyOption](/cpp/docs/reference/workstations/latest/structgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsPollingPolicyOption)\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### [WorkstationsRetryPolicyOption](/cpp/docs/reference/workstations/latest/structgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsRetryPolicyOption)\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### MakeWorkstationsConnection(Options)\n\nA factory function to construct an object of type [`WorkstationsConnection`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [WorkstationsClient](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`WorkstationsConnection`](/cpp/docs/reference/workstations/latest/classgoogle_1_1cloud_1_1workstations__v1_1_1WorkstationsConnection). 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::workstations_v1::WorkstationsPolicyOptionList`](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### MakeDefaultWorkstationsConnectionIdempotencyPolicy()"]]