This interface defines virtual methods for each of the user-facing overload sets in SnapshotsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SnapshotsClient.
To create a concrete instance, see MakeSnapshotsConnection().
[[["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."],[[["The `SnapshotsConnection` interface provides virtual methods mirroring the user-facing overloads in `SnapshotsClient`, enabling custom behavior injection during testing."],["This documentation covers version 2.33.0 of the `SnapshotsConnection` class, with links available for other versions, including the latest release candidate 2.37.0-rc."],["`SnapshotsConnection` includes functions for managing snapshots, such as `DeleteSnapshot`, `GetSnapshot`, `InsertSnapshot`, `ListSnapshots`, `SetLabels`, `GetIamPolicy`, `SetIamPolicy`, and `TestIamPermissions`."],["Users can utilize `MakeSnapshotsConnection()` to create concrete instances of this class and `compute_snapshots_v1_mocks::MockSnapshotsConnection` for mocking purposes in tests."],["The class operations can return a `future\u003c StatusOr\u003c google::cloud::cpp::compute::v1::Operation \u003e \u003e`, a `StatusOr\u003c google::cloud::cpp::compute::v1::Operation \u003e`, a `StatusOr\u003c google::cloud::cpp::compute::v1::Snapshot \u003e`, a `StreamRange\u003c google::cloud::cpp::compute::v1::Snapshot \u003e`, a `StatusOr\u003c google::cloud::cpp::compute::v1::Policy \u003e`, or a `StatusOr\u003c google::cloud::cpp::compute::v1::TestPermissionsResponse \u003e`."]]],[]]