-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 18797 in Azure/azure-rest-api-specs
Fix typo in Microsoft.Resources/changes swagger (#18797)
- Loading branch information
SDKAuto
committed
Apr 25, 2022
1 parent
3cf49b0
commit 79abb77
Showing
3 changed files
with
373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,364 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2022-02-01/Microsoft.Resources.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.Resources", | ||
"description": "Microsoft Resources Resource Types", | ||
"resourceDefinitions": { | ||
"templateSpecs": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2022-02-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The location of the Template Spec. It cannot be changed after Template Spec creation. It must be one of the supported Azure locations." | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^[-\\w\\._\\(\\)]+$", | ||
"minLength": 1, | ||
"maxLength": 90 | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Name of the Template Spec." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/TemplateSpecProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Template Spec properties." | ||
}, | ||
"resources": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/templateSpecs_versions_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.Resources/templateSpecs" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"location", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Resources/templateSpecs" | ||
}, | ||
"templateSpecs_versions": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2022-02-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The location of the Template Spec Version. It must match the location of the parent Template Spec." | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^[-\\w\\._\\(\\)]+$", | ||
"minLength": 1, | ||
"maxLength": 90 | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The version of the Template Spec." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/TemplateSpecVersionProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Template Spec Version 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.Resources/templateSpecs/versions" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"location", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Resources/templateSpecs/versions" | ||
} | ||
}, | ||
"definitions": { | ||
"LinkedTemplateArtifact": { | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"type": "string", | ||
"description": "A filesystem safe relative path of the artifact." | ||
}, | ||
"template": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "The Azure Resource Manager template." | ||
} | ||
}, | ||
"required": [ | ||
"path", | ||
"template" | ||
], | ||
"description": "Represents a Template Spec artifact containing an embedded Azure Resource Manager template for use as a linked template." | ||
}, | ||
"TemplateSpecProperties": { | ||
"type": "object", | ||
"properties": { | ||
"description": { | ||
"type": "string", | ||
"maxLength": 4096, | ||
"description": "Template Spec description." | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"maxLength": 64, | ||
"description": "Template Spec display name." | ||
}, | ||
"metadata": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "The Template Spec metadata. Metadata is an open-ended object and is typically a collection of key-value pairs." | ||
} | ||
}, | ||
"description": "Template Spec properties." | ||
}, | ||
"templateSpecs_versions_childResource": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2022-02-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The location of the Template Spec Version. It must match the location of the parent Template Spec." | ||
}, | ||
"name": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"pattern": "^[-\\w\\._\\(\\)]+$", | ||
"minLength": 1, | ||
"maxLength": 90 | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The version of the Template Spec." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/TemplateSpecVersionProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Template Spec Version 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": [ | ||
"versions" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"location", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.Resources/templateSpecs/versions" | ||
}, | ||
"TemplateSpecVersionProperties": { | ||
"type": "object", | ||
"properties": { | ||
"description": { | ||
"type": "string", | ||
"maxLength": 4096, | ||
"description": "Template Spec version description." | ||
}, | ||
"linkedTemplates": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/LinkedTemplateArtifact" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "An array of linked template artifacts." | ||
}, | ||
"mainTemplate": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "The main Azure Resource Manager template content." | ||
}, | ||
"metadata": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "The version metadata. Metadata is an open-ended object and is typically a collection of key-value pairs." | ||
}, | ||
"uiFormDefinition": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "The Azure Resource Manager template UI definition content." | ||
} | ||
}, | ||
"description": "Template Spec Version properties." | ||
} | ||
}, | ||
"subscription_resourceDefinitions": { | ||
"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-02-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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters