From 241ed0a992d020a0583cb9cd488a217af719b13d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 29 Dec 2020 07:18:34 +0000 Subject: [PATCH] CodeGen from PR 12246 in Azure/azure-rest-api-specs Merge 60846dbeab12c48cad242efa7b8058b5cabb68ed into 7a71c15c380d7b9061496698f3679a19aa63191d --- sdk/security/arm-security/README.md | 9 +- sdk/security/arm-security/rollup.config.js | 4 +- .../adaptiveApplicationControlsMappers.ts | 10 +- .../adaptiveNetworkHardeningsMappers.ts | 49 +- .../models/advancedThreatProtectionMappers.ts | 49 +- .../arm-security/src/models/alertsMappers.ts | 49 +- .../models/alertsSuppressionRulesMappers.ts | 49 +- .../src/models/allowedConnectionsMappers.ts | 4 +- .../src/models/assessmentsMappers.ts | 49 +- .../src/models/assessmentsMetadataMappers.ts | 49 +- .../models/autoProvisioningSettingsMappers.ts | 49 +- .../src/models/automationsMappers.ts | 4 +- .../src/models/complianceResultsMappers.ts | 49 +- .../src/models/compliancesMappers.ts | 49 +- .../src/models/connectorsMappers.ts | 143 + .../src/models/deviceOperationsMappers.ts | 142 + .../src/models/deviceSecurityGroupsMappers.ts | 49 +- .../src/models/devicesForHubMappers.ts | 143 + .../models/devicesForSubscriptionMappers.ts | 143 + .../discoveredSecuritySolutionsMappers.ts | 4 +- .../externalSecuritySolutionsMappers.ts | 4 +- sdk/security/arm-security/src/models/index.ts | 6642 ++++++++++++---- .../informationProtectionPoliciesMappers.ts | 49 +- .../src/models/iotAlertTypesMappers.ts | 143 + .../src/models/iotAlertsMappers.ts | 144 + .../src/models/iotDefenderSettingsMappers.ts | 152 + .../models/iotRecommendationTypesMappers.ts | 143 + .../src/models/iotRecommendationsMappers.ts | 144 + .../iotSecuritySolutionAnalyticsMappers.ts | 49 +- .../src/models/iotSecuritySolutionMappers.ts | 5 +- ...olutionsAnalyticsAggregatedAlertMappers.ts | 4 +- ...SolutionsAnalyticsRecommendationMappers.ts | 4 +- .../src/models/iotSensorsMappers.ts | 144 + .../src/models/iotSitesMappers.ts | 143 + .../models/jitNetworkAccessPoliciesMappers.ts | 4 +- .../src/models/locationsMappers.ts | 49 +- .../arm-security/src/models/mappers.ts | 6952 ++++++++++++----- .../src/models/onPremiseIotSensorsMappers.ts | 144 + .../src/models/operationsMappers.ts | 4 +- .../arm-security/src/models/parameters.ts | 293 +- .../src/models/pricingsMappers.ts | 49 +- .../regulatoryComplianceAssessmentsMappers.ts | 49 +- .../regulatoryComplianceControlsMappers.ts | 49 +- .../regulatoryComplianceStandardsMappers.ts | 49 +- .../secureScoreControlDefinitionsMappers.ts | 49 +- .../src/models/secureScoreControlsMappers.ts | 49 +- .../src/models/secureScoresMappers.ts | 49 +- .../src/models/securityContactsMappers.ts | 49 +- .../src/models/securitySolutionsMappers.ts | 14 + ...SolutionsReferenceDataOperationsMappers.ts | 14 + ...ulnerabilityAssessmentOperationsMappers.ts | 49 +- .../src/models/settingsMappers.ts | 49 +- ...erabilityAssessmentBaselineRulesMappers.ts | 145 + ...lnerabilityAssessmentScanResultsMappers.ts | 143 + .../sqlVulnerabilityAssessmentScansMappers.ts | 143 + .../src/models/subAssessmentsMappers.ts | 49 +- .../arm-security/src/models/tasksMappers.ts | 49 +- .../src/models/topologyMappers.ts | 4 +- .../src/models/workspaceSettingsMappers.ts | 49 +- .../operations/adaptiveApplicationControls.ts | 65 +- .../operations/adaptiveNetworkHardenings.ts | 14 +- .../operations/advancedThreatProtection.ts | 5 +- .../arm-security/src/operations/alerts.ts | 191 +- .../src/operations/alertsSuppressionRules.ts | 25 +- .../src/operations/allowedConnections.ts | 17 +- .../src/operations/assessments.ts | 16 +- .../src/operations/assessmentsMetadata.ts | 23 +- .../operations/autoProvisioningSettings.ts | 14 +- .../src/operations/automations.ts | 23 +- .../src/operations/complianceResults.ts | 8 +- .../src/operations/compliances.ts | 12 +- .../arm-security/src/operations/connectors.ts | 296 + .../src/operations/deviceOperations.ts | 85 + .../src/operations/deviceSecurityGroups.ts | 8 +- .../src/operations/devicesForHub.ts | 138 + .../src/operations/devicesForSubscription.ts | 134 + .../operations/discoveredSecuritySolutions.ts | 17 +- .../operations/externalSecuritySolutions.ts | 17 +- .../arm-security/src/operations/index.ts | 26 +- .../informationProtectionPolicies.ts | 14 +- .../src/operations/iotAlertTypes.ts | 253 + .../arm-security/src/operations/iotAlerts.ts | 403 + .../src/operations/iotDefenderSettings.ts | 329 + .../src/operations/iotRecommendationTypes.ts | 253 + .../src/operations/iotRecommendations.ts | 393 + .../src/operations/iotSecuritySolution.ts | 25 +- .../iotSecuritySolutionAnalytics.ts | 5 +- ...curitySolutionsAnalyticsAggregatedAlert.ts | 15 +- ...ecuritySolutionsAnalyticsRecommendation.ts | 15 +- .../arm-security/src/operations/iotSensors.ts | 448 ++ .../arm-security/src/operations/iotSites.ts | 246 + .../operations/jitNetworkAccessPolicies.ts | 33 +- .../arm-security/src/operations/locations.ts | 12 +- .../src/operations/onPremiseIotSensors.ts | 359 + .../arm-security/src/operations/operations.ts | 10 +- .../arm-security/src/operations/pricings.ts | 5 +- .../regulatoryComplianceAssessments.ts | 19 +- .../regulatoryComplianceControls.ts | 19 +- .../regulatoryComplianceStandards.ts | 19 +- .../secureScoreControlDefinitions.ts | 21 +- .../src/operations/secureScoreControls.ts | 42 +- .../src/operations/secureScores.ts | 24 +- .../src/operations/securityContacts.ts | 18 +- .../src/operations/securitySolutions.ts | 189 + ...ecuritySolutionsReferenceDataOperations.ts | 124 + ...serverVulnerabilityAssessmentOperations.ts | 13 +- .../arm-security/src/operations/settings.ts | 8 +- ...sqlVulnerabilityAssessmentBaselineRules.ts | 359 + .../sqlVulnerabilityAssessmentScanResults.ts | 164 + .../sqlVulnerabilityAssessmentScans.ts | 154 + .../src/operations/subAssessments.ts | 17 +- .../arm-security/src/operations/tasks.ts | 49 +- .../arm-security/src/operations/topology.ts | 17 +- .../src/operations/workspaceSettings.ts | 18 +- .../arm-security/src/securityCenter.ts | 47 +- .../arm-security/src/securityCenterContext.ts | 5 +- 116 files changed, 18744 insertions(+), 3946 deletions(-) create mode 100644 sdk/security/arm-security/src/models/connectorsMappers.ts create mode 100644 sdk/security/arm-security/src/models/deviceOperationsMappers.ts create mode 100644 sdk/security/arm-security/src/models/devicesForHubMappers.ts create mode 100644 sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotAlertTypesMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotAlertsMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotRecommendationsMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotSensorsMappers.ts create mode 100644 sdk/security/arm-security/src/models/iotSitesMappers.ts create mode 100644 sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts create mode 100644 sdk/security/arm-security/src/models/securitySolutionsMappers.ts create mode 100644 sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts create mode 100644 sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts create mode 100644 sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts create mode 100644 sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts create mode 100644 sdk/security/arm-security/src/operations/connectors.ts create mode 100644 sdk/security/arm-security/src/operations/deviceOperations.ts create mode 100644 sdk/security/arm-security/src/operations/devicesForHub.ts create mode 100644 sdk/security/arm-security/src/operations/devicesForSubscription.ts create mode 100644 sdk/security/arm-security/src/operations/iotAlertTypes.ts create mode 100644 sdk/security/arm-security/src/operations/iotAlerts.ts create mode 100644 sdk/security/arm-security/src/operations/iotDefenderSettings.ts create mode 100644 sdk/security/arm-security/src/operations/iotRecommendationTypes.ts create mode 100644 sdk/security/arm-security/src/operations/iotRecommendations.ts create mode 100644 sdk/security/arm-security/src/operations/iotSensors.ts create mode 100644 sdk/security/arm-security/src/operations/iotSites.ts create mode 100644 sdk/security/arm-security/src/operations/onPremiseIotSensors.ts create mode 100644 sdk/security/arm-security/src/operations/securitySolutions.ts create mode 100644 sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts create mode 100644 sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts create mode 100644 sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts create mode 100644 sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index 869cda4b96a1..b9b1cbc8b323 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-security ### How to use -#### nodejs - Authentication, client creation and list complianceResults as an example written in TypeScript. +#### nodejs - client creation and list complianceResults as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SecurityCenter, SecurityCenterModels, SecurityCenterMappers } from "@azure/arm-security"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { SecurityCenter } = require("@azure/arm-security"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/security/arm-security/rollup.config.js b/sdk/security/arm-security/rollup.config.js index 2c4179d62509..bc2c8a23953c 100644 --- a/sdk/security/arm-security/rollup.config.js +++ b/sdk/security/arm-security/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts index 667ae58aa953..3a4325bbeb36 100644 --- a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts +++ b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,9 @@ export { discriminators, - AppWhitelistingGroup, - AppWhitelistingGroups, - AppWhitelistingIssueSummary, + AdaptiveApplicationControlGroup, + AdaptiveApplicationControlGroups, + AdaptiveApplicationControlIssueSummary, CloudError, PathRecommendation, ProtectionMode, diff --git a/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts b/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts index e744310578ca..ee812ef00d06 100644 --- a/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts +++ b/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,7 +15,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -25,53 +24,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -87,10 +125,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -98,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts index 4e805a8af48e..ccbfedbfb07f 100644 --- a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts +++ b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,10 +123,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -96,6 +136,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/alertsMappers.ts b/sdk/security/arm-security/src/models/alertsMappers.ts index 54ae8a36b48f..680a58c55c2a 100644 --- a/sdk/security/arm-security/src/models/alertsMappers.ts +++ b/sdk/security/arm-security/src/models/alertsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertList, AlertsSuppressionRule, @@ -24,53 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts b/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts index 1d11d709b04e..b6b75dbd8cbc 100644 --- a/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts +++ b/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AlertsSuppressionRulesList, @@ -24,53 +23,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts b/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts index 3c08bb7fe3fa..d5c8b95ffd52 100644 --- a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts +++ b/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/assessmentsMappers.ts b/sdk/security/arm-security/src/models/assessmentsMappers.ts index 588f3fb6ff9a..d4f61d44fc60 100644 --- a/sdk/security/arm-security/src/models/assessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/assessmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts index 206b63ca6c92..f3621371a9f4 100644 --- a/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts +++ b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts index 10d241ae6e7d..f375cbe330c5 100644 --- a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, AutoProvisioningSettingList, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/automationsMappers.ts b/sdk/security/arm-security/src/models/automationsMappers.ts index c0c7f12b3797..5c234eb53d3d 100644 --- a/sdk/security/arm-security/src/models/automationsMappers.ts +++ b/sdk/security/arm-security/src/models/automationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/complianceResultsMappers.ts b/sdk/security/arm-security/src/models/complianceResultsMappers.ts index 9baf6d868a5f..024dbcbeccbc 100644 --- a/sdk/security/arm-security/src/models/complianceResultsMappers.ts +++ b/sdk/security/arm-security/src/models/complianceResultsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceResultList, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/compliancesMappers.ts b/sdk/security/arm-security/src/models/compliancesMappers.ts index 7706b9dbf8c8..2be4c521a828 100644 --- a/sdk/security/arm-security/src/models/compliancesMappers.ts +++ b/sdk/security/arm-security/src/models/compliancesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceList, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/connectorsMappers.ts b/sdk/security/arm-security/src/models/connectorsMappers.ts new file mode 100644 index 000000000000..c6299529742e --- /dev/null +++ b/sdk/security/arm-security/src/models/connectorsMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ConnectorSettingList, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/deviceOperationsMappers.ts b/sdk/security/arm-security/src/models/deviceOperationsMappers.ts new file mode 100644 index 000000000000..ccbfedbfb07f --- /dev/null +++ b/sdk/security/arm-security/src/models/deviceOperationsMappers.ts @@ -0,0 +1,142 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts b/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts index 8050255cd456..912aecff7584 100644 --- a/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts +++ b/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DeviceSecurityGroupList, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/devicesForHubMappers.ts b/sdk/security/arm-security/src/models/devicesForHubMappers.ts new file mode 100644 index 000000000000..3b042d64fd91 --- /dev/null +++ b/sdk/security/arm-security/src/models/devicesForHubMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceList, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts b/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts new file mode 100644 index 000000000000..3b042d64fd91 --- /dev/null +++ b/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceList, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts index 7b504741880d..27e0cec44d25 100644 --- a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts +++ b/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts index 55f2be16966d..f95eb684181d 100644 --- a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts +++ b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index d24f392f288c..450f81cdafa1 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -72,9 +72,8 @@ export interface TrackedResource { readonly type?: string; /** * Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + location?: string; /** * Kind of the resource */ @@ -92,12 +91,11 @@ export interface TrackedResource { /** * Describes an Azure resource with location */ -export interface Location { +export interface AzureTrackedResourceLocation { /** * Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + location?: string; } /** @@ -130,6 +128,22 @@ export interface Tags { tags?: { [propertyName: string]: string }; } +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + /** * Azure Security Center is provided in two pricing tiers: free and standard, with the standard * tier available with a trial period. The standard tier offers advanced security capabilities, @@ -161,191 +175,13 @@ export interface PricingList { value: Pricing[]; } -/** - * Changing set of properties depending on the entity type. - */ -export interface AlertEntity { - /** - * Type of entity - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ - [property: string]: any; -} - -/** - * Factors that increase our confidence that the alert is a true positive - */ -export interface AlertConfidenceReason { - /** - * Type of confidence factor - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * description of the confidence reason - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reason?: string; -} - -/** - * Security alert - */ -export interface Alert extends Resource { - /** - * State of the alert (Active, Dismissed etc.) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; - /** - * The time the incident was reported to Microsoft.Security in UTC - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reportedTimeUtc?: Date; - /** - * Name of the vendor that discovered the incident - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vendorName?: string; - /** - * Name of the alert type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertName?: string; - /** - * Display name of the alert type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertDisplayName?: string; - /** - * The time the incident was detected by the vendor - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly detectedTimeUtc?: Date; - /** - * Description of the incident and what it means - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * Recommended steps to reradiate the incident - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly remediationSteps?: string; - /** - * The action that was taken as a response to the alert (Active, Blocked etc.) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly actionTaken?: string; - /** - * Estimated severity of this alert. Possible values include: 'Informational', 'Low', 'Medium', - * 'High' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reportedSeverity?: ReportedSeverity; - /** - * The entity that the incident happened on - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly compromisedEntity?: string; - /** - * Azure resource ID of the associated resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly associatedResource?: string; - extendedProperties?: { [propertyName: string]: any }; - /** - * The type of the alerted resource (Azure, Non-Azure) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly systemSource?: string; - /** - * Whether this alert can be investigated with Azure Security Center - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly canBeInvestigated?: boolean; - /** - * Whether this alert is for incident type or not (otherwise - single alert) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isIncident?: boolean; - /** - * objects that are related to this alerts - */ - entities?: AlertEntity[]; - /** - * level of confidence we have on the alert - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly confidenceScore?: number; - /** - * reasons the alert got the confidenceScore value - */ - confidenceReasons?: AlertConfidenceReason[]; - /** - * Azure subscription ID of the resource that had the security alert or the subscription ID of - * the workspace that this resource reports to - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly subscriptionId?: string; - /** - * Instance ID of the alert. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly instanceId?: string; - /** - * Azure resource ID of the workspace that the alert was reported to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly workspaceArmId?: string; - /** - * Alerts with the same CorrelationKey will be grouped together in Ibiza. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly correlationKey?: string; -} - -/** - * Contains the possible cases for SettingResource. - */ -export type SettingResourceUnion = SettingResource | SettingUnion; - -/** - * The kind of the security setting - */ -export interface SettingResource { - /** - * Polymorphic Discriminator - */ - kind: "SettingResource"; - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - /** * Contains the possible cases for Setting. */ export type SettingUnion = Setting | DataExportSettings; /** - * Represents a security setting in Azure Security Center. + * The kind of the security setting */ export interface Setting { /** @@ -554,7 +390,7 @@ export interface ListCustomAlertRule { /** * Contains the possible cases for AllowlistCustomAlertRule. */ -export type AllowlistCustomAlertRuleUnion = AllowlistCustomAlertRule | ConnectionToIpNotAllowed | LocalUserNotAllowed | ProcessNotAllowed; +export type AllowlistCustomAlertRuleUnion = AllowlistCustomAlertRule | ConnectionToIpNotAllowed | ConnectionFromIpNotAllowed | LocalUserNotAllowed | ProcessNotAllowed; /** * A custom alert rule that checks if a value (depends on the custom alert type) is allowed. @@ -678,6 +514,40 @@ export interface ConnectionToIpNotAllowed { allowlistValues: string[]; } +/** + * Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in + * CIDR notation. + */ +export interface ConnectionFromIpNotAllowed { + /** + * Polymorphic Discriminator + */ + ruleType: "ConnectionFromIpNotAllowed"; + /** + * The display name of the custom alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * The description of the custom alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Status of the custom alert. + */ + isEnabled: boolean; + /** + * The value type of the items in the list. Possible values include: 'IpCidr', 'String' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly valueType?: ValueType; + /** + * The values to allow. The format of the values depends on the rule type. + */ + allowlistValues: string[]; +} + /** * Login by a local user that isn't allowed. Allow list consists of login names to allow. */ @@ -1370,6 +1240,24 @@ export interface RecommendationConfigurationProperties { status: RecommendationConfigStatus; } +/** + * Properties of the additional workspaces. + */ +export interface AdditionalWorkspacesProperties { + /** + * Workspace resource id + */ + workspace?: string; + /** + * Workspace type. Possible values include: 'Sentinel'. Default value: 'Sentinel'. + */ + type?: AdditionalWorkspaceType; + /** + * List of data types sent to workspace + */ + dataTypes?: AdditionalWorkspaceDataType[]; +} + /** * IoT Security solution configuration and resource information. */ @@ -1400,7 +1288,7 @@ export interface IoTSecuritySolutionModel { /** * Workspace resource ID */ - workspace: string; + workspace?: string; /** * Resource display name. */ @@ -1434,6 +1322,10 @@ export interface IoTSecuritySolutionModel { * value: 'Disabled'. */ unmaskedIpLoggingStatus?: UnmaskedIpLoggingStatus; + /** + * List of additional workspaces + */ + additionalWorkspaces?: AdditionalWorkspacesProperties[]; } /** @@ -1770,92 +1662,285 @@ export interface IoTSecurityAggregatedRecommendation { } /** - * Security operation display + * IoT alert type. */ -export interface OperationDisplay { +export interface IotAlertType extends Resource { /** - * The resource provider for the operation. + * The display name of the alert * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provider?: string; + readonly alertDisplayName?: string; /** - * The display name of the resource the operation applies to. + * The severity of the alert. Possible values include: 'Informational', 'Low', 'Medium', 'High' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resource?: string; + readonly severity?: AlertSeverity; /** - * The display name of the security operation. + * Description of the suspected vulnerability and meaning. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly description?: string; /** - * The description of the operation. + * The name of the alert provider or internal partner * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; -} - -/** - * Possible operation in the REST API of Microsoft.Security - */ -export interface Operation { + readonly providerName?: string; /** - * Name of the operation + * The name of the product which published this alert * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly productName?: string; /** - * Where the operation is originated + * The name of a component inside the product which generated the alert * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly origin?: string; - display?: OperationDisplay; + readonly productComponentName?: string; + /** + * The name of the vendor that raise the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendorName?: string; + /** + * Kill chain related intent behind the alert. Could contain multiple enum values (separated by + * commas). Possible values include: 'Unknown', 'PreAttack', 'InitialAccess', 'Persistence', + * 'PrivilegeEscalation', 'DefenseEvasion', 'CredentialAccess', 'Discovery', 'LateralMovement', + * 'Execution', 'Collection', 'Exfiltration', 'CommandAndControl', 'Impact', 'Probing', + * 'Exploitation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly intent?: AlertIntent; + /** + * Manual action items to take to remediate the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationSteps?: string[]; } /** - * Changing set of properties, depending on the task type that is derived from the name field + * List of alert types */ -export interface SecurityTaskParameters { +export interface IotAlertTypeList { /** - * Name of the task type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * List data */ - [property: string]: any; + value?: IotAlertType[]; } /** - * Security task that we recommend to do in order to strengthen security + * IoT alert */ -export interface SecurityTask extends Resource { +export interface IotAlert extends Resource { /** - * State of the task (Active, Resolved etc.) + * Holds the product canonical identifier of the alert within the scope of a product * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly systemAlertId?: string; /** - * The time this task was discovered in UTC + * Display name of the main entity being reported on * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationTimeUtc?: Date; - securityTaskParameters?: SecurityTaskParameters; + readonly compromisedEntity?: string; /** - * The time this task's details were last changed in UTC + * The type name of the alert * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastStateChangeTimeUtc?: Date; + readonly alertType?: string; /** - * Additional data on the state of the task + * The impact start time of the alert (the time of the first event or activity included in the + * alert) * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly subState?: string; -} - -/** - * Auto provisioning setting + readonly startTimeUtc?: string; + /** + * The impact end time of the alert (the time of the last event or activity included in the + * alert) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: string; + /** + * A list of entities related to the alert + */ + entities?: any[]; + /** + * A bag of fields which extends the alert information + */ + extendedProperties?: any; +} + +/** + * IoT recommendation type. + */ +export interface IotRecommendationType extends Resource { + /** + * The display name of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recommendationDisplayName?: string; + /** + * The severity of the recommendation. Possible values include: 'Unknown', 'NotApplicable', + * 'Healthy', 'OffByPolicy', 'Low', 'Medium', 'High' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly severity?: RecommendationSeverity; + /** + * Description of the suspected vulnerability and meaning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The name of the product which published this recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productName?: string; + /** + * The name of a component inside the product which generated the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productComponentName?: string; + /** + * The name of the vendor that raised the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendorName?: string; + /** + * The name of the recommendation's control category + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly control?: string; + /** + * Manual action items to take to resolve the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationSteps?: string[]; + /** + * The alert's data source + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSource?: string; +} + +/** + * List of recommendation types + */ +export interface IotRecommendationTypeList { + /** + * List data + */ + value?: IotRecommendationType[]; +} + +/** + * IoT recommendation + */ +export interface IotRecommendation extends Resource { + /** + * Identifier of the device being reported on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceId?: string; + /** + * The type name of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recommendationType?: string; + /** + * The discovery time of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly discoveredTimeUtc?: string; + /** + * A bag of fields which extends the recommendation information + */ + recommendationAdditionalData?: any; +} + +/** + * Security operation display + */ +export interface OperationDisplay { + /** + * The resource provider for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; + /** + * The display name of the resource the operation applies to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * The display name of the security operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * Possible operation in the REST API of Microsoft.Security + */ +export interface Operation { + /** + * Name of the operation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Where the operation is originated + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly origin?: string; + display?: OperationDisplay; +} + +/** + * Changing set of properties, depending on the task type that is derived from the name field + */ +export interface SecurityTaskParameters { + /** + * Name of the task type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + +/** + * Security task that we recommend to do in order to strengthen security + */ +export interface SecurityTask extends Resource { + /** + * State of the task (Active, Resolved etc.) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: string; + /** + * The time this task was discovered in UTC + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTimeUtc?: Date; + securityTaskParameters?: SecurityTaskParameters; + /** + * The time this task's details were last changed in UTC + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastStateChangeTimeUtc?: Date; + /** + * Additional data on the state of the task + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subState?: string; +} + +/** + * Auto provisioning setting */ export interface AutoProvisioningSetting extends Resource { /** @@ -2165,25 +2250,6 @@ export interface RegulatoryComplianceAssessment extends Resource { readonly unsupportedResources?: number; } -/** - * Describes the server vulnerability assessment details on a resource - */ -export interface ServerVulnerabilityAssessment extends Resource { - /** - * The provisioningState of the vulnerability assessment capability on the VM. Possible values - * include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; -} - -/** - * List of server vulnerability assessments - */ -export interface ServerVulnerabilityAssessmentsList { - value?: ServerVulnerabilityAssessment[]; -} - /** * Status of the sub-assessment */ @@ -2214,7 +2280,7 @@ export interface SubAssessmentStatus { /** * Contains the possible cases for ResourceDetails. */ -export type ResourceDetailsUnion = ResourceDetails | OnPremiseResourceDetails | AzureResourceDetails; +export type ResourceDetailsUnion = ResourceDetails | OnPremiseResourceDetailsUnion | AzureResourceDetails; /** * Details of the resource that was assessed @@ -2442,6 +2508,11 @@ export interface ServerVulnerabilityProperties { readonly vendorReferences?: VendorReference[]; } +/** + * Contains the possible cases for OnPremiseResourceDetails. + */ +export type OnPremiseResourceDetailsUnion = OnPremiseResourceDetails | OnPremiseSqlResourceDetails; + /** * Details of the On Premise resource that was assessed */ @@ -2468,6 +2539,40 @@ export interface OnPremiseResourceDetails { machineName: string; } +/** + * Details of the On Premise Sql resource that was assessed + */ +export interface OnPremiseSqlResourceDetails { + /** + * Polymorphic Discriminator + */ + source: "OnPremiseSql"; + /** + * Azure resource Id of the workspace the machine is attached to + */ + workspaceId: string; + /** + * The unique Id of the machine + */ + vmuuid: string; + /** + * The oms agent Id installed on the machine + */ + sourceComputerId: string; + /** + * The name of the machine + */ + machineName: string; + /** + * The Sql server name installed on the machine + */ + serverName: string; + /** + * The Sql database name installed on the machine + */ + databaseName: string; +} + /** * Details of the Azure resource that was assessed */ @@ -2540,7 +2645,8 @@ export interface AutomationRuleSet { */ export interface AutomationSource { /** - * A valid event source type. Possible values include: 'Assessments', 'Alerts' + * A valid event source type. Possible values include: 'Assessments', 'SubAssessments', 'Alerts', + * 'SecureScores', 'SecureScoreControls', 'RegulatoryComplianceAssessment' */ eventSource?: EventSource; /** @@ -2731,6 +2837,25 @@ export interface AlertsSuppressionRule extends Resource { suppressionAlertsScope?: SuppressionAlertsScope; } +/** + * Describes the server vulnerability assessment details on a resource + */ +export interface ServerVulnerabilityAssessment extends Resource { + /** + * The provisioningState of the vulnerability assessment capability on the VM. Possible values + * include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState1; +} + +/** + * List of server vulnerability assessments + */ +export interface ServerVulnerabilityAssessmentsList { + value?: ServerVulnerabilityAssessment[]; +} + /** * Describes the partner that created the assessment */ @@ -2935,9 +3060,9 @@ export interface ProtectionMode { } /** - * Represents a summary of the alerts of the VM/server group + * Represents a summary of the alerts of the machine group */ -export interface AppWhitelistingIssueSummary { +export interface AdaptiveApplicationControlIssueSummary { /** * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', @@ -2945,13 +3070,13 @@ export interface AppWhitelistingIssueSummary { */ issue?: Issue; /** - * The number of machines in the VM/server group that have this alert + * The number of machines in the group that have this alert */ numberOfVms?: number; } /** - * Represents a machine that is part of a VM/server group + * Represents a machine that is part of a machine group */ export interface VmRecommendation { /** @@ -3011,7 +3136,7 @@ export interface UserRecommendation { */ export interface PathRecommendation { /** - * The full path to whitelist + * The full path of the file, or an identifier of the application */ path?: string; /** @@ -3025,7 +3150,7 @@ export interface PathRecommendation { type?: Type; publisherInfo?: PublisherInfo; /** - * Whether the path is commonly run on the machine + * Whether the application is commonly run on the machine */ common?: boolean; userSids?: string[]; @@ -3041,9 +3166,9 @@ export interface PathRecommendation { } /** - * An interface representing AppWhitelistingGroup. + * An interface representing AdaptiveApplicationControlGroup. */ -export interface AppWhitelistingGroup { +export interface AdaptiveApplicationControlGroup { /** * Resource Id * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3082,7 +3207,7 @@ export interface AppWhitelistingGroup { /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly issues?: AppWhitelistingIssueSummary[]; + readonly issues?: AdaptiveApplicationControlIssueSummary[]; /** * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', * 'NonAzure_AuditD', 'None' @@ -3094,11 +3219,22 @@ export interface AppWhitelistingGroup { } /** - * Represents a list of VM/server groups and set of rules that are Recommended by Azure Security + * Represents a list of machine groups and set of rules that are recommended by Azure Security * Center to be allowed */ -export interface AppWhitelistingGroups { - value?: AppWhitelistingGroup[]; +export interface AdaptiveApplicationControlGroups { + value?: AdaptiveApplicationControlGroup[]; +} + +/** + * Describes an Azure resource with location + */ +export interface Location { + /** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; } /** @@ -3360,34 +3496,243 @@ export interface TopologyResource { } /** - * An interface representing JitNetworkAccessPortRule. + * Contains the possible cases for ResourceIdentifier. */ -export interface JitNetworkAccessPortRule { - number: number; - /** - * Possible values include: 'TCP', 'UDP', 'All' - */ - protocol: Protocol; - /** - * Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address - * or CIDR, for example "192.168.0.3" or "192.168.0.0/16". - */ - allowedSourceAddressPrefix?: string; - /** - * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. - */ - allowedSourceAddressPrefixes?: string[]; +export type ResourceIdentifierUnion = ResourceIdentifier | AzureResourceIdentifier | LogAnalyticsIdentifier; + +/** + * A resource identifier for an alert which can be used to direct the alert to the right product + * exposure group (tenant, workspace, subscription etc.). + */ +export interface ResourceIdentifier { /** - * Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, - * maximum 1 day + * Polymorphic Discriminator */ - maxRequestAccessDuration: string; + type: "ResourceIdentifier"; } /** - * An interface representing JitNetworkAccessPolicyVirtualMachine. + * Changing set of properties depending on the entity type. */ -export interface JitNetworkAccessPolicyVirtualMachine { +export interface AlertEntity { + /** + * Type of entity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + +/** + * Security alert + */ +export interface Alert extends Resource { + /** + * Unique identifier for the detection logic (all alert instances from the same detection logic + * will have the same alertType). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertType?: string; + /** + * Unique identifier for the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemAlertId?: string; + /** + * The name of Azure Security Center pricing tier which powering this alert. Learn more: + * https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productComponentName?: string; + /** + * The display name of the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertDisplayName?: string; + /** + * Description of the suspicious activity that was detected. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The risk level of the threat that was detected. Learn more: + * https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly severity?: AlertSeverity; + /** + * The kill chain related intent behind the alert. For list of supported values, and explanations + * of Azure Security Center's supported kill chain intents. Possible values include: 'Unknown', + * 'PreAttack', 'InitialAccess', 'Persistence', 'PrivilegeEscalation', 'DefenseEvasion', + * 'CredentialAccess', 'Discovery', 'LateralMovement', 'Execution', 'Collection', 'Exfiltration', + * 'CommandAndControl', 'Impact', 'Probing', 'Exploitation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly intent?: Intent; + /** + * The UTC time of the first event or activity included in the alert in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: Date; + /** + * The UTC time of the last event or activity included in the alert in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: Date; + /** + * The resource identifiers that can be used to direct the alert to the right product exposure + * group (tenant, workspace, subscription etc.). There can be multiple identifiers of different + * type per alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceIdentifiers?: ResourceIdentifierUnion[]; + /** + * Manual action items to take to remediate the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationSteps?: string[]; + /** + * The name of the vendor that raises the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendorName?: string; + /** + * The life cycle status of the alert. Possible values include: 'Active', 'Resolved', 'Dismissed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: AlertStatus; + /** + * Links related to the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly extendedLinks?: { [propertyName: string]: string }[]; + /** + * A direct link to the alert page in Azure Portal. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertUri?: string; + /** + * The UTC time the alert was generated in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeGeneratedUtc?: Date; + /** + * The name of the product which published this alert (Azure Security Center, Azure ATP, + * Microsoft Defender ATP, O365 ATP, MCAS, and so on). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly productName?: string; + /** + * The UTC processing end time of the alert in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly processingEndTimeUtc?: Date; + /** + * A list of entities related to the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly entities?: AlertEntity[]; + /** + * This field determines whether the alert is an incident (a compound grouping of several alerts) + * or a single alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isIncident?: boolean; + /** + * Key for corelating related alerts. Alerts with the same correlation key considered to be + * related. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly correlationKey?: string; + /** + * Custom properties for the alert. + */ + extendedProperties?: { [propertyName: string]: string }; + /** + * The display name of the resource most related to this alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly compromisedEntity?: string; +} + +/** + * Azure resource identifier. + */ +export interface AzureResourceIdentifier { + /** + * Polymorphic Discriminator + */ + type: "AzureResource"; + /** + * ARM resource identifier for the cloud resource being alerted on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly azureResourceId?: string; +} + +/** + * Represents a Log Analytics workspace scope identifier. + */ +export interface LogAnalyticsIdentifier { + /** + * Polymorphic Discriminator + */ + type: "LogAnalytics"; + /** + * The LogAnalytics workspace id that stores this alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceId?: string; + /** + * The azure subscription id for the LogAnalytics workspace storing this alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceSubscriptionId?: string; + /** + * The azure resource group for the LogAnalytics workspace storing this alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceResourceGroup?: string; + /** + * (optional) The LogAnalytics agent id reporting the event that this alert is based on. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly agentId?: string; +} + +/** + * An interface representing JitNetworkAccessPortRule. + */ +export interface JitNetworkAccessPortRule { + number: number; + /** + * Possible values include: 'TCP', 'UDP', 'All' + */ + protocol: Protocol; + /** + * Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address + * or CIDR, for example "192.168.0.3" or "192.168.0.0/16". + */ + allowedSourceAddressPrefix?: string; + /** + * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. + */ + allowedSourceAddressPrefixes?: string[]; + /** + * Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, + * maximum 1 day + */ + maxRequestAccessDuration: string; +} + +/** + * An interface representing JitNetworkAccessPolicyVirtualMachine. + */ +export interface JitNetworkAccessPolicyVirtualMachine { /** * Resource ID of the virtual machine that is linked to this policy */ @@ -3595,6 +3940,68 @@ export interface DiscoveredSecuritySolution { sku: string; } +/** + * An interface representing SecuritySolutionsReferenceData. + */ +export interface SecuritySolutionsReferenceData { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The security family of the security solution. Possible values include: 'Waf', 'Ngfw', + * 'SaasWaf', 'Va' + */ + securityFamily: SecurityFamily; + /** + * The security solutions' vendor name + */ + alertVendorName: string; + /** + * The security solutions' package info url + */ + packageInfoUrl: string; + /** + * The security solutions' product name + */ + productName: string; + /** + * The security solutions' publisher + */ + publisher: string; + /** + * The security solutions' publisher display name + */ + publisherDisplayName: string; + /** + * The security solutions' template + */ + template: string; +} + +/** + * An interface representing SecuritySolutionsReferenceDataList. + */ +export interface SecuritySolutionsReferenceDataList { + value?: SecuritySolutionsReferenceData[]; +} + /** * Contains the possible cases for ExternalSecuritySolution. */ @@ -3807,20 +4214,31 @@ export interface AadConnectivityState1 { */ export interface SecureScoreItem extends Resource { /** - * User friendly display name of the secure score item + * The initiative’s name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly displayName?: string; /** - * Maximum score applicable + * Maximum score available * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly max?: number; /** - * Actual score + * Current score * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentage?: number; + /** + * The relative weight for each subscription. Used when calculating an aggregated secure score + * for multiple subscriptions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly weight?: number; } /** @@ -3838,16 +4256,20 @@ export interface SecureScoreControlScore { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentage?: number; } /** - * representing the source of the control + * The type of the security control (For example, BuiltIn) */ export interface SecureScoreControlDefinitionSource { /** - * BuiltIn if the control is built-in from Azure Security Center managed assessments, Custom - * (Future) if the assessment based on custom Azure Policy definition, CustomerManaged (future) - * for customers who build their own controls. Possible values include: 'BuiltIn', 'Custom' + * The type of security control (for example, BuiltIn). Possible values include: 'BuiltIn', + * 'Custom' */ sourceType?: ControlType; } @@ -3864,7 +4286,7 @@ export interface AzureResourceLink { } /** - * Secure Score Control's Definition information + * Information about the security control. */ export interface SecureScoreControlDefinitionItem extends Resource { /** @@ -3888,14 +4310,14 @@ export interface SecureScoreControlDefinitionItem extends Resource { */ readonly source?: SecureScoreControlDefinitionSource; /** - * array of assessments metadata IDs that are included in this control + * Array of assessments metadata IDs that are included in this security control * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly assessmentDefinitions?: AzureResourceLink[]; } /** - * Secure score control (calculated) object + * Details of the security control, its score, and the health status of the relevant resources. */ export interface SecureScoreControlDetails extends Resource { /** @@ -3904,15 +4326,20 @@ export interface SecureScoreControlDetails extends Resource { */ readonly displayName?: string; /** - * Maximum score applicable + * Maximum score available * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly max?: number; /** - * Actual score + * Current score * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentage?: number; /** * Number of healthy resources in the control * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3928,1201 +4355,4318 @@ export interface SecureScoreControlDetails extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly notApplicableResourceCount?: number; + /** + * The relative weight for this specific control in each of your subscriptions. Used when + * calculating an aggregated score for this control across all of your subscriptions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly weight?: number; definition?: SecureScoreControlDefinitionItem; } /** - * Optional Parameters. + * An interface representing SecuritySolution. */ -export interface AlertsListOptionalParams extends msRest.RequestOptionsBase { +export interface SecuritySolution { /** - * OData filter. Optional. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly id?: string; /** - * OData select. Optional. + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - select?: string; + readonly name?: string; /** - * OData expand. Optional. + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly type?: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - autoDismissRuleName?: string; -} - -/** - * Optional Parameters. - */ -export interface AlertsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + readonly location?: string; /** - * OData filter. Optional. + * The security family of the security solution. Possible values include: 'Waf', 'Ngfw', + * 'SaasWaf', 'Va' */ - filter?: string; + securityFamily: SecurityFamily; /** - * OData select. Optional. + * The security family provisioning State. Possible values include: 'Succeeded', 'Failed', + * 'Updating' */ - select?: string; + provisioningState: ProvisioningState; /** - * OData expand. Optional. + * The security solutions' template */ - expand?: string; + template: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * The security solutions' status */ - autoDismissRuleName?: string; + protectionStatus: string; } /** - * Optional Parameters. + * For a non-Azure machine that is not connected directly to the internet, specify a proxy server + * that the non-Azure machine can use. */ -export interface AlertsListSubscriptionLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { +export interface ProxyServerProperties { /** - * OData filter. Optional. + * Proxy server IP */ - filter?: string; + ip?: string; /** - * OData select. Optional. + * Proxy server port */ - select?: string; + port?: string; +} + +/** + * Details of the service principal. + */ +export interface ServicePrincipalProperties { /** - * OData expand. Optional. + * Application ID of service principal. */ - expand?: string; + applicationId?: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * A secret string that the application uses to prove its identity, also can be referred to as + * application password (write only). */ - autoDismissRuleName?: string; + secret?: string; } /** - * Optional Parameters. + * Settings for hybrid compute management */ -export interface AlertsListResourceGroupLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { +export interface HybridComputeSettingsProperties { /** - * OData filter. Optional. + * State of the service principal and its secret. Possible values include: 'Valid', 'Invalid', + * 'Expired' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly hybridComputeProvisioningState?: HybridComputeProvisioningState; + /** + * Whether or not to automatically install Azure Arc (hybrid compute) agents on machines. + * Possible values include: 'On', 'Off' + */ + autoProvision: AutoProvision; /** - * OData select. Optional. + * The name of the resource group where Arc (Hybrid Compute) connectors are connected. */ - select?: string; + resourceGroupName?: string; /** - * OData expand. Optional. + * The location where the metadata of machines will be stored */ - expand?: string; + region?: string; /** - * The name of an existing auto dismiss rule. Use it to simulate the rule on existing alerts and - * get the alerts that would have been dismissed if the rule was enabled when the alert was - * created + * For a non-Azure machine that is not connected directly to the internet, specify a proxy server + * that the non-Azure machine can use. */ - autoDismissRuleName?: string; + proxyServer?: ProxyServerProperties; + /** + * An object to access resources that are secured by an Azure AD tenant. + */ + servicePrincipal?: ServicePrincipalProperties; } /** - * Optional Parameters. + * Contains the possible cases for AuthenticationDetailsProperties. */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export type AuthenticationDetailsPropertiesUnion = AuthenticationDetailsProperties | AwsCredsAuthenticationDetailsProperties | AwAssumeRoleAuthenticationDetailsProperties | GcpCredentialsDetailsProperties; + +/** + * Settings for cloud authentication management + */ +export interface AuthenticationDetailsProperties { /** - * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + * Polymorphic Discriminator */ - filter?: string; + authenticationType: "AuthenticationDetailsProperties"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; } /** - * Optional Parameters. + * The connector setting */ -export interface IotSecuritySolutionListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface ConnectorSetting extends Resource { /** - * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + * Settings for hybrid compute management. These settings are relevant only for Arc autoProvision + * (Hybrid Compute). */ - filter?: string; + hybridComputeSettings?: HybridComputeSettingsProperties; + /** + * Settings for authentication management, these settings are relevant only for the cloud + * connector. + */ + authenticationDetails?: AuthenticationDetailsPropertiesUnion; } /** - * Optional Parameters. + * AWS cloud account connector based credentials, the credentials is composed of access key ID and + * secret key, for more details, refer to Creating an IAM + * User in Your AWS Account (write only) */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams extends msRest.RequestOptionsBase { +export interface AwsCredsAuthenticationDetailsProperties { /** - * Number of results to retrieve. + * Polymorphic Discriminator */ - top?: number; + authenticationType: "awsCreds"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; + /** + * The ID of the cloud account + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountId?: string; + /** + * Public key element of the AWS credential object (write only) + */ + awsAccessKeyId: string; + /** + * Secret key element of the AWS credential object (write only) + */ + awsSecretAccessKey: string; } /** - * Optional Parameters. + * AWS cloud account connector based assume role, the role enables delegating access to your AWS + * resources. The role is composed of role Amazon Resource Name (ARN) and external ID. For more + * details, refer to Creating a + * Role to Delegate Permissions to an IAM User (write only) */ -export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams extends msRest.RequestOptionsBase { +export interface AwAssumeRoleAuthenticationDetailsProperties { /** - * Number of results to retrieve. + * Polymorphic Discriminator */ - top?: number; + authenticationType: "awsAssumeRole"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; + /** + * The ID of the cloud account + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly accountId?: string; + /** + * Assumed role ID is an identifier that you can use to create temporary security credentials. + */ + awsAssumeRoleArn: string; + /** + * A unique identifier that is required when you assume a role in another account. + */ + awsExternalId: string; } /** - * Optional Parameters. + * GCP cloud account connector based service to service credentials, the credentials are composed + * of the organization ID and a JSON API key (write only) */ -export interface TasksListOptionalParams extends msRest.RequestOptionsBase { +export interface GcpCredentialsDetailsProperties { /** - * OData filter. Optional. + * Polymorphic Discriminator */ - filter?: string; + authenticationType: "gcpCredentials"; + /** + * State of the multi-cloud connector. Possible values include: 'Valid', 'Invalid', 'Expired', + * 'IncorrectPolicy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authenticationProvisioningState?: AuthenticationProvisioningState; + /** + * The permissions detected in the cloud account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly grantedPermissions?: PermissionProperty[]; + /** + * The organization ID of the GCP cloud account + */ + organizationId: string; + /** + * Type field of the API key (write only) + */ + type: string; + /** + * Project ID field of the API key (write only) + */ + projectId: string; + /** + * Private key ID field of the API key (write only) + */ + privateKeyId: string; + /** + * Private key field of the API key (write only) + */ + privateKey: string; + /** + * Client email field of the API key (write only) + */ + clientEmail: string; + /** + * Client ID field of the API key (write only) + */ + clientId: string; + /** + * Auth URI field of the API key (write only) + */ + authUri: string; + /** + * Token URI field of the API key (write only) + */ + tokenUri: string; + /** + * Auth provider x509 certificate URL field of the API key (write only) + */ + authProviderX509CertUrl: string; + /** + * Client x509 certificate URL field of the API key (write only) + */ + clientX509CertUrl: string; } /** - * Optional Parameters. + * A vulnerability assessment scan record properties. */ -export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { +export interface ScanProperties { /** - * OData filter. Optional. + * Possible values include: 'OnDemand', 'Recurring' */ - filter?: string; + triggerType?: ScanTriggerType; + /** + * Possible values include: 'Failed', 'FailedToRun', 'InProgress', 'Passed' + */ + state?: ScanState; + /** + * The server name. + */ + server?: string; + /** + * The database name. + */ + database?: string; + /** + * The SQL version. + */ + sqlVersion?: string; + /** + * The scan start time (UTC). + */ + startTime?: Date; + /** + * Scan results are valid until end time (UTC). + */ + endTime?: Date; + /** + * The number of failed rules with high severity. + */ + highSeverityFailedRulesCount?: number; + /** + * The number of failed rules with medium severity. + */ + mediumSeverityFailedRulesCount?: number; + /** + * The number of failed rules with low severity. + */ + lowSeverityFailedRulesCount?: number; + /** + * The number of total passed rules. + */ + totalPassedRulesCount?: number; + /** + * The number of total failed rules. + */ + totalFailedRulesCount?: number; + /** + * The number of total rules assessed. + */ + totalRulesCount?: number; + /** + * Baseline created for this database, and has one or more rules. + */ + isBaselineApplied?: boolean; } /** - * Optional Parameters. + * A vulnerability assessment scan record. */ -export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { - /** - * OData filter. Optional. - */ - filter?: string; +export interface Scan extends Resource { + properties?: ScanProperties; } /** - * Optional Parameters. + * A list of vulnerability assessment scan records. */ -export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { +export interface Scans { /** - * OData filter. Optional. + * List of vulnerability assessment scan records. */ - filter?: string; + value?: Scan[]; } /** - * Optional Parameters. + * Remediation details. */ -export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface Remediation { /** - * OData filter. Optional. + * Remediation description. */ - filter?: string; + description?: string; + /** + * Remediation script. + */ + scripts?: string[]; + /** + * Is remediation automated. + */ + automated?: boolean; + /** + * Optional link to remediate in Azure Portal. + */ + portalLink?: string; } /** - * Optional Parameters. + * Baseline details. */ -export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { +export interface Baseline { /** - * OData filter. Optional. + * Expected results. */ - filter?: string; + expectedResults?: string[][]; + /** + * Baseline update time (UTC). + */ + updatedTime?: Date; } /** - * Optional Parameters. + * The rule result adjusted with baseline. */ -export interface AlertsSuppressionRulesListOptionalParams extends msRest.RequestOptionsBase { +export interface BaselineAdjustedResult { + baseline?: Baseline; /** - * Type of the alert to get rules for + * Possible values include: 'NonFinding', 'Finding', 'InternalError' */ - alertType?: string; + status?: RuleStatus; + /** + * Results the are not in baseline. + */ + resultsNotInBaseline?: string[][]; + /** + * Results the are in baseline. + */ + resultsOnlyInBaseline?: string[][]; } /** - * Optional Parameters. + * The rule query details. */ -export interface AssessmentsGetOptionalParams extends msRest.RequestOptionsBase { +export interface QueryCheck { /** - * OData expand. Optional. Possible values include: 'links', 'metadata' + * The rule query. */ - expand?: ExpandEnum; + query?: string; + /** + * Expected result. + */ + expectedResult?: string[][]; + /** + * Column names of expected result. + */ + columnNames?: string[]; } /** - * Optional Parameters. + * The benchmark references. */ -export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface BenchmarkReference { /** - * Include the policy rules + * The benchmark name. */ - includePathRecommendations?: boolean; + benchmark?: string; /** - * Return output in a summarized form + * The benchmark reference. */ - summary?: boolean; + reference?: string; } /** - * Optional Parameters. + * vulnerability assessment rule metadata details. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams extends msRest.RequestOptionsBase { +export interface VaRule { /** - * OData expand. Optional. Possible values include: 'definition' + * The rule Id. */ - expand?: ExpandControlsEnum; + ruleId?: string; + /** + * Possible values include: 'High', 'Medium', 'Low', 'Informational', 'Obsolete' + */ + severity?: RuleSeverity; + /** + * The rule category. + */ + category?: string; + /** + * Possible values include: 'Binary', 'BaselineExpected', 'PositiveList', 'NegativeList' + */ + ruleType?: RuleType; + /** + * The rule title. + */ + title?: string; + /** + * The rule description. + */ + description?: string; + /** + * The rule rationale. + */ + rationale?: string; + queryCheck?: QueryCheck; + /** + * The benchmark references. + */ + benchmarkReferences?: BenchmarkReference[]; } /** - * Optional Parameters. + * A vulnerability assessment scan result properties for a single rule. */ -export interface SecureScoreControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface ScanResultProperties { /** - * OData expand. Optional. Possible values include: 'definition' + * The rule Id. */ - expand?: ExpandControlsEnum; + ruleId?: string; + /** + * Possible values include: 'NonFinding', 'Finding', 'InternalError' + */ + status?: RuleStatus; + /** + * Indicated whether the results specified here are trimmed. + */ + isTrimmed?: boolean; + /** + * The results of the query that was run. + */ + queryResults?: string[][]; + remediation?: Remediation; + baselineAdjustedResult?: BaselineAdjustedResult; + ruleMetadata?: VaRule; } /** - * An interface representing SecurityCenterOptions. + * A vulnerability assessment scan result for a single rule. */ -export interface SecurityCenterOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface ScanResult extends Resource { + properties?: ScanResultProperties; } /** - * @interface - * List of compliance results response - * @extends Array + * A list of vulnerability assessment scan results. */ -export interface ComplianceResultList extends Array { +export interface ScanResults { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of vulnerability assessment scan results. */ - readonly nextLink?: string; + value?: ScanResult[]; } /** - * @interface - * List of security alerts - * @extends Array + * Rule results input. */ -export interface AlertList extends Array { +export interface RuleResultsInput { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Take results from latest scan. */ - readonly nextLink?: string; + latestScan?: boolean; + /** + * Expected results to be inserted into the baseline. + * Leave this field empty it LatestScan == true. + */ + results?: string[][]; } /** - * @interface - * Subscription settings list. - * @extends Array + * Rule results properties. */ -export interface SettingsList extends Array { +export interface RuleResultsProperties { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Expected results in the baseline. */ - readonly nextLink?: string; + results?: string[][]; } /** - * @interface - * List of device security groups - * @extends Array + * Rule results. */ -export interface DeviceSecurityGroupList extends Array { +export interface RuleResults extends Resource { + properties?: RuleResultsProperties; +} + +/** + * A list of rules results. + */ +export interface RulesResults { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of rule results. */ - readonly nextLink?: string; + value?: RuleResults[]; } /** - * @interface - * List of IoT Security solutions. - * @extends Array + * Rules results input. */ -export interface IoTSecuritySolutionsList extends Array { +export interface RulesResultsInput { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Take results from latest scan. */ - readonly nextLink?: string; + latestScan?: boolean; + /** + * Expected results to be inserted into the baseline. + * Leave this field empty it LatestScan == true. + */ + results?: { [propertyName: string]: string[][] }; } /** - * @interface - * List of IoT Security solution aggregated alert data. - * @extends Array + * IoT Defender settings */ -export interface IoTSecurityAggregatedAlertList extends Array { +export interface IotDefenderSettingsModel extends Resource { /** - * When there is too much alert data for one page, use this URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Size of the device quota (as a opposed to a Pay as You Go billing model). Value is required to + * be in multiples of 1000. */ - readonly nextLink?: string; + deviceQuota: number; + /** + * Sentinel Workspace Resource Ids + */ + sentinelWorkspaceResourceIds: string[]; } /** - * @interface - * List of IoT Security solution aggregated recommendations. - * @extends Array + * List of IoT Defender settings */ -export interface IoTSecurityAggregatedRecommendationList extends Array { +export interface IotDefenderSettingsList { /** - * When there is too much alert data for one page, use this URI to fetch the next page. + * List data * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly value?: IotDefenderSettingsModel[]; } /** - * @interface - * List of locations where ASC saves your data - * @extends Array + * Information on a specific package download */ -export interface AscLocationList extends Array { +export interface PackageDownloadInfo { /** - * The URI to fetch the next page. + * Version number * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of possible operations for Microsoft.Security resource provider - * @extends Array - */ -export interface OperationList extends Array { + readonly version?: string; /** - * The URI to fetch the next page. + * Download link + */ + link?: string; + /** + * Kind of the version. Possible values include: 'Latest', 'Previous', 'Preview' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly versionKind?: VersionKind; } /** - * @interface - * List of security task recommendations - * @extends Array + * Information on a specific package upgrade download */ -export interface SecurityTaskList extends Array { +export interface UpgradePackageDownloadInfo extends PackageDownloadInfo { /** - * The URI to fetch the next page. + * Minimum base version for upgrade * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly fromVersion?: string; } /** - * @interface - * List of all the auto provisioning settings response - * @extends Array + * Contains all OVF (virtual machine) full versions for the sensor */ -export interface AutoProvisioningSettingList extends Array { +export interface PackageDownloadsSensorFullOvf { /** - * The URI to fetch the next page. + * Enterprise package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of Compliance objects response - * @extends Array - */ -export interface ComplianceList extends Array { + readonly enterprise?: PackageDownloadInfo[]; /** - * The URI to fetch the next page. + * Medium package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Information protection policies response. - * @extends Array - */ -export interface InformationProtectionPolicyList extends Array { + readonly medium?: PackageDownloadInfo[]; /** - * The URI to fetch the next page. + * Line package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly line?: PackageDownloadInfo[]; } /** - * @interface - * List of security contacts response - * @extends Array + * Contains full package downloads */ -export interface SecurityContactList extends Array { +export interface PackageDownloadsSensorFull { /** - * The URI to fetch the next page. + * Contains all ISO full versions for the sensor * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly iso?: PackageDownloadInfo[]; + /** + * Contains all OVF (virtual machine) full versions for the sensor + */ + ovf?: PackageDownloadsSensorFullOvf; } /** - * @interface - * List of workspace settings response - * @extends Array + * Contains all Sensor binary downloads */ -export interface WorkspaceSettingList extends Array { +export interface PackageDownloadsSensor { /** - * The URI to fetch the next page. + * Contains full package downloads * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly full?: PackageDownloadsSensorFull; + /** + * Sensor upgrade package downloads (on existing installations) + */ + upgrade?: UpgradePackageDownloadInfo[]; } /** - * @interface - * List of regulatory compliance standards response - * @extends Array + * Contains all OVF (virtual machine) full versions of the Central Manager */ -export interface RegulatoryComplianceStandardList extends Array { +export interface PackageDownloadsCentralManagerFullOvf { /** - * The URI to fetch the next page. + * The Enterprise package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of regulatory compliance controls response - * @extends Array - */ -export interface RegulatoryComplianceControlList extends Array { + readonly enterprise?: PackageDownloadInfo[]; /** - * The URI to fetch the next page. + * The EnterpriseHighAvailability package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of regulatory compliance assessment response - * @extends Array - */ -export interface RegulatoryComplianceAssessmentList extends Array { + readonly enterpriseHighAvailability?: PackageDownloadInfo[]; /** - * The URI to fetch the next page. + * The Medium package type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly medium?: PackageDownloadInfo[]; + /** + * The MediumHighAvailability package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly mediumHighAvailability?: PackageDownloadInfo[]; } /** - * @interface - * List of security sub-assessments - * @extends Array + * Contains full package downloads */ -export interface SecuritySubAssessmentList extends Array { +export interface PackageDownloadsCentralManagerFull { /** - * The URI to fetch the next page. + * Contains all ISO full versions of the Central Manager * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly iso?: PackageDownloadInfo[]; + /** + * Contains all OVF (virtual machine) full versions of the Central Manager + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ovf?: PackageDownloadsCentralManagerFullOvf; } /** - * @interface - * List of security automations response. - * @extends Array + * All downloads for Central Manager */ -export interface AutomationList extends Array { +export interface PackageDownloadsCentralManager { /** - * The URI to fetch the next page. + * Contains full package downloads * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly full?: PackageDownloadsCentralManagerFull; + /** + * Central Manager upgrade package downloads (on existing installations) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly upgrade?: UpgradePackageDownloadInfo[]; } /** - * @interface - * Suppression rules list for subscription. - * @extends Array + * Information about package downloads */ -export interface AlertsSuppressionRulesList extends Array { +export interface PackageDownloads { /** - * URI to fetch the next page. + * Contains all Sensor binary downloads * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly sensor?: PackageDownloadsSensor; + /** + * All downloads for Central Manager + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly centralManager?: PackageDownloadsCentralManager; + /** + * All downloads for threat intelligence + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly threatIntelligence?: PackageDownloadInfo[]; + /** + * SNMP Server file + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly snmp?: PackageDownloadInfo[]; + /** + * Used for local configuration export + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly wmiTool?: PackageDownloadInfo[]; + /** + * Authorized devices import template + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly authorizedDevicesImportTemplate?: PackageDownloadInfo[]; + /** + * Authorized devices import template + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceInformationUpdateImportTemplate?: PackageDownloadInfo[]; } /** - * @interface - * List of security assessment metadata - * @extends Array + * IoT sensor model */ -export interface SecurityAssessmentMetadataList extends Array { +export interface IotSensorsModel extends Resource { /** - * The URI to fetch the next page. + * Last connectivity time of the IoT sensor * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly connectivityTime?: string; + /** + * Creation time of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: string; + /** + * Dynamic mode status of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dynamicLearning?: boolean; + /** + * Learning mode status of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly learningMode?: boolean; + /** + * Status of the IoT sensor. Possible values include: 'Ok', 'Disconnected', 'Unavailable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sensorStatus?: SensorStatus; + /** + * Version of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sensorVersion?: string; + /** + * TI Automatic mode status of the IoT sensor + */ + tiAutomaticUpdates?: boolean; + /** + * TI Status of the IoT sensor. Possible values include: 'Ok', 'Failed', 'InProgress', + * 'UpdateAvailable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tiStatus?: TiStatus; + /** + * TI Version of the IoT sensor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tiVersion?: string; + /** + * Zone of the IoT sensor + */ + zone?: string; } /** - * @interface - * Page of a security assessments list - * @extends Array + * List of IoT sensors */ -export interface SecurityAssessmentList extends Array { +export interface IotSensorsList { /** - * The URI to fetch the next page. + * List data * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly value?: IotSensorsModel[]; } /** - * @interface - * Response for ListAdaptiveNetworkHardenings API service call - * @extends Array + * Reset password input. */ -export interface AdaptiveNetworkHardeningsList extends Array { +export interface ResetPasswordInput { /** - * The URL to get the next set of results + * The appliance id of the sensor. */ - nextLink?: string; + applianceId?: string; } /** - * @interface - * List of all possible traffic between Azure resources - * @extends Array + * IP Address information */ -export interface AllowedConnectionsList extends Array { +export interface IpAddress { /** - * The URI to fetch the next page. + * IPV4 address * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * An interface representing the TopologyList. - * @extends Array - */ -export interface TopologyList extends Array { + readonly v4Address?: string; /** - * The URI to fetch the next page. + * Detection time of the ip address. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * An interface representing the JitNetworkAccessPoliciesList. - * @extends Array - */ -export interface JitNetworkAccessPoliciesList extends Array { + readonly detectionTime?: Date; /** - * The URI to fetch the next page. + * Subnet Classless Inter-Domain Routing * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * An interface representing the DiscoveredSecuritySolutionList. - * @extends Array - */ -export interface DiscoveredSecuritySolutionList extends Array { + readonly subnetCidr?: string; /** - * The URI to fetch the next page. + * Fully qualified domain name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly fqdn?: string; + /** + * FQDN last lookup time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fqdnLastLookupTime?: Date; } /** - * @interface - * An interface representing the ExternalSecuritySolutionList. - * @extends Array + * MAC Address information */ -export interface ExternalSecuritySolutionList extends Array { +export interface MacAddress { /** - * The URI to fetch the next page. + * MAC address * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly address?: string; + /** + * Detection time of the mac address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly detectionTime?: Date; + /** + * Indicates whether this is the primary secondary MAC address of the device. Possible values + * include: 'Primary', 'Secondary' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly significance?: MacSignificance; + /** + * Indicates whether the relation of the mac to the ip address is certain or a guess. Possible + * values include: 'Guess', 'Certain' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly relationToIpStatus?: RelationToIpStatus; } /** - * @interface - * Page of a secure scores list - * @extends Array + * Network interface */ -export interface SecureScoresList extends Array { +export interface NetworkInterface { + ipAddress?: IpAddress; + macAddress?: MacAddress; /** - * The URI to fetch the next page. + * List of device vlans. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly vlans?: string[]; } /** - * @interface - * Page of a secure score controls list - * @extends Array + * Protocol data */ -export interface SecureScoreControlList extends Array { +export interface Protocol1 { /** - * The URI to fetch the next page. + * Protocol name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly name?: string; + /** + * list of protocol identifiers. + */ + identifiers?: string; } /** - * @interface - * Page of a secure score controls definition list - * @extends Array + * Firmware information */ -export interface SecureScoreControlDefinitionList extends Array { +export interface Firmware { /** - * The URI to fetch the next page. + * Address of the specific module a firmware is related to * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * Defines values for ResourceStatus. - * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' - * @readonly - * @enum {string} - */ -export type ResourceStatus = 'Healthy' | 'NotApplicable' | 'OffByPolicy' | 'NotHealthy'; + readonly moduleAddress?: string; + /** + * Rack number of the module a firmware is related to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rack?: string; + /** + * Slot number in the rack of the module a firmware is related to + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly slot?: string; + /** + * Serial of the firmware + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serial?: string; + /** + * Firmware model + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly model?: string; + /** + * Firmware version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * A bag of fields which extends the firmware information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalData?: any; +} /** - * Defines values for PricingTier. - * Possible values include: 'Free', 'Standard' - * @readonly - * @enum {string} + * Sensor data */ -export type PricingTier = 'Free' | 'Standard'; +export interface Sensor { + /** + * Sensor name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Zone Name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zone?: string; +} /** - * Defines values for ReportedSeverity. - * Possible values include: 'Informational', 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Site data */ -export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; +export interface Site { + /** + * Site display name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; +} /** - * Defines values for ValueType. - * Possible values include: 'IpCidr', 'String' - * @readonly - * @enum {string} + * Device model */ -export type ValueType = 'IpCidr' | 'String'; +export interface Device extends Resource { + /** + * Device display name given by the collector + */ + displayName?: string; + /** + * Device type. + */ + deviceType?: string; + /** + * The source that created the device + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceName?: string; + /** + * List of network interfaces. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly networkInterfaces?: NetworkInterface[]; + /** + * Device vendor + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vendor?: string; + /** + * Device operating system name. + */ + osName?: string; + /** + * List of protocols. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly protocols?: Protocol1[]; + /** + * last time the device was active in the network + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastActiveTime?: Date; + /** + * last time the device was updated + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdateTime?: Date; + /** + * Managed state of the device. Possible values include: 'Managed', 'Unmanaged' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly managementState?: ManagementState; + /** + * Authorized state of the device. Possible values include: 'Authorized', 'Unauthorized'. Default + * value: 'Unauthorized'. + */ + authorizationState?: AuthorizationState; + /** + * Device criticality. Possible values include: 'Important', 'Standard'. Default value: + * 'Standard'. + */ + deviceCriticality?: DeviceCriticality; + /** + * Purdue level of the device. Possible values include: 'ProcessControl', 'Supervisory', + * 'Enterprise'. Default value: 'ProcessControl'. + */ + purdueLevel?: PurdueLevel; + /** + * user notes for the device, up to 300 characters. + */ + notes?: string; + /** + * List of device firmwares. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly firmwares?: Firmware[]; + /** + * Discovered time of the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly discoveryTime?: Date; + /** + * Indicates whether this device is programming. Possible values include: 'ProgrammingDevice', + * 'NotProgrammingDevice' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly programmingState?: ProgrammingState; + /** + * last time the device was programming or programed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastProgrammingTime?: Date; + /** + * Indicates whether the device is a scanner. Possible values include: 'ScannerDevice', + * 'NotScannerDevice' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scanningFunctionality?: ScanningFunctionality; + /** + * last time the device was scanning. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastScanTime?: Date; + /** + * risk score of the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly riskScore?: number; + /** + * List of sensors that scanned this device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sensors?: Sensor[]; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly site?: Site; + /** + * Device status. Possible values include: 'Active', 'Removed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceStatus?: DeviceStatus; +} /** - * Defines values for SecuritySolutionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * On-premise IoT sensor */ -export type SecuritySolutionStatus = 'Enabled' | 'Disabled'; +export interface OnPremiseIotSensor extends Resource { + /** + * On-premise IoT sensor properties + */ + properties?: any; +} /** - * Defines values for ExportData. - * Possible values include: 'RawEvents' - * @readonly - * @enum {string} + * List of on-premise IoT sensors */ -export type ExportData = 'RawEvents'; +export interface OnPremiseIotSensorsList { + /** + * List data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: OnPremiseIotSensor[]; +} /** - * Defines values for DataSource. - * Possible values include: 'TwinData' - * @readonly - * @enum {string} + * IoT site model */ -export type DataSource = 'TwinData'; +export interface IotSitesModel extends Resource { + /** + * Display name of the IoT site + */ + displayName: string; + /** + * Tags of the IoT site + */ + tags?: { [propertyName: string]: string }; +} /** - * Defines values for RecommendationType. - * Possible values include: 'IoT_ACRAuthentication', 'IoT_AgentSendsUnutilizedMessages', - * 'IoT_Baseline', 'IoT_EdgeHubMemOptimize', 'IoT_EdgeLoggingOptions', - * 'IoT_InconsistentModuleSettings', 'IoT_InstallAgent', 'IoT_IPFilter_DenyAll', - * 'IoT_IPFilter_PermissiveRule', 'IoT_OpenPorts', 'IoT_PermissiveFirewallPolicy', - * 'IoT_PermissiveInputFirewallRules', 'IoT_PermissiveOutputFirewallRules', - * 'IoT_PrivilegedDockerOptions', 'IoT_SharedCredentials', 'IoT_VulnerableTLSCipherSuite' - * @readonly - * @enum {string} + * List of IoT sites */ -export type RecommendationType = 'IoT_ACRAuthentication' | 'IoT_AgentSendsUnutilizedMessages' | 'IoT_Baseline' | 'IoT_EdgeHubMemOptimize' | 'IoT_EdgeLoggingOptions' | 'IoT_InconsistentModuleSettings' | 'IoT_InstallAgent' | 'IoT_IPFilter_DenyAll' | 'IoT_IPFilter_PermissiveRule' | 'IoT_OpenPorts' | 'IoT_PermissiveFirewallPolicy' | 'IoT_PermissiveInputFirewallRules' | 'IoT_PermissiveOutputFirewallRules' | 'IoT_PrivilegedDockerOptions' | 'IoT_SharedCredentials' | 'IoT_VulnerableTLSCipherSuite'; +export interface IotSitesList { + /** + * List data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: IotSitesModel[]; +} /** - * Defines values for RecommendationConfigStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * IoT alert */ -export type RecommendationConfigStatus = 'Disabled' | 'Enabled'; +export interface IotAlertModel extends Resource { + /** + * Holds the product canonical identifier of the alert within the scope of a product + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemAlertId?: string; + /** + * Display name of the main entity being reported on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly compromisedEntity?: string; + /** + * The type name of the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertType?: string; + /** + * The impact start time of the alert (the time of the first event or activity included in the + * alert) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTimeUtc?: string; + /** + * The impact end time of the alert (the time of the last event or activity included in the + * alert) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTimeUtc?: string; + /** + * A list of entities related to the alert + */ + entities?: any[]; + /** + * A bag of fields which extends the alert information + */ + extendedProperties?: any; +} /** - * Defines values for UnmaskedIpLoggingStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * IoT recommendation */ -export type UnmaskedIpLoggingStatus = 'Disabled' | 'Enabled'; +export interface IotRecommendationModel extends Resource { + /** + * Identifier of the device being reported on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceId?: string; + /** + * The type name of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly recommendationType?: string; + /** + * The discovery time of the recommendation + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly discoveredTimeUtc?: string; + /** + * A bag of fields which extends the recommendation information + */ + recommendationAdditionalData?: any; +} /** - * Defines values for AutoProvision. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type AutoProvision = 'On' | 'Off'; +export interface IotSecuritySolutionListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} /** - * Defines values for Rank. - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type Rank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; +export interface IotSecuritySolutionListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} /** - * Defines values for AlertNotifications. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type AlertNotifications = 'On' | 'Off'; +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} /** - * Defines values for AlertsToAdmins. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type AlertsToAdmins = 'On' | 'Off'; - -/** - * Defines values for State. - * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' +export interface IotSecuritySolutionListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of results to retrieve. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface IotAlertsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by minimum startTimeUtc (ISO 8601 format) + */ + minStartTimeUtc?: string; + /** + * Filter by maximum startTimeUtc (ISO 8601 format) + */ + maxStartTimeUtc?: string; + /** + * Filter by alert type + */ + alertType?: string; + /** + * Filter by compromised device + */ + compromisedEntity?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotAlertsList1OptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by minimum startTimeUtc (ISO 8601 format) + */ + minStartTimeUtc?: string; + /** + * Filter by maximum startTimeUtc (ISO 8601 format) + */ + maxStartTimeUtc?: string; + /** + * Filter by alert type + */ + alertType?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; + /** + * Filter by compromised device + */ + compromisedEntity?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotAlertsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by minimum startTimeUtc (ISO 8601 format) + */ + minStartTimeUtc?: string; + /** + * Filter by maximum startTimeUtc (ISO 8601 format) + */ + maxStartTimeUtc?: string; + /** + * Filter by alert type + */ + alertType?: string; + /** + * Filter by compromised device + */ + compromisedEntity?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotAlertsList1NextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by minimum startTimeUtc (ISO 8601 format) + */ + minStartTimeUtc?: string; + /** + * Filter by maximum startTimeUtc (ISO 8601 format) + */ + maxStartTimeUtc?: string; + /** + * Filter by alert type + */ + alertType?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; + /** + * Filter by compromised device + */ + compromisedEntity?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotRecommendationsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by recommendation type + */ + recommendationType?: string; + /** + * Filter by device id + */ + deviceId?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotRecommendationsList1OptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by recommendation type + */ + recommendationType?: string; + /** + * Filter by device id + */ + deviceId?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotRecommendationsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by recommendation type + */ + recommendationType?: string; + /** + * Filter by device id + */ + deviceId?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface IotRecommendationsList1NextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter by recommendation type + */ + recommendationType?: string; + /** + * Filter by device id + */ + deviceId?: string; + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByHomeRegionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceStandardsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceControlsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceAssessmentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface AlertsSuppressionRulesListOptionalParams extends msRest.RequestOptionsBase { + /** + * Type of the alert to get rules for + */ + alertType?: string; +} + +/** + * Optional Parameters. + */ +export interface AlertsSuppressionRulesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Type of the alert to get rules for + */ + alertType?: string; +} + +/** + * Optional Parameters. + */ +export interface AssessmentsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'links', 'metadata' + */ + expand?: ExpandEnum; +} + +/** + * Optional Parameters. + */ +export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Include the policy rules + */ + includePathRecommendations?: boolean; + /** + * Return output in a summarized form + */ + summary?: boolean; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListBySecureScoreOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListBySecureScoreNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SecureScoreControlsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * OData expand. Optional. Possible values include: 'definition' + */ + expand?: ExpandControlsEnum; +} + +/** + * Optional Parameters. + */ +export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The baseline results for this rule. + */ + body?: RuleResultsInput; +} + +/** + * Optional Parameters. + */ +export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams extends msRest.RequestOptionsBase { + /** + * The baseline rules. + */ + body?: RulesResultsInput; +} + +/** + * Optional Parameters. + */ +export interface DevicesForSubscriptionListOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface DevicesForSubscriptionListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface DevicesForHubListOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * Optional Parameters. + */ +export interface DevicesForHubListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Limit the number of items returned in a single page + */ + limit?: number; + /** + * Skip token used for pagination + */ + skipToken?: string; + /** + * Get devices only from specific type, Managed or Unmanaged. Possible values include: 'Managed', + * 'Unmanaged' + */ + deviceManagementType?: ManagementState; +} + +/** + * An interface representing SecurityCenterOptions. + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * List of compliance results response + * @extends Array + */ +export interface ComplianceResultList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Subscription settings list. + * @extends Array + */ +export interface SettingsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of device security groups + * @extends Array + */ +export interface DeviceSecurityGroupList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT Security solutions. + * @extends Array + */ +export interface IoTSecuritySolutionsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT Security solution aggregated alert data. + * @extends Array + */ +export interface IoTSecurityAggregatedAlertList extends Array { + /** + * When there is too much alert data for one page, use this URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT Security solution aggregated recommendations. + * @extends Array + */ +export interface IoTSecurityAggregatedRecommendationList extends Array { + /** + * When there is too much alert data for one page, use this URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT alerts + * @extends Array + */ +export interface IotAlertList extends Array { + /** + * When available, follow the URI to get the next page of data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; + /** + * Total count of alerts that conforms with the given filter options (not affected by page size) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalCount?: number; +} + +/** + * @interface + * List of IoT alerts + * @extends Array + */ +export interface IotAlertListModel extends Array { + /** + * When available, follow the URI to get the next page of data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of IoT recommendations + * @extends Array + */ +export interface IotRecommendationList extends Array { + /** + * When available, follow the URI to get the next page of data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; + /** + * Total count of recommendations that conforms with the given filter options (not affected by + * page size) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalCount?: number; +} + +/** + * @interface + * List of IoT recommendations + * @extends Array + */ +export interface IotRecommendationListModel extends Array { + /** + * When available, follow the URI to get the next page of data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of locations where ASC saves your data + * @extends Array + */ +export interface AscLocationList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of possible operations for Microsoft.Security resource provider + * @extends Array + */ +export interface OperationList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security task recommendations + * @extends Array + */ +export interface SecurityTaskList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of all the auto provisioning settings response + * @extends Array + */ +export interface AutoProvisioningSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of Compliance objects response + * @extends Array + */ +export interface ComplianceList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Information protection policies response. + * @extends Array + */ +export interface InformationProtectionPolicyList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security contacts response + * @extends Array + */ +export interface SecurityContactList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of workspace settings response + * @extends Array + */ +export interface WorkspaceSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance standards response + * @extends Array + */ +export interface RegulatoryComplianceStandardList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance controls response + * @extends Array + */ +export interface RegulatoryComplianceControlList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance assessment response + * @extends Array + */ +export interface RegulatoryComplianceAssessmentList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security sub-assessments + * @extends Array + */ +export interface SecuritySubAssessmentList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security automations response. + * @extends Array + */ +export interface AutomationList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Suppression rules list for subscription. + * @extends Array + */ +export interface AlertsSuppressionRulesList extends Array { + /** + * URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security assessment metadata + * @extends Array + */ +export interface SecurityAssessmentMetadataList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Page of a security assessments list + * @extends Array + */ +export interface SecurityAssessmentList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Response for ListAdaptiveNetworkHardenings API service call + * @extends Array + */ +export interface AdaptiveNetworkHardeningsList extends Array { + /** + * The URL to get the next set of results + */ + nextLink?: string; +} + +/** + * @interface + * List of all possible traffic between Azure resources + * @extends Array + */ +export interface AllowedConnectionsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TopologyList. + * @extends Array + */ +export interface TopologyList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security alerts + * @extends Array + */ +export interface AlertList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the JitNetworkAccessPoliciesList. + * @extends Array + */ +export interface JitNetworkAccessPoliciesList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DiscoveredSecuritySolutionList. + * @extends Array + */ +export interface DiscoveredSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ExternalSecuritySolutionList. + * @extends Array + */ +export interface ExternalSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of secure scores + * @extends Array + */ +export interface SecureScoresList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security controls + * @extends Array + */ +export interface SecureScoreControlList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of security controls definition + * @extends Array + */ +export interface SecureScoreControlDefinitionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SecuritySolutionList. + * @extends Array + */ +export interface SecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * For a subscription, list of all cloud account connectors and their settings + * @extends Array + */ +export interface ConnectorSettingList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of Devices + * @extends Array + */ +export interface DeviceList extends Array { + /** + * When there are too many devices for one page, use this URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for ResourceStatus. + * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' + * @readonly + * @enum {string} + */ +export type ResourceStatus = 'Healthy' | 'NotApplicable' | 'OffByPolicy' | 'NotHealthy'; + +/** + * Defines values for PricingTier. + * Possible values include: 'Free', 'Standard' + * @readonly + * @enum {string} + */ +export type PricingTier = 'Free' | 'Standard'; + +/** + * Defines values for ValueType. + * Possible values include: 'IpCidr', 'String' + * @readonly + * @enum {string} + */ +export type ValueType = 'IpCidr' | 'String'; + +/** + * Defines values for SecuritySolutionStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SecuritySolutionStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for ExportData. + * Possible values include: 'RawEvents' + * @readonly + * @enum {string} + */ +export type ExportData = 'RawEvents'; + +/** + * Defines values for DataSource. + * Possible values include: 'TwinData' + * @readonly + * @enum {string} + */ +export type DataSource = 'TwinData'; + +/** + * Defines values for RecommendationType. + * Possible values include: 'IoT_ACRAuthentication', 'IoT_AgentSendsUnutilizedMessages', + * 'IoT_Baseline', 'IoT_EdgeHubMemOptimize', 'IoT_EdgeLoggingOptions', + * 'IoT_InconsistentModuleSettings', 'IoT_InstallAgent', 'IoT_IPFilter_DenyAll', + * 'IoT_IPFilter_PermissiveRule', 'IoT_OpenPorts', 'IoT_PermissiveFirewallPolicy', + * 'IoT_PermissiveInputFirewallRules', 'IoT_PermissiveOutputFirewallRules', + * 'IoT_PrivilegedDockerOptions', 'IoT_SharedCredentials', 'IoT_VulnerableTLSCipherSuite' + * @readonly + * @enum {string} + */ +export type RecommendationType = 'IoT_ACRAuthentication' | 'IoT_AgentSendsUnutilizedMessages' | 'IoT_Baseline' | 'IoT_EdgeHubMemOptimize' | 'IoT_EdgeLoggingOptions' | 'IoT_InconsistentModuleSettings' | 'IoT_InstallAgent' | 'IoT_IPFilter_DenyAll' | 'IoT_IPFilter_PermissiveRule' | 'IoT_OpenPorts' | 'IoT_PermissiveFirewallPolicy' | 'IoT_PermissiveInputFirewallRules' | 'IoT_PermissiveOutputFirewallRules' | 'IoT_PrivilegedDockerOptions' | 'IoT_SharedCredentials' | 'IoT_VulnerableTLSCipherSuite'; + +/** + * Defines values for RecommendationConfigStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type RecommendationConfigStatus = 'Disabled' | 'Enabled'; + +/** + * Defines values for UnmaskedIpLoggingStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type UnmaskedIpLoggingStatus = 'Disabled' | 'Enabled'; + +/** + * Defines values for AdditionalWorkspaceType. + * Possible values include: 'Sentinel' + * @readonly + * @enum {string} + */ +export type AdditionalWorkspaceType = 'Sentinel'; + +/** + * Defines values for AdditionalWorkspaceDataType. + * Possible values include: 'Alerts', 'RawEvents' + * @readonly + * @enum {string} + */ +export type AdditionalWorkspaceDataType = 'Alerts' | 'RawEvents'; + +/** + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for AlertSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type AlertSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for AlertIntent. + * Possible values include: 'Unknown', 'PreAttack', 'InitialAccess', 'Persistence', + * 'PrivilegeEscalation', 'DefenseEvasion', 'CredentialAccess', 'Discovery', 'LateralMovement', + * 'Execution', 'Collection', 'Exfiltration', 'CommandAndControl', 'Impact', 'Probing', + * 'Exploitation' + * @readonly + * @enum {string} + */ +export type AlertIntent = 'Unknown' | 'PreAttack' | 'InitialAccess' | 'Persistence' | 'PrivilegeEscalation' | 'DefenseEvasion' | 'CredentialAccess' | 'Discovery' | 'LateralMovement' | 'Execution' | 'Collection' | 'Exfiltration' | 'CommandAndControl' | 'Impact' | 'Probing' | 'Exploitation'; + +/** + * Defines values for RecommendationSeverity. + * Possible values include: 'Unknown', 'NotApplicable', 'Healthy', 'OffByPolicy', 'Low', 'Medium', + * 'High' + * @readonly + * @enum {string} + */ +export type RecommendationSeverity = 'Unknown' | 'NotApplicable' | 'Healthy' | 'OffByPolicy' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for AutoProvision. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AutoProvision = 'On' | 'Off'; + +/** + * Defines values for Rank. + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + * @readonly + * @enum {string} + */ +export type Rank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; + +/** + * Defines values for AlertNotifications. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AlertNotifications = 'On' | 'Off'; + +/** + * Defines values for AlertsToAdmins. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AlertsToAdmins = 'On' | 'Off'; + +/** + * Defines values for State. + * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + * @readonly + * @enum {string} + */ +export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; + +/** + * Defines values for SubAssessmentStatusCode. + * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' + * @readonly + * @enum {string} + */ +export type SubAssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; + +/** + * Defines values for Severity. + * Possible values include: 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type Severity = 'Low' | 'Medium' | 'High'; + +/** + * Defines values for EventSource. + * Possible values include: 'Assessments', 'SubAssessments', 'Alerts', 'SecureScores', + * 'SecureScoreControls', 'RegulatoryComplianceAssessment' + * @readonly + * @enum {string} + */ +export type EventSource = 'Assessments' | 'SubAssessments' | 'Alerts' | 'SecureScores' | 'SecureScoreControls' | 'RegulatoryComplianceAssessment'; + +/** + * Defines values for PropertyType. + * Possible values include: 'String', 'Integer', 'Number', 'Boolean' + * @readonly + * @enum {string} + */ +export type PropertyType = 'String' | 'Integer' | 'Number' | 'Boolean'; + +/** + * Defines values for Operator. + * Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqualTo', 'LesserThan', + * 'LesserThanOrEqualTo', 'NotEquals', 'Contains', 'StartsWith', 'EndsWith' + * @readonly + * @enum {string} + */ +export type Operator = 'Equals' | 'GreaterThan' | 'GreaterThanOrEqualTo' | 'LesserThan' | 'LesserThanOrEqualTo' | 'NotEquals' | 'Contains' | 'StartsWith' | 'EndsWith'; + +/** + * Defines values for RuleState. + * Possible values include: 'Enabled', 'Disabled', 'Expired' + * @readonly + * @enum {string} + */ +export type RuleState = 'Enabled' | 'Disabled' | 'Expired'; + +/** + * Defines values for Category. + * Possible values include: 'Compute', 'Networking', 'Data', 'IdentityAndAccess', 'IoT' + * @readonly + * @enum {string} + */ +export type Category = 'Compute' | 'Networking' | 'Data' | 'IdentityAndAccess' | 'IoT'; + +/** + * Defines values for UserImpact. + * Possible values include: 'Low', 'Moderate', 'High' + * @readonly + * @enum {string} + */ +export type UserImpact = 'Low' | 'Moderate' | 'High'; + +/** + * Defines values for ImplementationEffort. + * Possible values include: 'Low', 'Moderate', 'High' + * @readonly + * @enum {string} + */ +export type ImplementationEffort = 'Low' | 'Moderate' | 'High'; + +/** + * Defines values for Threats. + * Possible values include: 'accountBreach', 'dataExfiltration', 'dataSpillage', + * 'maliciousInsider', 'elevationOfPrivilege', 'threatResistance', 'missingCoverage', + * 'denialOfService' + * @readonly + * @enum {string} + */ +export type Threats = 'accountBreach' | 'dataExfiltration' | 'dataSpillage' | 'maliciousInsider' | 'elevationOfPrivilege' | 'threatResistance' | 'missingCoverage' | 'denialOfService'; + +/** + * Defines values for AssessmentType. + * Possible values include: 'BuiltIn', 'CustomPolicy', 'CustomerManaged', 'VerifiedPartner' + * @readonly + * @enum {string} + */ +export type AssessmentType = 'BuiltIn' | 'CustomPolicy' | 'CustomerManaged' | 'VerifiedPartner'; + +/** + * Defines values for AssessmentStatusCode. + * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' + * @readonly + * @enum {string} + */ +export type AssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; + +/** + * Defines values for Direction. + * Possible values include: 'Inbound', 'Outbound' + * @readonly + * @enum {string} + */ +export type Direction = 'Inbound' | 'Outbound'; + +/** + * Defines values for TransportProtocol. + * Possible values include: 'TCP', 'UDP' + * @readonly + * @enum {string} + */ +export type TransportProtocol = 'TCP' | 'UDP'; + +/** + * Defines values for Intent. + * Possible values include: 'Unknown', 'PreAttack', 'InitialAccess', 'Persistence', + * 'PrivilegeEscalation', 'DefenseEvasion', 'CredentialAccess', 'Discovery', 'LateralMovement', + * 'Execution', 'Collection', 'Exfiltration', 'CommandAndControl', 'Impact', 'Probing', + * 'Exploitation' + * @readonly + * @enum {string} + */ +export type Intent = 'Unknown' | 'PreAttack' | 'InitialAccess' | 'Persistence' | 'PrivilegeEscalation' | 'DefenseEvasion' | 'CredentialAccess' | 'Discovery' | 'LateralMovement' | 'Execution' | 'Collection' | 'Exfiltration' | 'CommandAndControl' | 'Impact' | 'Probing' | 'Exploitation'; + +/** + * Defines values for AlertStatus. + * Possible values include: 'Active', 'Resolved', 'Dismissed' + * @readonly + * @enum {string} + */ +export type AlertStatus = 'Active' | 'Resolved' | 'Dismissed'; + +/** + * Defines values for Protocol. + * Possible values include: 'TCP', 'UDP', 'All' + * @readonly + * @enum {string} + */ +export type Protocol = 'TCP' | 'UDP' | '*'; + +/** + * Defines values for Status. + * Possible values include: 'Revoked', 'Initiated' + * @readonly + * @enum {string} + */ +export type Status = 'Revoked' | 'Initiated'; + +/** + * Defines values for StatusReason. + * Possible values include: 'Expired', 'UserRequested', 'NewerRequestInitiated' + * @readonly + * @enum {string} + */ +export type StatusReason = 'Expired' | 'UserRequested' | 'NewerRequestInitiated'; + +/** + * Defines values for SecurityFamily. + * Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va' + * @readonly + * @enum {string} + */ +export type SecurityFamily = 'Waf' | 'Ngfw' | 'SaasWaf' | 'Va'; + +/** + * Defines values for AadConnectivityState. + * Possible values include: 'Discovered', 'NotLicensed', 'Connected' + * @readonly + * @enum {string} + */ +export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; + +/** + * Defines values for ExternalSecuritySolutionKind. + * Possible values include: 'CEF', 'ATA', 'AAD' + * @readonly + * @enum {string} + */ +export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; + +/** + * Defines values for ControlType. + * Possible values include: 'BuiltIn', 'Custom' + * @readonly + * @enum {string} + */ +export type ControlType = 'BuiltIn' | 'Custom'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Updating' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + +/** + * Defines values for HybridComputeProvisioningState. + * Possible values include: 'Valid', 'Invalid', 'Expired' + * @readonly + * @enum {string} + */ +export type HybridComputeProvisioningState = 'Valid' | 'Invalid' | 'Expired'; + +/** + * Defines values for AuthenticationProvisioningState. + * Possible values include: 'Valid', 'Invalid', 'Expired', 'IncorrectPolicy' + * @readonly + * @enum {string} + */ +export type AuthenticationProvisioningState = 'Valid' | 'Invalid' | 'Expired' | 'IncorrectPolicy'; + +/** + * Defines values for PermissionProperty. + * Possible values include: 'AWS::AWSSecurityHubReadOnlyAccess', 'AWS::SecurityAudit', + * 'AWS::AmazonSSMAutomationRole', 'GCP::Security Center Admin Viewer' + * @readonly + * @enum {string} + */ +export type PermissionProperty = 'AWS::AWSSecurityHubReadOnlyAccess' | 'AWS::SecurityAudit' | 'AWS::AmazonSSMAutomationRole' | 'GCP::Security Center Admin Viewer'; + +/** + * Defines values for ScanTriggerType. + * Possible values include: 'OnDemand', 'Recurring' + * @readonly + * @enum {string} + */ +export type ScanTriggerType = 'OnDemand' | 'Recurring'; + +/** + * Defines values for ScanState. + * Possible values include: 'Failed', 'FailedToRun', 'InProgress', 'Passed' + * @readonly + * @enum {string} + */ +export type ScanState = 'Failed' | 'FailedToRun' | 'InProgress' | 'Passed'; + +/** + * Defines values for RuleStatus. + * Possible values include: 'NonFinding', 'Finding', 'InternalError' + * @readonly + * @enum {string} + */ +export type RuleStatus = 'NonFinding' | 'Finding' | 'InternalError'; + +/** + * Defines values for RuleSeverity. + * Possible values include: 'High', 'Medium', 'Low', 'Informational', 'Obsolete' + * @readonly + * @enum {string} + */ +export type RuleSeverity = 'High' | 'Medium' | 'Low' | 'Informational' | 'Obsolete'; + +/** + * Defines values for RuleType. + * Possible values include: 'Binary', 'BaselineExpected', 'PositiveList', 'NegativeList' + * @readonly + * @enum {string} + */ +export type RuleType = 'Binary' | 'BaselineExpected' | 'PositiveList' | 'NegativeList'; + +/** + * Defines values for VersionKind. + * Possible values include: 'Latest', 'Previous', 'Preview' + * @readonly + * @enum {string} + */ +export type VersionKind = 'Latest' | 'Previous' | 'Preview'; + +/** + * Defines values for SensorStatus. + * Possible values include: 'Ok', 'Disconnected', 'Unavailable' + * @readonly + * @enum {string} + */ +export type SensorStatus = 'Ok' | 'Disconnected' | 'Unavailable'; + +/** + * Defines values for TiStatus. + * Possible values include: 'Ok', 'Failed', 'InProgress', 'UpdateAvailable' + * @readonly + * @enum {string} + */ +export type TiStatus = 'Ok' | 'Failed' | 'InProgress' | 'UpdateAvailable'; + +/** + * Defines values for MacSignificance. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type MacSignificance = 'Primary' | 'Secondary'; + +/** + * Defines values for RelationToIpStatus. + * Possible values include: 'Guess', 'Certain' + * @readonly + * @enum {string} + */ +export type RelationToIpStatus = 'Guess' | 'Certain'; + +/** + * Defines values for ManagementState. + * Possible values include: 'Managed', 'Unmanaged' + * @readonly + * @enum {string} + */ +export type ManagementState = 'Managed' | 'Unmanaged'; + +/** + * Defines values for AuthorizationState. + * Possible values include: 'Authorized', 'Unauthorized' + * @readonly + * @enum {string} + */ +export type AuthorizationState = 'Authorized' | 'Unauthorized'; + +/** + * Defines values for DeviceCriticality. + * Possible values include: 'Important', 'Standard' + * @readonly + * @enum {string} + */ +export type DeviceCriticality = 'Important' | 'Standard'; + +/** + * Defines values for PurdueLevel. + * Possible values include: 'ProcessControl', 'Supervisory', 'Enterprise' + * @readonly + * @enum {string} + */ +export type PurdueLevel = 'ProcessControl' | 'Supervisory' | 'Enterprise'; + +/** + * Defines values for ProgrammingState. + * Possible values include: 'ProgrammingDevice', 'NotProgrammingDevice' + * @readonly + * @enum {string} + */ +export type ProgrammingState = 'ProgrammingDevice' | 'NotProgrammingDevice'; + +/** + * Defines values for ScanningFunctionality. + * Possible values include: 'ScannerDevice', 'NotScannerDevice' + * @readonly + * @enum {string} + */ +export type ScanningFunctionality = 'ScannerDevice' | 'NotScannerDevice'; + +/** + * Defines values for DeviceStatus. + * Possible values include: 'Active', 'Removed' + * @readonly + * @enum {string} + */ +export type DeviceStatus = 'Active' | 'Removed'; + +/** + * Defines values for ExpandEnum. + * Possible values include: 'links', 'metadata' + * @readonly + * @enum {string} + */ +export type ExpandEnum = 'links' | 'metadata'; + +/** + * Defines values for ConnectionType. + * Possible values include: 'Internal', 'External' + * @readonly + * @enum {string} + */ +export type ConnectionType = 'Internal' | 'External'; + +/** + * Defines values for ExpandControlsEnum. + * Possible values include: 'definition' + * @readonly + * @enum {string} + */ +export type ExpandControlsEnum = 'definition'; + +/** + * Defines values for ProvisioningState1. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' + * @readonly + * @enum {string} + */ +export type ProvisioningState1 = 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Deprovisioning'; + +/** + * Defines values for Exe. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Exe = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Msi. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Msi = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Script. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Script = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Executable. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type Executable = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for Issue. + * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', + * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', + * 'RulesViolatedManually' + * @readonly + * @enum {string} + */ +export type Issue = 'ViolationsAudited' | 'ViolationsBlocked' | 'MsiAndScriptViolationsAudited' | 'MsiAndScriptViolationsBlocked' | 'ExecutableViolationsAudited' | 'RulesViolatedManually'; + +/** + * Defines values for ConfigurationStatus. + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * @readonly + * @enum {string} + */ +export type ConfigurationStatus = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + +/** + * Defines values for RecommendationAction. + * Possible values include: 'Recommended', 'Add', 'Remove' + * @readonly + * @enum {string} + */ +export type RecommendationAction = 'Recommended' | 'Add' | 'Remove'; + +/** + * Defines values for EnforcementSupport. + * Possible values include: 'Supported', 'NotSupported', 'Unknown' + * @readonly + * @enum {string} + */ +export type EnforcementSupport = 'Supported' | 'NotSupported' | 'Unknown'; + +/** + * Defines values for RecommendationAction1. + * Possible values include: 'Recommended', 'Add', 'Remove' + * @readonly + * @enum {string} + */ +export type RecommendationAction1 = 'Recommended' | 'Add' | 'Remove'; + +/** + * Defines values for Action. + * Possible values include: 'Recommended', 'Add', 'Remove' + * @readonly + * @enum {string} + */ +export type Action = 'Recommended' | 'Add' | 'Remove'; + +/** + * Defines values for Type. + * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', + * 'BinarySignature', 'VersionAndAboveSignature' + * @readonly + * @enum {string} + */ +export type Type = 'File' | 'FileHash' | 'PublisherSignature' | 'ProductSignature' | 'BinarySignature' | 'VersionAndAboveSignature'; + +/** + * Defines values for FileType. + * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' + * @readonly + * @enum {string} + */ +export type FileType = 'Exe' | 'Dll' | 'Msi' | 'Script' | 'Executable' | 'Unknown'; + +/** + * Defines values for ConfigurationStatus1. + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * @readonly + * @enum {string} + */ +export type ConfigurationStatus1 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + +/** + * Defines values for EnforcementMode. + * Possible values include: 'Audit', 'Enforce', 'None' + * @readonly + * @enum {string} + */ +export type EnforcementMode = 'Audit' | 'Enforce' | 'None'; + +/** + * Defines values for ConfigurationStatus2. + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * @readonly + * @enum {string} + */ +export type ConfigurationStatus2 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + +/** + * Defines values for RecommendationStatus. + * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' + * @readonly + * @enum {string} + */ +export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvailable' | 'NoStatus'; + +/** + * Defines values for SourceSystem. + * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', + * 'NonAzure_AuditD', 'None' + * @readonly + * @enum {string} + */ +export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; + +/** + * Defines values for SettingName. + * Possible values include: 'MCAS', 'WDATP' + * @readonly + * @enum {string} + */ +export type SettingName = 'MCAS' | 'WDATP'; + +/** + * Defines values for SettingName1. + * Possible values include: 'MCAS', 'WDATP' + * @readonly + * @enum {string} + */ +export type SettingName1 = 'MCAS' | 'WDATP'; + +/** + * Defines values for TaskUpdateActionType. + * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' + * @readonly + * @enum {string} + */ +export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + +/** + * Defines values for TaskUpdateActionType1. + * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' + * @readonly + * @enum {string} + */ +export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + +/** + * Defines values for InformationProtectionPolicyName. + * Possible values include: 'effective', 'custom' + * @readonly + * @enum {string} + */ +export type InformationProtectionPolicyName = 'effective' | 'custom'; + +/** + * Defines values for InformationProtectionPolicyName1. + * Possible values include: 'effective', 'custom' * @readonly * @enum {string} */ -export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; +export type InformationProtectionPolicyName1 = 'effective' | 'custom'; + +/** + * Contains response data for the list operation. + */ +export type ComplianceResultsListResponse = ComplianceResultList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComplianceResultList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ComplianceResultsGetResponse = ComplianceResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComplianceResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ComplianceResultsListNextResponse = ComplianceResultList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ComplianceResultList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PricingsListResponse = PricingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PricingList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PricingsGetResponse = Pricing & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pricing; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PricingsUpdateResponse = Pricing & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pricing; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SettingsListResponse = SettingsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SettingsList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SettingsGetResponse = SettingUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SettingUnion; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SettingsUpdateResponse = SettingUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SettingUnion; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SettingsListNextResponse = SettingsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SettingsList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AdvancedThreatProtectionSetting; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AdvancedThreatProtectionSetting; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroupList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroup; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroup; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroupList; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionsList; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionsList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionModel; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionModel; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionModel; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionsList; + }; +}; /** - * Defines values for SubAssessmentStatusCode. - * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroupNext operation. */ -export type SubAssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; +export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionsList; + }; +}; /** - * Defines values for Severity. - * Possible values include: 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Severity = 'Low' | 'Medium' | 'High'; +export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionAnalyticsModelList; + }; +}; /** - * Defines values for EventSource. - * Possible values include: 'Assessments', 'Alerts' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type EventSource = 'Assessments' | 'Alerts'; +export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecuritySolutionAnalyticsModel; + }; +}; /** - * Defines values for PropertyType. - * Possible values include: 'String', 'Integer', 'Number', 'Boolean' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type PropertyType = 'String' | 'Integer' | 'Number' | 'Boolean'; +export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlertList; + }; +}; /** - * Defines values for Operator. - * Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqualTo', 'LesserThan', - * 'LesserThanOrEqualTo', 'NotEquals', 'Contains', 'StartsWith', 'EndsWith' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type Operator = 'Equals' | 'GreaterThan' | 'GreaterThanOrEqualTo' | 'LesserThan' | 'LesserThanOrEqualTo' | 'NotEquals' | 'Contains' | 'StartsWith' | 'EndsWith'; +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlert; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlertList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendation; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendationList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendationList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type IotAlertTypesListResponse = IotAlertTypeList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertTypeList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IotAlertTypesGetResponse = IotAlertType & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertType; + }; +}; /** - * Defines values for RuleState. - * Possible values include: 'Enabled', 'Disabled', 'Expired' - * @readonly - * @enum {string} + * Contains response data for the list1 operation. */ -export type RuleState = 'Enabled' | 'Disabled' | 'Expired'; +export type IotAlertTypesList1Response = IotAlertTypeList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Category. - * Possible values include: 'Compute', 'Networking', 'Data', 'IdentityAndAccess', 'IoT' - * @readonly - * @enum {string} - */ -export type Category = 'Compute' | 'Networking' | 'Data' | 'IdentityAndAccess' | 'IoT'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertTypeList; + }; +}; /** - * Defines values for UserImpact. - * Possible values include: 'Low', 'Moderate', 'High' - * @readonly - * @enum {string} + * Contains response data for the get1 operation. */ -export type UserImpact = 'Low' | 'Moderate' | 'High'; +export type IotAlertTypesGet1Response = IotAlertType & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ImplementationEffort. - * Possible values include: 'Low', 'Moderate', 'High' - * @readonly - * @enum {string} - */ -export type ImplementationEffort = 'Low' | 'Moderate' | 'High'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertType; + }; +}; /** - * Defines values for Threats. - * Possible values include: 'accountBreach', 'dataExfiltration', 'dataSpillage', - * 'maliciousInsider', 'elevationOfPrivilege', 'threatResistance', 'missingCoverage', - * 'denialOfService' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Threats = 'accountBreach' | 'dataExfiltration' | 'dataSpillage' | 'maliciousInsider' | 'elevationOfPrivilege' | 'threatResistance' | 'missingCoverage' | 'denialOfService'; +export type IotAlertsListResponse = IotAlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AssessmentType. - * Possible values include: 'BuiltIn', 'CustomPolicy', 'CustomerManaged', 'VerifiedPartner' - * @readonly - * @enum {string} - */ -export type AssessmentType = 'BuiltIn' | 'CustomPolicy' | 'CustomerManaged' | 'VerifiedPartner'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertList; + }; +}; /** - * Defines values for AssessmentStatusCode. - * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type AssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; +export type IotAlertsGetResponse = IotAlert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Direction. - * Possible values include: 'Inbound', 'Outbound' - * @readonly - * @enum {string} - */ -export type Direction = 'Inbound' | 'Outbound'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlert; + }; +}; /** - * Defines values for TransportProtocol. - * Possible values include: 'TCP', 'UDP' - * @readonly - * @enum {string} + * Contains response data for the list1 operation. */ -export type TransportProtocol = 'TCP' | 'UDP'; +export type IotAlertsList1Response = IotAlertListModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Protocol. - * Possible values include: 'TCP', 'UDP', 'All' - * @readonly - * @enum {string} - */ -export type Protocol = 'TCP' | 'UDP' | '*'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertListModel; + }; +}; /** - * Defines values for Status. - * Possible values include: 'Revoked', 'Initiated' - * @readonly - * @enum {string} + * Contains response data for the get1 operation. */ -export type Status = 'Revoked' | 'Initiated'; +export type IotAlertsGet1Response = IotAlertModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for StatusReason. - * Possible values include: 'Expired', 'UserRequested', 'NewerRequestInitiated' - * @readonly - * @enum {string} - */ -export type StatusReason = 'Expired' | 'UserRequested' | 'NewerRequestInitiated'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertModel; + }; +}; /** - * Defines values for SecurityFamily. - * Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type SecurityFamily = 'Waf' | 'Ngfw' | 'SaasWaf' | 'Va'; +export type IotAlertsListNextResponse = IotAlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AadConnectivityState. - * Possible values include: 'Discovered', 'NotLicensed', 'Connected' - * @readonly - * @enum {string} - */ -export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertList; + }; +}; /** - * Defines values for ExternalSecuritySolutionKind. - * Possible values include: 'CEF', 'ATA', 'AAD' - * @readonly - * @enum {string} + * Contains response data for the list1Next operation. */ -export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; +export type IotAlertsList1NextResponse = IotAlertListModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ControlType. - * Possible values include: 'BuiltIn', 'Custom' - * @readonly - * @enum {string} - */ -export type ControlType = 'BuiltIn' | 'Custom'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotAlertListModel; + }; +}; /** - * Defines values for ExpandEnum. - * Possible values include: 'links', 'metadata' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ExpandEnum = 'links' | 'metadata'; +export type IotRecommendationTypesListResponse = IotRecommendationTypeList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ConnectionType. - * Possible values include: 'Internal', 'External' - * @readonly - * @enum {string} - */ -export type ConnectionType = 'Internal' | 'External'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationTypeList; + }; +}; /** - * Defines values for ExpandControlsEnum. - * Possible values include: 'definition' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ExpandControlsEnum = 'definition'; +export type IotRecommendationTypesGetResponse = IotRecommendationType & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Deprovisioning'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationType; + }; +}; /** - * Defines values for Exe. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the list1 operation. */ -export type Exe = 'Audit' | 'Enforce' | 'None'; +export type IotRecommendationTypesList1Response = IotRecommendationTypeList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Msi. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type Msi = 'Audit' | 'Enforce' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationTypeList; + }; +}; /** - * Defines values for Script. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the get1 operation. */ -export type Script = 'Audit' | 'Enforce' | 'None'; +export type IotRecommendationTypesGet1Response = IotRecommendationType & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Executable. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type Executable = 'Audit' | 'Enforce' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationType; + }; +}; /** - * Defines values for Issue. - * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', - * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', - * 'RulesViolatedManually' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Issue = 'ViolationsAudited' | 'ViolationsBlocked' | 'MsiAndScriptViolationsAudited' | 'MsiAndScriptViolationsBlocked' | 'ExecutableViolationsAudited' | 'RulesViolatedManually'; +export type IotRecommendationsListResponse = IotRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ConfigurationStatus. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} - */ -export type ConfigurationStatus = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationList; + }; +}; /** - * Defines values for RecommendationAction. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type RecommendationAction = 'Recommended' | 'Add' | 'Remove'; +export type IotRecommendationsGetResponse = IotRecommendation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EnforcementSupport. - * Possible values include: 'Supported', 'NotSupported', 'Unknown' - * @readonly - * @enum {string} - */ -export type EnforcementSupport = 'Supported' | 'NotSupported' | 'Unknown'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendation; + }; +}; /** - * Defines values for RecommendationAction1. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the list1 operation. */ -export type RecommendationAction1 = 'Recommended' | 'Add' | 'Remove'; +export type IotRecommendationsList1Response = IotRecommendationListModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Action. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} - */ -export type Action = 'Recommended' | 'Add' | 'Remove'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationListModel; + }; +}; /** - * Defines values for Type. - * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', - * 'BinarySignature', 'VersionAndAboveSignature' - * @readonly - * @enum {string} + * Contains response data for the get1 operation. */ -export type Type = 'File' | 'FileHash' | 'PublisherSignature' | 'ProductSignature' | 'BinarySignature' | 'VersionAndAboveSignature'; +export type IotRecommendationsGet1Response = IotRecommendationModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for FileType. - * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' - * @readonly - * @enum {string} - */ -export type FileType = 'Exe' | 'Dll' | 'Msi' | 'Script' | 'Executable' | 'Unknown'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationModel; + }; +}; /** - * Defines values for ConfigurationStatus1. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type ConfigurationStatus1 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type IotRecommendationsListNextResponse = IotRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationList; + }; +}; /** - * Defines values for EnforcementMode. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the list1Next operation. */ -export type EnforcementMode = 'Audit' | 'Enforce' | 'None'; +export type IotRecommendationsList1NextResponse = IotRecommendationListModel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IotRecommendationListModel; + }; +}; /** - * Defines values for ConfigurationStatus2. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ConfigurationStatus2 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type LocationsListResponse = AscLocationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocationList; + }; +}; /** - * Defines values for RecommendationStatus. - * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvailable' | 'NoStatus'; +export type LocationsGetResponse = AscLocation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocation; + }; +}; /** - * Defines values for SourceSystem. - * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', - * 'NonAzure_AuditD', 'None' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; +export type LocationsListNextResponse = AscLocationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocationList; + }; +}; /** - * Defines values for SettingName. - * Possible values include: 'MCAS', 'WDATP' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type SettingName = 'MCAS' | 'WDATP'; +export type OperationsListResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SettingName1. - * Possible values include: 'MCAS', 'WDATP' - * @readonly - * @enum {string} - */ -export type SettingName1 = 'MCAS' | 'WDATP'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; /** - * Defines values for TaskUpdateActionType. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; +export type OperationsListNextResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TaskUpdateActionType1. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} - */ -export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; /** - * Defines values for InformationProtectionPolicyName. - * Possible values include: 'effective', 'custom' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type InformationProtectionPolicyName = 'effective' | 'custom'; +export type TasksListResponse = SecurityTaskList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTaskList; + }; +}; /** - * Defines values for InformationProtectionPolicyName1. - * Possible values include: 'effective', 'custom' - * @readonly - * @enum {string} + * Contains response data for the listByHomeRegion operation. */ -export type InformationProtectionPolicyName1 = 'effective' | 'custom'; +export type TasksListByHomeRegionResponse = SecurityTaskList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityTaskList; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the getSubscriptionLevelTask operation. */ -export type ComplianceResultsListResponse = ComplianceResultList & { +export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { /** * The underlying HTTP response. */ @@ -5135,14 +8679,14 @@ export type ComplianceResultsListResponse = ComplianceResultList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResultList; + parsedBody: SecurityTask; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type ComplianceResultsGetResponse = ComplianceResult & { +export type TasksListByResourceGroupResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -5155,14 +8699,14 @@ export type ComplianceResultsGetResponse = ComplianceResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResult; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getResourceGroupLevelTask operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList & { +export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { /** * The underlying HTTP response. */ @@ -5175,14 +8719,14 @@ export type ComplianceResultsListNextResponse = ComplianceResultList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResultList; + parsedBody: SecurityTask; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type PricingsListResponse = PricingList & { +export type TasksListNextResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -5195,14 +8739,14 @@ export type PricingsListResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type PricingsGetResponse = Pricing & { +export type TasksListByHomeRegionNextResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -5215,14 +8759,14 @@ export type PricingsGetResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type PricingsUpdateResponse = Pricing & { +export type TasksListByResourceGroupNextResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -5235,14 +8779,14 @@ export type PricingsUpdateResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: SecurityTaskList; }; }; /** * Contains response data for the list operation. */ -export type AlertsListResponse = AlertList & { +export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { /** * The underlying HTTP response. */ @@ -5255,14 +8799,14 @@ export type AlertsListResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: AutoProvisioningSettingList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type AlertsListByResourceGroupResponse = AlertList & { +export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { /** * The underlying HTTP response. */ @@ -5275,14 +8819,14 @@ export type AlertsListByResourceGroupResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: AutoProvisioningSetting; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegion operation. + * Contains response data for the create operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { +export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { /** * The underlying HTTP response. */ @@ -5295,14 +8839,14 @@ export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: AutoProvisioningSetting; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegion operation. + * Contains response data for the listNext operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { /** * The underlying HTTP response. */ @@ -5315,14 +8859,14 @@ export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: AutoProvisioningSettingList; }; }; /** - * Contains response data for the getSubscriptionLevelAlert operation. + * Contains response data for the list operation. */ -export type AlertsGetSubscriptionLevelAlertResponse = Alert & { +export type CompliancesListResponse = ComplianceList & { /** * The underlying HTTP response. */ @@ -5335,14 +8879,14 @@ export type AlertsGetSubscriptionLevelAlertResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: ComplianceList; }; }; /** - * Contains response data for the getResourceGroupLevelAlerts operation. + * Contains response data for the get operation. */ -export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { +export type CompliancesGetResponse = Compliance & { /** * The underlying HTTP response. */ @@ -5355,14 +8899,14 @@ export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: Compliance; }; }; /** * Contains response data for the listNext operation. */ -export type AlertsListNextResponse = AlertList & { +export type CompliancesListNextResponse = ComplianceList & { /** * The underlying HTTP response. */ @@ -5375,14 +8919,14 @@ export type AlertsListNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: ComplianceList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList & { +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { /** * The underlying HTTP response. */ @@ -5395,14 +8939,14 @@ export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: InformationProtectionPolicy; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegionNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & { +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { /** * The underlying HTTP response. */ @@ -5415,14 +8959,14 @@ export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: InformationProtectionPolicy; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegionNext operation. + * Contains response data for the list operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & { +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { /** * The underlying HTTP response. */ @@ -5435,14 +8979,14 @@ export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: InformationProtectionPolicyList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type SettingsListResponse = SettingsList & { +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { /** * The underlying HTTP response. */ @@ -5455,14 +8999,14 @@ export type SettingsListResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: InformationProtectionPolicyList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type SettingsGetResponse = SettingUnion & { +export type SecurityContactsListResponse = SecurityContactList & { /** * The underlying HTTP response. */ @@ -5475,14 +9019,14 @@ export type SettingsGetResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: SecurityContactList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type SettingsUpdateResponse = SettingUnion & { +export type SecurityContactsGetResponse = SecurityContact & { /** * The underlying HTTP response. */ @@ -5495,14 +9039,14 @@ export type SettingsUpdateResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: SecurityContact; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type SettingsListNextResponse = SettingsList & { +export type SecurityContactsCreateResponse = SecurityContact & { /** * The underlying HTTP response. */ @@ -5515,14 +9059,14 @@ export type SettingsListNextResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: SecurityContact; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { +export type SecurityContactsUpdateResponse = SecurityContact & { /** * The underlying HTTP response. */ @@ -5535,14 +9079,14 @@ export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSettin /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: SecurityContact; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { +export type SecurityContactsListNextResponse = SecurityContactList & { /** * The underlying HTTP response. */ @@ -5555,14 +9099,14 @@ export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSet /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: SecurityContactList; }; }; /** * Contains response data for the list operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { +export type WorkspaceSettingsListResponse = WorkspaceSettingList & { /** * The underlying HTTP response. */ @@ -5575,14 +9119,14 @@ export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroupList; + parsedBody: WorkspaceSettingList; }; }; /** * Contains response data for the get operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { +export type WorkspaceSettingsGetResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5595,14 +9139,14 @@ export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroup; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the create operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { +export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5615,14 +9159,14 @@ export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroup; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5635,14 +9179,14 @@ export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroupList; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList & { +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The underlying HTTP response. */ @@ -5655,14 +9199,14 @@ export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutions /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: WorkspaceSettingList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList & { +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -5675,14 +9219,14 @@ export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: RegulatoryComplianceStandardList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { /** * The underlying HTTP response. */ @@ -5695,14 +9239,14 @@ export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: RegulatoryComplianceStandard; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel & { +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -5715,14 +9259,14 @@ export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: RegulatoryComplianceStandardList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -5735,14 +9279,14 @@ export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList & { +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { /** * The underlying HTTP response. */ @@ -5755,14 +9299,14 @@ export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolut /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: RegulatoryComplianceControl; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList & { +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -5775,14 +9319,14 @@ export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolu /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: RegulatoryComplianceControlList; }; }; /** * Contains response data for the list operation. */ -export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList & { +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -5795,14 +9339,14 @@ export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyt /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionAnalyticsModelList; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel & { +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { /** * The underlying HTTP response. */ @@ -5815,14 +9359,14 @@ export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyti /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionAnalyticsModel; + parsedBody: RegulatoryComplianceAssessment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList & { +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -5835,14 +9379,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecuri /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listAll operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { +export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5855,14 +9399,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlert; + parsedBody: SecuritySubAssessmentList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { +export type SubAssessmentsListResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5875,14 +9419,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSe /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { +export type SubAssessmentsGetResponse = SecuritySubAssessment & { /** * The underlying HTTP response. */ @@ -5895,14 +9439,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurity /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendation; + parsedBody: SecuritySubAssessment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listAllNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { +export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5915,14 +9459,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecuritySubAssessmentList; }; }; /** * Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { +export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5935,14 +9479,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSec /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecuritySubAssessmentList; }; }; /** * Contains response data for the list operation. */ -export type LocationsListResponse = AscLocationList & { +export type AutomationsListResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5955,14 +9499,14 @@ export type LocationsListResponse = AscLocationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type LocationsGetResponse = AscLocation & { +export type AutomationsListByResourceGroupResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5975,14 +9519,14 @@ export type LocationsGetResponse = AscLocation & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocation; + parsedBody: AutomationList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type LocationsListNextResponse = AscLocationList & { +export type AutomationsGetResponse = Automation & { /** * The underlying HTTP response. */ @@ -5995,14 +9539,14 @@ export type LocationsListNextResponse = AscLocationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: Automation; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type OperationsListResponse = OperationList & { +export type AutomationsCreateOrUpdateResponse = Automation & { /** * The underlying HTTP response. */ @@ -6015,14 +9559,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: Automation; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the validate operation. */ -export type OperationsListNextResponse = OperationList & { +export type AutomationsValidateResponse = AutomationValidationStatus & { /** * The underlying HTTP response. */ @@ -6035,14 +9579,14 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: AutomationValidationStatus; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type TasksListResponse = SecurityTaskList & { +export type AutomationsListNextResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -6055,14 +9599,14 @@ export type TasksListResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type TasksListByHomeRegionResponse = SecurityTaskList & { +export type AutomationsListByResourceGroupNextResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -6075,14 +9619,14 @@ export type TasksListByHomeRegionResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the getSubscriptionLevelTask operation. + * Contains response data for the list operation. */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { +export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { /** * The underlying HTTP response. */ @@ -6095,14 +9639,14 @@ export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: AlertsSuppressionRulesList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type TasksListByResourceGroupResponse = SecurityTaskList & { +export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { /** * The underlying HTTP response. */ @@ -6115,14 +9659,14 @@ export type TasksListByResourceGroupResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AlertsSuppressionRule; }; }; /** - * Contains response data for the getResourceGroupLevelTask operation. + * Contains response data for the update operation. */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { +export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { /** * The underlying HTTP response. */ @@ -6135,14 +9679,14 @@ export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: AlertsSuppressionRule; }; }; /** * Contains response data for the listNext operation. */ -export type TasksListNextResponse = SecurityTaskList & { +export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { /** * The underlying HTTP response. */ @@ -6155,14 +9699,14 @@ export type TasksListNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AlertsSuppressionRulesList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listByExtendedResource operation. */ -export type TasksListByHomeRegionNextResponse = SecurityTaskList & { +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { /** * The underlying HTTP response. */ @@ -6175,14 +9719,14 @@ export type TasksListByHomeRegionNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: ServerVulnerabilityAssessmentsList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type TasksListByResourceGroupNextResponse = SecurityTaskList & { +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -6195,14 +9739,14 @@ export type TasksListByResourceGroupNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: ServerVulnerabilityAssessment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -6215,14 +9759,14 @@ export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: ServerVulnerabilityAssessment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -6235,14 +9779,14 @@ export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -6255,14 +9799,14 @@ export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listBySubscription operation. */ -export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -6275,14 +9819,14 @@ export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingLi /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getInSubscription operation. */ -export type CompliancesListResponse = ComplianceList & { +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -6295,14 +9839,14 @@ export type CompliancesListResponse = ComplianceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createInSubscription operation. */ -export type CompliancesGetResponse = Compliance & { +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -6315,34 +9859,14 @@ export type CompliancesGetResponse = Compliance & { /** * The response body as parsed JSON or XML */ - parsedBody: Compliance; + parsedBody: SecurityAssessmentMetadata; }; }; /** * Contains response data for the listNext operation. */ -export type CompliancesListNextResponse = ComplianceList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComplianceList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -6355,14 +9879,14 @@ export type InformationProtectionPoliciesGetResponse = InformationProtectionPoli /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { +export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -6375,14 +9899,14 @@ export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationPro /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: SecurityAssessmentMetadataList; }; }; /** * Contains response data for the list operation. */ -export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { +export type AssessmentsListResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -6395,14 +9919,14 @@ export type InformationProtectionPoliciesListResponse = InformationProtectionPol /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: SecurityAssessmentList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { +export type AssessmentsGetResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -6415,14 +9939,14 @@ export type InformationProtectionPoliciesListNextResponse = InformationProtectio /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: SecurityAssessment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type SecurityContactsListResponse = SecurityContactList & { +export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -6435,14 +9959,14 @@ export type SecurityContactsListResponse = SecurityContactList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: SecurityAssessment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SecurityContactsGetResponse = SecurityContact & { +export type AssessmentsListNextResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -6455,14 +9979,14 @@ export type SecurityContactsGetResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: SecurityAssessmentList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the list operation. */ -export type SecurityContactsCreateResponse = SecurityContact & { +export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups & { /** * The underlying HTTP response. */ @@ -6475,14 +9999,14 @@ export type SecurityContactsCreateResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: AdaptiveApplicationControlGroups; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type SecurityContactsUpdateResponse = SecurityContact & { +export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup & { /** * The underlying HTTP response. */ @@ -6495,14 +10019,14 @@ export type SecurityContactsUpdateResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: AdaptiveApplicationControlGroup; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the put operation. */ -export type SecurityContactsListNextResponse = SecurityContactList & { +export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup & { /** * The underlying HTTP response. */ @@ -6515,14 +10039,14 @@ export type SecurityContactsListNextResponse = SecurityContactList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: AdaptiveApplicationControlGroup; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByExtendedResource operation. */ -export type WorkspaceSettingsListResponse = WorkspaceSettingList & { +export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { /** * The underlying HTTP response. */ @@ -6535,14 +10059,14 @@ export type WorkspaceSettingsListResponse = WorkspaceSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: AdaptiveNetworkHardeningsList; }; }; /** * Contains response data for the get operation. */ -export type WorkspaceSettingsGetResponse = WorkspaceSetting & { +export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { /** * The underlying HTTP response. */ @@ -6555,14 +10079,14 @@ export type WorkspaceSettingsGetResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: AdaptiveNetworkHardening; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByExtendedResourceNext operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { +export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { /** * The underlying HTTP response. */ @@ -6575,14 +10099,14 @@ export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: AdaptiveNetworkHardeningsList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { +export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6595,14 +10119,14 @@ export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6615,14 +10139,14 @@ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { +export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { /** * The underlying HTTP response. */ @@ -6635,14 +10159,14 @@ export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStan /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandardList; + parsedBody: AllowedConnectionsResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { +export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6655,14 +10179,14 @@ export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStand /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandard; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6675,14 +10199,14 @@ export type RegulatoryComplianceStandardsListNextResponse = RegulatoryCompliance /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandardList; + parsedBody: AllowedConnectionsList; }; }; /** * Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { +export type TopologyListResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6695,14 +10219,14 @@ export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceContr /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControlList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegion operation. */ -export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { +export type TopologyListByHomeRegionResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6715,14 +10239,14 @@ export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceContro /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControl; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { +export type TopologyGetResponse = TopologyResource & { /** * The underlying HTTP response. */ @@ -6735,14 +10259,14 @@ export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceC /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControlList; + parsedBody: TopologyResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { +export type TopologyListNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6755,14 +10279,14 @@ export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAs /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessmentList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { +export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6775,14 +10299,14 @@ export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAss /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessment; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { +export type AlertsListResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6795,14 +10319,14 @@ export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplian /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessmentList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the listByResourceGroup operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { +export type AlertsListByResourceGroupResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6815,14 +10339,14 @@ export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = Server /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentsList; + parsedBody: AlertList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listSubscriptionLevelAlertsByRegion operation. */ -export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { +export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6835,14 +10359,14 @@ export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssess /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: AlertList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listResourceGroupLevelAlertsByRegion operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { +export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6855,14 +10379,14 @@ export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerab /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: AlertList; }; }; /** - * Contains response data for the listAll operation. + * Contains response data for the getSubscriptionLevelAlert operation. */ -export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { +export type AlertsGetSubscriptionLevelAlertResponse = Alert & { /** * The underlying HTTP response. */ @@ -6875,14 +10399,14 @@ export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: Alert; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getResourceGroupLevelAlerts operation. */ -export type SubAssessmentsListResponse = SecuritySubAssessmentList & { +export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { /** * The underlying HTTP response. */ @@ -6895,14 +10419,14 @@ export type SubAssessmentsListResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: Alert; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SubAssessmentsGetResponse = SecuritySubAssessment & { +export type AlertsListNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6915,14 +10439,14 @@ export type SubAssessmentsGetResponse = SecuritySubAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessment; + parsedBody: AlertList; }; }; /** - * Contains response data for the listAllNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { +export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6935,14 +10459,14 @@ export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listSubscriptionLevelAlertsByRegionNext operation. */ -export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { +export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6955,14 +10479,14 @@ export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: AlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listResourceGroupLevelAlertsByRegionNext operation. */ -export type AutomationsListResponse = AutomationList & { +export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -6975,14 +10499,14 @@ export type AutomationsListResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList & { +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6995,14 +10519,14 @@ export type AutomationsListByResourceGroupResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByRegion operation. */ -export type AutomationsGetResponse = Automation & { +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7015,14 +10539,14 @@ export type AutomationsGetResponse = Automation & { /** * The response body as parsed JSON or XML */ - parsedBody: Automation; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type AutomationsCreateOrUpdateResponse = Automation & { +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7035,14 +10559,14 @@ export type AutomationsCreateOrUpdateResponse = Automation & { /** * The response body as parsed JSON or XML */ - parsedBody: Automation; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the validate operation. + * Contains response data for the listByResourceGroupAndRegion operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7055,14 +10579,14 @@ export type AutomationsValidateResponse = AutomationValidationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationValidationStatus; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type AutomationsListNextResponse = AutomationList & { +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -7075,14 +10599,14 @@ export type AutomationsListNextResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: JitNetworkAccessPolicy; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList & { +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -7095,14 +10619,14 @@ export type AutomationsListByResourceGroupNextResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: JitNetworkAccessPolicy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the initiate operation. */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { /** * The underlying HTTP response. */ @@ -7115,14 +10639,14 @@ export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRulesList; + parsedBody: JitNetworkAccessRequest; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7135,14 +10659,14 @@ export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRule; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByRegionNext operation. */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7155,14 +10679,14 @@ export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRule; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7175,14 +10699,14 @@ export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRulesList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -7195,14 +10719,14 @@ export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7215,14 +10739,14 @@ export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByHomeRegion operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7235,14 +10759,14 @@ export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMe /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the getInSubscription operation. + * Contains response data for the get operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { /** * The underlying HTTP response. */ @@ -7255,14 +10779,14 @@ export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMet /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: DiscoveredSecuritySolution; }; }; /** - * Contains response data for the createInSubscription operation. + * Contains response data for the listNext operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7275,14 +10799,14 @@ export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessment /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7295,14 +10819,14 @@ export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the list operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList & { /** * The underlying HTTP response. */ @@ -7315,14 +10839,14 @@ export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessme /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: SecuritySolutionsReferenceDataList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByHomeRegion operation. */ -export type AssessmentsListResponse = SecurityAssessmentList & { +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList & { /** * The underlying HTTP response. */ @@ -7335,14 +10859,14 @@ export type AssessmentsListResponse = SecurityAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentList; + parsedBody: SecuritySolutionsReferenceDataList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AssessmentsGetResponse = SecurityAssessment & { +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7355,14 +10879,14 @@ export type AssessmentsGetResponse = SecurityAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessment; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByHomeRegion operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7375,14 +10899,14 @@ export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessment; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList & { +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { /** * The underlying HTTP response. */ @@ -7395,14 +10919,14 @@ export type AssessmentsListNextResponse = SecurityAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentList; + parsedBody: ExternalSecuritySolutionUnion; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7415,14 +10939,14 @@ export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroups; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7435,14 +10959,14 @@ export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroup; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the put operation. + * Contains response data for the list operation. */ -export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { +export type SecureScoresListResponse = SecureScoresList & { /** * The underlying HTTP response. */ @@ -7455,14 +10979,14 @@ export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroup; + parsedBody: SecureScoresList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { +export type SecureScoresGetResponse = SecureScoreItem & { /** * The underlying HTTP response. */ @@ -7475,14 +10999,14 @@ export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNe /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardeningsList; + parsedBody: SecureScoreItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { +export type SecureScoresListNextResponse = SecureScoresList & { /** * The underlying HTTP response. */ @@ -7495,14 +11019,14 @@ export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardening; + parsedBody: SecureScoresList; }; }; /** - * Contains response data for the listByExtendedResourceNext operation. + * Contains response data for the listBySecureScore operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -7515,14 +11039,14 @@ export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = Adapti /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardeningsList; + parsedBody: SecureScoreControlList; }; }; /** * Contains response data for the list operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList & { +export type SecureScoreControlsListResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -7535,14 +11059,14 @@ export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the listBySecureScoreNext operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -7555,14 +11079,14 @@ export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { +export type SecureScoreControlsListNextResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -7575,14 +11099,14 @@ export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsResource; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -7595,14 +11119,14 @@ export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listBySubscription operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { +export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -7615,14 +11139,14 @@ export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsL /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type TopologyListResponse = TopologyList & { +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -7635,14 +11159,14 @@ export type TopologyListResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type TopologyListByHomeRegionResponse = TopologyList & { +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -7655,14 +11179,14 @@ export type TopologyListByHomeRegionResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type TopologyGetResponse = TopologyResource & { +export type SecuritySolutionsListResponse = SecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7675,14 +11199,14 @@ export type TopologyGetResponse = TopologyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyResource; + parsedBody: SecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type TopologyListNextResponse = TopologyList & { +export type SecuritySolutionsGetResponse = SecuritySolution & { /** * The underlying HTTP response. */ @@ -7695,14 +11219,14 @@ export type TopologyListNextResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: SecuritySolution; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList & { +export type SecuritySolutionsListNextResponse = SecuritySolutionList & { /** * The underlying HTTP response. */ @@ -7715,14 +11239,14 @@ export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: SecuritySolutionList; }; }; /** * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { +export type ConnectorsListResponse = ConnectorSettingList & { /** * The underlying HTTP response. */ @@ -7735,14 +11259,14 @@ export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ConnectorSettingList; }; }; /** - * Contains response data for the listByRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { +export type ConnectorsGetResponse = ConnectorSetting & { /** * The underlying HTTP response. */ @@ -7755,14 +11279,14 @@ export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPolic /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ConnectorSetting; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { +export type ConnectorsCreateOrUpdateResponse = ConnectorSetting & { /** * The underlying HTTP response. */ @@ -7775,14 +11299,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAcce /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ConnectorSetting; }; }; /** - * Contains response data for the listByResourceGroupAndRegion operation. + * Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { +export type ConnectorsListNextResponse = ConnectorSettingList & { /** * The underlying HTTP response. */ @@ -7795,14 +11319,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNe /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ConnectorSettingList; }; }; /** * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { +export type SqlVulnerabilityAssessmentScansGetResponse = Scan & { /** * The underlying HTTP response. */ @@ -7815,14 +11339,14 @@ export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: Scan; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { +export type SqlVulnerabilityAssessmentScansListResponse = Scans & { /** * The underlying HTTP response. */ @@ -7835,14 +11359,14 @@ export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPol /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: Scans; }; }; /** - * Contains response data for the initiate operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { +export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult & { /** * The underlying HTTP response. */ @@ -7855,14 +11379,14 @@ export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessRequest; + parsedBody: ScanResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { +export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults & { /** * The underlying HTTP response. */ @@ -7875,14 +11399,14 @@ export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesL /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ScanResults; }; }; /** - * Contains response data for the listByRegionNext operation. + * Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults & { /** * The underlying HTTP response. */ @@ -7895,14 +11419,14 @@ export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessP /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: RuleResults; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { +export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults & { /** * The underlying HTTP response. */ @@ -7915,14 +11439,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetwork /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: RuleResults; }; }; /** - * Contains response data for the listByResourceGroupAndRegionNext operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { +export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults & { /** * The underlying HTTP response. */ @@ -7935,14 +11459,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = J /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: RulesResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the add operation. */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { +export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults & { /** * The underlying HTTP response. */ @@ -7955,14 +11479,14 @@ export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: RulesResults; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { +export type IotDefenderSettingsListResponse = IotDefenderSettingsList & { /** * The underlying HTTP response. */ @@ -7975,14 +11499,14 @@ export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecu /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: IotDefenderSettingsList; }; }; /** * Contains response data for the get operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { +export type IotDefenderSettingsGetResponse = IotDefenderSettingsModel & { /** * The underlying HTTP response. */ @@ -7995,14 +11519,14 @@ export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolution; + parsedBody: IotDefenderSettingsModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { +export type IotDefenderSettingsCreateOrUpdateResponse = IotDefenderSettingsModel & { /** * The underlying HTTP response. */ @@ -8015,14 +11539,14 @@ export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolu /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: IotDefenderSettingsModel; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the packageDownloadsMethod operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { +export type IotDefenderSettingsPackageDownloadsMethodResponse = PackageDownloads & { /** * The underlying HTTP response. */ @@ -8035,14 +11559,40 @@ export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = Discovered /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: PackageDownloads; }; }; +/** + * Contains response data for the downloadManagerActivation operation. + */ +export type IotDefenderSettingsDownloadManagerActivationResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; +}; + /** * Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { +export type IotSensorsListResponse = IotSensorsList & { /** * The underlying HTTP response. */ @@ -8055,14 +11605,14 @@ export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: IotSensorsList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the get operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { +export type IotSensorsGetResponse = IotSensorsModel & { /** * The underlying HTTP response. */ @@ -8075,14 +11625,14 @@ export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecurity /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: IotSensorsModel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { +export type IotSensorsCreateOrUpdateResponse = IotSensorsModel & { /** * The underlying HTTP response. */ @@ -8095,34 +11645,66 @@ export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionUnion; + parsedBody: IotSensorsModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the downloadActivation operation. */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { +export type IotSensorsDownloadActivationResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** * The underlying HTTP response. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + _response: msRest.HttpResponse; +}; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExternalSecuritySolutionList; - }; +/** + * Contains response data for the downloadResetPassword operation. + */ +export type IotSensorsDownloadResetPasswordResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { +export type DevicesForSubscriptionListResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -8135,14 +11717,14 @@ export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecu /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: DeviceList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type SecureScoresListResponse = SecureScoresList & { +export type DevicesForSubscriptionListNextResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -8155,14 +11737,14 @@ export type SecureScoresListResponse = SecureScoresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoresList; + parsedBody: DeviceList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type SecureScoresGetResponse = SecureScoreItem & { +export type DevicesForHubListResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -8175,14 +11757,14 @@ export type SecureScoresGetResponse = SecureScoreItem & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreItem; + parsedBody: DeviceList; }; }; /** * Contains response data for the listNext operation. */ -export type SecureScoresListNextResponse = SecureScoresList & { +export type DevicesForHubListNextResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -8195,14 +11777,14 @@ export type SecureScoresListNextResponse = SecureScoresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoresList; + parsedBody: DeviceList; }; }; /** - * Contains response data for the listBySecureScore operation. + * Contains response data for the get operation. */ -export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { +export type DeviceGetResponse = Device & { /** * The underlying HTTP response. */ @@ -8215,14 +11797,14 @@ export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlLis /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: Device; }; }; /** * Contains response data for the list operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList & { +export type OnPremiseIotSensorsListResponse = OnPremiseIotSensorsList & { /** * The underlying HTTP response. */ @@ -8235,14 +11817,14 @@ export type SecureScoreControlsListResponse = SecureScoreControlList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: OnPremiseIotSensorsList; }; }; /** - * Contains response data for the listBySecureScoreNext operation. + * Contains response data for the get operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { +export type OnPremiseIotSensorsGetResponse = OnPremiseIotSensor & { /** * The underlying HTTP response. */ @@ -8255,14 +11837,14 @@ export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreContro /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: OnPremiseIotSensor; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList & { +export type OnPremiseIotSensorsCreateOrUpdateResponse = OnPremiseIotSensor & { /** * The underlying HTTP response. */ @@ -8275,34 +11857,66 @@ export type SecureScoreControlsListNextResponse = SecureScoreControlList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: OnPremiseIotSensor; }; }; /** - * Contains response data for the list operation. + * Contains response data for the downloadActivation operation. */ -export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { +export type OnPremiseIotSensorsDownloadActivationResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + /** * The underlying HTTP response. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + _response: msRest.HttpResponse; +}; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SecureScoreControlDefinitionList; - }; +/** + * Contains response data for the downloadResetPassword operation. + */ +export type OnPremiseIotSensorsDownloadResetPasswordResponse = { + /** + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. + */ + blobBody?: Promise; + + /** + * NODEJS ONLY + * + * The response body as a node.js Readable stream. + * Always undefined in the browser. + */ + readableStreamBody?: NodeJS.ReadableStream; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the list operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { +export type IotSitesListResponse = IotSitesList & { /** * The underlying HTTP response. */ @@ -8315,14 +11929,14 @@ export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScor /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: IotSitesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { +export type IotSitesGetResponse = IotSitesModel & { /** * The underlying HTTP response. */ @@ -8335,14 +11949,14 @@ export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDe /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: IotSitesModel; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { +export type IotSitesCreateOrUpdateResponse = IotSitesModel & { /** * The underlying HTTP response. */ @@ -8355,6 +11969,6 @@ export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = Secure /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: IotSitesModel; }; }; diff --git a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts index 817150abe35f..0c7b070903a4 100644 --- a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationProtectionPolicyList, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts b/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts new file mode 100644 index 000000000000..17825eed81cf --- /dev/null +++ b/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotAlertTypeList, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotAlertsMappers.ts b/sdk/security/arm-security/src/models/iotAlertsMappers.ts new file mode 100644 index 000000000000..f1c8a64715a8 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotAlertsMappers.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertList, + IotAlertListModel, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts b/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts new file mode 100644 index 000000000000..bd597b29c041 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts @@ -0,0 +1,152 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsList, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + PackageDownloadInfo, + PackageDownloads, + PackageDownloadsCentralManager, + PackageDownloadsCentralManagerFull, + PackageDownloadsCentralManagerFullOvf, + PackageDownloadsSensor, + PackageDownloadsSensorFull, + PackageDownloadsSensorFullOvf, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + UpgradePackageDownloadInfo, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts b/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts new file mode 100644 index 000000000000..caab1301cdf0 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IotRecommendationTypeList, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts b/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts new file mode 100644 index 000000000000..2a64aeca3e60 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationList, + IotRecommendationListModel, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts index fed19cfb3888..3d0e9083f1ee 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelList, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts index 82c7cc05a088..3a18b0824b08 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,7 @@ export { discriminators, + AdditionalWorkspacesProperties, CloudError, IoTSecuritySolutionModel, IoTSecuritySolutionsList, diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts index abdd83a924b0..497f5a0a8b0b 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts index d0e756980cf6..edc31da8f968 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts +++ b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/iotSensorsMappers.ts b/sdk/security/arm-security/src/models/iotSensorsMappers.ts new file mode 100644 index 000000000000..f083f692184f --- /dev/null +++ b/sdk/security/arm-security/src/models/iotSensorsMappers.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsList, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + ResetPasswordInput, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSitesMappers.ts b/sdk/security/arm-security/src/models/iotSitesMappers.ts new file mode 100644 index 000000000000..94e238046bb0 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotSitesMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesList, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts b/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts index 81a91877bca5..b0c4e9907c48 100644 --- a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/locationsMappers.ts b/sdk/security/arm-security/src/models/locationsMappers.ts index 7b7a015fa4a4..e73b12a3b68a 100644 --- a/sdk/security/arm-security/src/models/locationsMappers.ts +++ b/sdk/security/arm-security/src/models/locationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -24,53 +23,92 @@ export { AscLocationList, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 3ef1960d14bf..19bcf0849419 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -106,7 +106,6 @@ export const TrackedResource: msRest.CompositeMapper = { } }, location: { - readOnly: true, serializedName: "location", type: { name: "String" @@ -139,14 +138,13 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const Location: msRest.CompositeMapper = { - serializedName: "Location", +export const AzureTrackedResourceLocation: msRest.CompositeMapper = { + serializedName: "AzureTrackedResourceLocation", type: { name: "Composite", - className: "Location", + className: "AzureTrackedResourceLocation", modelProperties: { location: { - readOnly: true, serializedName: "location", type: { name: "String" @@ -209,6 +207,30 @@ export const Tags: msRest.CompositeMapper = { } }; +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } + } + } +}; + export const Pricing: msRest.CompositeMapper = { serializedName: "Pricing", type: { @@ -257,257 +279,16 @@ export const PricingList: msRest.CompositeMapper = { } }; -export const AlertEntity: msRest.CompositeMapper = { - serializedName: "AlertEntity", - type: { - name: "Composite", - className: "AlertEntity", - modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const AlertConfidenceReason: msRest.CompositeMapper = { - serializedName: "AlertConfidenceReason", - type: { - name: "Composite", - className: "AlertConfidenceReason", - modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - reason: { - readOnly: true, - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const Alert: msRest.CompositeMapper = { - serializedName: "Alert", - type: { - name: "Composite", - className: "Alert", - modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - reportedTimeUtc: { - readOnly: true, - serializedName: "properties.reportedTimeUtc", - type: { - name: "DateTime" - } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", - type: { - name: "String" - } - }, - alertName: { - readOnly: true, - serializedName: "properties.alertName", - type: { - name: "String" - } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", - type: { - name: "String" - } - }, - detectedTimeUtc: { - readOnly: true, - serializedName: "properties.detectedTimeUtc", - type: { - name: "DateTime" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", - type: { - name: "String" - } - }, - actionTaken: { - readOnly: true, - serializedName: "properties.actionTaken", - type: { - name: "String" - } - }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", - type: { - name: "String" - } - }, - compromisedEntity: { - readOnly: true, - serializedName: "properties.compromisedEntity", - type: { - name: "String" - } - }, - associatedResource: { - readOnly: true, - serializedName: "properties.associatedResource", - type: { - name: "String" - } - }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Dictionary", - value: { - type: { - name: "Object" - } - } - } - }, - systemSource: { - readOnly: true, - serializedName: "properties.systemSource", - type: { - name: "String" - } - }, - canBeInvestigated: { - readOnly: true, - serializedName: "properties.canBeInvestigated", - type: { - name: "Boolean" - } - }, - isIncident: { - readOnly: true, - serializedName: "properties.isIncident", - type: { - name: "Boolean" - } - }, - entities: { - serializedName: "properties.entities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertEntity", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - }, - confidenceScore: { - readOnly: true, - serializedName: "properties.confidenceScore", - constraints: { - InclusiveMaximum: 1, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - confidenceReasons: { - serializedName: "properties.confidenceReasons", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertConfidenceReason" - } - } - } - }, - subscriptionId: { - readOnly: true, - serializedName: "properties.subscriptionId", - type: { - name: "String" - } - }, - instanceId: { - readOnly: true, - serializedName: "properties.instanceId", - type: { - name: "String" - } - }, - workspaceArmId: { - readOnly: true, - serializedName: "properties.workspaceArmId", - type: { - name: "String" - } - }, - correlationKey: { - readOnly: true, - serializedName: "properties.correlationKey", - type: { - name: "String" - } - } - } - } -}; - -export const SettingResource: msRest.CompositeMapper = { - serializedName: "SettingResource", +export const Setting: msRest.CompositeMapper = { + serializedName: "Setting", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "kind", clientName: "kind" }, - uberParent: "BaseResource", - className: "SettingResource", + uberParent: "Setting", + className: "Setting", modelProperties: { ...Resource.type.modelProperties, kind: { @@ -521,21 +302,12 @@ export const SettingResource: msRest.CompositeMapper = { } }; -export const Setting: msRest.CompositeMapper = { - serializedName: "Setting", - type: { - name: "Composite", - className: "Setting", - modelProperties: { - ...SettingResource.type.modelProperties - } - } -}; - export const DataExportSettings: msRest.CompositeMapper = { serializedName: "DataExportSettings", type: { name: "Composite", + polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, + uberParent: "Setting", className: "DataExportSettings", modelProperties: { ...Setting.type.modelProperties, @@ -799,13 +571,26 @@ export const ConnectionToIpNotAllowed: msRest.CompositeMapper = { } }; -export const LocalUserNotAllowed: msRest.CompositeMapper = { - serializedName: "LocalUserNotAllowed", +export const ConnectionFromIpNotAllowed: msRest.CompositeMapper = { + serializedName: "ConnectionFromIpNotAllowed", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "LocalUserNotAllowed", + className: "ConnectionFromIpNotAllowed", + modelProperties: { + ...AllowlistCustomAlertRule.type.modelProperties + } + } +}; + +export const LocalUserNotAllowed: msRest.CompositeMapper = { + serializedName: "LocalUserNotAllowed", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "LocalUserNotAllowed", modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties } @@ -1117,6 +902,40 @@ export const RecommendationConfigurationProperties: msRest.CompositeMapper = { } }; +export const AdditionalWorkspacesProperties: msRest.CompositeMapper = { + serializedName: "AdditionalWorkspacesProperties", + type: { + name: "Composite", + className: "AdditionalWorkspacesProperties", + modelProperties: { + workspace: { + serializedName: "workspace", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + defaultValue: 'Sentinel', + type: { + name: "String" + } + }, + dataTypes: { + serializedName: "dataTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const IoTSecuritySolutionModel: msRest.CompositeMapper = { serializedName: "IoTSecuritySolutionModel", type: { @@ -1162,7 +981,6 @@ export const IoTSecuritySolutionModel: msRest.CompositeMapper = { } }, workspace: { - required: true, serializedName: "properties.workspace", type: { name: "String" @@ -1253,6 +1071,18 @@ export const IoTSecuritySolutionModel: msRest.CompositeMapper = { type: { name: "String" } + }, + additionalWorkspaces: { + serializedName: "properties.additionalWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalWorkspacesProperties" + } + } + } } } } @@ -1811,561 +1641,485 @@ export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const IotAlertType: msRest.CompositeMapper = { + serializedName: "IotAlertType", type: { name: "Composite", - className: "OperationDisplay", + className: "IotAlertType", modelProperties: { - provider: { + ...Resource.type.modelProperties, + alertDisplayName: { readOnly: true, - serializedName: "provider", + serializedName: "properties.alertDisplayName", type: { name: "String" } }, - resource: { + severity: { readOnly: true, - serializedName: "resource", + serializedName: "properties.severity", type: { name: "String" } }, - operation: { + description: { readOnly: true, - serializedName: "operation", + serializedName: "properties.description", type: { name: "String" } }, - description: { + providerName: { readOnly: true, - serializedName: "description", + serializedName: "properties.providerName", type: { name: "String" } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { + }, + productName: { readOnly: true, - serializedName: "name", + serializedName: "properties.productName", type: { name: "String" } }, - origin: { + productComponentName: { readOnly: true, - serializedName: "origin", + serializedName: "properties.productComponentName", type: { name: "String" } }, - display: { - serializedName: "display", + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", type: { - name: "Composite", - className: "OperationDisplay" + name: "String" + } + }, + intent: { + readOnly: true, + serializedName: "properties.intent", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const SecurityTaskParameters: msRest.CompositeMapper = { - serializedName: "SecurityTaskParameters", +export const IotAlertTypeList: msRest.CompositeMapper = { + serializedName: "IotAlertTypeList", type: { name: "Composite", - className: "SecurityTaskParameters", + className: "IotAlertTypeList", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotAlertType" + } + } } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const SecurityTask: msRest.CompositeMapper = { - serializedName: "SecurityTask", +export const IotAlert: msRest.CompositeMapper = { + serializedName: "IotAlert", type: { name: "Composite", - className: "SecurityTask", + className: "IotAlert", modelProperties: { ...Resource.type.modelProperties, - state: { + systemAlertId: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.systemAlertId", type: { name: "String" } }, - creationTimeUtc: { + compromisedEntity: { readOnly: true, - serializedName: "properties.creationTimeUtc", + serializedName: "properties.compromisedEntity", type: { - name: "DateTime" + name: "String" } }, - securityTaskParameters: { - serializedName: "properties.securityTaskParameters", + alertType: { + readOnly: true, + serializedName: "properties.alertType", type: { - name: "Composite", - className: "SecurityTaskParameters", - additionalProperties: { - type: { - name: "Object" - } - } + name: "String" } }, - lastStateChangeTimeUtc: { + startTimeUtc: { readOnly: true, - serializedName: "properties.lastStateChangeTimeUtc", + serializedName: "properties.startTimeUtc", type: { - name: "DateTime" + name: "String" } }, - subState: { + endTimeUtc: { readOnly: true, - serializedName: "properties.subState", + serializedName: "properties.endTimeUtc", type: { name: "String" } + }, + entities: { + serializedName: "properties.entities", + type: { + name: "Sequence", + element: { + type: { + name: "Object" + } + } + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Object" + } } } } }; -export const AutoProvisioningSetting: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSetting", +export const IotRecommendationType: msRest.CompositeMapper = { + serializedName: "IotRecommendationType", type: { name: "Composite", - className: "AutoProvisioningSetting", + className: "IotRecommendationType", modelProperties: { ...Resource.type.modelProperties, - autoProvision: { - required: true, - serializedName: "properties.autoProvision", + recommendationDisplayName: { + readOnly: true, + serializedName: "properties.recommendationDisplayName", type: { name: "String" } - } - } - } -}; - -export const ComplianceSegment: msRest.CompositeMapper = { - serializedName: "ComplianceSegment", - type: { - name: "Composite", - className: "ComplianceSegment", - modelProperties: { - segmentType: { + }, + severity: { readOnly: true, - serializedName: "segmentType", + serializedName: "properties.severity", type: { name: "String" } }, - percentage: { + description: { readOnly: true, - serializedName: "percentage", + serializedName: "properties.description", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const Compliance: msRest.CompositeMapper = { - serializedName: "Compliance", - type: { - name: "Composite", - className: "Compliance", - modelProperties: { - ...Resource.type.modelProperties, - assessmentTimestampUtcDate: { + }, + productName: { readOnly: true, - serializedName: "properties.assessmentTimestampUtcDate", + serializedName: "properties.productName", type: { - name: "DateTime" + name: "String" } }, - resourceCount: { + productComponentName: { readOnly: true, - serializedName: "properties.resourceCount", + serializedName: "properties.productComponentName", type: { - name: "Number" + name: "String" } }, - assessmentResult: { + vendorName: { readOnly: true, - serializedName: "properties.assessmentResult", + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + control: { + readOnly: true, + serializedName: "properties.control", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ComplianceSegment" + name: "String" } } } - } - } - } -}; - -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", - type: { - name: "Composite", - className: "SensitivityLabel", - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } }, - description: { - serializedName: "description", + dataSource: { + readOnly: true, + serializedName: "properties.dataSource", type: { name: "String" } - }, - rank: { - serializedName: "rank", - type: { - name: "Enum", - allowedValues: [ - "None", - "Low", - "Medium", - "High", - "Critical" - ] - } - }, - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } } } } }; -export const InformationProtectionKeyword: msRest.CompositeMapper = { - serializedName: "InformationProtectionKeyword", +export const IotRecommendationTypeList: msRest.CompositeMapper = { + serializedName: "IotRecommendationTypeList", type: { name: "Composite", - className: "InformationProtectionKeyword", + className: "IotRecommendationTypeList", modelProperties: { - pattern: { - serializedName: "pattern", - type: { - name: "String" - } - }, - custom: { - serializedName: "custom", - type: { - name: "Boolean" - } - }, - canBeNumeric: { - serializedName: "canBeNumeric", - type: { - name: "Boolean" - } - }, - excluded: { - serializedName: "excluded", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotRecommendationType" + } + } } } } } }; -export const InformationType: msRest.CompositeMapper = { - serializedName: "InformationType", +export const IotRecommendation: msRest.CompositeMapper = { + serializedName: "IotRecommendation", type: { name: "Composite", - className: "InformationType", + className: "IotRecommendation", modelProperties: { - displayName: { - serializedName: "displayName", + ...Resource.type.modelProperties, + deviceId: { + readOnly: true, + serializedName: "properties.deviceId", type: { name: "String" } }, - description: { - serializedName: "description", + recommendationType: { + readOnly: true, + serializedName: "properties.recommendationType", type: { name: "String" } }, - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - recommendedLabelId: { - serializedName: "recommendedLabelId", - type: { - name: "Uuid" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - custom: { - serializedName: "custom", + discoveredTimeUtc: { + readOnly: true, + serializedName: "properties.discoveredTimeUtc", type: { - name: "Boolean" + name: "String" } }, - keywords: { - serializedName: "keywords", + recommendationAdditionalData: { + serializedName: "properties.recommendationAdditionalData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformationProtectionKeyword" - } - } + name: "Object" } } } } }; -export const InformationProtectionPolicy: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicy", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", type: { name: "Composite", - className: "InformationProtectionPolicy", + className: "OperationDisplay", modelProperties: { - ...Resource.type.modelProperties, - lastModifiedUtc: { + provider: { readOnly: true, - serializedName: "properties.lastModifiedUtc", + serializedName: "provider", type: { - name: "DateTime" + name: "String" } }, - version: { + resource: { readOnly: true, - serializedName: "properties.version", + serializedName: "resource", type: { name: "String" } }, - labels: { - serializedName: "properties.labels", + operation: { + readOnly: true, + serializedName: "operation", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - informationTypes: { - serializedName: "properties.informationTypes", + description: { + readOnly: true, + serializedName: "description", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "InformationType" - } - } + name: "String" } } } } }; -export const SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "SecurityContact", + className: "Operation", modelProperties: { - ...Resource.type.modelProperties, - email: { - required: true, - serializedName: "properties.email", - type: { - name: "String" - } - }, - phone: { - serializedName: "properties.phone", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - alertNotifications: { - required: true, - serializedName: "properties.alertNotifications", + origin: { + readOnly: true, + serializedName: "origin", type: { name: "String" } }, - alertsToAdmins: { - required: true, - serializedName: "properties.alertsToAdmins", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } } } } }; -export const WorkspaceSetting: msRest.CompositeMapper = { - serializedName: "WorkspaceSetting", +export const SecurityTaskParameters: msRest.CompositeMapper = { + serializedName: "SecurityTaskParameters", type: { name: "Composite", - className: "WorkspaceSetting", + className: "SecurityTaskParameters", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - required: true, - serializedName: "properties.workspaceId", - type: { - name: "String" - } - }, - scope: { - required: true, - serializedName: "properties.scope", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } } + }, + additionalProperties: { + type: { + name: "Object" + } } } }; -export const RegulatoryComplianceStandard: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceStandard", +export const SecurityTask: msRest.CompositeMapper = { + serializedName: "SecurityTask", type: { name: "Composite", - className: "RegulatoryComplianceStandard", + className: "SecurityTask", modelProperties: { ...Resource.type.modelProperties, state: { + readOnly: true, serializedName: "properties.state", type: { name: "String" } }, - passedControls: { + creationTimeUtc: { readOnly: true, - serializedName: "properties.passedControls", + serializedName: "properties.creationTimeUtc", type: { - name: "Number" + name: "DateTime" } }, - failedControls: { - readOnly: true, - serializedName: "properties.failedControls", + securityTaskParameters: { + serializedName: "properties.securityTaskParameters", type: { - name: "Number" + name: "Composite", + className: "SecurityTaskParameters", + additionalProperties: { + type: { + name: "Object" + } + } } }, - skippedControls: { + lastStateChangeTimeUtc: { readOnly: true, - serializedName: "properties.skippedControls", + serializedName: "properties.lastStateChangeTimeUtc", type: { - name: "Number" + name: "DateTime" } }, - unsupportedControls: { + subState: { readOnly: true, - serializedName: "properties.unsupportedControls", + serializedName: "properties.subState", type: { - name: "Number" + name: "String" } } } } }; -export const RegulatoryComplianceControl: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceControl", +export const AutoProvisioningSetting: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSetting", type: { name: "Composite", - className: "RegulatoryComplianceControl", + className: "AutoProvisioningSetting", modelProperties: { ...Resource.type.modelProperties, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", + autoProvision: { + required: true, + serializedName: "properties.autoProvision", type: { name: "String" } - }, - passedAssessments: { - readOnly: true, - serializedName: "properties.passedAssessments", - type: { - name: "Number" - } - }, - failedAssessments: { + } + } + } +}; + +export const ComplianceSegment: msRest.CompositeMapper = { + serializedName: "ComplianceSegment", + type: { + name: "Composite", + className: "ComplianceSegment", + modelProperties: { + segmentType: { readOnly: true, - serializedName: "properties.failedAssessments", + serializedName: "segmentType", type: { - name: "Number" + name: "String" } }, - skippedAssessments: { + percentage: { readOnly: true, - serializedName: "properties.skippedAssessments", + serializedName: "percentage", type: { name: "Number" } @@ -2374,104 +2128,175 @@ export const RegulatoryComplianceControl: msRest.CompositeMapper = { } }; -export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceAssessment", +export const Compliance: msRest.CompositeMapper = { + serializedName: "Compliance", type: { name: "Composite", - className: "RegulatoryComplianceAssessment", + className: "Compliance", modelProperties: { ...Resource.type.modelProperties, - description: { + assessmentTimestampUtcDate: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.assessmentTimestampUtcDate", type: { - name: "String" + name: "DateTime" } }, - assessmentType: { + resourceCount: { readOnly: true, - serializedName: "properties.assessmentType", + serializedName: "properties.resourceCount", type: { - name: "String" + name: "Number" } }, - assessmentDetailsLink: { + assessmentResult: { readOnly: true, - serializedName: "properties.assessmentDetailsLink", + serializedName: "properties.assessmentResult", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComplianceSegment" + } + } } - }, - state: { - serializedName: "properties.state", + } + } + } +}; + +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel", + modelProperties: { + displayName: { + serializedName: "displayName", type: { name: "String" } }, - passedResources: { - readOnly: true, - serializedName: "properties.passedResources", + description: { + serializedName: "description", type: { - name: "Number" + name: "String" } }, - failedResources: { - readOnly: true, - serializedName: "properties.failedResources", + rank: { + serializedName: "rank", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "None", + "Low", + "Medium", + "High", + "Critical" + ] } }, - skippedResources: { - readOnly: true, - serializedName: "properties.skippedResources", + order: { + serializedName: "order", type: { name: "Number" } }, - unsupportedResources: { - readOnly: true, - serializedName: "properties.unsupportedResources", + enabled: { + serializedName: "enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const InformationProtectionKeyword: msRest.CompositeMapper = { + serializedName: "InformationProtectionKeyword", type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "InformationProtectionKeyword", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + pattern: { + serializedName: "pattern", type: { name: "String" } + }, + custom: { + serializedName: "custom", + type: { + name: "Boolean" + } + }, + canBeNumeric: { + serializedName: "canBeNumeric", + type: { + name: "Boolean" + } + }, + excluded: { + serializedName: "excluded", + type: { + name: "Boolean" + } } } } }; -export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentsList", +export const InformationType: msRest.CompositeMapper = { + serializedName: "InformationType", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsList", + className: "InformationType", modelProperties: { - value: { - serializedName: "value", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + recommendedLabelId: { + serializedName: "recommendedLabelId", + type: { + name: "Uuid" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + custom: { + serializedName: "custom", + type: { + name: "Boolean" + } + }, + keywords: { + serializedName: "keywords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" + className: "InformationProtectionKeyword" } } } @@ -2480,58 +2305,85 @@ export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { } }; -export const SubAssessmentStatus: msRest.CompositeMapper = { - serializedName: "SubAssessmentStatus", +export const InformationProtectionPolicy: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicy", type: { name: "Composite", - className: "SubAssessmentStatus", + className: "InformationProtectionPolicy", modelProperties: { - code: { + ...Resource.type.modelProperties, + lastModifiedUtc: { readOnly: true, - serializedName: "code", + serializedName: "properties.lastModifiedUtc", type: { - name: "String" + name: "DateTime" } }, - cause: { + version: { readOnly: true, - serializedName: "cause", + serializedName: "properties.version", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + labels: { + serializedName: "properties.labels", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } } }, - severity: { - readOnly: true, - serializedName: "severity", + informationTypes: { + serializedName: "properties.informationTypes", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "InformationType" + } + } } } } } }; -export const ResourceDetails: msRest.CompositeMapper = { - serializedName: "ResourceDetails", +export const SecurityContact: msRest.CompositeMapper = { + serializedName: "SecurityContact", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "source", - clientName: "source" - }, - uberParent: "ResourceDetails", - className: "ResourceDetails", + className: "SecurityContact", modelProperties: { - source: { + ...Resource.type.modelProperties, + email: { required: true, - serializedName: "source", + serializedName: "properties.email", + type: { + name: "String" + } + }, + phone: { + serializedName: "properties.phone", + type: { + name: "String" + } + }, + alertNotifications: { + required: true, + serializedName: "properties.alertNotifications", + type: { + name: "String" + } + }, + alertsToAdmins: { + required: true, + serializedName: "properties.alertsToAdmins", type: { name: "String" } @@ -2540,20 +2392,23 @@ export const ResourceDetails: msRest.CompositeMapper = { } }; -export const AdditionalData: msRest.CompositeMapper = { - serializedName: "AdditionalData", +export const WorkspaceSetting: msRest.CompositeMapper = { + serializedName: "WorkspaceSetting", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "assessedResourceType", - clientName: "assessedResourceType" - }, - uberParent: "AdditionalData", - className: "AdditionalData", + className: "WorkspaceSetting", modelProperties: { - assessedResourceType: { + ...Resource.type.modelProperties, + workspaceId: { required: true, - serializedName: "assessedResourceType", + serializedName: "properties.workspaceId", + type: { + name: "String" + } + }, + scope: { + required: true, + serializedName: "properties.scope", type: { name: "String" } @@ -2562,123 +2417,154 @@ export const AdditionalData: msRest.CompositeMapper = { } }; -export const SecuritySubAssessment: msRest.CompositeMapper = { - serializedName: "SecuritySubAssessment", +export const RegulatoryComplianceStandard: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandard", type: { name: "Composite", - className: "SecuritySubAssessment", + className: "RegulatoryComplianceStandard", modelProperties: { ...Resource.type.modelProperties, - securitySubAssessmentId: { - readOnly: true, - serializedName: "properties.id", + state: { + serializedName: "properties.state", type: { name: "String" } }, - displayName: { + passedControls: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "properties.passedControls", type: { - name: "String" + name: "Number" } }, - status: { - serializedName: "properties.status", + failedControls: { + readOnly: true, + serializedName: "properties.failedControls", type: { - name: "Composite", - className: "SubAssessmentStatus" + name: "Number" } }, - remediation: { + skippedControls: { readOnly: true, - serializedName: "properties.remediation", + serializedName: "properties.skippedControls", type: { - name: "String" + name: "Number" } }, - impact: { + unsupportedControls: { readOnly: true, - serializedName: "properties.impact", + serializedName: "properties.unsupportedControls", type: { - name: "String" + name: "Number" } - }, - category: { + } + } + } +}; + +export const RegulatoryComplianceControl: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControl", + type: { + name: "Composite", + className: "RegulatoryComplianceControl", + modelProperties: { + ...Resource.type.modelProperties, + description: { readOnly: true, - serializedName: "properties.category", + serializedName: "properties.description", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "properties.description", + state: { + serializedName: "properties.state", type: { name: "String" } }, - timeGenerated: { + passedAssessments: { readOnly: true, - serializedName: "properties.timeGenerated", + serializedName: "properties.passedAssessments", type: { - name: "DateTime" + name: "Number" } }, - resourceDetails: { - serializedName: "properties.resourceDetails", + failedAssessments: { + readOnly: true, + serializedName: "properties.failedAssessments", type: { - name: "Composite", - className: "ResourceDetails" + name: "Number" } }, - additionalData: { - serializedName: "properties.additionalData", + skippedAssessments: { + readOnly: true, + serializedName: "properties.skippedAssessments", type: { - name: "Composite", - className: "AdditionalData" + name: "Number" } } } } }; -export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "SqlServerVulnerability", +export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceAssessment", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "SqlServerVulnerabilityProperties", + className: "RegulatoryComplianceAssessment", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { + ...Resource.type.modelProperties, + description: { readOnly: true, - serializedName: "type", + serializedName: "properties.description", type: { name: "String" } }, - query: { + assessmentType: { readOnly: true, - serializedName: "query", + serializedName: "properties.assessmentType", type: { name: "String" } - } - } - } -}; - -export const CVSS: msRest.CompositeMapper = { - serializedName: "CVSS", - type: { - name: "Composite", - className: "CVSS", - modelProperties: { - base: { + }, + assessmentDetailsLink: { readOnly: true, - serializedName: "base", + serializedName: "properties.assessmentDetailsLink", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedResources: { + readOnly: true, + serializedName: "properties.passedResources", + type: { + name: "Number" + } + }, + failedResources: { + readOnly: true, + serializedName: "properties.failedResources", + type: { + name: "Number" + } + }, + skippedResources: { + readOnly: true, + serializedName: "properties.skippedResources", + type: { + name: "Number" + } + }, + unsupportedResources: { + readOnly: true, + serializedName: "properties.unsupportedResources", type: { name: "Number" } @@ -2687,46 +2573,36 @@ export const CVSS: msRest.CompositeMapper = { } }; -export const CVE: msRest.CompositeMapper = { - serializedName: "CVE", +export const SubAssessmentStatus: msRest.CompositeMapper = { + serializedName: "SubAssessmentStatus", type: { name: "Composite", - className: "CVE", + className: "SubAssessmentStatus", modelProperties: { - title: { + code: { readOnly: true, - serializedName: "title", + serializedName: "code", type: { name: "String" } }, - link: { + cause: { readOnly: true, - serializedName: "link", + serializedName: "cause", type: { name: "String" } - } - } - } -}; - -export const VendorReference: msRest.CompositeMapper = { - serializedName: "VendorReference", - type: { - name: "Composite", - className: "VendorReference", - modelProperties: { - title: { + }, + description: { readOnly: true, - serializedName: "title", + serializedName: "description", type: { name: "String" } }, - link: { + severity: { readOnly: true, - serializedName: "link", + serializedName: "severity", type: { name: "String" } @@ -2735,24 +2611,241 @@ export const VendorReference: msRest.CompositeMapper = { } }; -export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ContainerRegistryVulnerability", +export const ResourceDetails: msRest.CompositeMapper = { + serializedName: "ResourceDetails", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ContainerRegistryVulnerabilityProperties", + polymorphicDiscriminator: { + serializedName: "source", + clientName: "source" + }, + uberParent: "ResourceDetails", + className: "ResourceDetails", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { - readOnly: true, - serializedName: "type", + source: { + required: true, + serializedName: "source", type: { name: "String" } - }, - cvss: { - readOnly: true, + } + } + } +}; + +export const AdditionalData: msRest.CompositeMapper = { + serializedName: "AdditionalData", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "assessedResourceType", + clientName: "assessedResourceType" + }, + uberParent: "AdditionalData", + className: "AdditionalData", + modelProperties: { + assessedResourceType: { + required: true, + serializedName: "assessedResourceType", + type: { + name: "String" + } + } + } + } +}; + +export const SecuritySubAssessment: msRest.CompositeMapper = { + serializedName: "SecuritySubAssessment", + type: { + name: "Composite", + className: "SecuritySubAssessment", + modelProperties: { + ...Resource.type.modelProperties, + securitySubAssessmentId: { + readOnly: true, + serializedName: "properties.id", + type: { + name: "String" + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "SubAssessmentStatus" + } + }, + remediation: { + readOnly: true, + serializedName: "properties.remediation", + type: { + name: "String" + } + }, + impact: { + readOnly: true, + serializedName: "properties.impact", + type: { + name: "String" + } + }, + category: { + readOnly: true, + serializedName: "properties.category", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + timeGenerated: { + readOnly: true, + serializedName: "properties.timeGenerated", + type: { + name: "DateTime" + } + }, + resourceDetails: { + serializedName: "properties.resourceDetails", + type: { + name: "Composite", + className: "ResourceDetails" + } + }, + additionalData: { + serializedName: "properties.additionalData", + type: { + name: "Composite", + className: "AdditionalData" + } + } + } + } +}; + +export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "SqlServerVulnerability", + type: { + name: "Composite", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "SqlServerVulnerabilityProperties", + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + query: { + readOnly: true, + serializedName: "query", + type: { + name: "String" + } + } + } + } +}; + +export const CVSS: msRest.CompositeMapper = { + serializedName: "CVSS", + type: { + name: "Composite", + className: "CVSS", + modelProperties: { + base: { + readOnly: true, + serializedName: "base", + type: { + name: "Number" + } + } + } + } +}; + +export const CVE: msRest.CompositeMapper = { + serializedName: "CVE", + type: { + name: "Composite", + className: "CVE", + modelProperties: { + title: { + readOnly: true, + serializedName: "title", + type: { + name: "String" + } + }, + link: { + readOnly: true, + serializedName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const VendorReference: msRest.CompositeMapper = { + serializedName: "VendorReference", + type: { + name: "Composite", + className: "VendorReference", + modelProperties: { + title: { + readOnly: true, + serializedName: "title", + type: { + name: "String" + } + }, + link: { + readOnly: true, + serializedName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "ContainerRegistryVulnerability", + type: { + name: "Composite", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "ContainerRegistryVulnerabilityProperties", + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + cvss: { + readOnly: true, serializedName: "cvss", type: { name: "Dictionary", @@ -2943,6 +3036,33 @@ export const OnPremiseResourceDetails: msRest.CompositeMapper = { } }; +export const OnPremiseSqlResourceDetails: msRest.CompositeMapper = { + serializedName: "OnPremiseSql", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "OnPremiseSqlResourceDetails", + modelProperties: { + ...OnPremiseResourceDetails.type.modelProperties, + serverName: { + required: true, + serializedName: "serverName", + type: { + name: "String" + } + }, + databaseName: { + required: true, + serializedName: "databaseName", + type: { + name: "String" + } + } + } + } +}; + export const AzureResourceDetails: msRest.CompositeMapper = { serializedName: "Azure", type: { @@ -3308,250 +3428,2898 @@ export const AlertsSuppressionRule: msRest.CompositeMapper = { required: true, serializedName: "properties.alertType", type: { - name: "String" + name: "String" + } + }, + lastModifiedUtc: { + readOnly: true, + serializedName: "properties.lastModifiedUtc", + type: { + name: "DateTime" + } + }, + expirationDateUtc: { + serializedName: "properties.expirationDateUtc", + type: { + name: "DateTime" + } + }, + reason: { + required: true, + serializedName: "properties.reason", + type: { + name: "String" + } + }, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled", + "Expired" + ] + } + }, + comment: { + serializedName: "properties.comment", + type: { + name: "String" + } + }, + suppressionAlertsScope: { + serializedName: "properties.suppressionAlertsScope", + type: { + name: "Composite", + className: "SuppressionAlertsScope" + } + } + } + } +}; + +export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentsList", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment" + } + } + } + } + } + } +}; + +export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataPartnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", + modelProperties: { + partnerName: { + required: true, + serializedName: "partnerName", + type: { + name: "String" + } + }, + productName: { + serializedName: "productName", + type: { + name: "String" + } + }, + secret: { + required: true, + serializedName: "secret", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataProperties", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties", + modelProperties: { + displayName: { + required: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + policyDefinitionId: { + readOnly: true, + serializedName: "policyDefinitionId", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + remediationDescription: { + serializedName: "remediationDescription", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + severity: { + required: true, + serializedName: "severity", + type: { + name: "String" + } + }, + userImpact: { + serializedName: "userImpact", + type: { + name: "String" + } + }, + implementationEffort: { + serializedName: "implementationEffort", + type: { + name: "String" + } + }, + threats: { + serializedName: "threats", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + preview: { + serializedName: "preview", + type: { + name: "Boolean" + } + }, + assessmentType: { + required: true, + serializedName: "assessmentType", + type: { + name: "String" + } + }, + partnerData: { + serializedName: "partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData" + } + } + } + } +}; + +export const SecurityAssessmentMetadata: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadata", + type: { + name: "Composite", + className: "SecurityAssessmentMetadata", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + policyDefinitionId: { + readOnly: true, + serializedName: "properties.policyDefinitionId", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + remediationDescription: { + serializedName: "properties.remediationDescription", + type: { + name: "String" + } + }, + category: { + serializedName: "properties.category", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + severity: { + required: true, + serializedName: "properties.severity", + type: { + name: "String" + } + }, + userImpact: { + serializedName: "properties.userImpact", + type: { + name: "String" + } + }, + implementationEffort: { + serializedName: "properties.implementationEffort", + type: { + name: "String" + } + }, + threats: { + serializedName: "properties.threats", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + preview: { + serializedName: "properties.preview", + type: { + name: "Boolean" + } + }, + assessmentType: { + required: true, + serializedName: "properties.assessmentType", + type: { + name: "String" + } + }, + partnerData: { + serializedName: "properties.partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData" + } + } + } + } +}; + +export const AssessmentStatus: msRest.CompositeMapper = { + serializedName: "AssessmentStatus", + type: { + name: "Composite", + className: "AssessmentStatus", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + cause: { + serializedName: "cause", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const AssessmentLinks: msRest.CompositeMapper = { + serializedName: "AssessmentLinks", + type: { + name: "Composite", + className: "AssessmentLinks", + modelProperties: { + azurePortalUri: { + readOnly: true, + serializedName: "azurePortalUri", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentPartnerData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData", + modelProperties: { + partnerName: { + required: true, + serializedName: "partnerName", + type: { + name: "String" + } + }, + secret: { + required: true, + serializedName: "secret", + type: { + name: "String" + } + } + } + } +}; + +export const SecurityAssessment: msRest.CompositeMapper = { + serializedName: "SecurityAssessment", + type: { + name: "Composite", + className: "SecurityAssessment", + modelProperties: { + ...Resource.type.modelProperties, + resourceDetails: { + required: true, + serializedName: "properties.resourceDetails", + type: { + name: "Composite", + className: "ResourceDetails" + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + status: { + required: true, + serializedName: "properties.status", + type: { + name: "Composite", + className: "AssessmentStatus" + } + }, + additionalData: { + serializedName: "properties.additionalData", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + links: { + serializedName: "properties.links", + type: { + name: "Composite", + className: "AssessmentLinks" + } + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties" + } + }, + partnersData: { + serializedName: "properties.partnersData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData" + } + } + } + } +}; + +export const ProtectionMode: msRest.CompositeMapper = { + serializedName: "ProtectionMode", + type: { + name: "Composite", + className: "ProtectionMode", + modelProperties: { + exe: { + serializedName: "exe", + type: { + name: "String" + } + }, + msi: { + serializedName: "msi", + type: { + name: "String" + } + }, + script: { + serializedName: "script", + type: { + name: "String" + } + }, + executable: { + serializedName: "executable", + type: { + name: "String" + } + } + } + } +}; + +export const AdaptiveApplicationControlIssueSummary: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlIssueSummary", + type: { + name: "Composite", + className: "AdaptiveApplicationControlIssueSummary", + modelProperties: { + issue: { + serializedName: "issue", + type: { + name: "String" + } + }, + numberOfVms: { + serializedName: "numberOfVms", + type: { + name: "Number" + } + } + } + } +}; + +export const VmRecommendation: msRest.CompositeMapper = { + serializedName: "VmRecommendation", + type: { + name: "Composite", + className: "VmRecommendation", + modelProperties: { + configurationStatus: { + serializedName: "configurationStatus", + type: { + name: "String" + } + }, + recommendationAction: { + serializedName: "recommendationAction", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + enforcementSupport: { + serializedName: "enforcementSupport", + type: { + name: "String" + } + } + } + } +}; + +export const PublisherInfo: msRest.CompositeMapper = { + serializedName: "PublisherInfo", + type: { + name: "Composite", + className: "PublisherInfo", + modelProperties: { + publisherName: { + serializedName: "publisherName", + type: { + name: "String" + } + }, + productName: { + serializedName: "productName", + type: { + name: "String" + } + }, + binaryName: { + serializedName: "binaryName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const UserRecommendation: msRest.CompositeMapper = { + serializedName: "UserRecommendation", + type: { + name: "Composite", + className: "UserRecommendation", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + recommendationAction: { + serializedName: "recommendationAction", + type: { + name: "String" + } + } + } + } +}; + +export const PathRecommendation: msRest.CompositeMapper = { + serializedName: "PathRecommendation", + type: { + name: "Composite", + className: "PathRecommendation", + modelProperties: { + path: { + serializedName: "path", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + publisherInfo: { + serializedName: "publisherInfo", + type: { + name: "Composite", + className: "PublisherInfo" + } + }, + common: { + serializedName: "common", + type: { + name: "Boolean" + } + }, + userSids: { + serializedName: "userSids", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + usernames: { + serializedName: "usernames", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserRecommendation" + } + } + } + }, + fileType: { + serializedName: "fileType", + type: { + name: "String" + } + }, + configurationStatus: { + serializedName: "configurationStatus", + type: { + name: "String" + } + } + } + } +}; + +export const AdaptiveApplicationControlGroup: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlGroup", + type: { + name: "Composite", + className: "AdaptiveApplicationControlGroup", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + enforcementMode: { + serializedName: "properties.enforcementMode", + type: { + name: "String" + } + }, + protectionMode: { + serializedName: "properties.protectionMode", + type: { + name: "Composite", + className: "ProtectionMode" + } + }, + configurationStatus: { + readOnly: true, + serializedName: "properties.configurationStatus", + type: { + name: "String" + } + }, + recommendationStatus: { + readOnly: true, + serializedName: "properties.recommendationStatus", + type: { + name: "String" + } + }, + issues: { + readOnly: true, + serializedName: "properties.issues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdaptiveApplicationControlIssueSummary" + } + } + } + }, + sourceSystem: { + readOnly: true, + serializedName: "properties.sourceSystem", + type: { + name: "String" + } + }, + vmRecommendations: { + serializedName: "properties.vmRecommendations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VmRecommendation" + } + } + } + }, + pathRecommendations: { + serializedName: "properties.pathRecommendations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PathRecommendation" + } + } + } + } + } + } +}; + +export const AdaptiveApplicationControlGroups: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlGroups", + type: { + name: "Composite", + className: "AdaptiveApplicationControlGroups", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdaptiveApplicationControlGroup" + } + } + } + } + } + } +}; + +export const Location: msRest.CompositeMapper = { + serializedName: "Location", + type: { + name: "Composite", + className: "Location", + modelProperties: { + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const Rule: msRest.CompositeMapper = { + serializedName: "Rule", + type: { + name: "Composite", + className: "Rule", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + direction: { + serializedName: "direction", + type: { + name: "String" + } + }, + destinationPort: { + serializedName: "destinationPort", + type: { + name: "Number" + } + }, + protocols: { + serializedName: "protocols", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ipAddresses: { + serializedName: "ipAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroups", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups", + modelProperties: { + networkInterface: { + serializedName: "networkInterface", + type: { + name: "String" + } + }, + networkSecurityGroups: { + serializedName: "networkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AdaptiveNetworkHardening: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardening", + type: { + name: "Composite", + className: "AdaptiveNetworkHardening", + modelProperties: { + ...Resource.type.modelProperties, + rules: { + serializedName: "properties.rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } + } + }, + rulesCalculationTime: { + serializedName: "properties.rulesCalculationTime", + type: { + name: "DateTime" + } + }, + effectiveNetworkSecurityGroups: { + serializedName: "properties.effectiveNetworkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups" + } + } + } + } + } + } +}; + +export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardeningEnforceRequest", + type: { + name: "Composite", + className: "AdaptiveNetworkHardeningEnforceRequest", + modelProperties: { + rules: { + required: true, + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } + } + }, + networkSecurityGroups: { + required: true, + serializedName: "networkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ConnectedResource: msRest.CompositeMapper = { + serializedName: "ConnectedResource", + type: { + name: "Composite", + className: "ConnectedResource", + modelProperties: { + connectedResourceId: { + readOnly: true, + serializedName: "connectedResourceId", + type: { + name: "String" + } + }, + tcpPorts: { + readOnly: true, + serializedName: "tcpPorts", + type: { + name: "String" + } + }, + udpPorts: { + readOnly: true, + serializedName: "udpPorts", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectableResource: msRest.CompositeMapper = { + serializedName: "ConnectableResource", + type: { + name: "Composite", + className: "ConnectableResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + inboundConnectedResources: { + readOnly: true, + serializedName: "inboundConnectedResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource" + } + } + } + }, + outboundConnectedResources: { + readOnly: true, + serializedName: "outboundConnectedResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource" + } + } + } + } + } + } +}; + +export const AllowedConnectionsResource: msRest.CompositeMapper = { + serializedName: "AllowedConnectionsResource", + type: { + name: "Composite", + className: "AllowedConnectionsResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + calculatedDateTime: { + readOnly: true, + serializedName: "properties.calculatedDateTime", + type: { + name: "DateTime" + } + }, + connectableResources: { + readOnly: true, + serializedName: "properties.connectableResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectableResource" + } + } + } + } + } + } +}; + +export const TopologySingleResourceParent: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceParent", + type: { + name: "Composite", + className: "TopologySingleResourceParent", + modelProperties: { + resourceId: { + readOnly: true, + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const TopologySingleResourceChild: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceChild", + type: { + name: "Composite", + className: "TopologySingleResourceChild", + modelProperties: { + resourceId: { + readOnly: true, + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const TopologySingleResource: msRest.CompositeMapper = { + serializedName: "TopologySingleResource", + type: { + name: "Composite", + className: "TopologySingleResource", + modelProperties: { + resourceId: { + readOnly: true, + serializedName: "resourceId", + type: { + name: "String" + } + }, + severity: { + readOnly: true, + serializedName: "severity", + type: { + name: "String" + } + }, + recommendationsExist: { + readOnly: true, + serializedName: "recommendationsExist", + type: { + name: "Boolean" + } + }, + networkZones: { + readOnly: true, + serializedName: "networkZones", + type: { + name: "String" + } + }, + topologyScore: { + readOnly: true, + serializedName: "topologyScore", + type: { + name: "Number" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + parents: { + readOnly: true, + serializedName: "parents", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceParent" + } + } + } + }, + children: { + readOnly: true, + serializedName: "children", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceChild" + } + } + } + } + } + } +}; + +export const TopologyResource: msRest.CompositeMapper = { + serializedName: "TopologyResource", + type: { + name: "Composite", + className: "TopologyResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + calculatedDateTime: { + readOnly: true, + serializedName: "properties.calculatedDateTime", + type: { + name: "DateTime" + } + }, + topologyResources: { + readOnly: true, + serializedName: "properties.topologyResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResource" + } + } + } + } + } + } +}; + +export const ResourceIdentifier: msRest.CompositeMapper = { + serializedName: "ResourceIdentifier", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "ResourceIdentifier", + className: "ResourceIdentifier", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const AlertEntity: msRest.CompositeMapper = { + serializedName: "AlertEntity", + type: { + name: "Composite", + className: "AlertEntity", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const Alert: msRest.CompositeMapper = { + serializedName: "Alert", + type: { + name: "Composite", + className: "Alert", + modelProperties: { + ...Resource.type.modelProperties, + alertType: { + readOnly: true, + serializedName: "properties.alertType", + type: { + name: "String" + } + }, + systemAlertId: { + readOnly: true, + serializedName: "properties.systemAlertId", + type: { + name: "String" + } + }, + productComponentName: { + readOnly: true, + serializedName: "properties.productComponentName", + type: { + name: "String" + } + }, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + severity: { + readOnly: true, + serializedName: "properties.severity", + type: { + name: "String" + } + }, + intent: { + readOnly: true, + serializedName: "properties.intent", + type: { + name: "String" + } + }, + startTimeUtc: { + readOnly: true, + serializedName: "properties.startTimeUtc", + type: { + name: "DateTime" + } + }, + endTimeUtc: { + readOnly: true, + serializedName: "properties.endTimeUtc", + type: { + name: "DateTime" + } + }, + resourceIdentifiers: { + readOnly: true, + serializedName: "properties.resourceIdentifiers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceIdentifier" + } + } + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + extendedLinks: { + readOnly: true, + serializedName: "properties.extendedLinks", + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + }, + alertUri: { + readOnly: true, + serializedName: "properties.alertUri", + type: { + name: "String" + } + }, + timeGeneratedUtc: { + readOnly: true, + serializedName: "properties.timeGeneratedUtc", + type: { + name: "DateTime" + } + }, + productName: { + readOnly: true, + serializedName: "properties.productName", + type: { + name: "String" + } + }, + processingEndTimeUtc: { + readOnly: true, + serializedName: "properties.processingEndTimeUtc", + type: { + name: "DateTime" + } + }, + entities: { + readOnly: true, + serializedName: "properties.entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + }, + isIncident: { + readOnly: true, + serializedName: "properties.isIncident", + type: { + name: "Boolean" + } + }, + correlationKey: { + readOnly: true, + serializedName: "properties.correlationKey", + type: { + name: "String" + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureResourceIdentifier: msRest.CompositeMapper = { + serializedName: "AzureResource", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, + uberParent: "ResourceIdentifier", + className: "AzureResourceIdentifier", + modelProperties: { + ...ResourceIdentifier.type.modelProperties, + azureResourceId: { + readOnly: true, + serializedName: "azureResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const LogAnalyticsIdentifier: msRest.CompositeMapper = { + serializedName: "LogAnalytics", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, + uberParent: "ResourceIdentifier", + className: "LogAnalyticsIdentifier", + modelProperties: { + ...ResourceIdentifier.type.modelProperties, + workspaceId: { + readOnly: true, + serializedName: "workspaceId", + type: { + name: "String" + } + }, + workspaceSubscriptionId: { + readOnly: true, + serializedName: "workspaceSubscriptionId", + constraints: { + Pattern: /^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$/ + }, + type: { + name: "String" + } + }, + workspaceResourceGroup: { + readOnly: true, + serializedName: "workspaceResourceGroup", + type: { + name: "String" + } + }, + agentId: { + readOnly: true, + serializedName: "agentId", + type: { + name: "String" + } + } + } + } +}; + +export const JitNetworkAccessPortRule: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPortRule", + type: { + name: "Composite", + className: "JitNetworkAccessPortRule", + modelProperties: { + number: { + required: true, + serializedName: "number", + type: { + name: "Number" + } + }, + protocol: { + required: true, + serializedName: "protocol", + type: { + name: "String" + } + }, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String" + } + }, + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxRequestAccessDuration: { + required: true, + serializedName: "maxRequestAccessDuration", + type: { + name: "String" + } + } + } + } +}; + +export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + ports: { + required: true, + serializedName: "ports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPortRule" + } + } + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + type: { + name: "String" + } + } + } + } +}; + +export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestPort", + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + modelProperties: { + number: { + required: true, + serializedName: "number", + type: { + name: "Number" + } + }, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String" + } + }, + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", + type: { + name: "DateTime" + } + }, + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + statusReason: { + required: true, + serializedName: "statusReason", + type: { + name: "String" + } + }, + mappedPort: { + serializedName: "mappedPort", + type: { + name: "Number" + } + } + } + } +}; + +export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessRequestVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + ports: { + required: true, + serializedName: "ports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort" + } + } + } + } + } + } +}; + +export const JitNetworkAccessRequest: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequest", + type: { + name: "Composite", + className: "JitNetworkAccessRequest", + modelProperties: { + virtualMachines: { + required: true, + serializedName: "virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestVirtualMachine" + } + } + } + }, + startTimeUtc: { + required: true, + serializedName: "startTimeUtc", + type: { + name: "DateTime" + } + }, + requestor: { + required: true, + serializedName: "requestor", + type: { + name: "String" + } + }, + justification: { + serializedName: "justification", + type: { + name: "String" + } + } + } + } +}; + +export const JitNetworkAccessPolicy: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicy", + type: { + name: "Composite", + className: "JitNetworkAccessPolicy", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + virtualMachines: { + required: true, + serializedName: "properties.virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyVirtualMachine" + } + } + } + }, + requests: { + serializedName: "properties.requests", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequest" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiatePort", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort", + modelProperties: { + number: { + required: true, + serializedName: "number", + type: { + name: "Number" + } + }, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String" + } + }, + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", + type: { + name: "DateTime" + } + } + } + } +}; + +export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + ports: { + required: true, + serializedName: "ports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort" + } + } + } + } + } + } +}; + +export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateRequest", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateRequest", + modelProperties: { + virtualMachines: { + required: true, + serializedName: "virtualMachines", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine" + } + } + } + }, + justification: { + serializedName: "justification", + type: { + name: "String" + } + } + } + } +}; + +export const DiscoveredSecuritySolution: msRest.CompositeMapper = { + serializedName: "DiscoveredSecuritySolution", + type: { + name: "Composite", + className: "DiscoveredSecuritySolution", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + securityFamily: { + required: true, + serializedName: "properties.securityFamily", + type: { + name: "String" + } + }, + offer: { + required: true, + serializedName: "properties.offer", + type: { + name: "String" + } + }, + publisher: { + required: true, + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + sku: { + required: true, + serializedName: "properties.sku", + type: { + name: "String" + } + } + } + } +}; + +export const SecuritySolutionsReferenceData: msRest.CompositeMapper = { + serializedName: "securitySolutionsReferenceData", + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + securityFamily: { + required: true, + serializedName: "properties.securityFamily", + type: { + name: "String" + } + }, + alertVendorName: { + required: true, + serializedName: "properties.alertVendorName", + type: { + name: "String" + } + }, + packageInfoUrl: { + required: true, + serializedName: "properties.packageInfoUrl", + type: { + name: "String" + } + }, + productName: { + required: true, + serializedName: "properties.productName", + type: { + name: "String" + } + }, + publisher: { + required: true, + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + publisherDisplayName: { + required: true, + serializedName: "properties.publisherDisplayName", + type: { + name: "String" + } + }, + template: { + required: true, + serializedName: "properties.template", + type: { + name: "String" + } + } + } + } +}; + +export const SecuritySolutionsReferenceDataList: msRest.CompositeMapper = { + serializedName: "securitySolutionsReferenceDataList", + type: { + name: "Composite", + className: "SecuritySolutionsReferenceDataList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData" + } + } + } + } + } + } +}; + +export const ExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolution", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "ExternalSecuritySolution", + className: "ExternalSecuritySolution", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionProperties", + type: { + name: "Composite", + className: "ExternalSecuritySolutionProperties", + modelProperties: { + deviceVendor: { + serializedName: "deviceVendor", + type: { + name: "String" + } + }, + deviceType: { + serializedName: "deviceType", + type: { + name: "String" + } + }, + workspace: { + serializedName: "workspace", + type: { + name: "Composite", + className: "ConnectedWorkspace" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const CefSolutionProperties: msRest.CompositeMapper = { + serializedName: "CefSolutionProperties", + type: { + name: "Composite", + className: "CefSolutionProperties", + modelProperties: { + ...ExternalSecuritySolutionProperties.type.modelProperties, + hostname: { + serializedName: "hostname", + type: { + name: "String" + } + }, + agent: { + serializedName: "agent", + type: { + name: "String" + } + }, + lastEventReceived: { + serializedName: "lastEventReceived", + type: { + name: "String" + } + } + }, + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } +}; + +export const CefExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "CEF", + type: { + name: "Composite", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "CefExternalSecuritySolution", + modelProperties: { + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CefSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } + } + } + } +}; + +export const AtaSolutionProperties: msRest.CompositeMapper = { + serializedName: "AtaSolutionProperties", + type: { + name: "Composite", + className: "AtaSolutionProperties", + modelProperties: { + ...ExternalSecuritySolutionProperties.type.modelProperties, + lastEventReceived: { + serializedName: "lastEventReceived", + type: { + name: "String" + } + } + }, + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } +}; + +export const AtaExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "ATA", + type: { + name: "Composite", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "AtaExternalSecuritySolution", + modelProperties: { + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AtaSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + } + } + } + } +}; + +export const ConnectedWorkspace: msRest.CompositeMapper = { + serializedName: "ConnectedWorkspace", + type: { + name: "Composite", + className: "ConnectedWorkspace", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const AadSolutionProperties: msRest.CompositeMapper = { + serializedName: "AadSolutionProperties", + type: { + name: "Composite", + className: "AadSolutionProperties", + modelProperties: { + deviceVendor: { + serializedName: "deviceVendor", + type: { + name: "String" + } + }, + deviceType: { + serializedName: "deviceType", + type: { + name: "String" + } + }, + workspace: { + serializedName: "workspace", + type: { + name: "Composite", + className: "ConnectedWorkspace" + } + }, + connectivityState: { + serializedName: "connectivityState", + type: { + name: "String" + } + } + } + } +}; + +export const AadExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "AAD", + type: { + name: "Composite", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "AadExternalSecuritySolution", + modelProperties: { + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AadSolutionProperties" + } + } + } + } +}; + +export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionKind", + type: { + name: "Composite", + className: "ExternalSecuritySolutionKind1", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const AadConnectivityState1: msRest.CompositeMapper = { + serializedName: "AadConnectivityState", + type: { + name: "Composite", + className: "AadConnectivityState1", + modelProperties: { + connectivityState: { + serializedName: "connectivityState", + type: { + name: "String" + } + } + } + } +}; + +export const SecureScoreItem: msRest.CompositeMapper = { + serializedName: "SecureScoreItem", + type: { + name: "Composite", + className: "SecureScoreItem", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + max: { + readOnly: true, + serializedName: "properties.score.max", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + current: { + readOnly: true, + serializedName: "properties.score.current", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + percentage: { + readOnly: true, + serializedName: "properties.score.percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + weight: { + readOnly: true, + serializedName: "properties.weight", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const SecureScoreControlScore: msRest.CompositeMapper = { + serializedName: "SecureScoreControlScore", + type: { + name: "Composite", + className: "SecureScoreControlScore", + modelProperties: { + max: { + readOnly: true, + serializedName: "max", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + current: { + readOnly: true, + serializedName: "current", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + percentage: { + readOnly: true, + serializedName: "percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDefinitionSource", + type: { + name: "Composite", + className: "SecureScoreControlDefinitionSource", + modelProperties: { + sourceType: { + serializedName: "sourceType", + type: { + name: "String" + } + } + } + } +}; + +export const AzureResourceLink: msRest.CompositeMapper = { + serializedName: "AzureResourceLink", + type: { + name: "Composite", + className: "AzureResourceLink", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDefinitionItem", + type: { + name: "Composite", + className: "SecureScoreControlDefinitionItem", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + maxScore: { + readOnly: true, + serializedName: "properties.maxScore", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + source: { + readOnly: true, + serializedName: "properties.source", + type: { + name: "Composite", + className: "SecureScoreControlDefinitionSource" + } + }, + assessmentDefinitions: { + readOnly: true, + serializedName: "properties.assessmentDefinitions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureResourceLink" + } + } + } + } + } + } +}; + +export const SecureScoreControlDetails: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDetails", + type: { + name: "Composite", + className: "SecureScoreControlDetails", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + max: { + readOnly: true, + serializedName: "properties.score.max", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + current: { + readOnly: true, + serializedName: "properties.score.current", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" } }, - lastModifiedUtc: { + percentage: { readOnly: true, - serializedName: "properties.lastModifiedUtc", + serializedName: "properties.score.percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "DateTime" + name: "Number" } }, - expirationDateUtc: { - serializedName: "properties.expirationDateUtc", + healthyResourceCount: { + readOnly: true, + serializedName: "properties.healthyResourceCount", type: { - name: "DateTime" + name: "Number" } }, - reason: { - required: true, - serializedName: "properties.reason", + unhealthyResourceCount: { + readOnly: true, + serializedName: "properties.unhealthyResourceCount", type: { - name: "String" + name: "Number" } }, - state: { - required: true, - serializedName: "properties.state", + notApplicableResourceCount: { + readOnly: true, + serializedName: "properties.notApplicableResourceCount", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled", - "Expired" - ] + name: "Number" } }, - comment: { - serializedName: "properties.comment", + weight: { + readOnly: true, + serializedName: "properties.weight", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - suppressionAlertsScope: { - serializedName: "properties.suppressionAlertsScope", + definition: { + serializedName: "properties.definition", type: { name: "Composite", - className: "SuppressionAlertsScope" + className: "SecureScoreControlDefinitionItem" } } } } }; -export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataPartnerData", +export const SecuritySolution: msRest.CompositeMapper = { + serializedName: "SecuritySolution", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", + className: "SecuritySolution", modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - productName: { - serializedName: "productName", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - secret: { - required: true, - serializedName: "secret", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataProperties", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties", - modelProperties: { - displayName: { - required: true, - serializedName: "displayName", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - policyDefinitionId: { + location: { readOnly: true, - serializedName: "policyDefinitionId", + serializedName: "location", type: { name: "String" } }, - description: { - serializedName: "description", + securityFamily: { + required: true, + serializedName: "properties.securityFamily", type: { name: "String" } }, - remediationDescription: { - serializedName: "remediationDescription", + provisioningState: { + required: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - category: { - serializedName: "category", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - severity: { + template: { required: true, - serializedName: "severity", + serializedName: "properties.template", type: { name: "String" } }, - userImpact: { - serializedName: "userImpact", + protectionStatus: { + required: true, + serializedName: "properties.protectionStatus", type: { name: "String" } - }, - implementationEffort: { - serializedName: "implementationEffort", + } + } + } +}; + +export const ProxyServerProperties: msRest.CompositeMapper = { + serializedName: "ProxyServerProperties", + type: { + name: "Composite", + className: "ProxyServerProperties", + modelProperties: { + ip: { + serializedName: "ip", type: { name: "String" } }, - threats: { - serializedName: "threats", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - preview: { - serializedName: "preview", + port: { + serializedName: "port", type: { - name: "Boolean" + name: "String" } - }, - assessmentType: { - required: true, - serializedName: "assessmentType", + } + } + } +}; + +export const ServicePrincipalProperties: msRest.CompositeMapper = { + serializedName: "ServicePrincipalProperties", + type: { + name: "Composite", + className: "ServicePrincipalProperties", + modelProperties: { + applicationId: { + serializedName: "applicationId", type: { name: "String" } }, - partnerData: { - serializedName: "partnerData", + secret: { + serializedName: "secret", type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + name: "String" } } } } }; -export const SecurityAssessmentMetadata: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadata", +export const HybridComputeSettingsProperties: msRest.CompositeMapper = { + serializedName: "HybridComputeSettingsProperties", type: { name: "Composite", - className: "SecurityAssessmentMetadata", + className: "HybridComputeSettingsProperties", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - policyDefinitionId: { + hybridComputeProvisioningState: { readOnly: true, - serializedName: "properties.policyDefinitionId", + serializedName: "hybridComputeProvisioningState", type: { name: "String" } }, - description: { - serializedName: "properties.description", + autoProvision: { + required: true, + serializedName: "autoProvision", type: { name: "String" } }, - remediationDescription: { - serializedName: "properties.remediationDescription", + resourceGroupName: { + serializedName: "resourceGroupName", type: { name: "String" } }, - category: { - serializedName: "properties.category", + region: { + serializedName: "region", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - severity: { - required: true, - serializedName: "properties.severity", + proxyServer: { + serializedName: "proxyServer", type: { - name: "String" + name: "Composite", + className: "ProxyServerProperties" } }, - userImpact: { - serializedName: "properties.userImpact", + servicePrincipal: { + serializedName: "servicePrincipal", type: { - name: "String" + name: "Composite", + className: "ServicePrincipalProperties" } - }, - implementationEffort: { - serializedName: "properties.implementationEffort", + } + } + } +}; + +export const AuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "AuthenticationDetailsProperties", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "authenticationType", + clientName: "authenticationType" + }, + uberParent: "AuthenticationDetailsProperties", + className: "AuthenticationDetailsProperties", + modelProperties: { + authenticationProvisioningState: { + readOnly: true, + serializedName: "authenticationProvisioningState", type: { name: "String" } }, - threats: { - serializedName: "properties.threats", + grantedPermissions: { + readOnly: true, + serializedName: "grantedPermissions", type: { name: "Sequence", element: { @@ -3561,51 +6329,68 @@ export const SecurityAssessmentMetadata: msRest.CompositeMapper = { } } }, - preview: { - serializedName: "properties.preview", - type: { - name: "Boolean" - } - }, - assessmentType: { + authenticationType: { required: true, - serializedName: "properties.assessmentType", + serializedName: "authenticationType", type: { name: "String" } + } + } + } +}; + +export const ConnectorSetting: msRest.CompositeMapper = { + serializedName: "ConnectorSetting", + type: { + name: "Composite", + className: "ConnectorSetting", + modelProperties: { + ...Resource.type.modelProperties, + hybridComputeSettings: { + serializedName: "properties.hybridComputeSettings", + type: { + name: "Composite", + className: "HybridComputeSettingsProperties" + } }, - partnerData: { - serializedName: "properties.partnerData", + authenticationDetails: { + serializedName: "properties.authenticationDetails", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + className: "AuthenticationDetailsProperties" } } } } }; -export const AssessmentStatus: msRest.CompositeMapper = { - serializedName: "AssessmentStatus", +export const AwsCredsAuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "awsCreds", type: { name: "Composite", - className: "AssessmentStatus", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "AwsCredsAuthenticationDetailsProperties", modelProperties: { - code: { - required: true, - serializedName: "code", + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "accountId", type: { name: "String" } }, - cause: { - serializedName: "cause", + awsAccessKeyId: { + required: true, + serializedName: "awsAccessKeyId", type: { name: "String" } }, - description: { - serializedName: "description", + awsSecretAccessKey: { + required: true, + serializedName: "awsSecretAccessKey", type: { name: "String" } @@ -3614,39 +6399,32 @@ export const AssessmentStatus: msRest.CompositeMapper = { } }; -export const AssessmentLinks: msRest.CompositeMapper = { - serializedName: "AssessmentLinks", +export const AwAssumeRoleAuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "awsAssumeRole", type: { name: "Composite", - className: "AssessmentLinks", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "AwAssumeRoleAuthenticationDetailsProperties", modelProperties: { - azurePortalUri: { + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { readOnly: true, - serializedName: "azurePortalUri", + serializedName: "accountId", type: { name: "String" } - } - } - } -}; - -export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentPartnerData", - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", - modelProperties: { - partnerName: { + }, + awsAssumeRoleArn: { required: true, - serializedName: "partnerName", + serializedName: "awsAssumeRoleArn", type: { name: "String" } }, - secret: { + awsExternalId: { required: true, - serializedName: "secret", + serializedName: "awsExternalId", type: { name: "String" } @@ -3655,154 +6433,261 @@ export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { } }; -export const SecurityAssessment: msRest.CompositeMapper = { - serializedName: "SecurityAssessment", +export const GcpCredentialsDetailsProperties: msRest.CompositeMapper = { + serializedName: "gcpCredentials", type: { name: "Composite", - className: "SecurityAssessment", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "GcpCredentialsDetailsProperties", modelProperties: { - ...Resource.type.modelProperties, - resourceDetails: { + ...AuthenticationDetailsProperties.type.modelProperties, + organizationId: { required: true, - serializedName: "properties.resourceDetails", + serializedName: "organizationId", type: { - name: "Composite", - className: "ResourceDetails" + name: "String" } }, - displayName: { - readOnly: true, - serializedName: "properties.displayName", + type: { + required: true, + serializedName: "type", type: { name: "String" } }, - status: { + projectId: { required: true, - serializedName: "properties.status", + serializedName: "projectId", type: { - name: "Composite", - className: "AssessmentStatus" + name: "String" } }, - additionalData: { - serializedName: "properties.additionalData", + privateKeyId: { + required: true, + serializedName: "privateKeyId", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - links: { - serializedName: "properties.links", + privateKey: { + required: true, + serializedName: "privateKey", type: { - name: "Composite", - className: "AssessmentLinks" + name: "String" } }, - metadata: { - serializedName: "properties.metadata", + clientEmail: { + required: true, + serializedName: "clientEmail", type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties" + name: "String" } }, - partnersData: { - serializedName: "properties.partnersData", + clientId: { + required: true, + serializedName: "clientId", type: { - name: "Composite", - className: "SecurityAssessmentPartnerData" + name: "String" + } + }, + authUri: { + required: true, + serializedName: "authUri", + type: { + name: "String" + } + }, + tokenUri: { + required: true, + serializedName: "tokenUri", + type: { + name: "String" + } + }, + authProviderX509CertUrl: { + required: true, + serializedName: "authProviderX509CertUrl", + type: { + name: "String" + } + }, + clientX509CertUrl: { + required: true, + serializedName: "clientX509CertUrl", + type: { + name: "String" } } } } }; -export const ProtectionMode: msRest.CompositeMapper = { - serializedName: "ProtectionMode", +export const ScanProperties: msRest.CompositeMapper = { + serializedName: "ScanProperties", type: { name: "Composite", - className: "ProtectionMode", + className: "ScanProperties", modelProperties: { - exe: { - serializedName: "exe", + triggerType: { + serializedName: "triggerType", type: { name: "String" } }, - msi: { - serializedName: "msi", + state: { + serializedName: "state", type: { name: "String" } }, - script: { - serializedName: "script", + server: { + serializedName: "server", type: { name: "String" } }, - executable: { - serializedName: "executable", + database: { + serializedName: "database", type: { name: "String" } + }, + sqlVersion: { + serializedName: "sqlVersion", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + highSeverityFailedRulesCount: { + serializedName: "highSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + mediumSeverityFailedRulesCount: { + serializedName: "mediumSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + lowSeverityFailedRulesCount: { + serializedName: "lowSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + totalPassedRulesCount: { + serializedName: "totalPassedRulesCount", + type: { + name: "Number" + } + }, + totalFailedRulesCount: { + serializedName: "totalFailedRulesCount", + type: { + name: "Number" + } + }, + totalRulesCount: { + serializedName: "totalRulesCount", + type: { + name: "Number" + } + }, + isBaselineApplied: { + serializedName: "isBaselineApplied", + type: { + name: "Boolean" + } } } } }; -export const AppWhitelistingIssueSummary: msRest.CompositeMapper = { - serializedName: "AppWhitelistingIssueSummary", +export const Scan: msRest.CompositeMapper = { + serializedName: "Scan", type: { name: "Composite", - className: "AppWhitelistingIssueSummary", + className: "Scan", modelProperties: { - issue: { - serializedName: "issue", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ScanProperties" } - }, - numberOfVms: { - serializedName: "numberOfVms", + } + } + } +}; + +export const Scans: msRest.CompositeMapper = { + serializedName: "Scans", + type: { + name: "Composite", + className: "Scans", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Scan" + } + } } } } } }; -export const VmRecommendation: msRest.CompositeMapper = { - serializedName: "VmRecommendation", +export const Remediation: msRest.CompositeMapper = { + serializedName: "Remediation", type: { name: "Composite", - className: "VmRecommendation", + className: "Remediation", modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", + description: { + serializedName: "description", type: { name: "String" } }, - recommendationAction: { - serializedName: "recommendationAction", + scripts: { + serializedName: "scripts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - resourceId: { - serializedName: "resourceId", + automated: { + serializedName: "automated", type: { - name: "String" + name: "Boolean" } }, - enforcementSupport: { - serializedName: "enforcementSupport", + portalLink: { + serializedName: "portalLink", type: { name: "String" } @@ -3811,130 +6696,150 @@ export const VmRecommendation: msRest.CompositeMapper = { } }; -export const PublisherInfo: msRest.CompositeMapper = { - serializedName: "PublisherInfo", +export const Baseline: msRest.CompositeMapper = { + serializedName: "Baseline", type: { name: "Composite", - className: "PublisherInfo", + className: "Baseline", modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", - type: { - name: "String" - } - }, - binaryName: { - serializedName: "binaryName", + expectedResults: { + serializedName: "expectedResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - version: { - serializedName: "version", + updatedTime: { + serializedName: "updatedTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const UserRecommendation: msRest.CompositeMapper = { - serializedName: "UserRecommendation", +export const BaselineAdjustedResult: msRest.CompositeMapper = { + serializedName: "BaselineAdjustedResult", type: { name: "Composite", - className: "UserRecommendation", + className: "BaselineAdjustedResult", modelProperties: { - username: { - serializedName: "username", + baseline: { + serializedName: "baseline", type: { - name: "String" + name: "Composite", + className: "Baseline" } }, - recommendationAction: { - serializedName: "recommendationAction", + status: { + serializedName: "status", type: { name: "String" } + }, + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } } } } }; -export const PathRecommendation: msRest.CompositeMapper = { - serializedName: "PathRecommendation", +export const QueryCheck: msRest.CompositeMapper = { + serializedName: "QueryCheck", type: { name: "Composite", - className: "PathRecommendation", + className: "QueryCheck", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + query: { + serializedName: "query", type: { name: "String" } }, - publisherInfo: { - serializedName: "publisherInfo", - type: { - name: "Composite", - className: "PublisherInfo" - } - }, - common: { - serializedName: "common", - type: { - name: "Boolean" - } - }, - userSids: { - serializedName: "userSids", + expectedResult: { + serializedName: "expectedResult", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - usernames: { - serializedName: "usernames", + columnNames: { + serializedName: "columnNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "UserRecommendation" + name: "String" } } } - }, - fileType: { - serializedName: "fileType", + } + } + } +}; + +export const BenchmarkReference: msRest.CompositeMapper = { + serializedName: "BenchmarkReference", + type: { + name: "Composite", + className: "BenchmarkReference", + modelProperties: { + benchmark: { + serializedName: "benchmark", type: { name: "String" } }, - configurationStatus: { - serializedName: "configurationStatus", + reference: { + serializedName: "reference", type: { name: "String" } @@ -3943,120 +6848,165 @@ export const PathRecommendation: msRest.CompositeMapper = { } }; -export const AppWhitelistingGroup: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroup", +export const VaRule: msRest.CompositeMapper = { + serializedName: "VaRule", type: { name: "Composite", - className: "AppWhitelistingGroup", + className: "VaRule", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ruleId: { + serializedName: "ruleId", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + severity: { + serializedName: "severity", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + category: { + serializedName: "category", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + ruleType: { + serializedName: "ruleType", type: { name: "String" } }, - enforcementMode: { - serializedName: "properties.enforcementMode", + title: { + serializedName: "title", type: { name: "String" } }, - protectionMode: { - serializedName: "properties.protectionMode", + description: { + serializedName: "description", type: { - name: "Composite", - className: "ProtectionMode" + name: "String" } }, - configurationStatus: { - readOnly: true, - serializedName: "properties.configurationStatus", + rationale: { + serializedName: "rationale", type: { name: "String" } }, - recommendationStatus: { - readOnly: true, - serializedName: "properties.recommendationStatus", + queryCheck: { + serializedName: "queryCheck", type: { - name: "String" + name: "Composite", + className: "QueryCheck" } }, - issues: { - readOnly: true, - serializedName: "properties.issues", + benchmarkReferences: { + serializedName: "benchmarkReferences", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AppWhitelistingIssueSummary" + className: "BenchmarkReference" } } } + } + } + } +}; + +export const ScanResultProperties: msRest.CompositeMapper = { + serializedName: "ScanResultProperties", + type: { + name: "Composite", + className: "ScanResultProperties", + modelProperties: { + ruleId: { + serializedName: "ruleId", + type: { + name: "String" + } }, - sourceSystem: { - readOnly: true, - serializedName: "properties.sourceSystem", + status: { + serializedName: "status", type: { name: "String" } }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", + isTrimmed: { + serializedName: "isTrimmed", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation" - } - } + name: "Boolean" } }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", + queryResults: { + serializedName: "queryResults", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PathRecommendation" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } + }, + remediation: { + serializedName: "remediation", + type: { + name: "Composite", + className: "Remediation" + } + }, + baselineAdjustedResult: { + serializedName: "baselineAdjustedResult", + type: { + name: "Composite", + className: "BaselineAdjustedResult" + } + }, + ruleMetadata: { + serializedName: "ruleMetadata", + type: { + name: "Composite", + className: "VaRule" + } + } + } + } +}; + +export const ScanResult: msRest.CompositeMapper = { + serializedName: "ScanResult", + type: { + name: "Composite", + className: "ScanResult", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanResultProperties" + } } } } }; -export const AppWhitelistingGroups: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroups", +export const ScanResults: msRest.CompositeMapper = { + serializedName: "ScanResults", type: { name: "Composite", - className: "AppWhitelistingGroups", + className: "ScanResults", modelProperties: { value: { serializedName: "value", @@ -4065,7 +7015,7 @@ export const AppWhitelistingGroups: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "AppWhitelistingGroup" + className: "ScanResult" } } } @@ -4074,48 +7024,56 @@ export const AppWhitelistingGroups: msRest.CompositeMapper = { } }; -export const Rule: msRest.CompositeMapper = { - serializedName: "Rule", +export const RuleResultsInput: msRest.CompositeMapper = { + serializedName: "RuleResultsInput", type: { name: "Composite", - className: "Rule", + className: "RuleResultsInput", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - direction: { - serializedName: "direction", - type: { - name: "String" - } - }, - destinationPort: { - serializedName: "destinationPort", + latestScan: { + serializedName: "latestScan", type: { - name: "Number" + name: "Boolean" } }, - protocols: { - serializedName: "protocols", + results: { + serializedName: "results", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } - }, - ipAddresses: { - serializedName: "ipAddresses", + } + } + } +}; + +export const RuleResultsProperties: msRest.CompositeMapper = { + serializedName: "RuleResultsProperties", + type: { + name: "Composite", + className: "RuleResultsProperties", + modelProperties: { + results: { + serializedName: "results", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -4124,25 +7082,38 @@ export const Rule: msRest.CompositeMapper = { } }; -export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { - serializedName: "EffectiveNetworkSecurityGroups", +export const RuleResults: msRest.CompositeMapper = { + serializedName: "RuleResults", type: { name: "Composite", - className: "EffectiveNetworkSecurityGroups", + className: "RuleResults", modelProperties: { - networkInterface: { - serializedName: "networkInterface", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "RuleResultsProperties" } - }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", + } + } + } +}; + +export const RulesResults: msRest.CompositeMapper = { + serializedName: "RulesResults", + type: { + name: "Composite", + className: "RulesResults", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "RuleResults" } } } @@ -4151,39 +7122,68 @@ export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { } }; -export const AdaptiveNetworkHardening: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardening", +export const RulesResultsInput: msRest.CompositeMapper = { + serializedName: "RulesResultsInput", type: { name: "Composite", - className: "AdaptiveNetworkHardening", + className: "RulesResultsInput", modelProperties: { - ...Resource.type.modelProperties, - rules: { - serializedName: "properties.rules", + latestScan: { + serializedName: "latestScan", type: { - name: "Sequence", - element: { + name: "Boolean" + } + }, + results: { + serializedName: "results", + type: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "Rule" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } - }, - rulesCalculationTime: { - serializedName: "properties.rulesCalculationTime", + } + } + } +}; + +export const IotDefenderSettingsModel: msRest.CompositeMapper = { + serializedName: "IotDefenderSettingsModel", + type: { + name: "Composite", + className: "IotDefenderSettingsModel", + modelProperties: { + ...Resource.type.modelProperties, + deviceQuota: { + required: true, + serializedName: "properties.deviceQuota", + constraints: { + InclusiveMinimum: 1000 + }, type: { - name: "DateTime" + name: "Number" } }, - effectiveNetworkSecurityGroups: { - serializedName: "properties.effectiveNetworkSecurityGroups", + sentinelWorkspaceResourceIds: { + required: true, + serializedName: "properties.sentinelWorkspaceResourceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups" + name: "String" } } } @@ -4192,33 +7192,21 @@ export const AdaptiveNetworkHardening: msRest.CompositeMapper = { } }; -export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardeningEnforceRequest", +export const IotDefenderSettingsList: msRest.CompositeMapper = { + serializedName: "IotDefenderSettingsList", type: { name: "Composite", - className: "AdaptiveNetworkHardeningEnforceRequest", + className: "IotDefenderSettingsList", modelProperties: { - rules: { - required: true, - serializedName: "rules", + value: { + readOnly: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Rule" - } - } - } - }, - networkSecurityGroups: { - required: true, - serializedName: "networkSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" + className: "IotDefenderSettingsModel" } } } @@ -4227,29 +7215,28 @@ export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { } }; -export const ConnectedResource: msRest.CompositeMapper = { - serializedName: "ConnectedResource", +export const PackageDownloadInfo: msRest.CompositeMapper = { + serializedName: "PackageDownloadInfo", type: { name: "Composite", - className: "ConnectedResource", + className: "PackageDownloadInfo", modelProperties: { - connectedResourceId: { + version: { readOnly: true, - serializedName: "connectedResourceId", + serializedName: "version", type: { name: "String" } }, - tcpPorts: { - readOnly: true, - serializedName: "tcpPorts", + link: { + serializedName: "link", type: { name: "String" } }, - udpPorts: { + versionKind: { readOnly: true, - serializedName: "udpPorts", + serializedName: "versionKind", type: { name: "String" } @@ -4258,99 +7245,65 @@ export const ConnectedResource: msRest.CompositeMapper = { } }; -export const ConnectableResource: msRest.CompositeMapper = { - serializedName: "ConnectableResource", +export const UpgradePackageDownloadInfo: msRest.CompositeMapper = { + serializedName: "UpgradePackageDownloadInfo", type: { name: "Composite", - className: "ConnectableResource", + className: "UpgradePackageDownloadInfo", modelProperties: { - id: { + ...PackageDownloadInfo.type.modelProperties, + fromVersion: { readOnly: true, - serializedName: "id", + serializedName: "fromVersion", type: { name: "String" } - }, - inboundConnectedResources: { + } + } + } +}; + +export const PackageDownloadsSensorFullOvf: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor_full_ovf", + type: { + name: "Composite", + className: "PackageDownloadsSensorFullOvf", + modelProperties: { + enterprise: { readOnly: true, - serializedName: "inboundConnectedResources", + serializedName: "enterprise", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectedResource" + className: "PackageDownloadInfo" } } } }, - outboundConnectedResources: { + medium: { readOnly: true, - serializedName: "outboundConnectedResources", + serializedName: "medium", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectedResource" + className: "PackageDownloadInfo" } } } - } - } - } -}; - -export const AllowedConnectionsResource: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsResource", - type: { - name: "Composite", - className: "AllowedConnectionsResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - calculatedDateTime: { + line: { readOnly: true, - serializedName: "properties.calculatedDateTime", - type: { - name: "DateTime" - } - }, - connectableResources: { - readOnly: true, - serializedName: "properties.connectableResources", + serializedName: "line", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectableResource" + className: "PackageDownloadInfo" } } } @@ -4359,110 +7312,120 @@ export const AllowedConnectionsResource: msRest.CompositeMapper = { } }; -export const TopologySingleResourceParent: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceParent", +export const PackageDownloadsSensorFull: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor_full", type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "PackageDownloadsSensorFull", modelProperties: { - resourceId: { + iso: { readOnly: true, - serializedName: "resourceId", + serializedName: "iso", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } + } + }, + ovf: { + serializedName: "ovf", + type: { + name: "Composite", + className: "PackageDownloadsSensorFullOvf" } } } } }; -export const TopologySingleResourceChild: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceChild", +export const PackageDownloadsSensor: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor", type: { name: "Composite", - className: "TopologySingleResourceChild", + className: "PackageDownloadsSensor", modelProperties: { - resourceId: { + full: { readOnly: true, - serializedName: "resourceId", + serializedName: "full", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsSensorFull" + } + }, + upgrade: { + serializedName: "upgrade", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradePackageDownloadInfo" + } + } } } } } }; -export const TopologySingleResource: msRest.CompositeMapper = { - serializedName: "TopologySingleResource", +export const PackageDownloadsCentralManagerFullOvf: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager_full_ovf", type: { name: "Composite", - className: "TopologySingleResource", + className: "PackageDownloadsCentralManagerFullOvf", modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "severity", - type: { - name: "String" - } - }, - recommendationsExist: { - readOnly: true, - serializedName: "recommendationsExist", - type: { - name: "Boolean" - } - }, - networkZones: { - readOnly: true, - serializedName: "networkZones", - type: { - name: "String" - } - }, - topologyScore: { + enterprise: { readOnly: true, - serializedName: "topologyScore", + serializedName: "enterprise", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - location: { + enterpriseHighAvailability: { readOnly: true, - serializedName: "location", + serializedName: "enterpriseHighAvailability", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - parents: { + medium: { readOnly: true, - serializedName: "parents", + serializedName: "medium", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceParent" + className: "PackageDownloadInfo" } } } }, - children: { + mediumHighAvailability: { readOnly: true, - serializedName: "children", + serializedName: "mediumHighAvailability", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceChild" + className: "PackageDownloadInfo" } } } @@ -4471,56 +7434,60 @@ export const TopologySingleResource: msRest.CompositeMapper = { } }; -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", +export const PackageDownloadsCentralManagerFull: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager_full", type: { name: "Composite", - className: "TopologyResource", + className: "PackageDownloadsCentralManagerFull", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { + iso: { readOnly: true, - serializedName: "type", + serializedName: "iso", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - location: { + ovf: { readOnly: true, - serializedName: "location", + serializedName: "ovf", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManagerFullOvf" } - }, - calculatedDateTime: { + } + } + } +}; + +export const PackageDownloadsCentralManager: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager", + type: { + name: "Composite", + className: "PackageDownloadsCentralManager", + modelProperties: { + full: { readOnly: true, - serializedName: "properties.calculatedDateTime", + serializedName: "full", type: { - name: "DateTime" + name: "Composite", + className: "PackageDownloadsCentralManagerFull" } }, - topologyResources: { + upgrade: { readOnly: true, - serializedName: "properties.topologyResources", + serializedName: "upgrade", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResource" + className: "UpgradePackageDownloadInfo" } } } @@ -4529,173 +7496,191 @@ export const TopologyResource: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPortRule: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPortRule", +export const PackageDownloads: msRest.CompositeMapper = { + serializedName: "PackageDownloads", type: { - name: "Composite", - className: "JitNetworkAccessPortRule", - modelProperties: { - number: { - required: true, - serializedName: "number", + name: "Composite", + className: "PackageDownloads", + modelProperties: { + sensor: { + readOnly: true, + serializedName: "sensor", type: { - name: "Number" + name: "Composite", + className: "PackageDownloadsSensor" } }, - protocol: { - required: true, - serializedName: "protocol", + centralManager: { + readOnly: true, + serializedName: "centralManager", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManager" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + threatIntelligence: { + readOnly: true, + serializedName: "threatIntelligence", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + snmp: { + readOnly: true, + serializedName: "snmp", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PackageDownloadInfo" } } } }, - maxRequestAccessDuration: { - required: true, - serializedName: "maxRequestAccessDuration", - type: { - name: "String" - } - } - } - } -}; - -export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", + wmiTool: { + readOnly: true, + serializedName: "wmiTool", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - ports: { - required: true, - serializedName: "ports", + authorizedDevicesImportTemplate: { + readOnly: true, + serializedName: "authorizedDevicesImportTemplate", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessPortRule" + className: "PackageDownloadInfo" } } } }, - publicIpAddress: { - serializedName: "publicIpAddress", + deviceInformationUpdateImportTemplate: { + readOnly: true, + serializedName: "deviceInformationUpdateImportTemplate", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } } } } }; -export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestPort", +export const IotSensorsModel: msRest.CompositeMapper = { + serializedName: "IotSensorsModel", type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "IotSensorsModel", modelProperties: { - number: { - required: true, - serializedName: "number", + ...Resource.type.modelProperties, + connectivityTime: { + readOnly: true, + serializedName: "properties.connectivityTime", type: { - name: "Number" + name: "String" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", type: { name: "String" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + dynamicLearning: { + readOnly: true, + serializedName: "properties.dynamicLearning", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + learningMode: { + readOnly: true, + serializedName: "properties.learningMode", type: { - name: "DateTime" + name: "Boolean" } }, - status: { - required: true, - serializedName: "status", + sensorStatus: { + readOnly: true, + serializedName: "properties.sensorStatus", type: { name: "String" } }, - statusReason: { - required: true, - serializedName: "statusReason", + sensorVersion: { + readOnly: true, + serializedName: "properties.sensorVersion", type: { name: "String" } }, - mappedPort: { - serializedName: "mappedPort", + tiAutomaticUpdates: { + serializedName: "properties.tiAutomaticUpdates", type: { - name: "Number" + name: "Boolean" + } + }, + tiStatus: { + readOnly: true, + serializedName: "properties.tiStatus", + type: { + name: "String" + } + }, + tiVersion: { + readOnly: true, + serializedName: "properties.tiVersion", + type: { + name: "String" + } + }, + zone: { + serializedName: "properties.zone", + type: { + name: "String" } } } } }; -export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestVirtualMachine", +export const IotSensorsList: msRest.CompositeMapper = { + serializedName: "IotSensorsList", type: { name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", + className: "IotSensorsList", modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - ports: { - required: true, - serializedName: "ports", + value: { + readOnly: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequestPort" + className: "IotSensorsModel" } } } @@ -4704,41 +7689,14 @@ export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { } }; -export const JitNetworkAccessRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequest", +export const ResetPasswordInput: msRest.CompositeMapper = { + serializedName: "ResetPasswordInput", type: { name: "Composite", - className: "JitNetworkAccessRequest", + className: "ResetPasswordInput", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine" - } - } - } - }, - startTimeUtc: { - required: true, - serializedName: "startTimeUtc", - type: { - name: "DateTime" - } - }, - requestor: { - required: true, - serializedName: "requestor", - type: { - name: "String" - } - }, - justification: { - serializedName: "justification", + applianceId: { + serializedName: "applianceId", type: { name: "String" } @@ -4747,134 +7705,117 @@ export const JitNetworkAccessRequest: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPolicy: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicy", +export const IpAddress: msRest.CompositeMapper = { + serializedName: "IpAddress", type: { name: "Composite", - className: "JitNetworkAccessPolicy", + className: "IpAddress", modelProperties: { - id: { + v4Address: { readOnly: true, - serializedName: "id", + serializedName: "v4Address", type: { name: "String" } }, - name: { + detectionTime: { readOnly: true, - serializedName: "name", + serializedName: "detectionTime", type: { - name: "String" + name: "DateTime" } }, - type: { + subnetCidr: { readOnly: true, - serializedName: "type", + serializedName: "subnetCidr", type: { name: "String" } }, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - location: { + fqdn: { readOnly: true, - serializedName: "location", + serializedName: "fqdn", type: { name: "String" } }, - virtualMachines: { - required: true, - serializedName: "properties.virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine" - } - } - } - }, - requests: { - serializedName: "properties.requests", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequest" - } - } - } - }, - provisioningState: { + fqdnLastLookupTime: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "fqdnLastLookupTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiatePort", +export const MacAddress: msRest.CompositeMapper = { + serializedName: "MacAddress", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "MacAddress", modelProperties: { - number: { - required: true, - serializedName: "number", + address: { + readOnly: true, + serializedName: "address", type: { - name: "Number" + name: "String" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + detectionTime: { + readOnly: true, + serializedName: "detectionTime", + type: { + name: "DateTime" + } + }, + significance: { + readOnly: true, + serializedName: "significance", type: { name: "String" } }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + relationToIpStatus: { + readOnly: true, + serializedName: "relationToIpStatus", type: { - name: "DateTime" + name: "String" } } } } }; -export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", +export const NetworkInterface: msRest.CompositeMapper = { + serializedName: "NetworkInterface", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", + className: "NetworkInterface", modelProperties: { - id: { - required: true, - serializedName: "id", + ipAddress: { + serializedName: "ipAddress", type: { - name: "String" + name: "Composite", + className: "IpAddress" + } + }, + macAddress: { + serializedName: "macAddress", + type: { + name: "Composite", + className: "MacAddress" } }, - ports: { - required: true, - serializedName: "ports", + vlans: { + readOnly: true, + serializedName: "vlans", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort" + name: "String" } } } @@ -4883,27 +7824,21 @@ export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMappe } }; -export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateRequest", +export const Protocol1: msRest.CompositeMapper = { + serializedName: "Protocol", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", + className: "Protocol1", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine" - } - } + name: "String" } }, - justification: { - serializedName: "justification", + identifiers: { + serializedName: "identifiers", type: { name: "String" } @@ -4912,64 +7847,81 @@ export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { } }; -export const DiscoveredSecuritySolution: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolution", +export const Firmware: msRest.CompositeMapper = { + serializedName: "Firmware", type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "Firmware", modelProperties: { - id: { + moduleAddress: { readOnly: true, - serializedName: "id", + serializedName: "moduleAddress", type: { name: "String" } }, - name: { + rack: { readOnly: true, - serializedName: "name", + serializedName: "rack", type: { name: "String" } }, - type: { + slot: { readOnly: true, - serializedName: "type", + serializedName: "slot", type: { name: "String" } }, - location: { + serial: { readOnly: true, - serializedName: "location", + serializedName: "serial", type: { name: "String" } }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", + model: { + readOnly: true, + serializedName: "model", type: { name: "String" } }, - offer: { - required: true, - serializedName: "properties.offer", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - publisher: { - required: true, - serializedName: "properties.publisher", + additionalData: { + readOnly: true, + serializedName: "additionalData", + type: { + name: "Object" + } + } + } + } +}; + +export const Sensor: msRest.CompositeMapper = { + serializedName: "Sensor", + type: { + name: "Composite", + className: "Sensor", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - sku: { - required: true, - serializedName: "properties.sku", + zone: { + readOnly: true, + serializedName: "zone", type: { name: "String" } @@ -4978,223 +7930,219 @@ export const DiscoveredSecuritySolution: msRest.CompositeMapper = { } }; -export const ExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolution", +export const Site: msRest.CompositeMapper = { + serializedName: "Site", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "ExternalSecuritySolution", - className: "ExternalSecuritySolution", + className: "Site", modelProperties: { - id: { + displayName: { readOnly: true, - serializedName: "id", + serializedName: "displayName", + type: { + name: "String" + } + } + } + } +}; + +export const Device: msRest.CompositeMapper = { + serializedName: "Device", + type: { + name: "Composite", + className: "Device", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + deviceType: { + serializedName: "properties.deviceType", type: { name: "String" } }, - type: { + sourceName: { readOnly: true, - serializedName: "type", + serializedName: "properties.sourceName", type: { name: "String" } }, - location: { + networkInterfaces: { readOnly: true, - serializedName: "location", + serializedName: "properties.networkInterfaces", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } } }, - kind: { - required: true, - serializedName: "kind", + vendor: { + readOnly: true, + serializedName: "properties.vendor", type: { name: "String" } - } - } - } -}; - -export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionProperties", - type: { - name: "Composite", - className: "ExternalSecuritySolutionProperties", - modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", + }, + osName: { + serializedName: "properties.osName", type: { name: "String" } }, - deviceType: { - serializedName: "deviceType", + protocols: { + readOnly: true, + serializedName: "properties.protocols", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Protocol1" + } + } } }, - workspace: { - serializedName: "workspace", + lastActiveTime: { + readOnly: true, + serializedName: "properties.lastActiveTime", type: { - name: "Composite", - className: "ConnectedWorkspace" + name: "DateTime" } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const CefSolutionProperties: msRest.CompositeMapper = { - serializedName: "CefSolutionProperties", - type: { - name: "Composite", - className: "CefSolutionProperties", - modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - hostname: { - serializedName: "hostname", + }, + lastUpdateTime: { + readOnly: true, + serializedName: "properties.lastUpdateTime", + type: { + name: "DateTime" + } + }, + managementState: { + readOnly: true, + serializedName: "properties.managementState", type: { name: "String" } }, - agent: { - serializedName: "agent", + authorizationState: { + serializedName: "properties.authorizationState", + defaultValue: 'Unauthorized', type: { name: "String" } }, - lastEventReceived: { - serializedName: "lastEventReceived", + deviceCriticality: { + serializedName: "properties.deviceCriticality", + defaultValue: 'Standard', type: { name: "String" } - } - }, - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } -}; - -export const CefExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "CEF", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "CefExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", + }, + purdueLevel: { + serializedName: "properties.purdueLevel", + defaultValue: 'ProcessControl', type: { - name: "Composite", - className: "CefSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + name: "String" } - } - } - } -}; - -export const AtaSolutionProperties: msRest.CompositeMapper = { - serializedName: "AtaSolutionProperties", - type: { - name: "Composite", - className: "AtaSolutionProperties", - modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - lastEventReceived: { - serializedName: "lastEventReceived", + }, + notes: { + serializedName: "properties.notes", type: { name: "String" } - } - }, - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } -}; - -export const AtaExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ATA", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AtaExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", + }, + firmwares: { + readOnly: true, + serializedName: "properties.firmwares", type: { - name: "Composite", - className: "AtaSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Firmware" + } + } } - } - } - } -}; - -export const ConnectedWorkspace: msRest.CompositeMapper = { - serializedName: "ConnectedWorkspace", - type: { - name: "Composite", - className: "ConnectedWorkspace", - modelProperties: { - id: { - serializedName: "id", + }, + discoveryTime: { + readOnly: true, + serializedName: "properties.discoveryTime", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const AadSolutionProperties: msRest.CompositeMapper = { - serializedName: "AadSolutionProperties", - type: { - name: "Composite", - className: "AadSolutionProperties", - modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", + }, + programmingState: { + readOnly: true, + serializedName: "properties.programmingState", type: { name: "String" } }, - deviceType: { - serializedName: "deviceType", + lastProgrammingTime: { + readOnly: true, + serializedName: "properties.lastProgrammingTime", + type: { + name: "DateTime" + } + }, + scanningFunctionality: { + readOnly: true, + serializedName: "properties.scanningFunctionality", type: { name: "String" } }, - workspace: { - serializedName: "workspace", + lastScanTime: { + readOnly: true, + serializedName: "properties.lastScanTime", + type: { + name: "DateTime" + } + }, + riskScore: { + readOnly: true, + serializedName: "properties.riskScore", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + sensors: { + readOnly: true, + serializedName: "properties.sensors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Sensor" + } + } + } + }, + site: { + readOnly: true, + serializedName: "properties.site", type: { name: "Composite", - className: "ConnectedWorkspace" + className: "Site" } }, - connectivityState: { - serializedName: "connectivityState", + deviceStatus: { + readOnly: true, + serializedName: "properties.deviceStatus", type: { name: "String" } @@ -5203,292 +8151,292 @@ export const AadSolutionProperties: msRest.CompositeMapper = { } }; -export const AadExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "AAD", +export const OnPremiseIotSensor: msRest.CompositeMapper = { + serializedName: "OnPremiseIotSensor", type: { name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AadExternalSecuritySolution", + className: "OnPremiseIotSensor", modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, + ...Resource.type.modelProperties, properties: { serializedName: "properties", type: { - name: "Composite", - className: "AadSolutionProperties" + name: "Object" } } } } }; -export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionKind", +export const OnPremiseIotSensorsList: msRest.CompositeMapper = { + serializedName: "OnPremiseIotSensorsList", type: { name: "Composite", - className: "ExternalSecuritySolutionKind1", + className: "OnPremiseIotSensorsList", modelProperties: { - kind: { - serializedName: "kind", + value: { + readOnly: true, + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnPremiseIotSensor" + } + } } } } } }; -export const AadConnectivityState1: msRest.CompositeMapper = { - serializedName: "AadConnectivityState", +export const IotSitesModel: msRest.CompositeMapper = { + serializedName: "IotSitesModel", type: { name: "Composite", - className: "AadConnectivityState1", + className: "IotSitesModel", modelProperties: { - connectivityState: { - serializedName: "connectivityState", + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", type: { name: "String" } + }, + tags: { + serializedName: "properties.tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } }; -export const SecureScoreItem: msRest.CompositeMapper = { - serializedName: "SecureScoreItem", +export const IotSitesList: msRest.CompositeMapper = { + serializedName: "IotSitesList", type: { name: "Composite", - className: "SecureScoreItem", + className: "IotSitesList", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - max: { - readOnly: true, - serializedName: "properties.score.max", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { + value: { readOnly: true, - serializedName: "properties.score.current", - constraints: { - InclusiveMinimum: 0 - }, + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotSitesModel" + } + } } } } } }; -export const SecureScoreControlScore: msRest.CompositeMapper = { - serializedName: "SecureScoreControlScore", +export const IotAlertModel: msRest.CompositeMapper = { + serializedName: "IotAlertModel", type: { name: "Composite", - className: "SecureScoreControlScore", + className: "IotAlertModel", modelProperties: { - max: { + ...Resource.type.modelProperties, + systemAlertId: { readOnly: true, - serializedName: "max", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, + serializedName: "properties.systemAlertId", type: { - name: "Number" + name: "String" } }, - current: { + compromisedEntity: { readOnly: true, - serializedName: "current", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, + serializedName: "properties.compromisedEntity", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionSource", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionSource", - modelProperties: { - sourceType: { - serializedName: "sourceType", + }, + alertType: { + readOnly: true, + serializedName: "properties.alertType", type: { name: "String" } - } - } - } -}; - -export const AzureResourceLink: msRest.CompositeMapper = { - serializedName: "AzureResourceLink", - type: { - name: "Composite", - className: "AzureResourceLink", - modelProperties: { - id: { + }, + startTimeUtc: { readOnly: true, - serializedName: "id", + serializedName: "properties.startTimeUtc", + type: { + name: "String" + } + }, + endTimeUtc: { + readOnly: true, + serializedName: "properties.endTimeUtc", type: { name: "String" } + }, + entities: { + serializedName: "properties.entities", + type: { + name: "Sequence", + element: { + type: { + name: "Object" + } + } + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Object" + } } } } }; -export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionItem", +export const IotRecommendationModel: msRest.CompositeMapper = { + serializedName: "IotRecommendationModel", type: { name: "Composite", - className: "SecureScoreControlDefinitionItem", + className: "IotRecommendationModel", modelProperties: { ...Resource.type.modelProperties, - displayName: { + deviceId: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "properties.deviceId", type: { name: "String" } }, - description: { + recommendationType: { readOnly: true, - serializedName: "properties.description", - constraints: { - MaxLength: 256 - }, + serializedName: "properties.recommendationType", type: { name: "String" } }, - maxScore: { + discoveredTimeUtc: { readOnly: true, - serializedName: "properties.maxScore", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, + serializedName: "properties.discoveredTimeUtc", type: { - name: "Number" + name: "String" } }, - source: { - readOnly: true, - serializedName: "properties.source", + recommendationAdditionalData: { + serializedName: "properties.recommendationAdditionalData", type: { - name: "Composite", - className: "SecureScoreControlDefinitionSource" + name: "Object" } - }, - assessmentDefinitions: { - readOnly: true, - serializedName: "properties.assessmentDefinitions", + } + } + } +}; + +export const ComplianceResultList: msRest.CompositeMapper = { + serializedName: "ComplianceResultList", + type: { + name: "Composite", + className: "ComplianceResultList", + modelProperties: { + value: { + required: true, + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureResourceLink" + className: "ComplianceResult" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const SecureScoreControlDetails: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDetails", +export const SettingsList: msRest.CompositeMapper = { + serializedName: "SettingsList", type: { name: "Composite", - className: "SecureScoreControlDetails", + className: "SettingsList", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - max: { - readOnly: true, - serializedName: "properties.score.max", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "properties.score.current", - constraints: { - InclusiveMinimum: 0 - }, + value: { + serializedName: "", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting" + } + } } }, - healthyResourceCount: { + nextLink: { readOnly: true, - serializedName: "properties.healthyResourceCount", + serializedName: "nextLink", type: { - name: "Number" + name: "String" } - }, - unhealthyResourceCount: { - readOnly: true, - serializedName: "properties.unhealthyResourceCount", + } + } + } +}; + +export const DeviceSecurityGroupList: msRest.CompositeMapper = { + serializedName: "DeviceSecurityGroupList", + type: { + name: "Composite", + className: "DeviceSecurityGroupList", + modelProperties: { + value: { + serializedName: "", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeviceSecurityGroup" + } + } } }, - notApplicableResourceCount: { + nextLink: { readOnly: true, - serializedName: "properties.notApplicableResourceCount", - type: { - name: "Number" - } - }, - definition: { - serializedName: "properties.definition", + serializedName: "nextLink", type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem" + name: "String" } } } } }; -export const ComplianceResultList: msRest.CompositeMapper = { - serializedName: "ComplianceResultList", +export const IoTSecuritySolutionsList: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionsList", type: { name: "Composite", - className: "ComplianceResultList", + className: "IoTSecuritySolutionsList", modelProperties: { value: { required: true, @@ -5498,7 +8446,7 @@ export const ComplianceResultList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ComplianceResult" + className: "IoTSecuritySolutionModel" } } } @@ -5514,20 +8462,21 @@ export const ComplianceResultList: msRest.CompositeMapper = { } }; -export const AlertList: msRest.CompositeMapper = { - serializedName: "AlertList", +export const IoTSecurityAggregatedAlertList: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedAlertList", type: { name: "Composite", - className: "AlertList", + className: "IoTSecurityAggregatedAlertList", modelProperties: { value: { + required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Alert" + className: "IoTSecurityAggregatedAlert" } } } @@ -5543,20 +8492,21 @@ export const AlertList: msRest.CompositeMapper = { } }; -export const SettingsList: msRest.CompositeMapper = { - serializedName: "SettingsList", +export const IoTSecurityAggregatedRecommendationList: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedRecommendationList", type: { name: "Composite", - className: "SettingsList", + className: "IoTSecurityAggregatedRecommendationList", modelProperties: { value: { + required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Setting" + className: "IoTSecurityAggregatedRecommendation" } } } @@ -5572,20 +8522,21 @@ export const SettingsList: msRest.CompositeMapper = { } }; -export const DeviceSecurityGroupList: msRest.CompositeMapper = { - serializedName: "DeviceSecurityGroupList", +export const IotAlertList: msRest.CompositeMapper = { + serializedName: "IotAlertList", type: { name: "Composite", - className: "DeviceSecurityGroupList", + className: "IotAlertList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeviceSecurityGroup" + className: "IotAlert" } } } @@ -5596,26 +8547,33 @@ export const DeviceSecurityGroupList: msRest.CompositeMapper = { type: { name: "String" } + }, + totalCount: { + readOnly: true, + serializedName: "totalCount", + type: { + name: "Number" + } } } } }; -export const IoTSecuritySolutionsList: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionsList", +export const IotAlertListModel: msRest.CompositeMapper = { + serializedName: "IotAlertListModel", type: { name: "Composite", - className: "IoTSecuritySolutionsList", + className: "IotAlertListModel", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecuritySolutionModel" + className: "IotAlertModel" } } } @@ -5631,21 +8589,21 @@ export const IoTSecuritySolutionsList: msRest.CompositeMapper = { } }; -export const IoTSecurityAggregatedAlertList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlertList", +export const IotRecommendationList: msRest.CompositeMapper = { + serializedName: "IotRecommendationList", type: { name: "Composite", - className: "IoTSecurityAggregatedAlertList", + className: "IotRecommendationList", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedAlert" + className: "IotRecommendation" } } } @@ -5656,26 +8614,33 @@ export const IoTSecurityAggregatedAlertList: msRest.CompositeMapper = { type: { name: "String" } + }, + totalCount: { + readOnly: true, + serializedName: "totalCount", + type: { + name: "Number" + } } } } }; -export const IoTSecurityAggregatedRecommendationList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedRecommendationList", +export const IotRecommendationListModel: msRest.CompositeMapper = { + serializedName: "IotRecommendationListModel", type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendationList", + className: "IotRecommendationListModel", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendation" + className: "IotRecommendationModel" } } } @@ -6255,6 +9220,35 @@ export const TopologyList: msRest.CompositeMapper = { } }; +export const AlertList: msRest.CompositeMapper = { + serializedName: "AlertList", + type: { + name: "Composite", + className: "AlertList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Alert" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const JitNetworkAccessPoliciesList: msRest.CompositeMapper = { serializedName: "JitNetworkAccessPoliciesList", type: { @@ -6432,10 +9426,97 @@ export const SecureScoreControlDefinitionList: msRest.CompositeMapper = { } }; +export const SecuritySolutionList: msRest.CompositeMapper = { + serializedName: "SecuritySolutionList", + type: { + name: "Composite", + className: "SecuritySolutionList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolution" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectorSettingList: msRest.CompositeMapper = { + serializedName: "ConnectorSettingList", + type: { + name: "Composite", + className: "ConnectorSettingList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectorSetting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DeviceList: msRest.CompositeMapper = { + serializedName: "DeviceList", + type: { + name: "Composite", + className: "DeviceList", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Device" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { - 'BaseResource.Setting' : Setting, - 'BaseResource.DataExportSettings' : DataExportSettings, - 'BaseResource.SettingResource' : SettingResource, + 'Setting' : Setting, + 'Setting.DataExportSettings' : DataExportSettings, 'CustomAlertRule.ThresholdCustomAlertRule' : ThresholdCustomAlertRule, 'CustomAlertRule.TimeWindowCustomAlertRule' : TimeWindowCustomAlertRule, 'CustomAlertRule.AllowlistCustomAlertRule' : AllowlistCustomAlertRule, @@ -6443,6 +9524,7 @@ export const discriminators = { 'CustomAlertRule' : CustomAlertRule, 'CustomAlertRule.ListCustomAlertRule' : ListCustomAlertRule, 'CustomAlertRule.ConnectionToIpNotAllowed' : ConnectionToIpNotAllowed, + 'CustomAlertRule.ConnectionFromIpNotAllowed' : ConnectionFromIpNotAllowed, 'CustomAlertRule.LocalUserNotAllowed' : LocalUserNotAllowed, 'CustomAlertRule.ProcessNotAllowed' : ProcessNotAllowed, 'CustomAlertRule.ActiveConnectionsNotInAllowedRange' : ActiveConnectionsNotInAllowedRange, @@ -6466,15 +9548,23 @@ export const discriminators = { 'AdditionalData.SqlServerVulnerability' : SqlServerVulnerabilityProperties, 'AdditionalData.ContainerRegistryVulnerability' : ContainerRegistryVulnerabilityProperties, 'AdditionalData.ServerVulnerabilityAssessment' : ServerVulnerabilityProperties, + 'ResourceDetails.OnPremiseSql' : OnPremiseSqlResourceDetails, 'ResourceDetails.OnPremise' : OnPremiseResourceDetails, 'ResourceDetails.Azure' : AzureResourceDetails, 'AutomationAction' : AutomationAction, 'AutomationAction.LogicApp' : AutomationActionLogicApp, 'AutomationAction.EventHub' : AutomationActionEventHub, 'AutomationAction.Workspace' : AutomationActionWorkspace, + 'ResourceIdentifier' : ResourceIdentifier, + 'ResourceIdentifier.AzureResource' : AzureResourceIdentifier, + 'ResourceIdentifier.LogAnalytics' : LogAnalyticsIdentifier, 'ExternalSecuritySolution' : ExternalSecuritySolution, 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, - 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution + 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution, + 'AuthenticationDetailsProperties' : AuthenticationDetailsProperties, + 'AuthenticationDetailsProperties.awsCreds' : AwsCredsAuthenticationDetailsProperties, + 'AuthenticationDetailsProperties.awsAssumeRole' : AwAssumeRoleAuthenticationDetailsProperties, + 'AuthenticationDetailsProperties.gcpCredentials' : GcpCredentialsDetailsProperties }; diff --git a/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts b/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts new file mode 100644 index 000000000000..e93bcf7bd3f9 --- /dev/null +++ b/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseIotSensorsList, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + ResetPasswordInput, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/operationsMappers.ts b/sdk/security/arm-security/src/models/operationsMappers.ts index 786d9130f59f..583dd59bc975 100644 --- a/sdk/security/arm-security/src/models/operationsMappers.ts +++ b/sdk/security/arm-security/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index f9b159e02557..149340849bcc 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -82,7 +81,19 @@ export const alertsSuppressionRuleName: msRest.OperationURLParameter = { } } }; -export const alertType: msRest.OperationQueryParameter = { +export const alertType0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "alertType" + ], + mapper: { + serializedName: "alertType", + type: { + name: "String" + } + } +}; +export const alertType1: msRest.OperationQueryParameter = { parameterPath: [ "options", "alertType" @@ -118,6 +129,16 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const apiVersion10: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; export const apiVersion2: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -148,7 +169,7 @@ export const apiVersion4: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2015-06-01-preview', + defaultValue: '2020-08-06-preview', type: { name: "String" } @@ -160,7 +181,7 @@ export const apiVersion5: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-08-01-preview', + defaultValue: '2015-06-01-preview', type: { name: "String" } @@ -172,7 +193,7 @@ export const apiVersion6: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-01-01-preview', + defaultValue: '2017-08-01-preview', type: { name: "String" } @@ -184,13 +205,25 @@ export const apiVersion7: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2020-01-01', + defaultValue: '2019-01-01-preview', type: { name: "String" } } }; export const apiVersion8: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2020-01-01', + type: { + name: "String" + } + } +}; +export const apiVersion9: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, @@ -232,18 +265,6 @@ export const assessmentName: msRest.OperationURLParameter = { } } }; -export const autoDismissRuleName: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "autoDismissRuleName" - ], - mapper: { - serializedName: "autoDismissRuleName", - type: { - name: "String" - } - } -}; export const automationName: msRest.OperationURLParameter = { parameterPath: "automationName", mapper: { @@ -274,6 +295,18 @@ export const complianceResultName: msRest.OperationURLParameter = { } } }; +export const compromisedEntity: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "compromisedEntity" + ], + mapper: { + serializedName: "compromisedEntity", + type: { + name: "String" + } + } +}; export const connectionType: msRest.OperationURLParameter = { parameterPath: "connectionType", mapper: { @@ -284,6 +317,50 @@ export const connectionType: msRest.OperationURLParameter = { } } }; +export const connectorName: msRest.OperationURLParameter = { + parameterPath: "connectorName", + mapper: { + required: true, + serializedName: "connectorName", + type: { + name: "String" + } + } +}; +export const deviceId0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deviceId" + ], + mapper: { + serializedName: "deviceId", + type: { + name: "String" + } + } +}; +export const deviceId1: msRest.OperationURLParameter = { + parameterPath: "deviceId", + mapper: { + required: true, + serializedName: "deviceId", + type: { + name: "String" + } + } +}; +export const deviceManagementType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deviceManagementType" + ], + mapper: { + serializedName: "deviceManagementType", + type: { + name: "String" + } + } +}; export const deviceSecurityGroupName: msRest.OperationURLParameter = { parameterPath: "deviceSecurityGroupName", mapper: { @@ -370,6 +447,56 @@ export const informationProtectionPolicyName: msRest.OperationURLParameter = { } } }; +export const iotAlertId: msRest.OperationURLParameter = { + parameterPath: "iotAlertId", + mapper: { + required: true, + serializedName: "iotAlertId", + type: { + name: "String" + } + } +}; +export const iotAlertTypeName: msRest.OperationURLParameter = { + parameterPath: "iotAlertTypeName", + mapper: { + required: true, + serializedName: "iotAlertTypeName", + type: { + name: "String" + } + } +}; +export const iotRecommendationId: msRest.OperationURLParameter = { + parameterPath: "iotRecommendationId", + mapper: { + required: true, + serializedName: "iotRecommendationId", + type: { + name: "String" + } + } +}; +export const iotRecommendationTypeName: msRest.OperationURLParameter = { + parameterPath: "iotRecommendationTypeName", + mapper: { + required: true, + serializedName: "iotRecommendationTypeName", + type: { + name: "String" + } + } +}; +export const iotSensorName: msRest.OperationURLParameter = { + parameterPath: "iotSensorName", + mapper: { + required: true, + serializedName: "iotSensorName", + type: { + name: "String" + } + } +}; export const jitNetworkAccessPolicyInitiateType: msRest.OperationURLParameter = { parameterPath: "jitNetworkAccessPolicyInitiateType", mapper: { @@ -392,6 +519,42 @@ export const jitNetworkAccessPolicyName: msRest.OperationURLParameter = { } } }; +export const limit: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "limit" + ], + mapper: { + serializedName: "$limit", + type: { + name: "Number" + } + } +}; +export const maxStartTimeUtc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "maxStartTimeUtc" + ], + mapper: { + serializedName: "startTimeUtc<", + type: { + name: "String" + } + } +}; +export const minStartTimeUtc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "minStartTimeUtc" + ], + mapper: { + serializedName: "startTimeUtc>", + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -403,6 +566,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const onPremiseIotSensorName: msRest.OperationURLParameter = { + parameterPath: "onPremiseIotSensorName", + mapper: { + required: true, + serializedName: "onPremiseIotSensorName", + type: { + name: "String" + } + } +}; export const pricingName: msRest.OperationURLParameter = { parameterPath: "pricingName", mapper: { @@ -413,6 +586,18 @@ export const pricingName: msRest.OperationURLParameter = { } } }; +export const recommendationType: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "recommendationType" + ], + mapper: { + serializedName: "recommendationType", + type: { + name: "String" + } + } +}; export const regulatoryComplianceAssessmentName: msRest.OperationURLParameter = { parameterPath: "regulatoryComplianceAssessmentName", mapper: { @@ -466,7 +651,8 @@ export const resourceId: msRest.OperationURLParameter = { type: { name: "String" } - } + }, + skipEncoding: true }; export const resourceName: msRest.OperationURLParameter = { parameterPath: "resourceName", @@ -498,6 +684,36 @@ export const resourceType: msRest.OperationURLParameter = { } } }; +export const ruleId: msRest.OperationURLParameter = { + parameterPath: "ruleId", + mapper: { + required: true, + serializedName: "ruleId", + type: { + name: "String" + } + } +}; +export const scanId: msRest.OperationURLParameter = { + parameterPath: "scanId", + mapper: { + required: true, + serializedName: "scanId", + type: { + name: "String" + } + } +}; +export const scanResultId: msRest.OperationURLParameter = { + parameterPath: "scanResultId", + mapper: { + required: true, + serializedName: "scanResultId", + type: { + name: "String" + } + } +}; export const scope: msRest.OperationURLParameter = { parameterPath: "scope", mapper: { @@ -506,7 +722,8 @@ export const scope: msRest.OperationURLParameter = { type: { name: "String" } - } + }, + skipEncoding: true }; export const secureScoreName: msRest.OperationURLParameter = { parameterPath: "secureScoreName", @@ -528,13 +745,11 @@ export const securityContactName: msRest.OperationURLParameter = { } } }; -export const select: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "select" - ], +export const securitySolutionName: msRest.OperationURLParameter = { + parameterPath: "securitySolutionName", mapper: { - serializedName: "$select", + required: true, + serializedName: "securitySolutionName", type: { name: "String" } @@ -574,6 +789,18 @@ export const settingName1: msRest.OperationURLParameter = { } } }; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; export const solutionName: msRest.OperationURLParameter = { parameterPath: "solutionName", mapper: { @@ -661,6 +888,16 @@ export const topologyResourceName: msRest.OperationURLParameter = { } } }; +export const workspaceId: msRest.OperationQueryParameter = { + parameterPath: "workspaceId", + mapper: { + required: true, + serializedName: "workspaceId", + type: { + name: "String" + } + } +}; export const workspaceSettingName: msRest.OperationURLParameter = { parameterPath: "workspaceSettingName", mapper: { diff --git a/sdk/security/arm-security/src/models/pricingsMappers.ts b/sdk/security/arm-security/src/models/pricingsMappers.ts index 8c0b7e2f63d0..7c30e7ef5c10 100644 --- a/sdk/security/arm-security/src/models/pricingsMappers.ts +++ b/sdk/security/arm-security/src/models/pricingsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, PricingList, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts index e7b0eb8c1f54..72a6ea6a81fd 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceAssessmentList, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts index 4317808f4caa..6e800e2864f0 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceControlList, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts index 55f0fb2e32a0..0655cc036563 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,54 +22,93 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, RegulatoryComplianceStandardList, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts b/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts index be7137baa179..10cd117192cc 100644 --- a/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts +++ b/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionList, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts b/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts index 95ef07ed4ed6..f06de7275e51 100644 --- a/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts +++ b/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/secureScoresMappers.ts b/sdk/security/arm-security/src/models/secureScoresMappers.ts index fad75d0ee288..53fb3a440814 100644 --- a/sdk/security/arm-security/src/models/secureScoresMappers.ts +++ b/sdk/security/arm-security/src/models/secureScoresMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securityContactsMappers.ts b/sdk/security/arm-security/src/models/securityContactsMappers.ts index c55eb989a1e5..5c36e195cd2e 100644 --- a/sdk/security/arm-security/src/models/securityContactsMappers.ts +++ b/sdk/security/arm-security/src/models/securityContactsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securitySolutionsMappers.ts b/sdk/security/arm-security/src/models/securitySolutionsMappers.ts new file mode 100644 index 000000000000..fd2d20d72cfd --- /dev/null +++ b/sdk/security/arm-security/src/models/securitySolutionsMappers.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + SecuritySolution, + SecuritySolutionList +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts b/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts new file mode 100644 index 000000000000..67198c4e8267 --- /dev/null +++ b/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts @@ -0,0 +1,14 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + SecuritySolutionsReferenceData, + SecuritySolutionsReferenceDataList +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts b/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts index 6b1483809d9b..212a0b39703b 100644 --- a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts +++ b/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,11 +123,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentsList, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/settingsMappers.ts b/sdk/security/arm-security/src/models/settingsMappers.ts index 9f1dbb8616d5..54c4c3346328 100644 --- a/sdk/security/arm-security/src/models/settingsMappers.ts +++ b/sdk/security/arm-security/src/models/settingsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,11 +123,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, SettingsList, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts new file mode 100644 index 000000000000..8d6db8315b65 --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsInput, + RuleResultsProperties, + RulesResults, + RulesResultsInput, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts new file mode 100644 index 000000000000..cfb84e9f6aef --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + ScanResults, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts new file mode 100644 index 000000000000..c0d961cd384b --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActiveConnectionsNotInAllowedRange, + AdaptiveNetworkHardening, + AdditionalData, + AdvancedThreatProtectionSetting, + Alert, + AlertEntity, + AlertsSuppressionRule, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, + IoTSecurityAlertedDevice, + IoTSecurityDeviceAlert, + IoTSecurityDeviceRecommendation, + IoTSecuritySolutionAnalyticsModel, + IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, + IoTSeverityMetrics, + IotSitesModel, + IpAddress, + ListCustomAlertRule, + LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, + MqttC2DMessagesNotInAllowedRange, + MqttC2DRejectedMessagesNotInAllowedRange, + MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, + OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, + Pricing, + ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, + QueuePurgesNotInAllowedRange, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Remediation, + Resource, + ResourceDetails, + ResourceIdentifier, + Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, + Scans, + ScopeElement, + SecureScoreControlDefinitionItem, + SecureScoreControlDefinitionSource, + SecureScoreControlDetails, + SecureScoreItem, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataPartnerData, + SecurityAssessmentMetadataProperties, + SecurityAssessmentPartnerData, + SecurityContact, + SecuritySubAssessment, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Sensor, + ServerVulnerabilityAssessment, + ServerVulnerabilityProperties, + ServicePrincipalProperties, + Setting, + Site, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + TimeWindowCustomAlertRule, + TwinUpdatesNotInAllowedRange, + UnauthorizedOperationsNotInAllowedRange, + VaRule, + VendorReference, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/subAssessmentsMappers.ts b/sdk/security/arm-security/src/models/subAssessmentsMappers.ts index fb7d8ae47902..6da2f1178cc0 100644 --- a/sdk/security/arm-security/src/models/subAssessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/subAssessmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/tasksMappers.ts b/sdk/security/arm-security/src/models/tasksMappers.ts index b286ef7f5251..96f44957a922 100644 --- a/sdk/security/arm-security/src/models/tasksMappers.ts +++ b/sdk/security/arm-security/src/models/tasksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -86,10 +124,12 @@ export { SecurityTaskList, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +137,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/topologyMappers.ts b/sdk/security/arm-security/src/models/topologyMappers.ts index 80804dc1264b..e4d48be2f7d0 100644 --- a/sdk/security/arm-security/src/models/topologyMappers.ts +++ b/sdk/security/arm-security/src/models/topologyMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts index 7073a31098ee..6686b4aad2b2 100644 --- a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -13,7 +13,6 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AllowlistCustomAlertRule, @@ -23,53 +22,92 @@ export { AscLocation, AssessmentLinks, AssessmentStatus, + AuthenticationDetailsProperties, AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, AzureResourceDetails, + AzureResourceIdentifier, AzureResourceLink, + Baseline, + BaselineAdjustedResult, BaseResource, + BenchmarkReference, CloudError, Compliance, ComplianceResult, ComplianceSegment, + ConnectionFromIpNotAllowed, ConnectionToIpNotAllowed, + ConnectorSetting, ContainerRegistryVulnerabilityProperties, CustomAlertRule, CVE, CVSS, DataExportSettings, DenylistCustomAlertRule, + Device, DeviceSecurityGroup, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IotAlert, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + IotRecommendation, + IotRecommendationModel, + IotRecommendationType, IoTSecurityAlertedDevice, IoTSecurityDeviceAlert, IoTSecurityDeviceRecommendation, IoTSecuritySolutionAnalyticsModel, IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, + IotSensorsModel, IoTSeverityMetrics, + IotSitesModel, + IpAddress, ListCustomAlertRule, LocalUserNotAllowed, + LogAnalyticsIdentifier, + MacAddress, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, + NetworkInterface, + OnPremiseIotSensor, OnPremiseResourceDetails, + OnPremiseSqlResourceDetails, Pricing, ProcessNotAllowed, + Protocol1, + ProxyServerProperties, + QueryCheck, QueuePurgesNotInAllowedRange, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, + Remediation, Resource, ResourceDetails, + ResourceIdentifier, Rule, + RuleResults, + RuleResultsProperties, + Scan, + ScanProperties, + ScanResult, + ScanResultProperties, ScopeElement, SecureScoreControlDefinitionItem, SecureScoreControlDefinitionSource, @@ -85,10 +123,12 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -96,6 +136,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting, WorkspaceSettingList diff --git a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts index 8260930d328a..a647a319bf68 100644 --- a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts +++ b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,7 +26,7 @@ export class AdaptiveApplicationControls { } /** - * Gets a list of application control VM/server groups for the subscription. + * Gets a list of application control machine groups for the subscription. * @param [options] The optional parameters * @returns Promise */ @@ -35,13 +34,13 @@ export class AdaptiveApplicationControls { /** * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - list(options: Models.AdaptiveApplicationControlsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.AdaptiveApplicationControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: Models.AdaptiveApplicationControlsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.AdaptiveApplicationControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -52,23 +51,23 @@ export class AdaptiveApplicationControls { /** * Gets an application control VM/server group. - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param [options] The optional parameters * @returns Promise */ get(groupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param callback The callback */ - get(groupName: string, callback: msRest.ServiceCallback): void; + get(groupName: string, callback: msRest.ServiceCallback): void; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param options The optional parameters * @param callback The callback */ - get(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -79,27 +78,27 @@ export class AdaptiveApplicationControls { } /** - * Update an application control VM/server group - * @param groupName Name of an application control VM/server group + * Update an application control machine group + * @param groupName Name of an application control machine group * @param body * @param [options] The optional parameters * @returns Promise */ - put(groupName: string, body: Models.AppWhitelistingGroup, options?: msRest.RequestOptionsBase): Promise; + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, options?: msRest.RequestOptionsBase): Promise; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param body * @param callback The callback */ - put(groupName: string, body: Models.AppWhitelistingGroup, callback: msRest.ServiceCallback): void; + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, callback: msRest.ServiceCallback): void; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param body * @param options The optional parameters * @param callback The callback */ - put(groupName: string, body: Models.AppWhitelistingGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - put(groupName: string, body: Models.AppWhitelistingGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + put(groupName: string, body: Models.AdaptiveApplicationControlGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -111,19 +110,19 @@ export class AdaptiveApplicationControls { } /** - * Delete an application control VM/server group - * @param groupName Name of an application control VM/server group + * Delete an application control machine group + * @param groupName Name of an application control machine group * @param [options] The optional parameters * @returns Promise */ deleteMethod(groupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param callback The callback */ deleteMethod(groupName: string, callback: msRest.ServiceCallback): void; /** - * @param groupName Name of an application control VM/server group + * @param groupName Name of an application control machine group * @param options The optional parameters * @param callback The callback */ @@ -148,7 +147,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion8, Parameters.includePathRecommendations, Parameters.summary ], @@ -157,7 +156,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroups + bodyMapper: Mappers.AdaptiveApplicationControlGroups }, default: { bodyMapper: Mappers.CloudError @@ -175,14 +174,14 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.groupName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroup + bodyMapper: Mappers.AdaptiveApplicationControlGroup }, default: { bodyMapper: Mappers.CloudError @@ -200,7 +199,7 @@ const putOperationSpec: msRest.OperationSpec = { Parameters.groupName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -208,13 +207,13 @@ const putOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "body", mapper: { - ...Mappers.AppWhitelistingGroup, + ...Mappers.AdaptiveApplicationControlGroup, required: true } }, responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroup + bodyMapper: Mappers.AdaptiveApplicationControlGroup }, default: { bodyMapper: Mappers.CloudError @@ -232,7 +231,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.groupName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts index c46277aaafee..71c506168808 100644 --- a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts +++ b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -203,7 +202,7 @@ const listByExtendedResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -231,7 +230,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.adaptiveNetworkHardeningResourceName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -260,7 +259,7 @@ const beginEnforceOperationSpec: msRest.OperationSpec = { Parameters.adaptiveNetworkHardeningEnforceAction ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -289,6 +288,9 @@ const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts index e46de5f02a25..99f7abce9a5e 100644 --- a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts +++ b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index cff6bc8b0bd5..1d4041fa0f85 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,7 +30,7 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - list(options?: Models.AlertsListOptionalParams): Promise; + list(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -40,8 +39,8 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - list(options: Models.AlertsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.AlertsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -57,7 +56,7 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: Models.AlertsListByResourceGroupOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. @@ -70,8 +69,8 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: Models.AlertsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.AlertsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -87,7 +86,7 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams): Promise; + listSubscriptionLevelAlertsByRegion(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ @@ -96,8 +95,8 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - listSubscriptionLevelAlertsByRegion(options: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; - listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSubscriptionLevelAlertsByRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSubscriptionLevelAlertsByRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -114,7 +113,7 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams): Promise; + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. @@ -127,8 +126,8 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -229,6 +228,34 @@ export class Alerts { callback); } + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param [options] The optional parameters + * @returns Promise + */ + updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param callback The callback + */ + updateSubscriptionLevelStateToResolve(alertName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param options The optional parameters + * @param callback The callback + */ + updateSubscriptionLevelStateToResolve(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + options + }, + updateSubscriptionLevelStateToResolveOperationSpec, + callback); + } + /** * Update the alert's state * @param alertName Name of the alert object @@ -257,6 +284,41 @@ export class Alerts { callback); } + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param callback The callback + */ + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToResolve(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + resourceGroupName, + options + }, + updateResourceGroupLevelStateToResolveOperationSpec, + callback); + } + /** * Update the alert's state * @param alertName Name of the alert object @@ -451,11 +513,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -479,11 +537,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -507,11 +561,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -536,11 +586,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -565,7 +611,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -591,7 +637,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -616,7 +662,30 @@ const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationS Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSubscriptionLevelStateToResolveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName + ], + queryParameters: [ + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -632,14 +701,38 @@ const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationS const updateSubscriptionLevelAlertStateToReactivateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", urlParameters: [ Parameters.subscriptionId, Parameters.ascLocation, Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateResourceGroupLevelStateToResolveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -663,7 +756,7 @@ const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.Operation Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +772,7 @@ const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.Operation const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/reactivate", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", urlParameters: [ Parameters.subscriptionId, Parameters.ascLocation, @@ -687,7 +780,7 @@ const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.Operat Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -708,6 +801,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -729,6 +825,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -750,6 +849,9 @@ const listSubscriptionLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -771,6 +873,9 @@ const listResourceGroupLevelAlertsByRegionNextOperationSpec: msRest.OperationSpe urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts index edd98341ab97..70e941a770e2 100644 --- a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts +++ b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -144,7 +143,7 @@ export class AlertsSuppressionRules { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.AlertsSuppressionRulesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -155,8 +154,8 @@ export class AlertsSuppressionRules { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.AlertsSuppressionRulesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.AlertsSuppressionRulesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -176,8 +175,8 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6, - Parameters.alertType + Parameters.apiVersion7, + Parameters.alertType1 ], headerParameters: [ Parameters.acceptLanguage @@ -201,7 +200,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.alertsSuppressionRuleName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.alertsSuppressionRuleName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -256,7 +255,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.alertsSuppressionRuleName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -277,6 +276,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.alertType1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/allowedConnections.ts b/sdk/security/arm-security/src/operations/allowedConnections.ts index 3c24f44ef537..b64962d44311 100644 --- a/sdk/security/arm-security/src/operations/allowedConnections.ts +++ b/sdk/security/arm-security/src/operations/allowedConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -179,7 +178,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -203,7 +202,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -229,7 +228,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.connectionType ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -252,6 +251,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -273,6 +275,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/assessments.ts b/sdk/security/arm-security/src/operations/assessments.ts index f189faf56043..dd995614cb6b 100644 --- a/sdk/security/arm-security/src/operations/assessments.ts +++ b/sdk/security/arm-security/src/operations/assessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -200,7 +199,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -224,7 +223,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.assessmentName ], queryParameters: [ - Parameters.apiVersion7, + Parameters.apiVersion8, Parameters.expand ], headerParameters: [ @@ -249,7 +248,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.assessmentName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -283,7 +282,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.assessmentName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -305,6 +304,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts index 2413fa98e36f..e50b93b8121d 100644 --- a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts +++ b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -254,7 +253,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Security/assessmentMetadata", queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -277,7 +276,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.assessmentMetadataName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -300,7 +299,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -324,7 +323,7 @@ const getInSubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -348,7 +347,7 @@ const createInSubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -379,7 +378,7 @@ const deleteInSubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -400,6 +399,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -421,6 +423,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts index 352f1989c6d3..92f81f5503f8 100644 --- a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts +++ b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -148,7 +147,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -172,7 +171,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -196,7 +195,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -226,6 +225,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/automations.ts b/sdk/security/arm-security/src/operations/automations.ts index 087e3abb5def..533c9983d8a8 100644 --- a/sdk/security/arm-security/src/operations/automations.ts +++ b/sdk/security/arm-security/src/operations/automations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -301,7 +300,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -325,7 +324,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -350,7 +349,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.automationName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -375,7 +374,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.automationName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -410,7 +409,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.automationName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -433,7 +432,7 @@ const validateOperationSpec: msRest.OperationSpec = { Parameters.automationName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -463,6 +462,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -484,6 +486,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/complianceResults.ts b/sdk/security/arm-security/src/operations/complianceResults.ts index 66c2d16295d4..66b2c70beaf6 100644 --- a/sdk/security/arm-security/src/operations/complianceResults.ts +++ b/sdk/security/arm-security/src/operations/complianceResults.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -177,6 +176,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/compliances.ts b/sdk/security/arm-security/src/operations/compliances.ts index 951f8b8f7abb..e48991a893f1 100644 --- a/sdk/security/arm-security/src/operations/compliances.ts +++ b/sdk/security/arm-security/src/operations/compliances.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -136,7 +135,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +159,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.complianceName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -183,6 +182,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/connectors.ts b/sdk/security/arm-security/src/operations/connectors.ts new file mode 100644 index 000000000000..aa9c50006bca --- /dev/null +++ b/sdk/security/arm-security/src/operations/connectors.ts @@ -0,0 +1,296 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/connectorsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a Connectors. */ +export class Connectors { + private readonly client: SecurityCenterContext; + + /** + * Create a Connectors. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Cloud accounts connectors of a subscription + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Details of a specific cloud account connector + * @param connectorName Name of the cloud account connector + * @param [options] The optional parameters + * @returns Promise + */ + get(connectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param connectorName Name of the cloud account connector + * @param callback The callback + */ + get(connectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param connectorName Name of the cloud account connector + * @param options The optional parameters + * @param callback The callback + */ + get(connectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(connectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + connectorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a cloud account connector or update an existing one. Connect to your cloud account. For + * AWS, use either account credentials or role-based authentication. For GCP, use account + * organization credentials. + * @param connectorName Name of the cloud account connector + * @param connectorSetting Settings for the cloud account connector + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, options?: msRest.RequestOptionsBase): Promise; + /** + * @param connectorName Name of the cloud account connector + * @param connectorSetting Settings for the cloud account connector + * @param callback The callback + */ + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, callback: msRest.ServiceCallback): void; + /** + * @param connectorName Name of the cloud account connector + * @param connectorSetting Settings for the cloud account connector + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(connectorName: string, connectorSetting: Models.ConnectorSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + connectorName, + connectorSetting, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete a cloud account connector from a subscription + * @param connectorName Name of the cloud account connector + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(connectorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param connectorName Name of the cloud account connector + * @param callback The callback + */ + deleteMethod(connectorName: string, callback: msRest.ServiceCallback): void; + /** + * @param connectorName Name of the cloud account connector + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(connectorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(connectorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + connectorName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Cloud accounts connectors of a subscription + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectorSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.connectorName + ], + queryParameters: [ + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectorSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.connectorName + ], + queryParameters: [ + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectorSetting", + mapper: { + ...Mappers.ConnectorSetting, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectorSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/connectors/{connectorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.connectorName + ], + queryParameters: [ + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion9 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectorSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/deviceOperations.ts b/sdk/security/arm-security/src/operations/deviceOperations.ts new file mode 100644 index 000000000000..f7f46b41df14 --- /dev/null +++ b/sdk/security/arm-security/src/operations/deviceOperations.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/deviceOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DeviceOperations. */ +export class DeviceOperations { + private readonly client: SecurityCenterContext; + + /** + * Create a DeviceOperations. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get device. + * @param resourceId The identifier of the resource. + * @param deviceId Identifier of the device. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceId: string, deviceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param deviceId Identifier of the device. + * @param callback The callback + */ + get(resourceId: string, deviceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param deviceId Identifier of the device. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceId: string, deviceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceId: string, deviceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + deviceId, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/devices/{deviceId}", + urlParameters: [ + Parameters.resourceId, + Parameters.deviceId1 + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Device + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts index 8906c9565522..d4260ab33cdd 100644 --- a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts +++ b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -305,6 +304,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/devicesForHub.ts b/sdk/security/arm-security/src/operations/devicesForHub.ts new file mode 100644 index 000000000000..536756b18a7f --- /dev/null +++ b/sdk/security/arm-security/src/operations/devicesForHub.ts @@ -0,0 +1,138 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/devicesForHubMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DevicesForHub. */ +export class DevicesForHub { + private readonly client: SecurityCenterContext; + + /** + * Create a DevicesForHub. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get list of the devices for the specified IoT Hub resource. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceId: string, options?: Models.DevicesForHubListOptionalParams): Promise; + /** + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceId: string, options: Models.DevicesForHubListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceId: string, options?: Models.DevicesForHubListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get list of the devices for the specified IoT Hub resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DevicesForHubListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.DevicesForHubListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DevicesForHubListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/devices", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/devicesForSubscription.ts b/sdk/security/arm-security/src/operations/devicesForSubscription.ts new file mode 100644 index 000000000000..94c0f3876842 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devicesForSubscription.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/devicesForSubscriptionMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DevicesForSubscription. */ +export class DevicesForSubscription { + private readonly client: SecurityCenterContext; + + /** + * Create a DevicesForSubscription. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get list of the devices by their subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.DevicesForSubscriptionListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.DevicesForSubscriptionListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.DevicesForSubscriptionListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get list of the devices by their subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.DevicesForSubscriptionListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.DevicesForSubscriptionListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DevicesForSubscriptionListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/devices", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.limit, + Parameters.skipToken, + Parameters.deviceManagementType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts index fee408b7fe91..fb8daac1041b 100644 --- a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -175,7 +174,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +198,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.discoveredSecuritySolutionName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts index dcf849fd1092..2f24ee720641 100644 --- a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -175,7 +174,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +198,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.externalSecuritySolutionsName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 49b74e193742..ebb9477aedcc 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,7 +9,6 @@ export * from "./complianceResults"; export * from "./pricings"; -export * from "./alerts"; export * from "./settings"; export * from "./advancedThreatProtection"; export * from "./deviceSecurityGroups"; @@ -18,6 +16,10 @@ export * from "./iotSecuritySolution"; export * from "./iotSecuritySolutionAnalytics"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert"; export * from "./iotSecuritySolutionsAnalyticsRecommendation"; +export * from "./iotAlertTypes"; +export * from "./iotAlerts"; +export * from "./iotRecommendationTypes"; +export * from "./iotRecommendations"; export * from "./locations"; export * from "./operations"; export * from "./tasks"; @@ -29,19 +31,33 @@ export * from "./workspaceSettings"; export * from "./regulatoryComplianceStandards"; export * from "./regulatoryComplianceControls"; export * from "./regulatoryComplianceAssessments"; -export * from "./serverVulnerabilityAssessmentOperations"; export * from "./subAssessments"; export * from "./automations"; export * from "./alertsSuppressionRules"; +export * from "./serverVulnerabilityAssessmentOperations"; export * from "./assessmentsMetadata"; export * from "./assessments"; export * from "./adaptiveApplicationControls"; export * from "./adaptiveNetworkHardenings"; export * from "./allowedConnections"; export * from "./topology"; +export * from "./alerts"; export * from "./jitNetworkAccessPolicies"; export * from "./discoveredSecuritySolutions"; +export * from "./securitySolutionsReferenceDataOperations"; export * from "./externalSecuritySolutions"; export * from "./secureScores"; export * from "./secureScoreControls"; export * from "./secureScoreControlDefinitions"; +export * from "./securitySolutions"; +export * from "./connectors"; +export * from "./sqlVulnerabilityAssessmentScans"; +export * from "./sqlVulnerabilityAssessmentScanResults"; +export * from "./sqlVulnerabilityAssessmentBaselineRules"; +export * from "./iotDefenderSettings"; +export * from "./iotSensors"; +export * from "./devicesForSubscription"; +export * from "./devicesForHub"; +export * from "./deviceOperations"; +export * from "./onPremiseIotSensors"; +export * from "./iotSites"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index 4bcf11236eda..570369ba0ef2 100644 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -185,7 +184,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -209,7 +208,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -242,7 +241,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -265,6 +264,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotAlertTypes.ts b/sdk/security/arm-security/src/operations/iotAlertTypes.ts new file mode 100644 index 000000000000..e24d11804f02 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotAlertTypes.ts @@ -0,0 +1,253 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotAlertTypesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotAlertTypes. */ +export class IotAlertTypes { + private readonly client: SecurityCenterContext; + + /** + * Create a IotAlertTypes. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT alert types + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT alert type + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotAlertTypeName Name of the alert type + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, solutionName: string, iotAlertTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotAlertTypeName Name of the alert type + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotAlertTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotAlertTypeName Name of the alert type + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotAlertTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, solutionName: string, iotAlertTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + iotAlertTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List IoT alert types + * @param [options] The optional parameters + * @returns Promise + */ + list1(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list1(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list1(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list1(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + list1OperationSpec, + callback) as Promise; + } + + /** + * Get IoT alert type + * @param iotAlertTypeName Name of the alert type + * @param [options] The optional parameters + * @returns Promise + */ + get1(iotAlertTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotAlertTypeName Name of the alert type + * @param callback The callback + */ + get1(iotAlertTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param iotAlertTypeName Name of the alert type + * @param options The optional parameters + * @param callback The callback + */ + get1(iotAlertTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get1(iotAlertTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotAlertTypeName, + options + }, + get1OperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotAlertTypes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotAlertTypes/{iotAlertTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName, + Parameters.iotAlertTypeName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertType + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const list1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const get1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes/{iotAlertTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.iotAlertTypeName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertType + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotAlerts.ts b/sdk/security/arm-security/src/operations/iotAlerts.ts new file mode 100644 index 000000000000..47eb5f2c69ae --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotAlerts.ts @@ -0,0 +1,403 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotAlertsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotAlerts. */ +export class IotAlerts { + private readonly client: SecurityCenterContext; + + /** + * Create a IotAlerts. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT alerts + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, solutionName: string, options?: Models.IotAlertsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, options: Models.IotAlertsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, solutionName: string, options?: Models.IotAlertsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT alert + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotAlertId Id of the alert + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, solutionName: string, iotAlertId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotAlertId Id of the alert + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotAlertId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotAlertId Id of the alert + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotAlertId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, solutionName: string, iotAlertId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + iotAlertId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List IoT alerts + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param [options] The optional parameters + * @returns Promise + */ + list1(scope: string, options?: Models.IotAlertsList1OptionalParams): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param callback The callback + */ + list1(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param options The optional parameters + * @param callback The callback + */ + list1(scope: string, options: Models.IotAlertsList1OptionalParams, callback: msRest.ServiceCallback): void; + list1(scope: string, options?: Models.IotAlertsList1OptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + list1OperationSpec, + callback) as Promise; + } + + /** + * Get IoT alert + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotAlertId Id of the alert + * @param [options] The optional parameters + * @returns Promise + */ + get1(scope: string, iotAlertId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotAlertId Id of the alert + * @param callback The callback + */ + get1(scope: string, iotAlertId: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotAlertId Id of the alert + * @param options The optional parameters + * @param callback The callback + */ + get1(scope: string, iotAlertId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get1(scope: string, iotAlertId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotAlertId, + options + }, + get1OperationSpec, + callback) as Promise; + } + + /** + * List IoT alerts + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.IotAlertsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.IotAlertsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotAlertsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * List IoT alerts + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + list1Next(nextPageLink: string, options?: Models.IotAlertsList1NextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + list1Next(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + list1Next(nextPageLink: string, options: Models.IotAlertsList1NextOptionalParams, callback: msRest.ServiceCallback): void; + list1Next(nextPageLink: string, options?: Models.IotAlertsList1NextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + list1NextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotAlerts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType0, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotAlerts/{iotAlertId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName, + Parameters.iotAlertId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlert + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const list1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotAlerts", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType0, + Parameters.deviceManagementType, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const get1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotAlerts/{iotAlertId}", + urlParameters: [ + Parameters.scope, + Parameters.iotAlertId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType0, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const list1NextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType0, + Parameters.deviceManagementType, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotDefenderSettings.ts b/sdk/security/arm-security/src/operations/iotDefenderSettings.ts new file mode 100644 index 000000000000..532c50632388 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotDefenderSettings.ts @@ -0,0 +1,329 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotDefenderSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotDefenderSettings. */ +export class IotDefenderSettings { + private readonly client: SecurityCenterContext; + + /** + * Create a IotDefenderSettings. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT Defender Settings + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT Defender Settings + * @param [options] The optional parameters + * @returns Promise + */ + get(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + get(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + get(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update IoT Defender settings + * @param iotDefenderSettingsModel The IoT defender settings model + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotDefenderSettingsModel The IoT defender settings model + * @param callback The callback + */ + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, callback: msRest.ServiceCallback): void; + /** + * @param iotDefenderSettingsModel The IoT defender settings model + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(iotDefenderSettingsModel: Models.IotDefenderSettingsModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotDefenderSettingsModel, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete IoT Defender settings + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + deleteMethod(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Information about downloadable packages + * @param [options] The optional parameters + * @returns Promise + */ + packageDownloadsMethod(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + packageDownloadsMethod(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + packageDownloadsMethod(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + packageDownloadsMethod(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + packageDownloadsMethodOperationSpec, + callback) as Promise; + } + + /** + * Download manager activation data defined for this subscription + * @param [options] The optional parameters + * @returns Promise + */ + downloadManagerActivation(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + downloadManagerActivation(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + downloadManagerActivation(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadManagerActivation(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + downloadManagerActivationOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotDefenderSettingsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotDefenderSettingsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "iotDefenderSettingsModel", + mapper: { + ...Mappers.IotDefenderSettingsModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IotDefenderSettingsModel + }, + 201: { + bodyMapper: Mappers.IotDefenderSettingsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const packageDownloadsMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/packageDownloads", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PackageDownloads + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadManagerActivationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotDefenderSettings/default/downloadManagerActivation", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts b/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts new file mode 100644 index 000000000000..1a05ec985173 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts @@ -0,0 +1,253 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotRecommendationTypesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotRecommendationTypes. */ +export class IotRecommendationTypes { + private readonly client: SecurityCenterContext; + + /** + * Create a IotRecommendationTypes. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT recommendation types + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT recommendation type + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotRecommendationTypeName Name of the recommendation type + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, solutionName: string, iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotRecommendationTypeName Name of the recommendation type + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotRecommendationTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotRecommendationTypeName Name of the recommendation type + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotRecommendationTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, solutionName: string, iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + iotRecommendationTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List IoT recommendation types + * @param [options] The optional parameters + * @returns Promise + */ + list1(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list1(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list1(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list1(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + list1OperationSpec, + callback) as Promise; + } + + /** + * Get IoT recommendation type + * @param iotRecommendationTypeName Name of the recommendation type + * @param [options] The optional parameters + * @returns Promise + */ + get1(iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotRecommendationTypeName Name of the recommendation type + * @param callback The callback + */ + get1(iotRecommendationTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param iotRecommendationTypeName Name of the recommendation type + * @param options The optional parameters + * @param callback The callback + */ + get1(iotRecommendationTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get1(iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotRecommendationTypeName, + options + }, + get1OperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendationTypes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendationTypes/{iotRecommendationTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName, + Parameters.iotRecommendationTypeName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationType + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const list1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const get1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes/{iotRecommendationTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.iotRecommendationTypeName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationType + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotRecommendations.ts b/sdk/security/arm-security/src/operations/iotRecommendations.ts new file mode 100644 index 000000000000..1c026cb99318 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotRecommendations.ts @@ -0,0 +1,393 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotRecommendationsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotRecommendations. */ +export class IotRecommendations { + private readonly client: SecurityCenterContext; + + /** + * Create a IotRecommendations. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT recommendations + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, solutionName: string, options?: Models.IotRecommendationsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, solutionName: string, options: Models.IotRecommendationsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, solutionName: string, options?: Models.IotRecommendationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT recommendation + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotRecommendationId Id of the recommendation + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, solutionName: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotRecommendationId Id of the recommendation + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotRecommendationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param solutionName The name of the IoT Security solution. + * @param iotRecommendationId Id of the recommendation + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, solutionName: string, iotRecommendationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, solutionName: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + solutionName, + iotRecommendationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List IoT recommendations + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param [options] The optional parameters + * @returns Promise + */ + list1(scope: string, options?: Models.IotRecommendationsList1OptionalParams): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param callback The callback + */ + list1(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param options The optional parameters + * @param callback The callback + */ + list1(scope: string, options: Models.IotRecommendationsList1OptionalParams, callback: msRest.ServiceCallback): void; + list1(scope: string, options?: Models.IotRecommendationsList1OptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + list1OperationSpec, + callback) as Promise; + } + + /** + * Get IoT recommendation + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotRecommendationId Id of the recommendation + * @param [options] The optional parameters + * @returns Promise + */ + get1(scope: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotRecommendationId Id of the recommendation + * @param callback The callback + */ + get1(scope: string, iotRecommendationId: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub + * (i.e. + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}) + * @param iotRecommendationId Id of the recommendation + * @param options The optional parameters + * @param callback The callback + */ + get1(scope: string, iotRecommendationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get1(scope: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotRecommendationId, + options + }, + get1OperationSpec, + callback) as Promise; + } + + /** + * List IoT recommendations + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.IotRecommendationsListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.IotRecommendationsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotRecommendationsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * List IoT recommendations + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + list1Next(nextPageLink: string, options?: Models.IotRecommendationsList1NextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + list1Next(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + list1Next(nextPageLink: string, options: Models.IotRecommendationsList1NextOptionalParams, callback: msRest.ServiceCallback): void; + list1Next(nextPageLink: string, options?: Models.IotRecommendationsList1NextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + list1NextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.recommendationType, + Parameters.deviceId0, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/iotRecommendations/{iotRecommendationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName, + Parameters.iotRecommendationId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendation + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const list1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotRecommendations", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.recommendationType, + Parameters.deviceId0, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const get1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotRecommendations/{iotRecommendationId}", + urlParameters: [ + Parameters.scope, + Parameters.iotRecommendationId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.recommendationType, + Parameters.deviceId0, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const list1NextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.recommendationType, + Parameters.deviceId0, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts index 8584de5ac36e..518f7a04a3d4 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -236,7 +235,7 @@ export class IotSecuritySolution { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -247,8 +246,8 @@ export class IotSecuritySolution { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -264,7 +263,7 @@ export class IotSecuritySolution { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.IotSecuritySolutionListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -275,8 +274,8 @@ export class IotSecuritySolution { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.IotSecuritySolutionListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.IotSecuritySolutionListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -461,6 +460,10 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -482,6 +485,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts index e66f18882294..cbf20304731d 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts index 914c656d760d..b1b6e7eb8ed4 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -146,7 +145,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlert { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -157,8 +156,8 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlert { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -254,6 +253,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts index 2801c7369e88..ca0efaadd443 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -109,7 +108,7 @@ export class IotSecuritySolutionsAnalyticsRecommendation { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -120,8 +119,8 @@ export class IotSecuritySolutionsAnalyticsRecommendation { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -193,6 +192,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion3, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/iotSensors.ts b/sdk/security/arm-security/src/operations/iotSensors.ts new file mode 100644 index 000000000000..e6ad8460b84b --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotSensors.ts @@ -0,0 +1,448 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotSensorsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotSensors. */ +export class IotSensors { + private readonly client: SecurityCenterContext; + + /** + * Create a IotSensors. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT sensors + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + get(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update IoT sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param iotSensorsModel The IoT sensor model + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param iotSensorsModel The IoT sensor model + * @param callback The callback + */ + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param iotSensorsModel The IoT sensor model + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(scope: string, iotSensorName: string, iotSensorsModel: Models.IotSensorsModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + iotSensorsModel, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete IoT sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + deleteMethod(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Download sensor activation file + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + downloadActivation(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + downloadActivation(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + downloadActivation(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadActivation(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + downloadActivationOperationSpec, + callback) as Promise; + } + + /** + * Download file for reset password of the sensor + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param body The reset password input. + * @param [options] The optional parameters + * @returns Promise + */ + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param body The reset password input. + * @param callback The callback + */ + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param body The reset password input. + * @param options The optional parameters + * @param callback The callback + */ + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadResetPassword(scope: string, iotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + body, + options + }, + downloadResetPasswordOperationSpec, + callback) as Promise; + } + + /** + * Trigger threat intelligence package update + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + triggerTiPackageUpdate(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param callback The callback + */ + triggerTiPackageUpdate(scope: string, iotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSensorName Name of the IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + triggerTiPackageUpdate(scope: string, iotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + triggerTiPackageUpdate(scope: string, iotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSensorName, + options + }, + triggerTiPackageUpdateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSensors", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSensorsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSensorsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "iotSensorsModel", + mapper: { + ...Mappers.IotSensorsModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IotSensorsModel + }, + 201: { + bodyMapper: Mappers.IotSensorsModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadActivationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadActivation", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadResetPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/downloadResetPassword", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ResetPasswordInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const triggerTiPackageUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.Security/iotSensors/{iotSensorName}/triggerTiPackageUpdate", + urlParameters: [ + Parameters.scope, + Parameters.iotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/iotSites.ts b/sdk/security/arm-security/src/operations/iotSites.ts new file mode 100644 index 000000000000..19733761e6ac --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotSites.ts @@ -0,0 +1,246 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/iotSitesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IotSites. */ +export class IotSites { + private readonly client: SecurityCenterContext; + + /** + * Create a IotSites. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List IoT sites + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get IoT site + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + get(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update IoT site + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSitesModel The IoT sites model + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSitesModel The IoT sites model + * @param callback The callback + */ + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param iotSitesModel The IoT sites model + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(scope: string, iotSitesModel: Models.IotSitesModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotSitesModel, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete IoT site + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param callback The callback + */ + deleteMethod(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub) + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSites", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSitesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotSites/default", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotSitesModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{scope}/providers/Microsoft.Security/iotSites/default", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "iotSitesModel", + mapper: { + ...Mappers.IotSitesModel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IotSitesModel + }, + 201: { + bodyMapper: Mappers.IotSitesModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{scope}/providers/Microsoft.Security/iotSites/default", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts index 9659d3beb32d..a1d77b385f2b 100644 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -413,7 +412,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -437,7 +436,7 @@ const listByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -461,7 +460,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -486,7 +485,7 @@ const listByResourceGroupAndRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -512,7 +511,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -538,7 +537,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -571,7 +570,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -597,7 +596,7 @@ const initiateOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyInitiateType ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -627,6 +626,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -648,6 +650,9 @@ const listByRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -669,6 +674,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -690,6 +698,9 @@ const listByResourceGroupAndRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/locations.ts b/sdk/security/arm-security/src/operations/locations.ts index 6fddbae9fa18..90288ac4644a 100644 --- a/sdk/security/arm-security/src/operations/locations.ts +++ b/sdk/security/arm-security/src/operations/locations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -116,7 +115,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -140,7 +139,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -163,6 +162,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts b/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts new file mode 100644 index 000000000000..50711e7548d6 --- /dev/null +++ b/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts @@ -0,0 +1,359 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/onPremiseIotSensorsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a OnPremiseIotSensors. */ +export class OnPremiseIotSensors { + private readonly client: SecurityCenterContext; + + /** + * Create a OnPremiseIotSensors. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * List on-premise IoT sensors + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get on-premise IoT sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + get(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + get(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + get(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update on-premise IoT sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + createOrUpdate(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete on-premise IoT sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + deleteMethod(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Download sensor activation file + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param [options] The optional parameters + * @returns Promise + */ + downloadActivation(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param callback The callback + */ + downloadActivation(onPremiseIotSensorName: string, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param options The optional parameters + * @param callback The callback + */ + downloadActivation(onPremiseIotSensorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadActivation(onPremiseIotSensorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + options + }, + downloadActivationOperationSpec, + callback) as Promise; + } + + /** + * Download file for reset password of the sensor + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param body Input for reset password. + * @param [options] The optional parameters + * @returns Promise + */ + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase): Promise; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param body Input for reset password. + * @param callback The callback + */ + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, callback: msRest.ServiceCallback): void; + /** + * @param onPremiseIotSensorName Name of the on-premise IoT sensor + * @param body Input for reset password. + * @param options The optional parameters + * @param callback The callback + */ + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + downloadResetPassword(onPremiseIotSensorName: string, body: Models.ResetPasswordInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + onPremiseIotSensorName, + body, + options + }, + downloadResetPasswordOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnPremiseIotSensorsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnPremiseIotSensor + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OnPremiseIotSensor + }, + 201: { + bodyMapper: Mappers.OnPremiseIotSensor + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadActivationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}/downloadActivation", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const downloadResetPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/onPremiseIotSensors/{onPremiseIotSensorName}/downloadResetPassword", + urlParameters: [ + Parameters.subscriptionId, + Parameters.onPremiseIotSensorName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ResetPasswordInput, + required: true + } + }, + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Stream" + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/operations.ts b/sdk/security/arm-security/src/operations/operations.ts index 15d396b057d3..7989159cf544 100644 --- a/sdk/security/arm-security/src/operations/operations.ts +++ b/sdk/security/arm-security/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Security/operations", queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts index e604f40d8222..aabe04271f0d 100644 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ b/sdk/security/arm-security/src/operations/pricings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts index d9e7f429a94d..c6bb81df1da4 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -100,7 +99,7 @@ export class RegulatoryComplianceAssessments { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceAssessmentsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -111,8 +110,8 @@ export class RegulatoryComplianceAssessments { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RegulatoryComplianceAssessmentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceAssessmentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -134,7 +133,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.regulatoryComplianceControlName ], queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion7, Parameters.filter ], headerParameters: [ @@ -161,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.regulatoryComplianceAssessmentName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -184,6 +183,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts index 5d40b5b0688b..b6382379688e 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -92,7 +91,7 @@ export class RegulatoryComplianceControls { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceControlsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -103,8 +102,8 @@ export class RegulatoryComplianceControls { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RegulatoryComplianceControlsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceControlsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -125,7 +124,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.regulatoryComplianceStandardName ], queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion7, Parameters.filter ], headerParameters: [ @@ -151,7 +150,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.regulatoryComplianceControlName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -174,6 +173,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts index 07b2a60f5258..39fc68412f2d 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -84,7 +83,7 @@ export class RegulatoryComplianceStandards { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceStandardsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -95,8 +94,8 @@ export class RegulatoryComplianceStandards { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RegulatoryComplianceStandardsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RegulatoryComplianceStandardsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -116,7 +115,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6, + Parameters.apiVersion7, Parameters.filter ], headerParameters: [ @@ -141,7 +140,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.regulatoryComplianceStandardName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -164,6 +163,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts index 8f276006fba3..f44d501a3a4c 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,7 +26,7 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls + * List the available security controls, their assessments, and the max score * @param [options] The optional parameters * @returns Promise */ @@ -51,7 +50,8 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls in subscription level + * For a specified subscription, list the available security controls, their assessments, and the + * max score * @param [options] The optional parameters * @returns Promise */ @@ -75,7 +75,7 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls + * List the available security controls, their assessments, and the max score * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -103,7 +103,8 @@ export class SecureScoreControlDefinitions { } /** - * Get definition information on all secure score controls in subscription level + * For a specified subscription, list the available security controls, their assessments, and the + * max score * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -183,6 +184,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -204,6 +208,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/secureScoreControls.ts b/sdk/security/arm-security/src/operations/secureScoreControls.ts index 28c52529053a..99c05c9aa722 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControls.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControls.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,19 +26,22 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope - * @param secureScoreName The secure score initiative name + * Get all security controls for a specific initiative within a scope + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param [options] The optional parameters * @returns Promise */ listBySecureScore(secureScoreName: string, options?: Models.SecureScoreControlsListBySecureScoreOptionalParams): Promise; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param callback The callback */ listBySecureScore(secureScoreName: string, callback: msRest.ServiceCallback): void; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param options The optional parameters * @param callback The callback */ @@ -55,7 +57,7 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope + * Get all security controls within a scope * @param [options] The optional parameters * @returns Promise */ @@ -79,12 +81,12 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope + * Get all security controls for a specific initiative within a scope * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listBySecureScoreNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySecureScoreNext(nextPageLink: string, options?: Models.SecureScoreControlsListBySecureScoreNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -95,8 +97,8 @@ export class SecureScoreControls { * @param options The optional parameters * @param callback The callback */ - listBySecureScoreNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySecureScoreNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySecureScoreNext(nextPageLink: string, options: Models.SecureScoreControlsListBySecureScoreNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySecureScoreNext(nextPageLink: string, options?: Models.SecureScoreControlsListBySecureScoreNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -107,12 +109,12 @@ export class SecureScoreControls { } /** - * Get all secure score controls on specific initiatives inside a scope + * Get all security controls within a scope * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.SecureScoreControlsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -123,8 +125,8 @@ export class SecureScoreControls { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.SecureScoreControlsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.SecureScoreControlsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -193,6 +195,10 @@ const listBySecureScoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], @@ -214,6 +220,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/secureScores.ts b/sdk/security/arm-security/src/operations/secureScores.ts index e873d1617bda..e5363832042c 100644 --- a/sdk/security/arm-security/src/operations/secureScores.ts +++ b/sdk/security/arm-security/src/operations/secureScores.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,7 +26,7 @@ export class SecureScores { } /** - * Get secure scores on all your initiatives inside a scope + * List secure scores for all your Security Center initiatives within your current scope. * @param [options] The optional parameters * @returns Promise */ @@ -51,19 +50,23 @@ export class SecureScores { } /** - * Get secure score for a specific initiatives inside a scope - * @param secureScoreName The secure score initiative name + * Get secure score for a specific Security Center initiative within your current scope. For the + * ASC Default initiative, use 'ascScore'. + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param [options] The optional parameters * @returns Promise */ get(secureScoreName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param callback The callback */ get(secureScoreName: string, callback: msRest.ServiceCallback): void; /** - * @param secureScoreName The secure score initiative name + * @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in + * the sample request below. * @param options The optional parameters * @param callback The callback */ @@ -79,7 +82,7 @@ export class SecureScores { } /** - * Get secure scores on all your initiatives inside a scope + * List secure scores for all your Security Center initiatives within your current scope. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -163,6 +166,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/securityContacts.ts b/sdk/security/arm-security/src/operations/securityContacts.ts index e368e7b7cf1f..70006e0abf2a 100644 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ b/sdk/security/arm-security/src/operations/securityContacts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -208,7 +207,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -232,7 +231,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -256,7 +255,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -287,7 +286,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +308,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -339,6 +338,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/securitySolutions.ts b/sdk/security/arm-security/src/operations/securitySolutions.ts new file mode 100644 index 000000000000..6eee2e243f29 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securitySolutions.ts @@ -0,0 +1,189 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/securitySolutionsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SecuritySolutions. */ +export class SecuritySolutions { + private readonly client: SecurityCenterContext; + + /** + * Create a SecuritySolutions. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets a list of Security Solutions for the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a specific Security Solution. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param securitySolutionName Name of security solution. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, securitySolutionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param securitySolutionName Name of security solution. + * @param callback The callback + */ + get(resourceGroupName: string, securitySolutionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param securitySolutionName Name of security solution. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, securitySolutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, securitySolutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securitySolutionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Security Solutions for the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securitySolutions", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutions/{securitySolutionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.ascLocation, + Parameters.securitySolutionName + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolution + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts new file mode 100644 index 000000000000..8ef99c198b98 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/securitySolutionsReferenceDataOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SecuritySolutionsReferenceDataOperations. */ +export class SecuritySolutionsReferenceDataOperations { + private readonly client: SecurityCenterContext; + + /** + * Create a SecuritySolutionsReferenceDataOperations. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets a list of all supported Security Solutions for the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets list of all supported Security Solutions for subscription and location. + * @param [options] The optional parameters + * @returns Promise + */ + listByHomeRegion(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listByHomeRegion(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listByHomeRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByHomeRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listByHomeRegionOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securitySolutionsReferenceData", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionsReferenceDataList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByHomeRegionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/securitySolutionsReferenceData", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation + ], + queryParameters: [ + Parameters.apiVersion8 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecuritySolutionsReferenceDataList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts index 660a35067e2d..d724c28cc26f 100644 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -213,7 +212,7 @@ const listByExtendedResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -269,7 +268,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -297,7 +296,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index dfe07c34cb90..5ad4f99d761e 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -226,6 +225,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts new file mode 100644 index 000000000000..2904c4f3144b --- /dev/null +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -0,0 +1,359 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sqlVulnerabilityAssessmentBaselineRulesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SqlVulnerabilityAssessmentBaselineRules. */ +export class SqlVulnerabilityAssessmentBaselineRules { + private readonly client: SecurityCenterContext; + + /** + * Create a SqlVulnerabilityAssessmentBaselineRules. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * @summary Creates a Baseline for a rule in a database. Will overwrite any previously existing + * results. + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams): Promise; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options: Models.SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ruleId, + workspaceId, + apiVersion, + resourceId, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets the results for a given rule in the Baseline. + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ruleId, + workspaceId, + apiVersion, + resourceId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Deletes a rule from the Baseline of a given database. + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param ruleId The rule Id. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(ruleId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ruleId, + workspaceId, + apiVersion, + resourceId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * @summary Gets the results for all rules in the Baseline. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceId, + apiVersion, + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Add a list of baseline rules. Will overwrite any previously existing results (for all + * rules). + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + add(workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams): Promise; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + add(workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + add(workspaceId: string, apiVersion: string, resourceId: string, options: Models.SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams, callback: msRest.ServiceCallback): void; + add(workspaceId: string, apiVersion: string, resourceId: string, options?: Models.SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceId, + apiVersion, + resourceId, + options + }, + addOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}", + urlParameters: [ + Parameters.ruleId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.RuleResultsInput + }, + responses: { + 200: { + bodyMapper: Mappers.RuleResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}", + urlParameters: [ + Parameters.ruleId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RuleResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules/{ruleId}", + urlParameters: [ + Parameters.ruleId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RulesResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const addOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/baselineRules", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "body" + ], + mapper: Mappers.RulesResultsInput + }, + responses: { + 200: { + bodyMapper: Mappers.RulesResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts new file mode 100644 index 000000000000..f69fa66855e4 --- /dev/null +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts @@ -0,0 +1,164 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sqlVulnerabilityAssessmentScanResultsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SqlVulnerabilityAssessmentScanResults. */ +export class SqlVulnerabilityAssessmentScanResults { + private readonly client: SecurityCenterContext; + + /** + * Create a SqlVulnerabilityAssessmentScanResults. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * @summary Gets the scan results of a single rule in a scan record. + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param scanResultId The rule Id of the results. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param scanResultId The rule Id of the results. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param scanResultId The rule Id of the results. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scanId: string, scanResultId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scanId, + scanResultId, + workspaceId, + apiVersion, + resourceId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a list of scan results for a single scan record. + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param scanId The scan Id. Type 'latest' to get the scan results for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scanId, + workspaceId, + apiVersion, + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults/{scanResultId}", + urlParameters: [ + Parameters.scanId, + Parameters.scanResultId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScanResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}/scanResults", + urlParameters: [ + Parameters.scanId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ScanResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..568a5cd5bf0f --- /dev/null +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -0,0 +1,154 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sqlVulnerabilityAssessmentScansMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SqlVulnerabilityAssessmentScans. */ +export class SqlVulnerabilityAssessmentScans { + private readonly client: SecurityCenterContext; + + /** + * Create a SqlVulnerabilityAssessmentScans. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * @summary Gets the scan details of a single scan record. + * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param scanId The scan Id. Type 'latest' to get the scan record for the latest scan. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scanId: string, workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scanId, + workspaceId, + apiVersion, + resourceId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a list of scan records. + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceId The workspace Id. + * @param apiVersion The api version. + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(workspaceId: string, apiVersion: string, resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(workspaceId: string, apiVersion: string, resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceId, + apiVersion, + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans/{scanId}", + urlParameters: [ + Parameters.scanId, + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Scan + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/sqlVulnerabilityAssessments/default/scans", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.workspaceId, + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Scans + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/subAssessments.ts b/sdk/security/arm-security/src/operations/subAssessments.ts index 64a0fbc45549..d46a0c3f471d 100644 --- a/sdk/security/arm-security/src/operations/subAssessments.ts +++ b/sdk/security/arm-security/src/operations/subAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -206,7 +205,7 @@ const listAllOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -230,7 +229,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.assessmentName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -255,7 +254,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subAssessmentName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -278,6 +277,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -299,6 +301,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts index 28712385dcf5..fb3fd0c714b1 100644 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ b/sdk/security/arm-security/src/operations/tasks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -251,7 +250,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -262,8 +261,8 @@ export class Tasks { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.TasksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -279,7 +278,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByHomeRegionNext(nextPageLink: string, options?: Models.TasksListByHomeRegionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -290,8 +289,8 @@ export class Tasks { * @param options The optional parameters * @param callback The callback */ - listByHomeRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByHomeRegionNext(nextPageLink: string, options: Models.TasksListByHomeRegionNextOptionalParams, callback: msRest.ServiceCallback): void; + listByHomeRegionNext(nextPageLink: string, options?: Models.TasksListByHomeRegionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -307,7 +306,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.TasksListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -318,8 +317,8 @@ export class Tasks { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.TasksListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.TasksListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -339,7 +338,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.filter ], headerParameters: [ @@ -364,7 +363,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.filter ], headerParameters: [ @@ -390,7 +389,7 @@ const getSubscriptionLevelTaskOperationSpec: msRest.OperationSpec = { Parameters.taskName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -416,7 +415,7 @@ const updateSubscriptionLevelTaskStateOperationSpec: msRest.OperationSpec = { Parameters.taskUpdateActionType ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +438,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion5, Parameters.filter ], headerParameters: [ @@ -466,7 +465,7 @@ const getResourceGroupLevelTaskOperationSpec: msRest.OperationSpec = { Parameters.taskName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -493,7 +492,7 @@ const updateResourceGroupLevelTaskStateOperationSpec: msRest.OperationSpec = { Parameters.taskUpdateActionType ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion5 ], headerParameters: [ Parameters.acceptLanguage @@ -514,6 +513,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -535,6 +538,10 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -556,6 +563,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/topology.ts b/sdk/security/arm-security/src/operations/topology.ts index 05a1723a8999..6fd2eebdf0a4 100644 --- a/sdk/security/arm-security/src/operations/topology.ts +++ b/sdk/security/arm-security/src/operations/topology.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -175,7 +174,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +198,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.topologyResourceName ], queryParameters: [ - Parameters.apiVersion7 + Parameters.apiVersion8 ], headerParameters: [ Parameters.acceptLanguage @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion8 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/workspaceSettings.ts b/sdk/security/arm-security/src/operations/workspaceSettings.ts index 242206b5175f..b323e068ac03 100644 --- a/sdk/security/arm-security/src/operations/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operations/workspaceSettings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -212,7 +211,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -236,7 +235,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -260,7 +259,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -291,7 +290,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -322,7 +321,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion5 + Parameters.apiVersion6 ], headerParameters: [ Parameters.acceptLanguage @@ -343,6 +342,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 5f78c4465490..eb86320122ff 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -19,7 +18,6 @@ class SecurityCenter extends SecurityCenterContext { // Operation groups complianceResults: operations.ComplianceResults; pricings: operations.Pricings; - alerts: operations.Alerts; settings: operations.Settings; advancedThreatProtection: operations.AdvancedThreatProtection; deviceSecurityGroups: operations.DeviceSecurityGroups; @@ -27,6 +25,10 @@ class SecurityCenter extends SecurityCenterContext { iotSecuritySolutionAnalytics: operations.IotSecuritySolutionAnalytics; iotSecuritySolutionsAnalyticsAggregatedAlert: operations.IotSecuritySolutionsAnalyticsAggregatedAlert; iotSecuritySolutionsAnalyticsRecommendation: operations.IotSecuritySolutionsAnalyticsRecommendation; + iotAlertTypes: operations.IotAlertTypes; + iotAlerts: operations.IotAlerts; + iotRecommendationTypes: operations.IotRecommendationTypes; + iotRecommendations: operations.IotRecommendations; locations: operations.Locations; operations: operations.Operations; tasks: operations.Tasks; @@ -38,22 +40,36 @@ class SecurityCenter extends SecurityCenterContext { regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; regulatoryComplianceControls: operations.RegulatoryComplianceControls; regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; - serverVulnerabilityAssessment: operations.ServerVulnerabilityAssessmentOperations; subAssessments: operations.SubAssessments; automations: operations.Automations; alertsSuppressionRules: operations.AlertsSuppressionRules; + serverVulnerabilityAssessment: operations.ServerVulnerabilityAssessmentOperations; assessmentsMetadata: operations.AssessmentsMetadata; assessments: operations.Assessments; adaptiveApplicationControls: operations.AdaptiveApplicationControls; adaptiveNetworkHardenings: operations.AdaptiveNetworkHardenings; allowedConnections: operations.AllowedConnections; topology: operations.Topology; + alerts: operations.Alerts; jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; + securitySolutionsReferenceData: operations.SecuritySolutionsReferenceDataOperations; externalSecuritySolutions: operations.ExternalSecuritySolutions; secureScores: operations.SecureScores; secureScoreControls: operations.SecureScoreControls; secureScoreControlDefinitions: operations.SecureScoreControlDefinitions; + securitySolutions: operations.SecuritySolutions; + connectors: operations.Connectors; + sqlVulnerabilityAssessmentScans: operations.SqlVulnerabilityAssessmentScans; + sqlVulnerabilityAssessmentScanResults: operations.SqlVulnerabilityAssessmentScanResults; + sqlVulnerabilityAssessmentBaselineRules: operations.SqlVulnerabilityAssessmentBaselineRules; + iotDefenderSettings: operations.IotDefenderSettings; + iotSensors: operations.IotSensors; + devicesForSubscription: operations.DevicesForSubscription; + devicesForHub: operations.DevicesForHub; + device: operations.DeviceOperations; + onPremiseIotSensors: operations.OnPremiseIotSensors; + iotSites: operations.IotSites; /** * Initializes a new instance of the SecurityCenter class. @@ -67,7 +83,6 @@ class SecurityCenter extends SecurityCenterContext { super(credentials, subscriptionId, ascLocation, options); this.complianceResults = new operations.ComplianceResults(this); this.pricings = new operations.Pricings(this); - this.alerts = new operations.Alerts(this); this.settings = new operations.Settings(this); this.advancedThreatProtection = new operations.AdvancedThreatProtection(this); this.deviceSecurityGroups = new operations.DeviceSecurityGroups(this); @@ -75,6 +90,10 @@ class SecurityCenter extends SecurityCenterContext { this.iotSecuritySolutionAnalytics = new operations.IotSecuritySolutionAnalytics(this); this.iotSecuritySolutionsAnalyticsAggregatedAlert = new operations.IotSecuritySolutionsAnalyticsAggregatedAlert(this); this.iotSecuritySolutionsAnalyticsRecommendation = new operations.IotSecuritySolutionsAnalyticsRecommendation(this); + this.iotAlertTypes = new operations.IotAlertTypes(this); + this.iotAlerts = new operations.IotAlerts(this); + this.iotRecommendationTypes = new operations.IotRecommendationTypes(this); + this.iotRecommendations = new operations.IotRecommendations(this); this.locations = new operations.Locations(this); this.operations = new operations.Operations(this); this.tasks = new operations.Tasks(this); @@ -86,22 +105,36 @@ class SecurityCenter extends SecurityCenterContext { this.regulatoryComplianceStandards = new operations.RegulatoryComplianceStandards(this); this.regulatoryComplianceControls = new operations.RegulatoryComplianceControls(this); this.regulatoryComplianceAssessments = new operations.RegulatoryComplianceAssessments(this); - this.serverVulnerabilityAssessment = new operations.ServerVulnerabilityAssessmentOperations(this); this.subAssessments = new operations.SubAssessments(this); this.automations = new operations.Automations(this); this.alertsSuppressionRules = new operations.AlertsSuppressionRules(this); + this.serverVulnerabilityAssessment = new operations.ServerVulnerabilityAssessmentOperations(this); this.assessmentsMetadata = new operations.AssessmentsMetadata(this); this.assessments = new operations.Assessments(this); this.adaptiveApplicationControls = new operations.AdaptiveApplicationControls(this); this.adaptiveNetworkHardenings = new operations.AdaptiveNetworkHardenings(this); this.allowedConnections = new operations.AllowedConnections(this); this.topology = new operations.Topology(this); + this.alerts = new operations.Alerts(this); this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); + this.securitySolutionsReferenceData = new operations.SecuritySolutionsReferenceDataOperations(this); this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); this.secureScores = new operations.SecureScores(this); this.secureScoreControls = new operations.SecureScoreControls(this); this.secureScoreControlDefinitions = new operations.SecureScoreControlDefinitions(this); + this.securitySolutions = new operations.SecuritySolutions(this); + this.connectors = new operations.Connectors(this); + this.sqlVulnerabilityAssessmentScans = new operations.SqlVulnerabilityAssessmentScans(this); + this.sqlVulnerabilityAssessmentScanResults = new operations.SqlVulnerabilityAssessmentScanResults(this); + this.sqlVulnerabilityAssessmentBaselineRules = new operations.SqlVulnerabilityAssessmentBaselineRules(this); + this.iotDefenderSettings = new operations.IotDefenderSettings(this); + this.iotSensors = new operations.IotSensors(this); + this.devicesForSubscription = new operations.DevicesForSubscription(this); + this.devicesForHub = new operations.DevicesForHub(this); + this.device = new operations.DeviceOperations(this); + this.onPremiseIotSensors = new operations.OnPremiseIotSensors(this); + this.iotSites = new operations.IotSites(this); } } diff --git a/sdk/security/arm-security/src/securityCenterContext.ts b/sdk/security/arm-security/src/securityCenterContext.ts index e740963ad836..dcde26dfb683 100644 --- a/sdk/security/arm-security/src/securityCenterContext.ts +++ b/sdk/security/arm-security/src/securityCenterContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is