Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring Admin API URL #1587

Closed
enocom opened this issue Oct 5, 2023 · 0 comments · Fixed by #1617
Closed

Add support for configuring Admin API URL #1587

enocom opened this issue Oct 5, 2023 · 0 comments · Fixed by #1617
Assignees
Labels
priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@enocom
Copy link
Member

enocom commented Oct 5, 2023

Currently we have a private property that supports configuring the SQL Admin API URL. We should add this property to the supported properties in the connection string.

Add two new connection properties: "cloudSqlAdminRootUrl" and "cloudSqlAdminServicePath". These names use the common prefix "cloudSql" and also match the SQLAdmin java api naming scheme for "rootUrl" and "servicePath".

SqlAdminApiFetcher.create() configures the SQLAdmin client library for each connection. Update this method
so that when the admin api and root url are set,

SQLAdmin.Builder adminApiBuilder; // ...
adminApiBuilder.setRootUrl(rootUrl);
adminApiBuilder.setServicePath(servicePath);

Related to #1575.

@enocom enocom added priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Oct 5, 2023
@hessjcg hessjcg assigned ttosta-google and unassigned hessjcg Oct 11, 2023
hessjcg added a commit that referenced this issue Oct 13, 2023
Create a value object containing connector configuration properties. This is the stable public Java API that 
configures connectors. All connection configuration property names and defaults are constants on the new
ConnectionConfig class. Logic to interpret a connection Properties object has moved into this class from
CoreSocketFactory. This config object is now passed within the CoreConnectorFactory instead of an long 
argument list.

part of #1587
part of #1226
hessjcg added a commit that referenced this issue Oct 16, 2023
fix: code review comments from @enocom and @ttosta-google

feat: Programatic configuration of the connector (without renaming CoreSocketFactory). Fixes #1226
hessjcg added a commit that referenced this issue Oct 16, 2023
fix: code review comments from @enocom and @ttosta-google

feat: Programatic configuration of the connector (without renaming CoreSocketFactory). Fixes #1226
hessjcg added a commit that referenced this issue Oct 16, 2023
fix: code review comments from @enocom and @ttosta-google

feat: Programatic configuration of the connector (without renaming CoreSocketFactory). Fixes #1226
hessjcg added a commit that referenced this issue Oct 17, 2023
fix: code review comments from @enocom and @ttosta-google

feat: Programatic configuration of the connector (without renaming CoreSocketFactory). Fixes #1226
hessjcg added a commit that referenced this issue Oct 18, 2023
fix: code review comments from @enocom and @ttosta-google

feat: Programatic configuration of the connector (without renaming CoreSocketFactory). Fixes #1226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p0 Highest priority. Critical issue. P0 implies highest priority. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants