Skip to content

Commit

Permalink
AdministratorName parameter should take value which is defined in enum (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
SanjaMalesevic authored and tjprescott committed Nov 7, 2019
1 parent 80a458c commit 5e95a31
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"location": "southeastasia",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
Expand All @@ -32,7 +31,6 @@
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"location": "southeastasia",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"location": "southeastasia",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"location": "southeastasia",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"location": "southeastasia",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
Expand All @@ -32,7 +31,6 @@
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/managedInstance/administrators/ActiveDirectory",
"location": "southeastasia",
"name": "ActiveDirectory",
"properties": {
"administratorType": "ActiveDirectory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@
"in": "path",
"description": "The administrator name.",
"required": true,
"type": "string"
"type": "string",
"enum": [
"ActiveDirectory"
],
"x-ms-enum": {
"name": "AdministratorName"
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -121,7 +127,13 @@
"in": "path",
"description": "The requested administrator name.",
"required": true,
"type": "string"
"type": "string",
"enum": [
"ActiveDirectory"
],
"x-ms-enum": {
"name": "AdministratorName"
}
},
{
"name": "parameters",
Expand Down Expand Up @@ -187,7 +199,13 @@
"in": "path",
"description": "The administrator name.",
"required": true,
"type": "string"
"type": "string",
"enum": [
"ActiveDirectory"
],
"x-ms-enum": {
"name": "AdministratorName"
}
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down

0 comments on commit 5e95a31

Please sign in to comment.