Skip to content

Commit 708ee73

Browse files
author
Autogenerator Pipeline
committed
Autogenerate schemas
2 parents 943c6e4 + 810c23f commit 708ee73

File tree

2 files changed

+192
-0
lines changed

2 files changed

+192
-0
lines changed
Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2020-11-20/Microsoft.Insights.Application.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.Insights",
5+
"description": "Microsoft Insights Resource Types",
6+
"resourceDefinitions": {
7+
"workbooktemplates": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2020-11-20"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "Resource location"
19+
},
20+
"name": {
21+
"type": "string",
22+
"description": "The name of the Application Insights component resource."
23+
},
24+
"properties": {
25+
"oneOf": [
26+
{
27+
"$ref": "#/definitions/WorkbookTemplateProperties"
28+
},
29+
{
30+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
31+
}
32+
],
33+
"description": "Properties that contain a workbook template."
34+
},
35+
"tags": {
36+
"oneOf": [
37+
{
38+
"type": "object",
39+
"additionalProperties": {
40+
"type": "string"
41+
},
42+
"properties": {}
43+
},
44+
{
45+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
46+
}
47+
],
48+
"description": "Resource tags"
49+
},
50+
"type": {
51+
"type": "string",
52+
"enum": [
53+
"Microsoft.Insights/workbooktemplates"
54+
]
55+
}
56+
},
57+
"required": [
58+
"apiVersion",
59+
"location",
60+
"name",
61+
"properties",
62+
"type"
63+
],
64+
"description": "Microsoft.Insights/workbooktemplates"
65+
}
66+
},
67+
"definitions": {
68+
"WorkbookTemplateGallery": {
69+
"type": "object",
70+
"properties": {
71+
"category": {
72+
"type": "string",
73+
"description": "Category for the gallery."
74+
},
75+
"name": {
76+
"type": "string",
77+
"description": "Name of the workbook template in the gallery."
78+
},
79+
"order": {
80+
"oneOf": [
81+
{
82+
"type": "integer"
83+
},
84+
{
85+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
86+
}
87+
],
88+
"description": "Order of the template within the gallery."
89+
},
90+
"resourceType": {
91+
"type": "string",
92+
"description": "Azure resource type supported by the gallery."
93+
},
94+
"type": {
95+
"type": "string",
96+
"description": "Type of workbook supported by the workbook template."
97+
}
98+
},
99+
"description": "Gallery information for a workbook template."
100+
},
101+
"WorkbookTemplateLocalizedGallery": {
102+
"type": "object",
103+
"properties": {
104+
"galleries": {
105+
"oneOf": [
106+
{
107+
"type": "array",
108+
"items": {
109+
"$ref": "#/definitions/WorkbookTemplateGallery"
110+
}
111+
},
112+
{
113+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
114+
}
115+
],
116+
"description": "Workbook galleries supported by the template."
117+
},
118+
"templateData": {
119+
"type": "object",
120+
"properties": {},
121+
"description": "Valid JSON object containing workbook template payload."
122+
}
123+
},
124+
"description": "Localized template data and gallery information."
125+
},
126+
"WorkbookTemplateProperties": {
127+
"type": "object",
128+
"properties": {
129+
"author": {
130+
"type": "string",
131+
"description": "Information about the author of the workbook template."
132+
},
133+
"galleries": {
134+
"oneOf": [
135+
{
136+
"type": "array",
137+
"items": {
138+
"$ref": "#/definitions/WorkbookTemplateGallery"
139+
}
140+
},
141+
{
142+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
143+
}
144+
],
145+
"description": "Workbook galleries supported by the template."
146+
},
147+
"localized": {
148+
"oneOf": [
149+
{
150+
"type": "object",
151+
"additionalProperties": {
152+
"type": "array",
153+
"items": {
154+
"$ref": "#/definitions/WorkbookTemplateLocalizedGallery"
155+
}
156+
},
157+
"properties": {}
158+
},
159+
{
160+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
161+
}
162+
],
163+
"description": "Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal."
164+
},
165+
"priority": {
166+
"oneOf": [
167+
{
168+
"type": "integer"
169+
},
170+
{
171+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
172+
}
173+
],
174+
"description": "Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode."
175+
},
176+
"templateData": {
177+
"type": "object",
178+
"properties": {},
179+
"description": "Valid JSON object containing workbook template payload."
180+
}
181+
},
182+
"required": [
183+
"galleries",
184+
"templateData"
185+
],
186+
"description": "Properties that contain a workbook template."
187+
}
188+
}
189+
}

schemas/common/autogeneratedResources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5620,6 +5620,9 @@
56205620
{
56215621
"$ref": "https://schema.management.azure.com/schemas/2020-10-20/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks"
56225622
},
5623+
{
5624+
"$ref": "https://schema.management.azure.com/schemas/2020-11-20/Microsoft.Insights.Application.json#/resourceDefinitions/workbooktemplates"
5625+
},
56235626
{
56245627
"$ref": "https://schema.management.azure.com/schemas/2021-03-08/Microsoft.Insights.Application.json#/resourceDefinitions/myWorkbooks"
56255628
},

0 commit comments

Comments
 (0)