From 05c8453302ec2e3d9216abfe09f0e466807b91b0 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Oct 2021 07:41:43 +0000 Subject: [PATCH] CodeGen from PR 15868 in Azure/azure-rest-api-specs Merge 0541bedf71b794918be478af00203c6117b09b01 into 191a721de644cc3f872f4fe9d676cf366083a106 --- sdk/security/arm-security/README.md | 10 +- sdk/security/arm-security/package.json | 2 +- .../adaptiveApplicationControlsMappers.ts | 20 - .../adaptiveNetworkHardeningsMappers.ts | 145 - .../models/advancedThreatProtectionMappers.ts | 143 - .../arm-security/src/models/alertsMappers.ts | 147 - .../models/alertsSuppressionRulesMappers.ts | 144 - .../src/models/assessmentsMappers.ts | 144 - .../src/models/assessmentsMetadataMappers.ts | 144 - ...ctionsMappers.ts => assignmentsMappers.ts} | 14 +- .../models/autoProvisioningSettingsMappers.ts | 144 - .../src/models/automationsMappers.ts | 24 - .../src/models/complianceResultsMappers.ts | 144 - .../src/models/compliancesMappers.ts | 144 - .../src/models/connectorsMappers.ts | 144 - .../src/models/deviceOperationsMappers.ts | 143 - .../src/models/deviceSecurityGroupsMappers.ts | 144 - .../src/models/devicesForHubMappers.ts | 144 - .../models/devicesForSubscriptionMappers.ts | 144 - .../discoveredSecuritySolutionsMappers.ts | 14 - .../externalSecuritySolutionsMappers.ts | 22 - sdk/security/arm-security/src/models/index.ts | 11957 +--------------- .../informationProtectionPoliciesMappers.ts | 144 - .../src/models/ingestionSettingsMappers.ts | 147 - .../src/models/iotAlertTypesMappers.ts | 144 - .../src/models/iotAlertsMappers.ts | 144 - .../src/models/iotDefenderSettingsMappers.ts | 153 - .../models/iotRecommendationTypesMappers.ts | 144 - .../src/models/iotRecommendationsMappers.ts | 144 - .../iotSecuritySolutionAnalyticsMappers.ts | 144 - .../src/models/iotSecuritySolutionMappers.ts | 20 - ...SolutionsAnalyticsRecommendationMappers.ts | 14 - .../src/models/iotSensorsMappers.ts | 145 - .../src/models/iotSitesMappers.ts | 144 - .../models/jitNetworkAccessPoliciesMappers.ts | 22 - .../src/models/locationsMappers.ts | 144 - .../arm-security/src/models/mappers.ts | 9623 +------------ .../src/models/onPremiseIotSensorsMappers.ts | 145 - .../src/models/operationsMappers.ts | 15 - .../arm-security/src/models/parameters.ts | 906 +- .../src/models/pricingsMappers.ts | 144 - .../regulatoryComplianceAssessmentsMappers.ts | 144 - .../regulatoryComplianceControlsMappers.ts | 144 - .../regulatoryComplianceStandardsMappers.ts | 144 - .../secureScoreControlDefinitionsMappers.ts | 144 - .../src/models/secureScoreControlsMappers.ts | 144 - .../src/models/secureScoresMappers.ts | 144 - .../src/models/securityContactsMappers.ts | 144 - .../src/models/securitySolutionsMappers.ts | 14 - ...SolutionsReferenceDataOperationsMappers.ts | 14 - ...ulnerabilityAssessmentOperationsMappers.ts | 144 - .../src/models/settingsMappers.ts | 144 - .../src/models/softwareInventoriesMappers.ts | 144 - ...erabilityAssessmentBaselineRulesMappers.ts | 146 - ...lnerabilityAssessmentScanResultsMappers.ts | 144 - .../sqlVulnerabilityAssessmentScansMappers.ts | 144 - ...tedAlertMappers.ts => standardsMappers.ts} | 13 +- .../src/models/subAssessmentsMappers.ts | 144 - .../arm-security/src/models/tasksMappers.ts | 144 - .../src/models/topologyMappers.ts | 17 - .../src/models/workspaceSettingsMappers.ts | 144 - .../operations/adaptiveApplicationControls.ts | 248 - .../operations/adaptiveNetworkHardenings.ts | 306 - .../operations/advancedThreatProtection.ts | 144 - .../arm-security/src/operations/alerts.ts | 948 -- .../src/operations/alertsSuppressionRules.ts | 295 - .../src/operations/allowedConnections.ts | 293 - .../src/operations/assessments.ts | 322 - .../src/operations/assessmentsMetadata.ts | 441 - .../src/operations/assignments.ts | 429 + .../operations/autoProvisioningSettings.ts | 243 - .../src/operations/automations.ts | 504 - .../src/operations/complianceResults.ts | 194 - .../src/operations/compliances.ts | 200 - .../arm-security/src/operations/connectors.ts | 296 - .../src/operations/deviceOperations.ts | 85 - .../src/operations/deviceSecurityGroups.ts | 322 - .../src/operations/devicesForHub.ts | 138 - .../src/operations/devicesForSubscription.ts | 134 - .../operations/discoveredSecuritySolutions.ts | 289 - .../operations/externalSecuritySolutions.ts | 289 - .../arm-security/src/operations/index.ts | 58 +- .../informationProtectionPolicies.ts | 282 - .../src/operations/ingestionSettings.ts | 403 - .../src/operations/iotAlertTypes.ts | 128 - .../arm-security/src/operations/iotAlerts.ts | 214 - .../src/operations/iotDefenderSettings.ts | 329 - .../src/operations/iotRecommendationTypes.ts | 128 - .../src/operations/iotRecommendations.ts | 208 - .../src/operations/iotSecuritySolution.ts | 504 - .../iotSecuritySolutionAnalytics.ts | 149 - ...curitySolutionsAnalyticsAggregatedAlert.ts | 272 - ...ecuritySolutionsAnalyticsRecommendation.ts | 211 - .../arm-security/src/operations/iotSensors.ts | 448 - .../arm-security/src/operations/iotSites.ts | 246 - .../operations/jitNetworkAccessPolicies.ts | 716 - .../arm-security/src/operations/locations.ts | 180 - .../src/operations/onPremiseIotSensors.ts | 359 - .../arm-security/src/operations/operations.ts | 125 - .../arm-security/src/operations/pricings.ts | 191 - .../regulatoryComplianceAssessments.ts | 202 - .../regulatoryComplianceControls.ts | 192 - .../regulatoryComplianceStandards.ts | 182 - .../secureScoreControlDefinitions.ts | 226 - .../src/operations/secureScoreControls.ts | 239 - .../src/operations/secureScores.ts | 184 - .../src/operations/securityContacts.ts | 356 - .../src/operations/securitySolutions.ts | 189 - ...ecuritySolutionsReferenceDataOperations.ts | 124 - ...serverVulnerabilityAssessmentOperations.ts | 309 - .../arm-security/src/operations/settings.ts | 243 - .../src/operations/softwareInventories.ts | 325 - ...sqlVulnerabilityAssessmentBaselineRules.ts | 359 - .../sqlVulnerabilityAssessmentScanResults.ts | 164 - .../sqlVulnerabilityAssessmentScans.ts | 154 - .../arm-security/src/operations/standards.ts | 429 + .../src/operations/subAssessments.ts | 319 - .../arm-security/src/operations/tasks.ts | 582 - .../arm-security/src/operations/topology.ts | 289 - .../src/operations/workspaceSettings.ts | 360 - .../arm-security/src/securityCenter.ts | 122 +- .../arm-security/src/securityCenterContext.ts | 11 +- 122 files changed, 1312 insertions(+), 44450 deletions(-) delete mode 100644 sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts delete mode 100644 sdk/security/arm-security/src/models/alertsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/assessmentsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts rename sdk/security/arm-security/src/models/{allowedConnectionsMappers.ts => assignmentsMappers.ts} (59%) delete mode 100644 sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/automationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/complianceResultsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/compliancesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/connectorsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/deviceOperationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/devicesForHubMappers.ts delete mode 100644 sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts delete mode 100644 sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/ingestionSettingsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotAlertTypesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotAlertsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotRecommendationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotSensorsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/iotSitesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/locationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/operationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/pricingsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/secureScoreControlsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/secureScoresMappers.ts delete mode 100644 sdk/security/arm-security/src/models/securityContactsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/securitySolutionsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/settingsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/softwareInventoriesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts delete mode 100644 sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts rename sdk/security/arm-security/src/models/{iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts => standardsMappers.ts} (59%) delete mode 100644 sdk/security/arm-security/src/models/subAssessmentsMappers.ts delete mode 100644 sdk/security/arm-security/src/models/tasksMappers.ts delete mode 100644 sdk/security/arm-security/src/models/topologyMappers.ts delete mode 100644 sdk/security/arm-security/src/models/workspaceSettingsMappers.ts delete mode 100644 sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts delete mode 100644 sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts delete mode 100644 sdk/security/arm-security/src/operations/advancedThreatProtection.ts delete mode 100644 sdk/security/arm-security/src/operations/alerts.ts delete mode 100644 sdk/security/arm-security/src/operations/alertsSuppressionRules.ts delete mode 100644 sdk/security/arm-security/src/operations/allowedConnections.ts delete mode 100644 sdk/security/arm-security/src/operations/assessments.ts delete mode 100644 sdk/security/arm-security/src/operations/assessmentsMetadata.ts create mode 100644 sdk/security/arm-security/src/operations/assignments.ts delete mode 100644 sdk/security/arm-security/src/operations/autoProvisioningSettings.ts delete mode 100644 sdk/security/arm-security/src/operations/automations.ts delete mode 100644 sdk/security/arm-security/src/operations/complianceResults.ts delete mode 100644 sdk/security/arm-security/src/operations/compliances.ts delete mode 100644 sdk/security/arm-security/src/operations/connectors.ts delete mode 100644 sdk/security/arm-security/src/operations/deviceOperations.ts delete mode 100644 sdk/security/arm-security/src/operations/deviceSecurityGroups.ts delete mode 100644 sdk/security/arm-security/src/operations/devicesForHub.ts delete mode 100644 sdk/security/arm-security/src/operations/devicesForSubscription.ts delete mode 100644 sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts delete mode 100644 sdk/security/arm-security/src/operations/externalSecuritySolutions.ts delete mode 100644 sdk/security/arm-security/src/operations/informationProtectionPolicies.ts delete mode 100644 sdk/security/arm-security/src/operations/ingestionSettings.ts delete mode 100644 sdk/security/arm-security/src/operations/iotAlertTypes.ts delete mode 100644 sdk/security/arm-security/src/operations/iotAlerts.ts delete mode 100644 sdk/security/arm-security/src/operations/iotDefenderSettings.ts delete mode 100644 sdk/security/arm-security/src/operations/iotRecommendationTypes.ts delete mode 100644 sdk/security/arm-security/src/operations/iotRecommendations.ts delete mode 100644 sdk/security/arm-security/src/operations/iotSecuritySolution.ts delete mode 100644 sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts delete mode 100644 sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts delete mode 100644 sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts delete mode 100644 sdk/security/arm-security/src/operations/iotSensors.ts delete mode 100644 sdk/security/arm-security/src/operations/iotSites.ts delete mode 100644 sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts delete mode 100644 sdk/security/arm-security/src/operations/locations.ts delete mode 100644 sdk/security/arm-security/src/operations/onPremiseIotSensors.ts delete mode 100644 sdk/security/arm-security/src/operations/operations.ts delete mode 100644 sdk/security/arm-security/src/operations/pricings.ts delete mode 100644 sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts delete mode 100644 sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts delete mode 100644 sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts delete mode 100644 sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts delete mode 100644 sdk/security/arm-security/src/operations/secureScoreControls.ts delete mode 100644 sdk/security/arm-security/src/operations/secureScores.ts delete mode 100644 sdk/security/arm-security/src/operations/securityContacts.ts delete mode 100644 sdk/security/arm-security/src/operations/securitySolutions.ts delete mode 100644 sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts delete mode 100644 sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts delete mode 100644 sdk/security/arm-security/src/operations/settings.ts delete mode 100644 sdk/security/arm-security/src/operations/softwareInventories.ts delete mode 100644 sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts delete mode 100644 sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts delete mode 100644 sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts create mode 100644 sdk/security/arm-security/src/operations/standards.ts delete mode 100644 sdk/security/arm-security/src/operations/subAssessments.ts delete mode 100644 sdk/security/arm-security/src/operations/tasks.ts delete mode 100644 sdk/security/arm-security/src/operations/topology.ts delete mode 100644 sdk/security/arm-security/src/operations/workspaceSettings.ts diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index 16cb67aa9e5f..0a96a9f48da1 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -36,7 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ 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. +#### nodejs - Authentication, client creation, and listBySubscription standards as an example written in JavaScript. ##### Sample code @@ -49,8 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // 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) => { +client.standards.listBySubscription().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -59,7 +58,7 @@ client.complianceResults.list(scope).then((result) => { }); ``` -#### browser - Authentication, client creation, and list complianceResults as an example written in JavaScript. +#### browser - Authentication, client creation, and listBySubscription standards as an example written in JavaScript. 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. @@ -87,8 +86,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t tenant: "" }); const client = new Azure.ArmSecurity.SecurityCenter(creds, subscriptionId); - const scope = "testscope"; - client.complianceResults.list(scope).then((result) => { + client.standards.listBySubscription().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 7c2ce716cf2a..79c90f2bba6c 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/security/arm-security", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/security/arm-security", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts deleted file mode 100644 index 3a4325bbeb36..000000000000 --- a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* - * 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, - AdaptiveApplicationControlGroup, - AdaptiveApplicationControlGroups, - AdaptiveApplicationControlIssueSummary, - CloudError, - PathRecommendation, - ProtectionMode, - PublisherInfo, - UserRecommendation, - VmRecommendation -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts b/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts deleted file mode 100644 index 983b333d426b..000000000000 --- a/sdk/security/arm-security/src/models/adaptiveNetworkHardeningsMappers.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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, - AdaptiveNetworkHardeningEnforceRequest, - AdaptiveNetworkHardeningsList, - 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/advancedThreatProtectionMappers.ts b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts deleted file mode 100644 index 4fac024d16d6..000000000000 --- a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * 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/alertsMappers.ts b/sdk/security/arm-security/src/models/alertsMappers.ts deleted file mode 100644 index e40ad5185eaa..000000000000 --- a/sdk/security/arm-security/src/models/alertsMappers.ts +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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, - AlertList, - AlertSimulatorBundlesRequestProperties, - AlertSimulatorRequestBody, - AlertSimulatorRequestProperties, - 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/alertsSuppressionRulesMappers.ts b/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts deleted file mode 100644 index 85425a2d0840..000000000000 --- a/sdk/security/arm-security/src/models/alertsSuppressionRulesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - AlertsSuppressionRulesList, - 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/assessmentsMappers.ts b/sdk/security/arm-security/src/models/assessmentsMappers.ts deleted file mode 100644 index 7ec5955c83c1..000000000000 --- a/sdk/security/arm-security/src/models/assessmentsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecurityAssessmentList, - 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/assessmentsMetadataMappers.ts b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts deleted file mode 100644 index 6e6b5c282cd8..000000000000 --- a/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecurityAssessmentMetadataList, - 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/allowedConnectionsMappers.ts b/sdk/security/arm-security/src/models/assignmentsMappers.ts similarity index 59% rename from sdk/security/arm-security/src/models/allowedConnectionsMappers.ts rename to sdk/security/arm-security/src/models/assignmentsMappers.ts index d5c8b95ffd52..ee0df67e43fb 100644 --- a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts +++ b/sdk/security/arm-security/src/models/assignmentsMappers.ts @@ -7,10 +7,14 @@ */ export { - discriminators, - AllowedConnectionsList, - AllowedConnectionsResource, + AssignedComponentItem, + AssignedStandardItem, + Assignment, + AssignmentList, + AssignmentPropertiesAdditionalData, CloudError, - ConnectableResource, - ConnectedResource + Standard, + StandardComponentProperties, + SystemData, + TrackedResource } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts deleted file mode 100644 index 584b2f099280..000000000000 --- a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/automationsMappers.ts b/sdk/security/arm-security/src/models/automationsMappers.ts deleted file mode 100644 index 5c234eb53d3d..000000000000 --- a/sdk/security/arm-security/src/models/automationsMappers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * 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, - Automation, - AutomationAction, - AutomationActionEventHub, - AutomationActionLogicApp, - AutomationActionWorkspace, - AutomationList, - AutomationRuleSet, - AutomationScope, - AutomationSource, - AutomationTriggeringRule, - AutomationValidationStatus, - CloudError, - TrackedResource -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/complianceResultsMappers.ts b/sdk/security/arm-security/src/models/complianceResultsMappers.ts deleted file mode 100644 index 66bdc211b151..000000000000 --- a/sdk/security/arm-security/src/models/complianceResultsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/compliancesMappers.ts b/sdk/security/arm-security/src/models/compliancesMappers.ts deleted file mode 100644 index cbee8d0d4e77..000000000000 --- a/sdk/security/arm-security/src/models/compliancesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/connectorsMappers.ts b/sdk/security/arm-security/src/models/connectorsMappers.ts deleted file mode 100644 index ab08542a6ac3..000000000000 --- a/sdk/security/arm-security/src/models/connectorsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index 4fac024d16d6..000000000000 --- a/sdk/security/arm-security/src/models/deviceOperationsMappers.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * 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 deleted file mode 100644 index 0246a6a6b306..000000000000 --- a/sdk/security/arm-security/src/models/deviceSecurityGroupsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/devicesForHubMappers.ts b/sdk/security/arm-security/src/models/devicesForHubMappers.ts deleted file mode 100644 index 40d1e77831fa..000000000000 --- a/sdk/security/arm-security/src/models/devicesForHubMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index 40d1e77831fa..000000000000 --- a/sdk/security/arm-security/src/models/devicesForSubscriptionMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index 27e0cec44d25..000000000000 --- a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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, - DiscoveredSecuritySolution, - DiscoveredSecuritySolutionList -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts deleted file mode 100644 index f95eb684181d..000000000000 --- a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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, - AadExternalSecuritySolution, - AadSolutionProperties, - AtaExternalSecuritySolution, - AtaSolutionProperties, - CefExternalSecuritySolution, - CefSolutionProperties, - CloudError, - ConnectedWorkspace, - ExternalSecuritySolution, - ExternalSecuritySolutionList, - ExternalSecuritySolutionProperties -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index 9588180edf0a..322e41681af6 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -12,43 +12,45 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Describes an Azure resource. + * Describes properties of an component as related to the standard */ -export interface Resource extends BaseResource { - /** - * 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; +export interface StandardComponentProperties { /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Component Key matching componentMetadata */ - readonly type?: string; + key?: string; } /** - * a compliance result + * Metadata pertaining to creation and last modification of the resource. */ -export interface ComplianceResult extends Resource { +export interface SystemData { /** - * The status of the resource regarding a single assessment. Possible values include: 'Healthy', - * 'NotApplicable', 'OffByPolicy', 'NotHealthy' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The identity that created the resource. */ - readonly resourceStatus?: ResourceStatus; -} - -/** - * The ASC location of the subscription is in the "name" field - */ -export interface AscLocation extends Resource { - properties?: any; + 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; } /** @@ -89,11751 +91,246 @@ export interface TrackedResource { } /** - * Describes an Azure resource with location - */ -export interface AzureTrackedResourceLocation { - /** - * Location where the resource is stored - */ - location?: string; -} - -/** - * Describes an Azure resource with kind - */ -export interface Kind { - /** - * Kind of the resource - */ - kind?: string; -} - -/** - * Entity tag is used for comparing two or more entities from the same requested resource. - */ -export interface ETag { - /** - * Entity tag is used for comparing two or more entities from the same requested resource. - */ - etag?: string; -} - -/** - * A list of key value pairs that describe the resource. - */ -export interface Tags { - /** - * A list of key value pairs that describe the resource. - */ - 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, - * while the free tier offers basic security features. - */ -export interface Pricing extends Resource { - /** - * The pricing tier value. 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, while the free tier offers basic security features. Possible - * values include: 'Free', 'Standard' - */ - pricingTier: PricingTier; - /** - * The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. - * P3Y6M4DT12H30M5S). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly freeTrialRemainingTime?: string; -} - -/** - * List of pricing configurations response. - */ -export interface PricingList { - /** - * List of pricing configurations - */ - value: Pricing[]; -} - -/** - * The Advanced Threat Protection resource. - */ -export interface AdvancedThreatProtectionSetting extends Resource { - /** - * Indicates whether Advanced Threat Protection is enabled. - */ - isEnabled?: boolean; -} - -/** - * Contains the possible cases for CustomAlertRule. - */ -export type CustomAlertRuleUnion = CustomAlertRule | ThresholdCustomAlertRuleUnion | ListCustomAlertRuleUnion; - -/** - * A custom alert rule. - */ -export interface CustomAlertRule { - /** - * Polymorphic Discriminator - */ - ruleType: "CustomAlertRule"; - /** - * 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; -} - -/** - * Contains the possible cases for ThresholdCustomAlertRule. - */ -export type ThresholdCustomAlertRuleUnion = ThresholdCustomAlertRule | TimeWindowCustomAlertRuleUnion; - -/** - * A custom alert rule that checks if a value (depends on the custom alert type) is within the - * given range. - */ -export interface ThresholdCustomAlertRule { - /** - * Polymorphic Discriminator - */ - ruleType: "ThresholdCustomAlertRule"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; -} - -/** - * Contains the possible cases for TimeWindowCustomAlertRule. - */ -export type TimeWindowCustomAlertRuleUnion = TimeWindowCustomAlertRule | ActiveConnectionsNotInAllowedRange | AmqpC2DMessagesNotInAllowedRange | MqttC2DMessagesNotInAllowedRange | HttpC2DMessagesNotInAllowedRange | AmqpC2DRejectedMessagesNotInAllowedRange | MqttC2DRejectedMessagesNotInAllowedRange | HttpC2DRejectedMessagesNotInAllowedRange | AmqpD2CMessagesNotInAllowedRange | MqttD2CMessagesNotInAllowedRange | HttpD2CMessagesNotInAllowedRange | DirectMethodInvokesNotInAllowedRange | FailedLocalLoginsNotInAllowedRange | FileUploadsNotInAllowedRange | QueuePurgesNotInAllowedRange | TwinUpdatesNotInAllowedRange | UnauthorizedOperationsNotInAllowedRange; - -/** - * A custom alert rule that checks if the number of activities (depends on the custom alert type) - * in a time window is within the given range. - */ -export interface TimeWindowCustomAlertRule { - /** - * Polymorphic Discriminator - */ - ruleType: "TimeWindowCustomAlertRule"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Contains the possible cases for ListCustomAlertRule. - */ -export type ListCustomAlertRuleUnion = ListCustomAlertRule | AllowlistCustomAlertRuleUnion | DenylistCustomAlertRule; - -/** - * A List custom alert rule. - */ -export interface ListCustomAlertRule { - /** - * Polymorphic Discriminator - */ - ruleType: "ListCustomAlertRule"; - /** - * 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; -} - -/** - * Contains the possible cases for AllowlistCustomAlertRule. - */ -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. - */ -export interface AllowlistCustomAlertRule { - /** - * Polymorphic Discriminator - */ - ruleType: "AllowlistCustomAlertRule"; - /** - * 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[]; -} - -/** - * A custom alert rule that checks if a value (depends on the custom alert type) is denied. + * Security Standard on a resource */ -export interface DenylistCustomAlertRule { - /** - * Polymorphic Discriminator - */ - ruleType: "DenylistCustomAlertRule"; - /** - * 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; +export interface Standard extends TrackedResource { /** - * Status of the custom alert. + * display name of the standard, equivalent to the standardId */ - isEnabled: boolean; + displayName?: string; /** - * The value type of the items in the list. Possible values include: 'IpCidr', 'String' + * standard type (Custom or BuiltIn only currently) * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly valueType?: ValueType; - /** - * The values to deny. The format of the values depends on the rule type. - */ - denylistValues: string[]; -} - -/** - * The device security group resource - */ -export interface DeviceSecurityGroup extends Resource { - /** - * The list of custom alert threshold rules. - */ - thresholdRules?: ThresholdCustomAlertRuleUnion[]; - /** - * The list of custom alert time-window rules. - */ - timeWindowRules?: TimeWindowCustomAlertRuleUnion[]; + readonly standardType?: string; /** - * The allow-list custom alert rules. + * description of the standard */ - allowlistRules?: AllowlistCustomAlertRuleUnion[]; + description?: string; /** - * The deny-list custom alert rules. + * category of the standard provided */ - denylistRules?: DenylistCustomAlertRule[]; -} - -/** - * Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in - * CIDR notation. - */ -export interface ConnectionToIpNotAllowed { + category?: string; /** - * Polymorphic Discriminator + * List of component objects containing component unique keys (such as assessment keys) to apply + * to standard scope. Currently only supports assessment keys. */ - ruleType: "ConnectionToIpNotAllowed"; + components?: StandardComponentProperties[]; /** - * 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[]; -} - -/** - * 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. - */ -export interface LocalUserNotAllowed { - /** - * Polymorphic Discriminator - */ - ruleType: "LocalUserNotAllowed"; - /** - * 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[]; -} - -/** - * Execution of a process that isn't allowed. Allow list consists of process names to allow. - */ -export interface ProcessNotAllowed { - /** - * Polymorphic Discriminator - */ - ruleType: "ProcessNotAllowed"; - /** - * 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[]; -} - -/** - * Number of active connections is not in allowed range. - */ -export interface ActiveConnectionsNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "ActiveConnectionsNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of cloud to device messages (AMQP protocol) is not in allowed range. - */ -export interface AmqpC2DMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "AmqpC2DMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of cloud to device messages (MQTT protocol) is not in allowed range. - */ -export interface MqttC2DMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "MqttC2DMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of cloud to device messages (HTTP protocol) is not in allowed range. - */ -export interface HttpC2DMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "HttpC2DMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of rejected cloud to device messages (AMQP protocol) is not in allowed range. - */ -export interface AmqpC2DRejectedMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "AmqpC2DRejectedMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of rejected cloud to device messages (MQTT protocol) is not in allowed range. - */ -export interface MqttC2DRejectedMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "MqttC2DRejectedMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of rejected cloud to device messages (HTTP protocol) is not in allowed range. - */ -export interface HttpC2DRejectedMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "HttpC2DRejectedMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of device to cloud messages (AMQP protocol) is not in allowed range. - */ -export interface AmqpD2CMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "AmqpD2CMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of device to cloud messages (MQTT protocol) is not in allowed range. - */ -export interface MqttD2CMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "MqttD2CMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of device to cloud messages (HTTP protocol) is not in allowed range. - */ -export interface HttpD2CMessagesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "HttpD2CMessagesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of direct method invokes is not in allowed range. - */ -export interface DirectMethodInvokesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "DirectMethodInvokesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of failed local logins is not in allowed range. - */ -export interface FailedLocalLoginsNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "FailedLocalLoginsNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of file uploads is not in allowed range. - */ -export interface FileUploadsNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "FileUploadsNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of device queue purges is not in allowed range. - */ -export interface QueuePurgesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "QueuePurgesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of twin updates is not in allowed range. - */ -export interface TwinUpdatesNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "TwinUpdatesNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * Number of unauthorized operations is not in allowed range. - */ -export interface UnauthorizedOperationsNotInAllowedRange { - /** - * Polymorphic Discriminator - */ - ruleType: "UnauthorizedOperationsNotInAllowedRange"; - /** - * 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 minimum threshold. - */ - minThreshold: number; - /** - * The maximum threshold. - */ - maxThreshold: number; - /** - * The time window size in iso8601 format. - */ - timeWindowSize: string; -} - -/** - * A container holding only the Tags for a resource, allowing the user to update the tags. - */ -export interface TagsResource { - /** - * Resource tags - */ - tags?: { [propertyName: string]: string }; -} - -/** - * Properties of the IoT Security solution's user defined resources. - */ -export interface UserDefinedResourcesProperties { - /** - * Azure Resource Graph query which represents the security solution's user defined resources. - * Required to start with "where type != "Microsoft.Devices/IotHubs"" - */ - query: string; - /** - * List of Azure subscription ids on which the user defined resources query should be executed. - */ - querySubscriptions: string[]; -} - -/** - * The type of IoT Security recommendation. - */ -export interface RecommendationConfigurationProperties { - /** - * The type of IoT Security recommendation. 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' - */ - recommendationType: RecommendationType; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Recommendation status. When the recommendation status is disabled recommendations are not - * generated. Possible values include: 'Disabled', 'Enabled'. Default value: 'Enabled'. - */ - status: RecommendationConfigStatus; -} - -/** - * Properties of the additional workspaces. - */ -export interface AdditionalWorkspacesProperties { - /** - * Workspace resource id - */ - workspace?: string; - /** - * Workspace type. Possible values include: 'Sentinel'. Default value: 'Sentinel'. - */ - type?: AdditionalWorkspaceType; - /** - * List of data types sent to workspace - */ - dataTypes?: AdditionalWorkspaceDataType[]; -} - -/** - * Metadata pertaining to creation and last modification of the resource. - */ -export interface SystemData { - /** - * The identity that created the resource. - */ - 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. - */ - location?: string; - /** - * Workspace resource ID - */ - workspace?: string; - /** - * Resource display name. - */ - displayName: string; - /** - * Status of the IoT Security solution. Possible values include: 'Enabled', 'Disabled'. Default - * value: 'Enabled'. - */ - status?: SecuritySolutionStatus; - /** - * List of additional options for exporting to workspace data. - */ - exportProperty?: ExportData[]; - /** - * Disabled data sources. Disabling these data sources compromises the system. - */ - disabledDataSources?: DataSource[]; - /** - * IoT Hub resource IDs - */ - iotHubs: string[]; - userDefinedResources?: UserDefinedResourcesProperties; - /** - * List of resources that were automatically discovered as relevant to the security solution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly autoDiscoveredResources?: string[]; - recommendationsConfiguration?: RecommendationConfigurationProperties[]; - /** - * Unmasked IP address logging status. Possible values include: 'Disabled', 'Enabled'. Default - * 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; -} - -/** - * An interface representing UpdateIotSecuritySolutionData. - */ -export interface UpdateIotSecuritySolutionData extends TagsResource { - userDefinedResources?: UserDefinedResourcesProperties; - recommendationsConfiguration?: RecommendationConfigurationProperties[]; -} - -/** - * IoT Security solution analytics severity metrics. - */ -export interface IoTSeverityMetrics { - /** - * Count of high severity alerts/recommendations. - */ - high?: number; - /** - * Count of medium severity alerts/recommendations. - */ - medium?: number; - /** - * Count of low severity alerts/recommendations. - */ - low?: number; -} - -/** - * An interface representing IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem. - */ -export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { - /** - * Aggregation of IoT Security solution device alert metrics by date. - */ - date?: Date; - /** - * Device alert count by severity. - */ - devicesMetrics?: IoTSeverityMetrics; -} - -/** - * Statistical information about the number of alerts per device during last set number of days. - */ -export interface IoTSecurityAlertedDevice { - /** - * Device identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly deviceId?: string; - /** - * Number of alerts raised for this device. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertsCount?: number; -} - -/** - * Statistical information about the number of alerts per alert type during last set number of days - */ -export interface IoTSecurityDeviceAlert { - /** - * Display name of the alert - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertDisplayName?: string; - /** - * Assessed Alert severity. 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; - /** - * Number of alerts raised for this alert type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertsCount?: number; -} - -/** - * Statistical information about the number of recommendations per device, per recommendation type. - */ -export interface IoTSecurityDeviceRecommendation { - /** - * Display name of the recommendation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly recommendationDisplayName?: string; - /** - * Assessed recommendation severity. 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; - /** - * Number of devices with this recommendation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly devicesCount?: number; -} - -/** - * Security analytics of your IoT Security solution - */ -export interface IoTSecuritySolutionAnalyticsModel extends Resource { - /** - * Security analytics of your IoT Security solution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly metrics?: IoTSeverityMetrics; - /** - * Number of unhealthy devices within your IoT Security solution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unhealthyDeviceCount?: number; - /** - * List of device metrics by the aggregation date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly devicesMetrics?: IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem[]; - /** - * List of the 3 devices with the most alerts. - */ - topAlertedDevices?: IoTSecurityAlertedDevice[]; - /** - * List of the 3 most prevalent device alerts. - */ - mostPrevalentDeviceAlerts?: IoTSecurityDeviceAlert[]; - /** - * List of the 3 most prevalent device recommendations. - */ - mostPrevalentDeviceRecommendations?: IoTSecurityDeviceRecommendation[]; -} - -/** - * List of Security analytics of your IoT Security solution - */ -export interface IoTSecuritySolutionAnalyticsModelList { - /** - * List of Security analytics of your IoT Security solution - */ - value: IoTSecuritySolutionAnalyticsModel[]; - /** - * 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; -} - -/** - * An interface representing IoTSecurityAggregatedAlertPropertiesTopDevicesListItem. - */ -export interface IoTSecurityAggregatedAlertPropertiesTopDevicesListItem { - /** - * Name of the device. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly deviceId?: string; - /** - * Number of alerts raised for this device. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertsCount?: number; - /** - * Most recent time this alert was raised for this device, on this day. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastOccurrence?: string; -} - -/** - * Security Solution Aggregated Alert information - */ -export interface IoTSecurityAggregatedAlert { - /** - * 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 }; - /** - * Name of the alert type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly alertType?: 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; - /** - * Date of detection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly aggregatedDateUtc?: Date; - /** - * Name of the organization that raised the alert. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vendorName?: string; - /** - * Assessed alert severity. 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; - /** - * Recommended steps for remediation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly remediationSteps?: string; - /** - * 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; - /** - * Number of alerts occurrences within the aggregated time window. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly count?: number; - /** - * Azure resource ID of the resource that received the alerts. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly effectedResourceType?: string; - /** - * 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; - /** - * IoT Security solution alert response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly actionTaken?: string; - /** - * Log analytics query for getting the list of affected devices/alerts. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly logAnalyticsQuery?: string; - /** - * 10 devices with the highest number of occurrences of this alert type, on this day. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly topDevicesList?: IoTSecurityAggregatedAlertPropertiesTopDevicesListItem[]; -} - -/** - * IoT Security solution recommendation information. - */ -export interface IoTSecurityAggregatedRecommendation { - /** - * 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 }; - /** - * Name of the recommendation. - */ - recommendationName?: string; - /** - * Display name of the recommendation type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly recommendationDisplayName?: string; - /** - * 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; - /** - * Recommendation-type GUID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly recommendationTypeId?: string; - /** - * Name of the organization that made the recommendation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly detectedBy?: string; - /** - * Recommended steps for remediation - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly remediationSteps?: string; - /** - * Assessed recommendation severity. 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; - /** - * Number of healthy devices within the IoT Security solution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly healthyDevices?: number; - /** - * Number of unhealthy devices within the IoT Security solution. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unhealthyDeviceCount?: number; - /** - * Log analytics query for getting the list of affected devices/alerts. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly logAnalyticsQuery?: string; -} - -/** - * Security operation display - */ -export interface OperationDisplay { - /** - * The resource provider for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provider?: string; - /** - * The display name of the resource the operation applies to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resource?: string; - /** - * The display name of the security operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operation?: string; - /** - * The description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; -} - -/** - * Possible operation in the REST API of Microsoft.Security - */ -export interface Operation { - /** - * Name of the operation - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Where the operation is originated - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly origin?: string; - display?: OperationDisplay; -} - -/** - * Changing set of properties, depending on the task type that is derived from the name field - */ -export interface SecurityTaskParameters { - /** - * Name of the task type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ - [property: string]: any; -} - -/** - * Security task that we recommend to do in order to strengthen security - */ -export interface SecurityTask extends Resource { - /** - * State of the task (Active, Resolved etc.) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: string; - /** - * The time this task was discovered in UTC - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTimeUtc?: Date; - securityTaskParameters?: SecurityTaskParameters; - /** - * The time this task's details were last changed in UTC - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastStateChangeTimeUtc?: Date; - /** - * Additional data on the state of the task - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly subState?: string; -} - -/** - * Auto provisioning setting - */ -export interface AutoProvisioningSetting extends Resource { - /** - * Describes what kind of security agent provisioning action to take. Possible values include: - * 'On', 'Off' - */ - autoProvision: AutoProvision; -} - -/** - * A segment of a compliance assessment. - */ -export interface ComplianceSegment { - /** - * The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly segmentType?: string; - /** - * The size (%) of the segment. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentage?: number; -} - -/** - * Compliance of a scope - */ -export interface Compliance extends Resource { - /** - * The timestamp when the Compliance calculation was conducted. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly assessmentTimestampUtcDate?: Date; - /** - * The resource count of the given subscription for which the Compliance calculation was - * conducted (needed for Management Group Compliance calculation). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceCount?: number; - /** - * An array of segment, which is the actually the compliance assessment. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly assessmentResult?: ComplianceSegment[]; -} - -/** - * The sensitivity label. - */ -export interface SensitivityLabel { - /** - * The name of the sensitivity label. - */ - displayName?: string; - /** - * The description of the sensitivity label. - */ - description?: string; - /** - * The rank of the sensitivity label. Possible values include: 'None', 'Low', 'Medium', 'High', - * 'Critical' - */ - rank?: Rank; - /** - * The order of the sensitivity label. - */ - order?: number; - /** - * Indicates whether the label is enabled or not. - */ - enabled?: boolean; -} - -/** - * The information type keyword. - */ -export interface InformationProtectionKeyword { - /** - * The keyword pattern. - */ - pattern?: string; - /** - * Indicates whether the keyword is custom or not. - */ - custom?: boolean; - /** - * Indicates whether the keyword can be applied on numeric types or not. - */ - canBeNumeric?: boolean; - /** - * Indicates whether the keyword is excluded or not. - */ - excluded?: boolean; -} - -/** - * The information type. - */ -export interface InformationType { - /** - * The name of the information type. - */ - displayName?: string; - /** - * The description of the information type. - */ - description?: string; - /** - * The order of the information type. - */ - order?: number; - /** - * The recommended label id to be associated with this information type. - */ - recommendedLabelId?: string; - /** - * Indicates whether the information type is enabled or not. - */ - enabled?: boolean; - /** - * Indicates whether the information type is custom or not. - */ - custom?: boolean; - /** - * The information type keywords. - */ - keywords?: InformationProtectionKeyword[]; -} - -/** - * Information protection policy. - */ -export interface InformationProtectionPolicy extends Resource { - /** - * Describes the last UTC time the policy was modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastModifiedUtc?: Date; - /** - * Describes the version of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly version?: string; - /** - * Dictionary of sensitivity labels. - */ - labels?: { [propertyName: string]: SensitivityLabel }; - /** - * The sensitivity information types. - */ - informationTypes?: { [propertyName: string]: InformationType }; -} - -/** - * Contact details for security issues - */ -export interface SecurityContact extends Resource { - /** - * The email of this security contact - */ - email: string; - /** - * The phone number of this security contact - */ - phone?: string; - /** - * Whether to send security alerts notifications to the security contact. Possible values - * include: 'On', 'Off' - */ - alertNotifications: AlertNotifications; - /** - * Whether to send security alerts notifications to subscription admins. Possible values include: - * 'On', 'Off' - */ - alertsToAdmins: AlertsToAdmins; -} - -/** - * Configures where to store the OMS agent data for workspaces under a scope - */ -export interface WorkspaceSetting extends Resource { - /** - * The full Azure ID of the workspace to save the data in - */ - workspaceId: string; - /** - * All the VMs in this scope will send their security data to the mentioned workspace unless - * overridden by a setting with more specific scope - */ - scope: string; -} - -/** - * Regulatory compliance standard details and state - */ -export interface RegulatoryComplianceStandard extends Resource { - /** - * Aggregative state based on the standard's supported controls states. Possible values include: - * 'Passed', 'Failed', 'Skipped', 'Unsupported' - */ - state?: State; - /** - * The number of supported regulatory compliance controls of the given standard with a passed - * state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly passedControls?: number; - /** - * The number of supported regulatory compliance controls of the given standard with a failed - * state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failedControls?: number; - /** - * The number of supported regulatory compliance controls of the given standard with a skipped - * state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly skippedControls?: number; - /** - * The number of regulatory compliance controls of the given standard which are unsupported by - * automated assessments - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unsupportedControls?: number; -} - -/** - * Regulatory compliance control details and state - */ -export interface RegulatoryComplianceControl extends Resource { - /** - * The description of the regulatory compliance control - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * Aggregative state based on the control's supported assessments states. Possible values - * include: 'Passed', 'Failed', 'Skipped', 'Unsupported' - */ - state?: State; - /** - * The number of supported regulatory compliance assessments of the given control with a passed - * state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly passedAssessments?: number; - /** - * The number of supported regulatory compliance assessments of the given control with a failed - * state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failedAssessments?: number; - /** - * The number of supported regulatory compliance assessments of the given control with a skipped - * state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly skippedAssessments?: number; -} - -/** - * Regulatory compliance assessment details and state - */ -export interface RegulatoryComplianceAssessment extends Resource { - /** - * The description of the regulatory compliance assessment - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * The expected type of assessment contained in the AssessmentDetailsLink - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly assessmentType?: string; - /** - * Link to more detailed assessment results data. The response type will be according to the - * assessmentType field - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly assessmentDetailsLink?: string; - /** - * Aggregative state based on the assessment's scanned resources states. Possible values include: - * 'Passed', 'Failed', 'Skipped', 'Unsupported' - */ - state?: State; - /** - * The given assessment's related resources count with passed state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly passedResources?: number; - /** - * The given assessment's related resources count with failed state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failedResources?: number; - /** - * The given assessment's related resources count with skipped state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly skippedResources?: number; - /** - * The given assessment's related resources count with unsupported state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unsupportedResources?: number; -} - -/** - * Status of the sub-assessment - */ -export interface SubAssessmentStatus { - /** - * Programmatic code for the status of the assessment. Possible values include: 'Healthy', - * 'Unhealthy', 'NotApplicable' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: SubAssessmentStatusCode; - /** - * Programmatic code for the cause of the assessment status - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly cause?: string; - /** - * Human readable description of the assessment status - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * The sub-assessment severity level. Possible values include: 'Low', 'Medium', 'High' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly severity?: Severity; -} - -/** - * Contains the possible cases for ResourceDetails. - */ -export type ResourceDetailsUnion = ResourceDetails | OnPremiseResourceDetailsUnion | AzureResourceDetails; - -/** - * Details of the resource that was assessed - */ -export interface ResourceDetails { - /** - * Polymorphic Discriminator - */ - source: "ResourceDetails"; -} - -/** - * Contains the possible cases for AdditionalData. - */ -export type AdditionalDataUnion = AdditionalData | SqlServerVulnerabilityProperties | ContainerRegistryVulnerabilityProperties | ServerVulnerabilityProperties; - -/** - * Details of the sub-assessment - */ -export interface AdditionalData { - /** - * Polymorphic Discriminator - */ - assessedResourceType: "AdditionalData"; -} - -/** - * Security sub-assessment on a resource - */ -export interface SecuritySubAssessment extends Resource { - /** - * Vulnerability ID - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly securitySubAssessmentId?: string; - /** - * User friendly display name of the sub-assessment - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - status?: SubAssessmentStatus; - /** - * Information on how to remediate this sub-assessment - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly remediation?: string; - /** - * Description of the impact of this sub-assessment - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly impact?: string; - /** - * Category of the sub-assessment - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly category?: string; - /** - * Human readable description of the assessment status - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * The date and time the sub-assessment was generated - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly timeGenerated?: Date; - resourceDetails?: ResourceDetailsUnion; - additionalData?: AdditionalDataUnion; -} - -/** - * Details of the resource that was assessed - */ -export interface SqlServerVulnerabilityProperties { - /** - * Polymorphic Discriminator - */ - assessedResourceType: "SqlServerVulnerability"; - /** - * The resource type the sub assessment refers to in its resource details - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The T-SQL query that runs on your SQL database to perform the particular check - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly query?: string; -} - -/** - * CVSS details - */ -export interface CVSS { - /** - * CVSS base - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly base?: number; -} - -/** - * CVE details - */ -export interface CVE { - /** - * CVE title - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly title?: string; - /** - * Link url - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly link?: string; -} - -/** - * Vendor reference - */ -export interface VendorReference { - /** - * Link title - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly title?: string; - /** - * Link url - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly link?: string; -} - -/** - * Additional context fields for container registry Vulnerability assessment - */ -export interface ContainerRegistryVulnerabilityProperties { - /** - * Polymorphic Discriminator - */ - assessedResourceType: "ContainerRegistryVulnerability"; - /** - * Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, - * Vulnerability - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Dictionary from cvss version to cvss details object - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly cvss?: { [propertyName: string]: CVSS }; - /** - * Indicates whether a patch is available or not - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly patchable?: boolean; - /** - * List of CVEs - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly cve?: CVE[]; - /** - * Published time - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly publishedTime?: Date; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vendorReferences?: VendorReference[]; - /** - * Name of the repository which the vulnerable image belongs to - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly repositoryName?: string; - /** - * Digest of the vulnerable image - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly imageDigest?: string; -} - -/** - * Additional context fields for server vulnerability assessment - */ -export interface ServerVulnerabilityProperties { - /** - * Polymorphic Discriminator - */ - assessedResourceType: "ServerVulnerabilityAssessment"; - /** - * Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Dictionary from cvss version to cvss details object - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly cvss?: { [propertyName: string]: CVSS }; - /** - * Indicates whether a patch is available or not - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly patchable?: boolean; - /** - * List of CVEs - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly cve?: CVE[]; - /** - * Threat name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly threat?: string; - /** - * Published time - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly publishedTime?: Date; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vendorReferences?: VendorReference[]; -} - -/** - * Contains the possible cases for OnPremiseResourceDetails. - */ -export type OnPremiseResourceDetailsUnion = OnPremiseResourceDetails | OnPremiseSqlResourceDetails; - -/** - * Details of the On Premise resource that was assessed - */ -export interface OnPremiseResourceDetails { - /** - * Polymorphic Discriminator - */ - source: "OnPremise"; - /** - * 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; -} - -/** - * 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 - */ -export interface AzureResourceDetails { - /** - * Polymorphic Discriminator - */ - source: "Azure"; - /** - * Azure resource Id of the assessed resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; -} - -/** - * A single automation scope. - */ -export interface AutomationScope { - /** - * The resources scope description. - */ - description?: string; - /** - * The resources scope path. Can be the subscription on which the automation is defined on or a - * resource group under that subscription (fully qualified Azure resource IDs). - */ - scopePath?: string; -} - -/** - * A rule which is evaluated upon event interception. The rule is configured by comparing a - * specific value from the event model to an expected value. This comparison is done by using one - * of the supported operators set. - */ -export interface AutomationTriggeringRule { - /** - * The JPath of the entity model property that should be checked. - */ - propertyJPath?: string; - /** - * The data type of the compared operands (string, integer, floating point number or a boolean - * [true/false]]. Possible values include: 'String', 'Integer', 'Number', 'Boolean' - */ - propertyType?: PropertyType; - /** - * The expected value. - */ - expectedValue?: string; - /** - * A valid comparer operator to use. A case-insensitive comparison will be applied for String - * PropertyType. Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqualTo', - * 'LesserThan', 'LesserThanOrEqualTo', 'NotEquals', 'Contains', 'StartsWith', 'EndsWith' - */ - operator?: Operator; -} - -/** - * A rule set which evaluates all its rules upon an event interception. Only when all the included - * rules in the rule set will be evaluated as 'true', will the event trigger the defined actions. - */ -export interface AutomationRuleSet { - rules?: AutomationTriggeringRule[]; -} - -/** - * The source event types which evaluate the security automation set of rules. For example - - * security alerts and security assessments. To learn more about the supported security events data - * models schemas - please visit https://aka.ms/ASCAutomationSchemas. - */ -export interface AutomationSource { - /** - * A valid event source type. Possible values include: 'Assessments', 'SubAssessments', 'Alerts', - * 'SecureScores', 'SecureScoresSnapshot', 'SecureScoreControls', 'SecureScoreControlsSnapshot', - * 'RegulatoryComplianceAssessment', 'RegulatoryComplianceAssessmentSnapshot' - */ - eventSource?: EventSource; - /** - * A set of rules which evaluate upon event interception. A logical disjunction is applied - * between defined rule sets (logical 'or'). - */ - ruleSets?: AutomationRuleSet[]; -} - -/** - * Contains the possible cases for AutomationAction. - */ -export type AutomationActionUnion = AutomationAction | AutomationActionLogicApp | AutomationActionEventHub | AutomationActionWorkspace; - -/** - * The action that should be triggered. - */ -export interface AutomationAction { - /** - * Polymorphic Discriminator - */ - actionType: "AutomationAction"; -} - -/** - * The security automation resource. - */ -export interface Automation extends TrackedResource { - /** - * The security automation description. - */ - description?: string; - /** - * Indicates whether the security automation is enabled. - */ - isEnabled?: boolean; - /** - * A collection of scopes on which the security automations logic is applied. Supported scopes - * are the subscription itself or a resource group under that subscription. The automation will - * only apply on defined scopes. - */ - scopes?: AutomationScope[]; - /** - * A collection of the source event types which evaluate the security automation set of rules. - */ - sources?: AutomationSource[]; - /** - * A collection of the actions which are triggered if all the configured rules evaluations, - * within at least one rule set, are true. - */ - actions?: AutomationActionUnion[]; -} - -/** - * The logic app action that should be triggered. To learn more about Security Center's Workflow - * Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore - */ -export interface AutomationActionLogicApp { - /** - * Polymorphic Discriminator - */ - actionType: "LogicApp"; - /** - * The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given - * that you have permissions to trigger the Logic App - */ - logicAppResourceId?: string; - /** - * The Logic App trigger URI endpoint (it will not be included in any response). - */ - uri?: string; -} - -/** - * The target Event Hub to which event data will be exported. To learn more about Security Center - * continuous export capabilities, visit https://aka.ms/ASCExportLearnMore - */ -export interface AutomationActionEventHub { - /** - * Polymorphic Discriminator - */ - actionType: "EventHub"; - /** - * The target Event Hub Azure Resource ID. - */ - eventHubResourceId?: string; - /** - * The target Event Hub SAS policy name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly sasPolicyName?: string; - /** - * The target Event Hub connection string (it will not be included in any response). - */ - connectionString?: string; -} - -/** - * The Log Analytics Workspace to which event data will be exported. Security alerts data will - * reside in the 'SecurityAlert' table and the assessments data will reside in the - * 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that - * in order to view the data in the workspace, the Security Center Log Analytics free/standard - * solution needs to be enabled on that workspace. To learn more about Security Center continuous - * export capabilities, visit https://aka.ms/ASCExportLearnMore - */ -export interface AutomationActionWorkspace { - /** - * Polymorphic Discriminator - */ - actionType: "Workspace"; - /** - * The fully qualified Log Analytics Workspace Azure Resource ID. - */ - workspaceResourceId?: string; -} - -/** - * The security automation model state property bag. - */ -export interface AutomationValidationStatus { - /** - * Indicates whether the model is valid or not. - */ - isValid?: boolean; - /** - * The validation message. - */ - message?: string; -} - -/** - * A more specific scope used to identify the alerts to suppress. - */ -export interface ScopeElement { - /** - * The alert entity type to suppress by. - */ - field?: string; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ - [property: string]: any; -} - -/** - * An interface representing SuppressionAlertsScope. - */ -export interface SuppressionAlertsScope { - /** - * All the conditions inside need to be true in order to suppress the alert - */ - allOf: ScopeElement[]; -} - -/** - * Describes the suppression rule - */ -export interface AlertsSuppressionRule extends Resource { - /** - * Type of the alert to automatically suppress. For all alert types, use '*' - */ - alertType: string; - /** - * The last time this rule was modified - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastModifiedUtc?: Date; - /** - * Expiration date of the rule, if value is not provided or provided as null this field will - * default to the maximum allowed expiration date. - */ - expirationDateUtc?: Date; - /** - * The reason for dismissing the alert - */ - reason: string; - /** - * Possible states of the rule. Possible values include: 'Enabled', 'Disabled', 'Expired' - */ - state: RuleState; - /** - * Any comment regarding the rule - */ - comment?: string; - /** - * The suppression conditions - */ - 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 - */ -export interface SecurityAssessmentMetadataPartnerData { - /** - * Name of the company of the partner - */ - partnerName: string; - /** - * Name of the product of the partner that created the assessment - */ - productName?: string; - /** - * Secret to authenticate the partner and verify it created the assessment - write only - */ - secret: string; -} - -/** - * Describes properties of an assessment metadata. - */ -export interface SecurityAssessmentMetadataProperties { - /** - * User friendly display name of the assessment - */ - displayName: string; - /** - * Azure resource ID of the policy definition that turns this assessment calculation on - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly policyDefinitionId?: string; - /** - * Human readable description of the assessment - */ - description?: string; - /** - * Human readable description of what you should do to mitigate this security issue - */ - remediationDescription?: string; - categories?: Categories[]; - /** - * The severity level of the assessment. Possible values include: 'Low', 'Medium', 'High' - */ - severity: Severity; - /** - * The user impact of the assessment. Possible values include: 'Low', 'Moderate', 'High' - */ - userImpact?: UserImpact; - /** - * The implementation effort required to remediate this assessment. Possible values include: - * 'Low', 'Moderate', 'High' - */ - implementationEffort?: ImplementationEffort; - threats?: Threats[]; - /** - * True if this assessment is in preview release status - */ - preview?: boolean; - /** - * BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment - * based on custom Azure Policy definition. Possible values include: 'BuiltIn', 'CustomPolicy', - * 'CustomerManaged', 'VerifiedPartner' - */ - assessmentType: AssessmentType; - partnerData?: SecurityAssessmentMetadataPartnerData; -} - -/** - * Security assessment metadata - */ -export interface SecurityAssessmentMetadata extends Resource { - /** - * User friendly display name of the assessment - */ - displayName: string; - /** - * Azure resource ID of the policy definition that turns this assessment calculation on - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly policyDefinitionId?: string; - /** - * Human readable description of the assessment - */ - description?: string; - /** - * Human readable description of what you should do to mitigate this security issue - */ - remediationDescription?: string; - categories?: Categories[]; - /** - * The severity level of the assessment. Possible values include: 'Low', 'Medium', 'High' - */ - severity: Severity; - /** - * The user impact of the assessment. Possible values include: 'Low', 'Moderate', 'High' - */ - userImpact?: UserImpact; - /** - * The implementation effort required to remediate this assessment. Possible values include: - * 'Low', 'Moderate', 'High' - */ - implementationEffort?: ImplementationEffort; - threats?: Threats[]; - /** - * True if this assessment is in preview release status - */ - preview?: boolean; - /** - * BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment - * based on custom Azure Policy definition. Possible values include: 'BuiltIn', 'CustomPolicy', - * 'CustomerManaged', 'VerifiedPartner' - */ - assessmentType: AssessmentType; - partnerData?: SecurityAssessmentMetadataPartnerData; -} - -/** - * The result of the assessment - */ -export interface AssessmentStatus { - /** - * Programmatic code for the status of the assessment. Possible values include: 'Healthy', - * 'Unhealthy', 'NotApplicable' - */ - code: AssessmentStatusCode; - /** - * Programmatic code for the cause of the assessment status - */ - cause?: string; - /** - * Human readable description of the assessment status - */ - description?: string; -} - -/** - * Links relevant to the assessment - */ -export interface AssessmentLinks { - /** - * Link to assessment in Azure Portal - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly azurePortalUri?: string; -} - -/** - * Data regarding 3rd party partner integration - */ -export interface SecurityAssessmentPartnerData { - /** - * Name of the company of the partner - */ - partnerName: string; - /** - * secret to authenticate the partner - write only - */ - secret: string; -} - -/** - * Security assessment on a resource - */ -export interface SecurityAssessment extends Resource { - resourceDetails: ResourceDetailsUnion; - /** - * User friendly display name of the assessment - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - status: AssessmentStatus; - /** - * Additional data regarding the assessment - */ - additionalData?: { [propertyName: string]: string }; - links?: AssessmentLinks; - metadata?: SecurityAssessmentMetadataProperties; - partnersData?: SecurityAssessmentPartnerData; -} - -/** - * The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, - * Executable is used for Linux. - */ -export interface ProtectionMode { - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - exe?: Exe; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - msi?: Msi; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - script?: Script; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - executable?: Executable; -} - -/** - * Represents a summary of the alerts of the machine group - */ -export interface AdaptiveApplicationControlIssueSummary { - /** - * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', - * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', - * 'ExecutableViolationsAudited', 'RulesViolatedManually' - */ - issue?: Issue; - /** - * The number of machines in the group that have this alert - */ - numberOfVms?: number; -} - -/** - * Represents a machine that is part of a machine group - */ -export interface VmRecommendation { - /** - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - */ - configurationStatus?: ConfigurationStatus; - /** - * Possible values include: 'Recommended', 'Add', 'Remove' - */ - recommendationAction?: RecommendationAction; - resourceId?: string; - /** - * Possible values include: 'Supported', 'NotSupported', 'Unknown' - */ - enforcementSupport?: EnforcementSupport; -} - -/** - * Represents the publisher information of a process/rule - */ -export interface PublisherInfo { - /** - * The Subject field of the x.509 certificate used to sign the code, using the following fields - - * O = Organization, L = Locality, S = State or Province, and C = Country - */ - publisherName?: string; - /** - * The product name taken from the file's version resource - */ - productName?: string; - /** - * The "OriginalName" field taken from the file's version resource - */ - binaryName?: string; - /** - * The binary file version taken from the file's version resource - */ - version?: string; -} - -/** - * Represents a user that is recommended to be allowed for a certain rule - */ -export interface UserRecommendation { - /** - * Represents a user that is recommended to be allowed for a certain rule - */ - username?: string; - /** - * Possible values include: 'Recommended', 'Add', 'Remove' - */ - recommendationAction?: RecommendationAction1; -} - -/** - * Represents a path that is recommended to be allowed and its properties - */ -export interface PathRecommendation { - /** - * The full path of the file, or an identifier of the application - */ - path?: string; - /** - * Possible values include: 'Recommended', 'Add', 'Remove' - */ - action?: Action; - /** - * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', - * 'BinarySignature', 'VersionAndAboveSignature' - */ - type?: Type; - publisherInfo?: PublisherInfo; - /** - * Whether the application is commonly run on the machine - */ - common?: boolean; - userSids?: string[]; - usernames?: UserRecommendation[]; - /** - * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' - */ - fileType?: FileType; - /** - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - */ - configurationStatus?: ConfigurationStatus1; -} - -/** - * An interface representing AdaptiveApplicationControlGroup. - */ -export interface AdaptiveApplicationControlGroup { - /** - * 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; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - enforcementMode?: EnforcementMode; - protectionMode?: ProtectionMode; - /** - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly configurationStatus?: ConfigurationStatus2; - /** - * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly recommendationStatus?: RecommendationStatus; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly issues?: AdaptiveApplicationControlIssueSummary[]; - /** - * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', - * 'NonAzure_AuditD', 'None' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly sourceSystem?: SourceSystem; - vmRecommendations?: VmRecommendation[]; - pathRecommendations?: PathRecommendation[]; -} - -/** - * Represents a list of machine groups and set of rules that are recommended by Azure Security - * Center to be allowed - */ -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; -} - -/** - * Describes remote addresses that is recommended to communicate with the Azure resource on some - * (Protocol, Port, Direction). All other remote addresses are recommended to be blocked - */ -export interface Rule { - /** - * The name of the rule - */ - name?: string; - /** - * The rule's direction. Possible values include: 'Inbound', 'Outbound' - */ - direction?: Direction; - /** - * The rule's destination port - */ - destinationPort?: number; - /** - * The rule's transport protocols - */ - protocols?: TransportProtocol[]; - /** - * The remote IP addresses that should be able to communicate with the Azure resource on the - * rule's destination port and protocol - */ - ipAddresses?: string[]; -} - -/** - * Describes the Network Security Groups effective on a network interface - */ -export interface EffectiveNetworkSecurityGroups { - /** - * The Azure resource ID of the network interface - */ - networkInterface?: string; - /** - * The Network Security Groups effective on the network interface - */ - networkSecurityGroups?: string[]; -} - -/** - * The resource whose properties describes the Adaptive Network Hardening settings for some Azure - * resource - */ -export interface AdaptiveNetworkHardening extends Resource { - /** - * The security rules which are recommended to be effective on the VM - */ - rules?: Rule[]; - /** - * The UTC time on which the rules were calculated - */ - rulesCalculationTime?: Date; - /** - * The Network Security Groups effective on the network interfaces of the protected resource - */ - effectiveNetworkSecurityGroups?: EffectiveNetworkSecurityGroups[]; -} - -/** - * An interface representing AdaptiveNetworkHardeningEnforceRequest. - */ -export interface AdaptiveNetworkHardeningEnforceRequest { - /** - * The rules to enforce - */ - rules: Rule[]; - /** - * The Azure resource IDs of the effective network security groups that will be updated with the - * created security rules from the Adaptive Network Hardening rules - */ - networkSecurityGroups: string[]; -} - -/** - * Describes properties of a connected resource - */ -export interface ConnectedResource { - /** - * The Azure resource id of the connected resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly connectedResourceId?: string; - /** - * The allowed tcp ports - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tcpPorts?: string; - /** - * The allowed udp ports - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly udpPorts?: string; -} - -/** - * Describes the allowed inbound and outbound traffic of an Azure resource - */ -export interface ConnectableResource { - /** - * The Azure resource id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The list of Azure resources that the resource has inbound allowed connection from - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly inboundConnectedResources?: ConnectedResource[]; - /** - * The list of Azure resources that the resource has outbound allowed connection to - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly outboundConnectedResources?: ConnectedResource[]; -} - -/** - * The resource whose properties describes the allowed traffic between Azure resources - */ -export interface AllowedConnectionsResource { - /** - * 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 UTC time on which the allowed connections resource was calculated - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly calculatedDateTime?: Date; - /** - * List of connectable resources - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly connectableResources?: ConnectableResource[]; -} - -/** - * An interface representing TopologySingleResourceParent. - */ -export interface TopologySingleResourceParent { - /** - * Azure resource id which serves as parent resource in topology view - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceId?: string; -} - -/** - * An interface representing TopologySingleResourceChild. - */ -export interface TopologySingleResourceChild { - /** - * Azure resource id which serves as child resource in topology view - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceId?: string; -} - -/** - * An interface representing TopologySingleResource. - */ -export interface TopologySingleResource { - /** - * Azure resource id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceId?: string; - /** - * The security severity of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly severity?: string; - /** - * Indicates if the resource has security recommendations - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly recommendationsExist?: boolean; - /** - * Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly networkZones?: string; - /** - * Score of the resource based on its security severity - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly topologyScore?: number; - /** - * The location of this resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Azure resources connected to this resource which are in higher level in the topology view - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly parents?: TopologySingleResourceParent[]; - /** - * Azure resources connected to this resource which are in lower level in the topology view - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly children?: TopologySingleResourceChild[]; -} - -/** - * An interface representing TopologyResource. - */ -export interface TopologyResource { - /** - * 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 UTC time on which the topology was calculated - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly calculatedDateTime?: Date; - /** - * Azure resources which are part of this topology resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly topologyResources?: TopologySingleResource[]; -} - -/** - * An interface representing JitNetworkAccessPortRule. - */ -export interface JitNetworkAccessPortRule { - number: number; - /** - * Possible values include: 'TCP', 'UDP', 'All' - */ - protocol: Protocol; - /** - * Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address - * or CIDR, for example "192.168.0.3" or "192.168.0.0/16". - */ - allowedSourceAddressPrefix?: string; - /** - * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. - */ - allowedSourceAddressPrefixes?: string[]; - /** - * Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, - * maximum 1 day - */ - maxRequestAccessDuration: string; -} - -/** - * An interface representing JitNetworkAccessPolicyVirtualMachine. - */ -export interface JitNetworkAccessPolicyVirtualMachine { - /** - * Resource ID of the virtual machine that is linked to this policy - */ - id: string; - /** - * Port configurations for the virtual machine - */ - ports: JitNetworkAccessPortRule[]; - /** - * Public IP address of the Azure Firewall that is linked to this policy, if applicable - */ - publicIpAddress?: string; -} - -/** - * An interface representing JitNetworkAccessRequestPort. - */ -export interface JitNetworkAccessRequestPort { - number: number; - /** - * Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address - * or CIDR, for example "192.168.0.3" or "192.168.0.0/16". - */ - allowedSourceAddressPrefix?: string; - /** - * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. - */ - allowedSourceAddressPrefixes?: string[]; - /** - * The date & time at which the request ends in UTC - */ - endTimeUtc: Date; - /** - * The status of the port. Possible values include: 'Revoked', 'Initiated' - */ - status: Status; - /** - * A description of why the `status` has its value. Possible values include: 'Expired', - * 'UserRequested', 'NewerRequestInitiated' - */ - statusReason: StatusReason; - /** - * The port which is mapped to this port's `number` in the Azure Firewall, if applicable - */ - mappedPort?: number; -} - -/** - * An interface representing JitNetworkAccessRequestVirtualMachine. - */ -export interface JitNetworkAccessRequestVirtualMachine { - /** - * Resource ID of the virtual machine that is linked to this policy - */ - id: string; - /** - * The ports that were opened for the virtual machine - */ - ports: JitNetworkAccessRequestPort[]; -} - -/** - * An interface representing JitNetworkAccessRequest. - */ -export interface JitNetworkAccessRequest { - virtualMachines: JitNetworkAccessRequestVirtualMachine[]; - /** - * The start time of the request in UTC - */ - startTimeUtc: Date; - /** - * The identity of the person who made the request - */ - requestor: string; - /** - * The justification for making the initiate request - */ - justification?: string; -} - -/** - * An interface representing JitNetworkAccessPolicy. - */ -export interface JitNetworkAccessPolicy { - /** - * 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; - /** - * Kind of the resource - */ - kind?: 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; - /** - * Configurations for Microsoft.Compute/virtualMachines resource type. - */ - virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; - requests?: JitNetworkAccessRequest[]; - /** - * Gets the provisioning state of the Just-in-Time policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; -} - -/** - * An interface representing JitNetworkAccessPolicyInitiatePort. - */ -export interface JitNetworkAccessPolicyInitiatePort { - number: number; - /** - * Source of the allowed traffic. If omitted, the request will be for the source IP address of - * the initiate request. - */ - allowedSourceAddressPrefix?: string; - /** - * The time to close the request in UTC - */ - endTimeUtc: Date; -} - -/** - * An interface representing JitNetworkAccessPolicyInitiateVirtualMachine. - */ -export interface JitNetworkAccessPolicyInitiateVirtualMachine { - /** - * Resource ID of the virtual machine that is linked to this policy - */ - id: string; - /** - * The ports to open for the resource with the `id` - */ - ports: JitNetworkAccessPolicyInitiatePort[]; -} - -/** - * An interface representing JitNetworkAccessPolicyInitiateRequest. - */ -export interface JitNetworkAccessPolicyInitiateRequest { - /** - * A list of virtual machines & ports to open access for - */ - virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; - /** - * The justification for making the initiate request - */ - justification?: string; -} - -/** - * An interface representing DiscoveredSecuritySolution. - */ -export interface DiscoveredSecuritySolution { - /** - * 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 discovered solution. Possible values include: 'Waf', 'Ngfw', - * 'SaasWaf', 'Va' - */ - securityFamily: SecurityFamily; - /** - * The security solutions' image offer - */ - offer: string; - /** - * The security solutions' image publisher - */ - publisher: string; - /** - * The security solutions' image sku - */ - 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. - */ -export type ExternalSecuritySolutionUnion = ExternalSecuritySolution | CefExternalSecuritySolution | AtaExternalSecuritySolution | AadExternalSecuritySolution; - -/** - * Represents a security solution external to Azure Security Center which sends information to an - * OMS workspace and whose data is displayed by Azure Security Center. - */ -export interface ExternalSecuritySolution { - /** - * Polymorphic Discriminator - */ - kind: "ExternalSecuritySolution"; - /** - * 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 solution properties (correspond to the solution kind) - */ -export interface ExternalSecuritySolutionProperties { - deviceVendor?: string; - deviceType?: string; - workspace?: ConnectedWorkspace; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ - [property: string]: any; -} - -/** - * An interface representing CefSolutionProperties. - * @summary The external security solution properties for CEF solutions - */ -export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { - hostname?: string; - agent?: string; - lastEventReceived?: string; -} - -/** - * Represents a security solution which sends CEF logs to an OMS workspace - */ -export interface CefExternalSecuritySolution { - /** - * Polymorphic Discriminator - */ - kind: "CEF"; - /** - * 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; - properties?: CefSolutionProperties; -} - -/** - * An interface representing AtaSolutionProperties. - * @summary The external security solution properties for ATA solutions - */ -export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { - lastEventReceived?: string; -} - -/** - * Represents an ATA security solution which sends logs to an OMS workspace - */ -export interface AtaExternalSecuritySolution { - /** - * Polymorphic Discriminator - */ - kind: "ATA"; - /** - * 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; - properties?: AtaSolutionProperties; -} - -/** - * An interface representing ConnectedWorkspace. - * @summary Represents an OMS workspace to which the solution is connected - */ -export interface ConnectedWorkspace { - /** - * Azure resource ID of the connected OMS workspace - */ - id?: string; -} - -/** - * An interface representing AadSolutionProperties. - * @summary The external security solution properties for AAD solutions - */ -export interface AadSolutionProperties { - deviceVendor?: string; - deviceType?: string; - workspace?: ConnectedWorkspace; - /** - * The connectivity state of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' - */ - connectivityState?: AadConnectivityState; -} - -/** - * Represents an AAD identity protection solution which sends logs to an OMS workspace. - */ -export interface AadExternalSecuritySolution { - /** - * Polymorphic Discriminator - */ - kind: "AAD"; - /** - * 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; - properties?: AadSolutionProperties; -} - -/** - * Describes an Azure resource with kind - */ -export interface ExternalSecuritySolutionKind1 { - /** - * The kind of the external solution. Possible values include: 'CEF', 'ATA', 'AAD' - */ - kind?: ExternalSecuritySolutionKind; -} - -/** - * Describes an Azure resource with kind - */ -export interface AadConnectivityState1 { - /** - * The connectivity state of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' - */ - connectivityState?: AadConnectivityState; -} - -/** - * Secure score item data model - */ -export interface SecureScoreItem extends Resource { - /** - * The initiative’s name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * Maximum score available - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly max?: number; - /** - * 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; -} - -/** - * Calculation result data - */ -export interface SecureScoreControlScore { - /** - * Maximum control score (0..10) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly max?: number; - /** - * Actual score for the control = (achieved points / total points) * max score. if total points - * is zeroed, the return number is 0.00 - * **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 type of the security control (For example, BuiltIn) - */ -export interface SecureScoreControlDefinitionSource { - /** - * The type of security control (for example, BuiltIn). Possible values include: 'BuiltIn', - * 'Custom' - */ - sourceType?: ControlType; -} - -/** - * Describes an Azure resource with kind - */ -export interface AzureResourceLink { - /** - * Azure resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; -} - -/** - * Information about the security control. - */ -export interface SecureScoreControlDefinitionItem extends Resource { - /** - * User friendly display name of the control - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * User friendly description of the control - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * Maximum control score (0..10) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxScore?: number; - /** - * Source object from which the control was created - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly source?: SecureScoreControlDefinitionSource; - /** - * 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[]; -} - -/** - * Details of the security control, its score, and the health status of the relevant resources. - */ -export interface SecureScoreControlDetails extends Resource { - /** - * User friendly display name of the control - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * Maximum score available - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly max?: number; - /** - * 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.** - */ - readonly healthyResourceCount?: number; - /** - * Number of unhealthy resources in the control - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unhealthyResourceCount?: number; - /** - * Number of not applicable resources in the control - * **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; -} - -/** - * An interface representing SecuritySolution. - */ -export interface SecuritySolution { - /** - * 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 family provisioning State. Possible values include: 'Succeeded', 'Failed', - * 'Updating' - */ - provisioningState: ProvisioningState; - /** - * The security solutions' template - */ - template: string; - /** - * The security solutions' status - */ - protectionStatus: string; -} - -/** - * 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 ProxyServerProperties { - /** - * Proxy server IP - */ - ip?: string; - /** - * Proxy server port - */ - port?: string; -} - -/** - * Details of the service principal. - */ -export interface ServicePrincipalProperties { - /** - * Application ID of service principal. - */ - applicationId?: string; - /** - * A secret string that the application uses to prove its identity, also can be referred to as - * application password (write only). - */ - secret?: string; -} - -/** - * Settings for hybrid compute management - */ -export interface HybridComputeSettingsProperties { - /** - * 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.** - */ - readonly hybridComputeProvisioningState?: HybridComputeProvisioningState; - /** - * Whether or not to automatically install Azure Arc (hybrid compute) agents on machines. - * Possible values include: 'On', 'Off' - */ - autoProvision: AutoProvision; - /** - * The name of the resource group where Arc (Hybrid Compute) connectors are connected. - */ - resourceGroupName?: string; - /** - * The location where the metadata of machines will be stored - */ - region?: string; - /** - * For a non-Azure machine that is not connected directly to the internet, specify a proxy server - * that the non-Azure machine can use. - */ - proxyServer?: ProxyServerProperties; - /** - * An object to access resources that are secured by an Azure AD tenant. - */ - servicePrincipal?: ServicePrincipalProperties; -} - -/** - * Contains the possible cases for AuthenticationDetailsProperties. - */ -export type AuthenticationDetailsPropertiesUnion = AuthenticationDetailsProperties | AwsCredsAuthenticationDetailsProperties | AwAssumeRoleAuthenticationDetailsProperties | GcpCredentialsDetailsProperties; - -/** - * Settings for cloud authentication management - */ -export interface AuthenticationDetailsProperties { - /** - * Polymorphic Discriminator - */ - 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[]; -} - -/** - * The connector setting - */ -export interface ConnectorSetting extends Resource { - /** - * Settings for hybrid compute management. These settings are relevant only for Arc autoProvision - * (Hybrid Compute). - */ - hybridComputeSettings?: HybridComputeSettingsProperties; - /** - * Settings for authentication management, these settings are relevant only for the cloud - * connector. - */ - authenticationDetails?: AuthenticationDetailsPropertiesUnion; -} - -/** - * 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 AwsCredsAuthenticationDetailsProperties { - /** - * Polymorphic Discriminator - */ - 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; -} - -/** - * 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 AwAssumeRoleAuthenticationDetailsProperties { - /** - * Polymorphic Discriminator - */ - 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; -} - -/** - * 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 GcpCredentialsDetailsProperties { - /** - * Polymorphic Discriminator - */ - 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; -} - -/** - * A vulnerability assessment scan record properties. - */ -export interface ScanProperties { - /** - * Possible values include: 'OnDemand', 'Recurring' - */ - 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; -} - -/** - * A vulnerability assessment scan record. - */ -export interface Scan extends Resource { - properties?: ScanProperties; -} - -/** - * A list of vulnerability assessment scan records. - */ -export interface Scans { - /** - * List of vulnerability assessment scan records. - */ - value?: Scan[]; -} - -/** - * Remediation details. - */ -export interface Remediation { - /** - * Remediation description. - */ - description?: string; - /** - * Remediation script. - */ - scripts?: string[]; - /** - * Is remediation automated. - */ - automated?: boolean; - /** - * Optional link to remediate in Azure Portal. - */ - portalLink?: string; -} - -/** - * Baseline details. - */ -export interface Baseline { - /** - * Expected results. - */ - expectedResults?: string[][]; - /** - * Baseline update time (UTC). - */ - updatedTime?: Date; -} - -/** - * The rule result adjusted with baseline. - */ -export interface BaselineAdjustedResult { - baseline?: Baseline; - /** - * Possible values include: 'NonFinding', 'Finding', 'InternalError' - */ - status?: RuleStatus; - /** - * Results the are not in baseline. - */ - resultsNotInBaseline?: string[][]; - /** - * Results the are in baseline. - */ - resultsOnlyInBaseline?: string[][]; -} - -/** - * The rule query details. - */ -export interface QueryCheck { - /** - * The rule query. - */ - query?: string; - /** - * Expected result. - */ - expectedResult?: string[][]; - /** - * Column names of expected result. - */ - columnNames?: string[]; -} - -/** - * The benchmark references. - */ -export interface BenchmarkReference { - /** - * The benchmark name. - */ - benchmark?: string; - /** - * The benchmark reference. - */ - reference?: string; -} - -/** - * vulnerability assessment rule metadata details. - */ -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[]; -} - -/** - * A vulnerability assessment scan result properties for a single rule. - */ -export interface ScanResultProperties { - /** - * The rule Id. - */ - 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; -} - -/** - * A vulnerability assessment scan result for a single rule. - */ -export interface ScanResult extends Resource { - properties?: ScanResultProperties; -} - -/** - * A list of vulnerability assessment scan results. - */ -export interface ScanResults { - /** - * List of vulnerability assessment scan results. - */ - value?: ScanResult[]; -} - -/** - * Rule results input. - */ -export interface RuleResultsInput { - /** - * Take results from latest scan. - */ - latestScan?: boolean; - /** - * Expected results to be inserted into the baseline. - * Leave this field empty it LatestScan == true. - */ - results?: string[][]; -} - -/** - * Rule results properties. - */ -export interface RuleResultsProperties { - /** - * Expected results in the baseline. - */ - results?: string[][]; -} - -/** - * Rule results. - */ -export interface RuleResults extends Resource { - properties?: RuleResultsProperties; -} - -/** - * A list of rules results. - */ -export interface RulesResults { - /** - * List of rule results. - */ - value?: RuleResults[]; -} - -/** - * Rules results input. - */ -export interface RulesResultsInput { - /** - * Take results from latest scan. - */ - latestScan?: boolean; - /** - * Expected results to be inserted into the baseline. - * Leave this field empty it LatestScan == true. - */ - results?: { [propertyName: string]: string[][] }; -} - -/** - * IoT Defender settings - */ -export interface IotDefenderSettingsModel extends Resource { - /** - * 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. - */ - deviceQuota: number; - /** - * Sentinel Workspace Resource Ids - */ - sentinelWorkspaceResourceIds: string[]; - /** - * The kind of onboarding for the subscription. Possible values include: 'Default', - * 'MigratedToAzure', 'Evaluation', 'Purchased' - */ - onboardingKind: OnboardingKind; - /** - * End time of the evaluation period, if such exist - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly evaluationEndTime?: Date; -} - -/** - * List of IoT Defender settings - */ -export interface IotDefenderSettingsList { - /** - * List data - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: IotDefenderSettingsModel[]; -} - -/** - * Information on a specific package download - */ -export interface PackageDownloadInfo { - /** - * Version number - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly version?: string; - /** - * 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 versionKind?: VersionKind; -} - -/** - * Information on a specific package upgrade download - */ -export interface UpgradePackageDownloadInfo extends PackageDownloadInfo { - /** - * Minimum base version for upgrade - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly fromVersion?: string; -} - -/** - * Contains all OVF (virtual machine) full versions for the sensor - */ -export interface PackageDownloadsSensorFullOvf { - /** - * Enterprise package type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly enterprise?: PackageDownloadInfo[]; - /** - * Medium package type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly medium?: PackageDownloadInfo[]; - /** - * Line package type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly line?: PackageDownloadInfo[]; -} - -/** - * Contains full package downloads - */ -export interface PackageDownloadsSensorFull { - /** - * Contains all ISO full versions for the sensor - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly iso?: PackageDownloadInfo[]; - /** - * Contains all OVF (virtual machine) full versions for the sensor - */ - ovf?: PackageDownloadsSensorFullOvf; -} - -/** - * Contains all Sensor binary downloads - */ -export interface PackageDownloadsSensor { - /** - * Contains full package downloads - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly full?: PackageDownloadsSensorFull; - /** - * Sensor upgrade package downloads (on existing installations) - */ - upgrade?: UpgradePackageDownloadInfo[]; -} - -/** - * Contains all OVF (virtual machine) full versions of the Central Manager - */ -export interface PackageDownloadsCentralManagerFullOvf { - /** - * The Enterprise package type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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[]; -} - -/** - * Contains full package downloads - */ -export interface PackageDownloadsCentralManagerFull { - /** - * 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 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; -} - -/** - * All downloads for Central Manager - */ -export interface PackageDownloadsCentralManager { - /** - * Contains full package downloads - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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[]; -} - -/** - * Information about package downloads - */ -export interface PackageDownloads { - /** - * Contains all Sensor binary downloads - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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[]; -} - -/** - * IoT sensor model - */ -export interface IotSensorsModel extends Resource { - /** - * Last connectivity time of the IoT sensor - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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; -} - -/** - * List of IoT sensors - */ -export interface IotSensorsList { - /** - * List data - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: IotSensorsModel[]; -} - -/** - * Reset password input. - */ -export interface ResetPasswordInput { - /** - * The appliance id of the sensor. - */ - applianceId?: string; -} - -/** - * IP Address information - */ -export interface IpAddress { - /** - * IPV4 address - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly v4Address?: string; - /** - * Detection time of the ip address. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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; -} - -/** - * MAC Address information - */ -export interface MacAddress { - /** - * MAC address - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - 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; -} - -/** - * Network interface - */ -export interface NetworkInterface { - ipAddress?: IpAddress; - macAddress?: MacAddress; - /** - * List of device vlans. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vlans?: string[]; -} - -/** - * Protocol data - */ -export interface Protocol1 { - /** - * Protocol name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * list of protocol identifiers. - */ - identifiers?: string; -} - -/** - * Firmware information - */ -export interface Firmware { - /** - * 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 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; -} - -/** - * Sensor data - */ -export interface Sensor { - /** - * Sensor name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Zone Name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly zone?: string; -} - -/** - * Site data - */ -export interface Site { - /** - * Site display name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; -} - -/** - * Device model - */ -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', 'Evaluation', 'Purchased' - * @readonly - * @enum {string} - */ -export type OnboardingKind = 'Default' | 'MigratedToAzure' | 'Evaluation' | 'Purchased'; - -/** - * 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; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DeviceSecurityGroup; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DeviceSecurityGroupList; - }; -}; - -/** - * Contains response data for the listBySubscription operation. - */ -export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionsList; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionModel; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionModel; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionModel; - }; -}; - -/** - * Contains response data for the listBySubscriptionNext operation. - */ -export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionsList; - }; -}; - -/** - * 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; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecurityAggregatedAlert; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecurityAggregatedAlertList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecurityAggregatedRecommendation; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecurityAggregatedRecommendationList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecurityAggregatedRecommendationList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type LocationsListResponse = AscLocationList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AscLocationList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type LocationsGetResponse = AscLocation & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AscLocation; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type LocationsListNextResponse = AscLocationList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AscLocationList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type OperationsListResponse = OperationList & { - /** - * 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: OperationList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type OperationsListNextResponse = OperationList & { - /** - * 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: OperationList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type TasksListResponse = SecurityTaskList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SecurityTaskList; - }; -}; - -/** - * Contains response data for the listByHomeRegion operation. - */ -export type TasksListByHomeRegionResponse = SecurityTaskList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SecurityTaskList; - }; -}; - -/** - * Contains response data for the getSubscriptionLevelTask operation. - */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { - /** - * 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: SecurityTask; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type TasksListByResourceGroupResponse = SecurityTaskList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SecurityTaskList; - }; -}; - -/** - * Contains response data for the getResourceGroupLevelTask operation. - */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { - /** - * 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: SecurityTask; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -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; - }; -}; - -/** - * Contains response data for the listByHomeRegionNext operation. - */ -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; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -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; - }; -}; - -/** - * Contains response data for the list operation. - */ -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; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { - /** - * 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: AutoProvisioningSetting; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { - /** - * 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: AutoProvisioningSetting; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type AutoProvisioningSettingsListNextResponse = 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; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type CompliancesListResponse = ComplianceList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComplianceList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type CompliancesGetResponse = Compliance & { - /** - * 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: Compliance; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type CompliancesListNextResponse = ComplianceList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComplianceList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { - /** - * 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; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -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; - }; -}; - -/** - * Contains response data for the list operation. - */ -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; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -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; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SecurityContactsListResponse = 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; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SecurityContactsGetResponse = SecurityContact & { - /** - * 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: SecurityContact; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type SecurityContactsCreateResponse = SecurityContact & { - /** - * 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: SecurityContact; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type SecurityContactsUpdateResponse = SecurityContact & { - /** - * 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: SecurityContact; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -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; - }; -}; - -/** - * Contains response data for the list operation. - */ -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; - }; -}; - -/** - * Contains response data for the get operation. - */ -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 create operation. - */ -export type WorkspaceSettingsCreateResponse = 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 update operation. - */ -export type WorkspaceSettingsUpdateResponse = 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 listNext operation. - */ -export type WorkspaceSettingsListNextResponse = 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; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { - /** - * 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: RegulatoryComplianceStandardList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { - /** - * 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: RegulatoryComplianceStandard; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { - /** - * 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: RegulatoryComplianceStandardList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { - /** - * 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: RegulatoryComplianceControlList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { - /** - * 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: RegulatoryComplianceControl; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { - /** - * 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: RegulatoryComplianceControlList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { - /** - * 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: RegulatoryComplianceAssessmentList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { - /** - * 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: RegulatoryComplianceAssessment; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { - /** - * 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: RegulatoryComplianceAssessmentList; - }; -}; - -/** - * Contains response data for the listAll operation. - */ -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. - */ - _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 get operation. - */ -export type SubAssessmentsGetResponse = SecuritySubAssessment & { - /** - * 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: SecuritySubAssessment; - }; -}; - -/** - * Contains response data for the listAllNext operation. - */ -export type SubAssessmentsListAllNextResponse = 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 listNext operation. - */ -export type SubAssessmentsListNextResponse = 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 AutomationsListResponse = AutomationList & { - /** - * 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: AutomationList; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type AutomationsListByResourceGroupResponse = AutomationList & { - /** - * 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: AutomationList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AutomationsGetResponse = Automation & { - /** - * 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: Automation; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type AutomationsCreateOrUpdateResponse = Automation & { - /** - * 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: Automation; - }; -}; - -/** - * Contains response data for the validate operation. - */ -export type AutomationsValidateResponse = AutomationValidationStatus & { - /** - * 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: AutomationValidationStatus; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type AutomationsListNextResponse = AutomationList & { - /** - * 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: AutomationList; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type AutomationsListByResourceGroupNextResponse = AutomationList & { - /** - * 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: AutomationList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList & { - /** - * 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: AlertsSuppressionRulesList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule & { - /** - * 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: AlertsSuppressionRule; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule & { - /** - * 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: AlertsSuppressionRule; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList & { - /** - * 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: AlertsSuppressionRulesList; - }; -}; - -/** - * Contains response data for the listByExtendedResource operation. - */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList & { - /** - * 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: ServerVulnerabilityAssessmentsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment & { - /** - * 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: ServerVulnerabilityAssessment; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment & { - /** - * 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: ServerVulnerabilityAssessment; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { - /** - * 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: SecurityAssessmentMetadataList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { - /** - * 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: SecurityAssessmentMetadata; - }; -}; - -/** - * Contains response data for the listBySubscription operation. - */ -export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataList & { - /** - * 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: SecurityAssessmentMetadataList; - }; -}; - -/** - * Contains response data for the getInSubscription operation. - */ -export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadata & { - /** - * 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: SecurityAssessmentMetadata; - }; -}; - -/** - * Contains response data for the createInSubscription operation. - */ -export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadata & { - /** - * 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: SecurityAssessmentMetadata; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { - /** - * 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: SecurityAssessmentMetadataList; - }; -}; - -/** - * Contains response data for the listBySubscriptionNext operation. - */ -export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataList & { - /** - * 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: SecurityAssessmentMetadataList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AssessmentsListResponse = SecurityAssessmentList & { - /** - * 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: SecurityAssessmentList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AssessmentsGetResponse = SecurityAssessment & { - /** - * 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: SecurityAssessment; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessment & { - /** - * 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: SecurityAssessment; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type AssessmentsListNextResponse = SecurityAssessmentList & { - /** - * 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: SecurityAssessmentList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups & { - /** - * 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: AdaptiveApplicationControlGroups; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup & { - /** - * 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: AdaptiveApplicationControlGroup; - }; -}; - -/** - * Contains response data for the put operation. - */ -export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup & { - /** - * 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: AdaptiveApplicationControlGroup; - }; -}; - -/** - * Contains response data for the listByExtendedResource operation. - */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { - /** - * 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: AdaptiveNetworkHardeningsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { - /** - * 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: AdaptiveNetworkHardening; - }; -}; - -/** - * Contains response data for the listByExtendedResourceNext operation. - */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { - /** - * 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: AdaptiveNetworkHardeningsList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AllowedConnectionsListResponse = AllowedConnectionsList & { - /** - * 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: AllowedConnectionsList; - }; -}; - -/** - * Contains response data for the listByHomeRegion operation. - */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { - /** - * 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: AllowedConnectionsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { - /** - * 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: AllowedConnectionsResource; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { - /** - * 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: AllowedConnectionsList; - }; -}; - -/** - * Contains response data for the listByHomeRegionNext operation. - */ -export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { - /** - * 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: AllowedConnectionsList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type TopologyListResponse = TopologyList & { - /** - * 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: TopologyList; - }; -}; - -/** - * Contains response data for the listByHomeRegion operation. - */ -export type TopologyListByHomeRegionResponse = TopologyList & { - /** - * 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: TopologyList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type TopologyGetResponse = TopologyResource & { - /** - * 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: TopologyResource; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type TopologyListNextResponse = TopologyList & { - /** - * 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: TopologyList; - }; -}; - -/** - * Contains response data for the listByHomeRegionNext operation. - */ -export type TopologyListByHomeRegionNextResponse = TopologyList & { - /** - * 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: TopologyList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the listByRegion operation. - */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the listByResourceGroupAndRegion operation. - */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { - /** - * 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: JitNetworkAccessPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { - /** - * 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: JitNetworkAccessPolicy; - }; -}; - -/** - * Contains response data for the initiate operation. - */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { - /** - * 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: JitNetworkAccessRequest; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the listByRegionNext operation. - */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the listByResourceGroupAndRegionNext operation. - */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { - /** - * 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: JitNetworkAccessPoliciesList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { - /** - * 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: DiscoveredSecuritySolutionList; - }; -}; - -/** - * Contains response data for the listByHomeRegion operation. - */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { - /** - * 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: DiscoveredSecuritySolutionList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { - /** - * 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: DiscoveredSecuritySolution; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { - /** - * 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: DiscoveredSecuritySolutionList; - }; -}; - -/** - * Contains response data for the listByHomeRegionNext operation. - */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { - /** - * 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: DiscoveredSecuritySolutionList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList & { - /** - * 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: SecuritySolutionsReferenceDataList; - }; -}; - -/** - * Contains response data for the listByHomeRegion operation. - */ -export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList & { - /** - * 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: SecuritySolutionsReferenceDataList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { - /** - * 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: ExternalSecuritySolutionList; - }; -}; - -/** - * Contains response data for the listByHomeRegion operation. - */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { - /** - * 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: ExternalSecuritySolutionList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { - /** - * 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: ExternalSecuritySolutionUnion; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { - /** - * 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: ExternalSecuritySolutionList; - }; -}; - -/** - * Contains response data for the listByHomeRegionNext operation. - */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { - /** - * 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: ExternalSecuritySolutionList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SecureScoresListResponse = SecureScoresList & { - /** - * 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: SecureScoresList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SecureScoresGetResponse = SecureScoreItem & { - /** - * 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: SecureScoreItem; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type SecureScoresListNextResponse = SecureScoresList & { - /** - * 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: SecureScoresList; - }; -}; - -/** - * Contains response data for the listBySecureScore operation. - */ -export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList & { - /** - * 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: SecureScoreControlList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SecureScoreControlsListResponse = SecureScoreControlList & { - /** - * 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: SecureScoreControlList; - }; -}; - -/** - * Contains response data for the listBySecureScoreNext operation. - */ -export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList & { - /** - * 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: SecureScoreControlList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList & { - /** - * 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: SecureScoreControlList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList & { - /** - * 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: SecureScoreControlDefinitionList; - }; -}; - -/** - * Contains response data for the listBySubscription operation. - */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList & { - /** - * 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: SecureScoreControlDefinitionList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList & { - /** - * 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: SecureScoreControlDefinitionList; - }; -}; - -/** - * Contains response data for the listBySubscriptionNext operation. - */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList & { - /** - * 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: SecureScoreControlDefinitionList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SecuritySolutionsListResponse = SecuritySolutionList & { - /** - * 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: SecuritySolutionList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SecuritySolutionsGetResponse = SecuritySolution & { - /** - * 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: SecuritySolution; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type SecuritySolutionsListNextResponse = SecuritySolutionList & { - /** - * 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: SecuritySolutionList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ConnectorsListResponse = ConnectorSettingList & { - /** - * 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: ConnectorSettingList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ConnectorsGetResponse = ConnectorSetting & { - /** - * 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: ConnectorSetting; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ConnectorsCreateOrUpdateResponse = ConnectorSetting & { - /** - * 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: ConnectorSetting; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ConnectorsListNextResponse = ConnectorSettingList & { - /** - * 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: ConnectorSettingList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SqlVulnerabilityAssessmentScansGetResponse = Scan & { - /** - * 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: Scan; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SqlVulnerabilityAssessmentScansListResponse = Scans & { - /** - * 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: Scans; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult & { - /** - * 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: ScanResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults & { - /** - * 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: ScanResults; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults & { - /** - * 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: RuleResults; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults & { - /** - * 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: RuleResults; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults & { - /** - * 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: RulesResults; - }; -}; - -/** - * Contains response data for the add operation. - */ -export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults & { - /** - * 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: RulesResults; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IotDefenderSettingsListResponse = IotDefenderSettingsList & { - /** - * 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: IotDefenderSettingsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotDefenderSettingsGetResponse = IotDefenderSettingsModel & { - /** - * 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: IotDefenderSettingsModel; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type IotDefenderSettingsCreateOrUpdateResponse = IotDefenderSettingsModel & { - /** - * 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: IotDefenderSettingsModel; - }; -}; - -/** - * Contains response data for the packageDownloadsMethod operation. - */ -export type IotDefenderSettingsPackageDownloadsMethodResponse = PackageDownloads & { - /** - * 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: 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 IotSensorsListResponse = IotSensorsList & { - /** - * 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: IotSensorsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotSensorsGetResponse = IotSensorsModel & { - /** - * 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: IotSensorsModel; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type IotSensorsCreateOrUpdateResponse = IotSensorsModel & { - /** - * 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: IotSensorsModel; - }; -}; - -/** - * Contains response data for the downloadActivation operation. - */ -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; -}; - -/** - * 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 DevicesForSubscriptionListResponse = DeviceList & { - /** - * 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: DeviceList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type DevicesForSubscriptionListNextResponse = DeviceList & { - /** - * 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: DeviceList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type DevicesForHubListResponse = DeviceList & { - /** - * 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: DeviceList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type DevicesForHubListNextResponse = DeviceList & { - /** - * 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: DeviceList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type DeviceGetResponse = Device & { - /** - * 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: Device; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type OnPremiseIotSensorsListResponse = OnPremiseIotSensorsList & { - /** - * 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: OnPremiseIotSensorsList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type OnPremiseIotSensorsGetResponse = OnPremiseIotSensor & { - /** - * 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: OnPremiseIotSensor; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type OnPremiseIotSensorsCreateOrUpdateResponse = OnPremiseIotSensor & { - /** - * 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: OnPremiseIotSensor; - }; -}; - -/** - * Contains response data for the downloadActivation operation. - */ -export type OnPremiseIotSensorsDownloadActivationResponse = { - /** - * BROWSER ONLY - * - * The response body as a browser Blob. - * Always undefined in node.js. - */ - blobBody?: Promise; - - /** - * NODEJS ONLY - * - * The response body as a node.js Readable stream. - * Always undefined in the browser. - */ - readableStreamBody?: NodeJS.ReadableStream; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse; -}; - -/** - * Contains response data for the downloadResetPassword operation. - */ -export type OnPremiseIotSensorsDownloadResetPasswordResponse = { - /** - * BROWSER ONLY - * - * The response body as a browser Blob. - * Always undefined in node.js. - */ - blobBody?: Promise; - - /** - * NODEJS ONLY - * - * The response body as a node.js Readable stream. - * Always undefined in the browser. - */ - readableStreamBody?: NodeJS.ReadableStream; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse; -}; - -/** - * Contains response data for the list operation. - */ -export type IotSitesListResponse = IotSitesList & { - /** - * 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: IotSitesList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotSitesGetResponse = IotSitesModel & { - /** - * 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: IotSitesModel; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type IotSitesCreateOrUpdateResponse = IotSitesModel & { - /** - * 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: IotSitesModel; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IotAlertsListResponse = IotAlertListModel & { - /** - * 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: IotAlertListModel; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotAlertsGetResponse = IotAlertModel & { - /** - * 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: IotAlertModel; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type IotAlertsListNextResponse = IotAlertListModel & { - /** - * 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: IotAlertListModel; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IotAlertTypesListResponse = IotAlertTypeList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotAlertTypeList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotAlertTypesGetResponse = IotAlertType & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotAlertType; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IotRecommendationsListResponse = IotRecommendationListModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotRecommendationListModel; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotRecommendationsGetResponse = IotRecommendationModel & { - /** - * 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: IotRecommendationModel; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type IotRecommendationsListNextResponse = IotRecommendationListModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IotRecommendationListModel; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IotRecommendationTypesListResponse = IotRecommendationTypeList & { - /** - * 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: IotRecommendationTypeList; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type IotRecommendationTypesGetResponse = IotRecommendationType & { - /** - * 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: IotRecommendationType; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AlertsListResponse = AlertList & { - /** - * 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: AlertList; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type AlertsListByResourceGroupResponse = AlertList & { - /** - * 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: AlertList; - }; -}; + * 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; +} /** - * Contains response data for the listSubscriptionLevelByRegion operation. + * A list of key value pairs that describe the resource. */ -export type AlertsListSubscriptionLevelByRegionResponse = AlertList & { +export interface Tags { /** - * The underlying HTTP response. + * A list of key value pairs that describe the resource. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AlertList; - }; -}; + tags?: { [propertyName: string]: string }; +} /** - * Contains response data for the listResourceGroupLevelByRegion operation. + * Entity tag is used for comparing two or more entities from the same requested resource. */ -export type AlertsListResourceGroupLevelByRegionResponse = AlertList & { +export interface ETag { /** - * The underlying HTTP response. + * Entity tag is used for comparing two or more entities from the same requested resource. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AlertList; - }; -}; + etag?: string; +} /** - * Contains response data for the getSubscriptionLevel operation. + * Describes an Azure resource with kind */ -export type AlertsGetSubscriptionLevelResponse = Alert & { +export interface Kind { /** - * The underlying HTTP response. + * Kind of the resource */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Alert; - }; -}; + kind?: string; +} /** - * Contains response data for the getResourceGroupLevel operation. + * Describes an Azure resource with location */ -export type AlertsGetResourceGroupLevelResponse = Alert & { +export interface AzureTrackedResourceLocation { /** - * The underlying HTTP response. + * Location where the resource is stored */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Alert; - }; -}; + location?: string; +} /** - * Contains response data for the listNext operation. + * Describes an Azure resource. */ -export type AlertsListNextResponse = AlertList & { +export interface Resource extends BaseResource { /** - * The underlying HTTP response. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + 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; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: AlertList; - }; -}; +/** + * The ASC location of the subscription is in the "name" field + */ +export interface AscLocation extends Resource { + properties?: any; +} /** - * Contains response data for the listByResourceGroupNext operation. + * The resource management error additional info. */ -export type AlertsListByResourceGroupNextResponse = AlertList & { +export interface ErrorAdditionalInfo { /** - * The underlying HTTP response. + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AlertList; - }; -}; + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} /** - * Contains response data for the listSubscriptionLevelByRegionNext operation. + * describe the properties of a of a security standard object reference */ -export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList & { +export interface AssignedStandardItem { /** - * The underlying HTTP response. + * full resourceId of the Microsoft.Security/standard object */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AlertList; - }; -}; + id?: string; +} /** - * Contains response data for the listResourceGroupLevelByRegionNext operation. + * describe the properties of a security assessment object reference (by key) */ -export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList & { +export interface AssignedComponentItem { /** - * The underlying HTTP response. + * unique key to a security assessment object */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + key?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: AlertList; - }; -}; +/** + * Additional data about the assignment + */ +export interface AssignmentPropertiesAdditionalData { + /** + * Exemption category of this assignment + */ + exemptionCategory?: string; +} /** - * Contains response data for the list operation. + * Security Assignment on a resource group over a given scope */ -export type SettingsListResponse = SettingsList & { +export interface Assignment extends TrackedResource { /** - * The underlying HTTP response. + * display name of the standardAssignment */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + displayName?: string; + /** + * description of the standardAssignment + */ + description?: string; + /** + * Standard item with key as applied to this standard assignment over the given scope + */ + assignedStandard?: AssignedStandardItem; + /** + * Component item with key as applied to this standard assignment over the given scope + */ + assignedComponent?: AssignedComponentItem; + /** + * Scope to which the standardAssignment applies - can be a subscription path or a resource group + * under that subscription + */ + scope?: string; + /** + * expected effect of this assignment (Disable/Exempt/etc) + */ + effect?: string; + /** + * Expiration date of this assignment as a full ISO date + */ + expiresOn?: Date; + /** + * Additional data about the assignment + */ + additionalData?: AssignmentPropertiesAdditionalData; + /** + * The assignment metadata. Metadata is an open ended object and is typically a collection of key + * value pairs. + */ + metadata?: any; + /** + * 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; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SettingsList; - }; -}; +/** + * An interface representing SecurityCenterOptions. + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** - * Contains response data for the get operation. + * @interface + * Page of a Standard list + * @extends Array */ -export type SettingsGetResponse = SettingUnion & { +export interface StandardList extends Array { /** - * The underlying HTTP response. + * The URI to fetch the next page + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SettingUnion; - }; -}; + readonly nextLink?: string; +} /** - * Contains response data for the update operation. + * @interface + * Page of a standard assignment list + * @extends Array */ -export type SettingsUpdateResponse = SettingUnion & { +export interface AssignmentList extends Array { /** - * The underlying HTTP response. + * The URI to fetch the next page + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; + readonly nextLink?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SettingUnion; - }; -}; +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** - * Contains response data for the listNext operation. + * Contains response data for the listBySubscription operation. */ -export type SettingsListNextResponse = SettingsList & { +export type StandardsListBySubscriptionResponse = StandardList & { /** * The underlying HTTP response. */ @@ -11846,14 +343,14 @@ export type SettingsListNextResponse = SettingsList & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: StandardList; }; }; /** * Contains response data for the list operation. */ -export type IngestionSettingsListResponse = IngestionSettingList & { +export type StandardsListResponse = StandardList & { /** * The underlying HTTP response. */ @@ -11866,14 +363,14 @@ export type IngestionSettingsListResponse = IngestionSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: IngestionSettingList; + parsedBody: StandardList; }; }; /** * Contains response data for the get operation. */ -export type IngestionSettingsGetResponse = IngestionSetting & { +export type StandardsGetResponse = Standard & { /** * The underlying HTTP response. */ @@ -11886,14 +383,14 @@ export type IngestionSettingsGetResponse = IngestionSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: IngestionSetting; + parsedBody: Standard; }; }; /** - * Contains response data for the create operation. + * Contains response data for the createOrUpdate operation. */ -export type IngestionSettingsCreateResponse = IngestionSetting & { +export type StandardsCreateOrUpdateResponse = Standard & { /** * The underlying HTTP response. */ @@ -11906,14 +403,14 @@ export type IngestionSettingsCreateResponse = IngestionSetting & { /** * The response body as parsed JSON or XML */ - parsedBody: IngestionSetting; + parsedBody: Standard; }; }; /** - * Contains response data for the listTokens operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type IngestionSettingsListTokensResponse = IngestionSettingToken & { +export type StandardsListBySubscriptionNextResponse = StandardList & { /** * The underlying HTTP response. */ @@ -11926,14 +423,14 @@ export type IngestionSettingsListTokensResponse = IngestionSettingToken & { /** * The response body as parsed JSON or XML */ - parsedBody: IngestionSettingToken; + parsedBody: StandardList; }; }; /** - * Contains response data for the listConnectionStrings operation. + * Contains response data for the listNext operation. */ -export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings & { +export type StandardsListNextResponse = StandardList & { /** * The underlying HTTP response. */ @@ -11946,14 +443,14 @@ export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings & /** * The response body as parsed JSON or XML */ - parsedBody: ConnectionStrings; + parsedBody: StandardList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listBySubscription operation. */ -export type IngestionSettingsListNextResponse = IngestionSettingList & { +export type AssignmentsListBySubscriptionResponse = AssignmentList & { /** * The underlying HTTP response. */ @@ -11966,14 +463,14 @@ export type IngestionSettingsListNextResponse = IngestionSettingList & { /** * The response body as parsed JSON or XML */ - parsedBody: IngestionSettingList; + parsedBody: AssignmentList; }; }; /** - * Contains response data for the listByExtendedResource operation. + * Contains response data for the list operation. */ -export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList & { +export type AssignmentsListResponse = AssignmentList & { /** * The underlying HTTP response. */ @@ -11986,14 +483,14 @@ export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList & /** * The response body as parsed JSON or XML */ - parsedBody: SoftwaresList; + parsedBody: AssignmentList; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the get operation. */ -export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList & { +export type AssignmentsGetResponse = Assignment & { /** * The underlying HTTP response. */ @@ -12006,14 +503,14 @@ export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList & { /** * The response body as parsed JSON or XML */ - parsedBody: SoftwaresList; + parsedBody: Assignment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type SoftwareInventoriesGetResponse = Software & { +export type AssignmentsCreateOrUpdateResponse = Assignment & { /** * The underlying HTTP response. */ @@ -12026,14 +523,14 @@ export type SoftwareInventoriesGetResponse = Software & { /** * The response body as parsed JSON or XML */ - parsedBody: Software; + parsedBody: Assignment; }; }; /** - * Contains response data for the listByExtendedResourceNext operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList & { +export type AssignmentsListBySubscriptionNextResponse = AssignmentList & { /** * The underlying HTTP response. */ @@ -12046,14 +543,14 @@ export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresLis /** * The response body as parsed JSON or XML */ - parsedBody: SoftwaresList; + parsedBody: AssignmentList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listNext operation. */ -export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList & { +export type AssignmentsListNextResponse = AssignmentList & { /** * The underlying HTTP response. */ @@ -12066,6 +563,6 @@ export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList & /** * The response body as parsed JSON or XML */ - parsedBody: SoftwaresList; + parsedBody: AssignmentList; }; }; diff --git a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts deleted file mode 100644 index 311426e1e10c..000000000000 --- a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/ingestionSettingsMappers.ts b/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts deleted file mode 100644 index 3782812f79e1..000000000000 --- a/sdk/security/arm-security/src/models/ingestionSettingsMappers.ts +++ /dev/null @@ -1,147 +0,0 @@ -/* - * 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 deleted file mode 100644 index 062f7953b60c..000000000000 --- a/sdk/security/arm-security/src/models/iotAlertTypesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index c05b8763c45d..000000000000 --- a/sdk/security/arm-security/src/models/iotAlertsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index 4170abcc4b17..000000000000 --- a/sdk/security/arm-security/src/models/iotDefenderSettingsMappers.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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 deleted file mode 100644 index 89454e2f7d7f..000000000000 --- a/sdk/security/arm-security/src/models/iotRecommendationTypesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index ea269f0ce54d..000000000000 --- a/sdk/security/arm-security/src/models/iotRecommendationsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index b0a2893e6450..000000000000 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionAnalyticsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/iotSecuritySolutionMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts deleted file mode 100644 index 674dd3d26dbe..000000000000 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionMappers.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* - * 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, - AdditionalWorkspacesProperties, - CloudError, - IoTSecuritySolutionModel, - IoTSecuritySolutionsList, - RecommendationConfigurationProperties, - SystemData, - TagsResource, - UpdateIotSecuritySolutionData, - UserDefinedResourcesProperties -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts b/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts deleted file mode 100644 index edc31da8f968..000000000000 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsRecommendationMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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, - IoTSecurityAggregatedRecommendation, - IoTSecurityAggregatedRecommendationList -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/iotSensorsMappers.ts b/sdk/security/arm-security/src/models/iotSensorsMappers.ts deleted file mode 100644 index 5376ebbb2d56..000000000000 --- a/sdk/security/arm-security/src/models/iotSensorsMappers.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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 deleted file mode 100644 index a4cbe1be32f2..000000000000 --- a/sdk/security/arm-security/src/models/iotSitesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index b0c4e9907c48..000000000000 --- a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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, - JitNetworkAccessPoliciesList, - JitNetworkAccessPolicy, - JitNetworkAccessPolicyInitiatePort, - JitNetworkAccessPolicyInitiateRequest, - JitNetworkAccessPolicyInitiateVirtualMachine, - JitNetworkAccessPolicyVirtualMachine, - JitNetworkAccessPortRule, - JitNetworkAccessRequest, - JitNetworkAccessRequestPort, - JitNetworkAccessRequestVirtualMachine -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/locationsMappers.ts b/sdk/security/arm-security/src/models/locationsMappers.ts deleted file mode 100644 index 9182a818b048..000000000000 --- a/sdk/security/arm-security/src/models/locationsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - 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, - 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/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 945c8529f4af..c082d25ec78e 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -12,29 +12,14 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const StandardComponentProperties: msRest.CompositeMapper = { + serializedName: "StandardComponentProperties", type: { name: "Composite", - className: "Resource", + className: "StandardComponentProperties", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", + key: { + serializedName: "key", type: { name: "String" } @@ -43,35 +28,46 @@ export const Resource: msRest.CompositeMapper = { } }; -export const ComplianceResult: msRest.CompositeMapper = { - serializedName: "ComplianceResult", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "ComplianceResult", + className: "SystemData", modelProperties: { - ...Resource.type.modelProperties, - resourceStatus: { - readOnly: true, - serializedName: "properties.resourceStatus", + createdBy: { + serializedName: "createdBy", type: { name: "String" } - } - } - } -}; - -export const AscLocation: msRest.CompositeMapper = { - serializedName: "AscLocation", - type: { - name: "Composite", - className: "AscLocation", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + createdByType: { + serializedName: "createdByType", type: { - name: "Object" + 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" } } } @@ -138,49 +134,57 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const AzureTrackedResourceLocation: msRest.CompositeMapper = { - serializedName: "AzureTrackedResourceLocation", +export const Standard: msRest.CompositeMapper = { + serializedName: "Standard", type: { name: "Composite", - className: "AzureTrackedResourceLocation", + className: "Standard", modelProperties: { - location: { - serializedName: "location", + ...TrackedResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", type: { name: "String" } - } - } - } -}; - -export const Kind: msRest.CompositeMapper = { - serializedName: "Kind", - type: { - name: "Composite", - className: "Kind", - modelProperties: { - kind: { - serializedName: "kind", + }, + standardType: { + readOnly: true, + serializedName: "properties.standardType", type: { name: "String" } - } - } - } -}; - -export const ETag: msRest.CompositeMapper = { - serializedName: "ETag", - type: { - name: "Composite", - className: "ETag", - modelProperties: { - etag: { - serializedName: "etag", + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + category: { + serializedName: "properties.category", type: { name: "String" } + }, + components: { + serializedName: "properties.components", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StandardComponentProperties" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -207,130 +211,77 @@ export const Tags: msRest.CompositeMapper = { } }; -export const ErrorAdditionalInfo: msRest.CompositeMapper = { - serializedName: "ErrorAdditionalInfo", +export const ETag: msRest.CompositeMapper = { + serializedName: "ETag", type: { name: "Composite", - className: "ErrorAdditionalInfo", + className: "ETag", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + etag: { + serializedName: "etag", type: { name: "String" } - }, - info: { - readOnly: true, - serializedName: "info", - type: { - name: "Object" - } } } } }; -export const Pricing: msRest.CompositeMapper = { - serializedName: "Pricing", +export const Kind: msRest.CompositeMapper = { + serializedName: "Kind", type: { name: "Composite", - className: "Pricing", + className: "Kind", modelProperties: { - ...Resource.type.modelProperties, - pricingTier: { - required: true, - serializedName: "properties.pricingTier", + kind: { + serializedName: "kind", type: { name: "String" } - }, - freeTrialRemainingTime: { - readOnly: true, - serializedName: "properties.freeTrialRemainingTime", - type: { - name: "TimeSpan" - } } } } }; -export const PricingList: msRest.CompositeMapper = { - serializedName: "PricingList", - type: { - name: "Composite", - className: "PricingList", - modelProperties: { - value: { - required: true, - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Pricing" - } - } - } - } - } - } -}; - -export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { - serializedName: "AdvancedThreatProtectionSetting", +export const AzureTrackedResourceLocation: msRest.CompositeMapper = { + serializedName: "AzureTrackedResourceLocation", type: { name: "Composite", - className: "AdvancedThreatProtectionSetting", + className: "AzureTrackedResourceLocation", modelProperties: { - ...Resource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + location: { + serializedName: "location", type: { - name: "Boolean" + name: "String" } } } } }; -export const CustomAlertRule: msRest.CompositeMapper = { - serializedName: "CustomAlertRule", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType" - }, - uberParent: "CustomAlertRule", - className: "CustomAlertRule", + className: "Resource", modelProperties: { - displayName: { + id: { readOnly: true, - serializedName: "displayName", + serializedName: "id", type: { name: "String" } }, - description: { + name: { readOnly: true, - serializedName: "description", + serializedName: "name", type: { name: "String" } }, - isEnabled: { - required: true, - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - ruleType: { - required: true, - serializedName: "ruleType", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } @@ -339,65 +290,55 @@ export const CustomAlertRule: msRest.CompositeMapper = { } }; -export const ThresholdCustomAlertRule: msRest.CompositeMapper = { - serializedName: "ThresholdCustomAlertRule", +export const AscLocation: msRest.CompositeMapper = { + serializedName: "AscLocation", type: { name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ThresholdCustomAlertRule", + className: "AscLocation", modelProperties: { - ...CustomAlertRule.type.modelProperties, - minThreshold: { - required: true, - serializedName: "minThreshold", - type: { - name: "Number" - } - }, - maxThreshold: { - required: true, - serializedName: "maxThreshold", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Number" + name: "Object" } } } } }; -export const TimeWindowCustomAlertRule: msRest.CompositeMapper = { - serializedName: "TimeWindowCustomAlertRule", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "TimeWindowCustomAlertRule", + className: "ErrorAdditionalInfo", modelProperties: { - ...ThresholdCustomAlertRule.type.modelProperties, - timeWindowSize: { - required: true, - serializedName: "timeWindowSize", + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", type: { - name: "TimeSpan" + name: "Object" } } } } }; -export const ListCustomAlertRule: msRest.CompositeMapper = { - serializedName: "ListCustomAlertRule", +export const AssignedStandardItem: msRest.CompositeMapper = { + serializedName: "AssignedStandardItem", type: { name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ListCustomAlertRule", + className: "AssignedStandardItem", modelProperties: { - ...CustomAlertRule.type.modelProperties, - valueType: { - readOnly: true, - serializedName: "valueType", + id: { + serializedName: "id", type: { name: "String" } @@ -406,9238 +347,129 @@ export const ListCustomAlertRule: msRest.CompositeMapper = { } }; -export const AllowlistCustomAlertRule: msRest.CompositeMapper = { - serializedName: "AllowlistCustomAlertRule", +export const AssignedComponentItem: msRest.CompositeMapper = { + serializedName: "AssignedComponentItem", type: { name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "AllowlistCustomAlertRule", + className: "AssignedComponentItem", modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - allowlistValues: { - required: true, - serializedName: "allowlistValues", + key: { + serializedName: "key", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DenylistCustomAlertRule: msRest.CompositeMapper = { - serializedName: "DenylistCustomAlertRule", +export const AssignmentPropertiesAdditionalData: msRest.CompositeMapper = { + serializedName: "AssignmentProperties_additionalData", type: { name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "DenylistCustomAlertRule", + className: "AssignmentPropertiesAdditionalData", modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - denylistValues: { - required: true, - serializedName: "denylistValues", + exemptionCategory: { + serializedName: "exemptionCategory", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const DeviceSecurityGroup: msRest.CompositeMapper = { - serializedName: "DeviceSecurityGroup", +export const Assignment: msRest.CompositeMapper = { + serializedName: "Assignment", type: { name: "Composite", - className: "DeviceSecurityGroup", + className: "Assignment", modelProperties: { - ...Resource.type.modelProperties, - thresholdRules: { - serializedName: "properties.thresholdRules", + ...TrackedResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ThresholdCustomAlertRule" - } - } + name: "String" } }, - 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 ConnectionFromIpNotAllowed: msRest.CompositeMapper = { - serializedName: "ConnectionFromIpNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "ConnectionFromIpNotAllowed", - modelProperties: { - ...AllowlistCustomAlertRule.type.modelProperties - } - } -}; - -export const LocalUserNotAllowed: msRest.CompositeMapper = { - serializedName: "LocalUserNotAllowed", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "LocalUserNotAllowed", - modelProperties: { - ...AllowlistCustomAlertRule.type.modelProperties - } - } -}; - -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", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const MqttC2DRejectedMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "MqttC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "MqttC2DRejectedMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const HttpC2DRejectedMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "HttpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "HttpC2DRejectedMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const AmqpD2CMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "AmqpD2CMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "AmqpD2CMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const MqttD2CMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "MqttD2CMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "MqttD2CMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const HttpD2CMessagesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "HttpD2CMessagesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "HttpD2CMessagesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const DirectMethodInvokesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "DirectMethodInvokesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "DirectMethodInvokesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const FailedLocalLoginsNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "FailedLocalLoginsNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "FailedLocalLoginsNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const FileUploadsNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "FileUploadsNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "FileUploadsNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const QueuePurgesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "QueuePurgesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "QueuePurgesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const TwinUpdatesNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "TwinUpdatesNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "TwinUpdatesNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const UnauthorizedOperationsNotInAllowedRange: msRest.CompositeMapper = { - serializedName: "UnauthorizedOperationsNotInAllowedRange", - type: { - name: "Composite", - polymorphicDiscriminator: CustomAlertRule.type.polymorphicDiscriminator, - uberParent: "CustomAlertRule", - className: "UnauthorizedOperationsNotInAllowedRange", - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties - } - } -}; - -export const TagsResource: msRest.CompositeMapper = { - serializedName: "TagsResource", - type: { - name: "Composite", - className: "TagsResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -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: "SecurityAssessmentMetadata", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - policyDefinitionId: { - readOnly: true, - serializedName: "properties.policyDefinitionId", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - remediationDescription: { - serializedName: "properties.remediationDescription", - type: { - name: "String" - } - }, - categories: { - serializedName: "properties.categories", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - severity: { - required: true, - serializedName: "properties.severity", - type: { - name: "String" - } - }, - userImpact: { - serializedName: "properties.userImpact", - type: { - name: "String" - } - }, - implementationEffort: { - serializedName: "properties.implementationEffort", - type: { - name: "String" - } - }, - threats: { - serializedName: "properties.threats", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - preview: { - serializedName: "properties.preview", - type: { - name: "Boolean" - } - }, - assessmentType: { - required: true, - serializedName: "properties.assessmentType", - type: { - name: "String" - } - }, - partnerData: { - serializedName: "properties.partnerData", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" - } - } - } - } -}; - -export const AssessmentStatus: msRest.CompositeMapper = { - serializedName: "AssessmentStatus", - type: { - name: "Composite", - className: "AssessmentStatus", - modelProperties: { - code: { - required: true, - serializedName: "code", - type: { - name: "String" - } - }, - cause: { - serializedName: "cause", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; - -export const AssessmentLinks: msRest.CompositeMapper = { - serializedName: "AssessmentLinks", - type: { - name: "Composite", - className: "AssessmentLinks", - modelProperties: { - azurePortalUri: { - readOnly: true, - serializedName: "azurePortalUri", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentPartnerData", - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", - modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", - type: { - name: "String" - } - }, - secret: { - required: true, - serializedName: "secret", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityAssessment: msRest.CompositeMapper = { - serializedName: "SecurityAssessment", - type: { - name: "Composite", - className: "SecurityAssessment", - modelProperties: { - ...Resource.type.modelProperties, - resourceDetails: { - required: true, - serializedName: "properties.resourceDetails", - type: { - name: "Composite", - className: "ResourceDetails" - } - }, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - status: { - required: true, - serializedName: "properties.status", - type: { - name: "Composite", - className: "AssessmentStatus" - } - }, - additionalData: { - serializedName: "properties.additionalData", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - links: { - serializedName: "properties.links", - type: { - name: "Composite", - className: "AssessmentLinks" - } - }, - metadata: { - serializedName: "properties.metadata", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties" - } - }, - partnersData: { - serializedName: "properties.partnersData", - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData" - } - } - } - } -}; - -export const ProtectionMode: msRest.CompositeMapper = { - serializedName: "ProtectionMode", - type: { - name: "Composite", - className: "ProtectionMode", - modelProperties: { - exe: { - serializedName: "exe", - type: { - name: "String" - } - }, - msi: { - serializedName: "msi", - type: { - name: "String" - } - }, - script: { - serializedName: "script", - type: { - name: "String" - } - }, - executable: { - serializedName: "executable", - type: { - name: "String" - } - } - } - } -}; - -export const AdaptiveApplicationControlIssueSummary: msRest.CompositeMapper = { - serializedName: "AdaptiveApplicationControlIssueSummary", - type: { - name: "Composite", - className: "AdaptiveApplicationControlIssueSummary", - modelProperties: { - issue: { - serializedName: "issue", - type: { - name: "String" - } - }, - numberOfVms: { - serializedName: "numberOfVms", - type: { - name: "Number" - } - } - } - } -}; - -export const VmRecommendation: msRest.CompositeMapper = { - serializedName: "VmRecommendation", - type: { - name: "Composite", - className: "VmRecommendation", - modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - enforcementSupport: { - serializedName: "enforcementSupport", - type: { - name: "String" - } - } - } - } -}; - -export const PublisherInfo: msRest.CompositeMapper = { - serializedName: "PublisherInfo", - type: { - name: "Composite", - className: "PublisherInfo", - modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", - type: { - name: "String" - } - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const UserRecommendation: msRest.CompositeMapper = { - serializedName: "UserRecommendation", - type: { - name: "Composite", - className: "UserRecommendation", - modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String" - } - } - } - } -}; - -export const PathRecommendation: msRest.CompositeMapper = { - serializedName: "PathRecommendation", - type: { - name: "Composite", - className: "PathRecommendation", - modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - publisherInfo: { - serializedName: "publisherInfo", - type: { - name: "Composite", - className: "PublisherInfo" - } - }, - common: { - serializedName: "common", - type: { - name: "Boolean" - } - }, - userSids: { - serializedName: "userSids", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - usernames: { - serializedName: "usernames", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserRecommendation" - } - } - } - }, - fileType: { - serializedName: "fileType", - type: { - name: "String" - } - }, - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - } - } - } -}; - -export const AdaptiveApplicationControlGroup: msRest.CompositeMapper = { - serializedName: "AdaptiveApplicationControlGroup", - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroup", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - enforcementMode: { - serializedName: "properties.enforcementMode", - type: { - name: "String" - } - }, - protectionMode: { - serializedName: "properties.protectionMode", - type: { - name: "Composite", - className: "ProtectionMode" - } - }, - configurationStatus: { - readOnly: true, - serializedName: "properties.configurationStatus", - type: { - name: "String" - } - }, - recommendationStatus: { - readOnly: true, - serializedName: "properties.recommendationStatus", - type: { - name: "String" - } - }, - issues: { - readOnly: true, - serializedName: "properties.issues", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdaptiveApplicationControlIssueSummary" - } - } - } - }, - sourceSystem: { - readOnly: true, - serializedName: "properties.sourceSystem", - type: { - name: "String" - } - }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation" - } - } - } - }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PathRecommendation" - } - } - } - } - } - } -}; - -export const AdaptiveApplicationControlGroups: msRest.CompositeMapper = { - serializedName: "AdaptiveApplicationControlGroups", - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroups", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroup" - } - } - } - } - } - } -}; - -export const Location: msRest.CompositeMapper = { - serializedName: "Location", - type: { - name: "Composite", - className: "Location", - modelProperties: { - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const Rule: msRest.CompositeMapper = { - serializedName: "Rule", - type: { - name: "Composite", - className: "Rule", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - direction: { - serializedName: "direction", - type: { - name: "String" - } - }, - destinationPort: { - serializedName: "destinationPort", - type: { - name: "Number" - } - }, - protocols: { - serializedName: "protocols", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ipAddresses: { - serializedName: "ipAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { - serializedName: "EffectiveNetworkSecurityGroups", - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - modelProperties: { - networkInterface: { - serializedName: "networkInterface", - type: { - name: "String" - } - }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const AdaptiveNetworkHardening: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardening", - type: { - name: "Composite", - className: "AdaptiveNetworkHardening", - modelProperties: { - ...Resource.type.modelProperties, - rules: { - serializedName: "properties.rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule" - } - } - } - }, - rulesCalculationTime: { - serializedName: "properties.rulesCalculationTime", - type: { - name: "DateTime" - } - }, - effectiveNetworkSecurityGroups: { - serializedName: "properties.effectiveNetworkSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups" - } - } - } - } - } - } -}; - -export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardeningEnforceRequest", - type: { - name: "Composite", - className: "AdaptiveNetworkHardeningEnforceRequest", - modelProperties: { - rules: { - required: true, - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule" - } - } - } - }, - networkSecurityGroups: { - required: true, - serializedName: "networkSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ConnectedResource: msRest.CompositeMapper = { - serializedName: "ConnectedResource", - type: { - name: "Composite", - className: "ConnectedResource", - modelProperties: { - connectedResourceId: { - readOnly: true, - serializedName: "connectedResourceId", - type: { - name: "String" - } - }, - tcpPorts: { - readOnly: true, - serializedName: "tcpPorts", - type: { - name: "String" - } - }, - udpPorts: { - readOnly: true, - serializedName: "udpPorts", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectableResource: msRest.CompositeMapper = { - serializedName: "ConnectableResource", - type: { - name: "Composite", - className: "ConnectableResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - inboundConnectedResources: { - readOnly: true, - serializedName: "inboundConnectedResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource" - } - } - } - }, - outboundConnectedResources: { - readOnly: true, - serializedName: "outboundConnectedResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource" - } - } - } - } - } - } -}; - -export const AllowedConnectionsResource: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsResource", - type: { - name: "Composite", - className: "AllowedConnectionsResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - calculatedDateTime: { - readOnly: true, - serializedName: "properties.calculatedDateTime", - type: { - name: "DateTime" - } - }, - connectableResources: { - readOnly: true, - serializedName: "properties.connectableResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectableResource" - } - } - } - } - } - } -}; - -export const TopologySingleResourceParent: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceParent", - type: { - name: "Composite", - className: "TopologySingleResourceParent", - modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const TopologySingleResourceChild: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceChild", - type: { - name: "Composite", - className: "TopologySingleResourceChild", - modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const TopologySingleResource: msRest.CompositeMapper = { - serializedName: "TopologySingleResource", - type: { - name: "Composite", - className: "TopologySingleResource", - modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "severity", - type: { - name: "String" - } - }, - recommendationsExist: { - readOnly: true, - serializedName: "recommendationsExist", - type: { - name: "Boolean" - } - }, - networkZones: { - readOnly: true, - serializedName: "networkZones", - type: { - name: "String" - } - }, - topologyScore: { - readOnly: true, - serializedName: "topologyScore", - type: { - name: "Number" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - parents: { - readOnly: true, - serializedName: "parents", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceParent" - } - } - } - }, - children: { - readOnly: true, - serializedName: "children", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceChild" - } - } - } - } - } - } -}; - -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", - type: { - name: "Composite", - className: "TopologyResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - calculatedDateTime: { - readOnly: true, - serializedName: "properties.calculatedDateTime", - type: { - name: "DateTime" - } - }, - topologyResources: { - readOnly: true, - serializedName: "properties.topologyResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResource" - } - } - } - } - } - } -}; - -export const JitNetworkAccessPortRule: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPortRule", - type: { - name: "Composite", - className: "JitNetworkAccessPortRule", - modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - protocol: { - required: true, - serializedName: "protocol", - type: { - name: "String" - } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", - type: { - name: "String" - } - }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - maxRequestAccessDuration: { - required: true, - serializedName: "maxRequestAccessDuration", - type: { - name: "String" - } - } - } - } -}; - -export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPortRule" - } - } - } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - type: { - name: "String" - } - } - } - } -}; - -export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestPort", - type: { - name: "Composite", - className: "JitNetworkAccessRequestPort", - modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", - type: { - name: "String" - } - }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", - type: { - name: "DateTime" - } - }, - status: { - required: true, - serializedName: "status", - type: { - name: "String" - } - }, - statusReason: { - required: true, - serializedName: "statusReason", - type: { - name: "String" - } - }, - mappedPort: { - serializedName: "mappedPort", - type: { - name: "Number" - } - } - } - } -}; - -export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequestPort" - } - } - } - } - } - } -}; - -export const JitNetworkAccessRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequest", - type: { - name: "Composite", - className: "JitNetworkAccessRequest", - modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine" - } - } - } - }, - startTimeUtc: { - required: true, - serializedName: "startTimeUtc", - type: { - name: "DateTime" - } - }, - requestor: { - required: true, - serializedName: "requestor", - type: { - name: "String" - } - }, - justification: { - serializedName: "justification", - type: { - name: "String" - } - } - } - } -}; - -export const JitNetworkAccessPolicy: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicy", - type: { - name: "Composite", - className: "JitNetworkAccessPolicy", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - virtualMachines: { - required: true, - serializedName: "properties.virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine" - } - } - } - }, - requests: { - serializedName: "properties.requests", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequest" - } - } - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiatePort", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", - modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", - type: { - name: "String" - } - }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", - type: { - name: "DateTime" - } - } - } - } -}; - -export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort" - } - } - } - } - } - } -}; - -export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateRequest", - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", - modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine" - } - } - } - }, - justification: { - serializedName: "justification", - type: { - name: "String" - } - } - } - } -}; - -export const DiscoveredSecuritySolution: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolution", - type: { - name: "Composite", - className: "DiscoveredSecuritySolution", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", - type: { - name: "String" - } - }, - offer: { - required: true, - serializedName: "properties.offer", - type: { - name: "String" - } - }, - publisher: { - required: true, - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - sku: { - required: true, - serializedName: "properties.sku", - type: { - name: "String" - } - } - } - } -}; - -export const SecuritySolutionsReferenceData: msRest.CompositeMapper = { - serializedName: "securitySolutionsReferenceData", - type: { - name: "Composite", - className: "SecuritySolutionsReferenceData", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", - type: { - name: "String" - } - }, - alertVendorName: { - required: true, - serializedName: "properties.alertVendorName", - type: { - name: "String" - } - }, - packageInfoUrl: { - required: true, - serializedName: "properties.packageInfoUrl", - type: { - name: "String" - } - }, - productName: { - required: true, - serializedName: "properties.productName", - type: { - name: "String" - } - }, - publisher: { - required: true, - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - publisherDisplayName: { - required: true, - serializedName: "properties.publisherDisplayName", - type: { - name: "String" - } - }, - template: { - required: true, - serializedName: "properties.template", - type: { - name: "String" - } - } - } - } -}; - -export const SecuritySolutionsReferenceDataList: msRest.CompositeMapper = { - serializedName: "securitySolutionsReferenceDataList", - type: { - name: "Composite", - className: "SecuritySolutionsReferenceDataList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecuritySolutionsReferenceData" - } - } - } - } - } - } -}; - -export const ExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolution", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "ExternalSecuritySolution", - className: "ExternalSecuritySolution", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - kind: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - } - } - } -}; - -export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionProperties", - type: { - name: "Composite", - className: "ExternalSecuritySolutionProperties", - modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", - type: { - name: "String" - } - }, - deviceType: { - serializedName: "deviceType", - type: { - name: "String" - } - }, - workspace: { - serializedName: "workspace", - type: { - name: "Composite", - className: "ConnectedWorkspace" - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const CefSolutionProperties: msRest.CompositeMapper = { - serializedName: "CefSolutionProperties", - type: { - name: "Composite", - className: "CefSolutionProperties", - modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - hostname: { - serializedName: "hostname", - type: { - name: "String" - } - }, - agent: { - serializedName: "agent", - type: { - name: "String" - } - }, - lastEventReceived: { - serializedName: "lastEventReceived", - type: { - name: "String" - } - } - }, - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } -}; - -export const CefExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "CEF", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "CefExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CefSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } - } - } - } -}; - -export const AtaSolutionProperties: msRest.CompositeMapper = { - serializedName: "AtaSolutionProperties", - type: { - name: "Composite", - className: "AtaSolutionProperties", - modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - lastEventReceived: { - serializedName: "lastEventReceived", - type: { - name: "String" - } - } - }, - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } -}; - -export const AtaExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ATA", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AtaExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AtaSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties - } - } - } - } -}; - -export const ConnectedWorkspace: msRest.CompositeMapper = { - serializedName: "ConnectedWorkspace", - type: { - name: "Composite", - className: "ConnectedWorkspace", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const AadSolutionProperties: msRest.CompositeMapper = { - serializedName: "AadSolutionProperties", - type: { - name: "Composite", - className: "AadSolutionProperties", - modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", - type: { - name: "String" - } - }, - deviceType: { - serializedName: "deviceType", - type: { - name: "String" - } - }, - workspace: { - serializedName: "workspace", - type: { - name: "Composite", - className: "ConnectedWorkspace" - } - }, - connectivityState: { - serializedName: "connectivityState", - type: { - name: "String" - } - } - } - } -}; - -export const AadExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "AAD", - type: { - name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AadExternalSecuritySolution", - modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AadSolutionProperties" - } - } - } - } -}; - -export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionKind", - type: { - name: "Composite", - className: "ExternalSecuritySolutionKind1", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - } - } - } -}; - -export const AadConnectivityState1: msRest.CompositeMapper = { - serializedName: "AadConnectivityState", - type: { - name: "Composite", - className: "AadConnectivityState1", - modelProperties: { - connectivityState: { - serializedName: "connectivityState", - type: { - name: "String" - } - } - } - } -}; - -export const SecureScoreItem: msRest.CompositeMapper = { - serializedName: "SecureScoreItem", - type: { - name: "Composite", - className: "SecureScoreItem", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - max: { - readOnly: true, - serializedName: "properties.score.max", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "properties.score.current", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - percentage: { - readOnly: true, - serializedName: "properties.score.percentage", - constraints: { - InclusiveMaximum: 1, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - weight: { - readOnly: true, - serializedName: "properties.weight", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - } - } - } -}; - -export const SecureScoreControlScore: msRest.CompositeMapper = { - serializedName: "SecureScoreControlScore", - type: { - name: "Composite", - className: "SecureScoreControlScore", - modelProperties: { - max: { - readOnly: true, - serializedName: "max", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "current", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - percentage: { - readOnly: true, - serializedName: "percentage", - constraints: { - InclusiveMaximum: 1, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - } - } - } -}; - -export const SecureScoreControlDefinitionSource: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionSource", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionSource", - modelProperties: { - sourceType: { - serializedName: "sourceType", - type: { - name: "String" - } - } - } - } -}; - -export const AzureResourceLink: msRest.CompositeMapper = { - serializedName: "AzureResourceLink", - type: { - name: "Composite", - className: "AzureResourceLink", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const SecureScoreControlDefinitionItem: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDefinitionItem", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - constraints: { - MaxLength: 256 - }, - type: { - name: "String" - } - }, - maxScore: { - readOnly: true, - serializedName: "properties.maxScore", - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - source: { - readOnly: true, - serializedName: "properties.source", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionSource" - } - }, - assessmentDefinitions: { - readOnly: true, - serializedName: "properties.assessmentDefinitions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureResourceLink" - } - } - } - } - } - } -}; - -export const SecureScoreControlDetails: msRest.CompositeMapper = { - serializedName: "SecureScoreControlDetails", - type: { - name: "Composite", - className: "SecureScoreControlDetails", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - max: { - readOnly: true, - serializedName: "properties.score.max", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - current: { - readOnly: true, - serializedName: "properties.score.current", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - percentage: { - readOnly: true, - serializedName: "properties.score.percentage", - constraints: { - InclusiveMaximum: 1, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - healthyResourceCount: { - readOnly: true, - serializedName: "properties.healthyResourceCount", - type: { - name: "Number" - } - }, - unhealthyResourceCount: { - readOnly: true, - serializedName: "properties.unhealthyResourceCount", - type: { - name: "Number" - } - }, - notApplicableResourceCount: { - readOnly: true, - serializedName: "properties.notApplicableResourceCount", - type: { - name: "Number" - } - }, - weight: { - readOnly: true, - serializedName: "properties.weight", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - definition: { - serializedName: "properties.definition", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem" - } - } - } - } -}; - -export const SecuritySolution: msRest.CompositeMapper = { - serializedName: "SecuritySolution", - type: { - name: "Composite", - className: "SecuritySolution", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", - type: { - name: "String" - } - }, - provisioningState: { - required: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - template: { - required: true, - serializedName: "properties.template", - type: { - name: "String" - } - }, - protectionStatus: { - required: true, - serializedName: "properties.protectionStatus", - type: { - name: "String" - } - } - } - } -}; - -export const ProxyServerProperties: msRest.CompositeMapper = { - serializedName: "ProxyServerProperties", - type: { - name: "Composite", - className: "ProxyServerProperties", - modelProperties: { - ip: { - serializedName: "ip", - type: { - name: "String" - } - }, - port: { - serializedName: "port", - type: { - name: "String" - } - } - } - } -}; - -export const ServicePrincipalProperties: msRest.CompositeMapper = { - serializedName: "ServicePrincipalProperties", - type: { - name: "Composite", - className: "ServicePrincipalProperties", - modelProperties: { - applicationId: { - serializedName: "applicationId", - type: { - name: "String" - } - }, - secret: { - serializedName: "secret", - type: { - name: "String" - } - } - } - } -}; - -export const HybridComputeSettingsProperties: msRest.CompositeMapper = { - serializedName: "HybridComputeSettingsProperties", - type: { - name: "Composite", - className: "HybridComputeSettingsProperties", - modelProperties: { - hybridComputeProvisioningState: { - readOnly: true, - serializedName: "hybridComputeProvisioningState", - type: { - name: "String" - } - }, - autoProvision: { - required: true, - serializedName: "autoProvision", - type: { - name: "String" - } - }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String" - } - }, - region: { - serializedName: "region", - type: { - name: "String" - } - }, - proxyServer: { - serializedName: "proxyServer", - type: { - name: "Composite", - className: "ProxyServerProperties" - } - }, - servicePrincipal: { - serializedName: "servicePrincipal", - type: { - name: "Composite", - className: "ServicePrincipalProperties" - } - } - } - } -}; - -export const AuthenticationDetailsProperties: msRest.CompositeMapper = { - serializedName: "AuthenticationDetailsProperties", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "authenticationType", - clientName: "authenticationType" - }, - uberParent: "AuthenticationDetailsProperties", - className: "AuthenticationDetailsProperties", - modelProperties: { - authenticationProvisioningState: { - readOnly: true, - serializedName: "authenticationProvisioningState", - type: { - name: "String" - } - }, - grantedPermissions: { - readOnly: true, - serializedName: "grantedPermissions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - authenticationType: { - required: true, - serializedName: "authenticationType", - type: { - name: "String" - } - } - } - } -}; - -export const ConnectorSetting: msRest.CompositeMapper = { - serializedName: "ConnectorSetting", - type: { - name: "Composite", - className: "ConnectorSetting", - modelProperties: { - ...Resource.type.modelProperties, - hybridComputeSettings: { - serializedName: "properties.hybridComputeSettings", - type: { - name: "Composite", - className: "HybridComputeSettingsProperties" - } - }, - authenticationDetails: { - serializedName: "properties.authenticationDetails", - type: { - name: "Composite", - className: "AuthenticationDetailsProperties" - } - } - } - } -}; - -export const AwsCredsAuthenticationDetailsProperties: msRest.CompositeMapper = { - serializedName: "awsCreds", - type: { - name: "Composite", - polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, - uberParent: "AuthenticationDetailsProperties", - className: "AwsCredsAuthenticationDetailsProperties", - modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - accountId: { - readOnly: true, - serializedName: "accountId", - type: { - name: "String" - } - }, - awsAccessKeyId: { - required: true, - serializedName: "awsAccessKeyId", - type: { - name: "String" - } - }, - awsSecretAccessKey: { - required: true, - serializedName: "awsSecretAccessKey", - type: { - name: "String" - } - } - } - } -}; - -export const AwAssumeRoleAuthenticationDetailsProperties: msRest.CompositeMapper = { - serializedName: "awsAssumeRole", - type: { - name: "Composite", - polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, - uberParent: "AuthenticationDetailsProperties", - className: "AwAssumeRoleAuthenticationDetailsProperties", - modelProperties: { - ...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" - } - } - } - } -}; - -export const GcpCredentialsDetailsProperties: msRest.CompositeMapper = { - serializedName: "gcpCredentials", - type: { - name: "Composite", - polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, - uberParent: "AuthenticationDetailsProperties", - className: "GcpCredentialsDetailsProperties", - modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - organizationId: { - required: true, - serializedName: "organizationId", - type: { - name: "String" - } - }, - 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" - } - } - } - } -}; - -export const ScanProperties: msRest.CompositeMapper = { - serializedName: "ScanProperties", - type: { - name: "Composite", - className: "ScanProperties", - modelProperties: { - 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" - } - } - } - } -}; - -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 Scans: msRest.CompositeMapper = { - serializedName: "Scans", - type: { - name: "Composite", - className: "Scans", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Scan" - } - } - } - } - } - } -}; - -export const Remediation: msRest.CompositeMapper = { - serializedName: "Remediation", - type: { - name: "Composite", - className: "Remediation", - modelProperties: { - description: { - serializedName: "description", - type: { - name: "String" - } - }, - scripts: { - serializedName: "scripts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - automated: { - serializedName: "automated", - type: { - name: "Boolean" - } - }, - portalLink: { - serializedName: "portalLink", - type: { - name: "String" - } - } - } - } -}; - -export const Baseline: msRest.CompositeMapper = { - serializedName: "Baseline", - type: { - name: "Composite", - className: "Baseline", - modelProperties: { - expectedResults: { - serializedName: "expectedResults", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - }, - updatedTime: { - serializedName: "updatedTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const BaselineAdjustedResult: msRest.CompositeMapper = { - serializedName: "BaselineAdjustedResult", - type: { - name: "Composite", - className: "BaselineAdjustedResult", - modelProperties: { - baseline: { - serializedName: "baseline", - type: { - name: "Composite", - className: "Baseline" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - resultsNotInBaseline: { - serializedName: "resultsNotInBaseline", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - }, - resultsOnlyInBaseline: { - serializedName: "resultsOnlyInBaseline", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } - } - } -}; - -export const QueryCheck: msRest.CompositeMapper = { - serializedName: "QueryCheck", - type: { - name: "Composite", - className: "QueryCheck", - modelProperties: { - query: { - serializedName: "query", - type: { - name: "String" - } - }, - expectedResult: { - serializedName: "expectedResult", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - }, - columnNames: { - serializedName: "columnNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const BenchmarkReference: msRest.CompositeMapper = { - serializedName: "BenchmarkReference", - type: { - name: "Composite", - className: "BenchmarkReference", - modelProperties: { - benchmark: { - serializedName: "benchmark", - type: { - name: "String" - } - }, - reference: { - serializedName: "reference", - type: { - name: "String" - } - } - } - } -}; - -export const VaRule: msRest.CompositeMapper = { - serializedName: "VaRule", - type: { - name: "Composite", - className: "VaRule", - modelProperties: { - ruleId: { - serializedName: "ruleId", - type: { - name: "String" - } - }, - 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: "description", - type: { - name: "String" - } - }, - rationale: { - serializedName: "rationale", - type: { - name: "String" - } - }, - queryCheck: { - serializedName: "queryCheck", - type: { - name: "Composite", - className: "QueryCheck" - } - }, - benchmarkReferences: { - serializedName: "benchmarkReferences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BenchmarkReference" - } - } - } - } - } - } -}; - -export const ScanResultProperties: msRest.CompositeMapper = { - serializedName: "ScanResultProperties", - type: { - name: "Composite", - className: "ScanResultProperties", - modelProperties: { - ruleId: { - serializedName: "ruleId", - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - isTrimmed: { - serializedName: "isTrimmed", - type: { - name: "Boolean" - } - }, - queryResults: { - serializedName: "queryResults", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - }, - remediation: { - serializedName: "remediation", - type: { - name: "Composite", - className: "Remediation" - } - }, - baselineAdjustedResult: { - serializedName: "baselineAdjustedResult", - type: { - name: "Composite", - className: "BaselineAdjustedResult" - } - }, - ruleMetadata: { - serializedName: "ruleMetadata", - type: { - name: "Composite", - className: "VaRule" - } - } - } - } -}; - -export const ScanResult: msRest.CompositeMapper = { - serializedName: "ScanResult", - type: { - name: "Composite", - className: "ScanResult", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ScanResultProperties" - } - } - } - } -}; - -export const ScanResults: msRest.CompositeMapper = { - serializedName: "ScanResults", - type: { - name: "Composite", - className: "ScanResults", - modelProperties: { - value: { - serializedName: "value", - type: { - 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" - } - }, - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } - } - } -}; - -export const RuleResultsProperties: msRest.CompositeMapper = { - serializedName: "RuleResultsProperties", - type: { - name: "Composite", - className: "RuleResultsProperties", - modelProperties: { - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } - } - } -}; - -export const RuleResults: msRest.CompositeMapper = { - serializedName: "RuleResults", - type: { - name: "Composite", - className: "RuleResults", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "RuleResultsProperties" - } - } - } - } -}; - -export const RulesResults: msRest.CompositeMapper = { - serializedName: "RulesResults", - type: { - name: "Composite", - className: "RulesResults", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuleResults" - } - } - } - } - } - } -}; - -export const RulesResultsInput: msRest.CompositeMapper = { - serializedName: "RulesResultsInput", - type: { - name: "Composite", - className: "RulesResultsInput", - modelProperties: { - latestScan: { - serializedName: "latestScan", - type: { - name: "Boolean" - } - }, - results: { - serializedName: "results", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } - } - } - } - } -}; - -export const IotDefenderSettingsModel: msRest.CompositeMapper = { - serializedName: "IotDefenderSettingsModel", - type: { - name: "Composite", - className: "IotDefenderSettingsModel", - modelProperties: { - ...Resource.type.modelProperties, - deviceQuota: { - required: true, - serializedName: "properties.deviceQuota", - constraints: { - InclusiveMinimum: 1000 - }, - type: { - name: "Number" - } - }, - sentinelWorkspaceResourceIds: { - required: true, - serializedName: "properties.sentinelWorkspaceResourceIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - onboardingKind: { - required: true, - serializedName: "properties.onboardingKind", - type: { - name: "String" - } - }, - evaluationEndTime: { - readOnly: true, - serializedName: "properties.evaluationEndTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const IotDefenderSettingsList: msRest.CompositeMapper = { - serializedName: "IotDefenderSettingsList", - type: { - name: "Composite", - className: "IotDefenderSettingsList", - modelProperties: { - value: { - readOnly: true, - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotDefenderSettingsModel" - } - } - } - } - } - } -}; - -export const PackageDownloadInfo: msRest.CompositeMapper = { - serializedName: "PackageDownloadInfo", - type: { - name: "Composite", - className: "PackageDownloadInfo", - modelProperties: { - version: { - readOnly: true, - serializedName: "version", - type: { - name: "String" - } - }, - link: { - serializedName: "link", - type: { - name: "String" - } - }, - versionKind: { - readOnly: true, - serializedName: "versionKind", - type: { - name: "String" - } - } - } - } -}; - -export const UpgradePackageDownloadInfo: msRest.CompositeMapper = { - serializedName: "UpgradePackageDownloadInfo", - type: { - name: "Composite", - className: "UpgradePackageDownloadInfo", - modelProperties: { - ...PackageDownloadInfo.type.modelProperties, - fromVersion: { - readOnly: true, - serializedName: "fromVersion", - type: { - name: "String" - } - } - } - } -}; - -export const PackageDownloadsSensorFullOvf: msRest.CompositeMapper = { - serializedName: "PackageDownloads_sensor_full_ovf", - type: { - name: "Composite", - className: "PackageDownloadsSensorFullOvf", - modelProperties: { - enterprise: { - readOnly: true, - serializedName: "enterprise", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - medium: { - readOnly: true, - serializedName: "medium", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - line: { - readOnly: true, - serializedName: "line", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - } - } - } -}; - -export const PackageDownloadsSensorFull: msRest.CompositeMapper = { - serializedName: "PackageDownloads_sensor_full", - type: { - name: "Composite", - className: "PackageDownloadsSensorFull", - modelProperties: { - iso: { - readOnly: true, - serializedName: "iso", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - ovf: { - serializedName: "ovf", - type: { - name: "Composite", - className: "PackageDownloadsSensorFullOvf" - } - } - } - } -}; - -export const PackageDownloadsSensor: msRest.CompositeMapper = { - serializedName: "PackageDownloads_sensor", - type: { - name: "Composite", - className: "PackageDownloadsSensor", - modelProperties: { - full: { - readOnly: true, - serializedName: "full", - type: { - name: "Composite", - className: "PackageDownloadsSensorFull" - } - }, - upgrade: { - serializedName: "upgrade", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpgradePackageDownloadInfo" - } - } - } - } - } - } -}; - -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: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - enterpriseHighAvailability: { - readOnly: true, - serializedName: "enterpriseHighAvailability", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - medium: { - readOnly: true, - serializedName: "medium", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - mediumHighAvailability: { - readOnly: true, - serializedName: "mediumHighAvailability", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - } - } - } -}; - -export const PackageDownloadsCentralManagerFull: msRest.CompositeMapper = { - serializedName: "PackageDownloads_centralManager_full", - type: { - name: "Composite", - className: "PackageDownloadsCentralManagerFull", - modelProperties: { - iso: { - readOnly: true, - serializedName: "iso", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - ovf: { - readOnly: true, - serializedName: "ovf", - type: { - name: "Composite", - className: "PackageDownloadsCentralManagerFullOvf" - } - } - } - } -}; - -export const PackageDownloadsCentralManager: msRest.CompositeMapper = { - serializedName: "PackageDownloads_centralManager", - type: { - name: "Composite", - className: "PackageDownloadsCentralManager", - modelProperties: { - full: { - readOnly: true, - serializedName: "full", - type: { - name: "Composite", - className: "PackageDownloadsCentralManagerFull" - } - }, - upgrade: { - readOnly: true, - serializedName: "upgrade", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpgradePackageDownloadInfo" - } - } - } - } - } - } -}; - -export const PackageDownloads: msRest.CompositeMapper = { - serializedName: "PackageDownloads", - type: { - name: "Composite", - className: "PackageDownloads", - modelProperties: { - sensor: { - readOnly: true, - serializedName: "sensor", - type: { - name: "Composite", - className: "PackageDownloadsSensor" - } - }, - centralManager: { - readOnly: true, - serializedName: "centralManager", - type: { - name: "Composite", - className: "PackageDownloadsCentralManager" - } - }, - threatIntelligence: { - readOnly: true, - serializedName: "threatIntelligence", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - snmp: { - readOnly: true, - serializedName: "snmp", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - wmiTool: { - readOnly: true, - serializedName: "wmiTool", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - authorizedDevicesImportTemplate: { - readOnly: true, - serializedName: "authorizedDevicesImportTemplate", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - }, - deviceInformationUpdateImportTemplate: { - readOnly: true, - serializedName: "deviceInformationUpdateImportTemplate", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageDownloadInfo" - } - } - } - } - } - } -}; - -export const IotSensorsModel: msRest.CompositeMapper = { - serializedName: "IotSensorsModel", - type: { - name: "Composite", - className: "IotSensorsModel", - modelProperties: { - ...Resource.type.modelProperties, - connectivityTime: { - readOnly: true, - serializedName: "properties.connectivityTime", - type: { - name: "String" - } - }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "String" - } - }, - dynamicLearning: { - readOnly: true, - serializedName: "properties.dynamicLearning", - type: { - name: "Boolean" - } - }, - learningMode: { - readOnly: true, - serializedName: "properties.learningMode", - type: { - name: "Boolean" - } - }, - sensorStatus: { - readOnly: true, - serializedName: "properties.sensorStatus", - type: { - name: "String" - } - }, - sensorVersion: { - readOnly: true, - serializedName: "properties.sensorVersion", - type: { - name: "String" - } - }, - tiAutomaticUpdates: { - serializedName: "properties.tiAutomaticUpdates", - type: { - 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 IotSensorsList: msRest.CompositeMapper = { - serializedName: "IotSensorsList", - type: { - name: "Composite", - className: "IotSensorsList", - modelProperties: { - value: { - readOnly: true, - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotSensorsModel" - } - } - } - } - } - } -}; - -export const ResetPasswordInput: msRest.CompositeMapper = { - serializedName: "ResetPasswordInput", - type: { - name: "Composite", - className: "ResetPasswordInput", - modelProperties: { - applianceId: { - serializedName: "applianceId", - type: { - name: "String" - } - } - } - } -}; - -export const IpAddress: msRest.CompositeMapper = { - serializedName: "IpAddress", - type: { - name: "Composite", - className: "IpAddress", - modelProperties: { - v4Address: { - readOnly: true, - serializedName: "v4Address", - type: { - name: "String" - } - }, - detectionTime: { - readOnly: true, - serializedName: "detectionTime", - type: { - name: "DateTime" - } - }, - subnetCidr: { - readOnly: true, - serializedName: "subnetCidr", - type: { - name: "String" - } - }, - fqdn: { - readOnly: true, - serializedName: "fqdn", - type: { - name: "String" - } - }, - fqdnLastLookupTime: { - readOnly: true, - serializedName: "fqdnLastLookupTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const MacAddress: msRest.CompositeMapper = { - serializedName: "MacAddress", - type: { - name: "Composite", - className: "MacAddress", - modelProperties: { - address: { - readOnly: true, - serializedName: "address", - type: { - name: "String" - } - }, - detectionTime: { - readOnly: true, - serializedName: "detectionTime", - type: { - name: "DateTime" - } - }, - significance: { - readOnly: true, - 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: "String" - } - } - } - } - } - } -}; - -export const Protocol1: msRest.CompositeMapper = { - serializedName: "Protocol", - type: { - name: "Composite", - className: "Protocol1", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - identifiers: { - serializedName: "identifiers", - type: { - name: "String" - } - } - } - } -}; - -export const Firmware: msRest.CompositeMapper = { - serializedName: "Firmware", - type: { - name: "Composite", - className: "Firmware", - modelProperties: { - moduleAddress: { - readOnly: true, - serializedName: "moduleAddress", - type: { - name: "String" - } - }, - rack: { - readOnly: true, - serializedName: "rack", - type: { - name: "String" - } - }, - slot: { - readOnly: true, - serializedName: "slot", - type: { - name: "String" - } - }, - serial: { - readOnly: true, - serializedName: "serial", - type: { - name: "String" - } - }, - model: { - readOnly: true, - serializedName: "model", - type: { - name: "String" - } - }, - version: { - readOnly: true, - serializedName: "version", - type: { - name: "String" - } - }, - additionalData: { - readOnly: true, - serializedName: "additionalData", - type: { - name: "Object" - } - } - } - } -}; - -export const Sensor: msRest.CompositeMapper = { - serializedName: "Sensor", - type: { - name: "Composite", - className: "Sensor", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - zone: { - readOnly: true, - serializedName: "zone", - type: { - name: "String" - } - } - } - } -}; - -export const Site: msRest.CompositeMapper = { - serializedName: "Site", - type: { - name: "Composite", - className: "Site", - modelProperties: { - displayName: { - readOnly: true, - serializedName: "displayName", - type: { - name: "String" - } - } - } - } -}; - -export const Device: msRest.CompositeMapper = { - serializedName: "Device", - type: { - name: "Composite", - className: "Device", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - deviceType: { - serializedName: "properties.deviceType", - type: { - name: "String" - } - }, - sourceName: { - readOnly: true, - serializedName: "properties.sourceName", - type: { - name: "String" - } - }, - networkInterfaces: { - readOnly: true, - 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" - } - }, - lastProgrammingTime: { - readOnly: true, - serializedName: "properties.lastProgrammingTime", - type: { - name: "DateTime" - } - }, - scanningFunctionality: { - readOnly: true, - serializedName: "properties.scanningFunctionality", - type: { - name: "String" - } - }, - lastScanTime: { - readOnly: true, - serializedName: "properties.lastScanTime", - type: { - name: "DateTime" - } - }, - riskScore: { - readOnly: true, - serializedName: "properties.riskScore", - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - sensors: { - readOnly: true, - serializedName: "properties.sensors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Sensor" - } - } - } - }, - site: { - readOnly: true, - serializedName: "properties.site", - type: { - name: "Composite", - className: "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: "OnPremiseIotSensor" - } - } - } - } - } - } -}; - -export const IotSitesModel: msRest.CompositeMapper = { - serializedName: "IotSitesModel", - type: { - name: "Composite", - className: "IotSitesModel", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - tags: { - serializedName: "properties.tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const IotSitesList: msRest.CompositeMapper = { - serializedName: "IotSitesList", - type: { - name: "Composite", - className: "IotSitesList", - modelProperties: { - value: { - readOnly: true, - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotSitesModel" - } - } - } - } - } - } -}; - -export const IotAlertModel: msRest.CompositeMapper = { - serializedName: "IotAlertModel", - type: { - name: "Composite", - className: "IotAlertModel", - modelProperties: { - ...Resource.type.modelProperties, - systemAlertId: { - readOnly: true, - serializedName: "properties.systemAlertId", - type: { - name: "String" - } - }, - compromisedEntity: { - readOnly: true, - serializedName: "properties.compromisedEntity", - type: { - name: "String" - } - }, - alertType: { - readOnly: true, - serializedName: "properties.alertType", - type: { - name: "String" - } - }, - startTimeUtc: { - readOnly: true, - serializedName: "properties.startTimeUtc", - type: { - name: "String" - } - }, - endTimeUtc: { - readOnly: true, - serializedName: "properties.endTimeUtc", - type: { - name: "String" - } - }, - entities: { - serializedName: "properties.entities", - type: { - name: "Sequence", - element: { - type: { - name: "Object" - } - } - } - }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Object" - } - } - } - } -}; - -export const IotAlertType: msRest.CompositeMapper = { - serializedName: "IotAlertType", - type: { - name: "Composite", - className: "IotAlertType", - modelProperties: { - ...Resource.type.modelProperties, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "properties.severity", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - providerName: { - readOnly: true, - serializedName: "properties.providerName", - type: { - name: "String" - } - }, - productName: { - readOnly: true, - serializedName: "properties.productName", - type: { - name: "String" - } - }, - productComponentName: { - readOnly: true, - serializedName: "properties.productComponentName", - type: { - name: "String" - } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", - type: { - name: "String" - } - }, - intent: { - readOnly: true, - serializedName: "properties.intent", - type: { - name: "String" - } - }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const IotAlertTypeList: msRest.CompositeMapper = { - serializedName: "IotAlertTypeList", - type: { - name: "Composite", - className: "IotAlertTypeList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotAlertType" - } - } - } - } - } - } -}; - -export const IotRecommendationModel: msRest.CompositeMapper = { - serializedName: "IotRecommendationModel", - type: { - name: "Composite", - className: "IotRecommendationModel", - modelProperties: { - ...Resource.type.modelProperties, - deviceId: { - readOnly: true, - serializedName: "properties.deviceId", - type: { - name: "String" - } - }, - recommendationType: { - readOnly: true, - serializedName: "properties.recommendationType", - type: { - name: "String" - } - }, - discoveredTimeUtc: { - readOnly: true, - serializedName: "properties.discoveredTimeUtc", - type: { - name: "String" - } - }, - recommendationAdditionalData: { - serializedName: "properties.recommendationAdditionalData", - type: { - name: "Object" - } - } - } - } -}; - -export const IotRecommendationType: msRest.CompositeMapper = { - serializedName: "IotRecommendationType", - type: { - name: "Composite", - className: "IotRecommendationType", - modelProperties: { - ...Resource.type.modelProperties, - recommendationDisplayName: { - readOnly: true, - serializedName: "properties.recommendationDisplayName", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "properties.severity", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - productName: { - readOnly: true, - serializedName: "properties.productName", - type: { - name: "String" - } - }, - productComponentName: { - readOnly: true, - serializedName: "properties.productComponentName", - type: { - name: "String" - } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", - type: { - name: "String" - } - }, - control: { - readOnly: true, - serializedName: "properties.control", - type: { - name: "String" - } - }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - dataSource: { - readOnly: true, - serializedName: "properties.dataSource", - type: { - name: "String" - } - } - } - } -}; - -export const IotRecommendationTypeList: msRest.CompositeMapper = { - serializedName: "IotRecommendationTypeList", - type: { - name: "Composite", - className: "IotRecommendationTypeList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotRecommendationType" - } - } - } - } - } - } -}; - -export const ResourceIdentifier: msRest.CompositeMapper = { - serializedName: "ResourceIdentifier", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "ResourceIdentifier", - className: "ResourceIdentifier", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const AlertEntity: msRest.CompositeMapper = { - serializedName: "AlertEntity", - type: { - name: "Composite", - className: "AlertEntity", - modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const Alert: msRest.CompositeMapper = { - serializedName: "Alert", - type: { - name: "Composite", - className: "Alert", - modelProperties: { - ...Resource.type.modelProperties, - alertType: { - readOnly: true, - serializedName: "properties.alertType", - type: { - name: "String" - } - }, - systemAlertId: { - readOnly: true, - serializedName: "properties.systemAlertId", - type: { - name: "String" - } - }, - productComponentName: { - readOnly: true, - serializedName: "properties.productComponentName", - type: { - name: "String" - } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "properties.severity", - type: { - name: "String" - } - }, - intent: { - readOnly: true, - serializedName: "properties.intent", - type: { - name: "String" - } - }, - startTimeUtc: { - readOnly: true, - serializedName: "properties.startTimeUtc", - type: { - name: "DateTime" - } - }, - endTimeUtc: { - readOnly: true, - serializedName: "properties.endTimeUtc", - type: { - name: "DateTime" - } - }, - resourceIdentifiers: { - readOnly: true, - serializedName: "properties.resourceIdentifiers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceIdentifier" - } - } - } - }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "String" - } - }, - extendedLinks: { - readOnly: true, - serializedName: "properties.extendedLinks", - type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - }, - alertUri: { - readOnly: true, - serializedName: "properties.alertUri", - type: { - name: "String" - } - }, - timeGeneratedUtc: { - readOnly: true, - serializedName: "properties.timeGeneratedUtc", - type: { - name: "DateTime" - } - }, - productName: { - readOnly: true, - serializedName: "properties.productName", - type: { - name: "String" - } - }, - processingEndTimeUtc: { - readOnly: true, - serializedName: "properties.processingEndTimeUtc", - type: { - name: "DateTime" - } - }, - entities: { - readOnly: true, - serializedName: "properties.entities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertEntity", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - }, - isIncident: { - readOnly: true, - serializedName: "properties.isIncident", - type: { - name: "Boolean" - } - }, - correlationKey: { - readOnly: true, - serializedName: "properties.correlationKey", - type: { - name: "String" - } - }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - compromisedEntity: { - readOnly: true, - serializedName: "properties.compromisedEntity", - type: { - name: "String" - } - } - } - } -}; - -export const AzureResourceIdentifier: msRest.CompositeMapper = { - serializedName: "AzureResource", - type: { - name: "Composite", - polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, - uberParent: "ResourceIdentifier", - className: "AzureResourceIdentifier", - modelProperties: { - ...ResourceIdentifier.type.modelProperties, - azureResourceId: { - readOnly: true, - serializedName: "azureResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const LogAnalyticsIdentifier: msRest.CompositeMapper = { - serializedName: "LogAnalytics", - type: { - name: "Composite", - polymorphicDiscriminator: ResourceIdentifier.type.polymorphicDiscriminator, - uberParent: "ResourceIdentifier", - className: "LogAnalyticsIdentifier", - modelProperties: { - ...ResourceIdentifier.type.modelProperties, - workspaceId: { - readOnly: true, - serializedName: "workspaceId", - type: { - name: "String" - } - }, - workspaceSubscriptionId: { - readOnly: true, - serializedName: "workspaceSubscriptionId", - constraints: { - Pattern: /^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$/ - }, - type: { - name: "String" - } - }, - workspaceResourceGroup: { - readOnly: true, - serializedName: "workspaceResourceGroup", - type: { - name: "String" - } - }, - agentId: { - readOnly: true, - serializedName: "agentId", - type: { - name: "String" - } - } - } - } -}; - -export const AlertSimulatorRequestProperties: msRest.CompositeMapper = { - serializedName: "AlertSimulatorRequestProperties", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "AlertSimulatorRequestProperties", - className: "AlertSimulatorRequestProperties", - modelProperties: { - kind: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const AlertSimulatorRequestBody: msRest.CompositeMapper = { - serializedName: "AlertSimulatorRequestBody", - type: { - name: "Composite", - className: "AlertSimulatorRequestBody", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AlertSimulatorRequestProperties", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } -}; - -export const AlertSimulatorBundlesRequestProperties: msRest.CompositeMapper = { - serializedName: "Bundles", - type: { - name: "Composite", - polymorphicDiscriminator: AlertSimulatorRequestProperties.type.polymorphicDiscriminator, - uberParent: "AlertSimulatorRequestProperties", - className: "AlertSimulatorBundlesRequestProperties", - modelProperties: { - ...AlertSimulatorRequestProperties.type.modelProperties, - bundles: { - serializedName: "bundles", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - }, - additionalProperties: AlertSimulatorRequestProperties.type.additionalProperties - } -}; - -export const Setting: msRest.CompositeMapper = { - serializedName: "Setting", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "Setting", - className: "Setting", - modelProperties: { - ...Resource.type.modelProperties, - kind: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - } - } - } -}; - -export const DataExportSettings: msRest.CompositeMapper = { - serializedName: "DataExportSettings", - type: { - name: "Composite", - polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, - uberParent: "Setting", - className: "DataExportSettings", - modelProperties: { - ...Setting.type.modelProperties, - enabled: { - required: true, - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AlertSyncSettings: msRest.CompositeMapper = { - serializedName: "AlertSyncSettings", - type: { - name: "Composite", - polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, - uberParent: "Setting", - className: "AlertSyncSettings", - modelProperties: { - ...Setting.type.modelProperties, - enabled: { - required: true, - serializedName: "properties.enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const IngestionSetting: msRest.CompositeMapper = { - serializedName: "IngestionSetting", - type: { - name: "Composite", - className: "IngestionSetting", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Object" - } - } - } - } -}; - -export const IngestionSettingToken: msRest.CompositeMapper = { - serializedName: "IngestionSettingToken", - type: { - name: "Composite", - className: "IngestionSettingToken", - modelProperties: { - token: { - readOnly: true, - serializedName: "token", - type: { - name: "String" - } - } - } - } -}; - -export const IngestionConnectionString: msRest.CompositeMapper = { - serializedName: "IngestionConnectionString", - type: { - name: "Composite", - className: "IngestionConnectionString", - modelProperties: { - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - value: { - readOnly: true, - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -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: "IngestionConnectionString" - } - } - } - } - } - } -}; - -export const Software: msRest.CompositeMapper = { - serializedName: "Software", - type: { - name: "Composite", - className: "Software", - modelProperties: { - ...Resource.type.modelProperties, - deviceId: { - serializedName: "properties.deviceId", - type: { - name: "String" - } - }, - osPlatform: { - serializedName: "properties.osPlatform", - type: { - name: "String" - } - }, - vendor: { - serializedName: "properties.vendor", - type: { - name: "String" - } - }, - softwareName: { - serializedName: "properties.softwareName", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - endOfSupportStatus: { - serializedName: "properties.endOfSupportStatus", - type: { - name: "String" - } - }, - endOfSupportDate: { - serializedName: "properties.endOfSupportDate", - type: { - name: "String" - } - }, - numberOfKnownVulnerabilities: { - serializedName: "properties.numberOfKnownVulnerabilities", - type: { - name: "Number" - } - }, - firstSeenAt: { - serializedName: "properties.firstSeenAt", - type: { - name: "String" - } - } - } - } -}; - -export const ComplianceResultList: msRest.CompositeMapper = { - serializedName: "ComplianceResultList", - type: { - name: "Composite", - className: "ComplianceResultList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceResult" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DeviceSecurityGroupList: msRest.CompositeMapper = { - serializedName: "DeviceSecurityGroupList", - type: { - name: "Composite", - className: "DeviceSecurityGroupList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeviceSecurityGroup" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const IoTSecuritySolutionsList: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionsList", - type: { - name: "Composite", - className: "IoTSecuritySolutionsList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionModel" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const IoTSecurityAggregatedAlertList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlertList", - type: { - name: "Composite", - className: "IoTSecurityAggregatedAlertList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecurityAggregatedAlert" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const IoTSecurityAggregatedRecommendationList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedRecommendationList", - type: { - name: "Composite", - className: "IoTSecurityAggregatedRecommendationList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecurityAggregatedRecommendation" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AscLocationList: msRest.CompositeMapper = { - serializedName: "AscLocationList", - type: { - name: "Composite", - className: "AscLocationList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AscLocation" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const OperationList: msRest.CompositeMapper = { - serializedName: "OperationList", - type: { - name: "Composite", - className: "OperationList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityTaskList: msRest.CompositeMapper = { - serializedName: "SecurityTaskList", - type: { - name: "Composite", - className: "SecurityTaskList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityTask" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AutoProvisioningSettingList: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSettingList", - type: { - name: "Composite", - className: "AutoProvisioningSettingList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutoProvisioningSetting" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ComplianceList: msRest.CompositeMapper = { - serializedName: "ComplianceList", - type: { - name: "Composite", - className: "ComplianceList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Compliance" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const InformationProtectionPolicyList: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicyList", - type: { - name: "Composite", - className: "InformationProtectionPolicyList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformationProtectionPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityContactList: msRest.CompositeMapper = { - serializedName: "SecurityContactList", - type: { - name: "Composite", - className: "SecurityContactList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityContact" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const WorkspaceSettingList: msRest.CompositeMapper = { - serializedName: "WorkspaceSettingList", - type: { - name: "Composite", - className: "WorkspaceSettingList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceSetting" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RegulatoryComplianceStandardList: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceStandardList", - type: { - name: "Composite", - className: "RegulatoryComplianceStandardList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegulatoryComplianceStandard" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RegulatoryComplianceControlList: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceControlList", - type: { - name: "Composite", - className: "RegulatoryComplianceControlList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegulatoryComplianceControl" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RegulatoryComplianceAssessmentList: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceAssessmentList", - type: { - name: "Composite", - className: "RegulatoryComplianceAssessmentList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegulatoryComplianceAssessment" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecuritySubAssessmentList: msRest.CompositeMapper = { - serializedName: "SecuritySubAssessmentList", - type: { - name: "Composite", - className: "SecuritySubAssessmentList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecuritySubAssessment" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AutomationList: msRest.CompositeMapper = { - serializedName: "AutomationList", - type: { - name: "Composite", - className: "AutomationList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Automation" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AlertsSuppressionRulesList: msRest.CompositeMapper = { - serializedName: "AlertsSuppressionRulesList", - type: { - name: "Composite", - className: "AlertsSuppressionRulesList", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AlertsSuppressionRule" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityAssessmentMetadataList: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataList", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityAssessmentMetadata" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecurityAssessmentList: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentList", - type: { - name: "Composite", - className: "SecurityAssessmentList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityAssessment" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AdaptiveNetworkHardeningsList: msRest.CompositeMapper = { - serializedName: "AdaptiveNetworkHardeningsList", - type: { - name: "Composite", - className: "AdaptiveNetworkHardeningsList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdaptiveNetworkHardening" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AllowedConnectionsList: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsList", - type: { - name: "Composite", - className: "AllowedConnectionsList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AllowedConnectionsResource" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const TopologyList: msRest.CompositeMapper = { - serializedName: "TopologyList", - type: { - name: "Composite", - className: "TopologyList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologyResource" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const JitNetworkAccessPoliciesList: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPoliciesList", - type: { - name: "Composite", - className: "JitNetworkAccessPoliciesList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const DiscoveredSecuritySolutionList: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolutionList", - type: { - name: "Composite", - className: "DiscoveredSecuritySolutionList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiscoveredSecuritySolution" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ExternalSecuritySolutionList: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionList", - type: { - name: "Composite", - className: "ExternalSecuritySolutionList", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExternalSecuritySolution" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + description: { + serializedName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const SecureScoresList: msRest.CompositeMapper = { - serializedName: "SecureScoresList", - type: { - name: "Composite", - className: "SecureScoresList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreItem" - } - } - } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecureScoreControlList: msRest.CompositeMapper = { - serializedName: "SecureScoreControlList", - type: { - name: "Composite", - className: "SecureScoreControlList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", + assignedStandard: { + serializedName: "properties.assignedStandard", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreControlDetails" - } - } + name: "Composite", + className: "AssignedStandardItem" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const SecureScoreControlDefinitionList: msRest.CompositeMapper = { - serializedName: "secureScoreControlDefinitionList", - type: { - name: "Composite", - className: "SecureScoreControlDefinitionList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", + assignedComponent: { + serializedName: "properties.assignedComponent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem" - } - } + name: "Composite", + className: "AssignedComponentItem" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + scope: { + serializedName: "properties.scope", type: { name: "String" } - } - } - } -}; - -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", + effect: { + serializedName: "properties.effect", 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: "", + expiresOn: { + serializedName: "properties.expiresOn", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Device" - } - } + name: "DateTime" } }, - 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: "", + additionalData: { + serializedName: "properties.additionalData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotAlertModel" - } - } + name: "Composite", + className: "AssignmentPropertiesAdditionalData" } }, - 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: "", + metadata: { + serializedName: "properties.metadata", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IotRecommendationModel" - } - } + name: "Object" } }, - nextLink: { + systemData: { readOnly: true, - serializedName: "nextLink", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const AlertList: msRest.CompositeMapper = { - serializedName: "AlertList", +export const StandardList: msRest.CompositeMapper = { + serializedName: "StandardList", type: { name: "Composite", - className: "AlertList", + className: "StandardList", 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" + className: "Standard" } } } @@ -9653,11 +485,11 @@ export const SettingsList: msRest.CompositeMapper = { } }; -export const IngestionSettingList: msRest.CompositeMapper = { - serializedName: "IngestionSettingList", +export const AssignmentList: msRest.CompositeMapper = { + serializedName: "AssignmentList", type: { name: "Composite", - className: "IngestionSettingList", + className: "AssignmentList", modelProperties: { value: { readOnly: true, @@ -9667,36 +499,7 @@ export const IngestionSettingList: msRest.CompositeMapper = { 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" + className: "Assignment" } } } @@ -9711,61 +514,3 @@ export const SoftwaresList: msRest.CompositeMapper = { } } }; - -export const discriminators = { - 'CustomAlertRule.ThresholdCustomAlertRule' : ThresholdCustomAlertRule, - 'CustomAlertRule.TimeWindowCustomAlertRule' : TimeWindowCustomAlertRule, - 'CustomAlertRule.AllowlistCustomAlertRule' : AllowlistCustomAlertRule, - 'CustomAlertRule.DenylistCustomAlertRule' : DenylistCustomAlertRule, - 'CustomAlertRule' : CustomAlertRule, - 'CustomAlertRule.ListCustomAlertRule' : ListCustomAlertRule, - 'CustomAlertRule.ConnectionToIpNotAllowed' : ConnectionToIpNotAllowed, - 'CustomAlertRule.ConnectionFromIpNotAllowed' : ConnectionFromIpNotAllowed, - 'CustomAlertRule.LocalUserNotAllowed' : LocalUserNotAllowed, - 'CustomAlertRule.ProcessNotAllowed' : ProcessNotAllowed, - 'CustomAlertRule.ActiveConnectionsNotInAllowedRange' : ActiveConnectionsNotInAllowedRange, - 'CustomAlertRule.AmqpC2DMessagesNotInAllowedRange' : AmqpC2DMessagesNotInAllowedRange, - 'CustomAlertRule.MqttC2DMessagesNotInAllowedRange' : MqttC2DMessagesNotInAllowedRange, - 'CustomAlertRule.HttpC2DMessagesNotInAllowedRange' : HttpC2DMessagesNotInAllowedRange, - 'CustomAlertRule.AmqpC2DRejectedMessagesNotInAllowedRange' : AmqpC2DRejectedMessagesNotInAllowedRange, - 'CustomAlertRule.MqttC2DRejectedMessagesNotInAllowedRange' : MqttC2DRejectedMessagesNotInAllowedRange, - 'CustomAlertRule.HttpC2DRejectedMessagesNotInAllowedRange' : HttpC2DRejectedMessagesNotInAllowedRange, - 'CustomAlertRule.AmqpD2CMessagesNotInAllowedRange' : AmqpD2CMessagesNotInAllowedRange, - 'CustomAlertRule.MqttD2CMessagesNotInAllowedRange' : MqttD2CMessagesNotInAllowedRange, - 'CustomAlertRule.HttpD2CMessagesNotInAllowedRange' : HttpD2CMessagesNotInAllowedRange, - 'CustomAlertRule.DirectMethodInvokesNotInAllowedRange' : DirectMethodInvokesNotInAllowedRange, - 'CustomAlertRule.FailedLocalLoginsNotInAllowedRange' : FailedLocalLoginsNotInAllowedRange, - 'CustomAlertRule.FileUploadsNotInAllowedRange' : FileUploadsNotInAllowedRange, - 'CustomAlertRule.QueuePurgesNotInAllowedRange' : QueuePurgesNotInAllowedRange, - 'CustomAlertRule.TwinUpdatesNotInAllowedRange' : TwinUpdatesNotInAllowedRange, - 'CustomAlertRule.UnauthorizedOperationsNotInAllowedRange' : UnauthorizedOperationsNotInAllowedRange, - 'ResourceDetails' : ResourceDetails, - 'AdditionalData' : AdditionalData, - 'AdditionalData.SqlServerVulnerability' : SqlServerVulnerabilityProperties, - 'AdditionalData.ContainerRegistryVulnerability' : ContainerRegistryVulnerabilityProperties, - 'AdditionalData.ServerVulnerabilityAssessment' : ServerVulnerabilityProperties, - 'ResourceDetails.OnPremiseSql' : OnPremiseSqlResourceDetails, - 'ResourceDetails.OnPremise' : OnPremiseResourceDetails, - 'ResourceDetails.Azure' : AzureResourceDetails, - 'AutomationAction' : AutomationAction, - 'AutomationAction.LogicApp' : AutomationActionLogicApp, - 'AutomationAction.EventHub' : AutomationActionEventHub, - 'AutomationAction.Workspace' : AutomationActionWorkspace, - 'ExternalSecuritySolution' : ExternalSecuritySolution, - 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, - 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, - '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 deleted file mode 100644 index 7e62c67c18c6..000000000000 --- a/sdk/security/arm-security/src/models/onPremiseIotSensorsMappers.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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 deleted file mode 100644 index 583dd59bc975..000000000000 --- a/sdk/security/arm-security/src/models/operationsMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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, - Operation, - OperationDisplay, - OperationList -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index a22ff0f8d0db..8f2bc6be50ea 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -19,595 +19,21 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const adaptiveNetworkHardeningEnforceAction: msRest.OperationURLParameter = { - parameterPath: "adaptiveNetworkHardeningEnforceAction", - mapper: { - required: true, - isConstant: true, - serializedName: "adaptiveNetworkHardeningEnforceAction", - defaultValue: 'enforce', - type: { - name: "String" - } - } -}; -export const adaptiveNetworkHardeningResourceName: msRest.OperationURLParameter = { - parameterPath: "adaptiveNetworkHardeningResourceName", - mapper: { - required: true, - serializedName: "adaptiveNetworkHardeningResourceName", - type: { - name: "String" - } - } -}; -export const aggregatedAlertName: msRest.OperationURLParameter = { - parameterPath: "aggregatedAlertName", - mapper: { - required: true, - serializedName: "aggregatedAlertName", - type: { - name: "String" - } - } -}; -export const aggregatedRecommendationName: msRest.OperationURLParameter = { - parameterPath: "aggregatedRecommendationName", - mapper: { - required: true, - serializedName: "aggregatedRecommendationName", - type: { - name: "String" - } - } -}; -export const alertName: msRest.OperationURLParameter = { - parameterPath: "alertName", - mapper: { - required: true, - serializedName: "alertName", - type: { - name: "String" - } - } -}; -export const alertsSuppressionRuleName: msRest.OperationURLParameter = { - parameterPath: "alertsSuppressionRuleName", - mapper: { - required: true, - serializedName: "alertsSuppressionRuleName", - type: { - name: "String" - } - } -}; -export const alertType0: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "alertType" - ], - mapper: { - serializedName: "AlertType", - type: { - name: "String" - } - } -}; -export const alertType1: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "alertType" - ], - mapper: { - serializedName: "alertType", - type: { - name: "String" - } - } -}; -export const apiVersion0: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2017-08-01', - type: { - name: "String" - } - } -}; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2018-06-01', - type: { - name: "String" - } - } -}; -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: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2019-01-01', - type: { - name: "String" - } - } -}; -export const apiVersion3: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2019-08-01', - type: { - name: "String" - } - } -}; -export const apiVersion4: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2015-06-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion5: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2017-08-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion6: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2019-01-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion7: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2020-01-01', - type: { - name: "String" - } - } -}; -export const apiVersion8: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2020-01-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion9: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; -export const ascLocation: msRest.OperationURLParameter = { - parameterPath: "ascLocation", - mapper: { - required: true, - serializedName: "ascLocation", - type: { - name: "String" - } - } -}; -export const assessmentMetadataName: msRest.OperationURLParameter = { - parameterPath: "assessmentMetadataName", - mapper: { - required: true, - serializedName: "assessmentMetadataName", - type: { - name: "String" - } - } -}; -export const assessmentName: msRest.OperationURLParameter = { - parameterPath: "assessmentName", - mapper: { - required: true, - serializedName: "assessmentName", - type: { - name: "String" - } - } -}; -export const automationName: msRest.OperationURLParameter = { - parameterPath: "automationName", - mapper: { - required: true, - serializedName: "automationName", - type: { - name: "String" - } - } -}; -export const complianceName: msRest.OperationURLParameter = { - parameterPath: "complianceName", - mapper: { - required: true, - serializedName: "complianceName", - type: { - name: "String" - } - } -}; -export const complianceResultName: msRest.OperationURLParameter = { - parameterPath: "complianceResultName", - mapper: { - required: true, - serializedName: "complianceResultName", - type: { - name: "String" - } - } -}; -export const compromisedEntity: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "compromisedEntity" - ], - mapper: { - serializedName: "compromisedEntity", - type: { - name: "String" - } - } -}; -export const connectionType: msRest.OperationURLParameter = { - parameterPath: "connectionType", - mapper: { - required: true, - serializedName: "connectionType", - type: { - name: "String" - } - } -}; -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: { - required: true, - serializedName: "deviceSecurityGroupName", - type: { - name: "String" - } - } -}; -export const discoveredSecuritySolutionName: msRest.OperationURLParameter = { - parameterPath: "discoveredSecuritySolutionName", - mapper: { - required: true, - serializedName: "discoveredSecuritySolutionName", - type: { - name: "String" - } - } -}; -export const expand: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "expand" - ], - mapper: { - serializedName: "$expand", - type: { - name: "String" - } - } -}; -export const externalSecuritySolutionsName: msRest.OperationURLParameter = { - parameterPath: "externalSecuritySolutionsName", - mapper: { - required: true, - serializedName: "externalSecuritySolutionsName", - type: { - name: "String" - } - } -}; -export const filter: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "filter" - ], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; -export const groupName: msRest.OperationURLParameter = { - parameterPath: "groupName", - mapper: { - required: true, - serializedName: "groupName", - type: { - name: "String" - } - } -}; -export const includePathRecommendations: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "includePathRecommendations" - ], - mapper: { - serializedName: "includePathRecommendations", - type: { - name: "Boolean" - } - } -}; -export const informationProtectionPolicyName: msRest.OperationURLParameter = { - parameterPath: "informationProtectionPolicyName", - mapper: { - required: true, - serializedName: "informationProtectionPolicyName", - type: { - name: "String" - } - } -}; -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", +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, - serializedName: "jitNetworkAccessPolicyInitiateType", - defaultValue: 'initiate', + serializedName: "api-version", type: { name: "String" } } }; -export const jitNetworkAccessPolicyName: msRest.OperationURLParameter = { - parameterPath: "jitNetworkAccessPolicyName", +export const assignmentId: msRest.OperationURLParameter = { + parameterPath: "assignmentId", mapper: { required: true, - serializedName: "jitNetworkAccessPolicyName", - type: { - name: "String" - } - } -}; -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>", + serializedName: "assignmentId", type: { name: "String" } @@ -624,68 +50,6 @@ 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: { - required: true, - serializedName: "pricingName", - type: { - name: "String" - } - } -}; -export const recommendationType: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "recommendationType" - ], - mapper: { - serializedName: "recommendationType", - type: { - name: "String" - } - } -}; -export const regulatoryComplianceAssessmentName: msRest.OperationURLParameter = { - parameterPath: "regulatoryComplianceAssessmentName", - mapper: { - required: true, - serializedName: "regulatoryComplianceAssessmentName", - type: { - name: "String" - } - } -}; -export const regulatoryComplianceControlName: msRest.OperationURLParameter = { - parameterPath: "regulatoryComplianceControlName", - mapper: { - required: true, - serializedName: "regulatoryComplianceControlName", - type: { - name: "String" - } - } -}; -export const regulatoryComplianceStandardName: msRest.OperationURLParameter = { - parameterPath: "regulatoryComplianceStandardName", - mapper: { - required: true, - serializedName: "regulatoryComplianceStandardName", - type: { - name: "String" - } - } -}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -701,189 +65,11 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; -export const resourceId: msRest.OperationURLParameter = { - parameterPath: "resourceId", - mapper: { - required: true, - serializedName: "resourceId", - type: { - name: "String" - } - }, - skipEncoding: true -}; -export const resourceName: msRest.OperationURLParameter = { - parameterPath: "resourceName", - mapper: { - required: true, - serializedName: "resourceName", - type: { - name: "String" - } - } -}; -export const resourceNamespace: msRest.OperationURLParameter = { - parameterPath: "resourceNamespace", - mapper: { - required: true, - serializedName: "resourceNamespace", - type: { - name: "String" - } - } -}; -export const resourceType: msRest.OperationURLParameter = { - parameterPath: "resourceType", - mapper: { - required: true, - serializedName: "resourceType", - type: { - name: "String" - } - } -}; -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: { - required: true, - serializedName: "scope", - type: { - name: "String" - } - }, - skipEncoding: true -}; -export const secureScoreName: msRest.OperationURLParameter = { - parameterPath: "secureScoreName", - mapper: { - required: true, - serializedName: "secureScoreName", - type: { - name: "String" - } - } -}; -export const securityContactName: msRest.OperationURLParameter = { - parameterPath: "securityContactName", - mapper: { - required: true, - serializedName: "securityContactName", - type: { - name: "String" - } - } -}; -export const securitySolutionName: msRest.OperationURLParameter = { - parameterPath: "securitySolutionName", - mapper: { - required: true, - serializedName: "securitySolutionName", - type: { - name: "String" - } - } -}; -export const serverVulnerabilityAssessment: msRest.OperationURLParameter = { - parameterPath: "serverVulnerabilityAssessment", - mapper: { - required: true, - isConstant: true, - serializedName: "serverVulnerabilityAssessment", - defaultValue: 'default', - type: { - name: "String" - } - } -}; -export const settingName0: msRest.OperationURLParameter = { - parameterPath: "settingName", - mapper: { - required: true, - isConstant: true, - serializedName: "settingName", - defaultValue: 'current', - type: { - name: "String" - } - } -}; -export const settingName1: msRest.OperationURLParameter = { - parameterPath: "settingName", - mapper: { - required: true, - serializedName: "settingName", - 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" - } - } -}; -export const solutionName: msRest.OperationURLParameter = { - parameterPath: "solutionName", - mapper: { - required: true, - serializedName: "solutionName", - type: { - name: "String" - } - } -}; -export const subAssessmentName: msRest.OperationURLParameter = { - parameterPath: "subAssessmentName", +export const standardId: msRest.OperationURLParameter = { + parameterPath: "standardId", mapper: { required: true, - serializedName: "subAssessmentName", + serializedName: "standardId", type: { name: "String" } @@ -902,77 +88,3 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; -export const summary: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "summary" - ], - mapper: { - serializedName: "summary", - type: { - name: "Boolean" - } - } -}; -export const taskName: msRest.OperationURLParameter = { - parameterPath: "taskName", - mapper: { - required: true, - serializedName: "taskName", - type: { - name: "String" - } - } -}; -export const taskUpdateActionType: msRest.OperationURLParameter = { - parameterPath: "taskUpdateActionType", - mapper: { - required: true, - serializedName: "taskUpdateActionType", - type: { - name: "String" - } - } -}; -export const top: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "top" - ], - mapper: { - serializedName: "$top", - type: { - name: "Number" - } - } -}; -export const topologyResourceName: msRest.OperationURLParameter = { - parameterPath: "topologyResourceName", - mapper: { - required: true, - serializedName: "topologyResourceName", - type: { - name: "String" - } - } -}; -export const workspaceId: msRest.OperationQueryParameter = { - parameterPath: "workspaceId", - mapper: { - required: true, - serializedName: "workspaceId", - type: { - name: "String" - } - } -}; -export const workspaceSettingName: msRest.OperationURLParameter = { - parameterPath: "workspaceSettingName", - mapper: { - required: true, - serializedName: "workspaceSettingName", - type: { - name: "String" - } - } -}; diff --git a/sdk/security/arm-security/src/models/pricingsMappers.ts b/sdk/security/arm-security/src/models/pricingsMappers.ts deleted file mode 100644 index cd5b9ba52653..000000000000 --- a/sdk/security/arm-security/src/models/pricingsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - PricingList, - 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/regulatoryComplianceAssessmentsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts deleted file mode 100644 index 2aa52938afb9..000000000000 --- a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - RegulatoryComplianceAssessmentList, - 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/regulatoryComplianceControlsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts deleted file mode 100644 index 9b546318a0fb..000000000000 --- a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - RegulatoryComplianceControlList, - 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/regulatoryComplianceStandardsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts deleted file mode 100644 index f71c9be427e1..000000000000 --- a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - RegulatoryComplianceStandardList, - 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/secureScoreControlDefinitionsMappers.ts b/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts deleted file mode 100644 index ccfb073559a9..000000000000 --- a/sdk/security/arm-security/src/models/secureScoreControlDefinitionsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecureScoreControlDefinitionList, - 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/secureScoreControlsMappers.ts b/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts deleted file mode 100644 index 18831f247670..000000000000 --- a/sdk/security/arm-security/src/models/secureScoreControlsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecureScoreControlList, - 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/secureScoresMappers.ts b/sdk/security/arm-security/src/models/secureScoresMappers.ts deleted file mode 100644 index 7a8e2e4fe3e6..000000000000 --- a/sdk/security/arm-security/src/models/secureScoresMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecureScoresList, - 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/securityContactsMappers.ts b/sdk/security/arm-security/src/models/securityContactsMappers.ts deleted file mode 100644 index d65ed7c3ecf5..000000000000 --- a/sdk/security/arm-security/src/models/securityContactsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecurityContactList, - 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/securitySolutionsMappers.ts b/sdk/security/arm-security/src/models/securitySolutionsMappers.ts deleted file mode 100644 index fd2d20d72cfd..000000000000 --- a/sdk/security/arm-security/src/models/securitySolutionsMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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 deleted file mode 100644 index 67198c4e8267..000000000000 --- a/sdk/security/arm-security/src/models/securitySolutionsReferenceDataOperationsMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * 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 deleted file mode 100644 index 3c9889a7549e..000000000000 --- a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - ServerVulnerabilityAssessmentsList, - 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/settingsMappers.ts b/sdk/security/arm-security/src/models/settingsMappers.ts deleted file mode 100644 index 01ab7cffadc7..000000000000 --- a/sdk/security/arm-security/src/models/settingsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SettingsList, - Site, - Software, - SqlServerVulnerabilityProperties, - SubAssessmentStatus, - SuppressionAlertsScope, - ThresholdCustomAlertRule, - 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 deleted file mode 100644 index 16d53638fabd..000000000000 --- a/sdk/security/arm-security/src/models/softwareInventoriesMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index ffa9771f7eb8..000000000000 --- a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentBaselineRulesMappers.ts +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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 deleted file mode 100644 index e410464eff2a..000000000000 --- a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScanResultsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index ffc403e3625a..000000000000 --- a/sdk/security/arm-security/src/models/sqlVulnerabilityAssessmentScansMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts b/sdk/security/arm-security/src/models/standardsMappers.ts similarity index 59% rename from sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts rename to sdk/security/arm-security/src/models/standardsMappers.ts index 497f5a0a8b0b..7a2d03ca143c 100644 --- a/sdk/security/arm-security/src/models/iotSecuritySolutionsAnalyticsAggregatedAlertMappers.ts +++ b/sdk/security/arm-security/src/models/standardsMappers.ts @@ -7,9 +7,14 @@ */ export { - discriminators, + AssignedComponentItem, + AssignedStandardItem, + Assignment, + AssignmentPropertiesAdditionalData, CloudError, - IoTSecurityAggregatedAlert, - IoTSecurityAggregatedAlertList, - IoTSecurityAggregatedAlertPropertiesTopDevicesListItem + Standard, + StandardComponentProperties, + StandardList, + SystemData, + TrackedResource } from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/subAssessmentsMappers.ts b/sdk/security/arm-security/src/models/subAssessmentsMappers.ts deleted file mode 100644 index 5e4c6901a101..000000000000 --- a/sdk/security/arm-security/src/models/subAssessmentsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecuritySubAssessmentList, - 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/tasksMappers.ts b/sdk/security/arm-security/src/models/tasksMappers.ts deleted file mode 100644 index 1f079e13f684..000000000000 --- a/sdk/security/arm-security/src/models/tasksMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - SecurityTaskList, - 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/topologyMappers.ts b/sdk/security/arm-security/src/models/topologyMappers.ts deleted file mode 100644 index e4d48be2f7d0..000000000000 --- a/sdk/security/arm-security/src/models/topologyMappers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * 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, - TopologyList, - TopologyResource, - TopologySingleResource, - TopologySingleResourceChild, - TopologySingleResourceParent -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts deleted file mode 100644 index 15b4b89f160c..000000000000 --- a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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, - WorkspaceSettingList -} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts deleted file mode 100644 index 14a11210a0fc..000000000000 --- a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts +++ /dev/null @@ -1,248 +0,0 @@ -/* - * 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/adaptiveApplicationControlsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AdaptiveApplicationControls. */ -export class AdaptiveApplicationControls { - private readonly client: SecurityCenterContext; - - /** - * Create a AdaptiveApplicationControls. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets a list of application control machine groups for the subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.AdaptiveApplicationControlsListOptionalParams): Promise; - /** - * @param callback The callback - */ - 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 { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Gets 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 machine group - * @param callback The callback - */ - get(groupName: string, callback: msRest.ServiceCallback): void; - /** - * @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 { - return this.client.sendOperationRequest( - { - groupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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.AdaptiveApplicationControlGroup, options?: msRest.RequestOptionsBase): Promise; - /** - * @param groupName Name of an application control machine group - * @param body - * @param callback The callback - */ - put(groupName: string, body: Models.AdaptiveApplicationControlGroup, callback: msRest.ServiceCallback): void; - /** - * @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.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, - body, - options - }, - putOperationSpec, - callback) as Promise; - } - - /** - * 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 machine group - * @param callback The callback - */ - deleteMethod(groupName: string, callback: msRest.ServiceCallback): void; - /** - * @param groupName Name of an application control machine group - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - groupName, - options - }, - deleteMethodOperationSpec, - callback); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/applicationWhitelistings", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7, - Parameters.includePathRecommendations, - Parameters.summary - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroups - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const putOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.AdaptiveApplicationControlGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts deleted file mode 100644 index c4878b87fbf7..000000000000 --- a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts +++ /dev/null @@ -1,306 +0,0 @@ -/* - * 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 msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/adaptiveNetworkHardeningsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AdaptiveNetworkHardenings. */ -export class AdaptiveNetworkHardenings { - private readonly client: SecurityCenterContext; - - /** - * Create a AdaptiveNetworkHardenings. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended 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 - * @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 a single Adaptive Network Hardening 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 adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: 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 adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param callback The callback - */ - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: 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 adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Enforces the given rules on the NSG(s) listed in the request - * @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 adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param [options] The optional parameters - * @returns Promise - */ - enforce(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: Models.AdaptiveNetworkHardeningEnforceRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginEnforce(resourceGroupName,resourceNamespace,resourceType,resourceName,adaptiveNetworkHardeningResourceName,body,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Enforces the given rules on the NSG(s) listed in the request - * @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 adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param [options] The optional parameters - * @returns Promise - */ - beginEnforce(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: Models.AdaptiveNetworkHardeningEnforceRequest, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - body, - options - }, - beginEnforceOperationSpec, - options); - } - - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @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; - } -} - -// 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/adaptiveNetworkHardenings", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardeningsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.adaptiveNetworkHardeningResourceName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardening - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginEnforceOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.adaptiveNetworkHardeningResourceName, - Parameters.adaptiveNetworkHardeningEnforceAction - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.AdaptiveNetworkHardeningEnforceRequest, - required: true - } - }, - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardeningsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts deleted file mode 100644 index 085123332b48..000000000000 --- a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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/advancedThreatProtectionMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AdvancedThreatProtection. */ -export class AdvancedThreatProtection { - private readonly client: SecurityCenterContext; - - /** - * Create a AdvancedThreatProtection. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets the Advanced Threat Protection settings for the specified resource. - * @param resourceId The identifier of the resource. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param callback The callback - */ - get(resourceId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates the Advanced Threat Protection settings on a specified resource. - * @param resourceId The identifier of the resource. - * @param advancedThreatProtectionSetting Advanced Threat Protection Settings - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceId: string, advancedThreatProtectionSetting: Models.AdvancedThreatProtectionSetting, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param advancedThreatProtectionSetting Advanced Threat Protection Settings - * @param callback The callback - */ - create(resourceId: string, advancedThreatProtectionSetting: Models.AdvancedThreatProtectionSetting, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param advancedThreatProtectionSetting Advanced Threat Protection Settings - * @param options The optional parameters - * @param callback The callback - */ - create(resourceId: string, advancedThreatProtectionSetting: Models.AdvancedThreatProtectionSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceId: string, advancedThreatProtectionSetting: Models.AdvancedThreatProtectionSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - advancedThreatProtectionSetting, - options - }, - createOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}", - urlParameters: [ - Parameters.resourceId, - Parameters.settingName0 - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AdvancedThreatProtectionSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName}", - urlParameters: [ - Parameters.resourceId, - Parameters.settingName0 - ], - queryParameters: [ - Parameters.apiVersion2 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "advancedThreatProtectionSetting", - mapper: { - ...Mappers.AdvancedThreatProtectionSetting, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.AdvancedThreatProtectionSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts deleted file mode 100644 index 12abd12e522a..000000000000 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ /dev/null @@ -1,948 +0,0 @@ -/* - * 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 msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/alertsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Alerts. */ -export class Alerts { - private readonly client: SecurityCenterContext; - - /** - * Create a Alerts. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * List all the alerts that are 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; - } - - /** - * List all the alerts that are associated with the resource group - * @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 - */ - 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. - * @param callback The callback - */ - listByResourceGroup(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 - */ - 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, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * List all the alerts that are associated with the subscription that are stored in a specific - * location - * @param [options] The optional parameters - * @returns Promise - */ - listSubscriptionLevelByRegion(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - listSubscriptionLevelByRegion(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listSubscriptionLevelByRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSubscriptionLevelByRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listSubscriptionLevelByRegionOperationSpec, - callback) as Promise; - } - - /** - * List all the alerts that are associated with the resource group that are stored in a specific - * location - * @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 - */ - 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 - */ - 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 - */ - 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 - }, - 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 - */ - getSubscriptionLevel(alertName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param alertName Name of the alert object - * @param callback The callback - */ - getSubscriptionLevel(alertName: string, callback: msRest.ServiceCallback): void; - /** - * @param alertName Name of the alert object - * @param options The optional parameters - * @param callback The callback - */ - 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 - }, - getSubscriptionLevelOperationSpec, - callback) as Promise; - } - - /** - * Get an alert that is associated a resource group or a resource in a resource group - * @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 - */ - 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 - */ - 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 - * is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - 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 - }, - getResourceGroupLevelOperationSpec, - callback) as Promise; - } - - /** - * Update the alert's state - * @param alertName Name of the alert object - * @param [options] The optional parameters - * @returns Promise - */ - updateSubscriptionLevelStateToDismiss(alertName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param alertName Name of the alert object - * @param callback The callback - */ - updateSubscriptionLevelStateToDismiss(alertName: string, callback: msRest.ServiceCallback): void; - /** - * @param alertName Name of the alert object - * @param options The optional parameters - * @param callback The callback - */ - 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 - }, - updateSubscriptionLevelStateToDismissOperationSpec, - callback); - } - - /** - * Update the alert's state - * @param alertName Name of the alert object - * @param [options] The optional parameters - * @returns Promise - */ - updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param alertName Name of the alert object - * @param callback The callback - */ - updateSubscriptionLevelStateToResolve(alertName: string, callback: msRest.ServiceCallback): void; - /** - * @param alertName Name of the alert object - * @param options The optional parameters - * @param callback The callback - */ - updateSubscriptionLevelStateToResolve(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionLevelStateToResolve(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - alertName, - options - }, - updateSubscriptionLevelStateToResolveOperationSpec, - callback); - } - - /** - * Update the alert's state - * @param alertName Name of the alert object - * @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); - } - - /** - * 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 - */ - 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 - */ - 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 - * is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - 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 - }, - updateResourceGroupLevelStateToDismissOperationSpec, - 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 - */ - 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 - */ - 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 - * is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - 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 - }, - 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. - * @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; - } - - /** - * List all the alerts that are associated with the resource group - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } - - /** - * List all the alerts that are associated with the subscription that are stored in a specific - * location - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listSubscriptionLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - 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 - */ - 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 - }, - listSubscriptionLevelByRegionNextOperationSpec, - callback) as Promise; - } - - /** - * List all the alerts that are associated with the resource group that are stored in a specific - * location - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listResourceGroupLevelByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - 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 - */ - 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 - }, - listResourceGroupLevelByRegionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/alerts", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/alerts", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listSubscriptionLevelByRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listResourceGroupLevelByRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getSubscriptionLevelOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Alert - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getResourceGroupLevelOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Alert - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateSubscriptionLevelStateToDismissOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName - ], - queryParameters: [ - 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 - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateSubscriptionLevelStateToActivateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName - ], - queryParameters: [ - 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 - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateResourceGroupLevelStateToDismissOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateResourceGroupLevelStateToActivateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - 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", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listSubscriptionLevelByRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listResourceGroupLevelByRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion11 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts deleted file mode 100644 index ddf94725c6ab..000000000000 --- a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts +++ /dev/null @@ -1,295 +0,0 @@ -/* - * 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/alertsSuppressionRulesMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AlertsSuppressionRules. */ -export class AlertsSuppressionRules { - private readonly client: SecurityCenterContext; - - /** - * Create a AlertsSuppressionRules. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * List of all the dismiss rules for the given subscription - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.AlertsSuppressionRulesListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: Models.AlertsSuppressionRulesListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.AlertsSuppressionRulesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param [options] The optional parameters - * @returns Promise - */ - get(alertsSuppressionRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param callback The callback - */ - get(alertsSuppressionRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param options The optional parameters - * @param callback The callback - */ - get(alertsSuppressionRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(alertsSuppressionRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - alertsSuppressionRuleName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Update existing rule or create new rule if it doesn't exist - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param alertsSuppressionRule Suppression rule object - * @param [options] The optional parameters - * @returns Promise - */ - update(alertsSuppressionRuleName: string, alertsSuppressionRule: Models.AlertsSuppressionRule, options?: msRest.RequestOptionsBase): Promise; - /** - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param alertsSuppressionRule Suppression rule object - * @param callback The callback - */ - update(alertsSuppressionRuleName: string, alertsSuppressionRule: Models.AlertsSuppressionRule, callback: msRest.ServiceCallback): void; - /** - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param alertsSuppressionRule Suppression rule object - * @param options The optional parameters - * @param callback The callback - */ - update(alertsSuppressionRuleName: string, alertsSuppressionRule: Models.AlertsSuppressionRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(alertsSuppressionRuleName: string, alertsSuppressionRule: Models.AlertsSuppressionRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - alertsSuppressionRuleName, - alertsSuppressionRule, - options - }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Delete dismiss alert rule for this subscription. - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(alertsSuppressionRuleName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param callback The callback - */ - deleteMethod(alertsSuppressionRuleName: string, callback: msRest.ServiceCallback): void; - /** - * @param alertsSuppressionRuleName The unique name of the suppression alert rule - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(alertsSuppressionRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(alertsSuppressionRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - alertsSuppressionRuleName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * List of all the dismiss rules for the given 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.AlertsSuppressionRulesListNextOptionalParams): 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.AlertsSuppressionRulesListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.AlertsSuppressionRulesListNextOptionalParams | 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/alertsSuppressionRules", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.alertType0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertsSuppressionRulesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.alertsSuppressionRuleName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertsSuppressionRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.alertsSuppressionRuleName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "alertsSuppressionRule", - mapper: { - ...Mappers.AlertsSuppressionRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.AlertsSuppressionRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules/{alertsSuppressionRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.alertsSuppressionRuleName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.alertType0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AlertsSuppressionRulesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/allowedConnections.ts b/sdk/security/arm-security/src/operations/allowedConnections.ts deleted file mode 100644 index 8fdcb9047656..000000000000 --- a/sdk/security/arm-security/src/operations/allowedConnections.ts +++ /dev/null @@ -1,293 +0,0 @@ -/* - * 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/allowedConnectionsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AllowedConnections. */ -export class AllowedConnections { - private readonly client: SecurityCenterContext; - - /** - * Create a AllowedConnections. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets the list of all possible traffic between resources 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 the list of all possible traffic between resources for the 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; - } - - /** - * Gets the list of all possible traffic between resources for the subscription and location, based - * on connection type. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param connectionType The type of allowed connections (Internal, External). Possible values - * include: 'Internal', 'External' - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, connectionType: Models.ConnectionType, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param connectionType The type of allowed connections (Internal, External). Possible values - * include: 'Internal', 'External' - * @param callback The callback - */ - get(resourceGroupName: string, connectionType: Models.ConnectionType, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param connectionType The type of allowed connections (Internal, External). Possible values - * include: 'Internal', 'External' - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, connectionType: Models.ConnectionType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, connectionType: Models.ConnectionType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - connectionType, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets the list of all possible traffic between resources 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; - } - - /** - * Gets the list of all possible traffic between resources for the subscription and location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByHomeRegionNext(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 - */ - listByHomeRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByHomeRegionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/allowedConnections", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AllowedConnectionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AllowedConnectionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections/{connectionType}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.connectionType - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AllowedConnectionsResource - }, - 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.AllowedConnectionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AllowedConnectionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/assessments.ts b/sdk/security/arm-security/src/operations/assessments.ts deleted file mode 100644 index fc98748d377d..000000000000 --- a/sdk/security/arm-security/src/operations/assessments.ts +++ /dev/null @@ -1,322 +0,0 @@ -/* - * 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/assessmentsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Assessments. */ -export class Assessments { - private readonly client: SecurityCenterContext; - - /** - * Create a Assessments. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Get security assessments on all your scanned resources inside a scope - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param [options] The optional parameters - * @returns Promise - */ - list(scope: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param callback The callback - */ - list(scope: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @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 a security assessment on your scanned resource - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceId: string, assessmentName: string, options?: Models.AssessmentsGetOptionalParams): Promise; - /** - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param callback The callback - */ - get(resourceId: string, assessmentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param options The optional parameters - * @param callback The callback - */ - get(resourceId: string, assessmentName: string, options: Models.AssessmentsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceId: string, assessmentName: string, options?: Models.AssessmentsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - assessmentName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Create a security assessment on your resource. An assessment metadata that describes this - * assessment must be predefined with the same name before inserting the assessment result - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param assessment Calculated assessment on a pre-defined assessment metadata - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceId: string, assessmentName: string, assessment: Models.SecurityAssessment, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param assessment Calculated assessment on a pre-defined assessment metadata - * @param callback The callback - */ - createOrUpdate(resourceId: string, assessmentName: string, assessment: Models.SecurityAssessment, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param assessment Calculated assessment on a pre-defined assessment metadata - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceId: string, assessmentName: string, assessment: Models.SecurityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceId: string, assessmentName: string, assessment: Models.SecurityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - assessmentName, - assessment, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Delete a security assessment on your resource. An assessment metadata that describes this - * assessment must be predefined with the same name before inserting the assessment result - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceId: string, assessmentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param callback The callback - */ - deleteMethod(resourceId: string, assessmentName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceId: string, assessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceId: string, assessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - assessmentName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Get security assessments on all your scanned resources inside 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; - /** - * @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: "{scope}/providers/Microsoft.Security/assessments", - urlParameters: [ - Parameters.scope - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}", - urlParameters: [ - Parameters.resourceId, - Parameters.assessmentName - ], - queryParameters: [ - Parameters.apiVersion7, - Parameters.expand - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}", - urlParameters: [ - Parameters.resourceId, - Parameters.assessmentName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "assessment", - mapper: { - ...Mappers.SecurityAssessment, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessment - }, - 201: { - bodyMapper: Mappers.SecurityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}", - urlParameters: [ - Parameters.resourceId, - Parameters.assessmentName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - 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.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts deleted file mode 100644 index 94c0216a7bbc..000000000000 --- a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts +++ /dev/null @@ -1,441 +0,0 @@ -/* - * 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/assessmentsMetadataMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AssessmentsMetadata. */ -export class AssessmentsMetadata { - private readonly client: SecurityCenterContext; - - /** - * Create a AssessmentsMetadata. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Get metadata information on all assessment 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 metadata information on an assessment type - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param [options] The optional parameters - * @returns Promise - */ - get(assessmentMetadataName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param callback The callback - */ - get(assessmentMetadataName: string, callback: msRest.ServiceCallback): void; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param options The optional parameters - * @param callback The callback - */ - get(assessmentMetadataName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(assessmentMetadataName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - assessmentMetadataName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Get metadata information on all assessment types in a specific subscription - * @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; - } - - /** - * Get metadata information on an assessment type in a specific subscription - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param [options] The optional parameters - * @returns Promise - */ - getInSubscription(assessmentMetadataName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param callback The callback - */ - getInSubscription(assessmentMetadataName: string, callback: msRest.ServiceCallback): void; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param options The optional parameters - * @param callback The callback - */ - getInSubscription(assessmentMetadataName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getInSubscription(assessmentMetadataName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - assessmentMetadataName, - options - }, - getInSubscriptionOperationSpec, - callback) as Promise; - } - - /** - * Create metadata information on an assessment type in a specific subscription - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param assessmentMetadata AssessmentMetadata object - * @param [options] The optional parameters - * @returns Promise - */ - createInSubscription(assessmentMetadataName: string, assessmentMetadata: Models.SecurityAssessmentMetadata, options?: msRest.RequestOptionsBase): Promise; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param assessmentMetadata AssessmentMetadata object - * @param callback The callback - */ - createInSubscription(assessmentMetadataName: string, assessmentMetadata: Models.SecurityAssessmentMetadata, callback: msRest.ServiceCallback): void; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param assessmentMetadata AssessmentMetadata object - * @param options The optional parameters - * @param callback The callback - */ - createInSubscription(assessmentMetadataName: string, assessmentMetadata: Models.SecurityAssessmentMetadata, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createInSubscription(assessmentMetadataName: string, assessmentMetadata: Models.SecurityAssessmentMetadata, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - assessmentMetadataName, - assessmentMetadata, - options - }, - createInSubscriptionOperationSpec, - callback) as Promise; - } - - /** - * Delete metadata information on an assessment type in a specific subscription, will cause the - * deletion of all the assessments of that type in that subscription - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param [options] The optional parameters - * @returns Promise - */ - deleteInSubscription(assessmentMetadataName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param callback The callback - */ - deleteInSubscription(assessmentMetadataName: string, callback: msRest.ServiceCallback): void; - /** - * @param assessmentMetadataName The Assessment Key - Unique key for the assessment type - * @param options The optional parameters - * @param callback The callback - */ - deleteInSubscription(assessmentMetadataName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteInSubscription(assessmentMetadataName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - assessmentMetadataName, - options - }, - deleteInSubscriptionOperationSpec, - callback); - } - - /** - * Get metadata information on all assessment types - * @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; - } - - /** - * Get metadata information on all assessment types in a specific subscription - * @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 listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "providers/Microsoft.Security/assessmentMetadata", - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentMetadataList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}", - urlParameters: [ - Parameters.assessmentMetadataName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentMetadata - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentMetadataList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getInSubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}", - urlParameters: [ - Parameters.assessmentMetadataName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentMetadata - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createInSubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}", - urlParameters: [ - Parameters.assessmentMetadataName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "assessmentMetadata", - mapper: { - ...Mappers.SecurityAssessmentMetadata, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentMetadata - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteInSubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/assessmentMetadata/{assessmentMetadataName}", - urlParameters: [ - Parameters.assessmentMetadataName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 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.SecurityAssessmentMetadataList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityAssessmentMetadataList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/assignments.ts b/sdk/security/arm-security/src/operations/assignments.ts new file mode 100644 index 000000000000..7f9106ec15bd --- /dev/null +++ b/sdk/security/arm-security/src/operations/assignments.ts @@ -0,0 +1,429 @@ +/* + * 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/assignmentsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a Assignments. */ +export class Assignments { + private readonly client: SecurityCenterContext; + + /** + * Create a Assignments. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get a list of all relevant standardAssignments over a subscription level scope + * @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; + } + + /** + * Get a list of all relevant standardAssignments available for scope + * @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 + */ + list(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 + */ + list(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 + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a specific standard assignment for the requested scope by resourceId + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, assignmentId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param callback The callback + */ + get(resourceGroupName: string, assignmentId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, assignmentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, assignmentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + assignmentId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a security assignment on the given scope. Will create/update the required standard + * assignment. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param assignment Custom standard assignment over a pre-defined scope + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, assignmentId: string, assignment: Models.Assignment, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param assignment Custom standard assignment over a pre-defined scope + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, assignmentId: string, assignment: Models.Assignment, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param assignment Custom standard assignment over a pre-defined scope + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, assignmentId: string, assignment: Models.Assignment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, assignmentId: string, assignment: Models.Assignment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + assignmentId, + assignment, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete a standard assignment over a given scope + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, assignmentId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, assignmentId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param assignmentId The security assignment key - unique key for the standard assignment + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, assignmentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, assignmentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + assignmentId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Get a list of all relevant standardAssignments over a subscription level scope + * @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; + } + + /** + * Get a list of all relevant standardAssignments available for 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; + /** + * @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 listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/assignments", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AssignmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/assignments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AssignmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/assignments/{assignmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.assignmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Assignment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/assignments/{assignmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.assignmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "assignment", + mapper: { + ...Mappers.Assignment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Assignment + }, + 201: { + bodyMapper: Mappers.Assignment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/assignments/{assignmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.assignmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AssignmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AssignmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts deleted file mode 100644 index 4047123752c2..000000000000 --- a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* - * 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/autoProvisioningSettingsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a AutoProvisioningSettings. */ -export class AutoProvisioningSettings { - private readonly client: SecurityCenterContext; - - /** - * Create a AutoProvisioningSettings. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Exposes the auto provisioning settings of the subscriptions - * @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 setting - * @param settingName Auto provisioning setting key - * @param [options] The optional parameters - * @returns Promise - */ - get(settingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param settingName Auto provisioning setting key - * @param callback The callback - */ - get(settingName: string, callback: msRest.ServiceCallback): void; - /** - * @param settingName Auto provisioning setting key - * @param options The optional parameters - * @param callback The callback - */ - get(settingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(settingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - settingName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Details of a specific setting - * @param settingName Auto provisioning setting key - * @param setting Auto provisioning setting key - * @param [options] The optional parameters - * @returns Promise - */ - create(settingName: string, setting: Models.AutoProvisioningSetting, options?: msRest.RequestOptionsBase): Promise; - /** - * @param settingName Auto provisioning setting key - * @param setting Auto provisioning setting key - * @param callback The callback - */ - create(settingName: string, setting: Models.AutoProvisioningSetting, callback: msRest.ServiceCallback): void; - /** - * @param settingName Auto provisioning setting key - * @param setting Auto provisioning setting key - * @param options The optional parameters - * @param callback The callback - */ - create(settingName: string, setting: Models.AutoProvisioningSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(settingName: string, setting: Models.AutoProvisioningSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - settingName, - setting, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Exposes the auto provisioning settings of the subscriptions - * @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/autoProvisioningSettings", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutoProvisioningSettingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings/{settingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.settingName1 - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutoProvisioningSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings/{settingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.settingName1 - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "setting", - mapper: { - ...Mappers.AutoProvisioningSetting, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.AutoProvisioningSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutoProvisioningSettingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/automations.ts b/sdk/security/arm-security/src/operations/automations.ts deleted file mode 100644 index 7efe058ef121..000000000000 --- a/sdk/security/arm-security/src/operations/automations.ts +++ /dev/null @@ -1,504 +0,0 @@ -/* - * 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/automationsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Automations. */ -export class Automations { - private readonly client: SecurityCenterContext; - - /** - * Create a Automations. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Lists all the security automations in the specified subscription. Use the 'nextLink' property in - * the response to get the next page of security automations for the specified 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; - } - - /** - * Lists all the security automations in the specified resource group. Use the 'nextLink' property - * in the response to get the next page of security automations for the specified resource group. - * @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 - */ - 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. - * @param callback The callback - */ - listByResourceGroup(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 - */ - 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, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Retrieves information about the model of a security automation. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, automationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param callback The callback - */ - get(resourceGroupName: string, automationName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, automationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, automationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - automationName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a security automation. If a security automation is already created and a - * subsequent request is issued for the same automation id, then it will be updated. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param automation The security automation resource - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, automationName: string, automation: Models.Automation, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param automation The security automation resource - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, automationName: string, automation: Models.Automation, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param automation The security automation resource - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, automationName: string, automation: Models.Automation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, automationName: string, automation: Models.Automation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - automationName, - automation, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Deletes a security automation. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, automationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, automationName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, automationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, automationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - automationName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Validates the security automation model before create or update. Any validation errors are - * returned to the client. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param automation The security automation resource - * @param [options] The optional parameters - * @returns Promise - */ - validate(resourceGroupName: string, automationName: string, automation: Models.Automation, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param automation The security automation resource - * @param callback The callback - */ - validate(resourceGroupName: string, automationName: string, automation: Models.Automation, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param automationName The security automation name. - * @param automation The security automation resource - * @param options The optional parameters - * @param callback The callback - */ - validate(resourceGroupName: string, automationName: string, automation: Models.Automation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - validate(resourceGroupName: string, automationName: string, automation: Models.Automation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - automationName, - automation, - options - }, - validateOperationSpec, - callback) as Promise; - } - - /** - * Lists all the security automations in the specified subscription. Use the 'nextLink' property in - * the response to get the next page of security automations for the specified 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; - } - - /** - * Lists all the security automations in the specified resource group. Use the 'nextLink' property - * in the response to get the next page of security automations for the specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/automations", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutomationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/automations", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutomationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/automations/{automationName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Automation - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/automations/{automationName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "automation", - mapper: { - ...Mappers.Automation, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Automation - }, - 201: { - bodyMapper: Mappers.Automation - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/automations/{automationName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const validateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/automations/{automationName}/validate", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.automationName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "automation", - mapper: { - ...Mappers.Automation, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.AutomationValidationStatus - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutomationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AutomationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/complianceResults.ts b/sdk/security/arm-security/src/operations/complianceResults.ts deleted file mode 100644 index 66b2c70beaf6..000000000000 --- a/sdk/security/arm-security/src/operations/complianceResults.ts +++ /dev/null @@ -1,194 +0,0 @@ -/* - * 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/complianceResultsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a ComplianceResults. */ -export class ComplianceResults { - private readonly client: SecurityCenterContext; - - /** - * Create a ComplianceResults. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Security compliance results in the subscription - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param [options] The optional parameters - * @returns Promise - */ - list(scope: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param callback The callback - */ - list(scope: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @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; - } - - /** - * Security Compliance Result - * @param resourceId The identifier of the resource. - * @param complianceResultName name of the desired assessment compliance result - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceId: string, complianceResultName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param complianceResultName name of the desired assessment compliance result - * @param callback The callback - */ - get(resourceId: string, complianceResultName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param complianceResultName name of the desired assessment compliance result - * @param options The optional parameters - * @param callback The callback - */ - get(resourceId: string, complianceResultName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceId: string, complianceResultName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - complianceResultName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Security compliance results in 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: "{scope}/providers/Microsoft.Security/complianceResults", - urlParameters: [ - Parameters.scope - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComplianceResultList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{resourceId}/providers/Microsoft.Security/complianceResults/{complianceResultName}", - urlParameters: [ - Parameters.resourceId, - Parameters.complianceResultName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComplianceResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComplianceResultList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/compliances.ts b/sdk/security/arm-security/src/operations/compliances.ts deleted file mode 100644 index 03142366fd78..000000000000 --- a/sdk/security/arm-security/src/operations/compliances.ts +++ /dev/null @@ -1,200 +0,0 @@ -/* - * 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/compliancesMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Compliances. */ -export class Compliances { - private readonly client: SecurityCenterContext; - - /** - * Create a Compliances. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * The Compliance scores of the specific management group. - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param [options] The optional parameters - * @returns Promise - */ - list(scope: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param callback The callback - */ - list(scope: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @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; - } - - /** - * Details of a specific Compliance. - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param complianceName name of the Compliance - * @param [options] The optional parameters - * @returns Promise - */ - get(scope: string, complianceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param complianceName name of the Compliance - * @param callback The callback - */ - get(scope: string, complianceName: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param complianceName name of the Compliance - * @param options The optional parameters - * @param callback The callback - */ - get(scope: string, complianceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(scope: string, complianceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - scope, - complianceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * The Compliance scores of the specific management group. - * @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: "{scope}/providers/Microsoft.Security/compliances", - urlParameters: [ - Parameters.scope - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComplianceList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.Security/compliances/{complianceName}", - urlParameters: [ - Parameters.scope, - Parameters.complianceName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Compliance - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComplianceList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/connectors.ts b/sdk/security/arm-security/src/operations/connectors.ts deleted file mode 100644 index c54625cfcef6..000000000000 --- a/sdk/security/arm-security/src/operations/connectors.ts +++ /dev/null @@ -1,296 +0,0 @@ -/* - * 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 deleted file mode 100644 index d0bb106a779a..000000000000 --- a/sdk/security/arm-security/src/operations/deviceOperations.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 deleted file mode 100644 index d4260ab33cdd..000000000000 --- a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts +++ /dev/null @@ -1,322 +0,0 @@ -/* - * 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/deviceSecurityGroupsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a DeviceSecurityGroups. */ -export class DeviceSecurityGroups { - private readonly client: SecurityCenterContext; - - /** - * Create a DeviceSecurityGroups. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Use this method get the list of device security groups for the specified IoT Hub resource. - * @param resourceId The identifier of the resource. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceId: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get the device security group for the specified IoT Hub resource. - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param callback The callback - */ - get(resourceId: string, deviceSecurityGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceId: string, deviceSecurityGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - deviceSecurityGroupName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Use this method to creates or updates the device security group on a specified IoT Hub resource. - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param deviceSecurityGroup Security group object. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param deviceSecurityGroup Security group object. - * @param callback The callback - */ - createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param deviceSecurityGroup Security group object. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - deviceSecurityGroupName, - deviceSecurityGroup, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * User this method to deletes the device security group. - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param callback The callback - */ - deleteMethod(resourceId: string, deviceSecurityGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceId The identifier of the resource. - * @param deviceSecurityGroupName The name of the device security group. Note that the name of the - * device security group is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceId: string, deviceSecurityGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceId, - deviceSecurityGroupName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Use this method get the list of device security groups 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?: 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: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups", - urlParameters: [ - Parameters.resourceId - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DeviceSecurityGroupList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", - urlParameters: [ - Parameters.resourceId, - Parameters.deviceSecurityGroupName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DeviceSecurityGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", - urlParameters: [ - Parameters.resourceId, - Parameters.deviceSecurityGroupName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "deviceSecurityGroup", - mapper: { - ...Mappers.DeviceSecurityGroup, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DeviceSecurityGroup - }, - 201: { - bodyMapper: Mappers.DeviceSecurityGroup - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", - urlParameters: [ - Parameters.resourceId, - Parameters.deviceSecurityGroupName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - 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.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DeviceSecurityGroupList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/devicesForHub.ts b/sdk/security/arm-security/src/operations/devicesForHub.ts deleted file mode 100644 index d065ae684345..000000000000 --- a/sdk/security/arm-security/src/operations/devicesForHub.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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 deleted file mode 100644 index 171c91d18082..000000000000 --- a/sdk/security/arm-security/src/operations/devicesForSubscription.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* - * 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 deleted file mode 100644 index 12b10b2963b5..000000000000 --- a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts +++ /dev/null @@ -1,289 +0,0 @@ -/* - * 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/discoveredSecuritySolutionsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a DiscoveredSecuritySolutions. */ -export class DiscoveredSecuritySolutions { - private readonly client: SecurityCenterContext; - - /** - * Create a DiscoveredSecuritySolutions. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets a list of discovered 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 list of discovered Security Solutions for the 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; - } - - /** - * Gets a specific discovered Security Solution. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param discoveredSecuritySolutionName Name of a discovered security solution. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, discoveredSecuritySolutionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param discoveredSecuritySolutionName Name of a discovered security solution. - * @param callback The callback - */ - get(resourceGroupName: string, discoveredSecuritySolutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param discoveredSecuritySolutionName Name of a discovered security solution. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, discoveredSecuritySolutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, discoveredSecuritySolutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - discoveredSecuritySolutionName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of discovered 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; - } - - /** - * Gets a list of discovered Security Solutions for the subscription and location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByHomeRegionNext(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 - */ - listByHomeRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByHomeRegionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/discoveredSecuritySolutions", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DiscoveredSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DiscoveredSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/discoveredSecuritySolutions/{discoveredSecuritySolutionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.discoveredSecuritySolutionName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DiscoveredSecuritySolution - }, - 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.DiscoveredSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DiscoveredSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts deleted file mode 100644 index b6b9b9bd6de1..000000000000 --- a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts +++ /dev/null @@ -1,289 +0,0 @@ -/* - * 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/externalSecuritySolutionsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a ExternalSecuritySolutions. */ -export class ExternalSecuritySolutions { - private readonly client: SecurityCenterContext; - - /** - * Create a ExternalSecuritySolutions. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets a list of external 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 list of external Security Solutions for the 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; - } - - /** - * Gets a specific external Security Solution. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param externalSecuritySolutionsName Name of an external security solution. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, externalSecuritySolutionsName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param externalSecuritySolutionsName Name of an external security solution. - * @param callback The callback - */ - get(resourceGroupName: string, externalSecuritySolutionsName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param externalSecuritySolutionsName Name of an external security solution. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, externalSecuritySolutionsName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, externalSecuritySolutionsName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - externalSecuritySolutionsName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of external 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; - } - - /** - * Gets a list of external Security Solutions for the subscription and location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByHomeRegionNext(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 - */ - listByHomeRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByHomeRegionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/externalSecuritySolutions", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExternalSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExternalSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/ExternalSecuritySolutions/{externalSecuritySolutionsName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.externalSecuritySolutionsName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExternalSecuritySolution - }, - 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.ExternalSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExternalSecuritySolutionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 68ed9bed7f43..e82df6e7e5ca 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -7,59 +7,5 @@ * regenerated. */ -export * from "./complianceResults"; -export * from "./pricings"; -export * from "./advancedThreatProtection"; -export * from "./deviceSecurityGroups"; -export * from "./iotSecuritySolution"; -export * from "./iotSecuritySolutionAnalytics"; -export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert"; -export * from "./iotSecuritySolutionsAnalyticsRecommendation"; -export * from "./locations"; -export * from "./operations"; -export * from "./tasks"; -export * from "./autoProvisioningSettings"; -export * from "./compliances"; -export * from "./informationProtectionPolicies"; -export * from "./securityContacts"; -export * from "./workspaceSettings"; -export * from "./regulatoryComplianceStandards"; -export * from "./regulatoryComplianceControls"; -export * from "./regulatoryComplianceAssessments"; -export * from "./subAssessments"; -export * from "./automations"; -export * from "./alertsSuppressionRules"; -export * from "./serverVulnerabilityAssessmentOperations"; -export * from "./assessmentsMetadata"; -export * from "./assessments"; -export * from "./adaptiveApplicationControls"; -export * from "./adaptiveNetworkHardenings"; -export * from "./allowedConnections"; -export * from "./topology"; -export * from "./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"; +export * from "./standards"; +export * from "./assignments"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts deleted file mode 100644 index 5c5cf260383a..000000000000 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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/informationProtectionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a InformationProtectionPolicies. */ -export class InformationProtectionPolicies { - private readonly client: SecurityCenterContext; - - /** - * Create a InformationProtectionPolicies. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Details of the information protection policy. - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param informationProtectionPolicyName Name of the information protection policy. Possible - * values include: 'effective', 'custom' - * @param [options] The optional parameters - * @returns Promise - */ - get(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param informationProtectionPolicyName Name of the information protection policy. Possible - * values include: 'effective', 'custom' - * @param callback The callback - */ - get(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param informationProtectionPolicyName Name of the information protection policy. Possible - * values include: 'effective', 'custom' - * @param options The optional parameters - * @param callback The callback - */ - get(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - scope, - informationProtectionPolicyName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Details of the information protection policy. - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param informationProtectionPolicyName Name of the information protection policy. Possible - * values include: 'effective', 'custom' - * @param informationProtectionPolicy Information protection policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, informationProtectionPolicy: Models.InformationProtectionPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param informationProtectionPolicyName Name of the information protection policy. Possible - * values include: 'effective', 'custom' - * @param informationProtectionPolicy Information protection policy. - * @param callback The callback - */ - createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, informationProtectionPolicy: Models.InformationProtectionPolicy, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param informationProtectionPolicyName Name of the information protection policy. Possible - * values include: 'effective', 'custom' - * @param informationProtectionPolicy Information protection policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, informationProtectionPolicy: Models.InformationProtectionPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, informationProtectionPolicy: Models.InformationProtectionPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - scope, - informationProtectionPolicyName, - informationProtectionPolicy, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Information protection policies of a specific management group. - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param [options] The optional parameters - * @returns Promise - */ - list(scope: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param callback The callback - */ - list(scope: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @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; - } - - /** - * Information protection policies of a specific management group. - * @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 getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}", - urlParameters: [ - Parameters.scope, - Parameters.informationProtectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InformationProtectionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}", - urlParameters: [ - Parameters.scope, - Parameters.informationProtectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "informationProtectionPolicy", - mapper: { - ...Mappers.InformationProtectionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.InformationProtectionPolicy - }, - 201: { - bodyMapper: Mappers.InformationProtectionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.Security/informationProtectionPolicies", - urlParameters: [ - Parameters.scope - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InformationProtectionPolicyList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.InformationProtectionPolicyList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/ingestionSettings.ts b/sdk/security/arm-security/src/operations/ingestionSettings.ts deleted file mode 100644 index a4d734204199..000000000000 --- a/sdk/security/arm-security/src/operations/ingestionSettings.ts +++ /dev/null @@ -1,403 +0,0 @@ -/* - * 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 deleted file mode 100644 index 9ceecb1b073f..000000000000 --- a/sdk/security/arm-security/src/operations/iotAlertTypes.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* - * 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 deleted file mode 100644 index 16d9fddfdb19..000000000000 --- a/sdk/security/arm-security/src/operations/iotAlerts.ts +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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 deleted file mode 100644 index 6cb21509dddd..000000000000 --- a/sdk/security/arm-security/src/operations/iotDefenderSettings.ts +++ /dev/null @@ -1,329 +0,0 @@ -/* - * 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 deleted file mode 100644 index 74b977b0a508..000000000000 --- a/sdk/security/arm-security/src/operations/iotRecommendationTypes.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* - * 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 deleted file mode 100644 index dd5889cf0b89..000000000000 --- a/sdk/security/arm-security/src/operations/iotRecommendations.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* - * 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 deleted file mode 100644 index 518f7a04a3d4..000000000000 --- a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts +++ /dev/null @@ -1,504 +0,0 @@ -/* - * 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/iotSecuritySolutionMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a IotSecuritySolution. */ -export class IotSecuritySolution { - private readonly client: SecurityCenterContext; - - /** - * Create a IotSecuritySolution. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Use this method to get the list of IoT Security solutions by subscription. - * @param [options] The optional parameters - * @returns Promise - */ - listBySubscription(options?: Models.IotSecuritySolutionListBySubscriptionOptionalParams): Promise; - /** - * @param callback The callback - */ - listBySubscription(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listBySubscription(options: Models.IotSecuritySolutionListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.IotSecuritySolutionListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listBySubscriptionOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get the list IoT Security solutions organized by resource group. - * @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 - */ - listByResourceGroup(resourceGroupName: string, options?: Models.IotSecuritySolutionListByResourceGroupOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param callback The callback - */ - listByResourceGroup(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 - */ - listByResourceGroup(resourceGroupName: string, options: Models.IotSecuritySolutionListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.IotSecuritySolutionListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * User this method to get details of a specific IoT Security solution based on solution name - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Use this method to create or update yours IoT Security solution - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param iotSecuritySolutionData The security solution data - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, solutionName: string, iotSecuritySolutionData: Models.IoTSecuritySolutionModel, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param iotSecuritySolutionData The security solution data - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, solutionName: string, iotSecuritySolutionData: Models.IoTSecuritySolutionModel, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param iotSecuritySolutionData The security solution data - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, solutionName: string, iotSecuritySolutionData: Models.IoTSecuritySolutionModel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, solutionName: string, iotSecuritySolutionData: Models.IoTSecuritySolutionModel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - iotSecuritySolutionData, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Use this method to update existing IoT Security solution tags or user defined resources. To - * update other fields use the CreateOrUpdate method. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param updateIotSecuritySolutionData The security solution data - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, solutionName: string, updateIotSecuritySolutionData: Models.UpdateIotSecuritySolutionData, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param updateIotSecuritySolutionData The security solution data - * @param callback The callback - */ - update(resourceGroupName: string, solutionName: string, updateIotSecuritySolutionData: Models.UpdateIotSecuritySolutionData, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param updateIotSecuritySolutionData The security solution data - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, solutionName: string, updateIotSecuritySolutionData: Models.UpdateIotSecuritySolutionData, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, solutionName: string, updateIotSecuritySolutionData: Models.UpdateIotSecuritySolutionData, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - updateIotSecuritySolutionData, - options - }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Use this method to delete yours IoT Security solution - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, solutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Use this method to get the list of IoT Security solutions by subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listBySubscriptionNext(nextPageLink: string, options?: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams): 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: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: Models.IotSecuritySolutionListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySubscriptionNextOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get the list IoT Security solutions organized by resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: Models.IotSecuritySolutionListByResourceGroupNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - 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, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/iotSecuritySolutions", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionModel - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "iotSecuritySolutionData", - mapper: { - ...Mappers.IoTSecuritySolutionModel, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionModel - }, - 201: { - bodyMapper: Mappers.IoTSecuritySolutionModel - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "updateIotSecuritySolutionData", - mapper: { - ...Mappers.UpdateIotSecuritySolutionData, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionModel - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts deleted file mode 100644 index cbf20304731d..000000000000 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * 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/iotSecuritySolutionAnalyticsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a IotSecuritySolutionAnalytics. */ -export class IotSecuritySolutionAnalytics { - private readonly client: SecurityCenterContext; - - /** - * Create a IotSecuritySolutionAnalytics. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Use this method to get IoT security Analytics metrics in an array. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param callback The callback - */ - list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, solutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get IoT Security Analytics metrics. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, solutionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionAnalyticsModelList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecuritySolutionAnalyticsModel - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts deleted file mode 100644 index b1b6e7eb8ed4..000000000000 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts +++ /dev/null @@ -1,272 +0,0 @@ -/* - * 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/iotSecuritySolutionsAnalyticsAggregatedAlertMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a IotSecuritySolutionsAnalyticsAggregatedAlert. */ -export class IotSecuritySolutionsAnalyticsAggregatedAlert { - private readonly client: SecurityCenterContext; - - /** - * Create a IotSecuritySolutionsAnalyticsAggregatedAlert. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Use this method to get the aggregated alert list of yours IoT Security solution. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, solutionName: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param callback The callback - */ - list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, solutionName: string, options: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, solutionName: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get a single the aggregated alert of yours IoT Security solution. This - * aggregation is performed by alert name. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedAlertName Identifier of the aggregated alert. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedAlertName Identifier of the aggregated alert. - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedAlertName Identifier of the aggregated alert. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - aggregatedAlertName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Use this method to dismiss an aggregated IoT Security Solution Alert. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedAlertName Identifier of the aggregated alert. - * @param [options] The optional parameters - * @returns Promise - */ - dismiss(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedAlertName Identifier of the aggregated alert. - * @param callback The callback - */ - dismiss(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedAlertName Identifier of the aggregated alert. - * @param options The optional parameters - * @param callback The callback - */ - dismiss(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - dismiss(resourceGroupName: string, solutionName: string, aggregatedAlertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - aggregatedAlertName, - options - }, - dismissOperationSpec, - callback); - } - - /** - * Use this method to get the aggregated alert list of yours IoT Security solution. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams): 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.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams | 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.top - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecurityAggregatedAlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName, - Parameters.aggregatedAlertName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecurityAggregatedAlert - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const dismissOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedAlerts/{aggregatedAlertName}/dismiss", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName, - Parameters.aggregatedAlertName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.top - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecurityAggregatedAlertList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts deleted file mode 100644 index ca0efaadd443..000000000000 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts +++ /dev/null @@ -1,211 +0,0 @@ -/* - * 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/iotSecuritySolutionsAnalyticsRecommendationMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a IotSecuritySolutionsAnalyticsRecommendation. */ -export class IotSecuritySolutionsAnalyticsRecommendation { - private readonly client: SecurityCenterContext; - - /** - * Create a IotSecuritySolutionsAnalyticsRecommendation. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Use this method to get the aggregated security analytics recommendation of yours IoT Security - * solution. This aggregation is performed by recommendation name. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, solutionName: string, aggregatedRecommendationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, aggregatedRecommendationName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param aggregatedRecommendationName Name of the recommendation aggregated for this query. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, solutionName: string, aggregatedRecommendationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, solutionName: string, aggregatedRecommendationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - aggregatedRecommendationName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get the list of aggregated security analytics recommendations of yours IoT - * Security solution. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, solutionName: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param callback The callback - */ - list(resourceGroupName: string, solutionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param solutionName The name of the IoT Security solution. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, solutionName: string, options: Models.IotSecuritySolutionsAnalyticsRecommendationListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, solutionName: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - solutionName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Use this method to get the list of aggregated security analytics recommendations of yours IoT - * Security solution. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams): 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.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams | 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 getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations/{aggregatedRecommendationName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName, - Parameters.aggregatedRecommendationName - ], - queryParameters: [ - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecurityAggregatedRecommendation - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/iotSecuritySolutions/{solutionName}/analyticsModels/default/aggregatedRecommendations", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.solutionName - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.top - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecurityAggregatedRecommendationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion3, - Parameters.top - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.IoTSecurityAggregatedRecommendationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/iotSensors.ts b/sdk/security/arm-security/src/operations/iotSensors.ts deleted file mode 100644 index c53e96964ac8..000000000000 --- a/sdk/security/arm-security/src/operations/iotSensors.ts +++ /dev/null @@ -1,448 +0,0 @@ -/* - * 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 deleted file mode 100644 index de634105c550..000000000000 --- a/sdk/security/arm-security/src/operations/iotSites.ts +++ /dev/null @@ -1,246 +0,0 @@ -/* - * 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 deleted file mode 100644 index 391c6a53858c..000000000000 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ /dev/null @@ -1,716 +0,0 @@ -/* - * 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/jitNetworkAccessPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a JitNetworkAccessPolicies. */ -export class JitNetworkAccessPolicies { - private readonly client: SecurityCenterContext; - - /** - * Create a JitNetworkAccessPolicies. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Policies for protecting resources using Just-in-Time access control. - * @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; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @param [options] The optional parameters - * @returns Promise - */ - listByRegion(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - listByRegion(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listByRegion(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByRegion(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listByRegionOperationSpec, - callback) as Promise; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @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 - */ - 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. - * @param callback The callback - */ - listByResourceGroup(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 - */ - 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, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @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 - */ - listByResourceGroupAndRegion(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 - */ - listByResourceGroupAndRegion(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 - */ - listByResourceGroupAndRegion(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupAndRegion(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupAndRegionOperationSpec, - callback) as Promise; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, jitNetworkAccessPolicyName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param callback The callback - */ - get(resourceGroupName: string, jitNetworkAccessPolicyName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, jitNetworkAccessPolicyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, jitNetworkAccessPolicyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - jitNetworkAccessPolicyName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Create a policy for protecting resources using Just-in-Time access control - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param body - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param body - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param body - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - jitNetworkAccessPolicyName, - body, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Delete a Just-in-Time access control policy. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, jitNetworkAccessPolicyName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, jitNetworkAccessPolicyName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, jitNetworkAccessPolicyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, jitNetworkAccessPolicyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - jitNetworkAccessPolicyName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Initiate a JIT access from a specific Just-in-Time policy configuration. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param body - * @param [options] The optional parameters - * @returns Promise - */ - initiate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicyInitiateRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param body - * @param callback The callback - */ - initiate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicyInitiateRequest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy. - * @param body - * @param options The optional parameters - * @param callback The callback - */ - initiate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicyInitiateRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - initiate(resourceGroupName: string, jitNetworkAccessPolicyName: string, body: Models.JitNetworkAccessPolicyInitiateRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - jitNetworkAccessPolicyName, - body, - options - }, - initiateOperationSpec, - callback) as Promise; - } - - /** - * Policies for protecting resources using Just-in-Time access control. - * @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; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByRegionNext(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 - */ - listByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByRegionNextOperationSpec, - callback) as Promise; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } - - /** - * Policies for protecting resources using Just-in-Time access control for the subscription, - * location - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupAndRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupAndRegionNext(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 - */ - listByResourceGroupAndRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupAndRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupAndRegionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/jitNetworkAccessPolicies", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/jitNetworkAccessPolicies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupAndRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.jitNetworkAccessPolicyName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.jitNetworkAccessPolicyName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.JitNetworkAccessPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.jitNetworkAccessPolicyName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const initiateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}/{jitNetworkAccessPolicyInitiateType}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.jitNetworkAccessPolicyName, - Parameters.jitNetworkAccessPolicyInitiateType - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.JitNetworkAccessPolicyInitiateRequest, - required: true - } - }, - responses: { - 202: { - bodyMapper: Mappers.JitNetworkAccessRequest - }, - 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.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupAndRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/locations.ts b/sdk/security/arm-security/src/operations/locations.ts deleted file mode 100644 index a6af884c815b..000000000000 --- a/sdk/security/arm-security/src/operations/locations.ts +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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/locationsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Locations. */ -export class Locations { - private readonly client: SecurityCenterContext; - - /** - * Create a Locations. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * The location of the responsible ASC of the specific subscription (home region). For each - * subscription there is only one responsible location. The location in the response should be used - * to read or write other resources in ASC according to their ID. - * @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 location - * @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; - } - - /** - * The location of the responsible ASC of the specific subscription (home region). For each - * subscription there is only one responsible location. The location in the response should be used - * to read or write other resources in ASC according to their ID. - * @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/locations", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AscLocationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AscLocation - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AscLocationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts b/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts deleted file mode 100644 index 16b1b5b901df..000000000000 --- a/sdk/security/arm-security/src/operations/onPremiseIotSensors.ts +++ /dev/null @@ -1,359 +0,0 @@ -/* - * 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 deleted file mode 100644 index a1966ba046d4..000000000000 --- a/sdk/security/arm-security/src/operations/operations.ts +++ /dev/null @@ -1,125 +0,0 @@ -/* - * 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/operationsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Operations. */ -export class Operations { - private readonly client: SecurityCenterContext; - - /** - * Create a Operations. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Exposes all available operations for discovery purposes. - * @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; - } - - /** - * Exposes all available operations for discovery purposes. - * @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: "providers/Microsoft.Security/operations", - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.OperationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.OperationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts deleted file mode 100644 index aabe04271f0d..000000000000 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ /dev/null @@ -1,191 +0,0 @@ -/* - * 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/pricingsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Pricings. */ -export class Pricings { - private readonly client: SecurityCenterContext; - - /** - * Create a Pricings. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Lists Security Center pricing configurations in 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 provided Security Center pricing configuration in the subscription. - * @param pricingName name of the pricing configuration - * @param [options] The optional parameters - * @returns Promise - */ - get(pricingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param pricingName name of the pricing configuration - * @param callback The callback - */ - get(pricingName: string, callback: msRest.ServiceCallback): void; - /** - * @param pricingName name of the pricing configuration - * @param options The optional parameters - * @param callback The callback - */ - get(pricingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(pricingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - pricingName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Updates a provided Security Center pricing configuration in the subscription. - * @param pricingName name of the pricing configuration - * @param pricing Pricing object - * @param [options] The optional parameters - * @returns Promise - */ - update(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; - /** - * @param pricingName name of the pricing configuration - * @param pricing Pricing object - * @param callback The callback - */ - update(pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; - /** - * @param pricingName name of the pricing configuration - * @param pricing Pricing object - * @param options The optional parameters - * @param callback The callback - */ - update(pricingName: string, pricing: Models.Pricing, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - pricingName, - pricing, - options - }, - updateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.pricingName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Pricing - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.pricingName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "pricing", - mapper: { - ...Mappers.Pricing, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Pricing - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts deleted file mode 100644 index fed64431d821..000000000000 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts +++ /dev/null @@ -1,202 +0,0 @@ -/* - * 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/regulatoryComplianceAssessmentsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a RegulatoryComplianceAssessments. */ -export class RegulatoryComplianceAssessments { - private readonly client: SecurityCenterContext; - - /** - * Create a RegulatoryComplianceAssessments. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Details and state of assessments mapped to selected regulatory compliance control - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param [options] The optional parameters - * @returns Promise - */ - list(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: Models.RegulatoryComplianceAssessmentsListOptionalParams): Promise; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param callback The callback - */ - list(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, callback: msRest.ServiceCallback): void; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param options The optional parameters - * @param callback The callback - */ - list(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options: Models.RegulatoryComplianceAssessmentsListOptionalParams, callback: msRest.ServiceCallback): void; - list(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: Models.RegulatoryComplianceAssessmentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - regulatoryComplianceStandardName, - regulatoryComplianceControlName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Supported regulatory compliance details and state for selected assessment - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object - * @param [options] The optional parameters - * @returns Promise - */ - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object - * @param callback The callback - */ - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, callback: msRest.ServiceCallback): void; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object - * @param options The optional parameters - * @param callback The callback - */ - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - regulatoryComplianceStandardName, - regulatoryComplianceControlName, - regulatoryComplianceAssessmentName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Details and state of assessments mapped to selected regulatory compliance control - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.RegulatoryComplianceAssessmentsListNextOptionalParams): 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.RegulatoryComplianceAssessmentsListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.RegulatoryComplianceAssessmentsListNextOptionalParams | 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/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments", - urlParameters: [ - Parameters.subscriptionId, - Parameters.regulatoryComplianceStandardName, - Parameters.regulatoryComplianceControlName - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.regulatoryComplianceStandardName, - Parameters.regulatoryComplianceControlName, - Parameters.regulatoryComplianceAssessmentName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts deleted file mode 100644 index 8ee0e81f5f8d..000000000000 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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/regulatoryComplianceControlsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a RegulatoryComplianceControls. */ -export class RegulatoryComplianceControls { - private readonly client: SecurityCenterContext; - - /** - * Create a RegulatoryComplianceControls. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * All supported regulatory compliance controls details and state for selected standard - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param [options] The optional parameters - * @returns Promise - */ - list(regulatoryComplianceStandardName: string, options?: Models.RegulatoryComplianceControlsListOptionalParams): Promise; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param callback The callback - */ - list(regulatoryComplianceStandardName: string, callback: msRest.ServiceCallback): void; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param options The optional parameters - * @param callback The callback - */ - list(regulatoryComplianceStandardName: string, options: Models.RegulatoryComplianceControlsListOptionalParams, callback: msRest.ServiceCallback): void; - list(regulatoryComplianceStandardName: string, options?: Models.RegulatoryComplianceControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - regulatoryComplianceStandardName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Selected regulatory compliance control details and state - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param [options] The optional parameters - * @returns Promise - */ - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param callback The callback - */ - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, callback: msRest.ServiceCallback): void; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param regulatoryComplianceControlName Name of the regulatory compliance control object - * @param options The optional parameters - * @param callback The callback - */ - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - regulatoryComplianceStandardName, - regulatoryComplianceControlName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * All supported regulatory compliance controls details and state for selected standard - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.RegulatoryComplianceControlsListNextOptionalParams): 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.RegulatoryComplianceControlsListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.RegulatoryComplianceControlsListNextOptionalParams | 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/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls", - urlParameters: [ - Parameters.subscriptionId, - Parameters.regulatoryComplianceStandardName - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceControlList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.regulatoryComplianceStandardName, - Parameters.regulatoryComplianceControlName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceControl - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceControlList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts deleted file mode 100644 index c845ff4b7386..000000000000 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts +++ /dev/null @@ -1,182 +0,0 @@ -/* - * 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/regulatoryComplianceStandardsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a RegulatoryComplianceStandards. */ -export class RegulatoryComplianceStandards { - private readonly client: SecurityCenterContext; - - /** - * Create a RegulatoryComplianceStandards. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Supported regulatory compliance standards details and state - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.RegulatoryComplianceStandardsListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: Models.RegulatoryComplianceStandardsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.RegulatoryComplianceStandardsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Supported regulatory compliance details state for selected standard - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param [options] The optional parameters - * @returns Promise - */ - get(regulatoryComplianceStandardName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param callback The callback - */ - get(regulatoryComplianceStandardName: string, callback: msRest.ServiceCallback): void; - /** - * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object - * @param options The optional parameters - * @param callback The callback - */ - get(regulatoryComplianceStandardName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(regulatoryComplianceStandardName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - regulatoryComplianceStandardName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Supported regulatory compliance standards details and state - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.RegulatoryComplianceStandardsListNextOptionalParams): 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.RegulatoryComplianceStandardsListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.RegulatoryComplianceStandardsListNextOptionalParams | 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/regulatoryComplianceStandards", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceStandardList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.regulatoryComplianceStandardName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceStandard - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RegulatoryComplianceStandardList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts deleted file mode 100644 index 2d91f5faaa02..000000000000 --- a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts +++ /dev/null @@ -1,226 +0,0 @@ -/* - * 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/secureScoreControlDefinitionsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a SecureScoreControlDefinitions. */ -export class SecureScoreControlDefinitions { - private readonly client: SecurityCenterContext; - - /** - * Create a SecureScoreControlDefinitions. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * List the available security controls, their assessments, and the max score - * @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; - } - - /** - * For a specified subscription, list the available security controls, their assessments, and the - * max score - * @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; - } - - /** - * 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 - */ - 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; - } - - /** - * 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 - */ - 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 listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "providers/Microsoft.Security/secureScoreControlDefinitions", - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlDefinitionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySubscriptionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControlDefinitions", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlDefinitionList - }, - 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.SecureScoreControlDefinitionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlDefinitionList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/secureScoreControls.ts b/sdk/security/arm-security/src/operations/secureScoreControls.ts deleted file mode 100644 index de40813934f9..000000000000 --- a/sdk/security/arm-security/src/operations/secureScoreControls.ts +++ /dev/null @@ -1,239 +0,0 @@ -/* - * 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/secureScoreControlsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a SecureScoreControls. */ -export class SecureScoreControls { - private readonly client: SecurityCenterContext; - - /** - * Create a SecureScoreControls. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * 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 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 initiative name. For the ASC Default initiative, use 'ascScore' as in - * the sample request below. - * @param options The optional parameters - * @param callback The callback - */ - listBySecureScore(secureScoreName: string, options: Models.SecureScoreControlsListBySecureScoreOptionalParams, callback: msRest.ServiceCallback): void; - listBySecureScore(secureScoreName: string, options?: Models.SecureScoreControlsListBySecureScoreOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - secureScoreName, - options - }, - listBySecureScoreOperationSpec, - callback) as Promise; - } - - /** - * Get all security controls within a scope - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.SecureScoreControlsListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: Models.SecureScoreControlsListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.SecureScoreControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * 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?: Models.SecureScoreControlsListBySecureScoreNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBySecureScoreNext(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 - */ - 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, - options - }, - listBySecureScoreNextOperationSpec, - callback) as Promise; - } - - /** - * 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?: Models.SecureScoreControlsListNextOptionalParams): 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.SecureScoreControlsListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.SecureScoreControlsListNextOptionalParams | 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 listBySecureScoreOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores/{secureScoreName}/secureScoreControls", - urlParameters: [ - Parameters.subscriptionId, - Parameters.secureScoreName - ], - queryParameters: [ - Parameters.apiVersion7, - Parameters.expand - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControls", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7, - Parameters.expand - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listBySecureScoreNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7, - Parameters.expand - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7, - Parameters.expand - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreControlList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/secureScores.ts b/sdk/security/arm-security/src/operations/secureScores.ts deleted file mode 100644 index 015ea88e0dfb..000000000000 --- a/sdk/security/arm-security/src/operations/secureScores.ts +++ /dev/null @@ -1,184 +0,0 @@ -/* - * 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/secureScoresMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a SecureScores. */ -export class SecureScores { - private readonly client: SecurityCenterContext; - - /** - * Create a SecureScores. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * List secure scores for all your Security Center initiatives within your current scope. - * @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 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 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 initiative name. For the ASC Default initiative, use 'ascScore' as in - * the sample request below. - * @param options The optional parameters - * @param callback The callback - */ - get(secureScoreName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(secureScoreName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - secureScoreName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * 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 - */ - 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/secureScores", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoresList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores/{secureScoreName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.secureScoreName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecureScoreItem - }, - 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.SecureScoresList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/securityContacts.ts b/sdk/security/arm-security/src/operations/securityContacts.ts deleted file mode 100644 index 9a27de7bfaf3..000000000000 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ /dev/null @@ -1,356 +0,0 @@ -/* - * 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/securityContactsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a SecurityContacts. */ -export class SecurityContacts { - private readonly client: SecurityCenterContext; - - /** - * Create a SecurityContacts. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Security contact configurations 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; - } - - /** - * Security contact configurations for the subscription - * @param securityContactName Name of the security contact object - * @param [options] The optional parameters - * @returns Promise - */ - get(securityContactName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param securityContactName Name of the security contact object - * @param callback The callback - */ - get(securityContactName: string, callback: msRest.ServiceCallback): void; - /** - * @param securityContactName Name of the security contact object - * @param options The optional parameters - * @param callback The callback - */ - get(securityContactName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(securityContactName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - securityContactName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Security contact configurations for the subscription - * @param securityContactName Name of the security contact object - * @param securityContact Security contact object - * @param [options] The optional parameters - * @returns Promise - */ - create(securityContactName: string, securityContact: Models.SecurityContact, options?: msRest.RequestOptionsBase): Promise; - /** - * @param securityContactName Name of the security contact object - * @param securityContact Security contact object - * @param callback The callback - */ - create(securityContactName: string, securityContact: Models.SecurityContact, callback: msRest.ServiceCallback): void; - /** - * @param securityContactName Name of the security contact object - * @param securityContact Security contact object - * @param options The optional parameters - * @param callback The callback - */ - create(securityContactName: string, securityContact: Models.SecurityContact, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(securityContactName: string, securityContact: Models.SecurityContact, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - securityContactName, - securityContact, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Security contact configurations for the subscription - * @param securityContactName Name of the security contact object - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(securityContactName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param securityContactName Name of the security contact object - * @param callback The callback - */ - deleteMethod(securityContactName: string, callback: msRest.ServiceCallback): void; - /** - * @param securityContactName Name of the security contact object - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(securityContactName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(securityContactName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - securityContactName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Security contact configurations for the subscription - * @param securityContactName Name of the security contact object - * @param securityContact Security contact object - * @param [options] The optional parameters - * @returns Promise - */ - update(securityContactName: string, securityContact: Models.SecurityContact, options?: msRest.RequestOptionsBase): Promise; - /** - * @param securityContactName Name of the security contact object - * @param securityContact Security contact object - * @param callback The callback - */ - update(securityContactName: string, securityContact: Models.SecurityContact, callback: msRest.ServiceCallback): void; - /** - * @param securityContactName Name of the security contact object - * @param securityContact Security contact object - * @param options The optional parameters - * @param callback The callback - */ - update(securityContactName: string, securityContact: Models.SecurityContact, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(securityContactName: string, securityContact: Models.SecurityContact, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - securityContactName, - securityContact, - options - }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Security contact configurations 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/securityContacts", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityContactList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.securityContactName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityContact - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.securityContactName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "securityContact", - mapper: { - ...Mappers.SecurityContact, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SecurityContact - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.securityContactName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts/{securityContactName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.securityContactName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "securityContact", - mapper: { - ...Mappers.SecurityContact, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SecurityContact - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityContactList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/securitySolutions.ts b/sdk/security/arm-security/src/operations/securitySolutions.ts deleted file mode 100644 index 4d7313ebbc35..000000000000 --- a/sdk/security/arm-security/src/operations/securitySolutions.ts +++ /dev/null @@ -1,189 +0,0 @@ -/* - * 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 deleted file mode 100644 index 04dafd6d92f0..000000000000 --- a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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 deleted file mode 100644 index 9307ec957067..000000000000 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts +++ /dev/null @@ -1,309 +0,0 @@ -/* - * 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 msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverVulnerabilityAssessmentOperationsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a ServerVulnerabilityAssessmentOperations. */ -export class ServerVulnerabilityAssessmentOperations { - private readonly client: SecurityCenterContext; - - /** - * Create a ServerVulnerabilityAssessmentOperations. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets a list of server vulnerability assessment onboarding statuses on a given 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 - * @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 a server vulnerability assessment onboarding statuses on a given 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 - * @returns Promise - */ - get(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 - */ - get(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 - */ - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(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 - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creating a server vulnerability assessment on a resource, which will onboard a resource for - * having a vulnerability assessment on it - * @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 - */ - createOrUpdate(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 - */ - createOrUpdate(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 - */ - createOrUpdate(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(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 - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * 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 - * @returns Promise - */ - 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 - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options - }, - beginDeleteMethodOperationSpec, - options); - } -} - -// 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/serverVulnerabilityAssessments", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessmentsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.serverVulnerabilityAssessment - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerVulnerabilityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.serverVulnerabilityAssessment - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 202: { - bodyMapper: Mappers.ServerVulnerabilityAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.serverVulnerabilityAssessment - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts deleted file mode 100644 index d07565cb45c1..000000000000 --- a/sdk/security/arm-security/src/operations/settings.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* - * 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/settingsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Settings. */ -export class Settings { - private readonly client: SecurityCenterContext; - - /** - * Create a Settings. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Settings about different configurations in security center - * @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 of different configurations in security center - * @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 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 The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' - * @param options The optional parameters - * @param callback The callback - */ - get(settingName: Models.SettingName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - settingName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * updating settings about different configurations in security center - * @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 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 The name of the setting. Possible values include: 'MCAS', 'WDATP', 'Sentinel' - * @param setting Setting object - * @param options The optional parameters - * @param callback The callback - */ - update(settingName: Models.SettingName1, setting: Models.SettingUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(settingName: Models.SettingName1, setting: Models.SettingUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - settingName, - setting, - options - }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Settings about different configurations in security center - * @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/settings", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion12 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SettingsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.settingName1 - ], - queryParameters: [ - Parameters.apiVersion12 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Setting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/settings/{settingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.settingName1 - ], - queryParameters: [ - Parameters.apiVersion12 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "setting", - mapper: { - ...Mappers.Setting, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Setting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion12 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SettingsList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts deleted file mode 100644 index e532a81d71dd..000000000000 --- a/sdk/security/arm-security/src/operations/softwareInventories.ts +++ /dev/null @@ -1,325 +0,0 @@ -/* - * 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 deleted file mode 100644 index a2407e00d3f8..000000000000 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts +++ /dev/null @@ -1,359 +0,0 @@ -/* - * 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 deleted file mode 100644 index 89a736a9a27a..000000000000 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts +++ /dev/null @@ -1,164 +0,0 @@ -/* - * 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 deleted file mode 100644 index 3ea4f5be8f98..000000000000 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts +++ /dev/null @@ -1,154 +0,0 @@ -/* - * 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/standards.ts b/sdk/security/arm-security/src/operations/standards.ts new file mode 100644 index 000000000000..b7c207002cd8 --- /dev/null +++ b/sdk/security/arm-security/src/operations/standards.ts @@ -0,0 +1,429 @@ +/* + * 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/standardsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a Standards. */ +export class Standards { + private readonly client: SecurityCenterContext; + + /** + * Create a Standards. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get a list of all relevant security standards over a subscription level scope. + * @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; + } + + /** + * Get security standards on all your resources inside a scope + * @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 + */ + list(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 + */ + list(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 + */ + list(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a specific security standard for the requested scope + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, standardId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param callback The callback + */ + get(resourceGroupName: string, standardId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, standardId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, standardId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + standardId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a security standard on the given scope. Available only for custom standards. Will + * create/update the required standard definitions. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, standardId: string, standard: Models.Standard, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, standardId: string, standard: Models.Standard, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, standardId: string, standard: Models.Standard, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, standardId: string, standard: Models.Standard, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + standardId, + standard, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete a security standard on a scope. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, standardId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, standardId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param standardId The Security Standard key - unique key for the standard type + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, standardId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, standardId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + standardId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Get a list of all relevant security standards over a subscription level scope. + * @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; + } + + /** + * Get security standards on all your resources inside 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; + /** + * @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 listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/standards", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StandardList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StandardList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards/{standardId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.standardId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Standard + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards/{standardId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.standardId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "standard", + mapper: { + ...Mappers.Standard, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Standard + }, + 201: { + bodyMapper: Mappers.Standard + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards/{standardId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.standardId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StandardList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StandardList + }, + 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 deleted file mode 100644 index fe62009099b6..000000000000 --- a/sdk/security/arm-security/src/operations/subAssessments.ts +++ /dev/null @@ -1,319 +0,0 @@ -/* - * 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/subAssessmentsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a SubAssessments. */ -export class SubAssessments { - private readonly client: SecurityCenterContext; - - /** - * Create a SubAssessments. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Get security sub-assessments on all your scanned resources inside a subscription scope - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param [options] The optional parameters - * @returns Promise - */ - listAll(scope: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param callback The callback - */ - listAll(scope: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param options The optional parameters - * @param callback The callback - */ - listAll(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAll(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - scope, - options - }, - listAllOperationSpec, - callback) as Promise; - } - - /** - * Get security sub-assessments on all your scanned resources inside a scope - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param [options] The optional parameters - * @returns Promise - */ - list(scope: string, assessmentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param callback The callback - */ - list(scope: string, assessmentName: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param options The optional parameters - * @param callback The callback - */ - list(scope: string, assessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(scope: string, assessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - scope, - assessmentName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Get a security sub-assessment on your scanned resource - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type - * @param [options] The optional parameters - * @returns Promise - */ - get(scope: string, assessmentName: string, subAssessmentName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type - * @param callback The callback - */ - get(scope: string, assessmentName: string, subAssessmentName: string, callback: msRest.ServiceCallback): void; - /** - * @param scope Scope of the query, can be subscription - * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group - * (/providers/Microsoft.Management/managementGroups/mgName). - * @param assessmentName The Assessment Key - Unique key for the assessment type - * @param subAssessmentName The Sub-Assessment Key - Unique key for the sub-assessment type - * @param options The optional parameters - * @param callback The callback - */ - get(scope: string, assessmentName: string, subAssessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(scope: string, assessmentName: string, subAssessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - scope, - assessmentName, - subAssessmentName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Get security sub-assessments on all your scanned resources inside a subscription scope - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listAllNext(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 - */ - listAllNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAllNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listAllNextOperationSpec, - callback) as Promise; - } - - /** - * Get security sub-assessments on all your scanned resources inside 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; - /** - * @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 listAllOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.Security/subAssessments", - urlParameters: [ - Parameters.scope - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecuritySubAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments", - urlParameters: [ - Parameters.scope, - Parameters.assessmentName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecuritySubAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.Security/assessments/{assessmentName}/subAssessments/{subAssessmentName}", - urlParameters: [ - Parameters.scope, - Parameters.assessmentName, - Parameters.subAssessmentName - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecuritySubAssessment - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listAllNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecuritySubAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion6 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecuritySubAssessmentList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts deleted file mode 100644 index 726bc72a067b..000000000000 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* - * 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/tasksMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Tasks. */ -export class Tasks { - private readonly client: SecurityCenterContext; - - /** - * Create a Tasks. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.TasksListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param [options] The optional parameters - * @returns Promise - */ - listByHomeRegion(options?: Models.TasksListByHomeRegionOptionalParams): Promise; - /** - * @param callback The callback - */ - listByHomeRegion(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listByHomeRegion(options: Models.TasksListByHomeRegionOptionalParams, callback: msRest.ServiceCallback): void; - listByHomeRegion(options?: Models.TasksListByHomeRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listByHomeRegionOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param taskName Name of the task object, will be a GUID - * @param [options] The optional parameters - * @returns Promise - */ - getSubscriptionLevelTask(taskName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param taskName Name of the task object, will be a GUID - * @param callback The callback - */ - getSubscriptionLevelTask(taskName: string, callback: msRest.ServiceCallback): void; - /** - * @param taskName Name of the task object, will be a GUID - * @param options The optional parameters - * @param callback The callback - */ - getSubscriptionLevelTask(taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getSubscriptionLevelTask(taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - taskName, - options - }, - getSubscriptionLevelTaskOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param taskName Name of the task object, will be a GUID - * @param taskUpdateActionType Type of the action to do on the task. Possible values include: - * 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @param [options] The optional parameters - * @returns Promise - */ - updateSubscriptionLevelTaskState(taskName: string, taskUpdateActionType: Models.TaskUpdateActionType, options?: msRest.RequestOptionsBase): Promise; - /** - * @param taskName Name of the task object, will be a GUID - * @param taskUpdateActionType Type of the action to do on the task. Possible values include: - * 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @param callback The callback - */ - updateSubscriptionLevelTaskState(taskName: string, taskUpdateActionType: Models.TaskUpdateActionType, callback: msRest.ServiceCallback): void; - /** - * @param taskName Name of the task object, will be a GUID - * @param taskUpdateActionType Type of the action to do on the task. Possible values include: - * 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @param options The optional parameters - * @param callback The callback - */ - updateSubscriptionLevelTaskState(taskName: string, taskUpdateActionType: Models.TaskUpdateActionType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionLevelTaskState(taskName: string, taskUpdateActionType: Models.TaskUpdateActionType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - taskName, - taskUpdateActionType, - options - }, - updateSubscriptionLevelTaskStateOperationSpec, - callback); - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @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 - */ - listByResourceGroup(resourceGroupName: string, options?: Models.TasksListByResourceGroupOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param callback The callback - */ - listByResourceGroup(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 - */ - listByResourceGroup(resourceGroupName: string, options: Models.TasksListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.TasksListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param taskName Name of the task object, will be a GUID - * @param [options] The optional parameters - * @returns Promise - */ - getResourceGroupLevelTask(resourceGroupName: string, taskName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param taskName Name of the task object, will be a GUID - * @param callback The callback - */ - getResourceGroupLevelTask(resourceGroupName: string, taskName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param taskName Name of the task object, will be a GUID - * @param options The optional parameters - * @param callback The callback - */ - getResourceGroupLevelTask(resourceGroupName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getResourceGroupLevelTask(resourceGroupName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - taskName, - options - }, - getResourceGroupLevelTaskOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param taskName Name of the task object, will be a GUID - * @param taskUpdateActionType Type of the action to do on the task. Possible values include: - * 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @param [options] The optional parameters - * @returns Promise - */ - updateResourceGroupLevelTaskState(resourceGroupName: string, taskName: string, taskUpdateActionType: Models.TaskUpdateActionType1, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param taskName Name of the task object, will be a GUID - * @param taskUpdateActionType Type of the action to do on the task. Possible values include: - * 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @param callback The callback - */ - updateResourceGroupLevelTaskState(resourceGroupName: string, taskName: string, taskUpdateActionType: Models.TaskUpdateActionType1, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param taskName Name of the task object, will be a GUID - * @param taskUpdateActionType Type of the action to do on the task. Possible values include: - * 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @param options The optional parameters - * @param callback The callback - */ - updateResourceGroupLevelTaskState(resourceGroupName: string, taskName: string, taskUpdateActionType: Models.TaskUpdateActionType1, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateResourceGroupLevelTaskState(resourceGroupName: string, taskName: string, taskUpdateActionType: Models.TaskUpdateActionType1, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - taskName, - taskUpdateActionType, - options - }, - updateResourceGroupLevelTaskStateOperationSpec, - callback); - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams): 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.TasksListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByHomeRegionNext(nextPageLink: string, options?: Models.TasksListByHomeRegionNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByHomeRegionNext(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 - */ - 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, - options - }, - listByHomeRegionNextOperationSpec, - callback) as Promise; - } - - /** - * Recommended tasks that will help improve the security of the subscription proactively - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: Models.TasksListByResourceGroupNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - 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, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/tasks", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion4, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTaskList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion4, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTaskList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getSubscriptionLevelTaskOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.taskName - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTask - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateSubscriptionLevelTaskStateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.taskName, - Parameters.taskUpdateActionType - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion4, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTaskList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getResourceGroupLevelTaskOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.taskName - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTask - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateResourceGroupLevelTaskStateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.taskName, - Parameters.taskUpdateActionType - ], - queryParameters: [ - Parameters.apiVersion4 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion4, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTaskList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion4, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTaskList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion4, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SecurityTaskList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/topology.ts b/sdk/security/arm-security/src/operations/topology.ts deleted file mode 100644 index c41bb2410b82..000000000000 --- a/sdk/security/arm-security/src/operations/topology.ts +++ /dev/null @@ -1,289 +0,0 @@ -/* - * 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/topologyMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a Topology. */ -export class Topology { - private readonly client: SecurityCenterContext; - - /** - * Create a Topology. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Gets a list that allows to build a topology view 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; - } - - /** - * Gets a list that allows to build a topology view of a 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; - } - - /** - * Gets a specific topology component. - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param topologyResourceName Name of a topology resources collection. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, topologyResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param topologyResourceName Name of a topology resources collection. - * @param callback The callback - */ - get(resourceGroupName: string, topologyResourceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param topologyResourceName Name of a topology resources collection. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, topologyResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, topologyResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - topologyResourceName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list that allows to build a topology view 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; - } - - /** - * Gets a list that allows to build a topology view of a subscription and location. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByHomeRegionNext(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 - */ - listByHomeRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByHomeRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByHomeRegionNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/topologies", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TopologyList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/topologies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.ascLocation - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TopologyList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/topologies/{topologyResourceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.ascLocation, - Parameters.topologyResourceName - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TopologyResource - }, - 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.TopologyList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByHomeRegionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion7 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TopologyList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/operations/workspaceSettings.ts b/sdk/security/arm-security/src/operations/workspaceSettings.ts deleted file mode 100644 index 73a69a9bb1a9..000000000000 --- a/sdk/security/arm-security/src/operations/workspaceSettings.ts +++ /dev/null @@ -1,360 +0,0 @@ -/* - * 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/workspaceSettingsMappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenterContext } from "../securityCenterContext"; - -/** Class representing a WorkspaceSettings. */ -export class WorkspaceSettings { - private readonly client: SecurityCenterContext; - - /** - * Create a WorkspaceSettings. - * @param {SecurityCenterContext} client Reference to the service client. - */ - constructor(client: SecurityCenterContext) { - this.client = client; - } - - /** - * Settings about where we should store your security data and logs. If the result is empty, it - * means that no custom-workspace configuration was set - * @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 about where we should store your security data and logs. If the result is empty, it - * means that no custom-workspace configuration was set - * @param workspaceSettingName Name of the security setting - * @param [options] The optional parameters - * @returns Promise - */ - get(workspaceSettingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param workspaceSettingName Name of the security setting - * @param callback The callback - */ - get(workspaceSettingName: string, callback: msRest.ServiceCallback): void; - /** - * @param workspaceSettingName Name of the security setting - * @param options The optional parameters - * @param callback The callback - */ - get(workspaceSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(workspaceSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - workspaceSettingName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * creating settings about where we should store your security data and logs - * @param workspaceSettingName Name of the security setting - * @param workspaceSetting Security data setting object - * @param [options] The optional parameters - * @returns Promise - */ - create(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, options?: msRest.RequestOptionsBase): Promise; - /** - * @param workspaceSettingName Name of the security setting - * @param workspaceSetting Security data setting object - * @param callback The callback - */ - create(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, callback: msRest.ServiceCallback): void; - /** - * @param workspaceSettingName Name of the security setting - * @param workspaceSetting Security data setting object - * @param options The optional parameters - * @param callback The callback - */ - create(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - workspaceSettingName, - workspaceSetting, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Settings about where we should store your security data and logs - * @param workspaceSettingName Name of the security setting - * @param workspaceSetting Security data setting object - * @param [options] The optional parameters - * @returns Promise - */ - update(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, options?: msRest.RequestOptionsBase): Promise; - /** - * @param workspaceSettingName Name of the security setting - * @param workspaceSetting Security data setting object - * @param callback The callback - */ - update(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, callback: msRest.ServiceCallback): void; - /** - * @param workspaceSettingName Name of the security setting - * @param workspaceSetting Security data setting object - * @param options The optional parameters - * @param callback The callback - */ - update(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(workspaceSettingName: string, workspaceSetting: Models.WorkspaceSetting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - workspaceSettingName, - workspaceSetting, - options - }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Deletes the custom workspace settings for this subscription. new VMs will report to the default - * workspace - * @param workspaceSettingName Name of the security setting - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(workspaceSettingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param workspaceSettingName Name of the security setting - * @param callback The callback - */ - deleteMethod(workspaceSettingName: string, callback: msRest.ServiceCallback): void; - /** - * @param workspaceSettingName Name of the security setting - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(workspaceSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(workspaceSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - workspaceSettingName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Settings about where we should store your security data and logs. If the result is empty, it - * means that no custom-workspace configuration was set - * @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/workspaceSettings", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WorkspaceSettingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.workspaceSettingName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WorkspaceSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.workspaceSettingName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workspaceSetting", - mapper: { - ...Mappers.WorkspaceSetting, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.WorkspaceSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.workspaceSettingName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workspaceSetting", - mapper: { - ...Mappers.WorkspaceSetting, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.WorkspaceSetting - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings/{workspaceSettingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.workspaceSettingName - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion5 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WorkspaceSettingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 94a052843133..f0e5ca13c806 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -17,62 +17,8 @@ import { SecurityCenterContext } from "./securityCenterContext"; class SecurityCenter extends SecurityCenterContext { // Operation groups - complianceResults: operations.ComplianceResults; - pricings: operations.Pricings; - advancedThreatProtection: operations.AdvancedThreatProtection; - deviceSecurityGroups: operations.DeviceSecurityGroups; - iotSecuritySolution: operations.IotSecuritySolution; - iotSecuritySolutionAnalytics: operations.IotSecuritySolutionAnalytics; - iotSecuritySolutionsAnalyticsAggregatedAlert: operations.IotSecuritySolutionsAnalyticsAggregatedAlert; - iotSecuritySolutionsAnalyticsRecommendation: operations.IotSecuritySolutionsAnalyticsRecommendation; - locations: operations.Locations; - operations: operations.Operations; - tasks: operations.Tasks; - autoProvisioningSettings: operations.AutoProvisioningSettings; - compliances: operations.Compliances; - informationProtectionPolicies: operations.InformationProtectionPolicies; - securityContacts: operations.SecurityContacts; - workspaceSettings: operations.WorkspaceSettings; - regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; - regulatoryComplianceControls: operations.RegulatoryComplianceControls; - regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; - subAssessments: operations.SubAssessments; - automations: operations.Automations; - alertsSuppressionRules: operations.AlertsSuppressionRules; - serverVulnerabilityAssessment: operations.ServerVulnerabilityAssessmentOperations; - assessmentsMetadata: operations.AssessmentsMetadata; - assessments: operations.Assessments; - adaptiveApplicationControls: operations.AdaptiveApplicationControls; - adaptiveNetworkHardenings: operations.AdaptiveNetworkHardenings; - allowedConnections: operations.AllowedConnections; - topology: operations.Topology; - 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; + standards: operations.Standards; + assignments: operations.Assignments; /** * Initializes a new instance of the SecurityCenter class. @@ -83,68 +29,12 @@ class SecurityCenter extends SecurityCenterContext { * 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 | 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.advancedThreatProtection = new operations.AdvancedThreatProtection(this); - this.deviceSecurityGroups = new operations.DeviceSecurityGroups(this); - this.iotSecuritySolution = new operations.IotSecuritySolution(this); - this.iotSecuritySolutionAnalytics = new operations.IotSecuritySolutionAnalytics(this); - this.iotSecuritySolutionsAnalyticsAggregatedAlert = new operations.IotSecuritySolutionsAnalyticsAggregatedAlert(this); - this.iotSecuritySolutionsAnalyticsRecommendation = new operations.IotSecuritySolutionsAnalyticsRecommendation(this); - this.locations = new operations.Locations(this); - this.operations = new operations.Operations(this); - this.tasks = new operations.Tasks(this); - this.autoProvisioningSettings = new operations.AutoProvisioningSettings(this); - this.compliances = new operations.Compliances(this); - this.informationProtectionPolicies = new operations.InformationProtectionPolicies(this); - this.securityContacts = new operations.SecurityContacts(this); - this.workspaceSettings = new operations.WorkspaceSettings(this); - this.regulatoryComplianceStandards = new operations.RegulatoryComplianceStandards(this); - this.regulatoryComplianceControls = new operations.RegulatoryComplianceControls(this); - this.regulatoryComplianceAssessments = new operations.RegulatoryComplianceAssessments(this); - this.subAssessments = new operations.SubAssessments(this); - this.automations = new operations.Automations(this); - this.alertsSuppressionRules = new operations.AlertsSuppressionRules(this); - this.serverVulnerabilityAssessment = new operations.ServerVulnerabilityAssessmentOperations(this); - this.assessmentsMetadata = new operations.AssessmentsMetadata(this); - this.assessments = new operations.Assessments(this); - this.adaptiveApplicationControls = new operations.AdaptiveApplicationControls(this); - this.adaptiveNetworkHardenings = new operations.AdaptiveNetworkHardenings(this); - this.allowedConnections = new operations.AllowedConnections(this); - this.topology = new operations.Topology(this); - this.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); + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SecurityCenterOptions) { + super(credentials, subscriptionId, options); + this.standards = new operations.Standards(this); + this.assignments = new operations.Assignments(this); } } diff --git a/sdk/security/arm-security/src/securityCenterContext.ts b/sdk/security/arm-security/src/securityCenterContext.ts index 42fe5c574428..fbb98ecce554 100644 --- a/sdk/security/arm-security/src/securityCenterContext.ts +++ b/sdk/security/arm-security/src/securityCenterContext.ts @@ -18,7 +18,7 @@ const packageVersion = "3.0.0"; export class SecurityCenterContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; - ascLocation: string; + apiVersion?: string; /** * Initializes a new instance of the SecurityCenter class. @@ -29,20 +29,15 @@ export class SecurityCenterContext extends msRestAzure.AzureServiceClient { * 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 | TokenCredential, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SecurityCenterOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { throw new Error('\'subscriptionId\' cannot be null.'); } - if (ascLocation == undefined) { - throw new Error('\'ascLocation\' cannot be null.'); - } if (!options) { options = {}; @@ -54,13 +49,13 @@ export class SecurityCenterContext extends msRestAzure.AzureServiceClient { super(credentials, options); + this.apiVersion = '2021-08-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.subscriptionId = subscriptionId; - this.ascLocation = ascLocation; if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage;