Class DisksConnection (2.15.1)

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 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 > >