Skip to content

Commit cf1c6c6

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to clean up 2019-11-01-preview (under "window to fix broken") (#13139)
* [Monitor] Cleanup DataCollectionRules 2019-11-01-preview (under window to fix broken) * [Monitor] Cleanup DataCollectionRules 2019-11-01-preview - removed unused defs
1 parent 51ac4e5 commit cf1c6c6

File tree

7 files changed

+79
-430
lines changed

7 files changed

+79
-430
lines changed

specification/monitor/resource-manager/Microsoft.Insights/preview/2019-11-01-preview/dataCollectionRuleAssociations_API.json

Lines changed: 7 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"default": {
4848
"description": "Error",
4949
"schema": {
50-
"$ref": "#/definitions/ErrorResponse"
50+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
5151
}
5252
}
5353
},
@@ -76,7 +76,7 @@
7676
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
7777
},
7878
{
79-
"$ref": "#/parameters/ResourceGroupNameParameter"
79+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
8080
},
8181
{
8282
"$ref": "#/parameters/DataCollectionRuleNameParameter"
@@ -95,7 +95,7 @@
9595
"default": {
9696
"description": "Error",
9797
"schema": {
98-
"$ref": "#/definitions/ErrorResponse"
98+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
9999
}
100100
}
101101
},
@@ -140,7 +140,7 @@
140140
"default": {
141141
"description": "Error",
142142
"schema": {
143-
"$ref": "#/definitions/ErrorResponse"
143+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
144144
}
145145
}
146146
},
@@ -197,7 +197,7 @@
197197
"default": {
198198
"description": "Error",
199199
"schema": {
200-
"$ref": "#/definitions/ErrorResponse"
200+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
201201
}
202202
}
203203
},
@@ -237,7 +237,7 @@
237237
"default": {
238238
"description": "Error",
239239
"schema": {
240-
"$ref": "#/definitions/ErrorResponse"
240+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
241241
}
242242
}
243243
},
@@ -252,14 +252,10 @@
252252
"definitions": {
253253
"DataCollectionRuleAssociation": {
254254
"description": "Definition of association of a data collection rule with a monitored Azure resource.",
255-
"required": [
256-
"dataCollectionRuleId"
257-
],
258255
"type": "object",
259256
"properties": {
260257
"description": {
261258
"description": "Description of the association.",
262-
"maxLength": 256,
263259
"type": "string"
264260
},
265261
"dataCollectionRuleId": {
@@ -291,9 +287,6 @@
291287
},
292288
"DataCollectionRuleAssociationProxyOnlyResource": {
293289
"description": "Definition of generic ARM proxy resource.",
294-
"required": [
295-
"properties"
296-
],
297290
"type": "object",
298291
"properties": {
299292
"properties": {
@@ -362,112 +355,15 @@
362355
"type": "string"
363356
}
364357
}
365-
},
366-
"ErrorAdditionalInfo": {
367-
"description": "Additional information for common error response.",
368-
"type": "object",
369-
"properties": {
370-
"type": {
371-
"description": "The additional info type.",
372-
"type": "string",
373-
"readOnly": true,
374-
"x-ms-mutability": [
375-
"read"
376-
]
377-
},
378-
"info": {
379-
"description": "The additional info.",
380-
"type": "object",
381-
"readOnly": true,
382-
"x-ms-mutability": [
383-
"read"
384-
]
385-
}
386-
}
387-
},
388-
"ErrorDetails": {
389-
"description": "Common error details.",
390-
"type": "object",
391-
"properties": {
392-
"code": {
393-
"description": "Error code which can be used to programmatically identify the class of error.",
394-
"type": "string",
395-
"readOnly": true,
396-
"example": "BadArgument",
397-
"x-ms-mutability": [
398-
"read"
399-
]
400-
},
401-
"message": {
402-
"description": "Describes the error in detail and provides debugging information.",
403-
"type": "string",
404-
"readOnly": true,
405-
"x-ms-mutability": [
406-
"read"
407-
]
408-
},
409-
"target": {
410-
"description": "The target of the particular error (for example, the name of the property in error).",
411-
"type": "string",
412-
"readOnly": true,
413-
"example": "properties.provisioningState",
414-
"x-ms-mutability": [
415-
"read"
416-
]
417-
},
418-
"details": {
419-
"description": "Additional nested error detail objects.",
420-
"type": "array",
421-
"items": {
422-
"$ref": "#/definitions/ErrorDetails"
423-
},
424-
"readOnly": true,
425-
"x-ms-mutability": [
426-
"read"
427-
]
428-
},
429-
"additionalInfo": {
430-
"description": "Additional error information.",
431-
"type": "array",
432-
"items": {
433-
"$ref": "#/definitions/ErrorAdditionalInfo"
434-
},
435-
"readOnly": true,
436-
"x-ms-mutability": [
437-
"read"
438-
]
439-
}
440-
}
441-
},
442-
"ErrorResponse": {
443-
"description": "Common error response.",
444-
"type": "object",
445-
"properties": {
446-
"error": {
447-
"description": "Error details.",
448-
"allOf": [
449-
{
450-
"$ref": "#/definitions/ErrorDetails"
451-
}
452-
],
453-
"readOnly": true,
454-
"x-ms-mutability": [
455-
"read"
456-
]
457-
}
458-
}
459358
}
460359
},
461360
"parameters": {
462361
"AssociationNameParameter": {
463362
"in": "path",
464363
"name": "associationName",
465-
"description": "The name of the association.",
364+
"description": "The name of the association. The name is case insensitive.",
466365
"required": true,
467366
"type": "string",
468-
"maxLength": 64,
469-
"minLength": 1,
470-
"pattern": "^[-\\w\\._\\(\\)]+$",
471367
"x-ms-parameter-location": "method"
472368
},
473369
"DataCollectionRuleNameParameter": {
@@ -476,20 +372,6 @@
476372
"description": "The name of the data collection rule. The name is case insensitive.",
477373
"required": true,
478374
"type": "string",
479-
"maxLength": 64,
480-
"minLength": 1,
481-
"pattern": "^[-\\w\\._\\(\\)]+$",
482-
"x-ms-parameter-location": "method"
483-
},
484-
"ResourceGroupNameParameter": {
485-
"in": "path",
486-
"name": "resourceGroupName",
487-
"description": "The name of the resource group. The name is case insensitive.",
488-
"required": true,
489-
"type": "string",
490-
"maxLength": 90,
491-
"minLength": 1,
492-
"pattern": "^[-\\w\\._\\(\\)]+$",
493375
"x-ms-parameter-location": "method"
494376
},
495377
"ResourceUriParameter": {

0 commit comments

Comments
 (0)