From 325e55b66d29410a5f987da471a48607441750e8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Sun, 15 Nov 2020 01:34:15 +0000 Subject: [PATCH] CodeGen from PR 11629 in Azure/azure-rest-api-specs update (#11629) --- .../Microsoft.SecurityInsights.json | 162 +++++------------- .../Microsoft.SecurityInsights.json | 2 +- 2 files changed, 45 insertions(+), 119 deletions(-) diff --git a/schemas/2019-01-01-preview/Microsoft.SecurityInsights.json b/schemas/2019-01-01-preview/Microsoft.SecurityInsights.json index 779621c7d9..48885d2ef7 100644 --- a/schemas/2019-01-01-preview/Microsoft.SecurityInsights.json +++ b/schemas/2019-01-01-preview/Microsoft.SecurityInsights.json @@ -3108,99 +3108,18 @@ }, "description": "User information that made some action" }, - "WatchlistItem": { - "type": "object", - "properties": { - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/WatchlistItemProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Describes watchlist item properties" - } - }, - "description": "Represents a Watchlist Item in Azure Security Insights." - }, - "WatchlistItemProperties": { + "WatchlistProperties": { "type": "object", "properties": { - "createdBy": { - "oneOf": [ - { - "$ref": "#/definitions/UserInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "User information that made some action" - }, - "createdTimeUtc": { + "contentType": { "type": "string", - "format": "date-time", - "description": "The time the watchlist item was created" + "description": "The content type of the raw content. Example : text/csv or text/tsv " }, - "entityMapping": { - "type": "object", - "properties": {}, - "description": "A key-value pair for a watchlist item entity mapping" - }, - "lastUpdatedTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The last time the watchlist item was updated" - }, - "tenantId": { - "type": "string", - "description": "The tenantId to which this watchlist item belongs to" - }, - "timeToLiveUtc": { + "created": { "type": "string", "format": "date-time", - "description": "The time to live for the watchlist item" - }, - "updatedBy": { - "oneOf": [ - { - "$ref": "#/definitions/UserInfo" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "User information that made some action" - }, - "watchlistId": { - "type": "string", - "description": "The watchlist id of the parent of this watchlist item" - }, - "watchlistItemName": { - "type": "string", - "description": "Name of the watchlist item" - }, - "watchlistItemPair": { - "type": "object", - "properties": {}, - "description": "A key-value pair for a watchlist item" + "description": "The time the watchlist was created" }, - "watchlistItemType": { - "type": "string", - "description": "The type of the watchlist item" - } - }, - "required": [ - "watchlistId", - "watchlistItemPair" - ], - "description": "Describes watchlist item properties" - }, - "WatchlistProperties": { - "type": "object", - "properties": { "createdBy": { "oneOf": [ { @@ -3212,11 +3131,6 @@ ], "description": "User information that made some action" }, - "createdTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The time the watchlist was created" - }, "defaultDuration": { "type": "string", "format": "duration", @@ -3230,6 +3144,17 @@ "type": "string", "description": "The display name of the watchlist" }, + "isDeleted": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag that indicates if the watchlist is deleted or not" + }, "labels": { "oneOf": [ { @@ -3244,19 +3169,25 @@ ], "description": "List of labels relevant to this watchlist" }, - "lastUpdatedTimeUtc": { - "type": "string", - "format": "date-time", - "description": "The last time the watchlist was updated" - }, - "notes": { - "type": "string", - "description": "The notes of the watchlist" + "numberOfLinesToSkip": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of lines in a csv/tsv content to skip before the header" }, "provider": { "type": "string", "description": "The provider of the watchlist" }, + "rawContent": { + "type": "string", + "description": "The raw content that represents to watchlist items to create. In case of csv/tsv content type, it's the content of the file that will parsed by the endpoint" + }, "source": { "oneOf": [ { @@ -3274,7 +3205,12 @@ }, "tenantId": { "type": "string", - "description": "The tenantId where the watchlist belongs to." + "description": "The tenantId where the watchlist belongs to" + }, + "updated": { + "type": "string", + "format": "date-time", + "description": "The last time the watchlist was updated" }, "updatedBy": { "oneOf": [ @@ -3287,27 +3223,17 @@ ], "description": "User information that made some action" }, - "watchlistItems": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/WatchlistItem" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of watchlist items." + "watchlistAlias": { + "type": "string", + "description": "The alias of the watchlist" }, - "watchlistType": { + "watchlistId": { "type": "string", - "description": "The type of the watchlist" + "description": "The id (a Guid) of the watchlist" }, - "workspaceId": { + "watchlistType": { "type": "string", - "description": "The workspaceId where the watchlist belongs to." + "description": "The type of the watchlist" } }, "required": [ @@ -3318,4 +3244,4 @@ "description": "Describes watchlist properties" } } -} \ No newline at end of file +} diff --git a/schemas/2020-01-01/Microsoft.SecurityInsights.json b/schemas/2020-01-01/Microsoft.SecurityInsights.json index 9d4eca251a..ebc394814e 100644 --- a/schemas/2020-01-01/Microsoft.SecurityInsights.json +++ b/schemas/2020-01-01/Microsoft.SecurityInsights.json @@ -1650,4 +1650,4 @@ "description": "User information that made some action" } } -} \ No newline at end of file +}