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

feat: support ip_type as str #267

Merged
merged 2 commits into from
Mar 7, 2024
Merged

feat: support ip_type as str #267

merged 2 commits into from
Mar 7, 2024

Conversation

jackwotherspoon
Copy link
Collaborator

@jackwotherspoon jackwotherspoon commented Mar 7, 2024

Adding support for ip_type as str type with options as "PUBLIC", "PRIVATE".

If users want to configure a Connector for a specific IP type they currently need to import IPTypes first and then set ip_type=IPTypes.PUBLIC in the Connector config or during their call to connect.

from google.cloud.alloydb.connector import IPTypes

This is an extra step that is unnecessary and causes friction to users, we should support users passing in the IPTypes enum or string value. This will allow users to not have to import the additional class.

Closes #247

@jackwotherspoon jackwotherspoon self-assigned this Mar 7, 2024
@jackwotherspoon jackwotherspoon requested review from cthumuluru, nancynh and a team as code owners March 7, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow IPTypes or string for setting ip_type
2 participants