From fc7b952234d32cda4e894eb8bfae51c83c57b876 Mon Sep 17 00:00:00 2001 From: Ritwik Rajendra <21337621+ritwik8119@users.noreply.github.com> Date: Thu, 25 Feb 2021 20:52:45 -0800 Subject: [PATCH] Add missing fields to Action Group resource spec (#12736) * Updated error response for Action Groups API * spacing * added missing fields to Action Group Resource spec * Added missing fields for action group resource in older version * Updated "resource" name * Removed changes to errorResponse * Removed errorObject * format Co-authored-by: Ritwik Rajendra --- .../stable/2019-03-01/actionGroups_API.json | 14 ++++++++++++-- .../stable/2019-06-01/actionGroups_API.json | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json index 2d4abcb438fb..37a6c7dd628d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/actionGroups_API.json @@ -335,7 +335,7 @@ } }, "definitions": { - "Resource": { + "AzureResource": { "properties": { "id": { "type": "string", @@ -352,6 +352,16 @@ "readOnly": true, "description": "Azure resource type" }, + "kind": { + "type": "string", + "readOnly": true, + "description": "Azure resource kind" + }, + "identity": { + "type": "string", + "readOnly": true, + "description": "Azure resource identity" + }, "location": { "type": "string", "description": "Resource location", @@ -377,7 +387,7 @@ "description": "An action group resource.", "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/AzureResource" } ], "properties": { diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json index 3a132ee2cbff..519fa09d498a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/actionGroups_API.json @@ -335,7 +335,7 @@ } }, "definitions": { - "Resource": { + "AzureResource": { "properties": { "id": { "type": "string", @@ -352,6 +352,16 @@ "readOnly": true, "description": "Azure resource type" }, + "kind": { + "type": "string", + "readOnly": true, + "description": "Azure resource kind" + }, + "identity": { + "type": "string", + "readOnly": true, + "description": "Azure resource identity" + }, "location": { "type": "string", "description": "Resource location", @@ -377,7 +387,7 @@ "description": "An action group resource.", "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/AzureResource" } ], "properties": {