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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eContainerAnalysisConnection\u003c/code\u003e class, an interface for interacting with the \u003ccode\u003eContainerAnalysisClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate is version 2.37.0-rc, with several other versions available ranging down to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContainerAnalysisConnection\u003c/code\u003e interface defines virtual methods that mirror the user-facing overload sets found in \u003ccode\u003eContainerAnalysisClient\u003c/code\u003e, including functions for \u003ccode\u003eSetIamPolicy\u003c/code\u003e, \u003ccode\u003eGetIamPolicy\u003c/code\u003e, \u003ccode\u003eTestIamPermissions\u003c/code\u003e, and \u003ccode\u003eGetVulnerabilityOccurrencesSummary\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a real instance of this class using the \u003ccode\u003eMakeContainerAnalysisConnection()\u003c/code\u003e function, or use \u003ccode\u003eMockContainerAnalysisConnection\u003c/code\u003e for mocking purposes in tests.\u003c/p\u003e\n"],["\u003cp\u003eThere are several virtual functions available on this interface, namely \u003ccode\u003eoptions()\u003c/code\u003e, \u003ccode\u003eSetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)\u003c/code\u003e, \u003ccode\u003eGetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)\u003c/code\u003e, \u003ccode\u003eTestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)\u003c/code\u003e, and \u003ccode\u003eGetVulnerabilityOccurrencesSummary(google::devtools::containeranalysis::v1::GetVulnerabilityOccurrencesSummaryRequest const &)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]