This interface defines virtual methods for each of the user-facing overload sets in ProjectsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ProjectsClient.
To create a concrete instance, see MakeProjectsConnection().
[[["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-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eProjectsConnection\u003c/code\u003e object, which is used for \u003ccode\u003eProjectsClient\u003c/code\u003e, defines the interface for interacting with various project-related operations.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to different versions of the \u003ccode\u003eProjectsConnection\u003c/code\u003e class, including the latest release candidate, \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and prior versions going back to version 2.15.1.\u003c/p\u003e\n"],["\u003cp\u003eUsers can utilize the \u003ccode\u003eProjectsConnection\u003c/code\u003e interface to implement custom behavior or mocking during testing with \u003ccode\u003eProjectsClient\u003c/code\u003e, allowing for greater flexibility.\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes a variety of functions for managing project settings, such as enabling and disabling XPN host and resource settings, getting project details, moving disks and instances, setting common metadata, network tier, and usage export bucket.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides details on parameters and returns for each of the virtual functions, such as \u003ccode\u003eDisableXpnHost\u003c/code\u003e, \u003ccode\u003eEnableXpnResource\u003c/code\u003e, \u003ccode\u003eGetProject\u003c/code\u003e and more, with most of the functions returning a future \u003ccode\u003eStatusOr< google::cloud::cpp::compute::v1::Operation >\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]