-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
AdministratorName parameter should take value which is defined in enum #7377
AdministratorName parameter should take value which is defined in enum #7377
Conversation
In Testing, Please Ignore[Logs] (Generated from 7555722, Iteration 3)
|
Can one of the admins verify this patch? |
Merge changes from master
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
"type": "string" | ||
"type": "string", | ||
"enum": [ | ||
"ActiveDirectory" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the change from string to enum result in a breaking change for some SDKs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, there is a difference in number of parameters for create/modify/delete methods in .NET and Python clients between MI and SQL DB. So, this change is made to aligned MI clients with SQL DB (they need to be auto-generated again based on updated json).
Jared has noticed in PR Azure/azure-cli#10446 that there is parameter AdministratorName in method create_or_update which always takes the same value and that this parameter doesn't exist in clients for sql db.
I am not sure, but I think that this is a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is a breaking change. However this is a new API and therefore right now is the time that break will have minimal impact. Also this change brings managed instance admin API into sync with server admin API.
Hi all, this is a gentle reminder to take look at this PR. |
@Azure/arm-api-review-board please take a look. |
...resource-manager/Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json
Outdated
Show resolved
Hide resolved
...resource-manager/Microsoft.Sql/preview/2017-03-01-preview/managedInstanceAdministrators.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment. Please take a look.
Some of the CI/CD checks are failing on this PR also. Please take a look. |
I saw from the error log that ModelValidation failed when trying to validate "examples" and "x-ms-examples", but there is no specific error here. @majastrz could you please help me to figure out what is wrong here? |
If you keep clicking links on the Details next to the failing check, you will eventually get to the Model Validation errors. I copied the following from https://dev.azure.com/azure-sdk/public/_build/results?buildId=181455&view=logs&j=8d2f9c49-cd83-5a9d-f3fe-2fd651afa742&t=43324f1f-6724-5d61-785f-f0ac9fd256a1:
It appears that there's an issue with the examples referencing a property that is not declared in the schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed off from ARM side.
/azurepipelines run |
1 similar comment
/azurepipelines run |
I've fixed the examples and all checks have passed. Thanks for help. |
Azure#7377) * AdministratorName parameter should take constant value defined in enum * Code review fixes * Code review fixes * Fix tabs and spaces * Fix example with get * revert example with get * Fix examples
No description provided.