Class ContainerAnalysisConnection (2.22.0)

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

To create a concrete instance, see MakeContainerAnalysisConnection().

For mocking, see containeranalysis_v1_mocks::MockContainerAnalysisConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::SetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
NameDescription
request google::iam::v1::GetIamPolicyRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
NameDescription
request google::iam::v1::TestIamPermissionsRequest const &
Returns
TypeDescription
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual GetVulnerabilityOccurrencesSummary(google::devtools::containeranalysis::v1::GetVulnerabilityOccurrencesSummaryRequest const &)

Parameter
NameDescription
request google::devtools::containeranalysis::v1::GetVulnerabilityOccurrencesSummaryRequest const &
Returns
TypeDescription
StatusOr< google::devtools::containeranalysis::v1::VulnerabilityOccurrencesSummary >