Class SnapshotSettingsConnection (2.20.0)

This interface defines virtual methods for each of the user-facing overload sets in SnapshotSettingsClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SnapshotSettingsClient.

To create a concrete instance, see MakeSnapshotSettingsConnection().

For mocking, see compute_snapshot_settings_v1_mocks::MockSnapshotSettingsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetSnapshotSettings(google::cloud::cpp::compute::snapshot_settings::v1::GetSnapshotSettingsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::snapshot_settings::v1::GetSnapshotSettingsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::SnapshotSettings >

virtual PatchSnapshotSettings(google::cloud::cpp::compute::snapshot_settings::v1::PatchSnapshotSettingsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::snapshot_settings::v1::PatchSnapshotSettingsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >