Skip to content

Commit 690c469

Browse files
author
SDKAuto
committed
CodeGen from PR 13951 in Azure/azure-rest-api-specs
Merge b8fa252e6520f4dc59fe90f15cd26f45f78e74d5 into 7a2cc29033fe4027ef421267f1684efbd0d40a93
1 parent b83c958 commit 690c469

File tree

3 files changed

+176
-91
lines changed

3 files changed

+176
-91
lines changed

schemas/2015-05-01/Microsoft.Insights.Application.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,23 @@
154154
],
155155
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
156156
},
157+
"Type": {
158+
"oneOf": [
159+
{
160+
"type": "string",
161+
"enum": [
162+
"query",
163+
"function",
164+
"folder",
165+
"recent"
166+
]
167+
},
168+
{
169+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
170+
}
171+
],
172+
"description": "Enum indicating the type of the Analytics item."
173+
},
157174
"type": {
158175
"type": "string",
159176
"enum": [
@@ -494,6 +511,23 @@
494511
],
495512
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
496513
},
514+
"Type": {
515+
"oneOf": [
516+
{
517+
"type": "string",
518+
"enum": [
519+
"query",
520+
"function",
521+
"folder",
522+
"recent"
523+
]
524+
},
525+
{
526+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
527+
}
528+
],
529+
"description": "Enum indicating the type of the Analytics item."
530+
},
497531
"type": {
498532
"type": "string",
499533
"enum": [
@@ -1112,6 +1146,23 @@
11121146
],
11131147
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
11141148
},
1149+
"Type": {
1150+
"oneOf": [
1151+
{
1152+
"type": "string",
1153+
"enum": [
1154+
"query",
1155+
"function",
1156+
"folder",
1157+
"recent"
1158+
]
1159+
},
1160+
{
1161+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1162+
}
1163+
],
1164+
"description": "Enum indicating the type of the Analytics item."
1165+
},
11151166
"type": {
11161167
"type": "string",
11171168
"enum": [
@@ -1437,6 +1488,23 @@
14371488
],
14381489
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
14391490
},
1491+
"Type": {
1492+
"oneOf": [
1493+
{
1494+
"type": "string",
1495+
"enum": [
1496+
"query",
1497+
"function",
1498+
"folder",
1499+
"recent"
1500+
]
1501+
},
1502+
{
1503+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1504+
}
1505+
],
1506+
"description": "Enum indicating the type of the Analytics item."
1507+
},
14401508
"type": {
14411509
"type": "string",
14421510
"enum": [

schemas/2020-10-05-preview/Microsoft.Insights.Application.json

Lines changed: 102 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,6 @@
118118
],
119119
"description": "An XML configuration specification for a WebTest."
120120
},
121-
"ContentValidation": {
122-
"oneOf": [
123-
{
124-
"$ref": "#/definitions/WebTestPropertiesContentValidation"
125-
},
126-
{
127-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
128-
}
129-
],
130-
"description": "The collection of content validation properties"
131-
},
132121
"Description": {
133122
"type": "string",
134123
"description": "User defined description for this WebTest."
@@ -144,17 +133,6 @@
144133
],
145134
"description": "Is the test actively being monitored."
146135
},
147-
"ExpectedHttpStatusCode": {
148-
"oneOf": [
149-
{
150-
"type": "integer"
151-
},
152-
{
153-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
154-
}
155-
],
156-
"description": "Validate that the WebTest returns the http status code provided."
157-
},
158136
"Frequency": {
159137
"oneOf": [
160138
{
@@ -167,17 +145,6 @@
167145
],
168146
"description": "Interval in seconds between test runs for this WebTest. Default value is 300."
169147
},
170-
"IgnoreHttpsStatusCode": {
171-
"oneOf": [
172-
{
173-
"type": "boolean"
174-
},
175-
{
176-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
177-
}
178-
],
179-
"description": "When set, validation will ignore the status code."
180-
},
181148
"Kind": {
182149
"oneOf": [
183150
{
@@ -235,43 +202,32 @@
235202
],
236203
"description": "Allow for retries should this WebTest fail."
237204
},
238-
"SSLCertRemainingLifetimeCheck": {
239-
"oneOf": [
240-
{
241-
"type": "integer"
242-
},
243-
{
244-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
245-
}
246-
],
247-
"description": "A number of days to check still remain before the the existing SSL cert expires."
205+
"SyntheticMonitorId": {
206+
"type": "string",
207+
"description": "Unique ID of this WebTest. This is typically the same value as the Name field."
248208
},
249-
"SSLCheck": {
209+
"Timeout": {
250210
"oneOf": [
251211
{
252-
"type": "boolean"
212+
"type": "integer",
213+
"default": "30"
253214
},
254215
{
255216
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
256217
}
257218
],
258-
"description": "Checks to see if the SSL cert is still valid."
259-
},
260-
"SyntheticMonitorId": {
261-
"type": "string",
262-
"description": "Unique ID of this WebTest. This is typically the same value as the Name field."
219+
"description": "Seconds until this WebTest will timeout and fail. Default value is 30."
263220
},
264-
"Timeout": {
221+
"ValidationRules": {
265222
"oneOf": [
266223
{
267-
"type": "integer",
268-
"default": "30"
224+
"$ref": "#/definitions/WebTestPropertiesValidationRules"
269225
},
270226
{
271227
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
272228
}
273229
],
274-
"description": "Seconds until this WebTest will timeout and fail. Default value is 30."
230+
"description": "The collection of validation rule properties"
275231
}
276232
},
277233
"required": [
@@ -292,14 +248,10 @@
292248
},
293249
"description": "An XML configuration specification for a WebTest."
294250
},
295-
"WebTestPropertiesContentValidation": {
251+
"WebTestPropertiesRequest": {
296252
"type": "object",
297253
"properties": {
298-
"ContentMatch": {
299-
"type": "string",
300-
"description": "Content to look for in the return of the WebTest."
301-
},
302-
"IgnoreCase": {
254+
"FollowRedirects": {
303255
"oneOf": [
304256
{
305257
"type": "boolean"
@@ -308,9 +260,27 @@
308260
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
309261
}
310262
],
311-
"description": "When set, this value makes the ContentMatch validation case insensitive."
263+
"description": "Follow redirects for this web test."
312264
},
313-
"PassIfTextFound": {
265+
"Headers": {
266+
"oneOf": [
267+
{
268+
"type": "array",
269+
"items": {
270+
"$ref": "#/definitions/HeaderField"
271+
}
272+
},
273+
{
274+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
275+
}
276+
],
277+
"description": "List of headers and their values to add to the WebTest call."
278+
},
279+
"HttpVerb": {
280+
"type": "string",
281+
"description": "Http verb to use for this web test."
282+
},
283+
"ParseDependentRequests": {
314284
"oneOf": [
315285
{
316286
"type": "boolean"
@@ -319,15 +289,45 @@
319289
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
320290
}
321291
],
322-
"description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match"
292+
"description": "Parse Dependent request for this WebTest."
293+
},
294+
"RequestBody": {
295+
"type": "string",
296+
"description": "Base64 encoded string body to send with this web test."
297+
},
298+
"RequestUrl": {
299+
"type": "string",
300+
"description": "Url location to test."
323301
}
324302
},
325-
"description": "The collection of content validation properties"
303+
"description": "The collection of request properties"
326304
},
327-
"WebTestPropertiesRequest": {
305+
"WebTestPropertiesValidationRules": {
328306
"type": "object",
329307
"properties": {
330-
"FollowRedirects": {
308+
"ContentValidation": {
309+
"oneOf": [
310+
{
311+
"$ref": "#/definitions/WebTestPropertiesValidationRulesContentValidation"
312+
},
313+
{
314+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
315+
}
316+
],
317+
"description": "The collection of content validation properties"
318+
},
319+
"ExpectedHttpStatusCode": {
320+
"oneOf": [
321+
{
322+
"type": "integer"
323+
},
324+
{
325+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
326+
}
327+
],
328+
"description": "Validate that the WebTest returns the http status code provided."
329+
},
330+
"IgnoreHttpsStatusCode": {
331331
"oneOf": [
332332
{
333333
"type": "boolean"
@@ -336,27 +336,41 @@
336336
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
337337
}
338338
],
339-
"description": "Follow redirects for this web test."
339+
"description": "When set, validation will ignore the status code."
340340
},
341-
"Headers": {
341+
"SSLCertRemainingLifetimeCheck": {
342342
"oneOf": [
343343
{
344-
"type": "array",
345-
"items": {
346-
"$ref": "#/definitions/HeaderField"
347-
}
344+
"type": "integer"
348345
},
349346
{
350347
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
351348
}
352349
],
353-
"description": "List of headers and their values to add to the WebTest call."
350+
"description": "A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true."
354351
},
355-
"HttpVerb": {
352+
"SSLCheck": {
353+
"oneOf": [
354+
{
355+
"type": "boolean"
356+
},
357+
{
358+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
359+
}
360+
],
361+
"description": "Checks to see if the SSL cert is still valid."
362+
}
363+
},
364+
"description": "The collection of validation rule properties"
365+
},
366+
"WebTestPropertiesValidationRulesContentValidation": {
367+
"type": "object",
368+
"properties": {
369+
"ContentMatch": {
356370
"type": "string",
357-
"description": "Http verb to use for this web test."
371+
"description": "Content to look for in the return of the WebTest. Must not be null or empty."
358372
},
359-
"ParseDependentRequests": {
373+
"IgnoreCase": {
360374
"oneOf": [
361375
{
362376
"type": "boolean"
@@ -365,18 +379,21 @@
365379
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
366380
}
367381
],
368-
"description": "Parse Dependent request for this WebTest."
369-
},
370-
"RequestBody": {
371-
"type": "string",
372-
"description": "Base64 encoded string body to send with this web test."
382+
"description": "When set, this value makes the ContentMatch validation case insensitive."
373383
},
374-
"RequestUrl": {
375-
"type": "string",
376-
"description": "Url location to test."
384+
"PassIfTextFound": {
385+
"oneOf": [
386+
{
387+
"type": "boolean"
388+
},
389+
{
390+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
391+
}
392+
],
393+
"description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match"
377394
}
378395
},
379-
"description": "The collection of request properties"
396+
"description": "The collection of content validation properties"
380397
}
381398
}
382399
}

0 commit comments

Comments
 (0)