forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Don't Merge, Service roll out 2/28/2018] Swagger For new rdbms API c…
…hange for new biz model (Azure#2414) * Add new version for mysql and pgsql * Correct readme version * Correct create properties parameter * Correct PG namespace and some other comment * Update Examples folder to examples * Correct property name cases in the examples * Corrected the ServerResult objects in CRUD samples * Correct property values for server response in samples * make createtime and lastmodifiedtime for logfileproperties to readonly
- Loading branch information
1 parent
440ee80
commit 1760a5c
Showing
46 changed files
with
7,301 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...nager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/CheckNameAvailability.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,19 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"nameAvailabilityRequest": { | ||
"name": "name1", | ||
"type": "Microsoft.DBforMySQL" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"message": "", | ||
"reason": "" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/ConfigurationCreateOrUpdate.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,33 @@ | ||
{ | ||
"parameters": { | ||
"configurationName": "array_nulls", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"parameters": { | ||
"properties":{ | ||
"value": "off", | ||
"source": "user-override" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"value": "off", | ||
"description": "Enable input of NULL elements in arrays.", | ||
"defaultValue": "on", | ||
"dataType": "Boolean", | ||
"allowedValues": "on,off", | ||
"source": "user-override" | ||
}, | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", | ||
"name": "array_nulls", | ||
"type": "Microsoft.DBforMySQL/servers/configurations" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ce-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/ConfigurationGet.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,26 @@ | ||
{ | ||
"parameters": { | ||
"configurationName": "array_nulls", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"value": "on", | ||
"description": "Enable input of NULL elements in arrays.", | ||
"defaultValue": "on", | ||
"dataType": "Boolean", | ||
"allowedValues": "on,off", | ||
"source": "system-default" | ||
}, | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/configurations/array_nulls", | ||
"name": "array_nulls", | ||
"type": "Microsoft.DBforMySQL/servers/configurations" | ||
} | ||
} | ||
} | ||
} |
588 changes: 588 additions & 0 deletions
588
...r/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/ConfigurationListByServer.json
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...urce-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/DatabaseCreate.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,40 @@ | ||
{ | ||
"parameters": { | ||
"databaseName": "db1", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"parameters": { | ||
"properties":{ | ||
"charset":"UTF8", | ||
"collation":"English_United States.1252" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", | ||
"name": "db1", | ||
"type": "Microsoft.DBforMySQL/servers/databases", | ||
"properties": { | ||
"charset": "UTF8", | ||
"collation": "English_United States.1252" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", | ||
"name": "db1", | ||
"type": "Microsoft.DBforMySQL/servers/databases", | ||
"properties": { | ||
"charset": "UTF8", | ||
"collation": "English_United States.1252" | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...urce-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/DatabaseDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"databaseName": "db1", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...esource-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/DatabaseGet.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": { | ||
"databaseName": "db1", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", | ||
"name": "db1", | ||
"type": "Microsoft.DBforMySQL/servers/databases", | ||
"properties": { | ||
"charset": "UTF8", | ||
"collation": "English_United States.1252" | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...anager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/DatabaseListByServer.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": { | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup-preview", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db1", | ||
"name": "db1", | ||
"type": "Microsoft.DBforMySQL/servers/databases", | ||
"properties": { | ||
"charset": "UTF8", | ||
"collation": "English_United States.1252" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/databases/db2", | ||
"name": "db2", | ||
"type": "Microsoft.DBforMySQL/servers/databases", | ||
"properties": { | ||
"charset": "UTF8", | ||
"collation": "English_United States.1252" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/FirewallRuleCreate.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,40 @@ | ||
{ | ||
"parameters": { | ||
"firewallRuleName": "rule1", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
"parameters": { | ||
"properties":{ | ||
"startIpAddress":"0.0.0.0", | ||
"endIpAddress":"255.255.255.255" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", | ||
"name": "rule1", | ||
"type": "Microsoft.DBforMySQL/servers/firewallRules", | ||
"properties": { | ||
"startIpAddress": "0.0.0.0", | ||
"endIpAddress": "255.255.255.255" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", | ||
"name": "rule1", | ||
"type": "Microsoft.DBforMySQL/servers/firewallRules", | ||
"properties": { | ||
"startIpAddress": "0.0.0.0", | ||
"endIpAddress": "255.255.255.255" | ||
} | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/FirewallRuleDelete.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,14 @@ | ||
{ | ||
"parameters": { | ||
"firewallRuleName": "rule1", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...rce-manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/FirewallRuleGet.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": { | ||
"firewallRuleName": "rule1", | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", | ||
"name": "rule1", | ||
"type": "Microsoft.DBforMySQL/servers/firewallRules", | ||
"properties": { | ||
"startIpAddress": "0.0.0.0", | ||
"endIpAddress": "255.255.255.255" | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...er/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/FirewallRuleListByServer.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": { | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule1", | ||
"name": "rule1", | ||
"type": "Microsoft.DBforMySQL/servers/firewallRules", | ||
"properties": { | ||
"startIpAddress": "0.0.0.0", | ||
"endIpAddress": "255.255.255.255" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/firewallRules/rule2", | ||
"name": "rule2", | ||
"type": "Microsoft.DBforMySQL/servers/firewallRules", | ||
"properties": { | ||
"startIpAddress": "1.0.0.0", | ||
"endIpAddress": "255.0.0.0" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...manager/Microsoft.DBforMySQL/preview/2017-12-01-preview/examples/LogFileListByServer.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,42 @@ | ||
{ | ||
"parameters": { | ||
"serverName": "testserver", | ||
"resourceGroupName": "TestGroup", | ||
"api-version": "2017-12-01-preview", | ||
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"name": "postgresql-2017-06-22_010000.log", | ||
"sizeInKB": 4, | ||
"createdTime": "0001-01-01T00:00:00+00:00", | ||
"lastModifiedTime": "2017-06-22T01:59:36+00:00", | ||
"type": "text", | ||
"url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_010000.log?sv=2015-04-05&sr=f&sig=gqIQsa6VyGyUNpzYYPWLP5gM%2BeF1so9GYbHKu6Zs0DM%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" | ||
}, | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/postgresql-2017-06-22_010000.log", | ||
"name": "postgresql-2017-06-22_010000.log", | ||
"type": "Microsoft.DBforMySQL/servers/logFiles" | ||
}, | ||
{ | ||
"properties": { | ||
"name": "postgresql-2017-06-22_020000.log", | ||
"sizeInKB": 1, | ||
"createdTime": "0001-01-01T00:00:00+00:00", | ||
"lastModifiedTime": "2017-06-22T02:19:36+00:00", | ||
"type": "text", | ||
"url": "https://wasd2stageneu1btlm4.file.core.windows.net/42679871f6cc4302b39ab9c2e3044df3/pg_log/postgresql-2017-06-22_020000.log?sv=2015-04-05&sr=f&sig=i99UWBlYfR0tKaxix8yHAOnfym4HV9Auto6BbZogyRs%3D&se=2017-06-22T03%3A21%3A09Z&sp=r" | ||
}, | ||
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/servers/testserver/logFiles/postgresql-2017-06-22_020000.log", | ||
"name": "postgresql-2017-06-22_020000.log", | ||
"type": "Microsoft.DBforMySQL/servers/logFiles" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.