Class DisksConnection (2.26.0)

The DisksConnection object for DisksClient.

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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::AddResourcePoliciesRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual AddResourcePolicies(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::BulkInsertRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::BulkInsertRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual BulkInsert(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::CreateSnapshotRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual CreateSnapshot(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::DeleteDiskRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DeleteDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::InsertDiskRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::InsertDiskRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual InsertDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::RemoveResourcePoliciesRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual RemoveResourcePolicies(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::ResizeRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::ResizeRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual Resize(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::SetLabelsRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::StartAsyncReplicationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual StartAsyncReplication(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::StopAsyncReplicationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual StopAsyncReplication(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::StopGroupAsyncReplicationRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::StopGroupAsyncReplicationRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual StopGroupAsyncReplication(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const &)

Parameters
Name Description
ExperimentalTag
NoAwaitTag
request google::cloud::cpp::compute::disks::v1::UpdateDiskRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual UpdateDisk(ExperimentalTag, google::cloud::cpp::compute::v1::Operation const &)

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