From dbf2800c8113d1946a0194d953662173cf79dc79 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 7 Jul 2021 08:52:54 +0000 Subject: [PATCH] CodeGen from PR 15024 in Azure/azure-rest-api-specs Merge bae936788e621147ca5a18ed326f8a573f450fbd into 036c2de2b40ad05a1542b665a9e8bda18c813194 --- .../Microsoft.RecoveryServices.Backup.json | 138 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 141 insertions(+) diff --git a/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json b/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json index 16a9fcbd8f..ba288e50e2 100644 --- a/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json +++ b/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json @@ -399,6 +399,75 @@ ], "description": "Microsoft.RecoveryServices/vaults/backupPolicies" }, + "vaults_backupstorageconfig": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-01" + ] + }, + "eTag": { + "type": "string", + "description": "Optional ETag." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/vaultstorageconfig$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/BackupResourceConfig" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource storage details." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.RecoveryServices/vaults/backupstorageconfig" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RecoveryServices/vaults/backupstorageconfig" + }, "vaults_privateEndpointConnections": { "type": "object", "properties": { @@ -1641,6 +1710,75 @@ ], "description": "Azure Workload SQL Auto Protection intent item." }, + "BackupResourceConfig": { + "type": "object", + "properties": { + "crossRegionRestoreFlag": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Opt in details of Cross Region Restore feature." + }, + "storageModelType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Invalid", + "GeoRedundant", + "LocallyRedundant", + "ZoneRedundant", + "ReadAccessGeoZoneRedundant" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage type." + }, + "storageType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Invalid", + "GeoRedundant", + "LocallyRedundant", + "ZoneRedundant", + "ReadAccessGeoZoneRedundant" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage type." + }, + "storageTypeState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Invalid", + "Locked", + "Unlocked" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Locked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked." + } + }, + "description": "The resource storage details." + }, "BackupResourceEncryptionConfig": { "type": "object", "properties": { diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index f54933a50f..2089edf66a 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -7612,6 +7612,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json#/resourceDefinitions/vaults_backupPolicies" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json#/resourceDefinitions/vaults_backupstorageconfig" + }, { "$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.RecoveryServices.Backup.json#/resourceDefinitions/vaults_privateEndpointConnections" },