This interface defines virtual methods for each of the user-facing overload sets in SecretManagerServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SecretManagerServiceClient.
[[["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-07 UTC."],[[["This page details the `SecretManagerServiceConnection` object, which acts as an interface for the `SecretManagerServiceClient` and allows for the injection of custom behavior in testing environments."],["The latest release candidate is version 2.37.0-rc, while the current version detailed on this page is 2.34.0, with numerous previous versions listed as well."],["The `SecretManagerServiceConnection` provides virtual methods for a wide array of operations, including managing secrets and their versions, such as listing, creating, updating, accessing, disabling, enabling, and destroying."],["Users can create concrete instances of the `SecretManagerServiceConnection` using `MakeSecretManagerServiceConnection()` and mock it via `secretmanager_v1_mocks::MockSecretManagerServiceConnection` for testing."],["The interface also includes methods for managing IAM policies and locations, such as `SetIamPolicy`, `GetIamPolicy`, `TestIamPermissions`, `ListLocations`, and `GetLocation`."]]],[]]