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

.region() as Region, .regionName() as String; also PIP and AvailabilitySet interface restructuring #899

Closed
wants to merge 3 commits into from

Conversation

martinsawicki
Copy link

this way, resource.region() will return the more intuitive/discoverable strongly typed Region enum constant, but in case someone cares about handling a future region that's not currently in the constant, they can fall back on .regionName().

With the latter point in mind, this change does NOT change the internal use of region, i.e. I first renamed previously existing .region() to .regionName() and did not change the automatically refactored existing impls to refer to the new .region(), but kept them as referring to .regionName().

…gionName() to return the String

this way, .region() will return the more intuitive/discoverable strongly types enum constant, but in case someone cares about handling a future region that's not currently in the constant, they can fall back on .regionName().
With the latter point in mind, this change does NOT change the internal use of region, i.e. I first renamed previously existing .region() to .regionName() and did not change the automatically refactored existing impls to refer to teh new .region(), but kept them as referring to .regionName().
@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@martinsawicki martinsawicki changed the title .region() as Region, .regionName() as String .region() as Region, .regionName() as String; also PIP and AvailabilitySet interface restructuring Jun 25, 2016
@martinsawicki
Copy link
Author

backing out for now, as Anu raised an interesting question about the organization approach to these interfaces

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.

3 participants