Class DefaultConnectionInfoRepositoryFactory (1.15.0)

public class DefaultConnectionInfoRepositoryFactory implements ConnectionInfoRepositoryFactory

Factory for creating a SQLAdmin client that interacts with the real SQL Admin API.

Inheritance

java.lang.Object > DefaultConnectionInfoRepositoryFactory

Constructors

DefaultConnectionInfoRepositoryFactory(String userAgents)

public DefaultConnectionInfoRepositoryFactory(String userAgents)

Initializes a new SQLAdminApiClientFactory class from defaults and provided userAgents.

Parameter
NameDescription
userAgentsString

string representing userAgents for the admin API client

Methods

create(HttpRequestInitializer requestInitializer, ConnectorConfig config)

public DefaultConnectionInfoRepository create(HttpRequestInitializer requestInitializer, ConnectorConfig config)
Parameters
NameDescription
requestInitializercom.google.api.client.http.HttpRequestInitializer
configConnectorConfig
Returns
TypeDescription
com.google.cloud.sql.core.DefaultConnectionInfoRepository