From 34405a7b01b3a5702b19cc493c330abec3255ff6 Mon Sep 17 00:00:00 2001 From: zhzhao8888 <43188418+zhzhao8888@users.noreply.github.com> Date: Thu, 4 Feb 2021 00:17:31 -0800 Subject: [PATCH] Swagger Correctness changes for Sentinel Bookmarks (#12556) --- .../2019-01-01-preview/SecurityInsights.json | 41 ++++++++++++++++--- .../stable/2020-01-01/SecurityInsights.json | 21 +++++++--- 2 files changed, 50 insertions(+), 12 deletions(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json index aa3506414ca1..3071a2929ee6 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2019-01-01-preview/SecurityInsights.json @@ -5598,6 +5598,21 @@ "description": "Describes a user that updated the bookmark", "type": "object" }, + "eventTime": { + "description": "The bookmark event time", + "format": "date-time", + "type": "string" + }, + "queryStartTime": { + "description": "The start time for the query", + "format": "date-time", + "type": "string" + }, + "queryEndTime": { + "description": "The end time for the query", + "format": "date-time", + "type": "string" + }, "incidentInfo": { "$ref": "#/definitions/IncidentInfo", "description": "Describes an incident that relates to bookmark", @@ -5646,6 +5661,13 @@ "$ref": "#/definitions/Entity" }, "type": "array" + }, + "edges": { + "description": "Array of expansion result connected entities", + "items": { + "$ref": "#/definitions/ConnectedEntity" + }, + "type": "array" } }, "type": "object" @@ -7086,6 +7108,19 @@ }, "type": "object" }, + "ConnectedEntity": { + "description": "Expansion result connected entities", + "properties": { + "targetEntityId": { + "description": "Entity Id of the connected entity", + "type": "string" + }, + "additionalData": { + "description": "key-value pairs for a connected entity mapping", + "type": "object" + } + } + }, "TimelineResultsMetadata": { "description": "Expansion result metadata.", "properties": { @@ -11307,12 +11342,6 @@ "type": "string" } }, - "required": [ - "incidentId", - "severity", - "title", - "relationName" - ], "type": "object" }, "WatchlistList": { diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json index 5d5904568867..3daf76b34f81 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/stable/2020-01-01/SecurityInsights.json @@ -1859,6 +1859,21 @@ "description": "Describes a user that updated the bookmark", "type": "object" }, + "eventTime": { + "description": "The bookmark event time", + "format": "date-time", + "type": "string" + }, + "queryStartTime": { + "description": "The start time for the query", + "format": "date-time", + "type": "string" + }, + "queryEndTime": { + "description": "The end time for the query", + "format": "date-time", + "type": "string" + }, "incidentInfo": { "$ref": "#/definitions/IncidentInfo", "description": "Describes an incident that relates to bookmark", @@ -3522,12 +3537,6 @@ "type": "string" } }, - "required": [ - "incidentId", - "severity", - "title", - "relationName" - ], "type": "object" } },