This interface defines virtual methods for each of the user-facing overload sets in SqlConnectServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type SqlConnectServiceClient.
To create a concrete instance, see MakeSqlConnectServiceConnection().
[[["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 webpage provides documentation for the \u003ccode\u003eSqlConnectServiceConnection\u003c/code\u003e class within the Google Cloud C++ client library, specifically for interacting with the Cloud SQL API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSqlConnectServiceConnection\u003c/code\u003e class defines the interface with virtual methods, such as \u003ccode\u003eGetConnectSettings\u003c/code\u003e and \u003ccode\u003eGenerateEphemeralCert\u003c/code\u003e, for interacting with the SQL API, allowing for customization and testing.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists available versions of the \u003ccode\u003eSqlConnectServiceConnection\u003c/code\u003e class, ranging from the latest release candidate version \u003ccode\u003e2.37.0-rc\u003c/code\u003e down to \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page outlines how to create a \u003ccode\u003eSqlConnectServiceConnection\u003c/code\u003e instance using \u003ccode\u003eMakeSqlConnectServiceConnection()\u003c/code\u003e, along with how to use \u003ccode\u003esql_v1_mocks::MockSqlConnectServiceConnection\u003c/code\u003e for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSqlConnectServiceConnection\u003c/code\u003e class defines virtual functions that allow users to specify \u003ccode\u003eGetConnectSettingsRequest\u003c/code\u003e and \u003ccode\u003eGenerateEphemeralCertRequest\u003c/code\u003e to retrieve either the connection settings or an ephemeral certificate respectively.\u003c/p\u003e\n"]]],[],null,[]]