-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Added swagger files for PostgreSQL Flexible Server preview #10020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 27 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
827622f
Initial swagger changes for SSPG.
pradeepkintali ed0bc47
Successfully validated the postgresql.json
pradeepkintali 28033ca
Create different properties for Create and Update
pradeepkintali dada2ea
Updated the Firewall rules api's.
pradeepkintali 4ff4807
Added Customer maintenance Window Get operation.
pradeepkintali 0a97f09
Added Delete operation for CMW
pradeepkintali 25cf53a
Added put API for CMW.
pradeepkintali dde35dd
Added PITR API.
pradeepkintali 2ab2ccf
Fix for avocado and Spellcheck validations
pradeepkintali bd7e741
Fixed the prettier check issues.
pradeepkintali 47e6d05
Fixed model validaiton error for Create
pradeepkintali 74c3bb8
Fixed FirewallRuls_Create model validation
pradeepkintali 33e0e67
Fixed ConfigurationUpdate example json
pradeepkintali dac9bfb
Fixed Firewall Rules Get API
pradeepkintali a3eb875
Fixed prettier issues for Configuration Update.
pradeepkintali 3a5a752
Fixed Update configuration schema
pradeepkintali 929590d
Fixed Create PITR server schema
pradeepkintali ed9a1e5
Fixed semantic validations
pradeepkintali 1f33c22
Fixed Lint Diff errors
pradeepkintali 358e499
Removed next links
pradeepkintali bfe2e8b
resolved code review comments
pradeepkintali 0e0dcc6
resolved code review comments
pradeepkintali 583e4ac
added the state properties
pradeepkintali a66a6e0
Fixed the server update example.
pradeepkintali 000a2ee
Resolved few code review comments
pradeepkintali 183041b
added pagination for all list operations.
pradeepkintali 751e884
Updated the CMW API Contracts.
pradeepkintali 0aa09ec
rename from singleServers to flexibleServers
pradeepkintali 0e044cc
Updated cloud error body to common types.
pradeepkintali fe54942
Fixed lint errors.
pradeepkintali 5140f06
Fixed the prettier
pradeepkintali f5249e5
Revert "Fixed the prettier"
pradeepkintali e9c4228
Revert "Fixed lint errors."
pradeepkintali cafd00f
Fixed new lint errors
pradeepkintali 96b4378
state property name changes
pradeepkintali 910618a
Fixed the model validation errors
pradeepkintali 52e3852
Fixed server list by resource group
pradeepkintali c405c0b
publicIpAddressRequested to publicNetworkAccess
pradeepkintali 62d6e57
Added storage profile and Sku
pradeepkintali 0f83a73
Added Burstable as custom word.
pradeepkintali 19aa24e
Fix for R3020 PathResourceProviderNamePascalCase
pradeepkintali f24e896
Microsoft.DBForPostgreSQL to Microsoft.DBForPostgreSql
pradeepkintali 70035a2
Fixed Lint errors R2016, R4010
pradeepkintali 6cec660
Fix for R2020
pradeepkintali 61ba68f
Change names for Operation Ids.
pradeepkintali 4620f24
Marked fields as readonly and LintDiff Error
pradeepkintali d6fe61a
Fixed model validation errors
pradeepkintali 9540042
Fixed lint diff
pradeepkintali 7e6d21e
Fixed the Comments for Server object create
pradeepkintali 3a8e2b8
changed the put to post for update configurations
pradeepkintali 695b8ac
Removed the Confgiration Update for now
pradeepkintali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...oft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/CheckNameAvailability.json
This file contains hidden or 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,20 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
| "nameAvailabilityRequest": { | ||
| "name": "name1", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "nameAvailable": true, | ||
| "message": "", | ||
| "name": "name1", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers" | ||
| } | ||
| } | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
...icrosoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/ConfigurationGet.json
This file contains hidden or 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", | ||
| "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.DBforPostgreSQL/singleServers/testserver/configurations/array_nulls", | ||
| "name": "array_nulls", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/configurations" | ||
| } | ||
| } | ||
| } | ||
| } |
1,902 changes: 1,902 additions & 0 deletions
1,902
...DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/ConfigurationListByServer.json
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...osoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/ConfigurationUpdate.json
This file contains hidden or 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": { | ||
| "configurationName": "auto-vaccum", | ||
| "serverName": "testserver", | ||
| "resourceGroupName": "TestGroup", | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
| "parameters": { | ||
| "value": [ | ||
| { | ||
| "name": "auto-vaccum", | ||
| "properties": { | ||
| "value": "off" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "properties": { | ||
| "value": "off", | ||
| "description": "Enable input of NULL elements in arrays.", | ||
| "defaultValue": "on", | ||
| "dataType": "Boolean", | ||
| "allowedValues": "on,off", | ||
| "source": "user-override" | ||
| }, | ||
| "name": "auto-vaccum", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "202": {} | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
...ostgreSQL/preview/2020-02-14-privatepreview/examples/CustomerMaintenanceWindowCreate.json
This file contains hidden or 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,46 @@ | ||
| { | ||
| "parameters": { | ||
| "maintenanceWindowName": "customerMaintenanceWindow", | ||
| "serverName": "testserver", | ||
| "resourceGroupName": "testrg", | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
| "parameters": { | ||
| "properties": { | ||
| "dayOfWeek": 1, | ||
| "startHour": 0, | ||
| "startMinute": 30, | ||
| "durationInMinutes": 30 | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/singleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow", | ||
| "name": "customerMaintenanceWindow", | ||
| "properties": { | ||
| "dayOfWeek": 1, | ||
| "startHour": 0, | ||
| "startMinute": 30, | ||
| "durationInMinutes": 30 | ||
| }, | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/maintenanceWindows" | ||
| } | ||
| }, | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/singleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow", | ||
| "name": "customerMaintenanceWindow", | ||
| "properties": { | ||
| "dayOfWeek": 1, | ||
| "startHour": 0, | ||
| "startMinute": 30, | ||
| "durationInMinutes": 30 | ||
| }, | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/maintenanceWindows" | ||
| } | ||
| }, | ||
| "202": {} | ||
| } | ||
| } | ||
14 changes: 14 additions & 0 deletions
14
...ostgreSQL/preview/2020-02-14-privatepreview/examples/CustomerMaintenanceWindowDelete.json
This file contains hidden or 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": { | ||
| "maintenanceWindowName": "customerMaintenanceWindow", | ||
| "serverName": "testserver", | ||
| "resourceGroupName": "TestGroup", | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": {}, | ||
| "204": {} | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
...orPostgreSQL/preview/2020-02-14-privatepreview/examples/CustomerMaintenanceWindowGet.json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "parameters": { | ||
| "maintenanceWindowName": "customerMaintenanceWindow", | ||
| "serverName": "testserver", | ||
| "resourceGroupName": "testrg", | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
| }, | ||
| "responses": { | ||
pradeepkintali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/singleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow", | ||
| "name": "customerMaintenanceWindow", | ||
| "properties": { | ||
| "dayOfWeek": 1, | ||
| "startHour": 0, | ||
| "startMinute": 30, | ||
| "durationInMinutes": 30 | ||
| }, | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/maintenanceWindows" | ||
| } | ||
| } | ||
| } | ||
| } | ||
27 changes: 27 additions & 0 deletions
27
...SQL/preview/2020-02-14-privatepreview/examples/CustomerMaintenanceWindowListByServer.json
This file contains hidden or 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,27 @@ | ||
| { | ||
| "parameters": { | ||
| "serverName": "testserver", | ||
| "resourceGroupName": "testrg", | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/singleServers/prkinteastus/maintenanceWindows/customerMaintenanceWindow", | ||
| "name": "customerMaintenanceWindow", | ||
| "properties": { | ||
| "dayOfWeek": 1, | ||
| "startHour": 0, | ||
| "startMinute": 30, | ||
| "durationInMinutes": 30 | ||
| }, | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/maintenanceWindows" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
40 changes: 40 additions & 0 deletions
40
...rosoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/FirewallRuleCreate.json
This file contains hidden or 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": "2020-02-14-privatepreview", | ||
| "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.DBforPostgreSQL/servers/testserver/firewallRules/rule1", | ||
| "name": "rule1", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/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.DBforPostgreSQL/servers/testserver/firewallRules/rule1", | ||
| "name": "rule1", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/firewallRules", | ||
| "properties": { | ||
| "startIpAddress": "0.0.0.0", | ||
| "endIpAddress": "255.255.255.255" | ||
| } | ||
| } | ||
| }, | ||
| "202": {} | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
...rosoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/FirewallRuleDelete.json
This file contains hidden or 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": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
| }, | ||
| "responses": { | ||
| "200": {}, | ||
| "202": {}, | ||
| "204": {} | ||
| } | ||
| } |
22 changes: 22 additions & 0 deletions
22
...Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/FirewallRuleGet.json
This file contains hidden or 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": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/servers/testserver/firewallRules/rule1", | ||
| "name": "rule1", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/firewallRules", | ||
| "properties": { | ||
| "startIpAddress": "0.0.0.0", | ||
| "endIpAddress": "255.255.255.255" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
....DBforPostgreSQL/preview/2020-02-14-privatepreview/examples/FirewallRuleListByServer.json
This file contains hidden or 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,35 @@ | ||
| { | ||
| "parameters": { | ||
| "serverName": "testserver", | ||
| "resourceGroupName": "TestGroup", | ||
| "api-version": "2020-02-14-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff" | ||
| }, | ||
| "responses": { | ||
pradeepkintali marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "200": { | ||
| "body": { | ||
| "nextLink": "https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff//resourceGroups/testrg/providers/Microsoft.DBforPostgreSQL/singleservers/testserver/firewallRules?api-version=2020-02-14-privatepreview&$top=2&$skiptoken=skiptoken", | ||
| "value": [ | ||
| { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/singleServers/testserver/firewallRules/rule1", | ||
| "name": "rule1", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/firewallRules", | ||
| "properties": { | ||
| "startIpAddress": "0.0.0.0", | ||
| "endIpAddress": "255.255.255.255" | ||
| } | ||
| }, | ||
| { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/singleServers/testserver/firewallRules/rule2", | ||
| "name": "rule2", | ||
| "type": "Microsoft.DBforPostgreSQL/singleServers/firewallRules", | ||
| "properties": { | ||
| "startIpAddress": "1.0.0.0", | ||
| "endIpAddress": "255.0.0.0" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.