This interface defines virtual methods for each of the user-facing overload sets in DataPolicyServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DataPolicyServiceClient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This page details the `DataPolicyServiceConnection` interface, which provides virtual methods corresponding to the user-facing overload sets in `DataPolicyServiceClient`."],["The latest version available for `DataPolicyServiceConnection` is 2.37.0-rc, while the current documented version is 2.22.1, and there are many previous versions available, going as far back as 2.11.0."],["`DataPolicyServiceConnection` enables the injection of custom behavior, particularly useful for testing with objects like Google Mock, and can be used alongside `DataPolicyServiceClient`."],["The `DataPolicyServiceConnection` interface includes virtual functions like `CreateDataPolicy`, `UpdateDataPolicy`, `RenameDataPolicy`, `DeleteDataPolicy`, `GetDataPolicy`, `ListDataPolicies`, `GetIamPolicy`, `SetIamPolicy`, and `TestIamPermissions` to interact with data policies."],["To get a concrete implementation of the connection, one can utilize the function `MakeDataPolicyServiceConnection()`, and for mocking there is `MockDataPolicyServiceConnection`."]]],[]]