forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Swagger and examples for ManagedDatabases (Azure#1812)
* ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added * ManagedDatabases added
- Loading branch information
1 parent
99c6020
commit 2e3dac1
Showing
12 changed files
with
1,063 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...ql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/CompleteManagedRestore.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,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"locationName": "southeastasia", | ||
"operationId": "111111111-2222-8888-5555-777777777777/completeRestore", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"lastBackupName": "testdb1_log4" | ||
} | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
.../resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseCreateMax.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,52 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "managedDatabase", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb1", | ||
"name": "testdb1", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb2", | ||
"name": "testdb2", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseCreateMin.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,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "managedDatabase", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"location": "southeastasia" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb1", | ||
"name": "testdb1", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb2", | ||
"name": "testdb2", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...er/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseCreatePointInTimeRestore.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,54 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "managedDatabase", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"location": "southeastasia", | ||
"properties": { | ||
"createMode": "PointInTimeRestore", | ||
"sourceDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/managedInstances/testsvr/databases/testdb", | ||
"restorePointInTime": "2017-07-14T05:35:31.503Z" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb1", | ||
"name": "testdb1", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb2", | ||
"name": "testdb2", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"202": { } | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseCreateRestoreExternalBackup.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,55 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "managedDatabase", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"createMode": "RestoreExternalBackup", | ||
"storageContainerUri": "https://myaccountname.blob.core.windows.net/backups", | ||
"storageContainerSasToken": "sv=2015-12-11&sr=c&sp=rl&sig=1234", | ||
"collation": "SQL_Latin1_General_CP1_CI_AS" | ||
}, | ||
"location": "southeastasia" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb1", | ||
"name": "testdb1", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb2", | ||
"name": "testdb2", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe" | ||
}, | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"202": { } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseDelete.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,18 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "testdb", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "" | ||
}, | ||
"202": {}, | ||
"204": { | ||
"body": "" | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...on/sql/resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseGet.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,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Test1", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "managedDatabase", | ||
"api-version": "2015-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/databases/testdb1", | ||
"location": "southeastasia", | ||
"name": "testdb1", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"creationDate": "2017-08-04T15:00:17.73Z", | ||
"defaultSecondaryLocation": "North Europe", | ||
"status": "Online" | ||
}, | ||
"type": "Microsoft.Sql/managedInstances/databases" | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...nager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseListByManagedInstance.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,41 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Test1", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "managedDatabase", | ||
"api-version": "2015-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/databases/testdb1", | ||
"location": "southeastasia", | ||
"name": "testdb1", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"creationDate": "2017-08-04T15:00:17.73Z", | ||
"defaultSecondaryLocation": "North Europe", | ||
"status": "Online" | ||
}, | ||
"type": "Microsoft.Sql/managedInstances/databases" | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl/databases/testdb2", | ||
"location": "southeastasia", | ||
"name": "testdb2", | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"creationDate": "2017-08-04T15:00:17.73Z", | ||
"defaultSecondaryLocation": "North Europe", | ||
"status": "Online" | ||
}, | ||
"type": "Microsoft.Sql/managedInstances/databases" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
.../resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseUpdateMax.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,34 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "testdb", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb", | ||
"name": "testdb" | ||
}, | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe", | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"202": { } | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
.../resource-manager/Microsoft.Sql/2017-03-01-preview/examples/ManagedDatabaseUpdateMin.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,34 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "Default-SQL-SouthEastAsia", | ||
"managedInstanceName": "managedInstance", | ||
"databaseName": "testdb", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"tags": { | ||
"tagKey1": "TagValue1" | ||
}, | ||
"location": "southeastasia", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/databases/testdb", | ||
"name": "testdb" | ||
}, | ||
"properties": { | ||
"collation": "SQL_Latin1_General_CP1_CI_AS", | ||
"status": "Online", | ||
"creationDate": "2017-06-07T04:41:33.937Z", | ||
"defaultSecondaryLocation": "North Europe", | ||
"type": "Microsoft.Sql/servers/databases" | ||
} | ||
}, | ||
"202": { } | ||
} | ||
} |
Oops, something went wrong.