diff --git a/sdk/security/arm-security/LICENSE.txt b/sdk/security/arm-security/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/security/arm-security/LICENSE.txt +++ b/sdk/security/arm-security/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index 869cda4b96a1..16cb67aa9e5f 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -1,92 +1,99 @@ ## Azure SecurityCenter SDK for JavaScript -This package contains an isomorphic SDK for SecurityCenter. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for SecurityCenter. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-security` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-security +npm install --save @azure/arm-security @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - Authentication, client creation and list complianceResults as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and list complianceResults as an example written in JavaScript. ##### Sample code -```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"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { SecurityCenter } = require("@azure/arm-security"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SecurityCenter(creds, subscriptionId); - const scope = "testscope"; - client.complianceResults.list(scope).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SecurityCenter(creds, subscriptionId); +const scope = "testscope"; +client.complianceResults.list(scope).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and list complianceResults as an example written in JavaScript. +#### browser - Authentication, client creation, and list complianceResults as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-security sample - - + diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index a34f4122d6f7..f2bdd04a3b90 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -4,8 +4,9 @@ "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", "version": "2.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/securityCenter.js", "types": "./esm/securityCenter.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", 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..983b333d426b 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,9 +15,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -25,53 +25,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -98,6 +139,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..4fac024d16d6 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -96,6 +137,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..e40ad5185eaa 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,10 +13,13 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertList, + AlertSimulatorBundlesRequestProperties, + AlertSimulatorRequestBody, + AlertSimulatorRequestProperties, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -24,53 +27,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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 +127,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +141,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..85425a2d0840 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,10 +13,10 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, AlertsSuppressionRulesList, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -24,53 +24,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..7ec5955c83c1 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..6e6b5c282cd8 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..584b2f099280 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..66bdc211b151 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..cbee8d0d4e77 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +23,92 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..ab08542a6ac3 --- /dev/null +++ b/sdk/security/arm-security/src/models/connectorsMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..4fac024d16d6 --- /dev/null +++ b/sdk/security/arm-security/src/models/deviceOperationsMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..0246a6a6b306 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, DeviceSecurityGroupList, DirectMethodInvokesNotInAllowedRange, EffectiveNetworkSecurityGroups, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, InformationProtectionKeyword, InformationProtectionPolicy, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..40d1e77831fa --- /dev/null +++ b/sdk/security/arm-security/src/models/devicesForHubMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..40d1e77831fa --- /dev/null +++ b/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..8ef96d99c2ca 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,243 +175,6 @@ 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. - */ -export interface Setting { - /** - * Polymorphic Discriminator - */ - kind: "Setting"; - /** - * 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; -} - -/** - * Represents a data export setting - */ -export interface DataExportSettings { - /** - * Polymorphic Discriminator - */ - kind: "DataExportSettings"; - /** - * 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; - /** - * Is the data export setting is enabled - */ - enabled: boolean; -} - /** * The Advanced Threat Protection resource. */ @@ -554,7 +331,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 +455,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. */ @@ -1371,28 +1182,78 @@ export interface RecommendationConfigurationProperties { } /** - * IoT Security solution configuration and resource information. + * Properties of the additional workspaces. */ -export interface IoTSecuritySolutionModel { +export interface AdditionalWorkspacesProperties { /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace resource id */ - readonly id?: string; + workspace?: string; /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace type. Possible values include: 'Sentinel'. Default value: 'Sentinel'. */ - readonly name?: string; + type?: AdditionalWorkspaceType; /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of data types sent to workspace */ - readonly type?: string; + dataTypes?: AdditionalWorkspaceDataType[]; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { /** - * Resource tags + * The identity that created the resource. */ - tags?: { [propertyName: string]: string }; + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + +/** + * IoT Security solution configuration and resource information. + */ +export interface IoTSecuritySolutionModel { + /** + * 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; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; /** * The resource location. */ @@ -1400,7 +1261,7 @@ export interface IoTSecuritySolutionModel { /** * Workspace resource ID */ - workspace: string; + workspace?: string; /** * Resource display name. */ @@ -1434,6 +1295,15 @@ export interface IoTSecuritySolutionModel { * value: 'Disabled'. */ unmaskedIpLoggingStatus?: UnmaskedIpLoggingStatus; + /** + * List of additional workspaces + */ + additionalWorkspaces?: AdditionalWorkspacesProperties[]; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -2165,25 +2035,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 +2065,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 +2293,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 +2324,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 +2430,9 @@ 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', 'SecureScoresSnapshot', 'SecureScoreControls', 'SecureScoreControlsSnapshot', + * 'RegulatoryComplianceAssessment', 'RegulatoryComplianceAssessmentSnapshot' */ eventSource?: EventSource; /** @@ -2731,6 +2623,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 */ @@ -2770,7 +2681,7 @@ export interface SecurityAssessmentMetadataProperties { * Human readable description of what you should do to mitigate this security issue */ remediationDescription?: string; - category?: Category[]; + categories?: Categories[]; /** * The severity level of the assessment. Possible values include: 'Low', 'Medium', 'High' */ @@ -2819,7 +2730,7 @@ export interface SecurityAssessmentMetadata extends Resource { * Human readable description of what you should do to mitigate this security issue */ remediationDescription?: string; - category?: Category[]; + categories?: Categories[]; /** * The severity level of the assessment. Possible values include: 'Low', 'Medium', 'High' */ @@ -2935,9 +2846,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 +2856,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 +2922,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 +2936,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 +2952,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 +2993,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 +3005,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; } /** @@ -3595,6 +3517,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 +3791,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 +3833,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 +3863,7 @@ export interface AzureResourceLink { } /** - * Secure Score Control's Definition information + * Information about the security control. */ export interface SecureScoreControlDefinitionItem extends Resource { /** @@ -3888,14 +3887,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 +3903,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 +3932,4813 @@ 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; /** - * OData select. Optional. + * Whether or not to automatically install Azure Arc (hybrid compute) agents on machines. + * Possible values include: 'On', 'Off' */ - select?: string; + autoProvision: AutoProvision; /** - * OData expand. Optional. + * The name of the resource group where Arc (Hybrid Compute) connectors are connected. */ - expand?: string; + resourceGroupName?: 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 location where the metadata of machines will be stored */ - autoDismissRuleName?: string; -} - -/** - * Optional Parameters. - */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + region?: string; /** - * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + * For a non-Azure machine that is not connected directly to the internet, specify a proxy server + * that the non-Azure machine can use. */ - filter?: 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 IotSecuritySolutionListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { - /** - * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. - */ - filter?: string; -} +export type AuthenticationDetailsPropertiesUnion = AuthenticationDetailsProperties | AwsCredsAuthenticationDetailsProperties | AwAssumeRoleAuthenticationDetailsProperties | GcpCredentialsDetailsProperties; /** - * Optional Parameters. + * Settings for cloud authentication management */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams extends msRest.RequestOptionsBase { +export interface AuthenticationDetailsProperties { /** - * Number of results to retrieve. + * Polymorphic Discriminator */ - top?: number; + 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 IotSecuritySolutionsAnalyticsRecommendationListOptionalParams extends msRest.RequestOptionsBase { +export interface ConnectorSetting extends Resource { /** - * Number of results to retrieve. + * Settings for hybrid compute management. These settings are relevant only for Arc autoProvision + * (Hybrid Compute). */ - top?: number; + 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 TasksListOptionalParams extends msRest.RequestOptionsBase { +export interface AwsCredsAuthenticationDetailsProperties { /** - * OData filter. Optional. + * Polymorphic Discriminator */ - filter?: string; -} + 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 TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { +export interface AwAssumeRoleAuthenticationDetailsProperties { /** - * OData filter. Optional. + * Polymorphic Discriminator */ - filter?: string; + 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 TasksListByResourceGroupOptionalParams 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 RegulatoryComplianceStandardsListOptionalParams 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 RegulatoryComplianceControlsListOptionalParams 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 RegulatoryComplianceAssessmentsListOptionalParams 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 AlertsSuppressionRulesListOptionalParams extends msRest.RequestOptionsBase { +export interface Remediation { /** - * Type of the alert to get rules for + * Remediation description. */ - alertType?: 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 AssessmentsGetOptionalParams extends msRest.RequestOptionsBase { +export interface Baseline { /** - * OData expand. Optional. Possible values include: 'links', 'metadata' + * Expected results. */ - expand?: ExpandEnum; + expectedResults?: string[][]; + /** + * Baseline update time (UTC). + */ + updatedTime?: Date; } /** - * Optional Parameters. + * The rule result adjusted with baseline. */ -export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface BaselineAdjustedResult { + baseline?: Baseline; /** - * Include the policy rules + * Possible values include: 'NonFinding', 'Finding', 'InternalError' */ - includePathRecommendations?: boolean; + status?: RuleStatus; /** - * Return output in a summarized form + * Results the are not in baseline. */ - summary?: boolean; + resultsNotInBaseline?: string[][]; + /** + * Results the are in baseline. + */ + resultsOnlyInBaseline?: string[][]; } /** - * Optional Parameters. + * The rule query details. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams extends msRest.RequestOptionsBase { +export interface QueryCheck { /** - * OData expand. Optional. Possible values include: 'definition' + * The rule query. */ - expand?: ExpandControlsEnum; + query?: string; + /** + * Expected result. + */ + expectedResult?: string[][]; + /** + * Column names of expected result. + */ + columnNames?: string[]; } /** - * Optional Parameters. + * The benchmark references. */ -export interface SecureScoreControlsListOptionalParams extends msRest.RequestOptionsBase { +export interface BenchmarkReference { /** - * OData expand. Optional. Possible values include: 'definition' + * The benchmark name. */ - expand?: ExpandControlsEnum; + benchmark?: string; + /** + * The benchmark reference. + */ + reference?: string; } /** - * An interface representing SecurityCenterOptions. + * vulnerability assessment rule metadata details. */ -export interface SecurityCenterOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface VaRule { + /** + * The rule Id. + */ + 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[]; } /** - * @interface - * List of compliance results response - * @extends Array + * A vulnerability assessment scan result properties for a single rule. */ -export interface ComplianceResultList extends Array { +export interface ScanResultProperties { /** - * The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The rule Id. */ - readonly nextLink?: string; + 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; } /** - * @interface - * List of security alerts - * @extends Array + * A vulnerability assessment scan result for a single rule. */ -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; +export interface ScanResult extends Resource { + properties?: ScanResultProperties; } /** - * @interface - * Subscription settings list. - * @extends Array + * A list of vulnerability assessment scan results. */ -export interface SettingsList 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 device security groups - * @extends Array + * Rule results input. */ -export interface DeviceSecurityGroupList 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 - * List of IoT Security solutions. - * @extends Array + * Rule results properties. */ -export interface IoTSecuritySolutionsList 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 IoT Security solution aggregated alert data. - * @extends Array + * Rule results. */ -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; +export interface RuleResults extends Resource { + properties?: RuleResultsProperties; } /** - * @interface - * List of IoT Security solution aggregated recommendations. - * @extends Array + * A list of rules results. */ -export interface IoTSecurityAggregatedRecommendationList extends Array { +export interface RulesResults { /** - * 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.** + * List of rule results. */ - readonly nextLink?: string; + value?: RuleResults[]; } /** - * @interface - * List of locations where ASC saves your data - * @extends Array + * Rules results input. */ -export interface AscLocationList 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 possible operations for Microsoft.Security resource provider - * @extends Array + * IoT Defender settings */ -export interface OperationList extends Array { +export interface IotDefenderSettingsModel extends Resource { /** - * The 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[]; + /** + * The kind of onboarding for the subscription. Possible values include: 'Default', + * 'MigratedToAzure' + */ + onboardingKind: OnboardingKind; } /** - * @interface - * List of security task recommendations - * @extends Array + * List of IoT Defender settings */ -export interface SecurityTaskList extends Array { +export interface IotDefenderSettingsList { /** - * 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?: IotDefenderSettingsModel[]; } /** - * @interface - * List of all the auto provisioning settings response - * @extends Array + * Information on a specific package download */ -export interface AutoProvisioningSettingList 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 Compliance objects response - * @extends Array - */ -export interface ComplianceList 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 - * Information protection policies response. - * @extends Array + * Information on a specific package upgrade download */ -export interface InformationProtectionPolicyList 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 security contacts response - * @extends Array + * Contains all OVF (virtual machine) full versions for the sensor */ -export interface SecurityContactList 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 workspace settings response - * @extends Array - */ -export interface WorkspaceSettingList 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; + readonly medium?: PackageDownloadInfo[]; + /** + * Line package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly line?: PackageDownloadInfo[]; } /** - * @interface - * List of regulatory compliance standards response - * @extends Array + * Contains full package downloads */ -export interface RegulatoryComplianceStandardList 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 regulatory compliance controls response - * @extends Array + * Contains all Sensor binary downloads */ -export interface RegulatoryComplianceControlList 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 assessment response - * @extends Array + * Contains all OVF (virtual machine) full versions of the Central Manager */ -export interface RegulatoryComplianceAssessmentList 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; + readonly enterprise?: PackageDownloadInfo[]; + /** + * The EnterpriseHighAvailability package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly enterpriseHighAvailability?: PackageDownloadInfo[]; + /** + * The Medium package type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; + /** + * Type of sensor. Possible values include: 'Ot', 'Enterprise' + */ + sensorType?: SensorType; } /** - * @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; + readonly detectionTime?: Date; + /** + * Subnet Classless Inter-Domain Routing + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetCidr?: string; + /** + * Fully qualified domain name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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 JitNetworkAccessPoliciesList. - * @extends Array + * MAC Address information */ -export interface JitNetworkAccessPoliciesList 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 - * An interface representing the DiscoveredSecuritySolutionList. - * @extends Array + * Network interface */ -export interface DiscoveredSecuritySolutionList 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 - * An interface representing the ExternalSecuritySolutionList. - * @extends Array + * Protocol data */ -export interface ExternalSecuritySolutionList 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 scores list - * @extends Array + * Firmware information */ -export interface SecureScoresList 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; + 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; } /** - * @interface - * Page of a secure score controls list - * @extends Array + * Sensor data */ -export interface SecureScoreControlList extends Array { +export interface Sensor { /** - * The URI to fetch the next page. + * Sensor name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly name?: string; + /** + * Zone Name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zone?: string; } /** - * @interface - * Page of a secure score controls definition list - * @extends Array + * Site data */ -export interface SecureScoreControlDefinitionList extends Array { +export interface Site { /** - * The URI to fetch the next page. + * Site display name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly displayName?: string; } /** - * Defines values for ResourceStatus. - * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' - * @readonly - * @enum {string} + * Device model */ -export type ResourceStatus = 'Healthy' | 'NotApplicable' | 'OffByPolicy' | 'NotHealthy'; +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; +} + +/** + * On-premise IoT sensor + */ +export interface OnPremiseIotSensor extends Resource { + /** + * On-premise IoT sensor properties + */ + properties?: any; +} + +/** + * List of on-premise IoT sensors + */ +export interface OnPremiseIotSensorsList { + /** + * List data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: OnPremiseIotSensor[]; +} + +/** + * IoT site model + */ +export interface IotSitesModel extends Resource { + /** + * Display name of the IoT site + */ + displayName: string; + /** + * Tags of the IoT site + */ + tags?: { [propertyName: string]: string }; +} + +/** + * List of IoT sites + */ +export interface IotSitesList { + /** + * List data + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: IotSitesModel[]; +} + +/** + * IoT alert + */ +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; +} + +/** + * IoT alert type. + */ +export interface IotAlertType extends Resource { + /** + * The display name of the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly alertDisplayName?: string; + /** + * 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 severity?: AlertSeverity; + /** + * 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 alert provider or internal partner + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerName?: string; + /** + * 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 productName?: string; + /** + * 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 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[]; +} + +/** + * List of alert types + */ +export interface IotAlertTypeList { + /** + * List data + */ + value?: IotAlertType[]; +} + +/** + * IoT recommendation + */ +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; +} + +/** + * 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[]; +} + +/** + * Contains the possible cases for ResourceIdentifier. + */ +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 { + /** + * Polymorphic Discriminator + */ + type: "ResourceIdentifier"; +} + +/** + * 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; +} + +/** + * 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; +} + +/** + * Contains the possible cases for AlertSimulatorRequestProperties. + */ +export type AlertSimulatorRequestPropertiesUnion = AlertSimulatorRequestProperties | AlertSimulatorBundlesRequestProperties; + +/** + * Describes properties of an alert simulation request + */ +export interface AlertSimulatorRequestProperties { + /** + * Polymorphic Discriminator + */ + kind: "AlertSimulatorRequestProperties"; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + +/** + * Alert Simulator request body. + */ +export interface AlertSimulatorRequestBody { + /** + * Alert Simulator request body data. + */ + properties?: AlertSimulatorRequestPropertiesUnion; +} + +/** + * Simulate alerts according to this bundles. + */ +export interface AlertSimulatorBundlesRequestProperties { + /** + * Polymorphic Discriminator + */ + kind: "Bundles"; + /** + * Bundles list. + */ + bundles?: BundleType[]; +} + +/** + * Contains the possible cases for Setting. + */ +export type SettingUnion = Setting | DataExportSettings | AlertSyncSettings; + +/** + * The kind of the security setting + */ +export interface Setting { + /** + * Polymorphic Discriminator + */ + kind: "Setting"; + /** + * 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; +} + +/** + * Represents a data export setting + */ +export interface DataExportSettings { + /** + * Polymorphic Discriminator + */ + kind: "DataExportSettings"; + /** + * 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; + /** + * Is the data export setting enabled + */ + enabled: boolean; +} + +/** + * Represents an alert sync setting + */ +export interface AlertSyncSettings { + /** + * Polymorphic Discriminator + */ + kind: "AlertSyncSettings"; + /** + * 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; + /** + * Is the alert sync setting enabled + */ + enabled: boolean; +} + +/** + * Configures how to correlate scan data and logs with resources associated with the subscription. + */ +export interface IngestionSetting extends Resource { + /** + * Ingestion setting data + */ + properties?: any; +} + +/** + * Configures how to correlate scan data and logs with resources associated with the subscription. + */ +export interface IngestionSettingToken { + /** + * The token is used for correlating security data and logs with the resources in the + * subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly token?: string; +} + +/** + * Connection string for ingesting security data and logs + */ +export interface IngestionConnectionString { + /** + * The region where ingested logs and data resides + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Connection string value + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; +} + +/** + * Connection string for ingesting security data and logs + */ +export interface ConnectionStrings { + /** + * Connection strings + */ + value: IngestionConnectionString[]; +} + +/** + * Represents a software data + */ +export interface Software extends Resource { + /** + * Unique identifier for the virtual machine in the service. + */ + deviceId?: string; + /** + * Platform of the operating system running on the device. + */ + osPlatform?: string; + /** + * Name of the software vendor. + */ + vendor?: string; + /** + * Name of the software product. + */ + softwareName?: string; + /** + * Version number of the software product. + */ + version?: string; + /** + * End of support status. Possible values include: 'None', 'noLongerSupported', + * 'versionNoLongerSupported', 'upcomingNoLongerSupported', 'upcomingVersionNoLongerSupported' + */ + endOfSupportStatus?: EndOfSupportStatus; + /** + * The end of support date in case the product is upcoming end of support. + */ + endOfSupportDate?: string; + /** + * Number of weaknesses. + */ + numberOfKnownVulnerabilities?: number; + /** + * First time that the software was seen in the device. + */ + firstSeenAt?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +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 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; +} + +/** + * 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; + /** + * 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; + /** + * 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 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; +} + +/** + * 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 + * 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 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 + * 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; +} + +/** + * @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 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 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 + * 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 ingestion settings + * @extends Array + */ +export interface IngestionSettingList 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 + * Represents the software inventory of the virtual machine. + * @extends Array + */ +export interface SoftwaresList 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; +} + +/** + * 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 CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type ReportedSeverity = 'Informational' | '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', + * 'SecureScoresSnapshot', 'SecureScoreControls', 'SecureScoreControlsSnapshot', + * 'RegulatoryComplianceAssessment', 'RegulatoryComplianceAssessmentSnapshot' + * @readonly + * @enum {string} + */ +export type EventSource = 'Assessments' | 'SubAssessments' | 'Alerts' | 'SecureScores' | 'SecureScoresSnapshot' | 'SecureScoreControls' | 'SecureScoreControlsSnapshot' | 'RegulatoryComplianceAssessment' | 'RegulatoryComplianceAssessmentSnapshot'; + +/** + * 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 Categories. + * Possible values include: 'Compute', 'Networking', 'Data', 'IdentityAndAccess', 'IoT' + * @readonly + * @enum {string} + */ +export type Categories = '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 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 OnboardingKind. + * Possible values include: 'Default', 'MigratedToAzure' + * @readonly + * @enum {string} + */ +export type OnboardingKind = 'Default' | 'MigratedToAzure'; + +/** + * 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 SensorType. + * Possible values include: 'Ot', 'Enterprise' + * @readonly + * @enum {string} + */ +export type SensorType = 'Ot' | 'Enterprise'; + +/** + * 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 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 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 BundleType. + * Possible values include: 'AppServices', 'DNS', 'KeyVaults', 'KubernetesService', + * 'ResourceManager', 'SqlServers', 'StorageAccounts', 'VirtualMachines' + * @readonly + * @enum {string} + */ +export type BundleType = 'AppServices' | 'DNS' | 'KeyVaults' | 'KubernetesService' | 'ResourceManager' | 'SqlServers' | 'StorageAccounts' | 'VirtualMachines'; + +/** + * Defines values for EndOfSupportStatus. + * Possible values include: 'None', 'noLongerSupported', 'versionNoLongerSupported', + * 'upcomingNoLongerSupported', 'upcomingVersionNoLongerSupported' + * @readonly + * @enum {string} + */ +export type EndOfSupportStatus = 'None' | 'noLongerSupported' | 'versionNoLongerSupported' | 'upcomingNoLongerSupported' | 'upcomingVersionNoLongerSupported'; + +/** + * 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 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 InformationProtectionPolicyName1 = 'effective' | 'custom'; + +/** + * Defines values for SettingName. + * Possible values include: 'MCAS', 'WDATP', 'Sentinel' + * @readonly + * @enum {string} + */ +export type SettingName = 'MCAS' | 'WDATP' | 'Sentinel'; + +/** + * Defines values for SettingName1. + * Possible values include: 'MCAS', 'WDATP', 'Sentinel' + * @readonly + * @enum {string} + */ +export type SettingName1 = 'MCAS' | 'WDATP' | 'Sentinel'; + +/** + * 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 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; + }; +}; /** - * Defines values for PricingTier. - * Possible values include: 'Free', 'Standard' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type PricingTier = 'Free' | 'Standard'; +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; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +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; + }; +}; + +/** + * Contains response data for the list operation. + */ +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; + }; +}; + +/** + * Contains response data for the get operation. + */ +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; + }; +}; + +/** + * Contains response data for the list operation. + */ +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 ReportedSeverity. - * Possible values include: 'Informational', 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ValueType. - * Possible values include: 'IpCidr', 'String' - * @readonly - * @enum {string} - */ -export type ValueType = 'IpCidr' | 'String'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlert; + }; +}; /** - * Defines values for SecuritySolutionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type SecuritySolutionStatus = 'Enabled' | 'Disabled'; +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ExportData. - * Possible values include: 'RawEvents' - * @readonly - * @enum {string} - */ -export type ExportData = 'RawEvents'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedAlertList; + }; +}; /** - * Defines values for DataSource. - * Possible values include: 'TwinData' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type DataSource = 'TwinData'; +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: 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} - */ -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'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendation; + }; +}; /** - * Defines values for RecommendationConfigStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type RecommendationConfigStatus = 'Disabled' | 'Enabled'; +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for UnmaskedIpLoggingStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type UnmaskedIpLoggingStatus = 'Disabled' | 'Enabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendationList; + }; +}; /** - * Defines values for AutoProvision. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type AutoProvision = 'On' | 'Off'; +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Rank. - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' - * @readonly - * @enum {string} - */ -export type Rank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IoTSecurityAggregatedRecommendationList; + }; +}; /** - * Defines values for AlertNotifications. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type AlertNotifications = 'On' | 'Off'; +export type LocationsListResponse = AscLocationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AlertsToAdmins. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} - */ -export type AlertsToAdmins = 'On' | 'Off'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocationList; + }; +}; /** - * Defines values for State. - * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; +export type LocationsGetResponse = AscLocation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SubAssessmentStatusCode. - * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' - * @readonly - * @enum {string} - */ -export type SubAssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocation; + }; +}; /** - * Defines values for Severity. - * Possible values include: 'Low', 'Medium', 'High' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type Severity = 'Low' | 'Medium' | 'High'; +export type LocationsListNextResponse = AscLocationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EventSource. - * Possible values include: 'Assessments', 'Alerts' - * @readonly - * @enum {string} - */ -export type EventSource = 'Assessments' | 'Alerts'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AscLocationList; + }; +}; /** - * 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 OperationsListResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * 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'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; /** - * Defines values for RuleState. - * Possible values include: 'Enabled', 'Disabled', 'Expired' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type RuleState = 'Enabled' | 'Disabled' | 'Expired'; +export type OperationsListNextResponse = OperationList & { + /** + * 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: OperationList; + }; +}; /** - * Defines values for UserImpact. - * Possible values include: 'Low', 'Moderate', 'High' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type UserImpact = 'Low' | 'Moderate' | 'High'; +export type TasksListResponse = SecurityTaskList & { + /** + * 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: SecurityTaskList; + }; +}; /** - * Defines values for Threats. - * Possible values include: 'accountBreach', 'dataExfiltration', 'dataSpillage', - * 'maliciousInsider', 'elevationOfPrivilege', 'threatResistance', 'missingCoverage', - * 'denialOfService' - * @readonly - * @enum {string} + * Contains response data for the listByHomeRegion operation. */ -export type Threats = 'accountBreach' | 'dataExfiltration' | 'dataSpillage' | 'maliciousInsider' | 'elevationOfPrivilege' | 'threatResistance' | 'missingCoverage' | 'denialOfService'; +export type TasksListByHomeRegionResponse = SecurityTaskList & { + /** + * 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: SecurityTaskList; + }; +}; /** - * Defines values for AssessmentStatusCode. - * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' - * @readonly - * @enum {string} + * Contains response data for the getSubscriptionLevelTask operation. */ -export type AssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; +export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { + /** + * 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: SecurityTask; + }; +}; /** - * Defines values for TransportProtocol. - * Possible values include: 'TCP', 'UDP' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroup operation. */ -export type TransportProtocol = 'TCP' | 'UDP'; +export type TasksListByResourceGroupResponse = SecurityTaskList & { + /** + * 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: SecurityTaskList; + }; +}; /** - * Defines values for Status. - * Possible values include: 'Revoked', 'Initiated' - * @readonly - * @enum {string} + * Contains response data for the getResourceGroupLevelTask operation. */ -export type Status = 'Revoked' | 'Initiated'; +export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { + /** + * 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: SecurityTask; + }; +}; /** - * 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 TasksListNextResponse = 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 AadConnectivityState. - * Possible values include: 'Discovered', 'NotLicensed', 'Connected' - * @readonly - * @enum {string} + * Contains response data for the listByHomeRegionNext operation. */ -export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; +export type TasksListByHomeRegionNextResponse = 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 ExternalSecuritySolutionKind. - * Possible values include: 'CEF', 'ATA', 'AAD' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroupNext operation. */ -export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; +export type TasksListByResourceGroupNextResponse = 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 ControlType. - * Possible values include: 'BuiltIn', 'Custom' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ControlType = 'BuiltIn' | 'Custom'; +export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { + /** + * 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: AutoProvisioningSettingList; + }; +}; /** - * Defines values for ExpandEnum. - * Possible values include: 'links', 'metadata' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ExpandEnum = 'links' | 'metadata'; +export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { + /** + * 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: AutoProvisioningSetting; + }; +}; /** - * Defines values for ExpandControlsEnum. - * Possible values include: 'definition' - * @readonly - * @enum {string} + * Contains response data for the create operation. */ -export type ExpandControlsEnum = 'definition'; +export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { + /** + * 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: AutoProvisioningSetting; + }; +}; /** - * Defines values for Exe. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type Exe = 'Audit' | 'Enforce' | 'None'; +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { + /** + * 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: AutoProvisioningSettingList; + }; +}; /** - * Defines values for Script. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Script = 'Audit' | 'Enforce' | 'None'; +export type CompliancesListResponse = ComplianceList & { + /** + * 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: ComplianceList; + }; +}; /** - * Defines values for Issue. - * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', - * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', - * 'RulesViolatedManually' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type Issue = 'ViolationsAudited' | 'ViolationsBlocked' | 'MsiAndScriptViolationsAudited' | 'MsiAndScriptViolationsBlocked' | 'ExecutableViolationsAudited' | 'RulesViolatedManually'; +export type CompliancesGetResponse = Compliance & { + /** + * 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: Compliance; + }; +}; /** - * Defines values for RecommendationAction. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type RecommendationAction = 'Recommended' | 'Add' | 'Remove'; +export type CompliancesListNextResponse = ComplianceList & { + /** + * 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: ComplianceList; + }; +}; /** - * Defines values for RecommendationAction1. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type RecommendationAction1 = 'Recommended' | 'Add' | 'Remove'; +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { + /** + * 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: InformationProtectionPolicy; + }; +}; /** - * Defines values for Action. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type Action = 'Recommended' | 'Add' | 'Remove'; +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { + /** + * 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: InformationProtectionPolicy; + }; +}; /** - * Defines values for Type. - * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', - * 'BinarySignature', 'VersionAndAboveSignature' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type Type = 'File' | 'FileHash' | 'PublisherSignature' | 'ProductSignature' | 'BinarySignature' | 'VersionAndAboveSignature'; +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { + /** + * 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: InformationProtectionPolicyList; + }; +}; /** - * Defines values for FileType. - * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type FileType = 'Exe' | 'Dll' | 'Msi' | 'Script' | 'Executable' | 'Unknown'; +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { + /** + * 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: InformationProtectionPolicyList; + }; +}; /** - * Defines values for ConfigurationStatus1. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type ConfigurationStatus1 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type SecurityContactsListResponse = SecurityContactList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EnforcementMode. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type EnforcementMode = 'Audit' | 'Enforce' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContactList; + }; +}; /** - * Defines values for ConfigurationStatus2. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ConfigurationStatus2 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type SecurityContactsGetResponse = SecurityContact & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for RecommendationStatus. - * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' - * @readonly - * @enum {string} - */ -export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvailable' | 'NoStatus'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContact; + }; +}; /** - * Defines values for SourceSystem. - * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', - * 'NonAzure_AuditD', 'None' - * @readonly - * @enum {string} + * Contains response data for the create operation. */ -export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; +export type SecurityContactsCreateResponse = SecurityContact & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SettingName. - * Possible values include: 'MCAS', 'WDATP' - * @readonly - * @enum {string} - */ -export type SettingName = 'MCAS' | 'WDATP'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContact; + }; +}; /** - * Defines values for SettingName1. - * Possible values include: 'MCAS', 'WDATP' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type SettingName1 = 'MCAS' | 'WDATP'; +export type SecurityContactsUpdateResponse = SecurityContact & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TaskUpdateActionType. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} - */ -export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SecurityContact; + }; +}; /** - * Defines values for TaskUpdateActionType1. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; +export type SecurityContactsListNextResponse = SecurityContactList & { + /** + * 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: SecurityContactList; + }; +}; /** - * 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 WorkspaceSettingsListResponse = WorkspaceSettingList & { + /** + * 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: WorkspaceSettingList; + }; +}; /** - * Defines values for InformationProtectionPolicyName1. - * Possible values include: 'effective', 'custom' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type InformationProtectionPolicyName1 = 'effective' | 'custom'; +export type WorkspaceSettingsGetResponse = WorkspaceSetting & { + /** + * 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: WorkspaceSetting; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type ComplianceResultsListResponse = ComplianceResultList & { +export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5135,14 +8751,14 @@ export type ComplianceResultsListResponse = ComplianceResultList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResultList; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ComplianceResultsGetResponse = ComplianceResult & { +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -5155,14 +8771,14 @@ export type ComplianceResultsGetResponse = ComplianceResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResult; + parsedBody: WorkspaceSetting; }; }; /** * Contains response data for the listNext operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList & { +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The underlying HTTP response. */ @@ -5175,14 +8791,14 @@ export type ComplianceResultsListNextResponse = ComplianceResultList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceResultList; + parsedBody: WorkspaceSettingList; }; }; /** * Contains response data for the list operation. */ -export type PricingsListResponse = PricingList & { +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -5195,14 +8811,14 @@ export type PricingsListResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: RegulatoryComplianceStandardList; }; }; /** * Contains response data for the get operation. */ -export type PricingsGetResponse = Pricing & { +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { /** * The underlying HTTP response. */ @@ -5215,14 +8831,14 @@ export type PricingsGetResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: RegulatoryComplianceStandard; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type PricingsUpdateResponse = Pricing & { +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -5235,14 +8851,14 @@ export type PricingsUpdateResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: RegulatoryComplianceStandardList; }; }; /** * Contains response data for the list operation. */ -export type AlertsListResponse = AlertList & { +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -5255,14 +8871,14 @@ export type AlertsListResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type AlertsListByResourceGroupResponse = AlertList & { +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { /** * The underlying HTTP response. */ @@ -5275,14 +8891,14 @@ export type AlertsListByResourceGroupResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceControl; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegion operation. + * Contains response data for the listNext operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -5295,14 +8911,14 @@ export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegion operation. + * Contains response data for the list operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -5315,14 +8931,14 @@ export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the getSubscriptionLevelAlert operation. + * Contains response data for the get operation. */ -export type AlertsGetSubscriptionLevelAlertResponse = Alert & { +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { /** * The underlying HTTP response. */ @@ -5335,14 +8951,14 @@ export type AlertsGetSubscriptionLevelAlertResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: RegulatoryComplianceAssessment; }; }; /** - * Contains response data for the getResourceGroupLevelAlerts operation. + * Contains response data for the listNext operation. */ -export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -5355,14 +8971,34 @@ export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listAll operation. */ -export type AlertsListNextResponse = AlertList & { +export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { + /** + * 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: SecuritySubAssessmentList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SubAssessmentsListResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5375,14 +9011,14 @@ export type AlertsListNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList & { +export type SubAssessmentsGetResponse = SecuritySubAssessment & { /** * The underlying HTTP response. */ @@ -5395,14 +9031,14 @@ export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessment; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegionNext operation. + * Contains response data for the listAllNext operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & { +export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5415,14 +9051,14 @@ export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegionNext operation. + * Contains response data for the listNext operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & { +export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { /** * The underlying HTTP response. */ @@ -5435,14 +9071,14 @@ export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecuritySubAssessmentList; }; }; /** * Contains response data for the list operation. */ -export type SettingsListResponse = SettingsList & { +export type AutomationsListResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5455,14 +9091,14 @@ export type SettingsListResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type SettingsGetResponse = SettingUnion & { +export type AutomationsListByResourceGroupResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5475,14 +9111,14 @@ export type SettingsGetResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: AutomationList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type SettingsUpdateResponse = SettingUnion & { +export type AutomationsGetResponse = Automation & { /** * The underlying HTTP response. */ @@ -5495,14 +9131,14 @@ export type SettingsUpdateResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: Automation; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SettingsListNextResponse = SettingsList & { +export type AutomationsCreateOrUpdateResponse = Automation & { /** * The underlying HTTP response. */ @@ -5515,14 +9151,14 @@ export type SettingsListNextResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: Automation; }; }; /** - * Contains response data for the get operation. + * Contains response data for the validate operation. */ -export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { +export type AutomationsValidateResponse = AutomationValidationStatus & { /** * The underlying HTTP response. */ @@ -5535,14 +9171,14 @@ export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSettin /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: AutomationValidationStatus; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { +export type AutomationsListNextResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5555,14 +9191,14 @@ export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSet /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: AutomationList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { +export type AutomationsListByResourceGroupNextResponse = AutomationList & { /** * The underlying HTTP response. */ @@ -5575,14 +9211,14 @@ export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroupList; + parsedBody: AutomationList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { +export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { /** * The underlying HTTP response. */ @@ -5595,14 +9231,14 @@ export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroup; + parsedBody: AlertsSuppressionRulesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { +export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { /** * The underlying HTTP response. */ @@ -5615,14 +9251,14 @@ export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroup; + parsedBody: AlertsSuppressionRule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { +export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { /** * The underlying HTTP response. */ @@ -5635,14 +9271,14 @@ export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { /** * The response body as parsed JSON or XML */ - parsedBody: DeviceSecurityGroupList; + parsedBody: AlertsSuppressionRule; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList & { +export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { /** * The underlying HTTP response. */ @@ -5655,14 +9291,14 @@ export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutions /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: AlertsSuppressionRulesList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByExtendedResource operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList & { +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { /** * The underlying HTTP response. */ @@ -5675,14 +9311,14 @@ export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: ServerVulnerabilityAssessmentsList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -5695,14 +9331,14 @@ export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: ServerVulnerabilityAssessment; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel & { +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -5715,14 +9351,14 @@ export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: ServerVulnerabilityAssessment; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5735,14 +9371,14 @@ export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionModel; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList & { +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -5755,14 +9391,14 @@ export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolut /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listBySubscription operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList & { +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5775,14 +9411,14 @@ export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolu /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getInSubscription operation. */ -export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList & { +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -5795,14 +9431,14 @@ export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyt /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionAnalyticsModelList; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createInSubscription operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel & { +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -5815,14 +9451,14 @@ export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyti /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionAnalyticsModel; + parsedBody: SecurityAssessmentMetadata; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList & { +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5835,14 +9471,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecuri /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { +export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -5855,14 +9491,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlert; + parsedBody: SecurityAssessmentMetadataList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { +export type AssessmentsListResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -5875,14 +9511,14 @@ export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSe /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecurityAssessmentList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { +export type AssessmentsGetResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -5895,14 +9531,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurity /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendation; + parsedBody: SecurityAssessment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { +export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -5915,14 +9551,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecurityAssessment; }; }; /** * Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { +export type AssessmentsListNextResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -5935,14 +9571,14 @@ export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSec /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecurityAssessmentList; }; }; /** * Contains response data for the list operation. */ -export type LocationsListResponse = AscLocationList & { +export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups & { /** * The underlying HTTP response. */ @@ -5955,14 +9591,14 @@ export type LocationsListResponse = AscLocationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: AdaptiveApplicationControlGroups; }; }; /** * Contains response data for the get operation. */ -export type LocationsGetResponse = AscLocation & { +export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup & { /** * The underlying HTTP response. */ @@ -5975,14 +9611,14 @@ export type LocationsGetResponse = AscLocation & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocation; + parsedBody: AdaptiveApplicationControlGroup; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the put operation. */ -export type LocationsListNextResponse = AscLocationList & { +export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup & { /** * The underlying HTTP response. */ @@ -5995,14 +9631,14 @@ export type LocationsListNextResponse = AscLocationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: AdaptiveApplicationControlGroup; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByExtendedResource operation. */ -export type OperationsListResponse = OperationList & { +export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { /** * The underlying HTTP response. */ @@ -6015,14 +9651,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: AdaptiveNetworkHardeningsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type OperationsListNextResponse = OperationList & { +export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { /** * The underlying HTTP response. */ @@ -6035,14 +9671,14 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: AdaptiveNetworkHardening; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByExtendedResourceNext operation. */ -export type TasksListResponse = SecurityTaskList & { +export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { /** * The underlying HTTP response. */ @@ -6055,14 +9691,14 @@ export type TasksListResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AdaptiveNetworkHardeningsList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type TasksListByHomeRegionResponse = SecurityTaskList & { +export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6075,14 +9711,14 @@ export type TasksListByHomeRegionResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the getSubscriptionLevelTask operation. + * Contains response data for the listByHomeRegion operation. */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6095,14 +9731,14 @@ export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type TasksListByResourceGroupResponse = SecurityTaskList & { +export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { /** * The underlying HTTP response. */ @@ -6115,14 +9751,14 @@ export type TasksListByResourceGroupResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AllowedConnectionsResource; }; }; /** - * Contains response data for the getResourceGroupLevelTask operation. + * Contains response data for the listNext operation. */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { +export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6135,14 +9771,14 @@ export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type TasksListNextResponse = SecurityTaskList & { +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -6155,14 +9791,14 @@ export type TasksListNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the list operation. */ -export type TasksListByHomeRegionNextResponse = SecurityTaskList & { +export type TopologyListResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6175,14 +9811,14 @@ export type TasksListByHomeRegionNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type TasksListByResourceGroupNextResponse = SecurityTaskList & { +export type TopologyListByHomeRegionResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6195,14 +9831,14 @@ export type TasksListByResourceGroupNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { +export type TopologyGetResponse = TopologyResource & { /** * The underlying HTTP response. */ @@ -6215,14 +9851,14 @@ export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: TopologyResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { +export type TopologyListNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6235,14 +9871,14 @@ export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: TopologyList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { +export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -6255,14 +9891,14 @@ export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6275,14 +9911,14 @@ export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingLi /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByRegion operation. */ -export type CompliancesListResponse = ComplianceList & { +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6295,14 +9931,14 @@ export type CompliancesListResponse = ComplianceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type CompliancesGetResponse = Compliance & { +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6315,14 +9951,14 @@ export type CompliancesGetResponse = Compliance & { /** * The response body as parsed JSON or XML */ - parsedBody: Compliance; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupAndRegion operation. */ -export type CompliancesListNextResponse = ComplianceList & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6335,14 +9971,14 @@ export type CompliancesListNextResponse = ComplianceList & { /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** * Contains response data for the get operation. */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -6355,14 +9991,14 @@ export type InformationProtectionPoliciesGetResponse = InformationProtectionPoli /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: JitNetworkAccessPolicy; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -6375,14 +10011,14 @@ export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationPro /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: JitNetworkAccessPolicy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the initiate operation. */ -export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { /** * The underlying HTTP response. */ @@ -6395,14 +10031,14 @@ export type InformationProtectionPoliciesListResponse = InformationProtectionPol /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: JitNetworkAccessRequest; }; }; /** * Contains response data for the listNext operation. */ -export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6415,14 +10051,14 @@ export type InformationProtectionPoliciesListNextResponse = InformationProtectio /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByRegionNext operation. */ -export type SecurityContactsListResponse = SecurityContactList & { +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6435,14 +10071,14 @@ export type SecurityContactsListResponse = SecurityContactList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type SecurityContactsGetResponse = SecurityContact & { +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6455,14 +10091,14 @@ export type SecurityContactsGetResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type SecurityContactsCreateResponse = SecurityContact & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -6475,14 +10111,14 @@ export type SecurityContactsCreateResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type SecurityContactsUpdateResponse = SecurityContact & { +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6495,14 +10131,14 @@ export type SecurityContactsUpdateResponse = SecurityContact & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type SecurityContactsListNextResponse = SecurityContactList & { +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6515,14 +10151,14 @@ export type SecurityContactsListNextResponse = SecurityContactList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type WorkspaceSettingsListResponse = WorkspaceSettingList & { +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { /** * The underlying HTTP response. */ @@ -6535,14 +10171,14 @@ export type WorkspaceSettingsListResponse = WorkspaceSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: DiscoveredSecuritySolution; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type WorkspaceSettingsGetResponse = WorkspaceSetting & { +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6555,14 +10191,14 @@ export type WorkspaceSettingsGetResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6575,14 +10211,14 @@ export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList & { /** * The underlying HTTP response. */ @@ -6595,14 +10231,14 @@ export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: SecuritySolutionsReferenceDataList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList & { /** * The underlying HTTP response. */ @@ -6615,14 +10251,14 @@ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: SecuritySolutionsReferenceDataList; }; }; /** * Contains response data for the list operation. */ -export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6635,14 +10271,14 @@ export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStan /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandardList; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegion operation. */ -export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6655,14 +10291,14 @@ export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStand /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandard; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { /** * The underlying HTTP response. */ @@ -6675,14 +10311,14 @@ export type RegulatoryComplianceStandardsListNextResponse = RegulatoryCompliance /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceStandardList; + parsedBody: ExternalSecuritySolutionUnion; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6695,14 +10331,14 @@ export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceContr /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControlList; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6715,14 +10351,14 @@ export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceContro /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControl; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { +export type SecureScoresListResponse = SecureScoresList & { /** * The underlying HTTP response. */ @@ -6735,14 +10371,14 @@ export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceC /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceControlList; + parsedBody: SecureScoresList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { +export type SecureScoresGetResponse = SecureScoreItem & { /** * The underlying HTTP response. */ @@ -6755,14 +10391,14 @@ export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAs /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessmentList; + parsedBody: SecureScoreItem; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { +export type SecureScoresListNextResponse = SecureScoresList & { /** * The underlying HTTP response. */ @@ -6775,14 +10411,14 @@ export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAss /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessment; + parsedBody: SecureScoresList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listBySecureScore operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6795,14 +10431,14 @@ export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplian /** * The response body as parsed JSON or XML */ - parsedBody: RegulatoryComplianceAssessmentList; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the list operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { +export type SecureScoreControlsListResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6815,14 +10451,14 @@ export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = Server /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentsList; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySecureScoreNext operation. */ -export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6835,14 +10471,14 @@ export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssess /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { +export type SecureScoreControlsListNextResponse = SecureScoreControlList & { /** * The underlying HTTP response. */ @@ -6855,14 +10491,14 @@ export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerab /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: SecureScoreControlList; }; }; /** - * Contains response data for the listAll operation. + * Contains response data for the list operation. */ -export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6875,14 +10511,14 @@ export type SubAssessmentsListAllResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type SubAssessmentsListResponse = SecuritySubAssessmentList & { +export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6895,14 +10531,14 @@ export type SubAssessmentsListResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type SubAssessmentsGetResponse = SecuritySubAssessment & { +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6915,14 +10551,14 @@ export type SubAssessmentsGetResponse = SecuritySubAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessment; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the listAllNext operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { /** * The underlying HTTP response. */ @@ -6935,14 +10571,14 @@ export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecureScoreControlDefinitionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { +export type SecuritySolutionsListResponse = SecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6955,14 +10591,14 @@ export type SubAssessmentsListNextResponse = SecuritySubAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecuritySubAssessmentList; + parsedBody: SecuritySolutionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AutomationsListResponse = AutomationList & { +export type SecuritySolutionsGetResponse = SecuritySolution & { /** * The underlying HTTP response. */ @@ -6975,14 +10611,14 @@ export type AutomationsListResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: SecuritySolution; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList & { +export type SecuritySolutionsListNextResponse = SecuritySolutionList & { /** * The underlying HTTP response. */ @@ -6995,14 +10631,14 @@ export type AutomationsListByResourceGroupResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: SecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AutomationsGetResponse = Automation & { +export type ConnectorsListResponse = ConnectorSettingList & { /** * The underlying HTTP response. */ @@ -7015,14 +10651,14 @@ export type AutomationsGetResponse = Automation & { /** * The response body as parsed JSON or XML */ - parsedBody: Automation; + parsedBody: ConnectorSettingList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type AutomationsCreateOrUpdateResponse = Automation & { +export type ConnectorsGetResponse = ConnectorSetting & { /** * The underlying HTTP response. */ @@ -7035,14 +10671,14 @@ export type AutomationsCreateOrUpdateResponse = Automation & { /** * The response body as parsed JSON or XML */ - parsedBody: Automation; + parsedBody: ConnectorSetting; }; }; /** - * Contains response data for the validate operation. + * Contains response data for the createOrUpdate operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus & { +export type ConnectorsCreateOrUpdateResponse = ConnectorSetting & { /** * The underlying HTTP response. */ @@ -7055,14 +10691,14 @@ export type AutomationsValidateResponse = AutomationValidationStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationValidationStatus; + parsedBody: ConnectorSetting; }; }; /** * Contains response data for the listNext operation. */ -export type AutomationsListNextResponse = AutomationList & { +export type ConnectorsListNextResponse = ConnectorSettingList & { /** * The underlying HTTP response. */ @@ -7075,14 +10711,14 @@ export type AutomationsListNextResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: ConnectorSettingList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList & { +export type SqlVulnerabilityAssessmentScansGetResponse = Scan & { /** * The underlying HTTP response. */ @@ -7095,14 +10731,14 @@ export type AutomationsListByResourceGroupNextResponse = AutomationList & { /** * The response body as parsed JSON or XML */ - parsedBody: AutomationList; + parsedBody: Scan; }; }; /** * Contains response data for the list operation. */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { +export type SqlVulnerabilityAssessmentScansListResponse = Scans & { /** * The underlying HTTP response. */ @@ -7115,14 +10751,14 @@ export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRulesList; + parsedBody: Scans; }; }; /** * Contains response data for the get operation. */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { +export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult & { /** * The underlying HTTP response. */ @@ -7135,14 +10771,14 @@ export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRule; + parsedBody: ScanResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { +export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults & { /** * The underlying HTTP response. */ @@ -7155,14 +10791,14 @@ export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRule; + parsedBody: ScanResults; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults & { /** * The underlying HTTP response. */ @@ -7175,14 +10811,14 @@ export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList /** * The response body as parsed JSON or XML */ - parsedBody: AlertsSuppressionRulesList; + parsedBody: RuleResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { +export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults & { /** * The underlying HTTP response. */ @@ -7195,14 +10831,14 @@ export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: RuleResults; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { +export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults & { /** * The underlying HTTP response. */ @@ -7215,14 +10851,14 @@ export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: RulesResults; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the add operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { +export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults & { /** * The underlying HTTP response. */ @@ -7235,14 +10871,14 @@ export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMe /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: RulesResults; }; }; /** - * Contains response data for the getInSubscription operation. + * Contains response data for the list operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { +export type IotDefenderSettingsListResponse = IotDefenderSettingsList & { /** * The underlying HTTP response. */ @@ -7255,14 +10891,14 @@ export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMet /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: IotDefenderSettingsList; }; }; /** - * Contains response data for the createInSubscription operation. + * Contains response data for the get operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { +export type IotDefenderSettingsGetResponse = IotDefenderSettingsModel & { /** * The underlying HTTP response. */ @@ -7275,14 +10911,14 @@ export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessment /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadata; + parsedBody: IotDefenderSettingsModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { +export type IotDefenderSettingsCreateOrUpdateResponse = IotDefenderSettingsModel & { /** * The underlying HTTP response. */ @@ -7295,14 +10931,14 @@ export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + parsedBody: IotDefenderSettingsModel; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the packageDownloadsMethod operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { +export type IotDefenderSettingsPackageDownloadsMethodResponse = PackageDownloads & { /** * The underlying HTTP response. */ @@ -7315,14 +10951,40 @@ export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessme /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentMetadataList; + 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 AssessmentsListResponse = SecurityAssessmentList & { +export type IotSensorsListResponse = IotSensorsList & { /** * The underlying HTTP response. */ @@ -7335,14 +10997,14 @@ export type AssessmentsListResponse = SecurityAssessmentList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessmentList; + parsedBody: IotSensorsList; }; }; /** * Contains response data for the get operation. */ -export type AssessmentsGetResponse = SecurityAssessment & { +export type IotSensorsGetResponse = IotSensorsModel & { /** * The underlying HTTP response. */ @@ -7355,14 +11017,14 @@ export type AssessmentsGetResponse = SecurityAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessment; + parsedBody: IotSensorsModel; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { +export type IotSensorsCreateOrUpdateResponse = IotSensorsModel & { /** * The underlying HTTP response. */ @@ -7375,34 +11037,66 @@ export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityAssessment; + parsedBody: IotSensorsModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the downloadActivation operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList & { +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: SecurityAssessmentList; - }; +/** + * 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 list operation. */ -export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { +export type DevicesForSubscriptionListResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7415,14 +11109,14 @@ export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroups; + parsedBody: DeviceList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { +export type DevicesForSubscriptionListNextResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7435,14 +11129,14 @@ export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroup; + parsedBody: DeviceList; }; }; /** - * Contains response data for the put operation. + * Contains response data for the list operation. */ -export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { +export type DevicesForHubListResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7455,14 +11149,14 @@ export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: AppWhitelistingGroup; + parsedBody: DeviceList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the listNext operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { +export type DevicesForHubListNextResponse = DeviceList & { /** * The underlying HTTP response. */ @@ -7475,14 +11169,14 @@ export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNe /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardeningsList; + parsedBody: DeviceList; }; }; /** * Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { +export type DeviceGetResponse = Device & { /** * The underlying HTTP response. */ @@ -7495,14 +11189,14 @@ export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardening; + parsedBody: Device; }; }; /** - * Contains response data for the listByExtendedResourceNext operation. + * Contains response data for the list operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { +export type OnPremiseIotSensorsListResponse = OnPremiseIotSensorsList & { /** * The underlying HTTP response. */ @@ -7515,14 +11209,14 @@ export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = Adapti /** * The response body as parsed JSON or XML */ - parsedBody: AdaptiveNetworkHardeningsList; + parsedBody: OnPremiseIotSensorsList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList & { +export type OnPremiseIotSensorsGetResponse = OnPremiseIotSensor & { /** * The underlying HTTP response. */ @@ -7535,14 +11229,14 @@ export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: OnPremiseIotSensor; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the createOrUpdate operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { +export type OnPremiseIotSensorsCreateOrUpdateResponse = OnPremiseIotSensor & { /** * The underlying HTTP response. */ @@ -7555,54 +11249,66 @@ export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: OnPremiseIotSensor; }; }; /** - * Contains response data for the get operation. + * Contains response data for the downloadActivation operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { +export type OnPremiseIotSensorsDownloadActivationResponse = { /** - * The underlying HTTP response. + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + blobBody?: Promise; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AllowedConnectionsResource; - }; + /** + * 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 listNext operation. + * Contains response data for the downloadResetPassword operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { +export type OnPremiseIotSensorsDownloadResetPasswordResponse = { /** - * The underlying HTTP response. + * BROWSER ONLY + * + * The response body as a browser Blob. + * Always undefined in node.js. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + blobBody?: Promise; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AllowedConnectionsList; - }; + /** + * 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 AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { +export type IotSitesListResponse = IotSitesList & { /** * The underlying HTTP response. */ @@ -7615,14 +11321,14 @@ export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsL /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: IotSitesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type TopologyListResponse = TopologyList & { +export type IotSitesGetResponse = IotSitesModel & { /** * The underlying HTTP response. */ @@ -7635,14 +11341,14 @@ export type TopologyListResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotSitesModel; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the createOrUpdate operation. */ -export type TopologyListByHomeRegionResponse = TopologyList & { +export type IotSitesCreateOrUpdateResponse = IotSitesModel & { /** * The underlying HTTP response. */ @@ -7655,14 +11361,14 @@ export type TopologyListByHomeRegionResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotSitesModel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type TopologyGetResponse = TopologyResource & { +export type IotAlertsListResponse = IotAlertListModel & { /** * The underlying HTTP response. */ @@ -7675,14 +11381,14 @@ export type TopologyGetResponse = TopologyResource & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyResource; + parsedBody: IotAlertListModel; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type TopologyListNextResponse = TopologyList & { +export type IotAlertsGetResponse = IotAlertModel & { /** * The underlying HTTP response. */ @@ -7695,14 +11401,14 @@ export type TopologyListNextResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotAlertModel; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList & { +export type IotAlertsListNextResponse = IotAlertListModel & { /** * The underlying HTTP response. */ @@ -7715,14 +11421,14 @@ export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: IotAlertListModel; }; }; /** * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { +export type IotAlertTypesListResponse = IotAlertTypeList & { /** * The underlying HTTP response. */ @@ -7735,14 +11441,14 @@ export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotAlertTypeList; }; }; /** - * Contains response data for the listByRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { +export type IotAlertTypesGetResponse = IotAlertType & { /** * The underlying HTTP response. */ @@ -7755,14 +11461,14 @@ export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPolic /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotAlertType; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { +export type IotRecommendationsListResponse = IotRecommendationListModel & { /** * The underlying HTTP response. */ @@ -7775,14 +11481,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAcce /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotRecommendationListModel; }; }; /** - * Contains response data for the listByResourceGroupAndRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { +export type IotRecommendationsGetResponse = IotRecommendationModel & { /** * The underlying HTTP response. */ @@ -7795,14 +11501,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNe /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: IotRecommendationModel; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { +export type IotRecommendationsListNextResponse = IotRecommendationListModel & { /** * The underlying HTTP response. */ @@ -7815,14 +11521,14 @@ export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: IotRecommendationListModel; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { +export type IotRecommendationTypesListResponse = IotRecommendationTypeList & { /** * The underlying HTTP response. */ @@ -7835,14 +11541,14 @@ export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPol /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: IotRecommendationTypeList; }; }; /** - * Contains response data for the initiate operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { +export type IotRecommendationTypesGetResponse = IotRecommendationType & { /** * The underlying HTTP response. */ @@ -7855,14 +11561,14 @@ export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessRequest; + parsedBody: IotRecommendationType; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7875,14 +11581,14 @@ export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesL /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByRegionNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListByResourceGroupResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7895,14 +11601,14 @@ export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessP /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listSubscriptionLevelByRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListSubscriptionLevelByRegionResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7915,14 +11621,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetwork /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByResourceGroupAndRegionNext operation. + * Contains response data for the listResourceGroupLevelByRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { +export type AlertsListResourceGroupLevelByRegionResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7935,14 +11641,14 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = J /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: AlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getSubscriptionLevel operation. */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { +export type AlertsGetSubscriptionLevelResponse = Alert & { /** * The underlying HTTP response. */ @@ -7955,14 +11661,14 @@ export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: Alert; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the getResourceGroupLevel operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { +export type AlertsGetResourceGroupLevelResponse = Alert & { /** * The underlying HTTP response. */ @@ -7975,14 +11681,14 @@ export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecu /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: Alert; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { +export type AlertsListNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -7995,14 +11701,14 @@ export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolution; + parsedBody: AlertList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { +export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -8015,14 +11721,14 @@ export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolu /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listSubscriptionLevelByRegionNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { +export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -8035,14 +11741,14 @@ export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = Discovered /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listResourceGroupLevelByRegionNext operation. */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { +export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -8055,14 +11761,14 @@ export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: AlertList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { +export type SettingsListResponse = SettingsList & { /** * The underlying HTTP response. */ @@ -8075,14 +11781,14 @@ export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecurity /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SettingsList; }; }; /** * Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { +export type SettingsGetResponse = SettingUnion & { /** * The underlying HTTP response. */ @@ -8095,14 +11801,14 @@ export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionUnion; + parsedBody: SettingUnion; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { +export type SettingsUpdateResponse = SettingUnion & { /** * The underlying HTTP response. */ @@ -8115,14 +11821,14 @@ export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolution /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SettingUnion; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { +export type SettingsListNextResponse = SettingsList & { /** * The underlying HTTP response. */ @@ -8135,14 +11841,14 @@ export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecu /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SettingsList; }; }; /** * Contains response data for the list operation. */ -export type SecureScoresListResponse = SecureScoresList & { +export type IngestionSettingsListResponse = IngestionSettingList & { /** * The underlying HTTP response. */ @@ -8155,14 +11861,14 @@ export type SecureScoresListResponse = SecureScoresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoresList; + parsedBody: IngestionSettingList; }; }; /** * Contains response data for the get operation. */ -export type SecureScoresGetResponse = SecureScoreItem & { +export type IngestionSettingsGetResponse = IngestionSetting & { /** * The underlying HTTP response. */ @@ -8175,14 +11881,14 @@ export type SecureScoresGetResponse = SecureScoreItem & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreItem; + parsedBody: IngestionSetting; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type SecureScoresListNextResponse = SecureScoresList & { +export type IngestionSettingsCreateResponse = IngestionSetting & { /** * The underlying HTTP response. */ @@ -8195,14 +11901,14 @@ export type SecureScoresListNextResponse = SecureScoresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoresList; + parsedBody: IngestionSetting; }; }; /** - * Contains response data for the listBySecureScore operation. + * Contains response data for the listTokens operation. */ -export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { +export type IngestionSettingsListTokensResponse = IngestionSettingToken & { /** * The underlying HTTP response. */ @@ -8215,14 +11921,14 @@ export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlLis /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: IngestionSettingToken; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listConnectionStrings operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList & { +export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings & { /** * The underlying HTTP response. */ @@ -8235,14 +11941,14 @@ export type SecureScoreControlsListResponse = SecureScoreControlList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: ConnectionStrings; }; }; /** - * Contains response data for the listBySecureScoreNext operation. + * Contains response data for the listNext operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { +export type IngestionSettingsListNextResponse = IngestionSettingList & { /** * The underlying HTTP response. */ @@ -8255,14 +11961,14 @@ export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreContro /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: IngestionSettingList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByExtendedResource operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList & { +export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8275,14 +11981,14 @@ export type SecureScoreControlsListNextResponse = SecureScoreControlList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlList; + parsedBody: SoftwaresList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listBySubscription operation. */ -export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8295,14 +12001,14 @@ export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefini /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: SoftwaresList; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the get operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesGetResponse = Software & { /** * The underlying HTTP response. */ @@ -8315,14 +12021,14 @@ export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScor /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: Software; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByExtendedResourceNext operation. */ -export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8335,14 +12041,14 @@ export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDe /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: SoftwaresList; }; }; /** * Contains response data for the listBySubscriptionNext operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { +export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList & { /** * The underlying HTTP response. */ @@ -8355,6 +12061,6 @@ export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = Secure /** * The response body as parsed JSON or XML */ - parsedBody: SecureScoreControlDefinitionList; + parsedBody: SoftwaresList; }; }; diff --git a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts index 817150abe35f..311426e1e10c 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, InformationProtectionPolicyList, InformationType, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts b/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts new file mode 100644 index 000000000000..3782812f79e1 --- /dev/null +++ b/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts @@ -0,0 +1,147 @@ +/* + * 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, + AlertSyncSettings, + AllowlistCustomAlertRule, + AmqpC2DMessagesNotInAllowedRange, + AmqpC2DRejectedMessagesNotInAllowedRange, + AmqpD2CMessagesNotInAllowedRange, + AscLocation, + AssessmentLinks, + AssessmentStatus, + AuthenticationDetailsProperties, + AutoProvisioningSetting, + AwAssumeRoleAuthenticationDetailsProperties, + AwsCredsAuthenticationDetailsProperties, + AzureResourceDetails, + AzureResourceIdentifier, + AzureResourceLink, + Baseline, + BaselineAdjustedResult, + BaseResource, + BenchmarkReference, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + ConnectionFromIpNotAllowed, + ConnectionStrings, + ConnectionToIpNotAllowed, + ConnectorSetting, + ContainerRegistryVulnerabilityProperties, + CustomAlertRule, + CVE, + CVSS, + DataExportSettings, + DenylistCustomAlertRule, + Device, + DeviceSecurityGroup, + DirectMethodInvokesNotInAllowedRange, + EffectiveNetworkSecurityGroups, + FailedLocalLoginsNotInAllowedRange, + FileUploadsNotInAllowedRange, + Firmware, + GcpCredentialsDetailsProperties, + HttpC2DMessagesNotInAllowedRange, + HttpC2DRejectedMessagesNotInAllowedRange, + HttpD2CMessagesNotInAllowedRange, + HybridComputeSettingsProperties, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + IngestionConnectionString, + IngestionSetting, + IngestionSettingList, + IngestionSettingToken, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + 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..062f7953b60c --- /dev/null +++ b/sdk/security/arm-security/src/models/iotAlertTypesMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotAlertTypeList, + IotDefenderSettingsModel, + 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, + Software, + 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..c05b8763c45d --- /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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertListModel, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..4170abcc4b17 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts @@ -0,0 +1,153 @@ +/* + * 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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsList, + IotDefenderSettingsModel, + 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, + Software, + 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..89454e2f7d7f --- /dev/null +++ b/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..ea269f0ce54d --- /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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..b0a2893e6450 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..674dd3d26dbe 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,10 +8,12 @@ export { discriminators, + AdditionalWorkspacesProperties, CloudError, IoTSecuritySolutionModel, IoTSecuritySolutionsList, RecommendationConfigurationProperties, + SystemData, TagsResource, UpdateIotSecuritySolutionData, UserDefinedResourcesProperties 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..5376ebbb2d56 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotSensorsMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..a4cbe1be32f2 --- /dev/null +++ b/sdk/security/arm-security/src/models/iotSitesMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..9182a818b048 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -24,53 +24,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..1f67bac58545 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,44 +279,58 @@ export const PricingList: msRest.CompositeMapper = { } }; -export const AlertEntity: msRest.CompositeMapper = { - serializedName: "AlertEntity", +export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { + serializedName: "AdvancedThreatProtectionSetting", type: { name: "Composite", - className: "AlertEntity", + className: "AdvancedThreatProtectionSetting", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + ...Resource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String" + name: "Boolean" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const AlertConfidenceReason: msRest.CompositeMapper = { - serializedName: "AlertConfidenceReason", +export const CustomAlertRule: msRest.CompositeMapper = { + serializedName: "CustomAlertRule", type: { name: "Composite", - className: "AlertConfidenceReason", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType" + }, + uberParent: "CustomAlertRule", + className: "CustomAlertRule", modelProperties: { - type: { + displayName: { readOnly: true, - serializedName: "type", + serializedName: "displayName", type: { name: "String" } }, - reason: { + description: { readOnly: true, - serializedName: "reason", + serializedName: "description", + type: { + name: "String" + } + }, + isEnabled: { + required: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + ruleType: { + required: true, + serializedName: "ruleType", type: { name: "String" } @@ -303,587 +339,293 @@ export const AlertConfidenceReason: msRest.CompositeMapper = { } }; -export const Alert: msRest.CompositeMapper = { - serializedName: "Alert", +export const ThresholdCustomAlertRule: msRest.CompositeMapper = { + serializedName: "ThresholdCustomAlertRule", type: { name: "Composite", - className: "Alert", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ThresholdCustomAlertRule", modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + ...CustomAlertRule.type.modelProperties, + minThreshold: { + required: true, + serializedName: "minThreshold", type: { - name: "String" + name: "Number" } }, - reportedTimeUtc: { - readOnly: true, - serializedName: "properties.reportedTimeUtc", + maxThreshold: { + required: true, + serializedName: "maxThreshold", type: { - name: "DateTime" + name: "Number" } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", + } + } + } +}; + +export const TimeWindowCustomAlertRule: msRest.CompositeMapper = { + serializedName: "TimeWindowCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "TimeWindowCustomAlertRule", + modelProperties: { + ...ThresholdCustomAlertRule.type.modelProperties, + timeWindowSize: { + required: true, + serializedName: "timeWindowSize", type: { - name: "String" + name: "TimeSpan" } - }, - alertName: { + } + } + } +}; + +export const ListCustomAlertRule: msRest.CompositeMapper = { + serializedName: "ListCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ListCustomAlertRule", + modelProperties: { + ...CustomAlertRule.type.modelProperties, + valueType: { readOnly: true, - serializedName: "properties.alertName", + serializedName: "valueType", type: { name: "String" } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", + } + } + } +}; + +export const AllowlistCustomAlertRule: msRest.CompositeMapper = { + serializedName: "AllowlistCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "AllowlistCustomAlertRule", + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + allowlistValues: { + required: true, + serializedName: "allowlistValues", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - detectedTimeUtc: { - readOnly: true, - serializedName: "properties.detectedTimeUtc", + } + } + } +}; + +export const DenylistCustomAlertRule: msRest.CompositeMapper = { + serializedName: "DenylistCustomAlertRule", + type: { + name: "Composite", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "DenylistCustomAlertRule", + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + denylistValues: { + required: true, + serializedName: "denylistValues", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - description: { - readOnly: true, - serializedName: "properties.description", + } + } + } +}; + +export const DeviceSecurityGroup: msRest.CompositeMapper = { + serializedName: "DeviceSecurityGroup", + type: { + name: "Composite", + className: "DeviceSecurityGroup", + modelProperties: { + ...Resource.type.modelProperties, + thresholdRules: { + serializedName: "properties.thresholdRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ThresholdCustomAlertRule" + } + } } }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", + timeWindowRules: { + serializedName: "properties.timeWindowRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeWindowCustomAlertRule" + } + } } }, - actionTaken: { - readOnly: true, - serializedName: "properties.actionTaken", + allowlistRules: { + serializedName: "properties.allowlistRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AllowlistCustomAlertRule" + } + } } }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", + denylistRules: { + serializedName: "properties.denylistRules", 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" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DenylistCustomAlertRule" + } + } } } } } }; -export const SettingResource: msRest.CompositeMapper = { - serializedName: "SettingResource", +export const ConnectionToIpNotAllowed: msRest.CompositeMapper = { + serializedName: "ConnectionToIpNotAllowed", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "BaseResource", - className: "SettingResource", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ConnectionToIpNotAllowed", modelProperties: { - ...Resource.type.modelProperties, - kind: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - } + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const Setting: msRest.CompositeMapper = { - serializedName: "Setting", +export const ConnectionFromIpNotAllowed: msRest.CompositeMapper = { + serializedName: "ConnectionFromIpNotAllowed", type: { name: "Composite", - className: "Setting", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ConnectionFromIpNotAllowed", modelProperties: { - ...SettingResource.type.modelProperties + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const DataExportSettings: msRest.CompositeMapper = { - serializedName: "DataExportSettings", +export const LocalUserNotAllowed: msRest.CompositeMapper = { + serializedName: "LocalUserNotAllowed", type: { name: "Composite", - className: "DataExportSettings", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "LocalUserNotAllowed", modelProperties: { - ...Setting.type.modelProperties, - enabled: { - required: true, - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - } + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { - serializedName: "AdvancedThreatProtectionSetting", +export const ProcessNotAllowed: msRest.CompositeMapper = { + serializedName: "ProcessNotAllowed", type: { name: "Composite", - className: "AdvancedThreatProtectionSetting", + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, + uberParent: "CustomAlertRule", + className: "ProcessNotAllowed", modelProperties: { - ...Resource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - } + ...AllowlistCustomAlertRule.type.modelProperties } } }; -export const CustomAlertRule: msRest.CompositeMapper = { - serializedName: "CustomAlertRule", +export const ActiveConnectionsNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "ActiveConnectionsNotInAllowedRange", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType" - }, + polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "CustomAlertRule", + className: "ActiveConnectionsNotInAllowedRange", modelProperties: { - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "description", - type: { - name: "String" - } - }, - isEnabled: { - required: true, - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - ruleType: { - required: true, - serializedName: "ruleType", - type: { - name: "String" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const ThresholdCustomAlertRule: msRest.CompositeMapper = { - serializedName: "ThresholdCustomAlertRule", +export const AmqpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "AmqpC2DMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "ThresholdCustomAlertRule", + className: "AmqpC2DMessagesNotInAllowedRange", modelProperties: { - ...CustomAlertRule.type.modelProperties, - minThreshold: { - required: true, - serializedName: "minThreshold", - type: { - name: "Number" - } - }, - maxThreshold: { - required: true, - serializedName: "maxThreshold", - type: { - name: "Number" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const TimeWindowCustomAlertRule: msRest.CompositeMapper = { - serializedName: "TimeWindowCustomAlertRule", +export const MqttC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "MqttC2DMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "TimeWindowCustomAlertRule", + className: "MqttC2DMessagesNotInAllowedRange", modelProperties: { - ...ThresholdCustomAlertRule.type.modelProperties, - timeWindowSize: { - required: true, - serializedName: "timeWindowSize", - type: { - name: "TimeSpan" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const ListCustomAlertRule: msRest.CompositeMapper = { - serializedName: "ListCustomAlertRule", +export const HttpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "HttpC2DMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "ListCustomAlertRule", + className: "HttpC2DMessagesNotInAllowedRange", modelProperties: { - ...CustomAlertRule.type.modelProperties, - valueType: { - readOnly: true, - serializedName: "valueType", - type: { - name: "String" - } - } + ...TimeWindowCustomAlertRule.type.modelProperties } } }; -export const AllowlistCustomAlertRule: msRest.CompositeMapper = { - serializedName: "AllowlistCustomAlertRule", +export const AmqpC2DRejectedMessagesNotInAllowedRange: msRest.CompositeMapper = { + serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", type: { name: "Composite", polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, uberParent: "CustomAlertRule", - className: "AllowlistCustomAlertRule", - modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - allowlistValues: { - required: true, - serializedName: "allowlistValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DenylistCustomAlertRule: msRest.CompositeMapper = { - serializedName: "DenylistCustomAlertRule", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "DenylistCustomAlertRule", - modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - denylistValues: { - required: true, - serializedName: "denylistValues", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DeviceSecurityGroup: msRest.CompositeMapper = { - serializedName: "DeviceSecurityGroup", - type: { - name: "Composite", - className: "DeviceSecurityGroup", - modelProperties: { - ...Resource.type.modelProperties, - thresholdRules: { - serializedName: "properties.thresholdRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ThresholdCustomAlertRule" - } - } - } - }, - timeWindowRules: { - serializedName: "properties.timeWindowRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimeWindowCustomAlertRule" - } - } - } - }, - allowlistRules: { - serializedName: "properties.allowlistRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AllowlistCustomAlertRule" - } - } - } - }, - denylistRules: { - serializedName: "properties.denylistRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DenylistCustomAlertRule" - } - } - } - } - } - } -}; - -export const ConnectionToIpNotAllowed: msRest.CompositeMapper = { - serializedName: "ConnectionToIpNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ConnectionToIpNotAllowed", - 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 - } - } -}; - -export const ProcessNotAllowed: msRest.CompositeMapper = { - serializedName: "ProcessNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ProcessNotAllowed", - modelProperties: { - ...AllowlistCustomAlertRule.type.modelProperties - } - } -}; - -export const ActiveConnectionsNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "ActiveConnectionsNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ActiveConnectionsNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const AmqpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "AmqpC2DMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "AmqpC2DMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const MqttC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "MqttC2DMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "MqttC2DMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const HttpC2DMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "HttpC2DMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "HttpC2DMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const AmqpC2DRejectedMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "AmqpC2DRejectedMessagesNotInAllowedRange", + className: "AmqpC2DRejectedMessagesNotInAllowedRange", modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties } @@ -1054,24 +796,2630 @@ export const TagsResource: msRest.CompositeMapper = { } }; -export const UserDefinedResourcesProperties: msRest.CompositeMapper = { - serializedName: "UserDefinedResourcesProperties", +export const UserDefinedResourcesProperties: msRest.CompositeMapper = { + serializedName: "UserDefinedResourcesProperties", + type: { + name: "Composite", + className: "UserDefinedResourcesProperties", + modelProperties: { + query: { + required: true, + nullable: true, + serializedName: "query", + type: { + name: "String" + } + }, + querySubscriptions: { + required: true, + nullable: true, + serializedName: "querySubscriptions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RecommendationConfigurationProperties: msRest.CompositeMapper = { + serializedName: "RecommendationConfigurationProperties", + type: { + name: "Composite", + className: "RecommendationConfigurationProperties", + modelProperties: { + recommendationType: { + required: true, + serializedName: "recommendationType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + status: { + required: true, + serializedName: "status", + defaultValue: 'Enabled', + type: { + name: "String" + } + } + } + } +}; + +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 SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const IoTSecuritySolutionModel: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionModel", + type: { + name: "Composite", + className: "IoTSecuritySolutionModel", + 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" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + workspace: { + serializedName: "properties.workspace", + type: { + name: "String" + } + }, + displayName: { + required: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + exportProperty: { + serializedName: "properties.export", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + disabledDataSources: { + serializedName: "properties.disabledDataSources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + iotHubs: { + required: true, + serializedName: "properties.iotHubs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + userDefinedResources: { + serializedName: "properties.userDefinedResources", + type: { + name: "Composite", + className: "UserDefinedResourcesProperties" + } + }, + autoDiscoveredResources: { + readOnly: true, + serializedName: "properties.autoDiscoveredResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + recommendationsConfiguration: { + serializedName: "properties.recommendationsConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendationConfigurationProperties" + } + } + } + }, + unmaskedIpLoggingStatus: { + serializedName: "properties.unmaskedIpLoggingStatus", + defaultValue: 'Disabled', + type: { + name: "String" + } + }, + additionalWorkspaces: { + serializedName: "properties.additionalWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalWorkspacesProperties" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const UpdateIotSecuritySolutionData: msRest.CompositeMapper = { + serializedName: "UpdateIotSecuritySolutionData", + type: { + name: "Composite", + className: "UpdateIotSecuritySolutionData", + modelProperties: { + ...TagsResource.type.modelProperties, + userDefinedResources: { + serializedName: "properties.userDefinedResources", + type: { + name: "Composite", + className: "UserDefinedResourcesProperties" + } + }, + recommendationsConfiguration: { + serializedName: "properties.recommendationsConfiguration", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendationConfigurationProperties" + } + } + } + } + } + } +}; + +export const IoTSeverityMetrics: msRest.CompositeMapper = { + serializedName: "IoTSeverityMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics", + modelProperties: { + high: { + serializedName: "high", + type: { + name: "Number" + } + }, + medium: { + serializedName: "medium", + type: { + name: "Number" + } + }, + low: { + serializedName: "low", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionAnalyticsModelProperties_devicesMetricsItem", + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTime" + } + }, + devicesMetrics: { + serializedName: "devicesMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics" + } + } + } + } +}; + +export const IoTSecurityAlertedDevice: msRest.CompositeMapper = { + serializedName: "IoTSecurityAlertedDevice", + type: { + name: "Composite", + className: "IoTSecurityAlertedDevice", + modelProperties: { + deviceId: { + readOnly: true, + serializedName: "deviceId", + type: { + name: "String" + } + }, + alertsCount: { + readOnly: true, + serializedName: "alertsCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecurityDeviceAlert: msRest.CompositeMapper = { + serializedName: "IoTSecurityDeviceAlert", + type: { + name: "Composite", + className: "IoTSecurityDeviceAlert", + modelProperties: { + alertDisplayName: { + readOnly: true, + serializedName: "alertDisplayName", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "reportedSeverity", + type: { + name: "String" + } + }, + alertsCount: { + readOnly: true, + serializedName: "alertsCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecurityDeviceRecommendation: msRest.CompositeMapper = { + serializedName: "IoTSecurityDeviceRecommendation", + type: { + name: "Composite", + className: "IoTSecurityDeviceRecommendation", + modelProperties: { + recommendationDisplayName: { + readOnly: true, + serializedName: "recommendationDisplayName", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "reportedSeverity", + type: { + name: "String" + } + }, + devicesCount: { + readOnly: true, + serializedName: "devicesCount", + type: { + name: "Number" + } + } + } + } +}; + +export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionAnalyticsModel", + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModel", + modelProperties: { + ...Resource.type.modelProperties, + metrics: { + readOnly: true, + serializedName: "properties.metrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics" + } + }, + unhealthyDeviceCount: { + readOnly: true, + serializedName: "properties.unhealthyDeviceCount", + type: { + name: "Number" + } + }, + devicesMetrics: { + readOnly: true, + serializedName: "properties.devicesMetrics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem" + } + } + } + }, + topAlertedDevices: { + serializedName: "properties.topAlertedDevices", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityAlertedDevice" + } + } + } + }, + mostPrevalentDeviceAlerts: { + serializedName: "properties.mostPrevalentDeviceAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityDeviceAlert" + } + } + } + }, + mostPrevalentDeviceRecommendations: { + serializedName: "properties.mostPrevalentDeviceRecommendations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityDeviceRecommendation" + } + } + } + } + } + } +}; + +export const IoTSecuritySolutionAnalyticsModelList: msRest.CompositeMapper = { + serializedName: "IoTSecuritySolutionAnalyticsModelList", + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelList", + modelProperties: { + value: { + required: true, + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedAlertProperties_topDevicesListItem", + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", + modelProperties: { + deviceId: { + readOnly: true, + serializedName: "deviceId", + type: { + name: "String" + } + }, + alertsCount: { + readOnly: true, + serializedName: "alertsCount", + type: { + name: "Number" + } + }, + lastOccurrence: { + readOnly: true, + serializedName: "lastOccurrence", + type: { + name: "String" + } + } + } + } +}; + +export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedAlert", + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlert", + 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" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + alertType: { + readOnly: true, + serializedName: "properties.alertType", + type: { + name: "String" + } + }, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", + type: { + name: "String" + } + }, + aggregatedDateUtc: { + readOnly: true, + serializedName: "properties.aggregatedDateUtc", + type: { + name: "Date" + } + }, + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "properties.reportedSeverity", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + count: { + readOnly: true, + serializedName: "properties.count", + type: { + name: "Number" + } + }, + effectedResourceType: { + readOnly: true, + serializedName: "properties.effectedResourceType", + type: { + name: "String" + } + }, + systemSource: { + readOnly: true, + serializedName: "properties.systemSource", + type: { + name: "String" + } + }, + actionTaken: { + readOnly: true, + serializedName: "properties.actionTaken", + type: { + name: "String" + } + }, + logAnalyticsQuery: { + readOnly: true, + serializedName: "properties.logAnalyticsQuery", + type: { + name: "String" + } + }, + topDevicesList: { + readOnly: true, + serializedName: "properties.topDevicesList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem" + } + } + } + } + } + } +}; + +export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { + serializedName: "IoTSecurityAggregatedRecommendation", + type: { + name: "Composite", + className: "IoTSecurityAggregatedRecommendation", + 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" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + recommendationName: { + serializedName: "properties.recommendationName", + type: { + name: "String" + } + }, + recommendationDisplayName: { + readOnly: true, + serializedName: "properties.recommendationDisplayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + recommendationTypeId: { + readOnly: true, + serializedName: "properties.recommendationTypeId", + type: { + name: "String" + } + }, + detectedBy: { + readOnly: true, + serializedName: "properties.detectedBy", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "properties.reportedSeverity", + type: { + name: "String" + } + }, + healthyDevices: { + readOnly: true, + serializedName: "properties.healthyDevices", + type: { + name: "Number" + } + }, + unhealthyDeviceCount: { + readOnly: true, + serializedName: "properties.unhealthyDeviceCount", + type: { + name: "Number" + } + }, + logAnalyticsQuery: { + readOnly: true, + serializedName: "properties.logAnalyticsQuery", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + readOnly: true, + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + readOnly: true, + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + origin: { + readOnly: true, + serializedName: "origin", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const SecurityTaskParameters: msRest.CompositeMapper = { + serializedName: "SecurityTaskParameters", + type: { + name: "Composite", + className: "SecurityTaskParameters", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const SecurityTask: msRest.CompositeMapper = { + serializedName: "SecurityTask", + type: { + name: "Composite", + className: "SecurityTask", + modelProperties: { + ...Resource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + creationTimeUtc: { + readOnly: true, + serializedName: "properties.creationTimeUtc", + type: { + name: "DateTime" + } + }, + securityTaskParameters: { + serializedName: "properties.securityTaskParameters", + type: { + name: "Composite", + className: "SecurityTaskParameters", + additionalProperties: { + type: { + name: "Object" + } + } + } + }, + lastStateChangeTimeUtc: { + readOnly: true, + serializedName: "properties.lastStateChangeTimeUtc", + type: { + name: "DateTime" + } + }, + subState: { + readOnly: true, + serializedName: "properties.subState", + type: { + name: "String" + } + } + } + } +}; + +export const AutoProvisioningSetting: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSetting", + type: { + name: "Composite", + className: "AutoProvisioningSetting", + modelProperties: { + ...Resource.type.modelProperties, + autoProvision: { + required: true, + serializedName: "properties.autoProvision", + type: { + name: "String" + } + } + } + } +}; + +export const ComplianceSegment: msRest.CompositeMapper = { + serializedName: "ComplianceSegment", + type: { + name: "Composite", + className: "ComplianceSegment", + modelProperties: { + segmentType: { + readOnly: true, + serializedName: "segmentType", + type: { + name: "String" + } + }, + percentage: { + readOnly: true, + serializedName: "percentage", + type: { + name: "Number" + } + } + } + } +}; + +export const Compliance: msRest.CompositeMapper = { + serializedName: "Compliance", + type: { + name: "Composite", + className: "Compliance", + modelProperties: { + ...Resource.type.modelProperties, + assessmentTimestampUtcDate: { + readOnly: true, + serializedName: "properties.assessmentTimestampUtcDate", + type: { + name: "DateTime" + } + }, + resourceCount: { + readOnly: true, + serializedName: "properties.resourceCount", + type: { + name: "Number" + } + }, + assessmentResult: { + readOnly: true, + serializedName: "properties.assessmentResult", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComplianceSegment" + } + } + } + } + } + } +}; + +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + 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", + type: { + name: "Composite", + className: "InformationProtectionKeyword", + modelProperties: { + 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 InformationType: msRest.CompositeMapper = { + serializedName: "InformationType", + type: { + name: "Composite", + className: "InformationType", + modelProperties: { + 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: "InformationProtectionKeyword" + } + } + } + } + } + } +}; + +export const InformationProtectionPolicy: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicy", + type: { + name: "Composite", + className: "InformationProtectionPolicy", + modelProperties: { + ...Resource.type.modelProperties, + lastModifiedUtc: { + readOnly: true, + serializedName: "properties.lastModifiedUtc", + type: { + name: "DateTime" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + }, + labels: { + serializedName: "properties.labels", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } + } + }, + informationTypes: { + serializedName: "properties.informationTypes", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "InformationType" + } + } + } + } + } + } +}; + +export const SecurityContact: msRest.CompositeMapper = { + serializedName: "SecurityContact", + type: { + name: "Composite", + className: "SecurityContact", + modelProperties: { + ...Resource.type.modelProperties, + email: { + required: true, + 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" + } + } + } + } +}; + +export const WorkspaceSetting: msRest.CompositeMapper = { + serializedName: "WorkspaceSetting", + type: { + name: "Composite", + className: "WorkspaceSetting", + modelProperties: { + ...Resource.type.modelProperties, + workspaceId: { + required: true, + serializedName: "properties.workspaceId", + type: { + name: "String" + } + }, + scope: { + required: true, + serializedName: "properties.scope", + type: { + name: "String" + } + } + } + } +}; + +export const RegulatoryComplianceStandard: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandard", + type: { + name: "Composite", + className: "RegulatoryComplianceStandard", + modelProperties: { + ...Resource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedControls: { + readOnly: true, + serializedName: "properties.passedControls", + type: { + name: "Number" + } + }, + failedControls: { + readOnly: true, + serializedName: "properties.failedControls", + type: { + name: "Number" + } + }, + skippedControls: { + readOnly: true, + serializedName: "properties.skippedControls", + type: { + name: "Number" + } + }, + unsupportedControls: { + readOnly: true, + serializedName: "properties.unsupportedControls", + type: { + name: "Number" + } + } + } + } +}; + +export const RegulatoryComplianceControl: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControl", + type: { + name: "Composite", + className: "RegulatoryComplianceControl", + modelProperties: { + ...Resource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedAssessments: { + readOnly: true, + serializedName: "properties.passedAssessments", + type: { + name: "Number" + } + }, + failedAssessments: { + readOnly: true, + serializedName: "properties.failedAssessments", + type: { + name: "Number" + } + }, + skippedAssessments: { + readOnly: true, + serializedName: "properties.skippedAssessments", + type: { + name: "Number" + } + } + } + } +}; + +export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceAssessment", + type: { + name: "Composite", + className: "RegulatoryComplianceAssessment", + modelProperties: { + ...Resource.type.modelProperties, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + assessmentType: { + readOnly: true, + serializedName: "properties.assessmentType", + type: { + name: "String" + } + }, + assessmentDetailsLink: { + readOnly: true, + 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" + } + } + } + } +}; + +export const SubAssessmentStatus: msRest.CompositeMapper = { + serializedName: "SubAssessmentStatus", + type: { + name: "Composite", + className: "SubAssessmentStatus", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + cause: { + readOnly: true, + serializedName: "cause", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + severity: { + readOnly: true, + serializedName: "severity", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceDetails: msRest.CompositeMapper = { + serializedName: "ResourceDetails", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "source", + clientName: "source" + }, + uberParent: "ResourceDetails", + className: "ResourceDetails", + modelProperties: { + source: { + required: true, + serializedName: "source", + type: { + name: "String" + } + } + } + } +}; + +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", + value: { + type: { + name: "Composite", + className: "CVSS" + } + } + } + }, + patchable: { + readOnly: true, + serializedName: "patchable", + type: { + name: "Boolean" + } + }, + cve: { + readOnly: true, + serializedName: "cve", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CVE" + } + } + } + }, + publishedTime: { + readOnly: true, + serializedName: "publishedTime", + type: { + name: "DateTime" + } + }, + vendorReferences: { + readOnly: true, + serializedName: "vendorReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference" + } + } + } + }, + repositoryName: { + readOnly: true, + serializedName: "repositoryName", + type: { + name: "String" + } + }, + imageDigest: { + readOnly: true, + serializedName: "imageDigest", + type: { + name: "String" + } + } + } + } +}; + +export const ServerVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", + type: { + name: "Composite", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "ServerVulnerabilityProperties", + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + cvss: { + readOnly: true, + serializedName: "cvss", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CVSS" + } + } + } + }, + patchable: { + readOnly: true, + serializedName: "patchable", + type: { + name: "Boolean" + } + }, + cve: { + readOnly: true, + serializedName: "cve", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CVE" + } + } + } + }, + threat: { + readOnly: true, + serializedName: "threat", + type: { + name: "String" + } + }, + publishedTime: { + readOnly: true, + serializedName: "publishedTime", + type: { + name: "DateTime" + } + }, + vendorReferences: { + readOnly: true, + serializedName: "vendorReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference" + } + } + } + } + } + } +}; + +export const OnPremiseResourceDetails: msRest.CompositeMapper = { + serializedName: "OnPremise", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "OnPremiseResourceDetails", + modelProperties: { + ...ResourceDetails.type.modelProperties, + workspaceId: { + required: true, + serializedName: "workspaceId", + type: { + name: "String" + } + }, + vmuuid: { + required: true, + serializedName: "vmuuid", + type: { + name: "String" + } + }, + sourceComputerId: { + required: true, + serializedName: "sourceComputerId", + type: { + name: "String" + } + }, + machineName: { + required: true, + serializedName: "machineName", + type: { + name: "String" + } + } + } + } +}; + +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: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "AzureResourceDetails", + modelProperties: { + ...ResourceDetails.type.modelProperties, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationScope: msRest.CompositeMapper = { + serializedName: "AutomationScope", + type: { + name: "Composite", + className: "AutomationScope", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + scopePath: { + serializedName: "scopePath", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationTriggeringRule: msRest.CompositeMapper = { + serializedName: "AutomationTriggeringRule", + type: { + name: "Composite", + className: "AutomationTriggeringRule", + modelProperties: { + propertyJPath: { + serializedName: "propertyJPath", + type: { + name: "String" + } + }, + propertyType: { + serializedName: "propertyType", + type: { + name: "String" + } + }, + expectedValue: { + serializedName: "expectedValue", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationRuleSet: msRest.CompositeMapper = { + serializedName: "AutomationRuleSet", + type: { + name: "Composite", + className: "AutomationRuleSet", + modelProperties: { + rules: { + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationTriggeringRule" + } + } + } + } + } + } +}; + +export const AutomationSource: msRest.CompositeMapper = { + serializedName: "AutomationSource", + type: { + name: "Composite", + className: "AutomationSource", + modelProperties: { + eventSource: { + serializedName: "eventSource", + type: { + name: "String" + } + }, + ruleSets: { + serializedName: "ruleSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationRuleSet" + } + } + } + } + } + } +}; + +export const AutomationAction: msRest.CompositeMapper = { + serializedName: "AutomationAction", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType" + }, + uberParent: "AutomationAction", + className: "AutomationAction", + modelProperties: { + actionType: { + required: true, + serializedName: "actionType", + type: { + name: "String" + } + } + } + } +}; + +export const Automation: msRest.CompositeMapper = { + serializedName: "Automation", + type: { + name: "Composite", + className: "Automation", + modelProperties: { + ...TrackedResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + scopes: { + serializedName: "properties.scopes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationScope" + } + } + } + }, + sources: { + serializedName: "properties.sources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationSource" + } + } + } + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationAction" + } + } + } + } + } + } +}; + +export const AutomationActionLogicApp: msRest.CompositeMapper = { + serializedName: "LogicApp", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionLogicApp", + modelProperties: { + ...AutomationAction.type.modelProperties, + logicAppResourceId: { + serializedName: "logicAppResourceId", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationActionEventHub: msRest.CompositeMapper = { + serializedName: "EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionEventHub", + modelProperties: { + ...AutomationAction.type.modelProperties, + eventHubResourceId: { + serializedName: "eventHubResourceId", + type: { + name: "String" + } + }, + sasPolicyName: { + readOnly: true, + serializedName: "sasPolicyName", + type: { + name: "String" + } + }, + connectionString: { + serializedName: "connectionString", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationActionWorkspace: msRest.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionWorkspace", + modelProperties: { + ...AutomationAction.type.modelProperties, + workspaceResourceId: { + serializedName: "workspaceResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationValidationStatus: msRest.CompositeMapper = { + serializedName: "AutomationValidationStatus", + type: { + name: "Composite", + className: "AutomationValidationStatus", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ScopeElement: msRest.CompositeMapper = { + serializedName: "ScopeElement", + type: { + name: "Composite", + className: "ScopeElement", + modelProperties: { + field: { + serializedName: "field", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + +export const SuppressionAlertsScope: msRest.CompositeMapper = { + serializedName: "SuppressionAlertsScope", + type: { + name: "Composite", + className: "SuppressionAlertsScope", + modelProperties: { + allOf: { + required: true, + serializedName: "allOf", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScopeElement", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + } + } + } +}; + +export const AlertsSuppressionRule: msRest.CompositeMapper = { + serializedName: "AlertsSuppressionRule", + type: { + name: "Composite", + className: "AlertsSuppressionRule", + modelProperties: { + ...Resource.type.modelProperties, + alertType: { + required: true, + serializedName: "properties.alertType", + type: { + 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" + } + }, + categories: { + serializedName: "categories", + 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: "UserDefinedResourcesProperties", + className: "SecurityAssessmentMetadata", modelProperties: { - query: { + ...Resource.type.modelProperties, + displayName: { required: true, - nullable: true, - serializedName: "query", + serializedName: "properties.displayName", type: { name: "String" } }, - querySubscriptions: { + policyDefinitionId: { + readOnly: true, + serializedName: "properties.policyDefinitionId", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + remediationDescription: { + serializedName: "properties.remediationDescription", + type: { + name: "String" + } + }, + categories: { + serializedName: "properties.categories", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + severity: { required: true, - nullable: true, - serializedName: "querySubscriptions", + 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: { @@ -1080,35 +3428,52 @@ export const UserDefinedResourcesProperties: msRest.CompositeMapper = { } } } + }, + 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 RecommendationConfigurationProperties: msRest.CompositeMapper = { - serializedName: "RecommendationConfigurationProperties", +export const AssessmentStatus: msRest.CompositeMapper = { + serializedName: "AssessmentStatus", type: { name: "Composite", - className: "RecommendationConfigurationProperties", + className: "AssessmentStatus", modelProperties: { - recommendationType: { + code: { required: true, - serializedName: "recommendationType", + serializedName: "code", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + cause: { + serializedName: "cause", type: { name: "String" } }, - status: { - required: true, - serializedName: "status", - defaultValue: 'Enabled', + description: { + serializedName: "description", type: { name: "String" } @@ -1117,139 +3482,139 @@ export const RecommendationConfigurationProperties: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionModel: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionModel", +export const AssessmentLinks: msRest.CompositeMapper = { + serializedName: "AssessmentLinks", type: { name: "Composite", - className: "IoTSecuritySolutionModel", + className: "AssessmentLinks", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { + azurePortalUri: { readOnly: true, - serializedName: "name", + serializedName: "azurePortalUri", type: { name: "String" } - }, - type: { - readOnly: true, - serializedName: "type", + } + } + } +}; + +export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentPartnerData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData", + modelProperties: { + partnerName: { + required: true, + serializedName: "partnerName", type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - serializedName: "location", + secret: { + required: true, + serializedName: "secret", type: { name: "String" } - }, - workspace: { + } + } + } +}; + +export const SecurityAssessment: msRest.CompositeMapper = { + serializedName: "SecurityAssessment", + type: { + name: "Composite", + className: "SecurityAssessment", + modelProperties: { + ...Resource.type.modelProperties, + resourceDetails: { required: true, - serializedName: "properties.workspace", + serializedName: "properties.resourceDetails", type: { - name: "String" + name: "Composite", + className: "ResourceDetails" } }, displayName: { - required: true, + readOnly: true, serializedName: "properties.displayName", type: { name: "String" } }, status: { + required: true, serializedName: "properties.status", - defaultValue: 'Enabled', type: { - name: "String" + name: "Composite", + className: "AssessmentStatus" } }, - exportProperty: { - serializedName: "properties.export", + additionalData: { + serializedName: "properties.additionalData", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - disabledDataSources: { - serializedName: "properties.disabledDataSources", + links: { + serializedName: "properties.links", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AssessmentLinks" } }, - iotHubs: { - required: true, - serializedName: "properties.iotHubs", + metadata: { + serializedName: "properties.metadata", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SecurityAssessmentMetadataProperties" } }, - userDefinedResources: { - serializedName: "properties.userDefinedResources", + partnersData: { + serializedName: "properties.partnersData", type: { name: "Composite", - className: "UserDefinedResourcesProperties" + className: "SecurityAssessmentPartnerData" + } + } + } + } +}; + +export const ProtectionMode: msRest.CompositeMapper = { + serializedName: "ProtectionMode", + type: { + name: "Composite", + className: "ProtectionMode", + modelProperties: { + exe: { + serializedName: "exe", + type: { + name: "String" } }, - autoDiscoveredResources: { - readOnly: true, - serializedName: "properties.autoDiscoveredResources", + msi: { + serializedName: "msi", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - recommendationsConfiguration: { - serializedName: "properties.recommendationsConfiguration", + script: { + serializedName: "script", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties" - } - } + name: "String" } }, - unmaskedIpLoggingStatus: { - serializedName: "properties.unmaskedIpLoggingStatus", - defaultValue: 'Disabled', + executable: { + serializedName: "executable", type: { name: "String" } @@ -1258,240 +3623,295 @@ export const IoTSecuritySolutionModel: msRest.CompositeMapper = { } }; -export const UpdateIotSecuritySolutionData: msRest.CompositeMapper = { - serializedName: "UpdateIotSecuritySolutionData", +export const AdaptiveApplicationControlIssueSummary: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlIssueSummary", type: { name: "Composite", - className: "UpdateIotSecuritySolutionData", + className: "AdaptiveApplicationControlIssueSummary", modelProperties: { - ...TagsResource.type.modelProperties, - userDefinedResources: { - serializedName: "properties.userDefinedResources", + issue: { + serializedName: "issue", type: { - name: "Composite", - className: "UserDefinedResourcesProperties" + name: "String" } }, - recommendationsConfiguration: { - serializedName: "properties.recommendationsConfiguration", + numberOfVms: { + serializedName: "numberOfVms", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties" - } - } + name: "Number" } } } } }; -export const IoTSeverityMetrics: msRest.CompositeMapper = { - serializedName: "IoTSeverityMetrics", +export const VmRecommendation: msRest.CompositeMapper = { + serializedName: "VmRecommendation", type: { name: "Composite", - className: "IoTSeverityMetrics", + className: "VmRecommendation", modelProperties: { - high: { - serializedName: "high", + configurationStatus: { + serializedName: "configurationStatus", type: { - name: "Number" + name: "String" } }, - medium: { - serializedName: "medium", + recommendationAction: { + serializedName: "recommendationAction", type: { - name: "Number" + name: "String" } }, - low: { - serializedName: "low", + resourceId: { + serializedName: "resourceId", type: { - name: "Number" + name: "String" + } + }, + enforcementSupport: { + serializedName: "enforcementSupport", + type: { + name: "String" } } } } }; -export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModelProperties_devicesMetricsItem", +export const PublisherInfo: msRest.CompositeMapper = { + serializedName: "PublisherInfo", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + className: "PublisherInfo", modelProperties: { - date: { - serializedName: "date", + publisherName: { + serializedName: "publisherName", type: { - name: "DateTime" + name: "String" } }, - devicesMetrics: { - serializedName: "devicesMetrics", + productName: { + serializedName: "productName", type: { - name: "Composite", - className: "IoTSeverityMetrics" + name: "String" + } + }, + binaryName: { + serializedName: "binaryName", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" } } } } }; -export const IoTSecurityAlertedDevice: msRest.CompositeMapper = { - serializedName: "IoTSecurityAlertedDevice", +export const UserRecommendation: msRest.CompositeMapper = { + serializedName: "UserRecommendation", type: { name: "Composite", - className: "IoTSecurityAlertedDevice", + className: "UserRecommendation", modelProperties: { - deviceId: { - readOnly: true, - serializedName: "deviceId", + username: { + serializedName: "username", type: { name: "String" } }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", + recommendationAction: { + serializedName: "recommendationAction", type: { - name: "Number" + name: "String" } } } } }; -export const IoTSecurityDeviceAlert: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceAlert", +export const PathRecommendation: msRest.CompositeMapper = { + serializedName: "PathRecommendation", type: { name: "Composite", - className: "IoTSecurityDeviceAlert", + className: "PathRecommendation", modelProperties: { - alertDisplayName: { - readOnly: true, - serializedName: "alertDisplayName", + path: { + serializedName: "path", type: { name: "String" } }, - reportedSeverity: { - readOnly: true, - serializedName: "reportedSeverity", + action: { + serializedName: "action", type: { name: "String" } }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", + type: { + serializedName: "type", type: { - name: "Number" + 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 IoTSecurityDeviceRecommendation: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceRecommendation", +export const AdaptiveApplicationControlGroup: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlGroup", type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation", + className: "AdaptiveApplicationControlGroup", modelProperties: { - recommendationDisplayName: { + id: { readOnly: true, - serializedName: "recommendationDisplayName", + serializedName: "id", type: { name: "String" } }, - reportedSeverity: { + name: { readOnly: true, - serializedName: "reportedSeverity", + serializedName: "name", type: { name: "String" } }, - devicesCount: { + type: { readOnly: true, - serializedName: "devicesCount", + serializedName: "type", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModel", - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel", - modelProperties: { - ...Resource.type.modelProperties, - metrics: { + }, + location: { readOnly: true, - serializedName: "properties.metrics", + serializedName: "location", + type: { + name: "String" + } + }, + enforcementMode: { + serializedName: "properties.enforcementMode", + type: { + name: "String" + } + }, + protectionMode: { + serializedName: "properties.protectionMode", type: { name: "Composite", - className: "IoTSeverityMetrics" + className: "ProtectionMode" } }, - unhealthyDeviceCount: { + configurationStatus: { readOnly: true, - serializedName: "properties.unhealthyDeviceCount", + serializedName: "properties.configurationStatus", type: { - name: "Number" + name: "String" } }, - devicesMetrics: { + recommendationStatus: { readOnly: true, - serializedName: "properties.devicesMetrics", + serializedName: "properties.recommendationStatus", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem" - } - } + name: "String" } }, - topAlertedDevices: { - serializedName: "properties.topAlertedDevices", + issues: { + readOnly: true, + serializedName: "properties.issues", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAlertedDevice" + className: "AdaptiveApplicationControlIssueSummary" } } } }, - mostPrevalentDeviceAlerts: { - serializedName: "properties.mostPrevalentDeviceAlerts", + sourceSystem: { + readOnly: true, + serializedName: "properties.sourceSystem", + type: { + name: "String" + } + }, + vmRecommendations: { + serializedName: "properties.vmRecommendations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityDeviceAlert" + className: "VmRecommendation" } } } }, - mostPrevalentDeviceRecommendations: { - serializedName: "properties.mostPrevalentDeviceRecommendations", + pathRecommendations: { + serializedName: "properties.pathRecommendations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation" + className: "PathRecommendation" } } } @@ -1500,59 +3920,37 @@ export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionAnalyticsModelList: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModelList", +export const AdaptiveApplicationControlGroups: msRest.CompositeMapper = { + serializedName: "AdaptiveApplicationControlGroups", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelList", + className: "AdaptiveApplicationControlGroups", modelProperties: { value: { - required: true, serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel" + className: "AdaptiveApplicationControlGroup" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlertProperties_topDevicesListItem", +export const Location: msRest.CompositeMapper = { + serializedName: "Location", type: { name: "Composite", - className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", + className: "Location", modelProperties: { - deviceId: { - readOnly: true, - serializedName: "deviceId", - type: { - name: "String" - } - }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", - type: { - name: "Number" - } - }, - lastOccurrence: { + location: { readOnly: true, - serializedName: "lastOccurrence", + serializedName: "location", type: { name: "String" } @@ -1561,137 +3959,225 @@ export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: msRest.Comp } }; -export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlert", +export const Rule: msRest.CompositeMapper = { + serializedName: "Rule", type: { name: "Composite", - className: "IoTSecurityAggregatedAlert", + className: "Rule", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + name: { + serializedName: "name", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + direction: { + serializedName: "direction", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + destinationPort: { + serializedName: "destinationPort", type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + protocols: { + serializedName: "protocols", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } } } }, - alertType: { - readOnly: true, - serializedName: "properties.alertType", + ipAddresses: { + serializedName: "ipAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", + } + } + } +}; + +export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroups", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups", + modelProperties: { + networkInterface: { + serializedName: "networkInterface", type: { name: "String" } }, - aggregatedDateUtc: { - readOnly: true, - serializedName: "properties.aggregatedDateUtc", + networkSecurityGroups: { + serializedName: "networkSecurityGroups", type: { - name: "Date" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", + } + } + } +}; + +export const AdaptiveNetworkHardening: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardening", + type: { + name: "Composite", + className: "AdaptiveNetworkHardening", + modelProperties: { + ...Resource.type.modelProperties, + rules: { + serializedName: "properties.rules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } } }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", + rulesCalculationTime: { + serializedName: "properties.rulesCalculationTime", type: { - name: "String" + name: "DateTime" } }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", + effectiveNetworkSecurityGroups: { + serializedName: "properties.effectiveNetworkSecurityGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups" + } + } } - }, - description: { - readOnly: true, - serializedName: "properties.description", + } + } + } +}; + +export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardeningEnforceRequest", + type: { + name: "Composite", + className: "AdaptiveNetworkHardeningEnforceRequest", + modelProperties: { + rules: { + required: true, + serializedName: "rules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } } }, - count: { + 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: "properties.count", + serializedName: "connectedResourceId", type: { - name: "Number" + name: "String" } }, - effectedResourceType: { + tcpPorts: { readOnly: true, - serializedName: "properties.effectedResourceType", + serializedName: "tcpPorts", type: { name: "String" } }, - systemSource: { + udpPorts: { readOnly: true, - serializedName: "properties.systemSource", + serializedName: "udpPorts", type: { name: "String" } - }, - actionTaken: { + } + } + } +}; + +export const ConnectableResource: msRest.CompositeMapper = { + serializedName: "ConnectableResource", + type: { + name: "Composite", + className: "ConnectableResource", + modelProperties: { + id: { readOnly: true, - serializedName: "properties.actionTaken", + serializedName: "id", type: { name: "String" } }, - logAnalyticsQuery: { + inboundConnectedResources: { readOnly: true, - serializedName: "properties.logAnalyticsQuery", + serializedName: "inboundConnectedResources", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource" + } + } } }, - topDevicesList: { + outboundConnectedResources: { readOnly: true, - serializedName: "properties.topDevicesList", + serializedName: "outboundConnectedResources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem" + className: "ConnectedResource" } } } @@ -1700,11 +4186,11 @@ export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { } }; -export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedRecommendation", +export const AllowedConnectionsResource: msRest.CompositeMapper = { + serializedName: "AllowedConnectionsResource", type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendation", + className: "AllowedConnectionsResource", modelProperties: { id: { readOnly: true, @@ -1727,555 +4213,735 @@ export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { name: "String" } }, - tags: { - serializedName: "tags", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + calculatedDateTime: { + readOnly: true, + serializedName: "properties.calculatedDateTime", + type: { + name: "DateTime" + } + }, + connectableResources: { + readOnly: true, + serializedName: "properties.connectableResources", + type: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ConnectableResource" } } } - }, - recommendationName: { - serializedName: "properties.recommendationName", + } + } + } +}; + +export const TopologySingleResourceParent: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceParent", + type: { + name: "Composite", + className: "TopologySingleResourceParent", + modelProperties: { + resourceId: { + readOnly: true, + serializedName: "resourceId", type: { name: "String" } - }, - recommendationDisplayName: { + } + } + } +}; + +export const TopologySingleResourceChild: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceChild", + type: { + name: "Composite", + className: "TopologySingleResourceChild", + modelProperties: { + resourceId: { readOnly: true, - serializedName: "properties.recommendationDisplayName", + serializedName: "resourceId", type: { name: "String" } - }, - description: { + } + } + } +}; + +export const TopologySingleResource: msRest.CompositeMapper = { + serializedName: "TopologySingleResource", + type: { + name: "Composite", + className: "TopologySingleResource", + modelProperties: { + resourceId: { readOnly: true, - serializedName: "properties.description", + serializedName: "resourceId", type: { name: "String" } }, - recommendationTypeId: { + severity: { readOnly: true, - serializedName: "properties.recommendationTypeId", + serializedName: "severity", type: { name: "String" } }, - detectedBy: { + recommendationsExist: { readOnly: true, - serializedName: "properties.detectedBy", + serializedName: "recommendationsExist", type: { - name: "String" + name: "Boolean" } }, - remediationSteps: { + networkZones: { readOnly: true, - serializedName: "properties.remediationSteps", + serializedName: "networkZones", type: { name: "String" } }, - reportedSeverity: { + topologyScore: { readOnly: true, - serializedName: "properties.reportedSeverity", + serializedName: "topologyScore", type: { - name: "String" + name: "Number" } }, - healthyDevices: { + location: { readOnly: true, - serializedName: "properties.healthyDevices", + serializedName: "location", type: { - name: "Number" + name: "String" } }, - unhealthyDeviceCount: { + parents: { readOnly: true, - serializedName: "properties.unhealthyDeviceCount", + serializedName: "parents", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceParent" + } + } } }, - logAnalyticsQuery: { + children: { readOnly: true, - serializedName: "properties.logAnalyticsQuery", + serializedName: "children", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceChild" + } + } } } } } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const TopologyResource: msRest.CompositeMapper = { + serializedName: "TopologyResource", type: { name: "Composite", - className: "OperationDisplay", + className: "TopologyResource", modelProperties: { - provider: { + id: { readOnly: true, - serializedName: "provider", + serializedName: "id", type: { name: "String" } }, - resource: { + name: { readOnly: true, - serializedName: "resource", + serializedName: "name", type: { name: "String" } }, - operation: { + type: { readOnly: true, - serializedName: "operation", + serializedName: "type", type: { name: "String" } }, - description: { + location: { readOnly: true, - serializedName: "description", + 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 Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const JitNetworkAccessPortRule: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPortRule", type: { name: "Composite", - className: "Operation", + className: "JitNetworkAccessPortRule", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + number: { + required: true, + serializedName: "number", + type: { + name: "Number" + } + }, + protocol: { + required: true, + serializedName: "protocol", type: { name: "String" } }, - origin: { - readOnly: true, - serializedName: "origin", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - display: { - serializedName: "display", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { - name: "Composite", - className: "OperationDisplay" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maxRequestAccessDuration: { + required: true, + serializedName: "maxRequestAccessDuration", + type: { + name: "String" } } } } }; -export const SecurityTaskParameters: msRest.CompositeMapper = { - serializedName: "SecurityTaskParameters", +export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyVirtualMachine", type: { name: "Composite", - className: "SecurityTaskParameters", + className: "JitNetworkAccessPolicyVirtualMachine", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + 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" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const SecurityTask: msRest.CompositeMapper = { - serializedName: "SecurityTask", +export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestPort", type: { name: "Composite", - className: "SecurityTask", + className: "JitNetworkAccessRequestPort", modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + number: { + required: true, + serializedName: "number", type: { - name: "String" + name: "Number" } }, - creationTimeUtc: { - readOnly: true, - serializedName: "properties.creationTimeUtc", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { - name: "DateTime" + name: "String" } }, - securityTaskParameters: { - serializedName: "properties.securityTaskParameters", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { - name: "Composite", - className: "SecurityTaskParameters", - additionalProperties: { + name: "Sequence", + element: { type: { - name: "Object" + name: "String" } } } }, - lastStateChangeTimeUtc: { - readOnly: true, - serializedName: "properties.lastStateChangeTimeUtc", + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", type: { name: "DateTime" } }, - subState: { - readOnly: true, - serializedName: "properties.subState", + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + statusReason: { + required: true, + serializedName: "statusReason", type: { name: "String" } + }, + mappedPort: { + serializedName: "mappedPort", + type: { + name: "Number" + } } } } }; -export const AutoProvisioningSetting: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSetting", +export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestVirtualMachine", type: { name: "Composite", - className: "AutoProvisioningSetting", + className: "JitNetworkAccessRequestVirtualMachine", modelProperties: { - ...Resource.type.modelProperties, - autoProvision: { + id: { required: true, - serializedName: "properties.autoProvision", + serializedName: "id", type: { name: "String" } + }, + ports: { + required: true, + serializedName: "ports", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort" + } + } + } } } } }; -export const ComplianceSegment: msRest.CompositeMapper = { - serializedName: "ComplianceSegment", +export const JitNetworkAccessRequest: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequest", type: { name: "Composite", - className: "ComplianceSegment", + className: "JitNetworkAccessRequest", modelProperties: { - segmentType: { - readOnly: true, - serializedName: "segmentType", + 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" } }, - percentage: { - readOnly: true, - serializedName: "percentage", + justification: { + serializedName: "justification", type: { - name: "Number" + name: "String" } } } } }; -export const Compliance: msRest.CompositeMapper = { - serializedName: "Compliance", +export const JitNetworkAccessPolicy: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicy", type: { name: "Composite", - className: "Compliance", + className: "JitNetworkAccessPolicy", modelProperties: { - ...Resource.type.modelProperties, - assessmentTimestampUtcDate: { + id: { readOnly: true, - serializedName: "properties.assessmentTimestampUtcDate", + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - resourceCount: { + name: { readOnly: true, - serializedName: "properties.resourceCount", + serializedName: "name", type: { - name: "Number" + name: "String" } }, - assessmentResult: { + type: { readOnly: true, - serializedName: "properties.assessmentResult", + 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: "ComplianceSegment" + 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 SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", +export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiatePort", type: { name: "Composite", - className: "SensitivityLabel", + className: "JitNetworkAccessPolicyInitiatePort", modelProperties: { - displayName: { - serializedName: "displayName", + number: { + required: true, + serializedName: "number", type: { - name: "String" + name: "Number" } }, - description: { - serializedName: "description", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - rank: { - serializedName: "rank", + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", type: { - name: "Enum", - allowedValues: [ - "None", - "Low", - "Medium", - "High", - "Critical" - ] + name: "DateTime" } - }, - order: { - serializedName: "order", + } + } + } +}; + +export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + ports: { + required: true, + serializedName: "ports", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort" + } + } } } } } }; -export const InformationProtectionKeyword: msRest.CompositeMapper = { - serializedName: "InformationProtectionKeyword", +export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateRequest", type: { name: "Composite", - className: "InformationProtectionKeyword", + className: "JitNetworkAccessPolicyInitiateRequest", modelProperties: { - pattern: { - serializedName: "pattern", - type: { - name: "String" - } - }, - custom: { - serializedName: "custom", - type: { - name: "Boolean" - } - }, - canBeNumeric: { - serializedName: "canBeNumeric", + virtualMachines: { + required: true, + serializedName: "virtualMachines", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine" + } + } } }, - excluded: { - serializedName: "excluded", + justification: { + serializedName: "justification", type: { - name: "Boolean" + name: "String" } } } } }; -export const InformationType: msRest.CompositeMapper = { - serializedName: "InformationType", +export const DiscoveredSecuritySolution: msRest.CompositeMapper = { + serializedName: "DiscoveredSecuritySolution", type: { name: "Composite", - className: "InformationType", + className: "DiscoveredSecuritySolution", modelProperties: { - displayName: { - serializedName: "displayName", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - description: { - serializedName: "description", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - order: { - serializedName: "order", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Number" + name: "String" } }, - recommendedLabelId: { - serializedName: "recommendedLabelId", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Uuid" + name: "String" } }, - enabled: { - serializedName: "enabled", + securityFamily: { + required: true, + serializedName: "properties.securityFamily", type: { - name: "Boolean" + name: "String" } }, - custom: { - serializedName: "custom", + offer: { + required: true, + serializedName: "properties.offer", type: { - name: "Boolean" + name: "String" } }, - keywords: { - serializedName: "keywords", + publisher: { + required: true, + serializedName: "properties.publisher", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformationProtectionKeyword" - } - } + name: "String" + } + }, + sku: { + required: true, + serializedName: "properties.sku", + type: { + name: "String" } } } } }; -export const InformationProtectionPolicy: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicy", +export const SecuritySolutionsReferenceData: msRest.CompositeMapper = { + serializedName: "securitySolutionsReferenceData", type: { name: "Composite", - className: "InformationProtectionPolicy", + className: "SecuritySolutionsReferenceData", modelProperties: { - ...Resource.type.modelProperties, - lastModifiedUtc: { + id: { readOnly: true, - serializedName: "properties.lastModifiedUtc", + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - version: { + name: { readOnly: true, - serializedName: "properties.version", + serializedName: "name", type: { name: "String" } }, - labels: { - serializedName: "properties.labels", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - informationTypes: { - serializedName: "properties.informationTypes", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "InformationType" - } - } + name: "String" } - } - } - } -}; - -export const SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", - type: { - name: "Composite", - className: "SecurityContact", - modelProperties: { - ...Resource.type.modelProperties, - email: { + }, + securityFamily: { required: true, - serializedName: "properties.email", + serializedName: "properties.securityFamily", type: { name: "String" } }, - phone: { - serializedName: "properties.phone", + alertVendorName: { + required: true, + serializedName: "properties.alertVendorName", type: { name: "String" } }, - alertNotifications: { + packageInfoUrl: { required: true, - serializedName: "properties.alertNotifications", + serializedName: "properties.packageInfoUrl", type: { name: "String" } }, - alertsToAdmins: { + productName: { required: true, - serializedName: "properties.alertsToAdmins", + serializedName: "properties.productName", type: { name: "String" } - } - } - } -}; - -export const WorkspaceSetting: msRest.CompositeMapper = { - serializedName: "WorkspaceSetting", - type: { - name: "Composite", - className: "WorkspaceSetting", - modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { + }, + publisher: { required: true, - serializedName: "properties.workspaceId", + serializedName: "properties.publisher", type: { name: "String" } }, - scope: { + publisherDisplayName: { required: true, - serializedName: "properties.scope", + serializedName: "properties.publisherDisplayName", + type: { + name: "String" + } + }, + template: { + required: true, + serializedName: "properties.template", type: { name: "String" } @@ -2284,232 +4950,245 @@ export const WorkspaceSetting: msRest.CompositeMapper = { } }; -export const RegulatoryComplianceStandard: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceStandard", +export const SecuritySolutionsReferenceDataList: msRest.CompositeMapper = { + serializedName: "securitySolutionsReferenceDataList", type: { name: "Composite", - className: "RegulatoryComplianceStandard", + className: "SecuritySolutionsReferenceDataList", modelProperties: { - ...Resource.type.modelProperties, - state: { - serializedName: "properties.state", - type: { - name: "String" - } - }, - passedControls: { - readOnly: true, - serializedName: "properties.passedControls", - type: { - name: "Number" - } - }, - failedControls: { - readOnly: true, - serializedName: "properties.failedControls", - type: { - name: "Number" - } - }, - skippedControls: { - readOnly: true, - serializedName: "properties.skippedControls", - type: { - name: "Number" - } - }, - unsupportedControls: { - readOnly: true, - serializedName: "properties.unsupportedControls", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData" + } + } } } } } }; -export const RegulatoryComplianceControl: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceControl", +export const ExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolution", type: { name: "Composite", - className: "RegulatoryComplianceControl", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "ExternalSecuritySolution", + className: "ExternalSecuritySolution", modelProperties: { - ...Resource.type.modelProperties, - description: { + id: { readOnly: true, - serializedName: "properties.description", + serializedName: "id", type: { name: "String" } }, - state: { - serializedName: "properties.state", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - passedAssessments: { + type: { readOnly: true, - serializedName: "properties.passedAssessments", + serializedName: "type", type: { - name: "Number" + name: "String" } }, - failedAssessments: { + location: { readOnly: true, - serializedName: "properties.failedAssessments", + serializedName: "location", type: { - name: "Number" + name: "String" } }, - skippedAssessments: { - readOnly: true, - serializedName: "properties.skippedAssessments", + kind: { + required: true, + serializedName: "kind", type: { - name: "Number" + name: "String" } } } } }; -export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceAssessment", +export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionProperties", type: { name: "Composite", - className: "RegulatoryComplianceAssessment", + className: "ExternalSecuritySolutionProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - readOnly: true, - serializedName: "properties.description", + deviceVendor: { + serializedName: "deviceVendor", type: { name: "String" } }, - assessmentType: { - readOnly: true, - serializedName: "properties.assessmentType", + deviceType: { + serializedName: "deviceType", type: { name: "String" } }, - assessmentDetailsLink: { - readOnly: true, - serializedName: "properties.assessmentDetailsLink", + workspace: { + serializedName: "workspace", type: { - name: "String" + name: "Composite", + className: "ConnectedWorkspace" } - }, - state: { - serializedName: "properties.state", + } + }, + 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" } }, - passedResources: { - readOnly: true, - serializedName: "properties.passedResources", - type: { - name: "Number" - } - }, - failedResources: { - readOnly: true, - serializedName: "properties.failedResources", + agent: { + serializedName: "agent", type: { - name: "Number" + name: "String" } }, - skippedResources: { - readOnly: true, - serializedName: "properties.skippedResources", + lastEventReceived: { + serializedName: "lastEventReceived", type: { - name: "Number" + name: "String" } - }, - unsupportedResources: { - readOnly: true, - serializedName: "properties.unsupportedResources", + } + }, + 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: "Number" + name: "Composite", + className: "CefSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties } } } } }; -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const AtaSolutionProperties: msRest.CompositeMapper = { + serializedName: "AtaSolutionProperties", type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "AtaSolutionProperties", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + ...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 ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentsList", +export const ConnectedWorkspace: msRest.CompositeMapper = { + serializedName: "ConnectedWorkspace", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsList", + className: "ConnectedWorkspace", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment" - } - } + name: "String" } } } } }; -export const SubAssessmentStatus: msRest.CompositeMapper = { - serializedName: "SubAssessmentStatus", +export const AadSolutionProperties: msRest.CompositeMapper = { + serializedName: "AadSolutionProperties", type: { name: "Composite", - className: "SubAssessmentStatus", + className: "AadSolutionProperties", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + deviceVendor: { + serializedName: "deviceVendor", type: { name: "String" } }, - cause: { - readOnly: true, - serializedName: "cause", + deviceType: { + serializedName: "deviceType", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + workspace: { + serializedName: "workspace", type: { - name: "String" + name: "Composite", + className: "ConnectedWorkspace" } }, - severity: { - readOnly: true, - serializedName: "severity", + connectivityState: { + serializedName: "connectivityState", type: { name: "String" } @@ -2518,42 +5197,34 @@ export const SubAssessmentStatus: msRest.CompositeMapper = { } }; -export const ResourceDetails: msRest.CompositeMapper = { - serializedName: "ResourceDetails", +export const AadExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "AAD", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "source", - clientName: "source" - }, - uberParent: "ResourceDetails", - className: "ResourceDetails", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "AadExternalSecuritySolution", modelProperties: { - source: { - required: true, - serializedName: "source", + ...ExternalSecuritySolution.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AadSolutionProperties" } } } } }; -export const AdditionalData: msRest.CompositeMapper = { - serializedName: "AdditionalData", +export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionKind", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "assessedResourceType", - clientName: "assessedResourceType" - }, - uberParent: "AdditionalData", - className: "AdditionalData", + className: "ExternalSecuritySolutionKind1", modelProperties: { - assessedResourceType: { - required: true, - serializedName: "assessedResourceType", + kind: { + serializedName: "kind", type: { name: "String" } @@ -2562,20 +5233,29 @@ export const AdditionalData: msRest.CompositeMapper = { } }; -export const SecuritySubAssessment: msRest.CompositeMapper = { - serializedName: "SecuritySubAssessment", +export const AadConnectivityState1: msRest.CompositeMapper = { + serializedName: "AadConnectivityState", type: { name: "Composite", - className: "SecuritySubAssessment", + className: "AadConnectivityState1", modelProperties: { - ...Resource.type.modelProperties, - securitySubAssessmentId: { - readOnly: true, - serializedName: "properties.id", + 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", @@ -2583,85 +5263,102 @@ export const SecuritySubAssessment: msRest.CompositeMapper = { name: "String" } }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "SubAssessmentStatus" - } - }, - remediation: { + max: { readOnly: true, - serializedName: "properties.remediation", + serializedName: "properties.score.max", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - impact: { + current: { readOnly: true, - serializedName: "properties.impact", + serializedName: "properties.score.current", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - category: { + percentage: { readOnly: true, - serializedName: "properties.category", + serializedName: "properties.score.percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - description: { + weight: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.weight", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } - }, - timeGenerated: { + } + } + } +}; + +export const SecureScoreControlScore: msRest.CompositeMapper = { + serializedName: "SecureScoreControlScore", + type: { + name: "Composite", + className: "SecureScoreControlScore", + modelProperties: { + max: { readOnly: true, - serializedName: "properties.timeGenerated", + serializedName: "max", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, type: { - name: "DateTime" + name: "Number" } }, - resourceDetails: { - serializedName: "properties.resourceDetails", + current: { + readOnly: true, + serializedName: "current", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, type: { - name: "Composite", - className: "ResourceDetails" + name: "Number" } }, - additionalData: { - serializedName: "properties.additionalData", + percentage: { + readOnly: true, + serializedName: "percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "Composite", - className: "AdditionalData" + name: "Number" } } } } }; -export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "SqlServerVulnerability", +export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDefinitionSource", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "SqlServerVulnerabilityProperties", + className: "SecureScoreControlDefinitionSource", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - query: { - readOnly: true, - serializedName: "query", + sourceType: { + serializedName: "sourceType", type: { name: "String" } @@ -2670,271 +5367,228 @@ export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { } }; -export const CVSS: msRest.CompositeMapper = { - serializedName: "CVSS", +export const AzureResourceLink: msRest.CompositeMapper = { + serializedName: "AzureResourceLink", type: { name: "Composite", - className: "CVSS", + className: "AzureResourceLink", modelProperties: { - base: { + id: { readOnly: true, - serializedName: "base", + serializedName: "id", type: { - name: "Number" + name: "String" } } } } }; -export const CVE: msRest.CompositeMapper = { - serializedName: "CVE", +export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDefinitionItem", type: { name: "Composite", - className: "CVE", + className: "SecureScoreControlDefinitionItem", modelProperties: { - title: { + ...Resource.type.modelProperties, + displayName: { readOnly: true, - serializedName: "title", + serializedName: "properties.displayName", type: { name: "String" } }, - link: { + description: { readOnly: true, - serializedName: "link", + serializedName: "properties.description", + constraints: { + MaxLength: 256 + }, type: { name: "String" } - } - } - } -}; - -export const VendorReference: msRest.CompositeMapper = { - serializedName: "VendorReference", - type: { - name: "Composite", - className: "VendorReference", - modelProperties: { - title: { + }, + maxScore: { readOnly: true, - serializedName: "title", + serializedName: "properties.maxScore", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - link: { + source: { readOnly: true, - serializedName: "link", + serializedName: "properties.source", type: { - name: "String" + name: "Composite", + className: "SecureScoreControlDefinitionSource" + } + }, + assessmentDefinitions: { + readOnly: true, + serializedName: "properties.assessmentDefinitions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureResourceLink" + } + } } } } } }; -export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ContainerRegistryVulnerability", +export const SecureScoreControlDetails: msRest.CompositeMapper = { + serializedName: "SecureScoreControlDetails", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ContainerRegistryVulnerabilityProperties", + className: "SecureScoreControlDetails", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { + ...Resource.type.modelProperties, + displayName: { readOnly: true, - serializedName: "type", + serializedName: "properties.displayName", type: { name: "String" } }, - cvss: { + max: { readOnly: true, - serializedName: "cvss", + serializedName: "properties.score.max", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CVSS" - } - } + name: "Number" } }, - patchable: { + current: { readOnly: true, - serializedName: "patchable", + serializedName: "properties.score.current", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "Boolean" + name: "Number" } }, - cve: { + percentage: { readOnly: true, - serializedName: "cve", + serializedName: "properties.score.percentage", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CVE" - } - } + name: "Number" } }, - publishedTime: { + healthyResourceCount: { readOnly: true, - serializedName: "publishedTime", + serializedName: "properties.healthyResourceCount", type: { - name: "DateTime" + name: "Number" } }, - vendorReferences: { - readOnly: true, - serializedName: "vendorReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VendorReference" - } - } + unhealthyResourceCount: { + readOnly: true, + serializedName: "properties.unhealthyResourceCount", + type: { + name: "Number" } }, - repositoryName: { + notApplicableResourceCount: { readOnly: true, - serializedName: "repositoryName", + serializedName: "properties.notApplicableResourceCount", type: { - name: "String" + name: "Number" } }, - imageDigest: { + weight: { readOnly: true, - serializedName: "imageDigest", + serializedName: "properties.weight", + constraints: { + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" + } + }, + definition: { + serializedName: "properties.definition", + type: { + name: "Composite", + className: "SecureScoreControlDefinitionItem" } } } } }; -export const ServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const SecuritySolution: msRest.CompositeMapper = { + serializedName: "SecuritySolution", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ServerVulnerabilityProperties", + className: "SecuritySolution", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { + id: { readOnly: true, - serializedName: "type", + serializedName: "id", type: { name: "String" } }, - cvss: { - readOnly: true, - serializedName: "cvss", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CVSS" - } - } - } - }, - patchable: { - readOnly: true, - serializedName: "patchable", - type: { - name: "Boolean" - } - }, - cve: { + name: { readOnly: true, - serializedName: "cve", + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CVE" - } - } + name: "String" } }, - threat: { + type: { readOnly: true, - serializedName: "threat", + serializedName: "type", type: { name: "String" } }, - publishedTime: { + location: { readOnly: true, - serializedName: "publishedTime", + serializedName: "location", type: { - name: "DateTime" + name: "String" } }, - vendorReferences: { - readOnly: true, - serializedName: "vendorReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VendorReference" - } - } - } - } - } - } -}; - -export const OnPremiseResourceDetails: msRest.CompositeMapper = { - serializedName: "OnPremise", - type: { - name: "Composite", - polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, - uberParent: "ResourceDetails", - className: "OnPremiseResourceDetails", - modelProperties: { - ...ResourceDetails.type.modelProperties, - workspaceId: { + securityFamily: { required: true, - serializedName: "workspaceId", + serializedName: "properties.securityFamily", type: { name: "String" } }, - vmuuid: { + provisioningState: { required: true, - serializedName: "vmuuid", + serializedName: "properties.provisioningState", type: { name: "String" } }, - sourceComputerId: { + template: { required: true, - serializedName: "sourceComputerId", + serializedName: "properties.template", type: { name: "String" } }, - machineName: { + protectionStatus: { required: true, - serializedName: "machineName", + serializedName: "properties.protectionStatus", type: { name: "String" } @@ -2943,18 +5597,20 @@ export const OnPremiseResourceDetails: msRest.CompositeMapper = { } }; -export const AzureResourceDetails: msRest.CompositeMapper = { - serializedName: "Azure", +export const ProxyServerProperties: msRest.CompositeMapper = { + serializedName: "ProxyServerProperties", type: { name: "Composite", - polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, - uberParent: "ResourceDetails", - className: "AzureResourceDetails", + className: "ProxyServerProperties", modelProperties: { - ...ResourceDetails.type.modelProperties, - id: { - readOnly: true, - serializedName: "id", + ip: { + serializedName: "ip", + type: { + name: "String" + } + }, + port: { + serializedName: "port", type: { name: "String" } @@ -2963,20 +5619,20 @@ export const AzureResourceDetails: msRest.CompositeMapper = { } }; -export const AutomationScope: msRest.CompositeMapper = { - serializedName: "AutomationScope", +export const ServicePrincipalProperties: msRest.CompositeMapper = { + serializedName: "ServicePrincipalProperties", type: { name: "Composite", - className: "AutomationScope", + className: "ServicePrincipalProperties", modelProperties: { - description: { - serializedName: "description", + applicationId: { + serializedName: "applicationId", type: { name: "String" } }, - scopePath: { - serializedName: "scopePath", + secret: { + serializedName: "secret", type: { name: "String" } @@ -2985,220 +5641,148 @@ export const AutomationScope: msRest.CompositeMapper = { } }; -export const AutomationTriggeringRule: msRest.CompositeMapper = { - serializedName: "AutomationTriggeringRule", +export const HybridComputeSettingsProperties: msRest.CompositeMapper = { + serializedName: "HybridComputeSettingsProperties", type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "HybridComputeSettingsProperties", modelProperties: { - propertyJPath: { - serializedName: "propertyJPath", + hybridComputeProvisioningState: { + readOnly: true, + serializedName: "hybridComputeProvisioningState", type: { name: "String" } }, - propertyType: { - serializedName: "propertyType", + autoProvision: { + required: true, + serializedName: "autoProvision", type: { name: "String" } }, - expectedValue: { - serializedName: "expectedValue", + resourceGroupName: { + serializedName: "resourceGroupName", type: { name: "String" } }, - operator: { - serializedName: "operator", + region: { + serializedName: "region", type: { name: "String" } - } - } - } -}; - -export const AutomationRuleSet: msRest.CompositeMapper = { - serializedName: "AutomationRuleSet", - type: { - name: "Composite", - className: "AutomationRuleSet", - modelProperties: { - rules: { - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationTriggeringRule" - } - } - } - } - } - } -}; - -export const AutomationSource: msRest.CompositeMapper = { - serializedName: "AutomationSource", - type: { - name: "Composite", - className: "AutomationSource", - modelProperties: { - eventSource: { - serializedName: "eventSource", + }, + proxyServer: { + serializedName: "proxyServer", type: { - name: "String" + name: "Composite", + className: "ProxyServerProperties" } }, - ruleSets: { - serializedName: "ruleSets", + servicePrincipal: { + serializedName: "servicePrincipal", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationRuleSet" - } - } + name: "Composite", + className: "ServicePrincipalProperties" } } } } }; -export const AutomationAction: msRest.CompositeMapper = { - serializedName: "AutomationAction", +export const AuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "AuthenticationDetailsProperties", type: { name: "Composite", polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType" + serializedName: "authenticationType", + clientName: "authenticationType" }, - uberParent: "AutomationAction", - className: "AutomationAction", - modelProperties: { - actionType: { - required: true, - serializedName: "actionType", - type: { - name: "String" - } - } - } - } -}; - -export const Automation: msRest.CompositeMapper = { - serializedName: "Automation", - type: { - name: "Composite", - className: "Automation", + uberParent: "AuthenticationDetailsProperties", + className: "AuthenticationDetailsProperties", modelProperties: { - ...TrackedResource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - }, - scopes: { - serializedName: "properties.scopes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationScope" - } - } - } - }, - sources: { - serializedName: "properties.sources", + authenticationProvisioningState: { + readOnly: true, + serializedName: "authenticationProvisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationSource" - } - } + name: "String" } }, - actions: { - serializedName: "properties.actions", + grantedPermissions: { + readOnly: true, + serializedName: "grantedPermissions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationAction" + name: "String" } } } + }, + authenticationType: { + required: true, + serializedName: "authenticationType", + type: { + name: "String" + } } } } }; -export const AutomationActionLogicApp: msRest.CompositeMapper = { - serializedName: "LogicApp", +export const ConnectorSetting: msRest.CompositeMapper = { + serializedName: "ConnectorSetting", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionLogicApp", + className: "ConnectorSetting", modelProperties: { - ...AutomationAction.type.modelProperties, - logicAppResourceId: { - serializedName: "logicAppResourceId", + ...Resource.type.modelProperties, + hybridComputeSettings: { + serializedName: "properties.hybridComputeSettings", type: { - name: "String" + name: "Composite", + className: "HybridComputeSettingsProperties" } }, - uri: { - serializedName: "uri", + authenticationDetails: { + serializedName: "properties.authenticationDetails", type: { - name: "String" + name: "Composite", + className: "AuthenticationDetailsProperties" } } } } }; -export const AutomationActionEventHub: msRest.CompositeMapper = { - serializedName: "EventHub", +export const AwsCredsAuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "awsCreds", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionEventHub", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "AwsCredsAuthenticationDetailsProperties", modelProperties: { - ...AutomationAction.type.modelProperties, - eventHubResourceId: { - serializedName: "eventHubResourceId", + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "accountId", type: { name: "String" } }, - sasPolicyName: { - readOnly: true, - serializedName: "sasPolicyName", + awsAccessKeyId: { + required: true, + serializedName: "awsAccessKeyId", type: { name: "String" } }, - connectionString: { - serializedName: "connectionString", + awsSecretAccessKey: { + required: true, + serializedName: "awsSecretAccessKey", type: { name: "String" } @@ -3207,17 +5791,32 @@ export const AutomationActionEventHub: msRest.CompositeMapper = { } }; -export const AutomationActionWorkspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const AwAssumeRoleAuthenticationDetailsProperties: msRest.CompositeMapper = { + serializedName: "awsAssumeRole", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionWorkspace", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "AwAssumeRoleAuthenticationDetailsProperties", modelProperties: { - ...AutomationAction.type.modelProperties, - workspaceResourceId: { - serializedName: "workspaceResourceId", + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + readOnly: true, + serializedName: "accountId", + type: { + name: "String" + } + }, + awsAssumeRoleArn: { + required: true, + serializedName: "awsAssumeRoleArn", + type: { + name: "String" + } + }, + awsExternalId: { + required: true, + serializedName: "awsExternalId", type: { name: "String" } @@ -3226,20 +5825,88 @@ export const AutomationActionWorkspace: msRest.CompositeMapper = { } }; -export const AutomationValidationStatus: msRest.CompositeMapper = { - serializedName: "AutomationValidationStatus", +export const GcpCredentialsDetailsProperties: msRest.CompositeMapper = { + serializedName: "gcpCredentials", type: { name: "Composite", - className: "AutomationValidationStatus", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + uberParent: "AuthenticationDetailsProperties", + className: "GcpCredentialsDetailsProperties", modelProperties: { - isValid: { - serializedName: "isValid", + ...AuthenticationDetailsProperties.type.modelProperties, + organizationId: { + required: true, + serializedName: "organizationId", type: { - name: "Boolean" + name: "String" } }, - message: { - serializedName: "message", + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + projectId: { + required: true, + serializedName: "projectId", + type: { + name: "String" + } + }, + privateKeyId: { + required: true, + serializedName: "privateKeyId", + type: { + name: "String" + } + }, + privateKey: { + required: true, + serializedName: "privateKey", + type: { + name: "String" + } + }, + clientEmail: { + required: true, + serializedName: "clientEmail", + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "clientId", + type: { + 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" } @@ -3248,47 +5915,132 @@ export const AutomationValidationStatus: msRest.CompositeMapper = { } }; -export const ScopeElement: msRest.CompositeMapper = { - serializedName: "ScopeElement", +export const ScanProperties: msRest.CompositeMapper = { + serializedName: "ScanProperties", type: { name: "Composite", - className: "ScopeElement", + className: "ScanProperties", modelProperties: { - field: { - serializedName: "field", + triggerType: { + serializedName: "triggerType", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + server: { + serializedName: "server", + type: { + name: "String" + } + }, + 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" + } } - }, - additionalProperties: { - type: { - name: "Object" + } + } +}; + +export const Scan: msRest.CompositeMapper = { + serializedName: "Scan", + type: { + name: "Composite", + className: "Scan", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanProperties" + } } } } }; -export const SuppressionAlertsScope: msRest.CompositeMapper = { - serializedName: "SuppressionAlertsScope", +export const Scans: msRest.CompositeMapper = { + serializedName: "Scans", type: { name: "Composite", - className: "SuppressionAlertsScope", + className: "Scans", modelProperties: { - allOf: { - required: true, - serializedName: "allOf", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ScopeElement", - additionalProperties: { - type: { - name: "Object" - } - } + className: "Scan" } } } @@ -3297,163 +6049,162 @@ export const SuppressionAlertsScope: msRest.CompositeMapper = { } }; -export const AlertsSuppressionRule: msRest.CompositeMapper = { - serializedName: "AlertsSuppressionRule", +export const Remediation: msRest.CompositeMapper = { + serializedName: "Remediation", type: { name: "Composite", - className: "AlertsSuppressionRule", + className: "Remediation", modelProperties: { - ...Resource.type.modelProperties, - alertType: { - required: true, - serializedName: "properties.alertType", - type: { - name: "String" - } - }, - lastModifiedUtc: { - readOnly: true, - serializedName: "properties.lastModifiedUtc", - type: { - name: "DateTime" - } - }, - expirationDateUtc: { - serializedName: "properties.expirationDateUtc", - type: { - name: "DateTime" - } - }, - reason: { - required: true, - serializedName: "properties.reason", + description: { + serializedName: "description", type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + scripts: { + serializedName: "scripts", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled", - "Expired" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - comment: { - serializedName: "properties.comment", + automated: { + serializedName: "automated", type: { - name: "String" + name: "Boolean" } }, - suppressionAlertsScope: { - serializedName: "properties.suppressionAlertsScope", + portalLink: { + serializedName: "portalLink", type: { - name: "Composite", - className: "SuppressionAlertsScope" + name: "String" } } } } }; -export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataPartnerData", +export const Baseline: msRest.CompositeMapper = { + serializedName: "Baseline", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", + className: "Baseline", modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", + expectedResults: { + serializedName: "expectedResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - secret: { - required: true, - serializedName: "secret", + updatedTime: { + serializedName: "updatedTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataProperties", +export const BaselineAdjustedResult: msRest.CompositeMapper = { + serializedName: "BaselineAdjustedResult", type: { name: "Composite", - className: "SecurityAssessmentMetadataProperties", + className: "BaselineAdjustedResult", modelProperties: { - displayName: { - required: true, - serializedName: "displayName", - type: { - name: "String" - } - }, - policyDefinitionId: { - readOnly: true, - serializedName: "policyDefinitionId", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + baseline: { + serializedName: "baseline", type: { - name: "String" + name: "Composite", + className: "Baseline" } }, - remediationDescription: { - serializedName: "remediationDescription", + status: { + serializedName: "status", type: { name: "String" } }, - category: { - serializedName: "category", + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - severity: { - required: true, - serializedName: "severity", + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } - }, - userImpact: { - serializedName: "userImpact", + } + } + } +}; + +export const QueryCheck: msRest.CompositeMapper = { + serializedName: "QueryCheck", + type: { + name: "Composite", + className: "QueryCheck", + modelProperties: { + query: { + serializedName: "query", type: { name: "String" } }, - implementationEffort: { - serializedName: "implementationEffort", + expectedResult: { + serializedName: "expectedResult", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - threats: { - serializedName: "threats", + columnNames: { + serializedName: "columnNames", type: { name: "Sequence", element: { @@ -3462,291 +6213,376 @@ export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { } } } - }, - preview: { - serializedName: "preview", - type: { - name: "Boolean" - } - }, - assessmentType: { - required: true, - serializedName: "assessmentType", + } + } + } +}; + +export const BenchmarkReference: msRest.CompositeMapper = { + serializedName: "BenchmarkReference", + type: { + name: "Composite", + className: "BenchmarkReference", + modelProperties: { + benchmark: { + serializedName: "benchmark", type: { name: "String" } }, - partnerData: { - serializedName: "partnerData", + reference: { + serializedName: "reference", type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + name: "String" } } } } }; -export const SecurityAssessmentMetadata: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadata", +export const VaRule: msRest.CompositeMapper = { + serializedName: "VaRule", type: { name: "Composite", - className: "SecurityAssessmentMetadata", + className: "VaRule", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", + ruleId: { + serializedName: "ruleId", type: { name: "String" } }, - policyDefinitionId: { - readOnly: true, - serializedName: "properties.policyDefinitionId", + severity: { + serializedName: "severity", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + ruleType: { + serializedName: "ruleType", + type: { + name: "String" + } + }, + title: { + serializedName: "title", type: { name: "String" } }, description: { - serializedName: "properties.description", + serializedName: "description", type: { name: "String" } }, - remediationDescription: { - serializedName: "properties.remediationDescription", + rationale: { + serializedName: "rationale", type: { name: "String" } }, - category: { - serializedName: "properties.category", + queryCheck: { + serializedName: "queryCheck", + type: { + name: "Composite", + className: "QueryCheck" + } + }, + benchmarkReferences: { + serializedName: "benchmarkReferences", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "BenchmarkReference" } } } - }, - severity: { - required: true, - serializedName: "properties.severity", + } + } + } +}; + +export const ScanResultProperties: msRest.CompositeMapper = { + serializedName: "ScanResultProperties", + type: { + name: "Composite", + className: "ScanResultProperties", + modelProperties: { + ruleId: { + serializedName: "ruleId", type: { name: "String" } }, - userImpact: { - serializedName: "properties.userImpact", + status: { + serializedName: "status", type: { name: "String" } }, - implementationEffort: { - serializedName: "properties.implementationEffort", + isTrimmed: { + serializedName: "isTrimmed", type: { - name: "String" + name: "Boolean" } }, - threats: { - serializedName: "properties.threats", + queryResults: { + serializedName: "queryResults", type: { name: "Sequence", element: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } }, - preview: { - serializedName: "properties.preview", + remediation: { + serializedName: "remediation", type: { - name: "Boolean" + name: "Composite", + className: "Remediation" } }, - assessmentType: { - required: true, - serializedName: "properties.assessmentType", + baselineAdjustedResult: { + serializedName: "baselineAdjustedResult", type: { - name: "String" + name: "Composite", + className: "BaselineAdjustedResult" } }, - partnerData: { - serializedName: "properties.partnerData", + ruleMetadata: { + serializedName: "ruleMetadata", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + className: "VaRule" } } } } }; -export const AssessmentStatus: msRest.CompositeMapper = { - serializedName: "AssessmentStatus", +export const ScanResult: msRest.CompositeMapper = { + serializedName: "ScanResult", type: { name: "Composite", - className: "AssessmentStatus", + className: "ScanResult", modelProperties: { - code: { - required: true, - serializedName: "code", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ScanResultProperties" } - }, - cause: { - serializedName: "cause", + } + } + } +}; + +export const ScanResults: msRest.CompositeMapper = { + serializedName: "ScanResults", + type: { + name: "Composite", + className: "ScanResults", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScanResult" + } + } + } + } + } + } +}; + +export const RuleResultsInput: msRest.CompositeMapper = { + serializedName: "RuleResultsInput", + type: { + name: "Composite", + className: "RuleResultsInput", + modelProperties: { + latestScan: { + serializedName: "latestScan", + type: { + name: "Boolean" } }, - description: { - serializedName: "description", + results: { + serializedName: "results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const AssessmentLinks: msRest.CompositeMapper = { - serializedName: "AssessmentLinks", +export const RuleResultsProperties: msRest.CompositeMapper = { + serializedName: "RuleResultsProperties", type: { name: "Composite", - className: "AssessmentLinks", + className: "RuleResultsProperties", modelProperties: { - azurePortalUri: { - readOnly: true, - serializedName: "azurePortalUri", + results: { + serializedName: "results", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } } } } }; -export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentPartnerData", +export const RuleResults: msRest.CompositeMapper = { + serializedName: "RuleResults", type: { name: "Composite", - className: "SecurityAssessmentPartnerData", + className: "RuleResults", modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", - type: { - name: "String" - } - }, - secret: { - required: true, - serializedName: "secret", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "RuleResultsProperties" } } } } }; -export const SecurityAssessment: msRest.CompositeMapper = { - serializedName: "SecurityAssessment", +export const RulesResults: msRest.CompositeMapper = { + serializedName: "RulesResults", type: { name: "Composite", - className: "SecurityAssessment", + className: "RulesResults", modelProperties: { - ...Resource.type.modelProperties, - resourceDetails: { - required: true, - serializedName: "properties.resourceDetails", - type: { - name: "Composite", - className: "ResourceDetails" - } - }, - displayName: { - readOnly: true, - serializedName: "properties.displayName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuleResults" + } + } } - }, - status: { - required: true, - serializedName: "properties.status", + } + } + } +}; + +export const RulesResultsInput: msRest.CompositeMapper = { + serializedName: "RulesResultsInput", + type: { + name: "Composite", + className: "RulesResultsInput", + modelProperties: { + latestScan: { + serializedName: "latestScan", type: { - name: "Composite", - className: "AssessmentStatus" + name: "Boolean" } }, - additionalData: { - serializedName: "properties.additionalData", + results: { + serializedName: "results", type: { name: "Dictionary", value: { type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + 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", +export const IotDefenderSettingsModel: msRest.CompositeMapper = { + serializedName: "IotDefenderSettingsModel", type: { name: "Composite", - className: "ProtectionMode", + className: "IotDefenderSettingsModel", modelProperties: { - exe: { - serializedName: "exe", - type: { - name: "String" - } - }, - msi: { - serializedName: "msi", + ...Resource.type.modelProperties, + deviceQuota: { + required: true, + serializedName: "properties.deviceQuota", + constraints: { + InclusiveMinimum: 1000 + }, type: { - name: "String" + name: "Number" } }, - script: { - serializedName: "script", + sentinelWorkspaceResourceIds: { + required: true, + serializedName: "properties.sentinelWorkspaceResourceIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - executable: { - serializedName: "executable", + onboardingKind: { + required: true, + serializedName: "properties.onboardingKind", type: { name: "String" } @@ -3755,54 +6591,51 @@ export const ProtectionMode: msRest.CompositeMapper = { } }; -export const AppWhitelistingIssueSummary: msRest.CompositeMapper = { - serializedName: "AppWhitelistingIssueSummary", +export const IotDefenderSettingsList: msRest.CompositeMapper = { + serializedName: "IotDefenderSettingsList", type: { name: "Composite", - className: "AppWhitelistingIssueSummary", + className: "IotDefenderSettingsList", modelProperties: { - issue: { - serializedName: "issue", - type: { - name: "String" - } - }, - numberOfVms: { - serializedName: "numberOfVms", + value: { + readOnly: true, + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotDefenderSettingsModel" + } + } } } } } }; -export const VmRecommendation: msRest.CompositeMapper = { - serializedName: "VmRecommendation", +export const PackageDownloadInfo: msRest.CompositeMapper = { + serializedName: "PackageDownloadInfo", type: { name: "Composite", - className: "VmRecommendation", + className: "PackageDownloadInfo", modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + link: { + serializedName: "link", type: { name: "String" } }, - enforcementSupport: { - serializedName: "enforcementSupport", + versionKind: { + readOnly: true, + serializedName: "versionKind", type: { name: "String" } @@ -3811,32 +6644,16 @@ export const VmRecommendation: msRest.CompositeMapper = { } }; -export const PublisherInfo: msRest.CompositeMapper = { - serializedName: "PublisherInfo", +export const UpgradePackageDownloadInfo: msRest.CompositeMapper = { + serializedName: "UpgradePackageDownloadInfo", type: { name: "Composite", - className: "PublisherInfo", + className: "UpgradePackageDownloadInfo", modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", - type: { - name: "String" - } - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String" - } - }, - version: { - serializedName: "version", + ...PackageDownloadInfo.type.modelProperties, + fromVersion: { + readOnly: true, + serializedName: "fromVersion", type: { name: "String" } @@ -3845,227 +6662,322 @@ export const PublisherInfo: msRest.CompositeMapper = { } }; -export const UserRecommendation: msRest.CompositeMapper = { - serializedName: "UserRecommendation", +export const PackageDownloadsSensorFullOvf: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor_full_ovf", type: { name: "Composite", - className: "UserRecommendation", + className: "PackageDownloadsSensorFullOvf", modelProperties: { - username: { - serializedName: "username", + enterprise: { + readOnly: true, + serializedName: "enterprise", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - recommendationAction: { - serializedName: "recommendationAction", + medium: { + readOnly: true, + serializedName: "medium", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } + } + }, + line: { + readOnly: true, + serializedName: "line", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } } } } }; -export const PathRecommendation: msRest.CompositeMapper = { - serializedName: "PathRecommendation", +export const PackageDownloadsSensorFull: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor_full", type: { name: "Composite", - className: "PathRecommendation", + className: "PackageDownloadsSensorFull", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - action: { - serializedName: "action", + iso: { + readOnly: true, + serializedName: "iso", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - type: { - serializedName: "type", + ovf: { + serializedName: "ovf", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsSensorFullOvf" } - }, - publisherInfo: { - serializedName: "publisherInfo", + } + } + } +}; + +export const PackageDownloadsSensor: msRest.CompositeMapper = { + serializedName: "PackageDownloads_sensor", + type: { + name: "Composite", + className: "PackageDownloadsSensor", + modelProperties: { + full: { + readOnly: true, + serializedName: "full", type: { name: "Composite", - className: "PublisherInfo" + className: "PackageDownloadsSensorFull" } }, - common: { - serializedName: "common", + upgrade: { + serializedName: "upgrade", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradePackageDownloadInfo" + } + } } - }, - userSids: { - serializedName: "userSids", + } + } + } +}; + +export const PackageDownloadsCentralManagerFullOvf: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager_full_ovf", + type: { + name: "Composite", + className: "PackageDownloadsCentralManagerFullOvf", + modelProperties: { + enterprise: { + readOnly: true, + serializedName: "enterprise", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PackageDownloadInfo" } } } }, - usernames: { - serializedName: "usernames", + enterpriseHighAvailability: { + readOnly: true, + serializedName: "enterpriseHighAvailability", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserRecommendation" + className: "PackageDownloadInfo" } } } }, - fileType: { - serializedName: "fileType", + medium: { + readOnly: true, + serializedName: "medium", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - configurationStatus: { - serializedName: "configurationStatus", + mediumHighAvailability: { + readOnly: true, + serializedName: "mediumHighAvailability", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } } } } }; -export const AppWhitelistingGroup: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroup", +export const PackageDownloadsCentralManagerFull: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager_full", type: { name: "Composite", - className: "AppWhitelistingGroup", + className: "PackageDownloadsCentralManagerFull", modelProperties: { - id: { + iso: { readOnly: true, - serializedName: "id", + serializedName: "iso", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - name: { + ovf: { readOnly: true, - serializedName: "name", + serializedName: "ovf", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManagerFullOvf" } - }, - type: { + } + } + } +}; + +export const PackageDownloadsCentralManager: msRest.CompositeMapper = { + serializedName: "PackageDownloads_centralManager", + type: { + name: "Composite", + className: "PackageDownloadsCentralManager", + modelProperties: { + full: { readOnly: true, - serializedName: "type", + serializedName: "full", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManagerFull" } }, - location: { + upgrade: { readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - enforcementMode: { - serializedName: "properties.enforcementMode", + serializedName: "upgrade", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradePackageDownloadInfo" + } + } } - }, - protectionMode: { - serializedName: "properties.protectionMode", + } + } + } +}; + +export const PackageDownloads: msRest.CompositeMapper = { + serializedName: "PackageDownloads", + type: { + name: "Composite", + className: "PackageDownloads", + modelProperties: { + sensor: { + readOnly: true, + serializedName: "sensor", type: { name: "Composite", - className: "ProtectionMode" + className: "PackageDownloadsSensor" } }, - configurationStatus: { + centralManager: { readOnly: true, - serializedName: "properties.configurationStatus", + serializedName: "centralManager", type: { - name: "String" + name: "Composite", + className: "PackageDownloadsCentralManager" } }, - recommendationStatus: { + threatIntelligence: { readOnly: true, - serializedName: "properties.recommendationStatus", + serializedName: "threatIntelligence", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageDownloadInfo" + } + } } }, - issues: { + snmp: { readOnly: true, - serializedName: "properties.issues", + serializedName: "snmp", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AppWhitelistingIssueSummary" + className: "PackageDownloadInfo" } } } }, - sourceSystem: { + wmiTool: { readOnly: true, - serializedName: "properties.sourceSystem", - type: { - name: "String" - } - }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", + serializedName: "wmiTool", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VmRecommendation" + className: "PackageDownloadInfo" } } } }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", + authorizedDevicesImportTemplate: { + readOnly: true, + serializedName: "authorizedDevicesImportTemplate", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PathRecommendation" + className: "PackageDownloadInfo" } } } - } - } - } -}; - -export const AppWhitelistingGroups: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroups", - type: { - name: "Composite", - className: "AppWhitelistingGroups", - modelProperties: { - value: { - serializedName: "value", + }, + deviceInformationUpdateImportTemplate: { + readOnly: true, + serializedName: "deviceInformationUpdateImportTemplate", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AppWhitelistingGroup" + className: "PackageDownloadInfo" } } } @@ -4074,116 +6986,106 @@ export const AppWhitelistingGroups: msRest.CompositeMapper = { } }; -export const Rule: msRest.CompositeMapper = { - serializedName: "Rule", +export const IotSensorsModel: msRest.CompositeMapper = { + serializedName: "IotSensorsModel", type: { name: "Composite", - className: "Rule", + className: "IotSensorsModel", modelProperties: { - name: { - serializedName: "name", + ...Resource.type.modelProperties, + connectivityTime: { + readOnly: true, + serializedName: "properties.connectivityTime", type: { name: "String" } }, - direction: { - serializedName: "direction", + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", type: { name: "String" } }, - destinationPort: { - serializedName: "destinationPort", + dynamicLearning: { + readOnly: true, + serializedName: "properties.dynamicLearning", type: { - name: "Number" + name: "Boolean" } }, - protocols: { - serializedName: "protocols", + learningMode: { + readOnly: true, + serializedName: "properties.learningMode", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - ipAddresses: { - serializedName: "ipAddresses", + sensorStatus: { + readOnly: true, + serializedName: "properties.sensorStatus", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { - serializedName: "EffectiveNetworkSecurityGroups", - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - modelProperties: { - networkInterface: { - serializedName: "networkInterface", + }, + sensorVersion: { + readOnly: true, + serializedName: "properties.sensorVersion", type: { name: "String" } }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", + tiAutomaticUpdates: { + serializedName: "properties.tiAutomaticUpdates", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + 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" + } + }, + sensorType: { + serializedName: "properties.sensorType", + type: { + name: "String" } } } } }; -export const AdaptiveNetworkHardening: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardening", +export const IotSensorsList: msRest.CompositeMapper = { + serializedName: "IotSensorsList", type: { name: "Composite", - className: "AdaptiveNetworkHardening", + className: "IotSensorsList", 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", + value: { + readOnly: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EffectiveNetworkSecurityGroups" + className: "IotSensorsModel" } } } @@ -4192,107 +7094,133 @@ export const AdaptiveNetworkHardening: msRest.CompositeMapper = { } }; -export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardeningEnforceRequest", +export const ResetPasswordInput: msRest.CompositeMapper = { + serializedName: "ResetPasswordInput", type: { name: "Composite", - className: "AdaptiveNetworkHardeningEnforceRequest", + className: "ResetPasswordInput", modelProperties: { - rules: { - required: true, - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule" - } - } - } - }, - networkSecurityGroups: { - required: true, - serializedName: "networkSecurityGroups", + applianceId: { + serializedName: "applianceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const ConnectedResource: msRest.CompositeMapper = { - serializedName: "ConnectedResource", +export const IpAddress: msRest.CompositeMapper = { + serializedName: "IpAddress", type: { name: "Composite", - className: "ConnectedResource", + className: "IpAddress", modelProperties: { - connectedResourceId: { + v4Address: { readOnly: true, - serializedName: "connectedResourceId", + serializedName: "v4Address", type: { name: "String" } }, - tcpPorts: { + detectionTime: { readOnly: true, - serializedName: "tcpPorts", + serializedName: "detectionTime", + type: { + name: "DateTime" + } + }, + subnetCidr: { + readOnly: true, + serializedName: "subnetCidr", type: { name: "String" } }, - udpPorts: { + fqdn: { readOnly: true, - serializedName: "udpPorts", + serializedName: "fqdn", type: { name: "String" } + }, + fqdnLastLookupTime: { + readOnly: true, + serializedName: "fqdnLastLookupTime", + type: { + name: "DateTime" + } } } } }; -export const ConnectableResource: msRest.CompositeMapper = { - serializedName: "ConnectableResource", +export const MacAddress: msRest.CompositeMapper = { + serializedName: "MacAddress", type: { name: "Composite", - className: "ConnectableResource", + className: "MacAddress", modelProperties: { - id: { + address: { readOnly: true, - serializedName: "id", + serializedName: "address", type: { name: "String" } }, - inboundConnectedResources: { + detectionTime: { readOnly: true, - serializedName: "inboundConnectedResources", + serializedName: "detectionTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource" - } - } + name: "DateTime" } }, - outboundConnectedResources: { + significance: { readOnly: true, - serializedName: "outboundConnectedResources", + serializedName: "significance", + type: { + name: "String" + } + }, + relationToIpStatus: { + readOnly: true, + serializedName: "relationToIpStatus", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterface: msRest.CompositeMapper = { + serializedName: "NetworkInterface", + type: { + name: "Composite", + className: "NetworkInterface", + modelProperties: { + ipAddress: { + serializedName: "ipAddress", + type: { + name: "Composite", + className: "IpAddress" + } + }, + macAddress: { + serializedName: "macAddress", + type: { + name: "Composite", + className: "MacAddress" + } + }, + vlans: { + readOnly: true, + serializedName: "vlans", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectedResource" + name: "String" } } } @@ -4301,73 +7229,104 @@ export const ConnectableResource: msRest.CompositeMapper = { } }; -export const AllowedConnectionsResource: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsResource", +export const Protocol1: msRest.CompositeMapper = { + serializedName: "Protocol", type: { name: "Composite", - className: "AllowedConnectionsResource", + className: "Protocol1", modelProperties: { - id: { + name: { readOnly: true, - serializedName: "id", + serializedName: "name", type: { name: "String" } }, - name: { + identifiers: { + serializedName: "identifiers", + type: { + name: "String" + } + } + } + } +}; + +export const Firmware: msRest.CompositeMapper = { + serializedName: "Firmware", + type: { + name: "Composite", + className: "Firmware", + modelProperties: { + moduleAddress: { readOnly: true, - serializedName: "name", + serializedName: "moduleAddress", type: { name: "String" } }, - type: { + rack: { readOnly: true, - serializedName: "type", + serializedName: "rack", type: { name: "String" } }, - location: { + slot: { readOnly: true, - serializedName: "location", + serializedName: "slot", type: { name: "String" } }, - calculatedDateTime: { + serial: { readOnly: true, - serializedName: "properties.calculatedDateTime", + serializedName: "serial", type: { - name: "DateTime" + name: "String" } }, - connectableResources: { + model: { readOnly: true, - serializedName: "properties.connectableResources", + serializedName: "model", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectableResource" - } - } + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + additionalData: { + readOnly: true, + serializedName: "additionalData", + type: { + name: "Object" } } } } }; -export const TopologySingleResourceParent: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceParent", +export const Sensor: msRest.CompositeMapper = { + serializedName: "Sensor", type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "Sensor", modelProperties: { - resourceId: { + name: { readOnly: true, - serializedName: "resourceId", + serializedName: "name", + type: { + name: "String" + } + }, + zone: { + readOnly: true, + serializedName: "zone", type: { name: "String" } @@ -4376,15 +7335,15 @@ export const TopologySingleResourceParent: msRest.CompositeMapper = { } }; -export const TopologySingleResourceChild: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceChild", +export const Site: msRest.CompositeMapper = { + serializedName: "Site", type: { name: "Composite", - className: "TopologySingleResourceChild", + className: "Site", modelProperties: { - resourceId: { + displayName: { readOnly: true, - serializedName: "resourceId", + serializedName: "displayName", type: { name: "String" } @@ -4393,76 +7352,242 @@ export const TopologySingleResourceChild: msRest.CompositeMapper = { } }; -export const TopologySingleResource: msRest.CompositeMapper = { - serializedName: "TopologySingleResource", +export const Device: msRest.CompositeMapper = { + serializedName: "Device", type: { name: "Composite", - className: "TopologySingleResource", + className: "Device", modelProperties: { - resourceId: { + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + deviceType: { + serializedName: "properties.deviceType", + type: { + name: "String" + } + }, + sourceName: { readOnly: true, - serializedName: "resourceId", + serializedName: "properties.sourceName", type: { name: "String" } }, - severity: { + networkInterfaces: { readOnly: true, - serializedName: "severity", + serializedName: "properties.networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterface" + } + } + } + }, + vendor: { + readOnly: true, + serializedName: "properties.vendor", + type: { + name: "String" + } + }, + osName: { + serializedName: "properties.osName", + type: { + name: "String" + } + }, + protocols: { + readOnly: true, + serializedName: "properties.protocols", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Protocol1" + } + } + } + }, + lastActiveTime: { + readOnly: true, + serializedName: "properties.lastActiveTime", + type: { + name: "DateTime" + } + }, + lastUpdateTime: { + readOnly: true, + serializedName: "properties.lastUpdateTime", + type: { + name: "DateTime" + } + }, + managementState: { + readOnly: true, + serializedName: "properties.managementState", + type: { + name: "String" + } + }, + authorizationState: { + serializedName: "properties.authorizationState", + defaultValue: 'Unauthorized', + type: { + name: "String" + } + }, + deviceCriticality: { + serializedName: "properties.deviceCriticality", + defaultValue: 'Standard', + type: { + name: "String" + } + }, + purdueLevel: { + serializedName: "properties.purdueLevel", + defaultValue: 'ProcessControl', + type: { + name: "String" + } + }, + notes: { + serializedName: "properties.notes", + type: { + name: "String" + } + }, + firmwares: { + readOnly: true, + serializedName: "properties.firmwares", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Firmware" + } + } + } + }, + discoveryTime: { + readOnly: true, + serializedName: "properties.discoveryTime", + type: { + name: "DateTime" + } + }, + programmingState: { + readOnly: true, + serializedName: "properties.programmingState", type: { name: "String" } }, - recommendationsExist: { + lastProgrammingTime: { readOnly: true, - serializedName: "recommendationsExist", + serializedName: "properties.lastProgrammingTime", type: { - name: "Boolean" + name: "DateTime" } }, - networkZones: { + scanningFunctionality: { readOnly: true, - serializedName: "networkZones", + serializedName: "properties.scanningFunctionality", type: { name: "String" } }, - topologyScore: { + lastScanTime: { readOnly: true, - serializedName: "topologyScore", + serializedName: "properties.lastScanTime", type: { - name: "Number" + name: "DateTime" } }, - location: { + riskScore: { readOnly: true, - serializedName: "location", + serializedName: "properties.riskScore", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } }, - parents: { + sensors: { readOnly: true, - serializedName: "parents", + serializedName: "properties.sensors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceParent" + className: "Sensor" } } } }, - children: { + site: { readOnly: true, - serializedName: "children", + serializedName: "properties.site", + type: { + name: "Composite", + className: "Site" + } + }, + deviceStatus: { + readOnly: true, + serializedName: "properties.deviceStatus", + type: { + name: "String" + } + } + } + } +}; + +export const OnPremiseIotSensor: msRest.CompositeMapper = { + serializedName: "OnPremiseIotSensor", + type: { + name: "Composite", + className: "OnPremiseIotSensor", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const OnPremiseIotSensorsList: msRest.CompositeMapper = { + serializedName: "OnPremiseIotSensorsList", + type: { + name: "Composite", + className: "OnPremiseIotSensorsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceChild" + className: "OnPremiseIotSensor" } } } @@ -4471,56 +7596,50 @@ export const TopologySingleResource: msRest.CompositeMapper = { } }; -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", +export const IotSitesModel: msRest.CompositeMapper = { + serializedName: "IotSitesModel", type: { name: "Composite", - className: "TopologyResource", + className: "IotSitesModel", 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", + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", type: { name: "String" } }, - calculatedDateTime: { - readOnly: true, - serializedName: "properties.calculatedDateTime", + tags: { + serializedName: "properties.tags", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - }, - topologyResources: { + } + } + } +}; + +export const IotSitesList: msRest.CompositeMapper = { + serializedName: "IotSitesList", + type: { + name: "Composite", + className: "IotSitesList", + modelProperties: { + value: { readOnly: true, - serializedName: "properties.topologyResources", + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResource" + className: "IotSitesModel" } } } @@ -4529,173 +7648,140 @@ export const TopologyResource: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPortRule: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPortRule", +export const IotAlertModel: msRest.CompositeMapper = { + serializedName: "IotAlertModel", type: { name: "Composite", - className: "JitNetworkAccessPortRule", + className: "IotAlertModel", modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - protocol: { - required: true, - serializedName: "protocol", + ...Resource.type.modelProperties, + systemAlertId: { + readOnly: true, + serializedName: "properties.systemAlertId", type: { name: "String" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", type: { name: "String" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + alertType: { + readOnly: true, + serializedName: "properties.alertType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - maxRequestAccessDuration: { - required: true, - serializedName: "maxRequestAccessDuration", + startTimeUtc: { + readOnly: true, + serializedName: "properties.startTimeUtc", type: { name: "String" } - } - } - } -}; - -export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + endTimeUtc: { + readOnly: true, + serializedName: "properties.endTimeUtc", type: { name: "String" } }, - ports: { - required: true, - serializedName: "ports", + entities: { + serializedName: "properties.entities", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessPortRule" + name: "Object" } } } }, - publicIpAddress: { - serializedName: "publicIpAddress", + extendedProperties: { + serializedName: "properties.extendedProperties", type: { - name: "String" + name: "Object" } } } } }; -export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestPort", +export const IotAlertType: msRest.CompositeMapper = { + serializedName: "IotAlertType", type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "IotAlertType", modelProperties: { - number: { - required: true, - serializedName: "number", + ...Resource.type.modelProperties, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", type: { - name: "Number" + name: "String" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + severity: { + readOnly: true, + serializedName: "properties.severity", type: { name: "String" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + description: { + readOnly: true, + serializedName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + providerName: { + readOnly: true, + serializedName: "properties.providerName", type: { - name: "DateTime" + name: "String" } }, - status: { - required: true, - serializedName: "status", + productName: { + readOnly: true, + serializedName: "properties.productName", type: { name: "String" } }, - statusReason: { - required: true, - serializedName: "statusReason", + productComponentName: { + readOnly: true, + serializedName: "properties.productComponentName", type: { name: "String" } }, - mappedPort: { - serializedName: "mappedPort", + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + intent: { + readOnly: true, + serializedName: "properties.intent", type: { name: "String" } }, - ports: { - required: true, - serializedName: "ports", + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessRequestPort" + name: "String" } } } @@ -4704,117 +7790,137 @@ export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { } }; -export const JitNetworkAccessRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequest", +export const IotAlertTypeList: msRest.CompositeMapper = { + serializedName: "IotAlertTypeList", type: { name: "Composite", - className: "JitNetworkAccessRequest", + className: "IotAlertTypeList", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine" + className: "IotAlertType" } } } - }, - startTimeUtc: { - required: true, - serializedName: "startTimeUtc", + } + } + } +}; + +export const IotRecommendationModel: msRest.CompositeMapper = { + serializedName: "IotRecommendationModel", + type: { + name: "Composite", + className: "IotRecommendationModel", + modelProperties: { + ...Resource.type.modelProperties, + deviceId: { + readOnly: true, + serializedName: "properties.deviceId", type: { - name: "DateTime" + name: "String" } }, - requestor: { - required: true, - serializedName: "requestor", + recommendationType: { + readOnly: true, + serializedName: "properties.recommendationType", type: { name: "String" } }, - justification: { - serializedName: "justification", + discoveredTimeUtc: { + readOnly: true, + serializedName: "properties.discoveredTimeUtc", type: { name: "String" } + }, + recommendationAdditionalData: { + serializedName: "properties.recommendationAdditionalData", + type: { + name: "Object" + } } } } }; -export const JitNetworkAccessPolicy: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicy", +export const IotRecommendationType: msRest.CompositeMapper = { + serializedName: "IotRecommendationType", type: { name: "Composite", - className: "JitNetworkAccessPolicy", + className: "IotRecommendationType", modelProperties: { - id: { + ...Resource.type.modelProperties, + recommendationDisplayName: { readOnly: true, - serializedName: "id", + serializedName: "properties.recommendationDisplayName", type: { name: "String" } }, - name: { + severity: { readOnly: true, - serializedName: "name", + serializedName: "properties.severity", type: { name: "String" } }, - type: { + description: { readOnly: true, - serializedName: "type", + serializedName: "properties.description", type: { name: "String" } }, - kind: { - serializedName: "kind", + productName: { + readOnly: true, + serializedName: "properties.productName", type: { name: "String" } }, - location: { + productComponentName: { readOnly: true, - serializedName: "location", + serializedName: "properties.productComponentName", type: { name: "String" } }, - virtualMachines: { - required: true, - serializedName: "properties.virtualMachines", + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine" - } - } + name: "String" } }, - requests: { - serializedName: "properties.requests", + control: { + readOnly: true, + serializedName: "properties.control", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessRequest" + name: "String" } } } }, - provisioningState: { + dataSource: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "properties.dataSource", type: { name: "String" } @@ -4823,203 +7929,272 @@ export const JitNetworkAccessPolicy: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiatePort", +export const IotRecommendationTypeList: msRest.CompositeMapper = { + serializedName: "IotRecommendationTypeList", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "IotRecommendationTypeList", modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", - type: { - name: "String" - } - }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + value: { + serializedName: "value", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotRecommendationType" + } + } } } } } }; -export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", +export const ResourceIdentifier: msRest.CompositeMapper = { + serializedName: "ResourceIdentifier", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "ResourceIdentifier", + className: "ResourceIdentifier", modelProperties: { - id: { + type: { required: true, - serializedName: "id", + serializedName: "type", type: { name: "String" } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort" - } - } - } } } } }; -export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateRequest", +export const AlertEntity: msRest.CompositeMapper = { + serializedName: "AlertEntity", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", + className: "AlertEntity", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine" - } - } - } - }, - justification: { - serializedName: "justification", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } } + }, + additionalProperties: { + type: { + name: "Object" + } } } }; -export const DiscoveredSecuritySolution: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolution", +export const Alert: msRest.CompositeMapper = { + serializedName: "Alert", type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "Alert", modelProperties: { - id: { + ...Resource.type.modelProperties, + alertType: { readOnly: true, - serializedName: "id", + serializedName: "properties.alertType", type: { name: "String" } }, - name: { + systemAlertId: { readOnly: true, - serializedName: "name", + serializedName: "properties.systemAlertId", type: { name: "String" } }, - type: { + productComponentName: { readOnly: true, - serializedName: "type", + 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" } }, - location: { + extendedLinks: { readOnly: true, - serializedName: "location", + serializedName: "properties.extendedLinks", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } } }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", + alertUri: { + readOnly: true, + serializedName: "properties.alertUri", type: { name: "String" } }, - offer: { - required: true, - serializedName: "properties.offer", + timeGeneratedUtc: { + readOnly: true, + serializedName: "properties.timeGeneratedUtc", type: { - name: "String" + name: "DateTime" } }, - publisher: { - required: true, - serializedName: "properties.publisher", + productName: { + readOnly: true, + serializedName: "properties.productName", type: { name: "String" } }, - sku: { - required: true, - serializedName: "properties.sku", + processingEndTimeUtc: { + readOnly: true, + serializedName: "properties.processingEndTimeUtc", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const ExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolution", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "ExternalSecuritySolution", - className: "ExternalSecuritySolution", - modelProperties: { - id: { + }, + entities: { readOnly: true, - serializedName: "id", + serializedName: "properties.entities", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { + type: { + name: "Object" + } + } + } + } } }, - name: { + isIncident: { readOnly: true, - serializedName: "name", + serializedName: "properties.isIncident", type: { - name: "String" + name: "Boolean" } }, - type: { + correlationKey: { readOnly: true, - serializedName: "type", + serializedName: "properties.correlationKey", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + extendedProperties: { + serializedName: "properties.extendedProperties", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - kind: { - required: true, - serializedName: "kind", + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", type: { name: "String" } @@ -5028,225 +8203,159 @@ export const ExternalSecuritySolution: msRest.CompositeMapper = { } }; -export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionProperties", +export const AzureResourceIdentifier: msRest.CompositeMapper = { + serializedName: "AzureResource", type: { name: "Composite", - className: "ExternalSecuritySolutionProperties", + polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, + uberParent: "ResourceIdentifier", + className: "AzureResourceIdentifier", modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", - type: { - name: "String" - } - }, - deviceType: { - serializedName: "deviceType", + ...ResourceIdentifier.type.modelProperties, + azureResourceId: { + readOnly: true, + serializedName: "azureResourceId", type: { name: "String" } - }, - workspace: { - serializedName: "workspace", - type: { - name: "Composite", - className: "ConnectedWorkspace" - } - } - }, - additionalProperties: { - type: { - name: "Object" } } } }; -export const CefSolutionProperties: msRest.CompositeMapper = { - serializedName: "CefSolutionProperties", +export const LogAnalyticsIdentifier: msRest.CompositeMapper = { + serializedName: "LogAnalytics", type: { name: "Composite", - className: "CefSolutionProperties", + polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, + uberParent: "ResourceIdentifier", + className: "LogAnalyticsIdentifier", modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - hostname: { - serializedName: "hostname", + ...ResourceIdentifier.type.modelProperties, + workspaceId: { + readOnly: true, + serializedName: "workspaceId", type: { name: "String" } }, - agent: { - serializedName: "agent", + 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" } }, - lastEventReceived: { - serializedName: "lastEventReceived", + workspaceResourceGroup: { + readOnly: true, + serializedName: "workspaceResourceGroup", 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", + }, + agentId: { + readOnly: true, + serializedName: "agentId", 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", +export const AlertSimulatorRequestProperties: msRest.CompositeMapper = { + serializedName: "AlertSimulatorRequestProperties", type: { name: "Composite", - className: "ConnectedWorkspace", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "AlertSimulatorRequestProperties", + className: "AlertSimulatorRequestProperties", modelProperties: { - id: { - serializedName: "id", + kind: { + required: true, + serializedName: "kind", 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" - } + }, + additionalProperties: { + type: { + name: "Object" } } } }; -export const AadExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "AAD", +export const AlertSimulatorRequestBody: msRest.CompositeMapper = { + serializedName: "AlertSimulatorRequestBody", type: { name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AadExternalSecuritySolution", + className: "AlertSimulatorRequestBody", modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, properties: { serializedName: "properties", type: { name: "Composite", - className: "AadSolutionProperties" + className: "AlertSimulatorRequestProperties", + additionalProperties: { + type: { + name: "Object" + } + } } } } } }; -export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionKind", +export const AlertSimulatorBundlesRequestProperties: msRest.CompositeMapper = { + serializedName: "Bundles", type: { name: "Composite", - className: "ExternalSecuritySolutionKind1", + polymorphicDiscriminator: AlertSimulatorRequestProperties.type.polymorphicDiscriminator, + uberParent: "AlertSimulatorRequestProperties", + className: "AlertSimulatorBundlesRequestProperties", modelProperties: { - kind: { - serializedName: "kind", + ...AlertSimulatorRequestProperties.type.modelProperties, + bundles: { + serializedName: "bundles", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } - } + }, + additionalProperties: AlertSimulatorRequestProperties.type.additionalProperties } }; -export const AadConnectivityState1: msRest.CompositeMapper = { - serializedName: "AadConnectivityState", +export const Setting: msRest.CompositeMapper = { + serializedName: "Setting", type: { name: "Composite", - className: "AadConnectivityState1", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Setting", + className: "Setting", modelProperties: { - connectivityState: { - serializedName: "connectivityState", + ...Resource.type.modelProperties, + kind: { + required: true, + serializedName: "kind", type: { name: "String" } @@ -5255,101 +8364,72 @@ export const AadConnectivityState1: msRest.CompositeMapper = { } }; -export const SecureScoreItem: msRest.CompositeMapper = { - serializedName: "SecureScoreItem", +export const DataExportSettings: msRest.CompositeMapper = { + serializedName: "DataExportSettings", type: { name: "Composite", - className: "SecureScoreItem", + polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, + uberParent: "Setting", + className: "DataExportSettings", 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 - }, + ...Setting.type.modelProperties, + enabled: { + required: true, + serializedName: "properties.enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const SecureScoreControlScore: msRest.CompositeMapper = { - serializedName: "SecureScoreControlScore", +export const AlertSyncSettings: msRest.CompositeMapper = { + serializedName: "AlertSyncSettings", type: { name: "Composite", - className: "SecureScoreControlScore", + polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, + uberParent: "Setting", + className: "AlertSyncSettings", modelProperties: { - max: { - readOnly: true, - serializedName: "max", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "current", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, + ...Setting.type.modelProperties, + enabled: { + required: true, + serializedName: "properties.enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionSource", +export const IngestionSetting: msRest.CompositeMapper = { + serializedName: "IngestionSetting", type: { name: "Composite", - className: "SecureScoreControlDefinitionSource", + className: "IngestionSetting", modelProperties: { - sourceType: { - serializedName: "sourceType", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Object" } } } } }; -export const AzureResourceLink: msRest.CompositeMapper = { - serializedName: "AzureResourceLink", +export const IngestionSettingToken: msRest.CompositeMapper = { + serializedName: "IngestionSettingToken", type: { name: "Composite", - className: "AzureResourceLink", + className: "IngestionSettingToken", modelProperties: { - id: { + token: { readOnly: true, - serializedName: "id", + serializedName: "token", type: { name: "String" } @@ -5358,58 +8438,45 @@ export const AzureResourceLink: msRest.CompositeMapper = { } }; -export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionItem", +export const IngestionConnectionString: msRest.CompositeMapper = { + serializedName: "IngestionConnectionString", type: { name: "Composite", - className: "SecureScoreControlDefinitionItem", + className: "IngestionConnectionString", modelProperties: { - ...Resource.type.modelProperties, - displayName: { + location: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "location", type: { name: "String" } }, - description: { + value: { readOnly: true, - serializedName: "properties.description", - constraints: { - MaxLength: 256 - }, + serializedName: "value", 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", + } + } + } +}; + +export const ConnectionStrings: msRest.CompositeMapper = { + serializedName: "ConnectionStrings", + type: { + name: "Composite", + className: "ConnectionStrings", + modelProperties: { + value: { + required: true, + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureResourceLink" + className: "IngestionConnectionString" } } } @@ -5418,123 +8485,63 @@ export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { } }; -export const SecureScoreControlDetails: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDetails", +export const Software: msRest.CompositeMapper = { + serializedName: "Software", type: { name: "Composite", - className: "SecureScoreControlDetails", + className: "Software", modelProperties: { ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", + deviceId: { + serializedName: "properties.deviceId", 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" - } - }, - healthyResourceCount: { - readOnly: true, - serializedName: "properties.healthyResourceCount", + osPlatform: { + serializedName: "properties.osPlatform", type: { - name: "Number" + name: "String" } }, - unhealthyResourceCount: { - readOnly: true, - serializedName: "properties.unhealthyResourceCount", + vendor: { + serializedName: "properties.vendor", type: { - name: "Number" + name: "String" } }, - notApplicableResourceCount: { - readOnly: true, - serializedName: "properties.notApplicableResourceCount", + softwareName: { + serializedName: "properties.softwareName", type: { - name: "Number" + name: "String" } }, - definition: { - serializedName: "properties.definition", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem" - } - } - } - } -}; - -export const ComplianceResultList: msRest.CompositeMapper = { - serializedName: "ComplianceResultList", - type: { - name: "Composite", - className: "ComplianceResultList", - modelProperties: { - value: { - required: true, - serializedName: "", + version: { + serializedName: "properties.version", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceResult" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + endOfSupportStatus: { + serializedName: "properties.endOfSupportStatus", type: { name: "String" } - } - } - } -}; - -export const AlertList: msRest.CompositeMapper = { - serializedName: "AlertList", - type: { - name: "Composite", - className: "AlertList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Alert" - } - } + }, + endOfSupportDate: { + serializedName: "properties.endOfSupportDate", + type: { + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + numberOfKnownVulnerabilities: { + serializedName: "properties.numberOfKnownVulnerabilities", + type: { + name: "Number" + } + }, + firstSeenAt: { + serializedName: "properties.firstSeenAt", type: { name: "String" } @@ -5543,20 +8550,21 @@ export const AlertList: msRest.CompositeMapper = { } }; -export const SettingsList: msRest.CompositeMapper = { - serializedName: "SettingsList", +export const ComplianceResultList: msRest.CompositeMapper = { + serializedName: "ComplianceResultList", type: { name: "Composite", - className: "SettingsList", + className: "ComplianceResultList", modelProperties: { value: { + required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Setting" + className: "ComplianceResult" } } } @@ -6432,10 +9440,272 @@ 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 IotAlertListModel: msRest.CompositeMapper = { + serializedName: "IotAlertListModel", + type: { + name: "Composite", + className: "IotAlertListModel", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotAlertModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IotRecommendationListModel: msRest.CompositeMapper = { + serializedName: "IotRecommendationListModel", + type: { + name: "Composite", + className: "IotRecommendationListModel", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IotRecommendationModel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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 SettingsList: msRest.CompositeMapper = { + serializedName: "SettingsList", + type: { + name: "Composite", + className: "SettingsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IngestionSettingList: msRest.CompositeMapper = { + serializedName: "IngestionSettingList", + type: { + name: "Composite", + className: "IngestionSettingList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IngestionSetting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SoftwaresList: msRest.CompositeMapper = { + serializedName: "SoftwaresList", + type: { + name: "Composite", + className: "SoftwaresList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Software" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { - 'BaseResource.Setting' : Setting, - 'BaseResource.DataExportSettings' : DataExportSettings, - 'BaseResource.SettingResource' : SettingResource, 'CustomAlertRule.ThresholdCustomAlertRule' : ThresholdCustomAlertRule, 'CustomAlertRule.TimeWindowCustomAlertRule' : TimeWindowCustomAlertRule, 'CustomAlertRule.AllowlistCustomAlertRule' : AllowlistCustomAlertRule, @@ -6443,6 +9713,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,6 +9737,7 @@ export const discriminators = { 'AdditionalData.SqlServerVulnerability' : SqlServerVulnerabilityProperties, 'AdditionalData.ContainerRegistryVulnerability' : ContainerRegistryVulnerabilityProperties, 'AdditionalData.ServerVulnerabilityAssessment' : ServerVulnerabilityProperties, + 'ResourceDetails.OnPremiseSql' : OnPremiseSqlResourceDetails, 'ResourceDetails.OnPremise' : OnPremiseResourceDetails, 'ResourceDetails.Azure' : AzureResourceDetails, 'AutomationAction' : AutomationAction, @@ -6475,6 +9747,18 @@ export const discriminators = { '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, + 'ResourceIdentifier' : ResourceIdentifier, + 'ResourceIdentifier.AzureResource' : AzureResourceIdentifier, + 'ResourceIdentifier.LogAnalytics' : LogAnalyticsIdentifier, + 'AlertSimulatorRequestProperties' : AlertSimulatorRequestProperties, + 'AlertSimulatorRequestProperties.Bundles' : AlertSimulatorBundlesRequestProperties, + 'Setting' : Setting, + 'Setting.DataExportSettings' : DataExportSettings, + 'Setting.AlertSyncSettings' : AlertSyncSettings }; 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..7e62c67c18c6 --- /dev/null +++ b/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..a22ff0f8d0db 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,7 @@ export const alertsSuppressionRuleName: msRest.OperationURLParameter = { } } }; -export const alertType: msRest.OperationQueryParameter = { +export const alertType0: msRest.OperationQueryParameter = { parameterPath: [ "options", "alertType" @@ -94,6 +93,18 @@ export const alertType: msRest.OperationQueryParameter = { } } }; +export const alertType1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "alertType" + ], + mapper: { + serializedName: "alertType", + type: { + name: "String" + } + } +}; export const apiVersion0: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -118,6 +129,66 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const apiVersion10: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2020-08-06-preview', + type: { + name: "String" + } + } +}; +export const apiVersion11: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-01-01', + type: { + name: "String" + } + } +}; +export const apiVersion12: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-06-01', + type: { + name: "String" + } + } +}; +export const apiVersion13: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-01-15-preview', + type: { + name: "String" + } + } +}; +export const apiVersion14: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2021-05-01-preview', + type: { + name: "String" + } + } +}; export const apiVersion2: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -202,6 +273,16 @@ export const apiVersion8: msRest.OperationQueryParameter = { } } }; +export const apiVersion9: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; export const ascLocation: msRest.OperationURLParameter = { parameterPath: "ascLocation", mapper: { @@ -232,18 +313,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 +343,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 +365,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.OperationURLParameter = { + parameterPath: "deviceId", + mapper: { + required: true, + serializedName: "deviceId", + type: { + name: "String" + } + } +}; +export const deviceId1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deviceId" + ], + mapper: { + 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 +495,66 @@ export const informationProtectionPolicyName: msRest.OperationURLParameter = { } } }; +export const ingestionSettingName: msRest.OperationURLParameter = { + parameterPath: "ingestionSettingName", + mapper: { + required: true, + serializedName: "ingestionSettingName", + type: { + name: "String" + } + } +}; +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 +577,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 +624,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 +644,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 +709,8 @@ export const resourceId: msRest.OperationURLParameter = { type: { name: "String" } - } + }, + skipEncoding: true }; export const resourceName: msRest.OperationURLParameter = { parameterPath: "resourceName", @@ -498,6 +742,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 +780,8 @@ export const scope: msRest.OperationURLParameter = { type: { name: "String" } - } + }, + skipEncoding: true }; export const secureScoreName: msRest.OperationURLParameter = { parameterPath: "secureScoreName", @@ -528,13 +803,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" } @@ -556,7 +829,9 @@ export const settingName0: msRest.OperationURLParameter = { parameterPath: "settingName", mapper: { required: true, + isConstant: true, serializedName: "settingName", + defaultValue: 'current', type: { name: "String" } @@ -566,9 +841,29 @@ export const settingName1: msRest.OperationURLParameter = { parameterPath: "settingName", mapper: { required: true, - isConstant: true, serializedName: "settingName", - defaultValue: 'current', + type: { + name: "String" + } + } +}; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; +export const softwareName: msRest.OperationURLParameter = { + parameterPath: "softwareName", + mapper: { + required: true, + serializedName: "softwareName", type: { name: "String" } @@ -661,6 +956,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..cd5b9ba52653 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..2aa52938afb9 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..9b546318a0fb 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..f71c9be427e1 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,54 +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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..ccfb073559a9 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..18831f247670 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..7a8e2e4fe3e6 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..d65ed7c3ecf5 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..3c9889a7549e 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,14 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentsList, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..01ab7cffadc7 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,14 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, SettingsList, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,7 @@ export { TimeWindowCustomAlertRule, TwinUpdatesNotInAllowedRange, UnauthorizedOperationsNotInAllowedRange, + VaRule, VendorReference, WorkspaceSetting } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/softwareInventoriesMappers.ts b/sdk/security/arm-security/src/models/softwareInventoriesMappers.ts new file mode 100644 index 000000000000..16d53638fabd --- /dev/null +++ b/sdk/security/arm-security/src/models/softwareInventoriesMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + SoftwaresList, + SqlServerVulnerabilityProperties, + SubAssessmentStatus, + SuppressionAlertsScope, + ThresholdCustomAlertRule, + 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..ffa9771f7eb8 --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts @@ -0,0 +1,146 @@ +/* + * 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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..e410464eff2a --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..ffc403e3625a --- /dev/null +++ b/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.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, + AlertSyncSettings, + 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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, + Software, + 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..5e4c6901a101 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..1f079e13f684 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTaskList, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -97,6 +138,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..15b4b89f160c 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,9 +13,9 @@ export { AdditionalData, AdvancedThreatProtectionSetting, Alert, - AlertConfidenceReason, AlertEntity, AlertsSuppressionRule, + AlertSyncSettings, AllowlistCustomAlertRule, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, @@ -23,53 +23,91 @@ 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, + IngestionSetting, + IotAlertModel, + IotAlertType, + IotDefenderSettingsModel, + 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,13 @@ export { SecurityTask, SecurityTaskParameters, SensitivityLabel, + Sensor, ServerVulnerabilityAssessment, ServerVulnerabilityProperties, + ServicePrincipalProperties, Setting, - SettingResource, + Site, + Software, SqlServerVulnerabilityProperties, SubAssessmentStatus, SuppressionAlertsScope, @@ -96,6 +137,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..14a11210a0fc 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 */ @@ -157,7 +156,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroups + bodyMapper: Mappers.AdaptiveApplicationControlGroups }, default: { bodyMapper: Mappers.CloudError @@ -182,7 +181,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.AppWhitelistingGroup + bodyMapper: Mappers.AdaptiveApplicationControlGroup }, default: { bodyMapper: Mappers.CloudError @@ -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 diff --git a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts index c46277aaafee..c4878b87fbf7 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 @@ -289,6 +288,9 @@ const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..085123332b48 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 @@ -94,7 +93,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}", urlParameters: [ Parameters.resourceId, - Parameters.settingName1 + Parameters.settingName0 ], queryParameters: [ Parameters.apiVersion2 @@ -118,7 +117,7 @@ const createOperationSpec: msRest.OperationSpec = { path: "{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}", urlParameters: [ Parameters.resourceId, - Parameters.settingName1 + Parameters.settingName0 ], queryParameters: [ Parameters.apiVersion2 diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index cff6bc8b0bd5..12abd12e522a 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/alertsMappers"; import * as Parameters from "../models/parameters"; @@ -31,7 +31,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 +40,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 +57,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 +70,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, @@ -85,25 +85,25 @@ export class Alerts { * List all the alerts that are associated with the subscription that are stored in a specific * location * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams): Promise; + listSubscriptionLevelByRegion(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ - listSubscriptionLevelAlertsByRegion(callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegion(callback: msRest.ServiceCallback): void; /** * @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 { + listSubscriptionLevelByRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, - listSubscriptionLevelAlertsByRegionOperationSpec, - callback) as Promise; + listSubscriptionLevelByRegionOperationSpec, + callback) as Promise; } /** @@ -112,58 +112,58 @@ export class Alerts { * @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 + * @returns Promise */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams): Promise; + listResourceGroupLevelByRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param callback The callback */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegion(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @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 */ - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; - listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listResourceGroupLevelByRegion(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listResourceGroupLevelAlertsByRegionOperationSpec, - callback) as Promise; + listResourceGroupLevelByRegionOperationSpec, + callback) as Promise; } /** * Get an alert that is associated with a subscription * @param alertName Name of the alert object * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getSubscriptionLevelAlert(alertName: string, options?: msRest.RequestOptionsBase): Promise; + getSubscriptionLevel(alertName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param callback The callback */ - getSubscriptionLevelAlert(alertName: string, callback: msRest.ServiceCallback): void; + getSubscriptionLevel(alertName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param options The optional parameters * @param callback The callback */ - getSubscriptionLevelAlert(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getSubscriptionLevelAlert(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getSubscriptionLevel(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSubscriptionLevel(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, options }, - getSubscriptionLevelAlertOperationSpec, - callback) as Promise; + getSubscriptionLevelOperationSpec, + callback) as Promise; } /** @@ -172,16 +172,16 @@ export class Alerts { * @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 + * @returns Promise */ - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + getResourceGroupLevel(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 */ - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + getResourceGroupLevel(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 @@ -189,16 +189,16 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getResourceGroupLevel(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getResourceGroupLevel(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, resourceGroupName, options }, - getResourceGroupLevelAlertsOperationSpec, - callback) as Promise; + getResourceGroupLevelOperationSpec, + callback) as Promise; } /** @@ -207,25 +207,25 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateSubscriptionLevelAlertStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase): Promise; + updateSubscriptionLevelStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param callback The callback */ - updateSubscriptionLevelAlertStateToDismiss(alertName: string, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToDismiss(alertName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param options The optional parameters * @param callback The callback */ - updateSubscriptionLevelAlertStateToDismiss(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionLevelAlertStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateSubscriptionLevelStateToDismiss(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, options }, - updateSubscriptionLevelAlertStateToDismissOperationSpec, + updateSubscriptionLevelStateToDismissOperationSpec, callback); } @@ -235,25 +235,88 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateSubscriptionLevelAlertStateToReactivate(alertName: string, options?: msRest.RequestOptionsBase): Promise; + updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param alertName Name of the alert object * @param callback The callback */ - updateSubscriptionLevelAlertStateToReactivate(alertName: string, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToResolve(alertName: string, callback: msRest.ServiceCallback): void; /** * @param alertName Name of the alert object * @param options The optional parameters * @param callback The callback */ - updateSubscriptionLevelAlertStateToReactivate(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionLevelAlertStateToReactivate(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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 }, - updateSubscriptionLevelAlertStateToReactivateOperationSpec, + updateSubscriptionLevelStateToResolveOperationSpec, + callback); + } + + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param [options] The optional parameters + * @returns Promise + */ + updateSubscriptionLevelStateToActivate(alertName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param callback The callback + */ + updateSubscriptionLevelStateToActivate(alertName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param options The optional parameters + * @param callback The callback + */ + updateSubscriptionLevelStateToActivate(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelStateToActivate(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + options + }, + updateSubscriptionLevelStateToActivateOperationSpec, + 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); } @@ -265,14 +328,14 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + updateResourceGroupLevelStateToDismiss(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 */ - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToDismiss(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 @@ -280,15 +343,15 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateResourceGroupLevelAlertStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateResourceGroupLevelStateToDismiss(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToDismiss(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, resourceGroupName, options }, - updateResourceGroupLevelAlertStateToDismissOperationSpec, + updateResourceGroupLevelStateToDismissOperationSpec, callback); } @@ -300,14 +363,14 @@ export class Alerts { * @param [options] The optional parameters * @returns Promise */ - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + updateResourceGroupLevelStateToActivate(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 */ - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToActivate(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 @@ -315,18 +378,45 @@ export class Alerts { * @param options The optional parameters * @param callback The callback */ - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateResourceGroupLevelAlertStateToReactivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + updateResourceGroupLevelStateToActivate(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelStateToActivate(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { alertName, resourceGroupName, options }, - updateResourceGroupLevelAlertStateToReactivateOperationSpec, + updateResourceGroupLevelStateToActivateOperationSpec, callback); } + /** + * Simulate security alerts + * @param alertSimulatorRequestBody Alert Simulator Request Properties + * @param [options] The optional parameters + * @returns Promise + */ + simulate(alertSimulatorRequestBody: Models.AlertSimulatorRequestBody, options?: msRest.RequestOptionsBase): Promise { + return this.beginSimulate(alertSimulatorRequestBody,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Simulate security alerts + * @param alertSimulatorRequestBody Alert Simulator Request Properties + * @param [options] The optional parameters + * @returns Promise + */ + beginSimulate(alertSimulatorRequestBody: Models.AlertSimulatorRequestBody, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + alertSimulatorRequestBody, + options + }, + beginSimulateOperationSpec, + options); + } + /** * List all the alerts that are associated with the subscription * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -388,28 +478,28 @@ export class Alerts { * location * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listSubscriptionLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegionNext(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 */ - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listSubscriptionLevelByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSubscriptionLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listSubscriptionLevelAlertsByRegionNextOperationSpec, - callback) as Promise; + listSubscriptionLevelByRegionNextOperationSpec, + callback) as Promise; } /** @@ -417,28 +507,28 @@ export class Alerts { * location * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listResourceGroupLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegionNext(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 */ - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listResourceGroupLevelByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listResourceGroupLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listResourceGroupLevelAlertsByRegionNextOperationSpec, - callback) as Promise; + listResourceGroupLevelByRegionNextOperationSpec, + callback) as Promise; } } @@ -451,11 +541,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -479,11 +565,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -499,7 +581,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { +const listSubscriptionLevelByRegionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts", urlParameters: [ @@ -507,11 +589,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -527,7 +605,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { serializer }; -const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { +const listResourceGroupLevelByRegionOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts", urlParameters: [ @@ -536,11 +614,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2, - Parameters.filter, - Parameters.select, - Parameters.expand, - Parameters.autoDismissRuleName + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -556,7 +630,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = serializer }; -const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { +const getSubscriptionLevelOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", urlParameters: [ @@ -565,7 +639,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -581,7 +655,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { serializer }; -const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { +const getResourceGroupLevelOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", urlParameters: [ @@ -591,7 +665,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -607,7 +681,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { serializer }; -const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationSpec = { +const updateSubscriptionLevelStateToDismissOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", urlParameters: [ @@ -616,7 +690,30 @@ const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationS Parameters.alertName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 + ], + 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.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -630,16 +727,40 @@ const updateSubscriptionLevelAlertStateToDismissOperationSpec: msRest.OperationS serializer }; -const updateSubscriptionLevelAlertStateToReactivateOperationSpec: msRest.OperationSpec = { +const updateSubscriptionLevelStateToActivateOperationSpec: 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.apiVersion11 + ], + 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.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +774,7 @@ const updateSubscriptionLevelAlertStateToReactivateOperationSpec: msRest.Operati serializer }; -const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.OperationSpec = { +const updateResourceGroupLevelStateToDismissOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", urlParameters: [ @@ -663,7 +784,7 @@ const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.Operation Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -677,9 +798,9 @@ const updateResourceGroupLevelAlertStateToDismissOperationSpec: msRest.Operation serializer }; -const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.OperationSpec = { +const updateResourceGroupLevelStateToActivateOperationSpec: 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 +808,7 @@ const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.Operat Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion11 ], headerParameters: [ Parameters.acceptLanguage @@ -701,6 +822,35 @@ const updateResourceGroupLevelAlertStateToReactivateOperationSpec: msRest.Operat serializer }; +const beginSimulateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation + ], + queryParameters: [ + Parameters.apiVersion11 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "alertSimulatorRequestBody", + mapper: { + ...Mappers.AlertSimulatorRequestBody, + required: true + } + }, + responses: { + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -708,6 +858,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -729,6 +882,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -743,13 +899,16 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { serializer }; -const listSubscriptionLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec = { +const listSubscriptionLevelByRegionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -764,13 +923,16 @@ const listSubscriptionLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec serializer }; -const listResourceGroupLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec = { +const listResourceGroupLevelByRegionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion11 + ], 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..ddf94725c6ab 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, @@ -177,7 +176,7 @@ const listOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.apiVersion6, - Parameters.alertType + Parameters.alertType0 ], headerParameters: [ Parameters.acceptLanguage @@ -277,6 +276,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + Parameters.alertType0 + ], 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..8fdcb9047656 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 @@ -252,6 +251,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -273,6 +275,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..fc98748d377d 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 @@ -305,6 +304,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..94c0216a7bbc 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 @@ -400,6 +399,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -421,6 +423,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..4047123752c2 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 @@ -169,7 +168,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ Parameters.apiVersion5 @@ -193,7 +192,7 @@ const createOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ Parameters.apiVersion5 @@ -226,6 +225,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], 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..7efe058ef121 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 @@ -463,6 +462,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -484,6 +486,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], 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..03142366fd78 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 @@ -183,6 +182,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], 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..c54625cfcef6 --- /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.apiVersion8 + ], + 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.apiVersion8 + ], + 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.apiVersion8 + ], + 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.apiVersion8 + ], + 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.apiVersion8 + ], + 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..d0bb106a779a --- /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.deviceId0 + ], + queryParameters: [ + Parameters.apiVersion10 + ], + 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..d065ae684345 --- /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.apiVersion10, + 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.apiVersion10, + 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..171c91d18082 --- /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.apiVersion10, + 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.apiVersion10, + 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..12b10b2963b5 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 @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..b6b9b9bd6de1 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 @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..68ed9bed7f43 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,8 +9,6 @@ export * from "./complianceResults"; export * from "./pricings"; -export * from "./alerts"; -export * from "./settings"; export * from "./advancedThreatProtection"; export * from "./deviceSecurityGroups"; export * from "./iotSecuritySolution"; @@ -29,10 +26,10 @@ 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"; @@ -41,7 +38,28 @@ export * from "./allowedConnections"; export * from "./topology"; 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"; +export * from "./iotAlerts"; +export * from "./iotAlertTypes"; +export * from "./iotRecommendations"; +export * from "./iotRecommendationTypes"; +export * from "./alerts"; +export * from "./settings"; +export * from "./ingestionSettings"; +export * from "./softwareInventories"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index 4bcf11236eda..5c5cf260383a 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 @@ -265,6 +264,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/ingestionSettings.ts b/sdk/security/arm-security/src/operations/ingestionSettings.ts new file mode 100644 index 000000000000..a4d734204199 --- /dev/null +++ b/sdk/security/arm-security/src/operations/ingestionSettings.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/ingestionSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a IngestionSettings. */ +export class IngestionSettings { + private readonly client: SecurityCenterContext; + + /** + * Create a IngestionSettings. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Settings for ingesting security data and logs to correlate with resources associated with 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; + } + + /** + * Settings for ingesting security data and logs to correlate with resources associated with the + * subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + get(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + get(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + get(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create setting for ingesting security data and logs to correlate with resources associated with + * the subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param ingestionSetting Ingestion setting object + * @param [options] The optional parameters + * @returns Promise + */ + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param ingestionSetting Ingestion setting object + * @param callback The callback + */ + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param ingestionSetting Ingestion setting object + * @param options The optional parameters + * @param callback The callback + */ + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(ingestionSettingName: string, ingestionSetting: Models.IngestionSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + ingestionSetting, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Deletes the ingestion settings for this subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + deleteMethod(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Returns the token that is used for correlating ingested telemetry with the resources in the + * subscription. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + listTokens(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + listTokens(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + listTokens(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listTokens(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + listTokensOperationSpec, + callback) as Promise; + } + + /** + * Connection strings for ingesting security scan logs and data. + * @param ingestionSettingName Name of the ingestion setting + * @param [options] The optional parameters + * @returns Promise + */ + listConnectionStrings(ingestionSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param callback The callback + */ + listConnectionStrings(ingestionSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param ingestionSettingName Name of the ingestion setting + * @param options The optional parameters + * @param callback The callback + */ + listConnectionStrings(ingestionSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listConnectionStrings(ingestionSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + ingestionSettingName, + options + }, + listConnectionStringsOperationSpec, + callback) as Promise; + } + + /** + * Settings for ingesting security data and logs to correlate with resources associated with 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/ingestionSettings", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "ingestionSetting", + mapper: { + ...Mappers.IngestionSetting, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IngestionSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listTokensOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listTokens", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSettingToken + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listConnectionStringsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/ingestionSettings/{ingestionSettingName}/listConnectionStrings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ingestionSettingName + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectionStrings + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion13 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IngestionSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..9ceecb1b073f --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotAlertTypes.ts @@ -0,0 +1,128 @@ +/* + * 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 [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 alert type + * @param iotAlertTypeName Name of the alert type + * @param [options] The optional parameters + * @returns Promise + */ + get(iotAlertTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotAlertTypeName Name of the alert type + * @param callback The callback + */ + get(iotAlertTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param iotAlertTypeName Name of the alert type + * @param options The optional parameters + * @param callback The callback + */ + get(iotAlertTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(iotAlertTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotAlertTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotAlertTypes/{iotAlertTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.iotAlertTypeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + 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..16d9fddfdb19 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotAlerts.ts @@ -0,0 +1,214 @@ +/* + * 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 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 + */ + list(scope: string, options?: Models.IotAlertsListOptionalParams): 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 + */ + list(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 + */ + list(scope: string, options: Models.IotAlertsListOptionalParams, callback: msRest.ServiceCallback): void; + list(scope: string, options?: Models.IotAlertsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + 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 + */ + get(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 + */ + get(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 + */ + get(scope: string, iotAlertId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, iotAlertId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotAlertId, + options + }, + getOperationSpec, + 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; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotAlerts", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType1, + Parameters.deviceManagementType, + Parameters.compromisedEntity, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotAlertListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotAlerts/{iotAlertId}", + urlParameters: [ + Parameters.scope, + Parameters.iotAlertId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + 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.apiVersion10, + Parameters.minStartTimeUtc, + Parameters.maxStartTimeUtc, + Parameters.alertType1, + 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..6cb21509dddd --- /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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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..74b977b0a508 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts @@ -0,0 +1,128 @@ +/* + * 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 [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 recommendation type + * @param iotRecommendationTypeName Name of the recommendation type + * @param [options] The optional parameters + * @returns Promise + */ + get(iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param iotRecommendationTypeName Name of the recommendation type + * @param callback The callback + */ + get(iotRecommendationTypeName: string, callback: msRest.ServiceCallback): void; + /** + * @param iotRecommendationTypeName Name of the recommendation type + * @param options The optional parameters + * @param callback The callback + */ + get(iotRecommendationTypeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(iotRecommendationTypeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + iotRecommendationTypeName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationTypeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotRecommendationTypes/{iotRecommendationTypeName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.iotRecommendationTypeName + ], + queryParameters: [ + Parameters.apiVersion10 + ], + 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..dd5889cf0b89 --- /dev/null +++ b/sdk/security/arm-security/src/operations/iotRecommendations.ts @@ -0,0 +1,208 @@ +/* + * 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 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 + */ + list(scope: string, options?: Models.IotRecommendationsListOptionalParams): 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 + */ + list(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 + */ + list(scope: string, options: Models.IotRecommendationsListOptionalParams, callback: msRest.ServiceCallback): void; + list(scope: string, options?: Models.IotRecommendationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + 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 + */ + get(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 + */ + get(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 + */ + get(scope: string, iotRecommendationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, iotRecommendationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + iotRecommendationId, + options + }, + getOperationSpec, + 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; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotRecommendations", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion10, + Parameters.recommendationType, + Parameters.deviceId1, + Parameters.limit, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IotRecommendationListModel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/iotRecommendations/{iotRecommendationId}", + urlParameters: [ + Parameters.scope, + Parameters.iotRecommendationId + ], + queryParameters: [ + Parameters.apiVersion10 + ], + 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.apiVersion10, + Parameters.recommendationType, + Parameters.deviceId1, + 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..c53e96964ac8 --- /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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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..de634105c550 --- /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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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..391c6a53858c 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 @@ -627,6 +626,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -648,6 +650,9 @@ const listByRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -669,6 +674,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -690,6 +698,9 @@ const listByResourceGroupAndRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..a6af884c815b 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 @@ -163,6 +162,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], 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..16b1b5b901df --- /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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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.apiVersion10 + ], + 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..a1966ba046d4 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 @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4 + ], 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..fed64431d821 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, @@ -184,6 +183,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + 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..8ee0e81f5f8d 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, @@ -174,6 +173,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + 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..c845ff4b7386 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, @@ -164,6 +163,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6, + 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..2d91f5faaa02 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 @@ -137,7 +138,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Security/secureScoreControlDefinitions", queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +161,7 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -183,6 +184,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -204,6 +208,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..de40813934f9 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, @@ -145,7 +147,7 @@ const listBySecureScoreOperationSpec: msRest.OperationSpec = { Parameters.secureScoreName ], queryParameters: [ - Parameters.apiVersion8, + Parameters.apiVersion7, Parameters.expand ], headerParameters: [ @@ -169,7 +171,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8, + Parameters.apiVersion7, Parameters.expand ], headerParameters: [ @@ -193,6 +195,10 @@ const listBySecureScoreNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], @@ -214,6 +220,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7, + 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..015ea88e0dfb 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 @@ -116,7 +119,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -140,7 +143,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.secureScoreName ], queryParameters: [ - Parameters.apiVersion8 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -163,6 +166,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..9a27de7bfaf3 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 @@ -339,6 +338,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], 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..4d7313ebbc35 --- /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.apiVersion7 + ], + 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.apiVersion7 + ], + 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.apiVersion7 + ], + 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..04dafd6d92f0 --- /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.apiVersion7 + ], + 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.apiVersion7 + ], + 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..9307ec957067 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/serverVulnerabilityAssessmentOperationsMappers"; import * as Parameters from "../models/parameters"; @@ -166,28 +166,23 @@ export class ServerVulnerabilityAssessmentOperations { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,resourceNamespace,resourceType,resourceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Removing server vulnerability assessment from a resource. * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of the resource. * @param resourceName Name of the resource. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginDeleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { resourceGroupName, resourceNamespace, @@ -195,8 +190,8 @@ export class ServerVulnerabilityAssessmentOperations { resourceName, options }, - deleteMethodOperationSpec, - callback); + beginDeleteMethodOperationSpec, + options); } } @@ -213,7 +208,7 @@ const listByExtendedResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +236,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -269,7 +264,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -285,7 +280,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}", urlParameters: [ @@ -297,13 +292,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.serverVulnerabilityAssessment ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: {}, + 202: {}, 204: {}, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index dfe07c34cb90..d07565cb45c1 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 @@ -52,18 +51,18 @@ export class Settings { /** * Settings of different configurations in security center - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param [options] The optional parameters * @returns Promise */ get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param callback The callback */ get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param options The optional parameters * @param callback The callback */ @@ -80,20 +79,20 @@ export class Settings { /** * updating settings about different configurations in security center - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param setting Setting object * @param [options] The optional parameters * @returns Promise */ update(settingName: Models.SettingName1, setting: Models.SettingUnion, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param setting Setting object * @param callback The callback */ update(settingName: Models.SettingName1, setting: Models.SettingUnion, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param settingName The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' * @param setting Setting object * @param options The optional parameters * @param callback The callback @@ -148,7 +147,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion12 ], headerParameters: [ Parameters.acceptLanguage @@ -169,10 +168,10 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion12 ], headerParameters: [ Parameters.acceptLanguage @@ -193,10 +192,10 @@ const updateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}", urlParameters: [ Parameters.subscriptionId, - Parameters.settingName0 + Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion12 ], headerParameters: [ Parameters.acceptLanguage @@ -226,6 +225,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion12 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts new file mode 100644 index 000000000000..e532a81d71dd --- /dev/null +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -0,0 +1,325 @@ +/* + * 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/softwareInventoriesMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a SoftwareInventories. */ +export class SoftwareInventories { + private readonly client: SecurityCenterContext; + + /** + * Create a SoftwareInventories. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets the software inventory of the virtual machine. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param callback The callback + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + options + }, + listByExtendedResourceOperationSpec, + callback) as Promise; + } + + /** + * Gets the software inventory of all virtual machines in the subscriptions. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Gets a single software data of the virtual machine. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param softwareName Name of the installed software. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param softwareName Name of the installed software. + * @param callback The callback + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param softwareName Name of the installed software. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, softwareName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + softwareName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the software inventory of the virtual machine. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByExtendedResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByExtendedResourceNext(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 + */ + listByExtendedResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByExtendedResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByExtendedResourceNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the software inventory of all virtual machines in the subscriptions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(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 + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByExtendedResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/softwareInventories", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/softwareInventories/{softwareName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName, + Parameters.softwareName + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Software + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion14 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SoftwaresList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; 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..a2407e00d3f8 --- /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.apiVersion9 + ], + 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.apiVersion9 + ], + 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.apiVersion9 + ], + 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.apiVersion9 + ], + 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.apiVersion9 + ], + 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..89a736a9a27a --- /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.apiVersion9 + ], + 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.apiVersion9 + ], + 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..3ea4f5be8f98 --- /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.apiVersion9 + ], + 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.apiVersion9 + ], + 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..fe62009099b6 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 @@ -278,6 +277,9 @@ const listAllNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -299,6 +301,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion6 + ], 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..726bc72a067b 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, @@ -514,6 +513,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -535,6 +538,10 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], @@ -556,6 +563,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion4, + 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..c41bb2410b82 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 @@ -248,6 +247,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -269,6 +271,9 @@ const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion7 + ], 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..73a69a9bb1a9 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 @@ -343,6 +342,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion5 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 5f78c4465490..94a052843133 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 @@ -9,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -19,8 +19,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; iotSecuritySolution: operations.IotSecuritySolution; @@ -38,10 +36,10 @@ 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; @@ -50,25 +48,49 @@ class SecurityCenter extends SecurityCenterContext { topology: operations.Topology; 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; + iotAlerts: operations.IotAlerts; + iotAlertTypes: operations.IotAlertTypes; + iotRecommendations: operations.IotRecommendations; + iotRecommendationTypes: operations.IotRecommendationTypes; + alerts: operations.Alerts; + settings: operations.Settings; + ingestionSettings: operations.IngestionSettings; + softwareInventories: operations.SoftwareInventories; /** * Initializes a new instance of the SecurityCenter class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Azure subscription ID * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved * from Get locations * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { 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); this.iotSecuritySolution = new operations.IotSecuritySolution(this); @@ -86,10 +108,10 @@ 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); @@ -98,10 +120,31 @@ class SecurityCenter extends SecurityCenterContext { this.topology = new operations.Topology(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); + this.iotAlerts = new operations.IotAlerts(this); + this.iotAlertTypes = new operations.IotAlertTypes(this); + this.iotRecommendations = new operations.IotRecommendations(this); + this.iotRecommendationTypes = new operations.IotRecommendationTypes(this); + this.alerts = new operations.Alerts(this); + this.settings = new operations.Settings(this); + this.ingestionSettings = new operations.IngestionSettings(this); + this.softwareInventories = new operations.SoftwareInventories(this); } } diff --git a/sdk/security/arm-security/src/securityCenterContext.ts b/sdk/security/arm-security/src/securityCenterContext.ts index e740963ad836..2d88c36312fd 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 @@ -11,24 +10,30 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-security"; const packageVersion = "2.0.0"; export class SecurityCenterContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; ascLocation: string; /** * Initializes a new instance of the SecurityCenter class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Azure subscription ID * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved * from Get locations * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -42,7 +47,7 @@ export class SecurityCenterContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -57,10 +62,10 @@ export class SecurityCenterContext extends msRestAzure.AzureServiceClient { this.subscriptionId = subscriptionId; this.ascLocation = ascLocation; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } }