-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating swagger with missing 2014-04-01 advisor server api. (#2835)
* Updating swagger with missing 2014-04-01 advisor server api. * Updated response to return AdvisorListResult, in order to align server advisor api response with database advisor api response.
- Loading branch information
1 parent
0d3fc5e
commit 8a4e351
Showing
4 changed files
with
237 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ation/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerAdvisorGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "workloadinsight-demos", | ||
"serverName": "misosisvr", | ||
"advisorName": "CreateIndex", | ||
"api-version": "2014-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/CreateIndex", | ||
"name": "CreateIndex", | ||
"type": "Microsoft.Sql/servers/advisors", | ||
"properties": { | ||
"advisorStatus": "GA", | ||
"autoExecuteValue": "Disabled" | ||
} | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...tion/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerAdvisorList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "workloadinsight-demos", | ||
"serverName": "misosisvr", | ||
"api-version": "2014-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/CreateIndex", | ||
"name": "CreateIndex", | ||
"type": "Microsoft.Sql/servers/advisors", | ||
"properties": { | ||
"advisorStatus": "GA", | ||
"autoExecuteValue": "Disabled" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/DropIndex", | ||
"name": "DropIndex", | ||
"type": "Microsoft.Sql/servers/advisors", | ||
"properties": { | ||
"advisorStatus": "GA", | ||
"autoExecuteValue": "Disabled" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/DbParameterization", | ||
"name": "DbParameterization", | ||
"type": "Microsoft.Sql/servers/advisors", | ||
"properties": { | ||
"advisorStatus": "GA", | ||
"autoExecuteValue": "Disabled" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/ForceLastGoodPlan", | ||
"name": "ForceLastGoodPlan", | ||
"type": "Microsoft.Sql/servers/advisors", | ||
"properties": { | ||
"advisorStatus": "PrivatePreview", | ||
"autoExecuteValue": "Disabled" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...on/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/examples/ServerAdvisorUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "workloadinsight-demos", | ||
"serverName": "misosisvr", | ||
"advisorName": "CreateIndex", | ||
"api-version": "2014-04-01", | ||
"parameters": { | ||
"properties": { | ||
"autoExecuteValue": "Disabled" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"advisorStatus": "GA", | ||
"autoExecuteValue": "Disabled" | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/advisors/CreateIndex", | ||
"name": "CreateIndex", | ||
"type": "Microsoft.Sql/servers/advisors" | ||
} | ||
} | ||
} | ||
} |