Skip to content

Commit

Permalink
update api version and PostgreSQL flexible server restart API
Browse files Browse the repository at this point in the history
  • Loading branch information
zhj committed May 12, 2021
1 parent 35cb543 commit 905c382
Show file tree
Hide file tree
Showing 26 changed files with 78 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"locationName": "WestUS"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"nameAvailabilityRequest": {
"name": "name1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"configurationName": "array_nulls",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"serverName": "testserver",
"configurationName": "event_scheduler",
"resourceGroupName": "testrg",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"firewallRuleName": "rule1",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"firewallRuleName": "rule1",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"firewallRuleName": "rule1",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-02-14-preview"
"api-version": "2021-05-12-privatepreview"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "pgtestsvc4",
"resourceGroupName": "testrg",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"location": "westus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "pgtestsvc4",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"location": "westus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "pgtestsvc1",
"resourceGroupName": "testrg",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "pgtestsvc1",
"resourceGroupName": "testrg",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"resourceGroupName": "testrg",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"restartWithFailover": true,
"failoverMode": "forcedFailover"
}
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "pgtestsvc4",
"resourceGroupName": "TestGroup",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"location": "westus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"serverName": "pgtestsvc4",
"resourceGroupName": "testrg",
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"parameters": {
"location": "westus",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-02-14-preview",
"api-version": "2021-05-12-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"locationName": "WestUS",
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "PostgreSQLServerManagementClient",
"description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.",
"version": "2020-02-14-preview"
"version": "2021-05-12-privatepreview"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -331,6 +331,9 @@
"x-ms-examples": {
"ServerRestart": {
"$ref": "./examples/ServerRestart.json"
},
"ServerRestartWithFailover": {
"$ref": "./examples/ServerRestartWithFailover.json"
}
},
"description": "Restarts a server.",
Expand All @@ -346,6 +349,14 @@
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "parameters",
"in": "body",
"schema": {
"$ref": "#/definitions/RestartParameter"
},
"description": "The parameters for restarting a server."
}
],
"responses": {
Expand Down Expand Up @@ -1749,6 +1760,20 @@
},
"description": "Represents a resource name availability."
},
"RestartParameter": {
"type": "object",
"properties": {
"restartWithFailover": {
"type": "boolean",
"description": "Indicates whether to restart the server with failover."
},
"failoverMode": {
"type": "string",
"description": "Failover mode."
}
},
"description": "Represents server restart parameters."
},
"CloudError": {
"x-ms-external": true,
"properties": {
Expand Down
13 changes: 13 additions & 0 deletions specification/postgresql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ description: The Microsoft Azure management API provides create, read, update, a
openapi-type: arm
tag: package-2020-01-01
```
### Tag: package-2021-05-12-privatepreview
These settings apply only when `--tag=package-2021-05-12-privatepreview` is specified on the command line.

``` yaml $(tag) == 'package-2021-05-12-privatepreview'
input-file:
- Microsoft.DBforPostgreSQL/preview/2020-11-05-preview/Databases.json
- Microsoft.DBforPostgreSQL/preview/2021-03-31-privatepreview/PrivateDnsZone.json
- Microsoft.DBforPostgreSQL/preview/2021-05-12-privatepreview/postgresql.json
```

### Tag: package-2021-04-10-privatepreview

These settings apply only when `--tag=package-2021-04-10-privatepreview` is specified on the command line.
Expand Down Expand Up @@ -234,6 +246,7 @@ input-file:
- $(this-folder)/Microsoft.DBforPostgreSQL/preview/2020-02-14-preview/postgresql.json
- $(this-folder)/Microsoft.DBforPostgreSQL/preview/2020-02-14-privatepreview/postgresql.json
- $(this-folder)/Microsoft.DBforPostgreSQL/preview/2021-04-10-privatepreview/postgresql.json
- $(this-folder)/Microsoft.DBforPostgreSQL/preview/2021-05-12-privatepreview/postgresql.json
- $(this-folder)/Microsoft.DBforPostgreSQL/preview/2020-01-01-privatepreview/DataEncryptionKeys.json
- $(this-folder)/Microsoft.DBforPostgreSQL/stable/2017-12-01/postgresql.json
- $(this-folder)/Microsoft.DBforPostgreSQL/stable/2017-12-01/ServerSecurityAlertPolicies.json
Expand Down

0 comments on commit 905c382

Please sign in to comment.