From 435f3acc9e70bde416e3d68cb5b81f74267ab8be Mon Sep 17 00:00:00 2001 From: napolish <67951636+napolish@users.noreply.github.com> Date: Mon, 21 Dec 2020 03:47:42 +0200 Subject: [PATCH] [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2019-06-01 (#11833) * Changing Swagger file * Changing examples * Fixing tags example * Fixing tags example * Fixing tags example * prettier fix for white spaces --- .../stable/2019-06-01/SmartDetectorAlertRulesApi.json | 10 ++++++++-- .../SmartDetectorAlertRule_CreateOrUpdate.json | 4 ++-- .../examples/SmartDetectorAlertRule_Get.json | 2 +- .../examples/SmartDetectorAlertRule_List.json | 4 ++-- .../SmartDetectorAlertRule_ListByResourceGroup.json | 4 ++-- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json index 2599e615fcb3..8afcd4fab926 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json @@ -384,7 +384,10 @@ }, "tags": { "type": "object", - "description": "The resource tags." + "description": "The resource tags.", + "additionalProperties": { + "type": "string" + } } }, "x-ms-azure-resource": true, @@ -440,7 +443,10 @@ }, "tags": { "type": "object", - "description": "The resource tags." + "description": "The resource tags.", + "additionalProperties": { + "type": "string" + } }, "properties": { "x-ms-client-flatten": true, diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json index 6d99b0ab58ae..635505e2f36b 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_CreateOrUpdate.json @@ -36,7 +36,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MyAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Enabled", @@ -65,7 +65,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MyAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Enabled", diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json index d6adf957b004..c7e975931c6a 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Get.json @@ -12,7 +12,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MyAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Enabled", diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json index 3de1aac35a0a..adc1644e7f9c 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_List.json @@ -14,7 +14,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MyAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Enabled", @@ -41,7 +41,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MySecondAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Disabled", diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json index f1e3a4f46cfb..8283132d39fe 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_ListByResourceGroup.json @@ -14,7 +14,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MyAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Enabled", @@ -41,7 +41,7 @@ "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", "name": "MySecondAlertRule", "location": "global", - "tags": "", + "tags": {}, "properties": { "description": "Sample smart detector alert rule description", "state": "Disabled",