Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
"in": "path",
"description": "The administrator name.",
"required": true,
"type": "string"
"type": "string",
"enum": [
"ActiveDirectory"
Copy link
Member

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?

Copy link
Contributor Author

@SanjaMalesevic SanjaMalesevic Oct 24, 2019

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.

Copy link
Contributor

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.

]
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -121,7 +124,10 @@
"in": "path",
"description": "The requested administrator name.",
"required": true,
"type": "string"
"type": "string",
"enum": [
"ActiveDirectory"
]
},
{
"name": "parameters",
Expand Down Expand Up @@ -187,7 +193,10 @@
"in": "path",
"description": "The administrator name.",
"required": true,
"type": "string"
"type": "string",
"enum": [
"ActiveDirectory"
]
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down