public class DefaultConnectionInfoRepositoryFactory implements ConnectionInfoRepositoryFactory
Factory for creating a SQLAdmin client that interacts with the real SQL Admin API.
Implements
ConnectionInfoRepositoryFactoryConstructors
DefaultConnectionInfoRepositoryFactory(String userAgents)
public DefaultConnectionInfoRepositoryFactory(String userAgents)
Initializes a new SQLAdminApiClientFactory class from defaults and provided userAgents.
Parameter | |
---|---|
Name | Description |
userAgents | String string representing userAgents for the admin API client |
Methods
create(HttpRequestInitializer requestInitializer, ConnectorConfig config)
public DefaultConnectionInfoRepository create(HttpRequestInitializer requestInitializer, ConnectorConfig config)
Parameters | |
---|---|
Name | Description |
requestInitializer | com.google.api.client.http.HttpRequestInitializer |
config | ConnectorConfig |
Returns | |
---|---|
Type | Description |
com.google.cloud.sql.core.DefaultConnectionInfoRepository |