Class CloudControlsPartnerMonitoringConnection (2.31.0)

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

To create a concrete instance, see MakeCloudControlsPartnerMonitoringConnection().

For mocking, see cloudcontrolspartner_v1_mocks::MockCloudControlsPartnerMonitoringConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListViolations(google::cloud::cloudcontrolspartner::v1::ListViolationsRequest)

Parameter
Name Description
request google::cloud::cloudcontrolspartner::v1::ListViolationsRequest
Returns
Type Description
StreamRange< google::cloud::cloudcontrolspartner::v1::Violation >

virtual GetViolation(google::cloud::cloudcontrolspartner::v1::GetViolationRequest const &)

Parameter
Name Description
request google::cloud::cloudcontrolspartner::v1::GetViolationRequest const &
Returns
Type Description
StatusOr< google::cloud::cloudcontrolspartner::v1::Violation >