Skip to content

Commit

Permalink
[Don't Merge, Service roll out 2/28/2018] Swagger For new rdbms API c…
Browse files Browse the repository at this point in the history
…hange for new biz model (#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
QingqingYuan authored and marstr committed Feb 26, 2018
1 parent 440ee80 commit 1760a5c
Show file tree
Hide file tree
Showing 46 changed files with 7,301 additions and 4 deletions.
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": ""
}
}
}
}
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": {}
}
}
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"
}
}
}
}

Large diffs are not rendered by default.

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": {}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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": {}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
]
}
}
}
}
Loading

0 comments on commit 1760a5c

Please sign in to comment.