From 9dc61b35e333e0f753e36aac803211b22e15eca3 Mon Sep 17 00:00:00 2001 From: xunsun-commits <84804232+xunsun-commits@users.noreply.github.com> Date: Mon, 1 Nov 2021 04:33:27 -0700 Subject: [PATCH] Fix S360 item for FSPG swagger by adding default value to backupRetentionDays and maintenanceWindow (#16502) * Changed FSPG RestartParameter.failoverMode from string to enum for API 2021-06-01, 2021-06-01-preview, and 2021-06-15-privatepreview * Change enum first letter to lower case * Change to upper case * Fix S360 bugs for swagger FSPG 2020-02-14-preview, 2021-06-01-preview and 2021-06-01 APIs * Fix S360 item by adding default value to backupRetentionDays and maintenanceWindow --- .../preview/2021-06-01-preview/postgresql.json | 3 +++ .../stable/2021-06-01/postgresql.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2021-06-01-preview/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2021-06-01-preview/postgresql.json index 3baa3402d17a..7ccbbb6349f7 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2021-06-01-preview/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2021-06-01-preview/postgresql.json @@ -1423,6 +1423,7 @@ }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", + "default": null, "description": "Maintenance window properties of a server.", "x-ms-mutability": [ "update", @@ -1525,6 +1526,7 @@ }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", + "default": null, "description": "Maintenance window properties of a server.", "x-ms-mutability": [ "update", @@ -1631,6 +1633,7 @@ "backupRetentionDays": { "type": "integer", "format": "int32", + "default": 7, "description": "Backup retention days for the server." }, "geoRedundantBackup": { diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/postgresql.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/postgresql.json index bb28f42fb9f2..63abd95aadf0 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/postgresql.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2021-06-01/postgresql.json @@ -1423,6 +1423,7 @@ }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", + "default": null, "description": "Maintenance window properties of a server.", "x-ms-mutability": [ "update", @@ -1525,6 +1526,7 @@ }, "maintenanceWindow": { "$ref": "#/definitions/MaintenanceWindow", + "default": null, "description": "Maintenance window properties of a server.", "x-ms-mutability": [ "update", @@ -1631,6 +1633,7 @@ "backupRetentionDays": { "type": "integer", "format": "int32", + "default": 7, "description": "Backup retention days for the server." }, "geoRedundantBackup": {