Send feedback
Class DisksConnection (2.31.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.31.0 keyboard_arrow_down
This interface defines virtual methods for each of the user-facing overload sets in DisksClient
. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DisksClient
.
To create a concrete instance, see MakeDisksConnection()
.
For mocking, see compute_disks_v1_mocks::MockDisksConnection
.
Functions
virtual options()
Returns
Type
Description
Options
virtual AddResourcePolicies(google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual AddResourcePolicies(NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual AddResourcePolicies(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 AggregatedListDisks(google::cloud::cpp::compute::disks::v1::AggregatedListDisksRequest)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::AggregatedListDisksRequest
Returns
Type
Description
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::DisksScopedList > >
virtual BulkInsert(google::cloud::cpp::compute::disks::v1::BulkInsertRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::BulkInsertRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual BulkInsert(NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::BulkInsertRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual BulkInsert(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 CreateSnapshot(google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual CreateSnapshot(NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual CreateSnapshot(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 DeleteDisk(google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual DeleteDisk(NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual DeleteDisk(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 GetDisk(google::cloud::cpp::compute::disks::v1::GetDiskRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::GetDiskRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Disk >
virtual GetIamPolicy(google::cloud::cpp::compute::disks::v1::GetIamPolicyRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::GetIamPolicyRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Policy >
virtual InsertDisk(google::cloud::cpp::compute::disks::v1::InsertDiskRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::InsertDiskRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual InsertDisk(NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::InsertDiskRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual InsertDisk(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 ListDisks(google::cloud::cpp::compute::disks::v1::ListDisksRequest)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::ListDisksRequest
Returns
Type
Description
StreamRange< google::cloud::cpp::compute::v1::Disk >
virtual RemoveResourcePolicies(google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual RemoveResourcePolicies(NoAwaitTag, google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual RemoveResourcePolicies(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 Resize(google::cloud::cpp::compute::disks::v1::ResizeRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::ResizeRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual Resize(NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::ResizeRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual Resize(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 SetIamPolicy(google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::SetIamPolicyRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Policy >
virtual SetLabels(google::cloud::cpp::compute::disks::v1::SetLabelsRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::SetLabelsRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual SetLabels(NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::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 StartAsyncReplication(google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual StartAsyncReplication(NoAwaitTag, google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual StartAsyncReplication(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 StopAsyncReplication(google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual StopAsyncReplication(NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual StopAsyncReplication(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 StopGroupAsyncReplication(google::cloud::cpp::compute::disks::v1::StopGroupAsyncReplicationRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::StopGroupAsyncReplicationRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual StopGroupAsyncReplication(NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopGroupAsyncReplicationRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::StopGroupAsyncReplicationRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual StopGroupAsyncReplication(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::disks::v1::TestIamPermissionsRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::TestIamPermissionsRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::TestPermissionsResponse >
virtual UpdateDisk(google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual UpdateDisk(NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const &)
Parameters
Name
Description
NoAwaitTag
request
google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::Operation >
virtual UpdateDisk(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 > >
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 2024-11-19 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 2024-11-19 UTC."],[],[]]