Rename networkAcls to NetworkRuleSet.#1494
Conversation
|
@JasonYang-MSFT Sorry for the delay -- I've been trying to fix some CI issues. This is just some simple renames? I'm assuming that there isn't an SDK release with the current version yet that we're going to break? |
|
This will break current version of Storage RP .Net SDK. But only break the feature that is still in preview. |
|
The Python SDK also contains the current version with "network_acls" cc/ @lmazuel |
|
So technically it's broken in Python as well, and since the ApiVersion is not released as preview, the Python package was released as stable.
So we might just release that a "bug fix" like "sorry we didn't mean to use that name". But it's on the border, once a Swagger is in master, the point is that it is stable. Otherwise the Swagger has nothing to do on master. |
|
The CLI does, but it's still on a branch in my fork. I can just fix up the references before I issue a PR. |
|
@JasonYang-MSFT The point here is you can't say just "This will break current version of Storage RP .Net SDK. But only break the feature that is still in preview." First, sorry but it's really a C#-focused sentence, note that this Swagger is used in Java, Ruby, NodeJS, Python and GO. You break all of them. Second, the Swagger is commited in master on the public repo for 2 months, for an ApiVersion that does not contain preview. We have no way to determine the "preview-ness" of this Swagger. Please in this situation do an email or something to SDK teams in general (not only C#), to explain that we should not integrate the change, or make it clear that it's preview. FYI @johanste |
|
Agreed that having a deprecation mechanism is important. @fearthecowboy is working on a proposal which he will be sharing soon. |
|
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues Send feedback and make AutoRest Linter Azure Bot smarter day by day! Thanks for your co-operation. |
|
@lmazuel Thanks for the advice. I have just sent the email to notify the situation. |
|
This PR renames a model class, which is something that I didn't represent. Lemme generate out the code before/after and see how that plays out. |
|
Well, this will definitely be a breaking change in existing SDKs -- even if we had the ability to rename properties/methods implemented in AutoRest at this point, this PR changes a model type, and there ain't no power in the 'verse that can export an alias of a class. |
|
@fearthecowboy You know an alias to a class is possible in Python right? ;) |
|
@lmazuel "First, sorry but it's really a python-focused sentence" 😆 Yeah, yeah... |
|
@fearthecowboy I know... Ok to merge anyway from me. |
|
OKaaay lovely People, Given all the risks and large impact that we have from the opration name, the safest thing here would be to rename on the next API version of this swagger to avoid breaking changes on all generated SDKs |
|
As far as I checked out, correct me if I have missed anything, python, .net and NodeJS have this feature, which will cause breaking. For PowerShell, "NetworkRuleSet" is already used in its parameters. So in my opinion, rename it now may have smaller breaking impact other than rename on the next API version. @salameer What do you think about this idea? |
|
Any ideas? @fearthecowboy @salameer @markcowl @twitchax @DanBehrendt |
|
@JasonYang-MSFT - I am not sure how this would affect PowerShell but could you get an ack from Powershell folks - @markcowl (Mark Cowlishaw) and @twitchax (Aaron Roney). Once they ack on this change, we can merge. |
|
We got ack that this change does not break PowerShell. Given Python team signed off, @fearthecowboy I think we are ok to merge. |
|
Thanks all for your cooperation. |
|
No modification for AutorestCI/azure-sdk-for-node |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger