From 8aa184e00b5314f9e293db0401e002cb99c85a91 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Wed, 23 Feb 2022 11:14:18 +0800 Subject: [PATCH] add x-ms-enum to security (#17426) --- .../preview/2015-06-01-preview/tasks.json | 4 ++++ .../informationProtectionPolicies.json | 4 ++++ .../advancedThreatProtectionSettings.json | 4 ++++ .../2020-01-01/adaptiveNetworkHardenings.json | 4 ++++ .../2020-01-01/jitNetworkAccessPolicies.json | 4 ++++ .../serverVulnerabilityAssessments.json | 18 +++++++++++++++--- .../stable/2021-07-01/settings.json | 4 ++++ 7 files changed, 39 insertions(+), 3 deletions(-) diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/tasks.json b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/tasks.json index 2b746c6cf688..39891d8e2fe3 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/tasks.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/tasks.json @@ -443,6 +443,10 @@ "Resolve", "Close" ], + "x-ms-enum": { + "name": "TaskUpdateActionType", + "modelAsString": true + }, "description": "Type of the action to do on the task", "x-ms-parameter-location": "method" } diff --git a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json index 83320e280a34..90e13c30f99e 100644 --- a/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json +++ b/specification/security/resource-manager/Microsoft.Security/preview/2017-08-01-preview/informationProtectionPolicies.json @@ -341,6 +341,10 @@ "effective", "custom" ], + "x-ms-enum": { + "name": "InformationProtectionPolicyName", + "modelAsString": true + }, "description": "Name of the information protection policy.", "x-ms-parameter-location": "method" }, diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/advancedThreatProtectionSettings.json b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/advancedThreatProtectionSettings.json index 96bfced0e2af..3b2a598e1779 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/advancedThreatProtectionSettings.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2019-01-01/advancedThreatProtectionSettings.json @@ -149,6 +149,10 @@ "enum": [ "current" ], + "x-ms-enum": { + "name": "AdvancedThreatProtectionSettingName", + "modelAsString": false + }, "description": "Advanced Threat Protection setting name.", "x-ms-parameter-location": "method" }, diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/adaptiveNetworkHardenings.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/adaptiveNetworkHardenings.json index df4f9737d4e8..1f0bd6081a91 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/adaptiveNetworkHardenings.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/adaptiveNetworkHardenings.json @@ -397,6 +397,10 @@ "enum": [ "enforce" ], + "x-ms-enum": { + "name": "AdaptiveNetworkHardeningEnforceAction", + "modelAsString": false + }, "x-ms-parameter-location": "method" }, "AdaptiveNetworkHardeningEnforceRequest": { diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json index 9014390efee0..aeb5ab42ffb6 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/jitNetworkAccessPolicies.json @@ -746,6 +746,10 @@ "enum": [ "initiate" ], + "x-ms-enum": { + "name": "JitNetworkAccessPolicyInitiateType", + "modelAsString": false + }, "x-ms-parameter-location": "method" }, "JitNetworkAccessPolicyInitiateRequest": { diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json index 402846e94a0d..16de2de72b18 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2020-01-01/serverVulnerabilityAssessments.json @@ -142,7 +142,11 @@ "type": "string", "enum": [ "default" - ] + ], + "x-ms-enum": { + "name": "ServerVulnerabilityAssessmentName", + "modelAsString": false + } }, { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -210,7 +214,11 @@ "type": "string", "enum": [ "default" - ] + ], + "x-ms-enum": { + "name": "ServerVulnerabilityAssessmentName", + "modelAsString": false + } }, { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" @@ -282,7 +290,11 @@ "type": "string", "enum": [ "default" - ] + ], + "x-ms-enum": { + "name": "ServerVulnerabilityAssessmentName", + "modelAsString": false + } }, { "$ref": "../../../common/v1/types.json#/parameters/ApiVersion" diff --git a/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/settings.json b/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/settings.json index e1aca0eb04e7..2d29a433fe3e 100644 --- a/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/settings.json +++ b/specification/security/resource-manager/Microsoft.Security/stable/2021-07-01/settings.json @@ -285,6 +285,10 @@ "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW", "Sentinel" ], + "x-ms-enum": { + "name": "SettingName", + "modelAsString": true + }, "x-ms-parameter-location": "method" }, "Setting": {