From a27312ff73ac3925ff20ead55504bf9b474b97b1 Mon Sep 17 00:00:00 2001 From: "Zhenbiao Wei (WICRESOFT NORTH AMERICA LTD)" Date: Fri, 22 Jul 2022 14:47:52 +0800 Subject: [PATCH 1/2] update securityinsights readme.python --- .../securityinsights/resource-manager/readme.python.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/securityinsights/resource-manager/readme.python.md b/specification/securityinsights/resource-manager/readme.python.md index 270ac81d79fc..f69787ec62ec 100644 --- a/specification/securityinsights/resource-manager/readme.python.md +++ b/specification/securityinsights/resource-manager/readme.python.md @@ -17,3 +17,11 @@ clear-output-folder: true no-namespace-folders: true output-folder: $(python-sdks-folder)/securityinsight/azure-mgmt-securityinsight/azure/mgmt/securityinsight ``` + +``` +directive: + - from: swagger-document + where: $.definitions.IncidentOwnerInfo.properties.ownerType + transform: > + $['x-ms-enum']['name'] = 'ownerTypeEnum'; +``` From 4195163e8e9d6e04eb2df25f86c585858ed194eb Mon Sep 17 00:00:00 2001 From: "Zhenbiao Wei (WICRESOFT NORTH AMERICA LTD)" Date: Mon, 25 Jul 2022 10:55:11 +0800 Subject: [PATCH 2/2] update readme.python --- .../securityinsights/resource-manager/readme.python.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/securityinsights/resource-manager/readme.python.md b/specification/securityinsights/resource-manager/readme.python.md index f69787ec62ec..822809aa6277 100644 --- a/specification/securityinsights/resource-manager/readme.python.md +++ b/specification/securityinsights/resource-manager/readme.python.md @@ -11,6 +11,8 @@ namespace: azure.mgmt.securityinsight package-name: azure-mgmt-securityinsight package-version: 1.0.0b1 clear-output-folder: true +modelerfour: + lenient-model-deduplication: true ``` ``` yaml $(python) @@ -20,8 +22,8 @@ output-folder: $(python-sdks-folder)/securityinsight/azure-mgmt-securityinsight/ ``` directive: - - from: swagger-document - where: $.definitions.IncidentOwnerInfo.properties.ownerType + - from: EntityTypes.json + where: $.definitions.AccountEntityProperties.properties.ntDomain transform: > - $['x-ms-enum']['name'] = 'ownerTypeEnum'; + $['description'] = 'The NetBIOS domain name as it appears in the alert format - domain/username. Examples: NT AUTHORITY.'; ```