Class DisksConnection (2.18.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 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 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 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 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 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 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 > >