Skip to content

Commit 3d12d70

Browse files
Added swagger files for PostgreSQL Flexible Server preview (#10020)
* Initial swagger changes for SSPG. * Successfully validated the postgresql.json * Create different properties for Create and Update * Updated the Firewall rules api's. * Added Customer maintenance Window Get operation. * Added Delete operation for CMW * Added put API for CMW. * Added PITR API. * Fix for avocado and Spellcheck validations * Fixed the prettier check issues. * Fixed model validaiton error for Create * Fixed FirewallRuls_Create model validation * Fixed ConfigurationUpdate example json * Fixed Firewall Rules Get API * Fixed prettier issues for Configuration Update. * Fixed Update configuration schema * Fixed Create PITR server schema * Fixed semantic validations * Fixed Lint Diff errors * Removed next links * resolved code review comments * resolved code review comments * added the state properties * Fixed the server update example. * Resolved few code review comments * added pagination for all list operations. * Updated the CMW API Contracts. * rename from singleServers to flexibleServers * Updated cloud error body to common types. * Fixed lint errors. * Fixed the prettier * Revert "Fixed the prettier" This reverts commit 5140f06. * Revert "Fixed lint errors." This reverts commit fe54942. * Fixed new lint errors * state property name changes * Fixed the model validation errors * Fixed server list by resource group * publicIpAddressRequested to publicNetworkAccess * Added storage profile and Sku * Added Burstable as custom word. * Fix for R3020 PathResourceProviderNamePascalCase * Microsoft.DBForPostgreSQL to Microsoft.DBForPostgreSql * Fixed Lint errors R2016, R4010 * Fix for R2020 * Change names for Operation Ids. * Marked fields as readonly and LintDiff Error * Fixed model validation errors * Fixed lint diff * Fixed the Comments for Server object create * changed the put to post for update configurations * Removed the Confgiration Update for now
1 parent f50289e commit 3d12d70

26 files changed

+4588
-0
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ brazilsouth
239239
browsable
240240
bruceper
241241
Bsaling
242+
Burstable
242243
BYOC
243244
BYOK
244245
BYOL
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-02-14-privatepreview",
4+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
5+
"nameAvailabilityRequest": {
6+
"name": "name1",
7+
"type": "Microsoft.DBforPostgreSQL/flexibleServers"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"nameAvailable": true,
14+
"message": "",
15+
"name": "name1",
16+
"type": "Microsoft.DBforPostgreSQL/flexibleServers"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"configurationName": "array_nulls",
4+
"serverName": "testserver",
5+
"resourceGroupName": "TestGroup",
6+
"api-version": "2017-12-01",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"properties": {
13+
"value": "on",
14+
"description": "Enable input of NULL elements in arrays.",
15+
"defaultValue": "on",
16+
"dataType": "Boolean",
17+
"allowedValues": "on,off",
18+
"source": "system-default"
19+
},
20+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls",
21+
"name": "array_nulls",
22+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations"
23+
}
24+
}
25+
}
26+
}

specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/ConfigurationListByServer.json

Lines changed: 1902 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parameters": {
3+
"maintenanceWindowName": "customerMaintenanceWindow",
4+
"serverName": "testserver",
5+
"resourceGroupName": "testrg",
6+
"api-version": "2020-02-14-privatepreview",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
8+
"parameters": {
9+
"properties": {
10+
"dayOfWeek": 1,
11+
"startHour": 0,
12+
"startMinute": 30,
13+
"durationInMinutes": 30
14+
}
15+
}
16+
},
17+
"responses": {
18+
"201": {
19+
"body": {
20+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow",
21+
"name": "customerMaintenanceWindow",
22+
"properties": {
23+
"dayOfWeek": 1,
24+
"startHour": 0,
25+
"startMinute": 30,
26+
"durationInMinutes": 30
27+
},
28+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/maintenanceWindows"
29+
}
30+
},
31+
"200": {
32+
"body": {
33+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow",
34+
"name": "customerMaintenanceWindow",
35+
"properties": {
36+
"dayOfWeek": 1,
37+
"startHour": 0,
38+
"startMinute": 30,
39+
"durationInMinutes": 30
40+
},
41+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/maintenanceWindows"
42+
}
43+
},
44+
"202": {}
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"maintenanceWindowName": "customerMaintenanceWindow",
4+
"serverName": "testserver",
5+
"resourceGroupName": "TestGroup",
6+
"api-version": "2020-02-14-privatepreview",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"maintenanceWindowName": "customerMaintenanceWindow",
4+
"serverName": "testserver",
5+
"resourceGroupName": "testrg",
6+
"api-version": "2020-02-14-privatepreview",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow",
13+
"name": "customerMaintenanceWindow",
14+
"properties": {
15+
"dayOfWeek": 1,
16+
"startHour": 0,
17+
"startMinute": 30,
18+
"durationInMinutes": 30
19+
},
20+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/maintenanceWindows"
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"serverName": "testserver",
4+
"resourceGroupName": "testrg",
5+
"api-version": "2020-02-14-privatepreview",
6+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow",
14+
"name": "customerMaintenanceWindow",
15+
"properties": {
16+
"dayOfWeek": 1,
17+
"startHour": 0,
18+
"startMinute": 30,
19+
"durationInMinutes": 30
20+
},
21+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/maintenanceWindows"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"firewallRuleName": "rule1",
4+
"serverName": "testserver",
5+
"resourceGroupName": "TestGroup",
6+
"api-version": "2020-02-14-privatepreview",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
8+
"parameters": {
9+
"properties": {
10+
"startIpAddress": "0.0.0.0",
11+
"endIpAddress": "255.255.255.255"
12+
}
13+
}
14+
},
15+
"responses": {
16+
"201": {
17+
"body": {
18+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1",
19+
"name": "rule1",
20+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules",
21+
"properties": {
22+
"startIpAddress": "0.0.0.0",
23+
"endIpAddress": "255.255.255.255"
24+
}
25+
}
26+
},
27+
"200": {
28+
"body": {
29+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1",
30+
"name": "rule1",
31+
"type": "Microsoft.DBforPostgreSQL/flexibleServers/firewallRules",
32+
"properties": {
33+
"startIpAddress": "0.0.0.0",
34+
"endIpAddress": "255.255.255.255"
35+
}
36+
}
37+
},
38+
"202": {}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"firewallRuleName": "rule1",
4+
"serverName": "testserver",
5+
"resourceGroupName": "TestGroup",
6+
"api-version": "2020-02-14-privatepreview",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}

0 commit comments

Comments
 (0)