From 17eb1a43838039ee45d6b7eeab79b9bab41800c8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 22 Sep 2021 06:50:47 +0000 Subject: [PATCH] CodeGen from PR 15856 in Azure/azure-rest-api-specs Merge b4565bbad7c8818f1744f6374dfa757374c5603c into cfd43d7d6369876f9feb6de4d6042690830d4202 --- schemas/2021-06-01/Microsoft.Security.json | 139 ----------------- .../Microsoft.Security.json | 146 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 6 + 3 files changed, 152 insertions(+), 139 deletions(-) create mode 100644 schemas/2021-07-01-preview/Microsoft.Security.json diff --git a/schemas/2021-06-01/Microsoft.Security.json b/schemas/2021-06-01/Microsoft.Security.json index 239bb0ed90..a75669a511 100644 --- a/schemas/2021-06-01/Microsoft.Security.json +++ b/schemas/2021-06-01/Microsoft.Security.json @@ -43,53 +43,6 @@ "type" ], "description": "Microsoft.Security/assessmentMetadata" - }, - "settings": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/DataExportSettings" - }, - { - "$ref": "#/definitions/AlertSyncSettings" - } - ], - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-06-01" - ] - }, - "name": { - "oneOf": [ - { - "type": "string", - "enum": [ - "MCAS", - "WDATP", - "Sentinel" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the setting." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Security/settings" - ] - } - }, - "required": [ - "apiVersion", - "name", - "type" - ], - "description": "Microsoft.Security/settings" } }, "unknown_resourceDefinitions": { @@ -134,52 +87,6 @@ } }, "definitions": { - "AlertSyncSettingProperties": { - "type": "object", - "properties": { - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Is the alert sync setting enabled" - } - }, - "required": [ - "enabled" - ], - "description": "The alert sync setting properties" - }, - "AlertSyncSettings": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "AlertSyncSettings" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertSyncSettingProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert sync setting properties" - } - }, - "required": [ - "kind" - ], - "description": "Represents an alert sync setting" - }, "AssessmentLinks": { "type": "object", "properties": {}, @@ -233,52 +140,6 @@ ], "description": "Details of the Azure resource that was assessed" }, - "DataExportSettingProperties": { - "type": "object", - "properties": { - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Is the data export setting enabled" - } - }, - "required": [ - "enabled" - ], - "description": "The data export setting properties" - }, - "DataExportSettings": { - "type": "object", - "properties": { - "kind": { - "type": "string", - "enum": [ - "DataExportSettings" - ] - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/DataExportSettingProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The data export setting properties" - } - }, - "required": [ - "kind" - ], - "description": "Represents a data export setting" - }, "OnPremiseResourceDetails": { "type": "object", "oneOf": [ diff --git a/schemas/2021-07-01-preview/Microsoft.Security.json b/schemas/2021-07-01-preview/Microsoft.Security.json new file mode 100644 index 0000000000..d72185fd0c --- /dev/null +++ b/schemas/2021-07-01-preview/Microsoft.Security.json @@ -0,0 +1,146 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.Security.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Security", + "description": "Microsoft Security Resource Types", + "resourceDefinitions": { + "customAssessmentAutomations": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Name of the Custom Assessment Automation." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CustomAssessmentAutomationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "describes the Custom Assessment Automation properties" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Security/customAssessmentAutomations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Security/customAssessmentAutomations" + }, + "customEntityStoreAssignments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-07-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Name of the custom entity store assignment. Generated name is GUID." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CustomEntityStoreAssignmentRequestProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "describes properties of custom entity store assignment request" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Security/customEntityStoreAssignments" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Security/customEntityStoreAssignments" + } + }, + "definitions": { + "CustomAssessmentAutomationProperties": { + "type": "object", + "properties": { + "compressedQuery": { + "type": "string", + "description": "GZip encoded KQL query representing the assessment automation results required." + }, + "description": { + "type": "string", + "description": "The description to relate to the assessments generated by this assessment automation." + }, + "remediationDescription": { + "type": "string", + "description": "The remediation description to relate to the assessments generated by this assessment automation." + }, + "severity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "High", + "Medium", + "Low" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The severity to relate to the assessments generated by this assessment automation." + }, + "supportedCloud": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AWS" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Relevant cloud for the custom assessment automation." + } + }, + "description": "describes the Custom Assessment Automation properties" + }, + "CustomEntityStoreAssignmentRequestProperties": { + "type": "object", + "properties": { + "principal": { + "type": "string", + "description": "The principal assigned with entity store. If not provided, will use caller principal. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId]" + } + }, + "description": "describes properties of custom entity store assignment request" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 6f2020066f..033aa609db 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -8986,6 +8986,12 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.Security.json#/unknown_resourceDefinitions/assessments" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.Security.json#/resourceDefinitions/customAssessmentAutomations" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.Security.json#/resourceDefinitions/customEntityStoreAssignments" + }, { "$ref": "https://schema.management.azure.com/schemas/2015-08-01/Microsoft.ServiceBus.json#/resourceDefinitions/namespaces" },