Send feedback
Class DisksConnection (2.15.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.15.1 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 AggregatedListDisks(google::cloud::cpp::compute::disks::v1::AggregatedListDisksRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::AggregatedListDisksRequest const &
Returns
Type
Description
StatusOr< google::cloud::cpp::compute::v1::DiskAggregatedList >
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 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 DeleteDisks(google::cloud::cpp::compute::disks::v1::DeleteDisksRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::DeleteDisksRequest const &
Returns
Type
Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >
virtual GetDisks(google::cloud::cpp::compute::disks::v1::GetDisksRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::GetDisksRequest 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 InsertDisks(google::cloud::cpp::compute::disks::v1::InsertDisksRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::InsertDisksRequest 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 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 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 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 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 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 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 UpdateDisks(google::cloud::cpp::compute::disks::v1::UpdateDisksRequest const &)
Parameter
Name
Description
request
google::cloud::cpp::compute::disks::v1::UpdateDisksRequest 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-12-12 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-12-12 UTC."],[],[]]