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"]],[["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-03-15 UTC."],[[["This webpage details the `ProjectsConnection` interface for the `ProjectsClient` in the Google Cloud C++ Compute library, allowing users to inject custom behavior for testing."],["The content provides links to documentation for multiple versions of the library, ranging from version 2.15.1 to the latest release candidate 2.37.0-rc."],["The interface defines various virtual methods corresponding to user-facing overload sets in `ProjectsClient`, including operations like `DisableXpnHost`, `EnableXpnResource`, `GetProject`, and more."],["Functions such as `MakeProjectsConnection()` and `MockProjectsConnection` are mentioned for creating concrete instances and mocking the connection for testing, respectively."],["The `ProjectsConnection` interface provides options to perform different operations, such as enabling and disabling XPN resources, moving disks or instances, setting common metadata and usage export buckets, in the context of the user's GCP project."]]],[]]