Skip to content

Commit 9ed9f07

Browse files
avjerafiAvi Jerafi
andauthored
[Hub Generated] Review request for Microsoft.Insights to add version stable/2018-04-16 (#15072)
* Added suppression for R4005 linting error * Using Pascal case for resource provider * Added all missing type:object * Added supperssion for R3016 - camel case for odata.type Co-authored-by: Avi Jerafi <[email protected]>
1 parent 624ac7c commit 9ed9f07

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"paths": {
37-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules/{ruleName}": {
37+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}": {
3838
"put": {
3939
"description": "Creates or updates an log search rule.",
4040
"tags": [
@@ -226,7 +226,7 @@
226226
}
227227
}
228228
},
229-
"/subscriptions/{subscriptionId}/providers/microsoft.insights/scheduledQueryRules": {
229+
"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules": {
230230
"get": {
231231
"tags": [
232232
"scheduledQueryRules"
@@ -269,7 +269,7 @@
269269
"x-ms-odata": "#/definitions/LogSearchRuleResource"
270270
}
271271
},
272-
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/scheduledQueryRules": {
272+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules": {
273273
"get": {
274274
"tags": [
275275
"scheduledQueryRules"
@@ -318,6 +318,7 @@
318318
},
319319
"definitions": {
320320
"Resource": {
321+
"type": "object",
321322
"properties": {
322323
"id": {
323324
"type": "string",
@@ -343,6 +344,7 @@
343344
]
344345
},
345346
"tags": {
347+
"type": "object",
346348
"additionalProperties": {
347349
"type": "string"
348350
},
@@ -385,8 +387,10 @@
385387
"description": "The Log Search Rule resource."
386388
},
387389
"LogSearchRuleResourcePatch": {
390+
"type": "object",
388391
"properties": {
389392
"tags": {
393+
"type": "object",
390394
"additionalProperties": {
391395
"type": "string"
392396
},
@@ -401,6 +405,7 @@
401405
"description": "The log search rule resource for patch operations."
402406
},
403407
"LogSearchRuleResourceCollection": {
408+
"type": "object",
404409
"properties": {
405410
"value": {
406411
"type": "array",
@@ -583,6 +588,7 @@
583588
"description": "Set value to 'ResultAccount'"
584589
},
585590
"LogSearchRule": {
591+
"type": "object",
586592
"description": "Log Search Rule Definition",
587593
"properties": {
588594
"createdWithApiVersion": {
@@ -660,6 +666,7 @@
660666
]
661667
},
662668
"LogSearchRulePatch": {
669+
"type": "object",
663670
"description": "Log Search Rule Definition for Patching",
664671
"properties": {
665672
"enabled": {

specification/monitor/resource-manager/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,13 @@ directive:
721721
where: $.paths
722722
from: scheduledQueryRule_API.json
723723
reason: 'Operations API is defined in a separate swagger spec for Microsoft.Insights namespace (https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/operations_API.json)'
724+
- suppress: R4005
725+
where: $.definitions.Dimension.properties.operator
726+
from: scheduledQueryRule_API.json
727+
reason: 'The discrepancy in the enum values is with an enum which is defined for a different service of a different team'
728+
- suppress: R3016
729+
where: $.definitions.Action.properties["odata.type"]
730+
reason: 'This is an old field in a stable api version which is not camel cased'
724731
- suppress: EnumInsteadOfBoolean
725732
where: $.definitions.AlertRuleProperties.properties.enabled
726733
from: activityLogAlerts_API.json

0 commit comments

Comments
 (0)