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

Getting GCP available regions without doing a request #4234

Closed
adriaferre opened this issue Dec 17, 2018 · 3 comments
Closed

Getting GCP available regions without doing a request #4234

adriaferre opened this issue Dec 17, 2018 · 3 comments
Assignees
Labels
api: compute Issues related to the Compute Engine API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@adriaferre
Copy link

Hello,
I would like to know if there is a way to get all GCP available regions without doing a request to GCP.
I've been looking at the source code, and the only way that I found to retrieve all the regions is doing a request:

public final ListRegionsPagedResponse listRegions(ProjectName project) {

So, maybe it's not possible 😓

Do you thing this could be a cool feature? I've been working with others cloud competitors SDK and they have this feature, and I think it's useful.

@JustinBeckwith JustinBeckwith added the triage me I really want to be triaged. label Dec 18, 2018
@andreamlin andreamlin added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. type: question Request for information or clarification. Not an issue. api: compute Issues related to the Compute Engine API. and removed triage me I really want to be triaged. type: question Request for information or clarification. Not an issue. labels Dec 18, 2018
@andreamlin
Copy link
Contributor

andreamlin commented Dec 18, 2018

@adriaferre Thanks for submitting this feature request!

It does seem that we have a static set of Regions: https://cloud.google.com/compute/docs/regions-zones/.

Could we envision in the code base as this as a static class with just a static list of Region objects?

@andreamlin andreamlin added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Dec 18, 2018
@adriaferre
Copy link
Author

adriaferre commented Dec 19, 2018

Hello @andreamlin
Yes, definitely having a static list of Region objects will work perfectly for us :) This is what we are doing meanwhile we don't have this feature in the official GCP SDK.

@andreamlin andreamlin self-assigned this Dec 19, 2018
@andreamlin
Copy link
Contributor

Ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: compute Issues related to the Compute Engine API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants