From 237f8be28719a7a9cd86003b37a9c7010b8f64ef Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 15 Jun 2021 03:32:56 +0000 Subject: [PATCH] CodeGen from PR 14671 in Azure/azure-rest-api-specs Resume V2021-02-01-Preview BackupShortTermRetentionPolicies API Specification (#14671) * Resume V2021-02-01-Preview BackupShortTermRetentionPolicies API Specification * Prettier check fix * comment Co-authored-by: Lillian Liu --- schemas/2020-11-01-preview/Microsoft.Sql.json | 6 +++--- schemas/2021-02-01-preview/Microsoft.Sql.json | 17 ++++++++++++++--- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/schemas/2020-11-01-preview/Microsoft.Sql.json b/schemas/2020-11-01-preview/Microsoft.Sql.json index 51283ce3e7..85c0c41a72 100644 --- a/schemas/2020-11-01-preview/Microsoft.Sql.json +++ b/schemas/2020-11-01-preview/Microsoft.Sql.json @@ -1381,9 +1381,6 @@ "type": "array", "items": { "oneOf": [ - { - "$ref": "#/definitions/servers_databases_backupShortTermRetentionPolicies_childResource" - }, { "$ref": "#/definitions/servers_databases_extendedAuditingSettings_childResource" }, @@ -1408,6 +1405,9 @@ { "$ref": "#/definitions/servers_databases_workloadGroups_childResource" }, + { + "$ref": "#/definitions/servers_databases_backupShortTermRetentionPolicies_childResource" + }, { "$ref": "#/definitions/servers_databases_extensions_childResource" }, diff --git a/schemas/2021-02-01-preview/Microsoft.Sql.json b/schemas/2021-02-01-preview/Microsoft.Sql.json index 341a28eb19..b1ad00bd20 100644 --- a/schemas/2021-02-01-preview/Microsoft.Sql.json +++ b/schemas/2021-02-01-preview/Microsoft.Sql.json @@ -1385,13 +1385,13 @@ "items": { "oneOf": [ { - "$ref": "#/definitions/servers_databases_extensions_childResource" + "$ref": "#/definitions/servers_databases_backupShortTermRetentionPolicies_childResource" }, { - "$ref": "#/definitions/servers_databases_ledgerDigestUploads_childResource" + "$ref": "#/definitions/servers_databases_extensions_childResource" }, { - "$ref": "#/definitions/servers_databases_backupShortTermRetentionPolicies_childResource" + "$ref": "#/definitions/servers_databases_ledgerDigestUploads_childResource" }, { "$ref": "#/definitions/servers_databases_extendedAuditingSettings_childResource" @@ -3179,6 +3179,17 @@ "BackupShortTermRetentionPolicyProperties": { "type": "object", "properties": { + "diffBackupIntervalInHours": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases." + }, "retentionDays": { "oneOf": [ {