Send feedback
Class InstantSnapshotsConnection (2.40.0-rc)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
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 >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-09 UTC.
Need to tell us more?
[[["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-07-09 UTC."],[[["The latest version of the `InstantSnapshotsConnection` class is 2.37.0-rc, with several previous versions also available, ranging from 2.36.0 down to 2.15.1."],["`InstantSnapshotsConnection` defines virtual methods for user-facing overload sets within `InstantSnapshotsClient`, enabling custom behavior injection during testing, and the ability to use Google Mock objects."],["This class offers various functions, including managing instant snapshots, such as `AggregatedListInstantSnapshots`, `DeleteInstantSnapshot`, `GetInstantSnapshot`, `InsertInstantSnapshot`, and more."],["The `InstantSnapshotsConnection` also provides methods to set or test the IAM policy or labels, as seen in `SetIamPolicy`, `TestIamPermissions`, `SetLabels` and `GetIamPolicy`."]]],[]]