Class InstantSnapshotsConnection (2.30.0-rc)

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

To create a concrete instance, see MakeInstantSnapshotsConnection().

For mocking, see compute_instant_snapshots_v1_mocks::MockInstantSnapshotsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual AggregatedListInstantSnapshots(google::cloud::cpp::compute::instant_snapshots::v1::AggregatedListInstantSnapshotsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::instant_snapshots::v1::AggregatedListInstantSnapshotsRequest
Returns
Type Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::InstantSnapshotsScopedList > >

virtual DeleteInstantSnapshot(google::cloud::cpp::compute::instant_snapshots::v1::DeleteInstantSnapshotRequest const &)

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

virtual DeleteInstantSnapshot(NoAwaitTag, google::cloud::cpp::compute::instant_snapshots::v1::DeleteInstantSnapshotRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::instant_snapshots::v1::DeleteInstantSnapshotRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DeleteInstantSnapshot(google::cloud::cpp::compute::v1::Operation const &)

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

virtual GetInstantSnapshot(google::cloud::cpp::compute::instant_snapshots::v1::GetInstantSnapshotRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::instant_snapshots::v1::GetInstantSnapshotRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::InstantSnapshot >

virtual GetIamPolicy(google::cloud::cpp::compute::instant_snapshots::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::instant_snapshots::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual InsertInstantSnapshot(google::cloud::cpp::compute::instant_snapshots::v1::InsertInstantSnapshotRequest const &)

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

virtual InsertInstantSnapshot(NoAwaitTag, google::cloud::cpp::compute::instant_snapshots::v1::InsertInstantSnapshotRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::instant_snapshots::v1::InsertInstantSnapshotRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual InsertInstantSnapshot(google::cloud::cpp::compute::v1::Operation const &)

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

virtual ListInstantSnapshots(google::cloud::cpp::compute::instant_snapshots::v1::ListInstantSnapshotsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::instant_snapshots::v1::ListInstantSnapshotsRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::InstantSnapshot >

virtual SetIamPolicy(google::cloud::cpp::compute::instant_snapshots::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::instant_snapshots::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Policy >

virtual SetLabels(google::cloud::cpp::compute::instant_snapshots::v1::SetLabelsRequest const &)

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

virtual SetLabels(NoAwaitTag, google::cloud::cpp::compute::instant_snapshots::v1::SetLabelsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::instant_snapshots::v1::SetLabelsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual SetLabels(google::cloud::cpp::compute::v1::Operation const &)

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

virtual TestIamPermissions(google::cloud::cpp::compute::instant_snapshots::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::instant_snapshots::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >