diff --git a/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json b/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json new file mode 100644 index 0000000000..60fad181f1 --- /dev/null +++ b/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json @@ -0,0 +1,452 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AutonomousDevelopmentPlatform", + "description": "Microsoft AutonomousDevelopmentPlatform Resource Types", + "resourceDefinitions": { + "accounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-11-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + "maxLength": 50 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the ADP account" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AccountProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ADP account properties" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/accounts_dataPools_childResource" + } + ] + } + }, + "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.AutonomousDevelopmentPlatform/accounts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AutonomousDevelopmentPlatform/accounts" + }, + "accounts_dataPools": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-11-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + "maxLength": 50 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Data Pool" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LegacyDataPoolProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Data Pool properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools" + }, + "dataPools": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-11-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + "maxLength": 50 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Data Pool" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DataPoolProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Data Pool properties" + }, + "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.AutonomousDevelopmentPlatform/dataPools" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AutonomousDevelopmentPlatform/dataPools" + } + }, + "definitions": { + "AccountProperties": { + "type": "object", + "properties": {}, + "description": "ADP account properties" + }, + "accounts_dataPools_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-11-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*", + "maxLength": 50 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Data Pool" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LegacyDataPoolProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Data Pool properties" + }, + "type": { + "type": "string", + "enum": [ + "dataPools" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AutonomousDevelopmentPlatform/accounts/dataPools" + }, + "DataPoolProperties": { + "type": "object", + "properties": { + "encryption": { + "oneOf": [ + { + "$ref": "#/definitions/KeyVaultProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "storageAccountCount": { + "oneOf": [ + { + "type": "integer", + "minimum": 1 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The amount of storage accounts provisioned per Data Pool. Default: 5" + }, + "storageLocation": { + "type": "string", + "description": "The location where Data Pool data will be stored. Defaults to the location property." + }, + "storageSku": { + "oneOf": [ + { + "$ref": "#/definitions/StorageSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Storage SKU." + } + }, + "description": "Data Pool properties" + }, + "KeyVaultProperties": { + "type": "object", + "properties": { + "identity": { + "type": "string", + "description": "The client ID of the identity which will be used to access key vault." + }, + "keyIdentifier": { + "type": "string", + "description": "Key vault uri to access the encryption key." + } + } + }, + "LegacyDataPoolEncryption": { + "type": "object", + "properties": { + "keyName": { + "type": "string", + "description": "The name of Key Vault key" + }, + "keyVaultUri": { + "type": "string", + "description": "The URI of a soft delete-enabled Key Vault that is in the same location as the Data Pool location" + }, + "keyVersion": { + "type": "string", + "description": "The version of Key Vault key" + }, + "userAssignedIdentity": { + "type": "string", + "description": "The resource ID of a user-assigned Managed Identity used to access the encryption key in the Key Vault. Requires access to the key operations get, wrap, unwrap, and recover" + } + }, + "required": [ + "keyName", + "keyVaultUri", + "userAssignedIdentity" + ], + "description": "Encryption properties of a Data Pool" + }, + "LegacyDataPoolLocation": { + "type": "object", + "properties": { + "encryption": { + "oneOf": [ + { + "$ref": "#/definitions/LegacyDataPoolEncryption" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Encryption properties of a Data Pool" + }, + "name": { + "type": "string", + "description": "The location name" + }, + "storageAccountCount": { + "oneOf": [ + { + "type": "integer", + "minimum": 1 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The amount of storage accounts provisioned per Data Pool. Default: 5" + }, + "storageSku": { + "oneOf": [ + { + "$ref": "#/definitions/StorageSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Storage SKU." + } + }, + "required": [ + "name" + ], + "description": "Location of a Data Pool" + }, + "LegacyDataPoolProperties": { + "type": "object", + "properties": { + "locations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/LegacyDataPoolLocation" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gets or sets the collection of locations where Data Pool resources should be created" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags" + } + }, + "description": "Data Pool properties" + }, + "StorageSku": { + "type": "object", + "properties": { + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Standard_LRS", + "Standard_GRS", + "Standard_Ragrs", + "Standard_ZRS", + "Premium_LRS", + "Premium_ZRS", + "Standard_Gzrs", + "Standard_Ragzrs" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The SKU name." + } + }, + "required": [ + "name" + ], + "description": "The Storage SKU." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index bbfcb896af..70bef55eed 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -1999,6 +1999,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-02-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts_dataPools" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/accounts_dataPools" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-11-01-preview/Microsoft.AutonomousDevelopmentPlatform.json#/resourceDefinitions/dataPools" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-03-20/Microsoft.AVS.json#/resourceDefinitions/privateClouds" },