From 3b72939c29e67b6b92eb924699dddacadde93d76 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 15 Nov 2022 22:43:57 +0000 Subject: [PATCH] CodeGen from PR 21561 in Azure/azure-rest-api-specs Merge b1bb368b668f7d0c8a5db8b0ae6f0307f65cdaf9 into b9f54e34813eb04f86d8868a55de795699e6ada5 --- .../subscriptionDeploymentTemplate.json | 9 + .../managementGroupDeploymentTemplate.json | 6 + .../2019-08-01/tenantDeploymentTemplate.json | 3 + schemas/2022-09-01/Microsoft.Resources.json | 689 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 6 + 5 files changed, 713 insertions(+) create mode 100644 schemas/2022-09-01/Microsoft.Resources.json diff --git a/schemas/2018-05-01/subscriptionDeploymentTemplate.json b/schemas/2018-05-01/subscriptionDeploymentTemplate.json index 3d7f9da86d..b012977c81 100644 --- a/schemas/2018-05-01/subscriptionDeploymentTemplate.json +++ b/schemas/2018-05-01/subscriptionDeploymentTemplate.json @@ -1331,6 +1331,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#/subscription_resourceDefinitions/resourceGroups" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/subscription_resourceDefinitions/deployments" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/subscription_resourceDefinitions/resourceGroups" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/unknown_resourceDefinitions/tags" + }, { "$ref": "https://schema.management.azure.com/schemas/2019-05-01-preview/Microsoft.Support.json#/subscription_resourceDefinitions/supportTickets" }, diff --git a/schemas/2019-08-01/managementGroupDeploymentTemplate.json b/schemas/2019-08-01/managementGroupDeploymentTemplate.json index 08f1c00616..0bcf2c5962 100644 --- a/schemas/2019-08-01/managementGroupDeploymentTemplate.json +++ b/schemas/2019-08-01/managementGroupDeploymentTemplate.json @@ -841,6 +841,12 @@ }, { "$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.Resources.json#/unknown_resourceDefinitions/tags" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/managementGroup_resourceDefinitions/deployments" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/unknown_resourceDefinitions/tags" } ] } diff --git a/schemas/2019-08-01/tenantDeploymentTemplate.json b/schemas/2019-08-01/tenantDeploymentTemplate.json index 4c9b43a62e..71ba5a512e 100644 --- a/schemas/2019-08-01/tenantDeploymentTemplate.json +++ b/schemas/2019-08-01/tenantDeploymentTemplate.json @@ -892,6 +892,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.Resources.json#/tenant_resourceDefinitions/deployments" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/tenant_resourceDefinitions/deployments" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-11-01-preview/Microsoft.Subscription.json#/tenant_resourceDefinitions/subscriptionDefinitions" }, diff --git a/schemas/2022-09-01/Microsoft.Resources.json b/schemas/2022-09-01/Microsoft.Resources.json new file mode 100644 index 0000000000..fd291b6420 --- /dev/null +++ b/schemas/2022-09-01/Microsoft.Resources.json @@ -0,0 +1,689 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Resources", + "description": "Microsoft Resources Resource Types", + "resourceDefinitions": { + "deployments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the deployment." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/deployments" + ] + }, + "subscriptionId": { + "type": "string", + "description": "The subscription to deploy to" + }, + "resourceGroup": { + "type": "string", + "description": "The resource group to deploy to", + "pattern": "^[-\\w\\._\\(\\)]+$", + "maxLength": 90 + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Resources/deployments" + } + }, + "subscription_resourceDefinitions": { + "deployments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the deployment." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/deployments" + ] + }, + "resourceGroup": { + "type": "string", + "description": "The resource group to deploy to", + "pattern": "^[-\\w\\._\\(\\)]+$", + "maxLength": 90 + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Resources/deployments" + }, + "resourceGroups": { + "type": "object", + "properties": { + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "maxLength": 90, + "description": "the resource group name" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/resourceGroups" + ] + }, + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "location": { + "type": "string", + "description": "the resource group location" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource group tags." + } + }, + "required": [ + "name", + "type", + "apiVersion", + "location" + ], + "description": "Microsoft.Resources/resourceGroups" + } + }, + "managementGroup_resourceDefinitions": { + "deployments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the deployment." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/deployments" + ] + }, + "subscriptionId": { + "type": "string", + "description": "The subscription to deploy to" + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Resources/deployments" + } + }, + "tenant_resourceDefinitions": { + "deployments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the deployment." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/deployments" + ] + }, + "subscriptionId": { + "type": "string", + "description": "The subscription to deploy to" + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Resources/deployments" + } + }, + "unknown_resourceDefinitions": { + "deployments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "location": { + "type": "string", + "description": "The location to store the deployment data." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 64 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the deployment." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/deployments" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Resources/deployments" + }, + "tags": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01" + ] + }, + "name": { + "type": "string", + "enum": [ + "default" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/Tags" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A dictionary of name and value pairs." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Resources/tags" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Resources/tags" + } + }, + "definitions": { + "DebugSetting": { + "type": "object", + "properties": { + "detailLevel": { + "type": "string", + "description": "Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations." + } + }, + "description": "The debug setting." + }, + "DeploymentProperties": { + "type": "object", + "properties": { + "debugSetting": { + "oneOf": [ + { + "$ref": "#/definitions/DebugSetting" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The debug setting." + }, + "expressionEvaluationOptions": { + "oneOf": [ + { + "$ref": "#/definitions/ExpressionEvaluationOptions" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Specifies whether template expressions are evaluated within the scope of the parent template or nested template." + }, + "mode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Incremental", + "Complete" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources." + }, + "onErrorDeployment": { + "oneOf": [ + { + "$ref": "#/definitions/OnErrorDeployment" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deployment on error behavior." + }, + "parameters": { + "type": "object", + "properties": {}, + "description": "Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string." + }, + "parametersLink": { + "oneOf": [ + { + "$ref": "#/definitions/ParametersLink" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Entity representing the reference to the deployment parameters." + }, + "template": { + "type": "object", + "properties": {}, + "description": "The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both." + }, + "templateLink": { + "oneOf": [ + { + "$ref": "#/definitions/TemplateLink" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Entity representing the reference to the template." + } + }, + "required": [ + "mode" + ], + "description": "Deployment properties." + }, + "ExpressionEvaluationOptions": { + "type": "object", + "properties": { + "scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "NotSpecified", + "Outer", + "Inner" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The scope to be used for evaluation of parameters, variables and functions in a nested template." + } + }, + "description": "Specifies whether template expressions are evaluated within the scope of the parent template or nested template." + }, + "OnErrorDeployment": { + "type": "object", + "properties": { + "deploymentName": { + "type": "string", + "description": "The deployment to be used on error case." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "LastSuccessful", + "SpecificDeployment" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The deployment on error behavior type. Possible values are LastSuccessful and SpecificDeployment." + } + }, + "description": "Deployment on error behavior." + }, + "ParametersLink": { + "type": "object", + "properties": { + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + }, + "uri": { + "type": "string", + "description": "The URI of the parameters file." + } + }, + "required": [ + "uri" + ], + "description": "Entity representing the reference to the deployment parameters." + }, + "Tags": { + "type": "object", + "properties": { + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "A dictionary of name and value pairs." + }, + "TemplateLink": { + "type": "object", + "properties": { + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + }, + "id": { + "type": "string", + "description": "The resource id of a Template Spec. Use either the id or uri property, but not both." + }, + "queryString": { + "type": "string", + "description": "The query string (for example, a SAS token) to be used with the templateLink URI." + }, + "relativePath": { + "type": "string", + "description": "The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs" + }, + "uri": { + "type": "string", + "description": "The URI of the template to deploy. Use either the uri or id property, but not both." + } + }, + "description": "Entity representing the reference to the template." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 65d26cda5e..bed0e5df79 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -23263,6 +23263,12 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#/resourceDefinitions/templateSpecs_versions" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/resourceDefinitions/deployments" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.Resources.json#/unknown_resourceDefinitions/tags" + }, { "$ref": "https://schema.management.azure.com/schemas/2014-08-01-preview/Microsoft.Scheduler.json#/resourceDefinitions/jobCollections" },