From cf2b81ac380405faaad2f81238c7e01ba0282b84 Mon Sep 17 00:00:00 2001 From: Dor Segal Date: Thu, 3 Mar 2022 11:53:03 +0200 Subject: [PATCH 1/3] add contraints (alinged with the latest stable version) --- .../2022-01-01-preview/AutomationRules.json | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json index 1c0ffc3355de..de6b23fbd1e3 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json @@ -384,12 +384,15 @@ "properties": { "displayName": { "description": "The display name of the automation rule", - "type": "string" + "type": "string", + "maxLength": 500 }, "order": { "format": "int32", "description": "The order of execution of the automation rule", - "type": "integer" + "type": "integer", + "minimum": 1, + "maximum": 1000 }, "triggeringLogic": { "$ref": "#/definitions/AutomationRuleTriggeringLogic" @@ -399,7 +402,9 @@ "type": "array", "items": { "$ref": "#/definitions/AutomationRuleAction" - } + }, + "x-ms-identifiers": [], + "maxItems": 20 }, "lastModifiedTimeUtc": { "format": "date-time", @@ -833,9 +838,13 @@ "conditions": { "description": "The conditions to evaluate to determine if the automation rule should be triggered on a given object", "type": "array", + "maxItems": 50, "items": { "$ref": "#/definitions/AutomationRuleCondition" - } + }, + "x-ms-identifiers": [ + "conditionType" + ] } } }, From 43aa94878cc911415af0e9b7447fbe5d8d93ab1e Mon Sep 17 00:00:00 2001 From: Wei Dong <40835867+dw511214992@users.noreply.github.com> Date: Fri, 4 Mar 2022 21:35:25 +0800 Subject: [PATCH 2/3] Update specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json --- .../preview/2022-01-01-preview/AutomationRules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json index de6b23fbd1e3..5c9a797fa1b4 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json @@ -836,7 +836,7 @@ "$ref": "#/definitions/triggersWhen" }, "conditions": { - "description": "The conditions to evaluate to determine if the automation rule should be triggered on a given object", + "description": "The conditions to evaluate to determine if the automation rule should be triggered on a given object.", "type": "array", "maxItems": 50, "items": { From 4e3ba07b005dc1d33099f5af751fbc8da230bf10 Mon Sep 17 00:00:00 2001 From: Wei Dong <40835867+dw511214992@users.noreply.github.com> Date: Fri, 4 Mar 2022 21:35:43 +0800 Subject: [PATCH 3/3] Update specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json --- .../preview/2022-01-01-preview/AutomationRules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json index 5c9a797fa1b4..de6b23fbd1e3 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-01-01-preview/AutomationRules.json @@ -836,7 +836,7 @@ "$ref": "#/definitions/triggersWhen" }, "conditions": { - "description": "The conditions to evaluate to determine if the automation rule should be triggered on a given object.", + "description": "The conditions to evaluate to determine if the automation rule should be triggered on a given object", "type": "array", "maxItems": 50, "items": {