Skip to content

Commit

Permalink
Add V2020-02-02-Preview ShortTermRetention API Specification of SQL DB (
Browse files Browse the repository at this point in the history
#9407)

* Adds base for updating Microsoft.Sql from version preview/2017-10-01-preview to version 2020-02-02-preview

* Updates readme

* Updates API version in new specs and examples

* create and update new ShortTermRetentionPolicy APIs to latest 2020-02-02-preview version, copied and edited from 2017-10-01-preview version

* add enum for diffBackupIntervalInHours

* adjust enter/tab to spaces

* change {3} to {0}

* Try fix OperationsAPIImplementation error

* fix word spelling

* fix failute of Avocado test - UNREFERENCED_JSON_FILE

* Delete all json and example files except ShortTermRetentionPolicy for fixing errors

* add an example file back to avoid avocado failure

* Update response descriptions + Fix Prettier Check

* add operations.json to fix OperationsAPIImplementation error

* add operations.json to readme.md to fix Avocado Check

* update examples and shortTermRetentionPolicies.json after generateSwagger, ValidateSwagger, and generateClient have no issues.

* temp remove - Microsoft.Sql/preview/2020-02-02-preview/shortTermRetentionPolicies.json to solve merge conflict, need to add it back

* add - Microsoft.Sql/preview/2017-10-01-preview/shortTermRetentionPolicies.json back, not plan to change it at this moment.

* try different Examples' format for passing Avocado check

* update shortTermRetentionPolicies.json after running prettier

* add listShortTermRetentionPoliciesByDatabase example to pass Model Validation error; add operations.json to pass LintDiff error

* udpate UpdateShortTermRetentionPolicy.json and edit Readme to pass Avocado and ModelValidation checks

* fix updateShortTermRetentionPolicy.json to pass ModelValidation check

* update updateSTRP.json + run prettier cmd

* Task 1 about SQL DB API specification already checked in and passed all Checks. Now start Task 2: Add SQL MI API Specification for 2020-02-02-preview of ManagedShortTermRetentionPolicy

* remove not related example files

* update ManagedBackupShortTermRetention.json

* update after run prettier

* update latest SQL DB and SQL MI swagger.json files

* update latest swagger.json files of SQL DB and SQL MI

* remove ManagedSTR; Add STR to stable

* remove STR stable

* modify readme.md

Co-authored-by: Lillian Liu <liulu@microsoft.com>
  • Loading branch information
lululilliancoding and Lillian Liu authored Aug 6, 2020
1 parent 9ea4dc2 commit 50a94cc
Show file tree
Hide file tree
Showing 5 changed files with 550 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"policyName": "default",
"api-version": "2020-02-02-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/backupShortTermRetentionPolicies/default",
"name": "default",
"type": "Microsoft.Sql/locations/servers/databases/backupShortTermRetentionPolicies",
"properties": {
"retentionDays": 14,
"diffBackupIntervalInHours": 24
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "Default-SQL-SouthEastAsia",
"serverName": "testsvr",
"databaseName": "testdb",
"policyName": "default",
"api-version": "2020-02-02-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb/backupShortTermRetentionPolicies/default",
"name": "default",
"type": "Microsoft.Sql/locations/servers/databases/backupShortTermRetentionPolicies",
"properties": {
"retentionDays": 14,
"diffBackupIntervalInHours": 24
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "resourceGroup",
"serverName": "testsvr",
"databaseName": "testdb",
"policyName": "default",
"api-version": "2020-02-02-preview",
"parameters": {
"properties": {
"retentionDays": 14,
"diffBackupIntervalInHours": 24
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/resourceGroups/resourceGroup/servers/testsvr/databases/testdb/backupShortTermRetentionPolicies/default",
"name": "default",
"type": "Microsoft.Sql/locations/servers/databases/backupShortTermRetentionPolicies",
"properties": {
"retentionDays": 14,
"diffBackupIntervalInHours": 24
}
}
},
"202": {}
}
}
Loading

0 comments on commit 50a94cc

Please sign in to comment.