Class KeyTrackingServiceConnection (2.15.1)

This interface defines virtual methods for each of the user-facing overload sets in KeyTrackingServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type KeyTrackingServiceClient.

To create a concrete instance, see MakeKeyTrackingServiceConnection().

For mocking, see kms_inventory_v1_mocks::MockKeyTrackingServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual GetProtectedResourcesSummary(google::cloud::kms::inventory::v1::GetProtectedResourcesSummaryRequest const &)

Parameter
Name Description
request google::cloud::kms::inventory::v1::GetProtectedResourcesSummaryRequest const &
Returns
Type Description
StatusOr< google::cloud::kms::inventory::v1::ProtectedResourcesSummary >

virtual SearchProtectedResources(google::cloud::kms::inventory::v1::SearchProtectedResourcesRequest)

Parameter
Name Description
request google::cloud::kms::inventory::v1::SearchProtectedResourcesRequest
Returns
Type Description
StreamRange< google::cloud::kms::inventory::v1::ProtectedResource >