From ff961bc83aa2fef1a66da26b6cdb262da24bef25 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 2 May 2019 11:28:29 +0000 Subject: [PATCH 1/2] Generated from c3bbe3e492798b404e044789c749ab1cbfe9f0a0 Merge remote-tracking branch 'upstream/master' --- sdk/security/arm-security/LICENSE.txt | 2 +- sdk/security/arm-security/README.md | 11 +- .../models/advancedThreatProtectionMappers.ts | 40 + .../arm-security/lib/models/alertsMappers.ts | 41 + .../lib/models/allowedConnectionsMappers.ts | 19 + .../models/autoProvisioningSettingsMappers.ts | 41 + .../lib/models/compliancesMappers.ts | 41 + .../discoveredSecuritySolutionsMappers.ts | 17 + .../externalSecuritySolutionsMappers.ts | 25 + sdk/security/arm-security/lib/models/index.ts | 4179 +++++++++++++++++ .../informationProtectionPoliciesMappers.ts | 41 + .../models/jitNetworkAccessPoliciesMappers.ts | 25 + .../lib/models/locationsMappers.ts | 41 + .../arm-security/lib/models/mappers.ts | 2686 +++++++++++ .../lib/models/operationsMappers.ts | 18 + .../arm-security/lib/models/parameters.ts | 391 ++ .../lib/models/pricingsMappers.ts | 41 + .../regulatoryComplianceAssessmentsMappers.ts | 41 + .../regulatoryComplianceControlsMappers.ts | 41 + .../regulatoryComplianceStandardsMappers.ts | 41 + .../lib/models/securityContactsMappers.ts | 41 + .../lib/models/settingsMappers.ts | 41 + .../arm-security/lib/models/tasksMappers.ts | 41 + .../lib/models/topologyMappers.ts | 20 + .../lib/models/workspaceSettingsMappers.ts | 41 + .../operations/advancedThreatProtection.ts | 145 + .../arm-security/lib/operations/alerts.ts | 688 +++ .../lib/operations/allowedConnections.ts | 288 ++ .../operations/autoProvisioningSettings.ts | 241 + .../lib/operations/compliances.ts | 198 + .../operations/discoveredSecuritySolutions.ts | 284 ++ .../operations/externalSecuritySolutions.ts | 284 ++ .../arm-security/lib/operations/index.ts | 30 + .../informationProtectionPolicies.ts | 269 ++ .../operations/jitNetworkAccessPolicies.ts | 705 +++ .../arm-security/lib/operations/locations.ts | 178 + .../arm-security/lib/operations/operations.ts | 123 + .../arm-security/lib/operations/pricings.ts | 192 + .../regulatoryComplianceAssessments.ts | 215 + .../regulatoryComplianceControls.ts | 205 + .../regulatoryComplianceStandards.ts | 195 + .../lib/operations/securityContacts.ts | 354 ++ .../arm-security/lib/operations/settings.ts | 241 + .../arm-security/lib/operations/tasks.ts | 571 +++ .../arm-security/lib/operations/topology.ts | 284 ++ .../lib/operations/workspaceSettings.ts | 358 ++ .../arm-security/lib/securityCenter.ts | 82 + .../arm-security/lib/securityCenterContext.ts | 67 + sdk/security/arm-security/package.json | 12 +- sdk/security/arm-security/rollup.config.js | 22 +- sdk/security/arm-security/tsconfig.json | 2 +- 51 files changed, 14176 insertions(+), 23 deletions(-) create mode 100644 sdk/security/arm-security/lib/models/advancedThreatProtectionMappers.ts create mode 100644 sdk/security/arm-security/lib/models/alertsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/allowedConnectionsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/autoProvisioningSettingsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/compliancesMappers.ts create mode 100644 sdk/security/arm-security/lib/models/discoveredSecuritySolutionsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/externalSecuritySolutionsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/index.ts create mode 100644 sdk/security/arm-security/lib/models/informationProtectionPoliciesMappers.ts create mode 100644 sdk/security/arm-security/lib/models/jitNetworkAccessPoliciesMappers.ts create mode 100644 sdk/security/arm-security/lib/models/locationsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/mappers.ts create mode 100644 sdk/security/arm-security/lib/models/operationsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/parameters.ts create mode 100644 sdk/security/arm-security/lib/models/pricingsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/regulatoryComplianceControlsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/securityContactsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/settingsMappers.ts create mode 100644 sdk/security/arm-security/lib/models/tasksMappers.ts create mode 100644 sdk/security/arm-security/lib/models/topologyMappers.ts create mode 100644 sdk/security/arm-security/lib/models/workspaceSettingsMappers.ts create mode 100644 sdk/security/arm-security/lib/operations/advancedThreatProtection.ts create mode 100644 sdk/security/arm-security/lib/operations/alerts.ts create mode 100644 sdk/security/arm-security/lib/operations/allowedConnections.ts create mode 100644 sdk/security/arm-security/lib/operations/autoProvisioningSettings.ts create mode 100644 sdk/security/arm-security/lib/operations/compliances.ts create mode 100644 sdk/security/arm-security/lib/operations/discoveredSecuritySolutions.ts create mode 100644 sdk/security/arm-security/lib/operations/externalSecuritySolutions.ts create mode 100644 sdk/security/arm-security/lib/operations/index.ts create mode 100644 sdk/security/arm-security/lib/operations/informationProtectionPolicies.ts create mode 100644 sdk/security/arm-security/lib/operations/jitNetworkAccessPolicies.ts create mode 100644 sdk/security/arm-security/lib/operations/locations.ts create mode 100644 sdk/security/arm-security/lib/operations/operations.ts create mode 100644 sdk/security/arm-security/lib/operations/pricings.ts create mode 100644 sdk/security/arm-security/lib/operations/regulatoryComplianceAssessments.ts create mode 100644 sdk/security/arm-security/lib/operations/regulatoryComplianceControls.ts create mode 100644 sdk/security/arm-security/lib/operations/regulatoryComplianceStandards.ts create mode 100644 sdk/security/arm-security/lib/operations/securityContacts.ts create mode 100644 sdk/security/arm-security/lib/operations/settings.ts create mode 100644 sdk/security/arm-security/lib/operations/tasks.ts create mode 100644 sdk/security/arm-security/lib/operations/topology.ts create mode 100644 sdk/security/arm-security/lib/operations/workspaceSettings.ts create mode 100644 sdk/security/arm-security/lib/securityCenter.ts create mode 100644 sdk/security/arm-security/lib/securityCenterContext.ts diff --git a/sdk/security/arm-security/LICENSE.txt b/sdk/security/arm-security/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/security/arm-security/LICENSE.txt +++ b/sdk/security/arm-security/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index 86b7c9aa9417..0992d26e24ae 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for SecurityCenter. ### How to Install -``` +```bash npm install @azure/arm-security ``` @@ -19,13 +19,13 @@ npm install @azure/arm-security ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/security/arm-security/README.png) diff --git a/sdk/security/arm-security/lib/models/advancedThreatProtectionMappers.ts b/sdk/security/arm-security/lib/models/advancedThreatProtectionMappers.ts new file mode 100644 index 000000000000..d515a487ff55 --- /dev/null +++ b/sdk/security/arm-security/lib/models/advancedThreatProtectionMappers.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/alertsMappers.ts b/sdk/security/arm-security/lib/models/alertsMappers.ts new file mode 100644 index 000000000000..b8b5ebb4db94 --- /dev/null +++ b/sdk/security/arm-security/lib/models/alertsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + AlertList, + Alert, + Resource, + BaseResource, + AlertEntity, + AlertConfidenceReason, + CloudError, + Pricing, + AscLocation, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/allowedConnectionsMappers.ts b/sdk/security/arm-security/lib/models/allowedConnectionsMappers.ts new file mode 100644 index 000000000000..d8a8951a7057 --- /dev/null +++ b/sdk/security/arm-security/lib/models/allowedConnectionsMappers.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + AllowedConnectionsList, + AllowedConnectionsResource, + ConnectableResource, + ConnectedResource, + CloudError +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/autoProvisioningSettingsMappers.ts b/sdk/security/arm-security/lib/models/autoProvisioningSettingsMappers.ts new file mode 100644 index 000000000000..664fce0844a4 --- /dev/null +++ b/sdk/security/arm-security/lib/models/autoProvisioningSettingsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + AutoProvisioningSettingList, + AutoProvisioningSetting, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/compliancesMappers.ts b/sdk/security/arm-security/lib/models/compliancesMappers.ts new file mode 100644 index 000000000000..d8431e31cc90 --- /dev/null +++ b/sdk/security/arm-security/lib/models/compliancesMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ComplianceList, + Compliance, + Resource, + BaseResource, + ComplianceSegment, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/discoveredSecuritySolutionsMappers.ts b/sdk/security/arm-security/lib/models/discoveredSecuritySolutionsMappers.ts new file mode 100644 index 000000000000..fbd7462a6323 --- /dev/null +++ b/sdk/security/arm-security/lib/models/discoveredSecuritySolutionsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + DiscoveredSecuritySolutionList, + DiscoveredSecuritySolution, + CloudError +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/externalSecuritySolutionsMappers.ts b/sdk/security/arm-security/lib/models/externalSecuritySolutionsMappers.ts new file mode 100644 index 000000000000..16f85ea6d5ae --- /dev/null +++ b/sdk/security/arm-security/lib/models/externalSecuritySolutionsMappers.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + ExternalSecuritySolutionList, + ExternalSecuritySolution, + CloudError, + CefExternalSecuritySolution, + CefSolutionProperties, + ExternalSecuritySolutionProperties, + ConnectedWorkspace, + AtaSolutionProperties, + AtaExternalSecuritySolution, + AadExternalSecuritySolution, + AadSolutionProperties +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/index.ts b/sdk/security/arm-security/lib/models/index.ts new file mode 100644 index 000000000000..c52704dcf5c6 --- /dev/null +++ b/sdk/security/arm-security/lib/models/index.ts @@ -0,0 +1,4179 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing Resource. + * Describes an Azure resource. + * + * @extends BaseResource + */ +export interface Resource extends BaseResource { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing Pricing. + * Pricing tier will be applied for the scope based on the resource ID + * + * @extends Resource + */ +export interface Pricing extends Resource { + /** + * @member {PricingTier} pricingTier The pricing tier value. Possible values + * include: 'Free', 'Standard' + */ + pricingTier: PricingTier; + /** + * @member {string} [freeTrialRemainingTime] 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; +} + +/** + * @interface + * An interface representing PricingList. + * List of pricing configurations response + * + */ +export interface PricingList { + /** + * @member {Pricing[]} value List of pricing configurations + */ + value: Pricing[]; +} + +/** + * @interface + * An interface representing AscLocation. + * The ASC location of the subscription is in the "name" field + * + * @extends Resource + */ +export interface AscLocation extends Resource { + /** + * @member {any} [properties] + */ + properties?: any; +} + +/** + * @interface + * An interface representing TrackedResource. + * Describes an Azure tracked resource. + * + */ +export interface TrackedResource { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {string} [kind] Kind of the resource + */ + kind?: string; + /** + * @member {string} [etag] Entity tag is used for comparing two or more + * entities from the same requested resource. ETags may be returned for + * individual resources, and then sent via If-Match / If-None-Match headers + * for concurrency control. + */ + etag?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] A list of key value + * pairs that describe the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing Location. + * Describes an Azure resource with location + * + */ +export interface Location { + /** + * @member {string} [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; +} + +/** + * @interface + * An interface representing Kind. + * Describes an Azure resource with kind + * + */ +export interface Kind { + /** + * @member {string} [kind] Kind of the resource + */ + kind?: string; +} + +/** + * @interface + * An interface representing ETag. + * Entity tag is used for comparing two or more entities from the same + * requested resource. ETags may be returned for individual resources, and then + * sent via If-Match / If-None-Match headers for concurrency control. + * + */ +export interface ETag { + /** + * @member {string} [etag] Entity tag is used for comparing two or more + * entities from the same requested resource. ETags may be returned for + * individual resources, and then sent via If-Match / If-None-Match headers + * for concurrency control. + */ + etag?: string; +} + +/** + * @interface + * An interface representing Tags. + * A list of key value pairs that describe the resource. + * + */ +export interface Tags { + /** + * @member {{ [propertyName: string]: string }} [tags] A list of key value + * pairs that describe the resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing AlertEntity. + * Changing set of properties depending on the entity type. + * + */ +export interface AlertEntity { + /** + * @member {string} [type] Type of entity + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @interface + * An interface representing AlertConfidenceReason. + * Factors that increase our confidence that the alert is a true positive + * + */ +export interface AlertConfidenceReason { + /** + * @member {string} [type] Type of confidence factor + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [reason] description of the confidence reason + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly reason?: string; +} + +/** + * @interface + * An interface representing Alert. + * Security alert + * + * @extends Resource + */ +export interface Alert extends Resource { + /** + * @member {string} [state] State of the alert (Active, Dismissed etc.) + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: string; + /** + * @member {Date} [reportedTimeUtc] The time the incident was reported to + * Microsoft.Security in UTC + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly reportedTimeUtc?: Date; + /** + * @member {string} [vendorName] Name of the vendor that discovered the + * incident + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly vendorName?: string; + /** + * @member {string} [alertName] Name of the alert type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly alertName?: string; + /** + * @member {string} [alertDisplayName] Display name of the alert type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly alertDisplayName?: string; + /** + * @member {Date} [detectedTimeUtc] The time the incident was detected by the + * vendor + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly detectedTimeUtc?: Date; + /** + * @member {string} [description] Description of the incident and what it + * means + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {string} [remediationSteps] Recommended steps to reradiate the + * incident + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly remediationSteps?: string; + /** + * @member {string} [actionTaken] The action that was taken as a response to + * the alert (Active, Blocked etc.) + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly actionTaken?: string; + /** + * @member {ReportedSeverity} [reportedSeverity] Estimated severity of this + * alert. Possible values include: 'Informational', 'Low', 'Medium', 'High' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly reportedSeverity?: ReportedSeverity; + /** + * @member {string} [compromisedEntity] The entity that the incident happened + * on + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly compromisedEntity?: string; + /** + * @member {string} [associatedResource] Azure resource ID of the associated + * resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly associatedResource?: string; + /** + * @member {{ [propertyName: string]: any }} [extendedProperties] + */ + extendedProperties?: { [propertyName: string]: any }; + /** + * @member {string} [systemSource] 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; + /** + * @member {boolean} [canBeInvestigated] Whether this alert can be + * investigated with Azure Security Center + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly canBeInvestigated?: boolean; + /** + * @member {boolean} [isIncident] Whether this alert is for incident type or + * not (otherwise - single alert) + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isIncident?: boolean; + /** + * @member {AlertEntity[]} [entities] objects that are related to this alerts + */ + entities?: AlertEntity[]; + /** + * @member {number} [confidenceScore] level of confidence we have on the + * alert + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly confidenceScore?: number; + /** + * @member {AlertConfidenceReason[]} [confidenceReasons] reasons the alert + * got the confidenceScore value + */ + confidenceReasons?: AlertConfidenceReason[]; + /** + * @member {string} [subscriptionId] Azure subscription ID of the resource + * that had the security alert or the subscription ID of the workspace that + * this resource reports to + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subscriptionId?: string; + /** + * @member {string} [instanceId] Instance ID of the alert. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly instanceId?: string; + /** + * @member {string} [workspaceArmId] Azure resource ID of the workspace that + * the alert was reported to. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly workspaceArmId?: string; + /** + * @member {string} [correlationKey] Alerts with the same CorrelationKey will + * be grouped together in Ibiza. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly correlationKey?: string; +} + +/** + * @interface + * An interface representing SettingResource. + * The kind of the security setting + * + * @extends Resource + */ +export interface SettingResource extends Resource { + /** + * @member {SettingKind} kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' + */ + kind: SettingKind; +} + +/** + * @interface + * An interface representing Setting. + * Represents a security setting in Azure Security Center. + * + * @extends SettingResource + */ +export interface Setting extends SettingResource { +} + +/** + * @interface + * An interface representing DataExportSetting. + * Represents a data export setting + * + * @extends Setting + */ +export interface DataExportSetting extends Setting { + /** + * @member {boolean} enabled Is the data export setting is enabled + */ + enabled: boolean; +} + +/** + * @interface + * An interface representing ConnectedResource. + * Describes properties of a connected resource + * + */ +export interface ConnectedResource { + /** + * @member {string} [connectedResourceId] 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; + /** + * @member {string} [tcpPorts] The allowed tcp ports + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly tcpPorts?: string; + /** + * @member {string} [udpPorts] The allowed udp ports + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly udpPorts?: string; +} + +/** + * @interface + * An interface representing ConnectableResource. + * Describes the allowed inbound and outbound traffic of an Azure resource + * + */ +export interface ConnectableResource { + /** + * @member {string} [id] The Azure resource id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {ConnectedResource[]} [inboundConnectedResources] 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[]; + /** + * @member {ConnectedResource[]} [outboundConnectedResources] 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[]; +} + +/** + * @interface + * An interface representing AllowedConnectionsResource. + * The resource whose properties describes the allowed traffic between Azure + * resources + * + */ +export interface AllowedConnectionsResource { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {Date} [calculatedDateTime] 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; + /** + * @member {ConnectableResource[]} [connectableResources] List of connectable + * resources + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly connectableResources?: ConnectableResource[]; +} + +/** + * @interface + * An interface representing DiscoveredSecuritySolution. + */ +export interface DiscoveredSecuritySolution { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {SecurityFamily} securityFamily The security family of the + * discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', + * 'Va' + */ + securityFamily: SecurityFamily; + /** + * @member {string} offer The security solutions' image offer + */ + offer: string; + /** + * @member {string} publisher The security solutions' image publisher + */ + publisher: string; + /** + * @member {string} sku The security solutions' image sku + */ + sku: string; +} + +/** + * Contains the possible cases for ExternalSecuritySolution. + */ +export type ExternalSecuritySolutionUnion = ExternalSecuritySolution | CefExternalSecuritySolution | AtaExternalSecuritySolution | AadExternalSecuritySolution; + +/** + * @interface + * An interface representing ExternalSecuritySolution. + * 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 { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "ExternalSecuritySolution"; + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; +} + +/** + * @interface + * An interface representing ExternalSecuritySolutionProperties. + * The solution properties (correspond to the solution kind) + * + */ +export interface ExternalSecuritySolutionProperties { + /** + * @member {string} [deviceVendor] + */ + deviceVendor?: string; + /** + * @member {string} [deviceType] + */ + deviceType?: string; + /** + * @member {ConnectedWorkspace} [workspace] + */ + workspace?: ConnectedWorkspace; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @interface + * An interface representing CefSolutionProperties. + * @summary The external security solution properties for CEF solutions + * + * @extends ExternalSecuritySolutionProperties + */ +export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { + /** + * @member {string} [hostname] + */ + hostname?: string; + /** + * @member {string} [agent] + */ + agent?: string; + /** + * @member {string} [lastEventReceived] + */ + lastEventReceived?: string; +} + +/** + * @interface + * An interface representing CefExternalSecuritySolution. + * Represents a security solution which sends CEF logs to an OMS workspace + * + */ +export interface CefExternalSecuritySolution { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "CEF"; + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {CefSolutionProperties} [properties] + */ + properties?: CefSolutionProperties; +} + +/** + * @interface + * An interface representing AtaSolutionProperties. + * @summary The external security solution properties for ATA solutions + * + * @extends ExternalSecuritySolutionProperties + */ +export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { + /** + * @member {string} [lastEventReceived] + */ + lastEventReceived?: string; +} + +/** + * @interface + * An interface representing AtaExternalSecuritySolution. + * Represents an ATA security solution which sends logs to an OMS workspace + * + */ +export interface AtaExternalSecuritySolution { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "ATA"; + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {AtaSolutionProperties} [properties] + */ + properties?: AtaSolutionProperties; +} + +/** + * @interface + * An interface representing ConnectedWorkspace. + * @summary Represents an OMS workspace to which the solution is connected + * + */ +export interface ConnectedWorkspace { + /** + * @member {string} [id] Azure resource ID of the connected OMS workspace + */ + id?: string; +} + +/** + * @interface + * An interface representing AadSolutionProperties. + * @summary The external security solution properties for AAD solutions + * + */ +export interface AadSolutionProperties { + /** + * @member {string} [deviceVendor] + */ + deviceVendor?: string; + /** + * @member {string} [deviceType] + */ + deviceType?: string; + /** + * @member {ConnectedWorkspace} [workspace] + */ + workspace?: ConnectedWorkspace; + /** + * @member {AadConnectivityState} [connectivityState] The connectivity state + * of the external AAD solution . Possible values include: 'Discovered', + * 'NotLicensed', 'Connected' + */ + connectivityState?: AadConnectivityState; +} + +/** + * @interface + * An interface representing AadExternalSecuritySolution. + * Represents an AAD identity protection solution which sends logs to an OMS + * workspace. + * + */ +export interface AadExternalSecuritySolution { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AAD"; + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {AadSolutionProperties} [properties] + */ + properties?: AadSolutionProperties; +} + +/** + * @interface + * An interface representing ExternalSecuritySolutionKind1. + * Describes an Azure resource with kind + * + */ +export interface ExternalSecuritySolutionKind1 { + /** + * @member {ExternalSecuritySolutionKind} [kind] The kind of the external + * solution. Possible values include: 'CEF', 'ATA', 'AAD' + */ + kind?: ExternalSecuritySolutionKind; +} + +/** + * @interface + * An interface representing AadConnectivityState1. + * Describes an Azure resource with kind + * + */ +export interface AadConnectivityState1 { + /** + * @member {AadConnectivityState} [connectivityState] The connectivity state + * of the external AAD solution . Possible values include: 'Discovered', + * 'NotLicensed', 'Connected' + */ + connectivityState?: AadConnectivityState; +} + +/** + * @interface + * An interface representing JitNetworkAccessPortRule. + */ +export interface JitNetworkAccessPortRule { + /** + * @member {number} number + */ + number: number; + /** + * @member {Protocol} protocol Possible values include: 'TCP', 'UDP', 'All' + */ + protocol: Protocol; + /** + * @member {string} [allowedSourceAddressPrefix] 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; + /** + * @member {string[]} [allowedSourceAddressPrefixes] Mutually exclusive with + * the "allowedSourceAddressPrefix" parameter. + */ + allowedSourceAddressPrefixes?: string[]; + /** + * @member {string} maxRequestAccessDuration Maximum duration requests can be + * made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day + */ + maxRequestAccessDuration: string; +} + +/** + * @interface + * An interface representing JitNetworkAccessPolicyVirtualMachine. + */ +export interface JitNetworkAccessPolicyVirtualMachine { + /** + * @member {string} id Resource ID of the virtual machine that is linked to + * this policy + */ + id: string; + /** + * @member {JitNetworkAccessPortRule[]} ports Port configurations for the + * virtual machine + */ + ports: JitNetworkAccessPortRule[]; +} + +/** + * @interface + * An interface representing JitNetworkAccessRequestPort. + */ +export interface JitNetworkAccessRequestPort { + /** + * @member {number} number + */ + number: number; + /** + * @member {string} [allowedSourceAddressPrefix] 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; + /** + * @member {string[]} [allowedSourceAddressPrefixes] Mutually exclusive with + * the "allowedSourceAddressPrefix" parameter. + */ + allowedSourceAddressPrefixes?: string[]; + /** + * @member {Date} endTimeUtc The date & time at which the request ends in UTC + */ + endTimeUtc: Date; + /** + * @member {Status} status The status of the port. Possible values include: + * 'Revoked', 'Initiated' + */ + status: Status; + /** + * @member {StatusReason} statusReason A description of why the `status` has + * its value. Possible values include: 'Expired', 'UserRequested', + * 'NewerRequestInitiated' + */ + statusReason: StatusReason; +} + +/** + * @interface + * An interface representing JitNetworkAccessRequestVirtualMachine. + */ +export interface JitNetworkAccessRequestVirtualMachine { + /** + * @member {string} id Resource ID of the virtual machine that is linked to + * this policy + */ + id: string; + /** + * @member {JitNetworkAccessRequestPort[]} ports The ports that were opened + * for the virtual machine + */ + ports: JitNetworkAccessRequestPort[]; +} + +/** + * @interface + * An interface representing JitNetworkAccessRequest. + */ +export interface JitNetworkAccessRequest { + /** + * @member {JitNetworkAccessRequestVirtualMachine[]} virtualMachines + */ + virtualMachines: JitNetworkAccessRequestVirtualMachine[]; + /** + * @member {Date} startTimeUtc The start time of the request in UTC + */ + startTimeUtc: Date; + /** + * @member {string} requestor The identity of the person who made the request + */ + requestor: string; +} + +/** + * @interface + * An interface representing JitNetworkAccessPolicy. + */ +export interface JitNetworkAccessPolicy { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [kind] Kind of the resource + */ + kind?: string; + /** + * @member {string} [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; + /** + * @member {JitNetworkAccessPolicyVirtualMachine[]} virtualMachines + * Configurations for Microsoft.Compute/virtualMachines resource type. + */ + virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; + /** + * @member {JitNetworkAccessRequest[]} [requests] + */ + requests?: JitNetworkAccessRequest[]; + /** + * @member {string} [provisioningState] 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; +} + +/** + * @interface + * An interface representing JitNetworkAccessPolicyInitiatePort. + */ +export interface JitNetworkAccessPolicyInitiatePort { + /** + * @member {number} number + */ + number: number; + /** + * @member {string} [allowedSourceAddressPrefix] Source of the allowed + * traffic. If omitted, the request will be for the source IP address of the + * initiate request. + */ + allowedSourceAddressPrefix?: string; + /** + * @member {Date} endTimeUtc The time to close the request in UTC + */ + endTimeUtc: Date; +} + +/** + * @interface + * An interface representing JitNetworkAccessPolicyInitiateVirtualMachine. + */ +export interface JitNetworkAccessPolicyInitiateVirtualMachine { + /** + * @member {string} id Resource ID of the virtual machine that is linked to + * this policy + */ + id: string; + /** + * @member {JitNetworkAccessPolicyInitiatePort[]} ports The ports to open for + * the resource with the `id` + */ + ports: JitNetworkAccessPolicyInitiatePort[]; +} + +/** + * @interface + * An interface representing JitNetworkAccessPolicyInitiateRequest. + */ +export interface JitNetworkAccessPolicyInitiateRequest { + /** + * @member {JitNetworkAccessPolicyInitiateVirtualMachine[]} virtualMachines A + * list of virtual machines & ports to open access for + */ + virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; +} + +/** + * @interface + * An interface representing OperationDisplay. + * Security operation display + * + */ +export interface OperationDisplay { + /** + * @member {string} [provider] The resource provider for the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provider?: string; + /** + * @member {string} [resource] 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; + /** + * @member {string} [operation] 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; + /** + * @member {string} [description] The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; +} + +/** + * @interface + * An interface representing Operation. + * Possible operation in the REST API of Microsoft.Security + * + */ +export interface Operation { + /** + * @member {string} [name] Name of the operation + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [origin] Where the operation is originated + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly origin?: string; + /** + * @member {OperationDisplay} [display] + */ + display?: OperationDisplay; +} + +/** + * @interface + * An interface representing SecurityTaskParameters. + * Changing set of properties, depending on the task type that is derived from + * the name field + * + */ +export interface SecurityTaskParameters { + /** + * @member {string} [name] Name of the task type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @interface + * An interface representing SecurityTask. + * Security task that we recommend to do in order to strengthen security + * + * @extends Resource + */ +export interface SecurityTask extends Resource { + /** + * @member {string} [state] 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; + /** + * @member {Date} [creationTimeUtc] 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; + /** + * @member {SecurityTaskParameters} [securityTaskParameters] + */ + securityTaskParameters?: SecurityTaskParameters; + /** + * @member {Date} [lastStateChangeTimeUtc] 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; + /** + * @member {string} [subState] 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; +} + +/** + * @interface + * An interface representing TopologySingleResourceParent. + */ +export interface TopologySingleResourceParent { + /** + * @member {string} [resourceId] 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; +} + +/** + * @interface + * An interface representing TopologySingleResourceChild. + */ +export interface TopologySingleResourceChild { + /** + * @member {string} [resourceId] 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; +} + +/** + * @interface + * An interface representing TopologySingleResource. + */ +export interface TopologySingleResource { + /** + * @member {string} [resourceId] Azure resource id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceId?: string; + /** + * @member {string} [severity] The security severity of the resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly severity?: string; + /** + * @member {boolean} [recommendationsExist] 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; + /** + * @member {string} [networkZones] 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; + /** + * @member {number} [topologyScore] 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; + /** + * @member {string} [location] The location of this resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly location?: string; + /** + * @member {TopologySingleResourceParent[]} [parents] 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[]; + /** + * @member {TopologySingleResourceChild[]} [children] 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[]; +} + +/** + * @interface + * An interface representing TopologyResource. + */ +export interface TopologyResource { + /** + * @member {string} [id] Resource Id + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Resource name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; + /** + * @member {string} [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; + /** + * @member {Date} [calculatedDateTime] 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; + /** + * @member {TopologySingleResource[]} [topologyResources] 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[]; +} + +/** + * @interface + * An interface representing AdvancedThreatProtectionSetting. + * The Advanced Threat Protection resource. + * + * @extends Resource + */ +export interface AdvancedThreatProtectionSetting extends Resource { + /** + * @member {boolean} [isEnabled] Indicates whether Advanced Threat Protection + * is enabled. + */ + isEnabled?: boolean; +} + +/** + * @interface + * An interface representing AutoProvisioningSetting. + * Auto provisioning setting + * + * @extends Resource + */ +export interface AutoProvisioningSetting extends Resource { + /** + * @member {AutoProvision} autoProvision Describes what kind of security + * agent provisioning action to take. Possible values include: 'On', 'Off' + */ + autoProvision: AutoProvision; +} + +/** + * @interface + * An interface representing ComplianceSegment. + * A segment of a compliance assessment. + * + */ +export interface ComplianceSegment { + /** + * @member {string} [segmentType] 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; + /** + * @member {number} [percentage] The size (%) of the segment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly percentage?: number; +} + +/** + * @interface + * An interface representing Compliance. + * Compliance of a scope + * + * @extends Resource + */ +export interface Compliance extends Resource { + /** + * @member {Date} [assessmentTimestampUtcDate] 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; + /** + * @member {number} [resourceCount] 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; + /** + * @member {ComplianceSegment[]} [assessmentResult] 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[]; +} + +/** + * @interface + * An interface representing SensitivityLabel. + * The sensitivity label. + * + */ +export interface SensitivityLabel { + /** + * @member {string} [displayName] The name of the sensitivity label. + */ + displayName?: string; + /** + * @member {number} [order] The order of the sensitivity label. + */ + order?: number; + /** + * @member {boolean} [enabled] Indicates whether the label is enabled or not. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing InformationProtectionKeyword. + * The information type keyword. + * + */ +export interface InformationProtectionKeyword { + /** + * @member {string} [pattern] The keyword pattern. + */ + pattern?: string; + /** + * @member {boolean} [custom] Indicates whether the keyword is custom or not. + */ + custom?: boolean; + /** + * @member {boolean} [canBeNumeric] Indicates whether the keyword can be + * applied on numeric types or not. + */ + canBeNumeric?: boolean; + /** + * @member {boolean} [excluded] Indicates whether the keyword is excluded or + * not. + */ + excluded?: boolean; +} + +/** + * @interface + * An interface representing InformationType. + * The information type. + * + */ +export interface InformationType { + /** + * @member {string} [displayName] The name of the information type. + */ + displayName?: string; + /** + * @member {number} [order] The order of the information type. + */ + order?: number; + /** + * @member {string} [recommendedLabelId] The recommended label id to be + * associated with this information type. + */ + recommendedLabelId?: string; + /** + * @member {boolean} [enabled] Indicates whether the information type is + * enabled or not. + */ + enabled?: boolean; + /** + * @member {boolean} [custom] Indicates whether the information type is + * custom or not. + */ + custom?: boolean; + /** + * @member {InformationProtectionKeyword[]} [keywords] The information type + * keywords. + */ + keywords?: InformationProtectionKeyword[]; +} + +/** + * @interface + * An interface representing InformationProtectionPolicy. + * Information protection policy. + * + * @extends Resource + */ +export interface InformationProtectionPolicy extends Resource { + /** + * @member {Date} [lastModifiedUtc] 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; + /** + * @member {{ [propertyName: string]: SensitivityLabel }} [labels] Dictionary + * of sensitivity labels. + */ + labels?: { [propertyName: string]: SensitivityLabel }; + /** + * @member {{ [propertyName: string]: InformationType }} [informationTypes] + * The sensitivity information types. + */ + informationTypes?: { [propertyName: string]: InformationType }; +} + +/** + * @interface + * An interface representing SecurityContact. + * Contact details for security issues + * + * @extends Resource + */ +export interface SecurityContact extends Resource { + /** + * @member {string} email The email of this security contact + */ + email: string; + /** + * @member {string} [phone] The phone number of this security contact + */ + phone?: string; + /** + * @member {AlertNotifications} alertNotifications Whether to send security + * alerts notifications to the security contact. Possible values include: + * 'On', 'Off' + */ + alertNotifications: AlertNotifications; + /** + * @member {AlertsToAdmins} alertsToAdmins Whether to send security alerts + * notifications to subscription admins. Possible values include: 'On', 'Off' + */ + alertsToAdmins: AlertsToAdmins; +} + +/** + * @interface + * An interface representing WorkspaceSetting. + * Configures where to store the OMS agent data for workspaces under a scope + * + * @extends Resource + */ +export interface WorkspaceSetting extends Resource { + /** + * @member {string} workspaceId The full Azure ID of the workspace to save + * the data in + */ + workspaceId: string; + /** + * @member {string} scope 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; +} + +/** + * @interface + * An interface representing RegulatoryComplianceStandard. + * Regulatory compliance standard details and state + * + * @extends Resource + */ +export interface RegulatoryComplianceStandard extends Resource { + /** + * @member {State} [state] Aggregative state based on the standard's + * supported controls states. Possible values include: 'Passed', 'Failed', + * 'Skipped', 'Unsupported' + */ + state?: State; + /** + * @member {number} [passedControls] 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; + /** + * @member {number} [failedControls] 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; + /** + * @member {number} [skippedControls] 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; + /** + * @member {number} [unsupportedControls] 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; +} + +/** + * @interface + * An interface representing RegulatoryComplianceControl. + * Regulatory compliance control details and state + * + * @extends Resource + */ +export interface RegulatoryComplianceControl extends Resource { + /** + * @member {string} [description] 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; + /** + * @member {State} [state] Aggregative state based on the control's supported + * assessments states. Possible values include: 'Passed', 'Failed', + * 'Skipped', 'Unsupported' + */ + state?: State; + /** + * @member {number} [passedAssessments] 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; + /** + * @member {number} [failedAssessments] 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; + /** + * @member {number} [skippedAssessments] 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; +} + +/** + * @interface + * An interface representing RegulatoryComplianceAssessment. + * Regulatory compliance assessment details and state + * + * @extends Resource + */ +export interface RegulatoryComplianceAssessment extends Resource { + /** + * @member {string} [description] 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; + /** + * @member {string} [assessmentType] 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; + /** + * @member {string} [assessmentDetailsLink] 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; + /** + * @member {State} [state] Aggregative state based on the assessment's + * scanned resources states. Possible values include: 'Passed', 'Failed', + * 'Skipped', 'Unsupported' + */ + state?: State; + /** + * @member {number} [passedResources] 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; + /** + * @member {number} [failedResources] 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; + /** + * @member {number} [skippedResources] 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; + /** + * @member {number} [unsupportedResources] 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; +} + +/** + * @interface + * An interface representing AlertsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AlertsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {string} [select] OData select. Optional. + */ + select?: string; + /** + * @member {string} [expand] OData expand. Optional. + */ + expand?: string; +} + +/** + * @interface + * An interface representing AlertsListByResourceGroupOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AlertsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {string} [select] OData select. Optional. + */ + select?: string; + /** + * @member {string} [expand] OData expand. Optional. + */ + expand?: string; +} + +/** + * @interface + * An interface representing AlertsListSubscriptionLevelAlertsByRegionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AlertsListSubscriptionLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {string} [select] OData select. Optional. + */ + select?: string; + /** + * @member {string} [expand] OData expand. Optional. + */ + expand?: string; +} + +/** + * @interface + * An interface representing AlertsListResourceGroupLevelAlertsByRegionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AlertsListResourceGroupLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; + /** + * @member {string} [select] OData select. Optional. + */ + select?: string; + /** + * @member {string} [expand] OData expand. Optional. + */ + expand?: string; +} + +/** + * @interface + * An interface representing TasksListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TasksListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} + +/** + * @interface + * An interface representing TasksListByHomeRegionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} + +/** + * @interface + * An interface representing TasksListByResourceGroupOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} + +/** + * @interface + * An interface representing RegulatoryComplianceStandardsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} + +/** + * @interface + * An interface representing RegulatoryComplianceControlsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} + +/** + * @interface + * An interface representing RegulatoryComplianceAssessmentsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} + +/** + * @interface + * An interface representing SecurityCenterOptions. + * @extends AzureServiceClientOptions + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + + +/** + * @interface + * An interface representing the AlertList. + * List of security alerts + * + * @extends Array + */ +export interface AlertList extends Array { + /** + * @member {string} [nextLink] 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 SettingsList. + * Subscription settings list. + * + * @extends Array + */ +export interface SettingsList extends Array { + /** + * @member {string} [nextLink] 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 AllowedConnectionsList. + * List of all possible traffic between Azure resources + * + * @extends Array + */ +export interface AllowedConnectionsList extends Array { + /** + * @member {string} [nextLink] 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 { + /** + * @member {string} [nextLink] 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 { + /** + * @member {string} [nextLink] 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 { + /** + * @member {string} [nextLink] 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 AscLocationList. + * List of locations where ASC saves your data + * + * @extends Array + */ +export interface AscLocationList extends Array { + /** + * @member {string} [nextLink] 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 OperationList. + * List of possible operations for Microsoft.Security resource provider + * + * @extends Array + */ +export interface OperationList extends Array { + /** + * @member {string} [nextLink] 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 SecurityTaskList. + * List of security task recommendations + * + * @extends Array + */ +export interface SecurityTaskList extends Array { + /** + * @member {string} [nextLink] 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 { + /** + * @member {string} [nextLink] 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 AutoProvisioningSettingList. + * List of all the auto provisioning settings response + * + * @extends Array + */ +export interface AutoProvisioningSettingList extends Array { + /** + * @member {string} [nextLink] 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 ComplianceList. + * List of Compliance objects response + * + * @extends Array + */ +export interface ComplianceList extends Array { + /** + * @member {string} [nextLink] 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 InformationProtectionPolicyList. + * Information protection policies response. + * + * @extends Array + */ +export interface InformationProtectionPolicyList extends Array { + /** + * @member {string} [nextLink] 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 SecurityContactList. + * List of security contacts response + * + * @extends Array + */ +export interface SecurityContactList extends Array { + /** + * @member {string} [nextLink] 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 WorkspaceSettingList. + * List of workspace settings response + * + * @extends Array + */ +export interface WorkspaceSettingList extends Array { + /** + * @member {string} [nextLink] 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 RegulatoryComplianceStandardList. + * List of regulatory compliance standards response + * + * @extends Array + */ +export interface RegulatoryComplianceStandardList extends Array { + /** + * @member {string} [nextLink] 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 RegulatoryComplianceControlList. + * List of regulatory compliance controls response + * + * @extends Array + */ +export interface RegulatoryComplianceControlList extends Array { + /** + * @member {string} [nextLink] 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 RegulatoryComplianceAssessmentList. + * List of regulatory compliance assessment response + * + * @extends Array + */ +export interface RegulatoryComplianceAssessmentList extends Array { + /** + * @member {string} [nextLink] 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 PricingTier. + * Possible values include: 'Free', 'Standard' + * @readonly + * @enum {string} + */ +export type PricingTier = 'Free' | 'Standard'; + +/** + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' + * @readonly + * @enum {string} + */ +export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; + +/** + * Defines values for SettingKind. + * Possible values include: 'DataExportSetting', 'AlertSuppressionSetting' + * @readonly + * @enum {string} + */ +export type SettingKind = 'DataExportSetting' | 'AlertSuppressionSetting'; + +/** + * 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 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 AutoProvision. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type AutoProvision = 'On' | 'Off'; + +/** + * 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 ConnectionType. + * Possible values include: 'Internal', 'External' + * @readonly + * @enum {string} + */ +export type ConnectionType = 'Internal' | 'External'; + +/** + * Defines values for AlertUpdateActionType. + * Possible values include: 'Dismiss', 'Reactivate' + * @readonly + * @enum {string} + */ +export type AlertUpdateActionType = 'Dismiss' | 'Reactivate'; + +/** + * Defines values for AlertUpdateActionType1. + * Possible values include: 'Dismiss', 'Reactivate' + * @readonly + * @enum {string} + */ +export type AlertUpdateActionType1 = 'Dismiss' | 'Reactivate'; + +/** + * Defines values for SettingName. + * Possible values include: 'MCAS', 'WDATP' + * @readonly + * @enum {string} + */ +export type SettingName = 'MCAS' | 'WDATP'; + +/** + * Defines values for SettingName1. + * Possible values include: 'MCAS', 'WDATP' + * @readonly + * @enum {string} + */ +export type SettingName1 = 'MCAS' | 'WDATP'; + +/** + * Defines values for TaskUpdateActionType. + * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' + * @readonly + * @enum {string} + */ +export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + +/** + * Defines values for TaskUpdateActionType1. + * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' + * @readonly + * @enum {string} + */ +export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + +/** + * Defines values for InformationProtectionPolicyName. + * Possible values include: 'effective', 'custom' + * @readonly + * @enum {string} + */ +export type InformationProtectionPolicyName = 'effective' | 'custom'; + +/** + * Defines values for InformationProtectionPolicyName1. + * Possible values include: 'effective', 'custom' + * @readonly + * @enum {string} + */ +export type InformationProtectionPolicyName1 = 'effective' | 'custom'; + +/** + * Contains response data for the list operation. + */ +export type PricingsListResponse = PricingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PricingList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PricingsGetResponse = Pricing & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pricing; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PricingsUpdateResponse = Pricing & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Pricing; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type 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; + }; +}; + +/** + * Contains response data for the listSubscriptionLevelAlertsByRegion operation. + */ +export type AlertsListSubscriptionLevelAlertsByRegionResponse = 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 listResourceGroupLevelAlertsByRegion operation. + */ +export type AlertsListResourceGroupLevelAlertsByRegionResponse = 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 getSubscriptionLevelAlert operation. + */ +export type AlertsGetSubscriptionLevelAlertResponse = Alert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Alert; + }; +}; + +/** + * Contains response data for the getResourceGroupLevelAlerts operation. + */ +export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Alert; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AlertsListNextResponse = 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 listByResourceGroupNext operation. + */ +export type AlertsListByResourceGroupNextResponse = 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 listSubscriptionLevelAlertsByRegionNext operation. + */ +export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = 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 listResourceGroupLevelAlertsByRegionNext operation. + */ +export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = 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 list operation. + */ +export type SettingsListResponse = SettingsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SettingsList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SettingsGetResponse = Setting & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Setting; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SettingsUpdateResponse = Setting & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: Setting; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SettingsListNextResponse = SettingsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SettingsList; + }; +}; + +/** + * Contains response data for the 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 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 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 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 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 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 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 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; + }; +}; diff --git a/sdk/security/arm-security/lib/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/lib/models/informationProtectionPoliciesMappers.ts new file mode 100644 index 000000000000..a61caced228d --- /dev/null +++ b/sdk/security/arm-security/lib/models/informationProtectionPoliciesMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + InformationProtectionPolicy, + Resource, + BaseResource, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + CloudError, + InformationProtectionPolicyList, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/jitNetworkAccessPoliciesMappers.ts b/sdk/security/arm-security/lib/models/jitNetworkAccessPoliciesMappers.ts new file mode 100644 index 000000000000..c7f8d5b68006 --- /dev/null +++ b/sdk/security/arm-security/lib/models/jitNetworkAccessPoliciesMappers.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + JitNetworkAccessPoliciesList, + JitNetworkAccessPolicy, + JitNetworkAccessPolicyVirtualMachine, + JitNetworkAccessPortRule, + JitNetworkAccessRequest, + JitNetworkAccessRequestVirtualMachine, + JitNetworkAccessRequestPort, + CloudError, + JitNetworkAccessPolicyInitiateRequest, + JitNetworkAccessPolicyInitiateVirtualMachine, + JitNetworkAccessPolicyInitiatePort +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/locationsMappers.ts b/sdk/security/arm-security/lib/models/locationsMappers.ts new file mode 100644 index 000000000000..32e81d4f2f60 --- /dev/null +++ b/sdk/security/arm-security/lib/models/locationsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + AscLocationList, + AscLocation, + Resource, + BaseResource, + CloudError, + Pricing, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/mappers.ts b/sdk/security/arm-security/lib/models/mappers.ts new file mode 100644 index 000000000000..c9c9c816debe --- /dev/null +++ b/sdk/security/arm-security/lib/models/mappers.ts @@ -0,0 +1,2686 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + 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" + } + } + } + } +}; + +export const Pricing: msRest.CompositeMapper = { + serializedName: "Pricing", + type: { + name: "Composite", + className: "Pricing", + modelProperties: { + ...Resource.type.modelProperties, + pricingTier: { + required: true, + serializedName: "properties.pricingTier", + 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 AscLocation: msRest.CompositeMapper = { + serializedName: "AscLocation", + type: { + name: "Composite", + className: "AscLocation", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + 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: { + serializedName: "kind", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Location: msRest.CompositeMapper = { + serializedName: "Location", + type: { + name: "Composite", + className: "Location", + modelProperties: { + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const Kind: msRest.CompositeMapper = { + serializedName: "Kind", + type: { + name: "Composite", + className: "Kind", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const ETag: msRest.CompositeMapper = { + serializedName: "ETag", + type: { + name: "Composite", + className: "ETag", + modelProperties: { + etag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const Tags: msRest.CompositeMapper = { + serializedName: "Tags", + type: { + name: "Composite", + className: "Tags", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + 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 AlertConfidenceReason: msRest.CompositeMapper = { + serializedName: "AlertConfidenceReason", + type: { + name: "Composite", + className: "AlertConfidenceReason", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + reason: { + readOnly: true, + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const Alert: msRest.CompositeMapper = { + serializedName: "Alert", + type: { + name: "Composite", + className: "Alert", + modelProperties: { + ...Resource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + reportedTimeUtc: { + readOnly: true, + serializedName: "properties.reportedTimeUtc", + type: { + name: "DateTime" + } + }, + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + alertName: { + readOnly: true, + serializedName: "properties.alertName", + type: { + name: "String" + } + }, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", + type: { + name: "String" + } + }, + detectedTimeUtc: { + readOnly: true, + serializedName: "properties.detectedTimeUtc", + type: { + name: "DateTime" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "String" + } + }, + actionTaken: { + readOnly: true, + serializedName: "properties.actionTaken", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "properties.reportedSeverity", + type: { + name: "String" + } + }, + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", + type: { + name: "String" + } + }, + associatedResource: { + readOnly: true, + serializedName: "properties.associatedResource", + type: { + name: "String" + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + systemSource: { + readOnly: true, + serializedName: "properties.systemSource", + type: { + name: "String" + } + }, + canBeInvestigated: { + readOnly: true, + serializedName: "properties.canBeInvestigated", + type: { + name: "Boolean" + } + }, + isIncident: { + readOnly: true, + serializedName: "properties.isIncident", + type: { + name: "Boolean" + } + }, + entities: { + serializedName: "properties.entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + }, + confidenceScore: { + readOnly: true, + serializedName: "properties.confidenceScore", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + confidenceReasons: { + serializedName: "properties.confidenceReasons", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertConfidenceReason" + } + } + } + }, + subscriptionId: { + readOnly: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + }, + instanceId: { + readOnly: true, + serializedName: "properties.instanceId", + type: { + name: "String" + } + }, + workspaceArmId: { + readOnly: true, + serializedName: "properties.workspaceArmId", + type: { + name: "String" + } + }, + correlationKey: { + readOnly: true, + serializedName: "properties.correlationKey", + type: { + name: "String" + } + } + } + } +}; + +export const SettingResource: msRest.CompositeMapper = { + serializedName: "SettingResource", + type: { + name: "Composite", + className: "SettingResource", + modelProperties: { + ...Resource.type.modelProperties, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const Setting: msRest.CompositeMapper = { + serializedName: "Setting", + type: { + name: "Composite", + className: "Setting", + modelProperties: { + ...SettingResource.type.modelProperties + } + } +}; + +export const DataExportSetting: msRest.CompositeMapper = { + serializedName: "DataExportSetting", + type: { + name: "Composite", + className: "DataExportSetting", + modelProperties: { + ...Setting.type.modelProperties, + enabled: { + required: true, + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +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 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 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 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" + } + } + } + } + } + } +}; + +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" + } + } + } + } +}; + +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" + } + } + } + } +}; + +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" + } + } + } + } + } + } +}; + +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 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 AdvancedThreatProtectionSetting: msRest.CompositeMapper = { + serializedName: "AdvancedThreatProtectionSetting", + type: { + name: "Composite", + className: "AdvancedThreatProtectionSetting", + modelProperties: { + ...Resource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +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" + } + }, + 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" + } + }, + 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" + } + }, + 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 AlertList: msRest.CompositeMapper = { + serializedName: "AlertList", + type: { + name: "Composite", + className: "AlertList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Alert" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SettingsList: msRest.CompositeMapper = { + serializedName: "SettingsList", + type: { + name: "Composite", + className: "SettingsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const 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 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", + 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 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 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 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 discriminators = { + 'ExternalSecuritySolution' : ExternalSecuritySolution, + 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, + 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, + 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution +}; diff --git a/sdk/security/arm-security/lib/models/operationsMappers.ts b/sdk/security/arm-security/lib/models/operationsMappers.ts new file mode 100644 index 000000000000..f2e907d82125 --- /dev/null +++ b/sdk/security/arm-security/lib/models/operationsMappers.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + OperationList, + Operation, + OperationDisplay, + CloudError +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/parameters.ts b/sdk/security/arm-security/lib/models/parameters.ts new file mode 100644 index 000000000000..23a28cc6f03e --- /dev/null +++ b/sdk/security/arm-security/lib/models/parameters.ts @@ -0,0 +1,391 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const alertName: msRest.OperationURLParameter = { + parameterPath: "alertName", + mapper: { + required: true, + serializedName: "alertName", + type: { + name: "String" + } + } +}; +export const alertUpdateActionType: msRest.OperationURLParameter = { + parameterPath: "alertUpdateActionType", + mapper: { + required: true, + serializedName: "alertUpdateActionType", + type: { + name: "String" + } + } +}; +export const apiVersion0: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2018-06-01', + type: { + name: "String" + } + } +}; +export const apiVersion1: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-01-01', + type: { + name: "String" + } + } +}; +export const apiVersion2: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2015-06-01-preview', + type: { + name: "String" + } + } +}; +export const apiVersion3: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2017-08-01-preview', + type: { + name: "String" + } + } +}; +export const apiVersion4: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-01-01-preview', + type: { + name: "String" + } + } +}; +export const ascLocation: msRest.OperationURLParameter = { + parameterPath: "ascLocation", + mapper: { + required: true, + serializedName: "ascLocation", + type: { + name: "String" + } + } +}; +export const complianceName: msRest.OperationURLParameter = { + parameterPath: "complianceName", + mapper: { + required: true, + serializedName: "complianceName", + type: { + name: "String" + } + } +}; +export const connectionType: msRest.OperationURLParameter = { + parameterPath: "connectionType", + mapper: { + required: true, + serializedName: "connectionType", + 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 informationProtectionPolicyName: msRest.OperationURLParameter = { + parameterPath: "informationProtectionPolicyName", + mapper: { + required: true, + serializedName: "informationProtectionPolicyName", + type: { + name: "String" + } + } +}; +export const jitNetworkAccessPolicyInitiateType: msRest.OperationURLParameter = { + parameterPath: "jitNetworkAccessPolicyInitiateType", + mapper: { + required: true, + isConstant: true, + serializedName: "jitNetworkAccessPolicyInitiateType", + defaultValue: 'initiate', + type: { + name: "String" + } + } +}; +export const jitNetworkAccessPolicyName: msRest.OperationURLParameter = { + parameterPath: "jitNetworkAccessPolicyName", + mapper: { + required: true, + serializedName: "jitNetworkAccessPolicyName", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const pricingName: msRest.OperationURLParameter = { + parameterPath: "pricingName", + mapper: { + required: true, + serializedName: "pricingName", + 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: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, + type: { + name: "String" + } + } +}; +export const resourceId: msRest.OperationURLParameter = { + parameterPath: "resourceId", + mapper: { + required: true, + serializedName: "resourceId", + type: { + name: "String" + } + } +}; +export const scope: msRest.OperationURLParameter = { + parameterPath: "scope", + mapper: { + required: true, + serializedName: "scope", + type: { + name: "String" + } + } +}; +export const securityContactName: msRest.OperationURLParameter = { + parameterPath: "securityContactName", + mapper: { + required: true, + serializedName: "securityContactName", + type: { + name: "String" + } + } +}; +export const select: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "select" + ], + mapper: { + serializedName: "$select", + type: { + name: "String" + } + } +}; +export const settingName0: msRest.OperationURLParameter = { + parameterPath: "settingName", + mapper: { + required: true, + serializedName: "settingName", + type: { + name: "String" + } + } +}; +export const settingName1: msRest.OperationURLParameter = { + parameterPath: "settingName", + mapper: { + required: true, + isConstant: true, + serializedName: "settingName", + defaultValue: 'current', + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + constraints: { + Pattern: /^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$/ + }, + type: { + name: "String" + } + } +}; +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 topologyResourceName: msRest.OperationURLParameter = { + parameterPath: "topologyResourceName", + mapper: { + required: true, + serializedName: "topologyResourceName", + 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/lib/models/pricingsMappers.ts b/sdk/security/arm-security/lib/models/pricingsMappers.ts new file mode 100644 index 000000000000..d3de34097ea0 --- /dev/null +++ b/sdk/security/arm-security/lib/models/pricingsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + PricingList, + Pricing, + Resource, + BaseResource, + CloudError, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts b/sdk/security/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts new file mode 100644 index 000000000000..de1c3585fe14 --- /dev/null +++ b/sdk/security/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + RegulatoryComplianceAssessmentList, + RegulatoryComplianceAssessment, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/regulatoryComplianceControlsMappers.ts b/sdk/security/arm-security/lib/models/regulatoryComplianceControlsMappers.ts new file mode 100644 index 000000000000..99424e17bdc5 --- /dev/null +++ b/sdk/security/arm-security/lib/models/regulatoryComplianceControlsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + RegulatoryComplianceControlList, + RegulatoryComplianceControl, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts b/sdk/security/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts new file mode 100644 index 000000000000..b0776f5a60d1 --- /dev/null +++ b/sdk/security/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + RegulatoryComplianceStandardList, + RegulatoryComplianceStandard, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/securityContactsMappers.ts b/sdk/security/arm-security/lib/models/securityContactsMappers.ts new file mode 100644 index 000000000000..4a98ced26f42 --- /dev/null +++ b/sdk/security/arm-security/lib/models/securityContactsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + SecurityContactList, + SecurityContact, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/settingsMappers.ts b/sdk/security/arm-security/lib/models/settingsMappers.ts new file mode 100644 index 000000000000..9694f37752d5 --- /dev/null +++ b/sdk/security/arm-security/lib/models/settingsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + SettingsList, + Setting, + SettingResource, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + DataExportSetting, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/tasksMappers.ts b/sdk/security/arm-security/lib/models/tasksMappers.ts new file mode 100644 index 000000000000..3b3ee4834d42 --- /dev/null +++ b/sdk/security/arm-security/lib/models/tasksMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + SecurityTaskList, + SecurityTask, + Resource, + BaseResource, + SecurityTaskParameters, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + WorkspaceSetting, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/topologyMappers.ts b/sdk/security/arm-security/lib/models/topologyMappers.ts new file mode 100644 index 000000000000..2f721b7b6c8b --- /dev/null +++ b/sdk/security/arm-security/lib/models/topologyMappers.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + TopologyList, + TopologyResource, + TopologySingleResource, + TopologySingleResourceParent, + TopologySingleResourceChild, + CloudError +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/models/workspaceSettingsMappers.ts b/sdk/security/arm-security/lib/models/workspaceSettingsMappers.ts new file mode 100644 index 000000000000..8fca344f4d07 --- /dev/null +++ b/sdk/security/arm-security/lib/models/workspaceSettingsMappers.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + discriminators, + WorkspaceSettingList, + WorkspaceSetting, + Resource, + BaseResource, + CloudError, + Pricing, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/sdk/security/arm-security/lib/operations/advancedThreatProtection.ts b/sdk/security/arm-security/lib/operations/advancedThreatProtection.ts new file mode 100644 index 000000000000..34247324cc15 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/advancedThreatProtection.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.settingName1 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + 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.settingName1 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + 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/lib/operations/alerts.ts b/sdk/security/arm-security/lib/operations/alerts.ts new file mode 100644 index 000000000000..73df8ef66164 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/alerts.ts @@ -0,0 +1,688 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/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?: Models.AlertsListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.AlertsListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.AlertsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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?: Models.AlertsListByResourceGroupOptionalParams): 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.AlertsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.AlertsListByResourceGroupOptionalParams | 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 + */ + listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams): Promise; + /** + * @param callback The callback + */ + listSubscriptionLevelAlertsByRegion(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listSubscriptionLevelAlertsByRegion(options: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; + listSubscriptionLevelAlertsByRegion(options?: Models.AlertsListSubscriptionLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listSubscriptionLevelAlertsByRegionOperationSpec, + 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 + */ + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param callback The callback + */ + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams, callback: msRest.ServiceCallback): void; + listResourceGroupLevelAlertsByRegion(resourceGroupName: string, options?: Models.AlertsListResourceGroupLevelAlertsByRegionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listResourceGroupLevelAlertsByRegionOperationSpec, + 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 + */ + getSubscriptionLevelAlert(alertName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param callback The callback + */ + getSubscriptionLevelAlert(alertName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param options The optional parameters + * @param callback The callback + */ + getSubscriptionLevelAlert(alertName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSubscriptionLevelAlert(alertName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + options + }, + getSubscriptionLevelAlertOperationSpec, + 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 + */ + getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param callback The callback + */ + getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @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 + */ + getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getResourceGroupLevelAlerts(alertName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + resourceGroupName, + options + }, + getResourceGroupLevelAlertsOperationSpec, + callback) as Promise; + } + + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param alertUpdateActionType Type of the action to do on the alert. Possible values include: + * 'Dismiss', 'Reactivate' + * @param [options] The optional parameters + * @returns Promise + */ + updateSubscriptionLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param alertUpdateActionType Type of the action to do on the alert. Possible values include: + * 'Dismiss', 'Reactivate' + * @param callback The callback + */ + updateSubscriptionLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param alertUpdateActionType Type of the action to do on the alert. Possible values include: + * 'Dismiss', 'Reactivate' + * @param options The optional parameters + * @param callback The callback + */ + updateSubscriptionLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateSubscriptionLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + alertUpdateActionType, + options + }, + updateSubscriptionLevelAlertStateOperationSpec, + callback); + } + + /** + * Update the alert's state + * @param alertName Name of the alert object + * @param alertUpdateActionType Type of the action to do on the alert. Possible values include: + * 'Dismiss', 'Reactivate' + * @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 + */ + updateResourceGroupLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType1, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param alertName Name of the alert object + * @param alertUpdateActionType Type of the action to do on the alert. Possible values include: + * 'Dismiss', 'Reactivate' + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param callback The callback + */ + updateResourceGroupLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType1, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param alertName Name of the alert object + * @param alertUpdateActionType Type of the action to do on the alert. Possible values include: + * 'Dismiss', 'Reactivate' + * @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 + */ + updateResourceGroupLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType1, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateResourceGroupLevelAlertState(alertName: string, alertUpdateActionType: Models.AlertUpdateActionType1, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + alertName, + alertUpdateActionType, + resourceGroupName, + options + }, + updateResourceGroupLevelAlertStateOperationSpec, + callback); + } + + /** + * 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 + */ + listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSubscriptionLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSubscriptionLevelAlertsByRegionNextOperationSpec, + 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 + */ + listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listResourceGroupLevelAlertsByRegionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listResourceGroupLevelAlertsByRegionNextOperationSpec, + 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.apiVersion1, + Parameters.filter, + Parameters.select, + Parameters.expand + ], + 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.apiVersion1, + Parameters.filter, + Parameters.select, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.select, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.select, + Parameters.expand + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Alert + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getResourceGroupLevelAlertsOperationSpec: 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.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Alert + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateSubscriptionLevelAlertStateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/{alertUpdateActionType}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + Parameters.alertUpdateActionType + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateResourceGroupLevelAlertStateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/{alertUpdateActionType}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + Parameters.alertUpdateActionType, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion1 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSubscriptionLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listResourceGroupLevelAlertsByRegionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AlertList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/allowedConnections.ts b/sdk/security/arm-security/lib/operations/allowedConnections.ts new file mode 100644 index 000000000000..98eb68b742ac --- /dev/null +++ b/sdk/security/arm-security/lib/operations/allowedConnections.ts @@ -0,0 +1,288 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AllowedConnectionsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/lib/operations/autoProvisioningSettings.ts new file mode 100644 index 000000000000..675ffe7a63f9 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/autoProvisioningSettings.ts @@ -0,0 +1,241 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion3 + ], + 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.settingName0 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + 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.settingName0 + ], + queryParameters: [ + Parameters.apiVersion3 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AutoProvisioningSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/compliances.ts b/sdk/security/arm-security/lib/operations/compliances.ts new file mode 100644 index 000000000000..b08289a129d2 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/compliances.ts @@ -0,0 +1,198 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComplianceList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/discoveredSecuritySolutions.ts b/sdk/security/arm-security/lib/operations/discoveredSecuritySolutions.ts new file mode 100644 index 000000000000..dfc79f411549 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/discoveredSecuritySolutions.ts @@ -0,0 +1,284 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiscoveredSecuritySolutionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/lib/operations/externalSecuritySolutions.ts new file mode 100644 index 000000000000..2980dde3c9b9 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/externalSecuritySolutions.ts @@ -0,0 +1,284 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExternalSecuritySolutionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/index.ts b/sdk/security/arm-security/lib/operations/index.ts new file mode 100644 index 000000000000..08b1b9d448d1 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/index.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./pricings"; +export * from "./alerts"; +export * from "./settings"; +export * from "./allowedConnections"; +export * from "./discoveredSecuritySolutions"; +export * from "./externalSecuritySolutions"; +export * from "./jitNetworkAccessPolicies"; +export * from "./locations"; +export * from "./operations"; +export * from "./tasks"; +export * from "./topology"; +export * from "./advancedThreatProtection"; +export * from "./autoProvisioningSettings"; +export * from "./compliances"; +export * from "./informationProtectionPolicies"; +export * from "./securityContacts"; +export * from "./workspaceSettings"; +export * from "./regulatoryComplianceStandards"; +export * from "./regulatoryComplianceControls"; +export * from "./regulatoryComplianceAssessments"; diff --git a/sdk/security/arm-security/lib/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/lib/operations/informationProtectionPolicies.ts new file mode 100644 index 000000000000..596418391a0b --- /dev/null +++ b/sdk/security/arm-security/lib/operations/informationProtectionPolicies.ts @@ -0,0 +1,269 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 [options] The optional parameters + * @returns Promise + */ + createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, 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 + */ + createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, 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 + */ + createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(scope: string, informationProtectionPolicyName: Models.InformationProtectionPolicyName1, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + informationProtectionPolicyName, + 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.apiVersion3 + ], + 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.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + 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.apiVersion3 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.InformationProtectionPolicyList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/lib/operations/jitNetworkAccessPolicies.ts new file mode 100644 index 000000000000..723636a8e43f --- /dev/null +++ b/sdk/security/arm-security/lib/operations/jitNetworkAccessPolicies.ts @@ -0,0 +1,705 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + 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 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.JitNetworkAccessPoliciesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/locations.ts b/sdk/security/arm-security/lib/operations/locations.ts new file mode 100644 index 000000000000..07abce747f32 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/locations.ts @@ -0,0 +1,178 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AscLocationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/operations.ts b/sdk/security/arm-security/lib/operations/operations.ts new file mode 100644 index 000000000000..9f462e729344 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/operations.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/pricings.ts b/sdk/security/arm-security/lib/operations/pricings.ts new file mode 100644 index 000000000000..e08acd1a4309 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/pricings.ts @@ -0,0 +1,192 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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; + } + + /** + * Security 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; + } + + /** + * Security 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; + } + + /** + * Security 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.apiVersion0 + ], + 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.apiVersion0 + ], + 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.apiVersion0 + ], + 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/lib/operations/regulatoryComplianceAssessments.ts b/sdk/security/arm-security/lib/operations/regulatoryComplianceAssessments.ts new file mode 100644 index 000000000000..3ab39835023e --- /dev/null +++ b/sdk/security/arm-security/lib/operations/regulatoryComplianceAssessments.ts @@ -0,0 +1,215 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: Models.RegulatoryComplianceAssessmentsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param regulatoryComplianceControlName Name of the regulatory compliance control object + * @param callback The callback + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options: Models.RegulatoryComplianceAssessmentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: Models.RegulatoryComplianceAssessmentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + regulatoryComplianceStandardName, + regulatoryComplianceControlName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Supported regulatory compliance details and state for selected assessment + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + 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?: 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName, + Parameters.regulatoryComplianceControlName + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceAssessmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName, + Parameters.regulatoryComplianceControlName, + Parameters.regulatoryComplianceAssessmentName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceAssessmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/regulatoryComplianceControls.ts b/sdk/security/arm-security/lib/operations/regulatoryComplianceControls.ts new file mode 100644 index 000000000000..5d538cf9dfa0 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/regulatoryComplianceControls.ts @@ -0,0 +1,205 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: Models.RegulatoryComplianceControlsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param callback The callback + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, options: Models.RegulatoryComplianceControlsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: Models.RegulatoryComplianceControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + regulatoryComplianceStandardName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Selected regulatory compliance control details and state + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param regulatoryComplianceControlName Name of the regulatory compliance control object + * @param callback The callback + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + 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?: 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceControlList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName, + Parameters.regulatoryComplianceControlName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceControlList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/regulatoryComplianceStandards.ts b/sdk/security/arm-security/lib/operations/regulatoryComplianceStandards.ts new file mode 100644 index 000000000000..753dad30b925 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/regulatoryComplianceStandards.ts @@ -0,0 +1,195 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 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?: Models.RegulatoryComplianceStandardsListOptionalParams): 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: Models.RegulatoryComplianceStandardsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: Models.RegulatoryComplianceStandardsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Supported regulatory compliance details state for selected standard + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param callback The callback + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + 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?: 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion4, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceStandardList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName + ], + queryParameters: [ + Parameters.apiVersion4 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceStandardList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/securityContacts.ts b/sdk/security/arm-security/lib/operations/securityContacts.ts new file mode 100644 index 000000000000..c41fda48b7e5 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/securityContacts.ts @@ -0,0 +1,354 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityContactList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/settings.ts b/sdk/security/arm-security/lib/operations/settings.ts new file mode 100644 index 000000000000..91a1db8e3418 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/settings.ts @@ -0,0 +1,241 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param [options] The optional parameters + * @returns Promise + */ + get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase): Promise; + /** + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param callback The callback + */ + get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; + /** + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @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 Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param setting Setting object + * @param [options] The optional parameters + * @returns Promise + */ + update(settingName: Models.SettingName1, setting: Models.Setting, options?: msRest.RequestOptionsBase): Promise; + /** + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param setting Setting object + * @param callback The callback + */ + update(settingName: Models.SettingName1, setting: Models.Setting, callback: msRest.ServiceCallback): void; + /** + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' + * @param setting Setting object + * @param options The optional parameters + * @param callback The callback + */ + update(settingName: Models.SettingName1, setting: Models.Setting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(settingName: Models.SettingName1, setting: Models.Setting, 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.apiVersion1 + ], + 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.settingName0 + ], + queryParameters: [ + Parameters.apiVersion1 + ], + 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.settingName0 + ], + queryParameters: [ + Parameters.apiVersion1 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SettingsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/tasks.ts b/sdk/security/arm-security/lib/operations/tasks.ts new file mode 100644 index 000000000000..07b65eecb202 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/tasks.ts @@ -0,0 +1,571 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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?: 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; + } + + /** + * 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?: 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; + } + + /** + * 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?: 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/tasks", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2, + 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.apiVersion2, + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2, + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityTaskList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/topology.ts b/sdk/security/arm-security/lib/operations/topology.ts new file mode 100644 index 000000000000..88cfa453f69e --- /dev/null +++ b/sdk/security/arm-security/lib/operations/topology.ts @@ -0,0 +1,284 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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.apiVersion2 + ], + 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 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TopologyList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/operations/workspaceSettings.ts b/sdk/security/arm-security/lib/operations/workspaceSettings.ts new file mode 100644 index 000000000000..0877ddec81a6 --- /dev/null +++ b/sdk/security/arm-security/lib/operations/workspaceSettings.ts @@ -0,0 +1,358 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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.apiVersion3 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkspaceSettingList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/lib/securityCenter.ts b/sdk/security/arm-security/lib/securityCenter.ts new file mode 100644 index 000000000000..fc61e46c5d1d --- /dev/null +++ b/sdk/security/arm-security/lib/securityCenter.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/mappers"; +import * as operations from "./operations"; +import { SecurityCenterContext } from "./securityCenterContext"; + + +class SecurityCenter extends SecurityCenterContext { + // Operation groups + pricings: operations.Pricings; + alerts: operations.Alerts; + settings: operations.Settings; + allowedConnections: operations.AllowedConnections; + discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; + externalSecuritySolutions: operations.ExternalSecuritySolutions; + jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; + locations: operations.Locations; + operations: operations.Operations; + tasks: operations.Tasks; + topology: operations.Topology; + advancedThreatProtection: operations.AdvancedThreatProtection; + autoProvisioningSettings: operations.AutoProvisioningSettings; + compliances: operations.Compliances; + informationProtectionPolicies: operations.InformationProtectionPolicies; + securityContacts: operations.SecurityContacts; + workspaceSettings: operations.WorkspaceSettings; + regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; + regulatoryComplianceControls: operations.RegulatoryComplianceControls; + regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; + + /** + * Initializes a new instance of the SecurityCenter class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Azure subscription ID + * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved + * from Get locations + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + super(credentials, subscriptionId, ascLocation, options); + this.pricings = new operations.Pricings(this); + this.alerts = new operations.Alerts(this); + this.settings = new operations.Settings(this); + this.allowedConnections = new operations.AllowedConnections(this); + this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); + this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); + this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); + this.locations = new operations.Locations(this); + this.operations = new operations.Operations(this); + this.tasks = new operations.Tasks(this); + this.topology = new operations.Topology(this); + this.advancedThreatProtection = new operations.AdvancedThreatProtection(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); + } +} + +// Operation Specifications + +export { + SecurityCenter, + SecurityCenterContext, + Models as SecurityCenterModels, + Mappers as SecurityCenterMappers +}; +export * from "./operations"; diff --git a/sdk/security/arm-security/lib/securityCenterContext.ts b/sdk/security/arm-security/lib/securityCenterContext.ts new file mode 100644 index 000000000000..3cbbd0dd847c --- /dev/null +++ b/sdk/security/arm-security/lib/securityCenterContext.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-security"; +const packageVersion = "1.2.0"; + +export class SecurityCenterContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + subscriptionId: string; + ascLocation: string; + + /** + * Initializes a new instance of the SecurityCenter class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Azure subscription ID + * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved + * from Get locations + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { + 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 = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + 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; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 69b6df73c8f0..c71513df9c70 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -4,8 +4,8 @@ "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/security/arm-security", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,7 +43,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", + "lib/**/*.ts", "rollup.config.js", "tsconfig.json" ], @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-security.js.map'\" -o ./dist/arm-security.min.js ./dist/arm-security.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/sdk/security/arm-security/rollup.config.js b/sdk/security/arm-security/rollup.config.js index 651c85e10ed3..43a7bd9aa064 100644 --- a/sdk/security/arm-security/rollup.config.js +++ b/sdk/security/arm-security/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/securityCenter.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/securityCenter.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-security.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] } From 3b79b0747be18dead571cd6273764f5e44ba1eb9 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 12 May 2019 09:40:32 +0000 Subject: [PATCH 2/2] Generated from 837b66de09e85e45f2c98080cb8c8262fa787d01 Fixing Example files --- sdk/security/arm-security/README.md | 10 +- sdk/security/arm-security/package.json | 10 +- .../models/advancedThreatProtectionMappers.ts | 36 +- .../arm-security/src/models/alertsMappers.ts | 38 +- .../src/models/allowedConnectionsMappers.ts | 11 +- .../models/autoProvisioningSettingsMappers.ts | 38 +- .../src/models/complianceResultsMappers.ts | 39 + .../src/models/compliancesMappers.ts | 44 +- .../discoveredSecuritySolutionsMappers.ts | 11 +- .../externalSecuritySolutionsMappers.ts | 23 +- sdk/security/arm-security/src/models/index.ts | 3016 +++++++++-------- .../informationProtectionPoliciesMappers.ts | 44 +- .../models/jitNetworkAccessPoliciesMappers.ts | 17 +- .../src/models/locationsMappers.ts | 38 +- .../arm-security/src/models/mappers.ts | 2444 +++++++------ .../src/models/operationsMappers.ts | 11 +- .../arm-security/src/models/parameters.ts | 90 +- .../src/models/pricingsMappers.ts | 40 +- .../regulatoryComplianceAssessmentsMappers.ts | 39 + .../regulatoryComplianceControlsMappers.ts | 39 + .../regulatoryComplianceStandardsMappers.ts | 39 + .../src/models/securityContactsMappers.ts | 40 +- .../src/models/settingsMappers.ts | 37 +- .../arm-security/src/models/tasksMappers.ts | 44 +- .../src/models/topologyMappers.ts | 11 +- .../src/models/workspaceSettingsMappers.ts | 40 +- .../operations/advancedThreatProtection.ts | 4 +- .../arm-security/src/operations/alerts.ts | 20 +- .../src/operations/allowedConnections.ts | 6 +- .../operations/autoProvisioningSettings.ts | 6 +- .../src/operations/complianceResults.ts | 143 + .../src/operations/compliances.ts | 4 +- .../operations/discoveredSecuritySolutions.ts | 6 +- .../operations/externalSecuritySolutions.ts | 6 +- .../arm-security/src/operations/index.ts | 28 +- .../informationProtectionPolicies.ts | 6 +- .../operations/jitNetworkAccessPolicies.ts | 16 +- .../arm-security/src/operations/locations.ts | 4 +- .../arm-security/src/operations/operations.ts | 2 +- .../arm-security/src/operations/pricings.ts | 325 +- .../regulatoryComplianceAssessments.ts | 215 ++ .../regulatoryComplianceControls.ts | 205 ++ .../regulatoryComplianceStandards.ts | 195 ++ .../src/operations/securityContacts.ts | 10 +- .../arm-security/src/operations/settings.ts | 32 +- .../arm-security/src/operations/tasks.ts | 14 +- .../arm-security/src/operations/topology.ts | 6 +- .../src/operations/workspaceSettings.ts | 19 +- .../arm-security/src/securityCenter.ts | 56 +- .../arm-security/src/securityCenterContext.ts | 2 +- sdk/security/arm-security/tsconfig.json | 2 +- 51 files changed, 4370 insertions(+), 3211 deletions(-) create mode 100644 sdk/security/arm-security/src/models/complianceResultsMappers.ts create mode 100644 sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts create mode 100644 sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts create mode 100644 sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts create mode 100644 sdk/security/arm-security/src/operations/complianceResults.ts create mode 100644 sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts create mode 100644 sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts create mode 100644 sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index 0992d26e24ae..7542654eb4b8 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-security ### How to use -#### nodejs - Authentication, client creation and list pricings as an example written in TypeScript. +#### nodejs - Authentication, client creation and list complianceResults as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -34,7 +34,8 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new SecurityCenter(creds, subscriptionId); - client.pricings.list().then((result) => { + const scope = "testscope"; + client.complianceResults.list(scope).then((result) => { console.log("The result is:"); console.log(result); }); @@ -43,7 +44,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and list pricings as an example written in JavaScript. +#### browser - Authentication, client creation and list complianceResults as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -77,7 +78,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmSecurity.SecurityCenter(res.creds, subscriptionId); - client.pricings.list().then((result) => { + const scope = "testscope"; + client.complianceResults.list(scope).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 c71513df9c70..197afcfd843e 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -4,8 +4,8 @@ "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.0", - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -43,7 +43,8 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "lib/**/*.ts", + "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +53,6 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-security.js.map'\" -o ./dist/arm-security.min.js ./dist/arm-security.js", "prepack": "npm install && npm run build" }, - "sideEffects": false + "sideEffects": false, + "autoPublish": true } diff --git a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts index a5728932eabf..2ecada770360 100644 --- a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts +++ b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts @@ -1,34 +1,38 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, AdvancedThreatProtectionSetting, - Resource, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, CloudError, - SecurityContact, - Pricing, - WorkspaceSetting, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/alertsMappers.ts b/sdk/security/arm-security/src/models/alertsMappers.ts index db7d75be9704..31e1e4c8442f 100644 --- a/sdk/security/arm-security/src/models/alertsMappers.ts +++ b/sdk/security/arm-security/src/models/alertsMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - AlertList, + AdvancedThreatProtectionSetting, Alert, - Resource, - BaseResource, - AlertEntity, AlertConfidenceReason, - CloudError, - SecurityContact, - Pricing, - WorkspaceSetting, + AlertEntity, + AlertList, + AscLocation, AutoProvisioningSetting, + BaseResource, + CloudError, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts b/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts index d8a8951a7057..3c08bb7fe3fa 100644 --- a/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts +++ b/sdk/security/arm-security/src/models/allowedConnectionsMappers.ts @@ -1,19 +1,16 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, AllowedConnectionsList, AllowedConnectionsResource, + CloudError, ConnectableResource, - ConnectedResource, - CloudError + ConnectedResource } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts index 8c012f3647a2..6f9b51a7a157 100644 --- a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - AutoProvisioningSettingList, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, AutoProvisioningSetting, - Resource, + AutoProvisioningSettingList, BaseResource, CloudError, - SecurityContact, - Pricing, - WorkspaceSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/complianceResultsMappers.ts b/sdk/security/arm-security/src/models/complianceResultsMappers.ts new file mode 100644 index 000000000000..f1bfbe5d9e82 --- /dev/null +++ b/sdk/security/arm-security/src/models/complianceResultsMappers.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, + BaseResource, + CloudError, + Compliance, + ComplianceResult, + ComplianceResultList, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/compliancesMappers.ts b/sdk/security/arm-security/src/models/compliancesMappers.ts index a38fc6ae8046..3ec683978c63 100644 --- a/sdk/security/arm-security/src/models/compliancesMappers.ts +++ b/sdk/security/arm-security/src/models/compliancesMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ComplianceList, - Compliance, - Resource, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, - ComplianceSegment, CloudError, - SecurityContact, - Pricing, - WorkspaceSetting, - AutoProvisioningSetting, - AdvancedThreatProtectionSetting, + Compliance, + ComplianceList, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts index fbd7462a6323..7b504741880d 100644 --- a/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts +++ b/sdk/security/arm-security/src/models/discoveredSecuritySolutionsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - DiscoveredSecuritySolutionList, + CloudError, DiscoveredSecuritySolution, - CloudError + DiscoveredSecuritySolutionList } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts index 16f85ea6d5ae..55f2be16966d 100644 --- a/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts +++ b/sdk/security/arm-security/src/models/externalSecuritySolutionsMappers.ts @@ -1,25 +1,22 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - ExternalSecuritySolutionList, - ExternalSecuritySolution, - CloudError, + AadExternalSecuritySolution, + AadSolutionProperties, + AtaExternalSecuritySolution, + AtaSolutionProperties, CefExternalSecuritySolution, CefSolutionProperties, - ExternalSecuritySolutionProperties, + CloudError, ConnectedWorkspace, - AtaSolutionProperties, - AtaExternalSecuritySolution, - AadExternalSecuritySolution, - AadSolutionProperties + 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 dc38e6a5aba6..2ddf50a1bee7 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,1942 +11,1719 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Resource. * Describes an Azure resource. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * @interface - * An interface representing Kind. - * Describes an Azure resource with kind - * + * a compliance result */ -export interface Kind { +export interface ComplianceResult extends Resource { /** - * @member {string} [kind] Kind of the resource + * 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.** */ - kind?: string; + readonly resourceStatus?: ResourceStatus; } /** - * @interface - * An interface representing SecurityContact. - * Contact details for security issues - * - * @extends Resource + * List of compliance results response */ -export interface SecurityContact extends Resource { +export interface ComplianceResultList { /** - * @member {string} email The email of this security contact + * List of compliance results */ - email: string; + value: ComplianceResult[]; +} + +/** + * The ASC location of the subscription is in the "name" field + */ +export interface AscLocation extends Resource { + properties?: any; +} + +/** + * Describes an Azure tracked resource. + */ +export interface TrackedResource { /** - * @member {string} [phone] The phone number of this security contact + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - phone?: string; + readonly id?: string; /** - * @member {AlertNotifications} alertNotifications Whether to send security - * alerts notifications to the security contact. Possible values include: - * 'On', 'Off' + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - alertNotifications: AlertNotifications; + readonly name?: string; /** - * @member {AlertsToAdmins} alertsToAdmins Whether to send security alerts - * notifications to subscription admins. Possible values include: 'On', 'Off' + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - alertsToAdmins: AlertsToAdmins; + 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; + /** + * Kind of the resource + */ + kind?: string; + /** + * Entity tag is used for comparing two or more entities from the same requested resource. ETags + * may be returned for individual resources, and then sent via If-Match / If-None-Match headers + * for concurrency control. + */ + etag?: string; + /** + * A list of key value pairs that describe the resource. + */ + tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing Pricing. - * Pricing tier will be applied for the scope based on the resource ID - * - * @extends Resource + * Describes an Azure resource with location */ -export interface Pricing extends Resource { +export interface Location { /** - * @member {PricingTier} pricingTier Pricing tier type. Possible values - * include: 'Free', 'Standard' + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - pricingTier: PricingTier; + readonly location?: string; } /** - * @interface - * An interface representing WorkspaceSetting. - * Configures where to store the OMS agent data for workspaces under a scope - * - * @extends Resource + * Describes an Azure resource with kind */ -export interface WorkspaceSetting extends Resource { - /** - * @member {string} workspaceId The full Azure ID of the workspace to save - * the data in - */ - workspaceId: string; +export interface Kind { /** - * @member {string} scope All the VMs in this scope will send their security - * data to the mentioned workspace unless overridden by a setting with more - * specific scope + * Kind of the resource */ - scope: string; + kind?: string; } /** - * @interface - * An interface representing AutoProvisioningSetting. - * Auto provisioning setting - * - * @extends Resource + * Entity tag is used for comparing two or more entities from the same requested resource. ETags + * may be returned for individual resources, and then sent via If-Match / If-None-Match headers for + * concurrency control. */ -export interface AutoProvisioningSetting extends Resource { +export interface ETag { /** - * @member {AutoProvision} autoProvision Describes what kind of security - * agent provisioning action to take. Possible values include: 'On', 'Off' + * Entity tag is used for comparing two or more entities from the same requested resource. ETags + * may be returned for individual resources, and then sent via If-Match / If-None-Match headers + * for concurrency control. */ - autoProvision: AutoProvision; + etag?: string; } /** - * @interface - * An interface representing ComplianceSegment. - * A segment of a compliance assessment. - * + * A list of key value pairs that describe the resource. */ -export interface ComplianceSegment { - /** - * @member {string} [segmentType] 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; +export interface Tags { /** - * @member {number} [percentage] The size (%) of the segment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A list of key value pairs that describe the resource. */ - readonly percentage?: number; + tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing Compliance. - * Compliance of a scope - * - * @extends Resource + * Pricing tier will be applied for the scope based on the resource ID */ -export interface Compliance extends Resource { - /** - * @member {Date} [assessmentTimestampUtcDate] 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; +export interface Pricing extends Resource { /** - * @member {number} [resourceCount] 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.** + * The pricing tier value. Possible values include: 'Free', 'Standard' */ - readonly resourceCount?: number; + pricingTier: PricingTier; /** - * @member {ComplianceSegment[]} [assessmentResult] 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.** + * 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 assessmentResult?: ComplianceSegment[]; + readonly freeTrialRemainingTime?: string; } /** - * @interface - * An interface representing AdvancedThreatProtectionSetting. - * The Advanced Threat Protection resource. - * - * @extends Resource + * List of pricing configurations response */ -export interface AdvancedThreatProtectionSetting extends Resource { +export interface PricingList { /** - * @member {boolean} [isEnabled] Indicates whether Advanced Threat Protection - * is enabled. + * List of pricing configurations */ - isEnabled?: boolean; + value: Pricing[]; } /** - * Contains the possible cases for Setting. - */ -export type SettingUnion = Setting | DataExportSetting; - -/** - * @interface - * An interface representing Setting. - * Represents a security setting in Azure Security Center. - * + * Changing set of properties depending on the entity type. */ -export interface Setting { +export interface AlertEntity { /** - * @member {string} kind Polymorphic Discriminator + * Type of entity + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind: "Setting"; + readonly type?: string; /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Describes unknown properties. The value of an unknown property can be of "any" type. */ - readonly id?: string; + [property: string]: any; +} + +/** + * Factors that increase our confidence that the alert is a true positive + */ +export interface AlertConfidenceReason { /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Type of confidence factor + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly type?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * description of the confidence reason + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly reason?: string; } /** - * @interface - * An interface representing DataExportSetting. - * Represents a data export setting - * + * Security alert */ -export interface DataExportSetting { +export interface Alert extends Resource { /** - * @member {string} kind Polymorphic Discriminator + * State of the alert (Active, Dismissed etc.) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind: "DataExportSetting"; + readonly state?: string; /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The time the incident was reported to Microsoft.Security in UTC + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly reportedTimeUtc?: Date; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the vendor that discovered the incident + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly vendorName?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the alert type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly alertName?: string; /** - * @member {boolean} enabled Is the data export setting is enabled + * Display name of the alert type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enabled: boolean; -} - -/** - * @interface - * An interface representing SettingKind1. - * The kind of the security setting - * - */ -export interface SettingKind1 { + readonly alertDisplayName?: string; /** - * @member {SettingKind} [kind] the kind of the settings string. Possible - * values include: 'DataExportSetting' + * The time the incident was detected by the vendor + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind?: SettingKind; -} - -/** - * @interface - * An interface representing SensitivityLabel. - * The sensitivity label. - * - */ -export interface SensitivityLabel { + readonly detectedTimeUtc?: Date; /** - * @member {string} [displayName] The name of the sensitivity label. + * Description of the incident and what it means + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayName?: string; + readonly description?: string; /** - * @member {number} [order] The order of the sensitivity label. + * Recommended steps to reradiate the incident + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - order?: number; + readonly remediationSteps?: string; /** - * @member {boolean} [enabled] Indicates whether the label is enabled or not. + * The action that was taken as a response to the alert (Active, Blocked etc.) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enabled?: boolean; -} - -/** - * @interface - * An interface representing InformationProtectionKeyword. - * The information type keyword. - * - */ -export interface InformationProtectionKeyword { + readonly actionTaken?: string; /** - * @member {string} [pattern] The keyword pattern. + * Estimated severity of this alert. Possible values include: 'Informational', 'Low', 'Medium', + * 'High' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - pattern?: string; + readonly reportedSeverity?: ReportedSeverity; /** - * @member {boolean} [custom] Indicates whether the keyword is custom or not. + * The entity that the incident happened on + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - custom?: boolean; + readonly compromisedEntity?: string; /** - * @member {boolean} [canBeNumeric] Indicates whether the keyword can be - * applied on numeric types or not. + * Azure resource ID of the associated resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - canBeNumeric?: boolean; + readonly associatedResource?: string; + extendedProperties?: { [propertyName: string]: any }; /** - * @member {boolean} [excluded] Indicates whether the keyword is excluded or - * not. + * The type of the alerted resource (Azure, Non-Azure) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - excluded?: boolean; -} - -/** - * @interface - * An interface representing InformationType. - * The information type. - * - */ -export interface InformationType { + readonly systemSource?: string; /** - * @member {string} [displayName] The name of the information type. + * Whether this alert can be investigated with Azure Security Center + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayName?: string; + readonly canBeInvestigated?: boolean; /** - * @member {number} [order] The order of the information type. + * Whether this alert is for incident type or not (otherwise - single alert) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - order?: number; + readonly isIncident?: boolean; /** - * @member {string} [recommendedLabelId] The recommended label id to be - * associated with this information type. + * objects that are related to this alerts */ - recommendedLabelId?: string; + entities?: AlertEntity[]; /** - * @member {boolean} [enabled] Indicates whether the information type is - * enabled or not. + * level of confidence we have on the alert + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enabled?: boolean; + readonly confidenceScore?: number; /** - * @member {boolean} [custom] Indicates whether the information type is - * custom or not. + * reasons the alert got the confidenceScore value */ - custom?: boolean; + confidenceReasons?: AlertConfidenceReason[]; /** - * @member {InformationProtectionKeyword[]} [keywords] The information type - * keywords. + * Azure subscription ID of the resource that had the security alert or the subscription ID of + * the workspace that this resource reports to + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - keywords?: InformationProtectionKeyword[]; -} - -/** - * @interface - * An interface representing InformationProtectionPolicy. - * Information protection policy. - * - * @extends Resource - */ -export interface InformationProtectionPolicy extends Resource { + readonly subscriptionId?: string; /** - * @member {Date} [lastModifiedUtc] Describes the last UTC time the policy - * was modified. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Instance ID of the alert. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastModifiedUtc?: Date; + readonly instanceId?: string; /** - * @member {{ [propertyName: string]: SensitivityLabel }} [labels] Dictionary - * of sensitivity labels. + * Azure resource ID of the workspace that the alert was reported to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labels?: { [propertyName: string]: SensitivityLabel }; + readonly workspaceArmId?: string; /** - * @member {{ [propertyName: string]: InformationType }} [informationTypes] - * The sensitivity information types. + * Alerts with the same CorrelationKey will be grouped together in Ibiza. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - informationTypes?: { [propertyName: string]: InformationType }; + readonly correlationKey?: string; } /** - * @interface - * An interface representing Location. - * Describes an Azure resource with location - * + * The kind of the security setting */ -export interface Location { +export interface SettingResource extends Resource { /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * the kind of the settings string (DataExportSetting). Possible values include: + * 'DataExportSetting', 'AlertSuppressionSetting' */ - readonly location?: string; + kind: SettingKind; } /** - * @interface - * An interface representing OperationDisplay. - * Security operation display - * + * Represents a security setting in Azure Security Center. */ -export interface OperationDisplay { +export interface Setting extends SettingResource { +} + +/** + * Represents a data export setting + */ +export interface DataExportSetting extends Setting { /** - * @member {string} [provider] The resource provider for the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Is the data export setting is enabled */ - readonly provider?: string; + enabled: boolean; +} + +/** + * Describes properties of a connected resource + */ +export interface ConnectedResource { /** - * @member {string} [resource] 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.** + * The Azure resource id of the connected resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resource?: string; + readonly connectedResourceId?: string; /** - * @member {string} [operation] The display name of the security operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The allowed tcp ports + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly tcpPorts?: string; /** - * @member {string} [description] The description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The allowed udp ports + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly udpPorts?: string; } /** - * @interface - * An interface representing Operation. - * Possible operation in the REST API of Microsoft.Security - * + * Describes the allowed inbound and outbound traffic of an Azure resource */ -export interface Operation { +export interface ConnectableResource { /** - * @member {string} [name] Name of the operation - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Azure resource id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly id?: string; /** - * @member {string} [origin] Where the operation is originated - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 origin?: string; + readonly inboundConnectedResources?: ConnectedResource[]; /** - * @member {OperationDisplay} [display] + * 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.** */ - display?: OperationDisplay; + readonly outboundConnectedResources?: ConnectedResource[]; } /** - * @interface - * An interface representing SecurityTaskParameters. - * Changing set of properties, depending on the task type that is derived from - * the name field - * + * The resource whose properties describes the allowed traffic between Azure resources */ -export interface SecurityTaskParameters { +export interface AllowedConnectionsResource { + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; /** - * @member {string} [name] Name of the task type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - [property: string]: any; -} - -/** - * @interface - * An interface representing SecurityTask. - * Security task that we recommend to do in order to strengthen security - * - * @extends Resource - */ -export interface SecurityTask extends Resource { + readonly type?: string; /** - * @member {string} [state] State of the task (Active, Resolved etc.) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly location?: string; /** - * @member {Date} [creationTimeUtc] The time this task was discovered in UTC - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 creationTimeUtc?: Date; + readonly calculatedDateTime?: Date; /** - * @member {SecurityTaskParameters} [securityTaskParameters] + * List of connectable resources + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - securityTaskParameters?: SecurityTaskParameters; + readonly connectableResources?: ConnectableResource[]; +} + +/** + * An interface representing DiscoveredSecuritySolution. + */ +export interface DiscoveredSecuritySolution { /** - * @member {Date} [lastStateChangeTimeUtc] 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.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastStateChangeTimeUtc?: Date; + readonly id?: string; /** - * @member {string} [subState] Additional data on the state of the task - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly subState?: string; + 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; } /** - * @interface - * An interface representing AscLocation. - * The ASC location of the subscription is in the "name" field - * - * @extends Resource + * Contains the possible cases for ExternalSecuritySolution. */ -export interface AscLocation extends Resource { +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 { /** - * @member {any} [properties] + * Polymorphic Discriminator */ - properties?: any; + 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; } /** - * @interface - * An interface representing AlertEntity. - * Changing set of properties depending on the entity type. - * + * The solution properties (correspond to the solution kind) */ -export interface AlertEntity { +export interface ExternalSecuritySolutionProperties { + deviceVendor?: string; + deviceType?: string; + workspace?: ConnectedWorkspace; /** - * @member {string} [type] Type of entity - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - [property: string]: any; + readonly location?: string; + properties?: CefSolutionProperties; } /** - * @interface - * An interface representing AlertConfidenceReason. - * Factors that increase our confidence that the alert is a true positive - * + * An interface representing AtaSolutionProperties. + * @summary The external security solution properties for ATA solutions */ -export interface AlertConfidenceReason { +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; /** - * @member {string} [type] Type of confidence factor - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [reason] description of the confidence reason - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly reason?: string; + readonly location?: string; + properties?: AtaSolutionProperties; } /** - * @interface - * An interface representing Alert. - * Security alert - * - * @extends Resource + * An interface representing ConnectedWorkspace. + * @summary Represents an OMS workspace to which the solution is connected */ -export interface Alert extends Resource { +export interface ConnectedWorkspace { /** - * @member {string} [state] State of the alert (Active, Dismissed etc.) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource ID of the connected OMS workspace */ - readonly state?: string; + id?: string; +} + +/** + * An interface representing AadSolutionProperties. + * @summary The external security solution properties for AAD solutions + */ +export interface AadSolutionProperties { + deviceVendor?: string; + deviceType?: string; + workspace?: ConnectedWorkspace; /** - * @member {Date} [reportedTimeUtc] The time the incident was reported to - * Microsoft.Security in UTC - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The connectivity state of the external AAD solution . Possible values include: 'Discovered', + * 'NotLicensed', 'Connected' */ - readonly reportedTimeUtc?: Date; + connectivityState?: AadConnectivityState; +} + +/** + * Represents an AAD identity protection solution which sends logs to an OMS workspace. + */ +export interface AadExternalSecuritySolution { /** - * @member {string} [vendorName] Name of the vendor that discovered the - * incident - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Polymorphic Discriminator */ - readonly vendorName?: string; + kind: "AAD"; /** - * @member {string} [alertName] Name of the alert type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly alertName?: string; + readonly id?: string; /** - * @member {string} [alertDisplayName] Display name of the alert type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly alertDisplayName?: string; + readonly name?: string; /** - * @member {Date} [detectedTimeUtc] The time the incident was detected by the - * vendor - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly detectedTimeUtc?: Date; + readonly type?: string; /** - * @member {string} [description] Description of the incident and what it - * means - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly location?: string; + properties?: AadSolutionProperties; +} + +/** + * Describes an Azure resource with kind + */ +export interface ExternalSecuritySolutionKind1 { /** - * @member {string} [remediationSteps] Recommended steps to reradiate the - * incident - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The kind of the external solution. Possible values include: 'CEF', 'ATA', 'AAD' */ - readonly remediationSteps?: string; + kind?: ExternalSecuritySolutionKind; +} + +/** + * Describes an Azure resource with kind + */ +export interface AadConnectivityState1 { /** - * @member {string} [actionTaken] The action that was taken as a response to - * the alert (Active, Blocked etc.) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The connectivity state of the external AAD solution . Possible values include: 'Discovered', + * 'NotLicensed', 'Connected' */ - readonly actionTaken?: string; + connectivityState?: AadConnectivityState; +} + +/** + * An interface representing JitNetworkAccessPortRule. + */ +export interface JitNetworkAccessPortRule { + number: number; /** - * @member {string} [reportedSeverity] Estimated severity of this alert - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Possible values include: 'TCP', 'UDP', 'All' */ - readonly reportedSeverity?: string; + protocol: Protocol; /** - * @member {string} [compromisedEntity] The entity that the incident happened - * on - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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". */ - readonly compromisedEntity?: string; + allowedSourceAddressPrefix?: string; /** - * @member {string} [associatedResource] Azure resource ID of the associated - * resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ - readonly associatedResource?: string; + allowedSourceAddressPrefixes?: string[]; /** - * @member {{ [propertyName: string]: any }} [extendedProperties] + * Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, + * maximum 1 day */ - extendedProperties?: { [propertyName: string]: any }; + maxRequestAccessDuration: string; +} + +/** + * An interface representing JitNetworkAccessPolicyVirtualMachine. + */ +export interface JitNetworkAccessPolicyVirtualMachine { /** - * @member {string} [systemSource] The type of the alerted resource (Azure, - * Non-Azure) - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID of the virtual machine that is linked to this policy */ - readonly systemSource?: string; + id: string; /** - * @member {boolean} [canBeInvestigated] Whether this alert can be - * investigated with Azure Security Center - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Port configurations for the virtual machine */ - readonly canBeInvestigated?: boolean; + ports: JitNetworkAccessPortRule[]; +} + +/** + * An interface representing JitNetworkAccessRequestPort. + */ +export interface JitNetworkAccessRequestPort { + number: number; /** - * @member {AlertEntity[]} [entities] objects that are related to this alerts + * 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". */ - entities?: AlertEntity[]; + allowedSourceAddressPrefix?: string; /** - * @member {number} [confidenceScore] level of confidence we have on the - * alert - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ - readonly confidenceScore?: number; + allowedSourceAddressPrefixes?: string[]; /** - * @member {AlertConfidenceReason[]} [confidenceReasons] reasons the alert - * got the confidenceScore value + * The date & time at which the request ends in UTC */ - confidenceReasons?: AlertConfidenceReason[]; + endTimeUtc: Date; /** - * @member {string} [subscriptionId] Azure subscription ID of the resource - * that had the security alert or the subscription ID of the workspace that - * this resource reports to - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The status of the port. Possible values include: 'Revoked', 'Initiated' */ - readonly subscriptionId?: string; + status: Status; + /** + * A description of why the `status` has its value. Possible values include: 'Expired', + * 'UserRequested', 'NewerRequestInitiated' + */ + statusReason: StatusReason; +} + +/** + * 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; +} + +/** + * 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[]; +} + +/** + * 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; /** - * @member {string} [instanceId] Instance ID of the alert. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The display name of the security operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly instanceId?: string; + readonly operation?: string; /** - * @member {string} [workspaceArmId] Azure resource ID of the workspace that - * the alert was reported to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The description of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly workspaceArmId?: string; + readonly description?: string; } /** - * @interface - * An interface representing DiscoveredSecuritySolution. + * Possible operation in the REST API of Microsoft.Security */ -export interface DiscoveredSecuritySolution { +export interface Operation { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the operation + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly name?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Where the operation is originated + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly origin?: string; + display?: OperationDisplay; +} + +/** + * Changing set of properties, depending on the task type that is derived from the name field + */ +export interface SecurityTaskParameters { /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Name of the task type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly name?: string; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Describes unknown properties. The value of an unknown property can be of "any" type. */ - readonly location?: string; + [property: string]: any; +} + +/** + * Security task that we recommend to do in order to strengthen security + */ +export interface SecurityTask extends Resource { /** - * @member {SecurityFamily} securityFamily The security family of the - * discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', - * 'Va' + * State of the task (Active, Resolved etc.) + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - securityFamily: SecurityFamily; + readonly state?: string; /** - * @member {string} offer The security solutions' image offer + * The time this task was discovered in UTC + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - offer: string; + readonly creationTimeUtc?: Date; + securityTaskParameters?: SecurityTaskParameters; /** - * @member {string} publisher The security solutions' image publisher + * 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.** */ - publisher: string; + readonly lastStateChangeTimeUtc?: Date; /** - * @member {string} sku The security solutions' image sku + * Additional data on the state of the task + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sku: string; + readonly subState?: string; } /** - * @interface * An interface representing TopologySingleResourceParent. */ export interface TopologySingleResourceParent { /** - * @member {string} [resourceId] 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.** + * 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; } /** - * @interface * An interface representing TopologySingleResourceChild. */ export interface TopologySingleResourceChild { /** - * @member {string} [resourceId] 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.** + * 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; } /** - * @interface * An interface representing TopologySingleResource. */ export interface TopologySingleResource { /** - * @member {string} [resourceId] Azure resource id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceId?: string; /** - * @member {string} [severity] The security severity of the resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The security severity of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly severity?: string; /** - * @member {boolean} [recommendationsExist] Indicates if the resource has - * security recommendations - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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; /** - * @member {string} [networkZones] 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.** + * 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; /** - * @member {number} [topologyScore] Score of the resource based on its - * security severity - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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; /** - * @member {string} [location] The location of this resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The location of this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly location?: string; /** - * @member {TopologySingleResourceParent[]} [parents] 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.** + * 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[]; /** - * @member {TopologySingleResourceChild[]} [children] 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.** + * 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[]; } /** - * @interface * An interface representing TopologyResource. */ export interface TopologyResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Location where the resource is stored + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly location?: string; /** - * @member {Date} [calculatedDateTime] The UTC time on which the topology was - * calculated - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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; /** - * @member {TopologySingleResource[]} [topologyResources] Azure resources - * which are part of this topology resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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[]; } /** - * @interface - * An interface representing JitNetworkAccessPortRule. - */ -export interface JitNetworkAccessPortRule { - /** - * @member {number} number - */ - number: number; - /** - * @member {Protocol} protocol Possible values include: 'TCP', 'UDP', 'All' - */ - protocol: Protocol; - /** - * @member {string} [allowedSourceAddressPrefix] 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; - /** - * @member {string[]} [allowedSourceAddressPrefixes] Mutually exclusive with - * the "allowedSourceAddressPrefix" parameter. - */ - allowedSourceAddressPrefixes?: string[]; - /** - * @member {string} maxRequestAccessDuration Maximum duration requests can be - * made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day - */ - maxRequestAccessDuration: string; -} - -/** - * @interface - * An interface representing JitNetworkAccessPolicyVirtualMachine. + * The Advanced Threat Protection resource. */ -export interface JitNetworkAccessPolicyVirtualMachine { - /** - * @member {string} id Resource ID of the virtual machine that is linked to - * this policy - */ - id: string; +export interface AdvancedThreatProtectionSetting extends Resource { /** - * @member {JitNetworkAccessPortRule[]} ports Port configurations for the - * virtual machine + * Indicates whether Advanced Threat Protection is enabled. */ - ports: JitNetworkAccessPortRule[]; + isEnabled?: boolean; } /** - * @interface - * An interface representing JitNetworkAccessRequestPort. + * Auto provisioning setting */ -export interface JitNetworkAccessRequestPort { - /** - * @member {number} number - */ - number: number; - /** - * @member {string} [allowedSourceAddressPrefix] 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; - /** - * @member {string[]} [allowedSourceAddressPrefixes] Mutually exclusive with - * the "allowedSourceAddressPrefix" parameter. - */ - allowedSourceAddressPrefixes?: string[]; - /** - * @member {Date} endTimeUtc The date & time at which the request ends in UTC - */ - endTimeUtc: Date; - /** - * @member {Status} status The status of the port. Possible values include: - * 'Revoked', 'Initiated' - */ - status: Status; +export interface AutoProvisioningSetting extends Resource { /** - * @member {StatusReason} statusReason A description of why the `status` has - * its value. Possible values include: 'Expired', 'UserRequested', - * 'NewerRequestInitiated' + * Describes what kind of security agent provisioning action to take. Possible values include: + * 'On', 'Off' */ - statusReason: StatusReason; + autoProvision: AutoProvision; } /** - * @interface - * An interface representing JitNetworkAccessRequestVirtualMachine. + * A segment of a compliance assessment. */ -export interface JitNetworkAccessRequestVirtualMachine { +export interface ComplianceSegment { /** - * @member {string} id Resource ID of the virtual machine that is linked to - * this policy + * 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.** */ - id: string; + readonly segmentType?: string; /** - * @member {JitNetworkAccessRequestPort[]} ports The ports that were opened - * for the virtual machine + * The size (%) of the segment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ports: JitNetworkAccessRequestPort[]; + readonly percentage?: number; } /** - * @interface - * An interface representing JitNetworkAccessRequest. + * Compliance of a scope */ -export interface JitNetworkAccessRequest { +export interface Compliance extends Resource { /** - * @member {JitNetworkAccessRequestVirtualMachine[]} virtualMachines + * The timestamp when the Compliance calculation was conducted. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - virtualMachines: JitNetworkAccessRequestVirtualMachine[]; + readonly assessmentTimestampUtcDate?: Date; /** - * @member {Date} startTimeUtc The start time of the request in UTC + * 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.** */ - startTimeUtc: Date; + readonly resourceCount?: number; /** - * @member {string} requestor The identity of the person who made the request + * 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.** */ - requestor: string; + readonly assessmentResult?: ComplianceSegment[]; } /** - * @interface - * An interface representing JitNetworkAccessPolicy. + * The sensitivity label. */ -export interface JitNetworkAccessPolicy { - /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly type?: string; - /** - * @member {string} [kind] Kind of the resource - */ - kind?: string; - /** - * @member {string} [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; +export interface SensitivityLabel { /** - * @member {JitNetworkAccessPolicyVirtualMachine[]} virtualMachines - * Configurations for Microsoft.Compute/virtualMachines resource type. + * The name of the sensitivity label. */ - virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; + displayName?: string; /** - * @member {JitNetworkAccessRequest[]} [requests] + * The order of the sensitivity label. */ - requests?: JitNetworkAccessRequest[]; + order?: number; /** - * @member {string} [provisioningState] 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.** + * Indicates whether the label is enabled or not. */ - readonly provisioningState?: string; + enabled?: boolean; } /** - * @interface - * An interface representing JitNetworkAccessPolicyInitiatePort. + * The information type keyword. */ -export interface JitNetworkAccessPolicyInitiatePort { - /** - * @member {number} number - */ - number: number; - /** - * @member {string} [allowedSourceAddressPrefix] Source of the allowed - * traffic. If omitted, the request will be for the source IP address of the - * initiate request. - */ - allowedSourceAddressPrefix?: string; +export interface InformationProtectionKeyword { /** - * @member {Date} endTimeUtc The time to close the request in UTC + * The keyword pattern. */ - endTimeUtc: Date; -} - -/** - * @interface - * An interface representing JitNetworkAccessPolicyInitiateVirtualMachine. - */ -export interface JitNetworkAccessPolicyInitiateVirtualMachine { + pattern?: string; /** - * @member {string} id Resource ID of the virtual machine that is linked to - * this policy + * Indicates whether the keyword is custom or not. */ - id: string; + custom?: boolean; /** - * @member {JitNetworkAccessPolicyInitiatePort[]} ports The ports to open for - * the resource with the `id` + * Indicates whether the keyword can be applied on numeric types or not. */ - ports: JitNetworkAccessPolicyInitiatePort[]; -} - -/** - * @interface - * An interface representing JitNetworkAccessPolicyInitiateRequest. - */ -export interface JitNetworkAccessPolicyInitiateRequest { + canBeNumeric?: boolean; /** - * @member {JitNetworkAccessPolicyInitiateVirtualMachine[]} virtualMachines A - * list of virtual machines & ports to open access for + * Indicates whether the keyword is excluded or not. */ - virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; + excluded?: boolean; } /** - * Contains the possible cases for ExternalSecuritySolution. - */ -export type ExternalSecuritySolutionUnion = ExternalSecuritySolution | CefExternalSecuritySolution | AtaExternalSecuritySolution | AadExternalSecuritySolution; - -/** - * @interface - * An interface representing ExternalSecuritySolution. - * Represents a security solution external to Azure Security Center which sends - * information to an OMS workspace and whos data is displayed by Azure Security - * Center. - * + * The information type. */ -export interface ExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ExternalSecuritySolution"; - /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; +export interface InformationType { /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the information type. */ - readonly type?: string; + displayName?: string; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The order of the information type. */ - readonly location?: string; -} - -/** - * @interface - * An interface representing ExternalSecuritySolutionProperties. - * The solution properties (correspond to the solution kind) - * - */ -export interface ExternalSecuritySolutionProperties { + order?: number; /** - * @member {string} [deviceVendor] + * The recommended label id to be associated with this information type. */ - deviceVendor?: string; + recommendedLabelId?: string; /** - * @member {string} [deviceType] + * Indicates whether the information type is enabled or not. */ - deviceType?: string; + enabled?: boolean; /** - * @member {ConnectedWorkspace} [workspace] + * Indicates whether the information type is custom or not. */ - workspace?: ConnectedWorkspace; + custom?: boolean; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * The information type keywords. */ - [property: string]: any; + keywords?: InformationProtectionKeyword[]; } /** - * @interface - * An interface representing CefSolutionProperties. - * @summary The external security solution properties for CEF solutions - * - * @extends ExternalSecuritySolutionProperties + * Information protection policy. */ -export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { +export interface InformationProtectionPolicy extends Resource { /** - * @member {string} [hostname] + * Describes the last UTC time the policy was modified. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hostname?: string; + readonly lastModifiedUtc?: Date; /** - * @member {string} [agent] + * Dictionary of sensitivity labels. */ - agent?: string; + labels?: { [propertyName: string]: SensitivityLabel }; /** - * @member {string} [lastEventReceived] + * The sensitivity information types. */ - lastEventReceived?: string; + informationTypes?: { [propertyName: string]: InformationType }; } /** - * @interface - * An interface representing CefExternalSecuritySolution. - * Represents a security solution which sends CEF logs to an OMS workspace - * + * Contact details for security issues */ -export interface CefExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "CEF"; - /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; +export interface SecurityContact extends Resource { /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The email of this security contact */ - readonly name?: string; + email: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The phone number of this security contact */ - readonly type?: string; + phone?: string; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether to send security alerts notifications to the security contact. Possible values + * include: 'On', 'Off' */ - readonly location?: string; + alertNotifications: AlertNotifications; /** - * @member {CefSolutionProperties} [properties] + * Whether to send security alerts notifications to subscription admins. Possible values include: + * 'On', 'Off' */ - properties?: CefSolutionProperties; + alertsToAdmins: AlertsToAdmins; } -/** - * @interface - * An interface representing AtaSolutionProperties. - * @summary The external security solution properties for ATA solutions - * - * @extends ExternalSecuritySolutionProperties +/** + * Configures where to store the OMS agent data for workspaces under a scope */ -export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { +export interface WorkspaceSetting extends Resource { /** - * @member {string} [lastEventReceived] + * The full Azure ID of the workspace to save the data in */ - lastEventReceived?: string; + 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; } /** - * @interface - * An interface representing AtaExternalSecuritySolution. - * Represents an ATA security solution which sends logs to an OMS workspace - * + * Regulatory compliance standard details and state */ -export interface AtaExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ATA"; +export interface RegulatoryComplianceStandard extends Resource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Aggregative state based on the standard's supported controls states. Possible values include: + * 'Passed', 'Failed', 'Skipped', 'Unsupported' */ - readonly id?: string; + state?: State; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 name?: string; + readonly passedControls?: number; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 type?: string; + readonly failedControls?: number; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 location?: string; + readonly skippedControls?: number; /** - * @member {AtaSolutionProperties} [properties] + * 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.** */ - properties?: AtaSolutionProperties; + readonly unsupportedControls?: number; } /** - * @interface - * An interface representing ConnectedWorkspace. - * @summary Represents an OMS workspace to which the solution is connected - * + * Regulatory compliance control details and state */ -export interface ConnectedWorkspace { +export interface RegulatoryComplianceControl extends Resource { /** - * @member {string} [id] Azure resource ID of the connected OMS workspace + * The description of the regulatory compliance control + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id?: string; -} - -/** - * @interface - * An interface representing AadSolutionProperties. - * @summary The external security solution properties for AAD solutions - * - */ -export interface AadSolutionProperties { + readonly description?: string; /** - * @member {string} [deviceVendor] + * Aggregative state based on the control's supported assessments states. Possible values + * include: 'Passed', 'Failed', 'Skipped', 'Unsupported' */ - deviceVendor?: string; + state?: State; /** - * @member {string} [deviceType] + * 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.** */ - deviceType?: string; + readonly passedAssessments?: number; /** - * @member {ConnectedWorkspace} [workspace] + * 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.** */ - workspace?: ConnectedWorkspace; + readonly failedAssessments?: number; /** - * @member {AadConnectivityState} [connectivityState] The connectivity state - * of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' + * 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.** */ - connectivityState?: AadConnectivityState; + readonly skippedAssessments?: number; } /** - * @interface - * An interface representing AadExternalSecuritySolution. - * Represents an AAD identity protection solution which sends logs to an OMS - * workspace. - * + * Regulatory compliance assessment details and state */ -export interface AadExternalSecuritySolution { +export interface RegulatoryComplianceAssessment extends Resource { /** - * @member {string} kind Polymorphic Discriminator + * The description of the regulatory compliance assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind: "AAD"; + readonly description?: string; /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 id?: string; + readonly assessmentType?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 name?: string; + readonly assessmentDetailsLink?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Aggregative state based on the assessment's scanned resources states. Possible values include: + * 'Passed', 'Failed', 'Skipped', 'Unsupported' */ - readonly type?: string; + state?: State; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 location?: string; + readonly passedResources?: number; /** - * @member {AadSolutionProperties} [properties] + * 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.** */ - properties?: AadSolutionProperties; -} - -/** - * @interface - * An interface representing ExternalSecuritySolutionKind1. - * Describes an Azure resource with kind - * - */ -export interface ExternalSecuritySolutionKind1 { + readonly failedResources?: number; /** - * @member {ExternalSecuritySolutionKind} [kind] The kind of the external - * solution. Possible values include: 'CEF', 'ATA', 'AAD' + * 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.** */ - kind?: ExternalSecuritySolutionKind; -} - -/** - * @interface - * An interface representing AadConnectivityState1. - * Describes an Azure resource with kind - * - */ -export interface AadConnectivityState1 { + readonly skippedResources?: number; /** - * @member {AadConnectivityState} [connectivityState] The connectivity state - * of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' + * 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.** */ - connectivityState?: AadConnectivityState; + readonly unsupportedResources?: number; } /** - * @interface - * An interface representing ConnectedResource. - * Describes properties of a connected resource - * + * Optional Parameters. */ -export interface ConnectedResource { +export interface AlertsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [connectedResourceId] The Azure resource id of the - * connected resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData filter. Optional. */ - readonly connectedResourceId?: string; + filter?: string; /** - * @member {string} [tcpPorts] The allowed tcp ports - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData select. Optional. */ - readonly tcpPorts?: string; + select?: string; /** - * @member {string} [udpPorts] The allowed udp ports - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData expand. Optional. */ - readonly udpPorts?: string; + expand?: string; } /** - * @interface - * An interface representing ConnectableResource. - * Describes the allowed inbound and outbound traffic of an Azure resource - * + * Optional Parameters. */ -export interface ConnectableResource { +export interface AlertsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [id] The Azure resource id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData filter. Optional. */ - readonly id?: string; + filter?: string; /** - * @member {ConnectedResource[]} [inboundConnectedResources] 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.** + * OData select. Optional. */ - readonly inboundConnectedResources?: ConnectedResource[]; + select?: string; /** - * @member {ConnectedResource[]} [outboundConnectedResources] 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.** + * OData expand. Optional. */ - readonly outboundConnectedResources?: ConnectedResource[]; + expand?: string; } /** - * @interface - * An interface representing AllowedConnectionsResource. - * The resource whose properties describes the allowed traffic between Azure - * resources - * + * Optional Parameters. */ -export interface AllowedConnectionsResource { +export interface AlertsListSubscriptionLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData filter. Optional. */ - readonly id?: string; + filter?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData select. Optional. */ - readonly name?: string; + select?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData expand. Optional. */ - readonly type?: string; + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface AlertsListResourceGroupLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData filter. Optional. */ - readonly location?: string; + filter?: string; /** - * @member {Date} [calculatedDateTime] 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.** + * OData select. Optional. */ - readonly calculatedDateTime?: Date; + select?: string; /** - * @member {ConnectableResource[]} [connectableResources] List of connectable - * resources - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * OData expand. Optional. */ - readonly connectableResources?: ConnectableResource[]; + expand?: string; } /** - * @interface - * An interface representing TasksListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface TasksListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] OData filter. Optional. + * OData filter. Optional. */ filter?: string; } /** - * @interface - * An interface representing TasksListByHomeRegionOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] OData filter. Optional. + * OData filter. Optional. */ filter?: string; } /** - * @interface - * An interface representing TasksListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] OData filter. Optional. + * OData filter. Optional. */ filter?: string; } /** - * @interface - * An interface representing AlertsListOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ -export interface AlertsListOptionalParams extends msRest.RequestOptionsBase { +export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] OData filter. Optional. + * OData filter. Optional. */ filter?: string; - /** - * @member {string} [select] OData select. Optional. - */ - select?: string; - /** - * @member {string} [expand] OData expand. Optional. - */ - expand?: string; } /** - * @interface - * An interface representing AlertsListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ -export interface AlertsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] OData filter. Optional. + * OData filter. Optional. */ filter?: string; - /** - * @member {string} [select] OData select. Optional. - */ - select?: string; - /** - * @member {string} [expand] OData expand. Optional. - */ - expand?: string; } /** - * @interface - * An interface representing AlertsListSubscriptionLevelAlertsByRegionOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ -export interface AlertsListSubscriptionLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { +export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] OData filter. Optional. + * OData filter. Optional. */ filter?: string; - /** - * @member {string} [select] OData select. Optional. - */ - select?: string; - /** - * @member {string} [expand] OData expand. Optional. - */ - expand?: string; +} + +/** + * An interface representing SecurityCenterOptions. + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + baseUri?: string; } /** * @interface - * An interface representing AlertsListResourceGroupLevelAlertsByRegionOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * List of security alerts + * @extends Array */ -export interface AlertsListResourceGroupLevelAlertsByRegionOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] OData filter. Optional. - */ - filter?: string; - /** - * @member {string} [select] OData select. Optional. - */ - select?: string; +export interface AlertList extends Array { /** - * @member {string} [expand] OData expand. Optional. + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - expand?: string; + readonly nextLink?: string; } /** * @interface - * An interface representing SecurityCenterOptions. - * @extends AzureServiceClientOptions + * Subscription settings list. + * @extends Array */ -export interface SecurityCenterOptions extends AzureServiceClientOptions { +export interface SettingsList extends Array { /** - * @member {string} [baseUri] + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - baseUri?: string; + readonly nextLink?: string; } - /** * @interface - * An interface representing the PricingList. - * List of pricing configurations response - * - * @extends Array + * List of all possible traffic between Azure resources + * @extends Array */ -export interface PricingList extends Array { +export interface AllowedConnectionsList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 SecurityContactList. - * List of security contacts response - * - * @extends Array + * An interface representing the DiscoveredSecuritySolutionList. + * @extends Array */ -export interface SecurityContactList extends Array { +export interface DiscoveredSecuritySolutionList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 WorkspaceSettingList. - * List of workspace settings response - * - * @extends Array + * An interface representing the ExternalSecuritySolutionList. + * @extends Array */ -export interface WorkspaceSettingList extends Array { +export interface ExternalSecuritySolutionList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 AutoProvisioningSettingList. - * List of all the auto provisioning settings response - * - * @extends Array + * An interface representing the JitNetworkAccessPoliciesList. + * @extends Array */ -export interface AutoProvisioningSettingList extends Array { +export interface JitNetworkAccessPoliciesList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 ComplianceList. - * List of Compliance objects response - * - * @extends Array + * List of locations where ASC saves your data + * @extends Array */ -export interface ComplianceList extends Array { +export interface AscLocationList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 SettingsList. - * Subscription settings list. - * - * @extends Array + * List of possible operations for Microsoft.Security resource provider + * @extends Array */ -export interface SettingsList extends Array { +export interface OperationList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 InformationProtectionPolicyList. - * Information protection policies response. - * - * @extends Array + * List of security task recommendations + * @extends Array */ -export interface InformationProtectionPolicyList extends Array { +export interface SecurityTaskList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 OperationList. - * List of possible operations for Microsoft.Security resource provider - * - * @extends Array + * An interface representing the TopologyList. + * @extends Array */ -export interface OperationList extends Array { +export interface TopologyList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 AscLocationList. - * List of locations where ASC saves your data - * - * @extends Array + * List of all the auto provisioning settings response + * @extends Array */ -export interface AscLocationList extends Array { +export interface AutoProvisioningSettingList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 SecurityTaskList. - * List of security task recommendations - * - * @extends Array + * List of Compliance objects response + * @extends Array */ -export interface SecurityTaskList extends Array { +export interface ComplianceList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 AlertList. - * List of security alerts - * - * @extends Array + * Information protection policies response. + * @extends Array */ -export interface AlertList extends Array { +export interface InformationProtectionPolicyList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 + * List of security contacts response + * @extends Array */ -export interface DiscoveredSecuritySolutionList extends Array { +export interface SecurityContactList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 + * List of workspace settings response + * @extends Array */ -export interface JitNetworkAccessPoliciesList extends Array { +export interface WorkspaceSettingList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 + * List of regulatory compliance standards response + * @extends Array */ -export interface ExternalSecuritySolutionList extends Array { +export interface RegulatoryComplianceStandardList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 + * List of regulatory compliance controls response + * @extends Array */ -export interface TopologyList extends Array { +export interface RegulatoryComplianceControlList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 AllowedConnectionsList. - * List of all possible traffic between Azure resources - * - * @extends Array + * List of regulatory compliance assessment response + * @extends Array */ -export interface AllowedConnectionsList extends Array { +export interface RegulatoryComplianceAssessmentList extends Array { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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 AlertNotifications. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} - */ -export type AlertNotifications = 'On' | 'Off'; - -/** - * Defines values for AlertsToAdmins. - * Possible values include: 'On', 'Off' + * Defines values for ResourceStatus. + * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' * @readonly * @enum {string} */ -export type AlertsToAdmins = 'On' | 'Off'; +export type ResourceStatus = 'Healthy' | 'NotApplicable' | 'OffByPolicy' | 'NotHealthy'; /** * Defines values for PricingTier. @@ -1959,20 +1734,20 @@ export type AlertsToAdmins = 'On' | 'Off'; export type PricingTier = 'Free' | 'Standard'; /** - * Defines values for AutoProvision. - * Possible values include: 'On', 'Off' + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' * @readonly * @enum {string} */ -export type AutoProvision = 'On' | 'Off'; +export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; /** * Defines values for SettingKind. - * Possible values include: 'DataExportSetting' + * Possible values include: 'DataExportSetting', 'AlertSuppressionSetting' * @readonly * @enum {string} */ -export type SettingKind = 'DataExportSetting'; +export type SettingKind = 'DataExportSetting' | 'AlertSuppressionSetting'; /** * Defines values for SecurityFamily. @@ -1982,6 +1757,22 @@ export type SettingKind = 'DataExportSetting'; */ 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 Protocol. * Possible values include: 'TCP', 'UDP', 'All' @@ -2007,20 +1798,36 @@ export type Status = 'Revoked' | 'Initiated'; export type StatusReason = 'Expired' | 'UserRequested' | 'NewerRequestInitiated'; /** - * Defines values for AadConnectivityState. - * Possible values include: 'Discovered', 'NotLicensed', 'Connected' + * Defines values for AutoProvision. + * Possible values include: 'On', 'Off' * @readonly * @enum {string} */ -export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; +export type AutoProvision = 'On' | 'Off'; /** - * Defines values for ExternalSecuritySolutionKind. - * Possible values include: 'CEF', 'ATA', 'AAD' + * Defines values for AlertNotifications. + * Possible values include: 'On', 'Off' * @readonly * @enum {string} */ -export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; +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 ConnectionType. @@ -2031,36 +1838,36 @@ export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; export type ConnectionType = 'Internal' | 'External'; /** - * Defines values for SettingName. - * Possible values include: 'MCAS', 'WDATP' + * Defines values for AlertUpdateActionType. + * Possible values include: 'Dismiss', 'Reactivate' * @readonly * @enum {string} */ -export type SettingName = 'MCAS' | 'WDATP'; +export type AlertUpdateActionType = 'Dismiss' | 'Reactivate'; /** - * Defines values for SettingName1. - * Possible values include: 'MCAS', 'WDATP' + * Defines values for AlertUpdateActionType1. + * Possible values include: 'Dismiss', 'Reactivate' * @readonly * @enum {string} */ -export type SettingName1 = 'MCAS' | 'WDATP'; +export type AlertUpdateActionType1 = 'Dismiss' | 'Reactivate'; /** - * Defines values for InformationProtectionPolicyName. - * Possible values include: 'effective', 'custom' + * Defines values for SettingName. + * Possible values include: 'MCAS', 'WDATP' * @readonly * @enum {string} */ -export type InformationProtectionPolicyName = 'effective' | 'custom'; +export type SettingName = 'MCAS' | 'WDATP'; /** - * Defines values for InformationProtectionPolicyName1. - * Possible values include: 'effective', 'custom' + * Defines values for SettingName1. + * Possible values include: 'MCAS', 'WDATP' * @readonly * @enum {string} */ -export type InformationProtectionPolicyName1 = 'effective' | 'custom'; +export type SettingName1 = 'MCAS' | 'WDATP'; /** * Defines values for TaskUpdateActionType. @@ -2079,25 +1886,25 @@ export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; /** - * Defines values for AlertUpdateActionType. - * Possible values include: 'Dismiss', 'Reactivate' + * Defines values for InformationProtectionPolicyName. + * Possible values include: 'effective', 'custom' * @readonly * @enum {string} */ -export type AlertUpdateActionType = 'Dismiss' | 'Reactivate'; +export type InformationProtectionPolicyName = 'effective' | 'custom'; /** - * Defines values for AlertUpdateActionType1. - * Possible values include: 'Dismiss', 'Reactivate' + * Defines values for InformationProtectionPolicyName1. + * Possible values include: 'effective', 'custom' * @readonly * @enum {string} */ -export type AlertUpdateActionType1 = 'Dismiss' | 'Reactivate'; +export type InformationProtectionPolicyName1 = 'effective' | 'custom'; /** * Contains response data for the list operation. */ -export type PricingsListResponse = PricingList & { +export type ComplianceResultsListResponse = ComplianceResultList & { /** * The underlying HTTP response. */ @@ -2106,17 +1913,38 @@ export type PricingsListResponse = PricingList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: ComplianceResultList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * 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 list operation. */ -export type PricingsListByResourceGroupResponse = PricingList & { +export type PricingsListResponse = PricingList & { /** * The underlying HTTP response. */ @@ -2125,6 +1953,7 @@ export type PricingsListByResourceGroupResponse = PricingList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2133,9 +1962,9 @@ export type PricingsListByResourceGroupResponse = PricingList & { }; /** - * Contains response data for the getSubscriptionPricing operation. + * Contains response data for the get operation. */ -export type PricingsGetSubscriptionPricingResponse = Pricing & { +export type PricingsGetResponse = Pricing & { /** * The underlying HTTP response. */ @@ -2144,6 +1973,7 @@ export type PricingsGetSubscriptionPricingResponse = Pricing & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2152,9 +1982,9 @@ export type PricingsGetSubscriptionPricingResponse = Pricing & { }; /** - * Contains response data for the updateSubscriptionPricing operation. + * Contains response data for the update operation. */ -export type PricingsUpdateSubscriptionPricingResponse = Pricing & { +export type PricingsUpdateResponse = Pricing & { /** * The underlying HTTP response. */ @@ -2163,6 +1993,7 @@ export type PricingsUpdateSubscriptionPricingResponse = Pricing & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2171,9 +2002,9 @@ export type PricingsUpdateSubscriptionPricingResponse = Pricing & { }; /** - * Contains response data for the getResourceGroupPricing operation. + * Contains response data for the list operation. */ -export type PricingsGetResourceGroupPricingResponse = Pricing & { +export type AlertsListResponse = AlertList & { /** * The underlying HTTP response. */ @@ -2182,17 +2013,18 @@ export type PricingsGetResourceGroupPricingResponse = Pricing & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: AlertList; }; }; /** - * Contains response data for the createOrUpdateResourceGroupPricing operation. + * Contains response data for the listByResourceGroup operation. */ -export type PricingsCreateOrUpdateResourceGroupPricingResponse = Pricing & { +export type AlertsListByResourceGroupResponse = AlertList & { /** * The underlying HTTP response. */ @@ -2201,17 +2033,98 @@ export type PricingsCreateOrUpdateResourceGroupPricingResponse = Pricing & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: AlertList; + }; +}; + +/** + * Contains response data for the listSubscriptionLevelAlertsByRegion operation. + */ +export type AlertsListSubscriptionLevelAlertsByRegionResponse = 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 listResourceGroupLevelAlertsByRegion operation. + */ +export type AlertsListResourceGroupLevelAlertsByRegionResponse = 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 getSubscriptionLevelAlert operation. + */ +export type AlertsGetSubscriptionLevelAlertResponse = Alert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Alert; + }; +}; + +/** + * Contains response data for the getResourceGroupLevelAlerts operation. + */ +export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Alert; }; }; /** * Contains response data for the listNext operation. */ -export type PricingsListNextResponse = PricingList & { +export type AlertsListNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -2220,17 +2133,18 @@ export type PricingsListNextResponse = PricingList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: AlertList; }; }; /** * Contains response data for the listByResourceGroupNext operation. */ -export type PricingsListByResourceGroupNextResponse = PricingList & { +export type AlertsListByResourceGroupNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -2239,17 +2153,38 @@ export type PricingsListByResourceGroupNextResponse = PricingList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: AlertList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listSubscriptionLevelAlertsByRegionNext operation. + */ +export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = 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 listResourceGroupLevelAlertsByRegionNext operation. */ -export type SecurityContactsListResponse = SecurityContactList & { +export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & { /** * The underlying HTTP response. */ @@ -2258,17 +2193,18 @@ export type SecurityContactsListResponse = SecurityContactList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: AlertList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type SecurityContactsGetResponse = SecurityContact & { +export type SettingsListResponse = SettingsList & { /** * The underlying HTTP response. */ @@ -2277,17 +2213,18 @@ export type SecurityContactsGetResponse = SecurityContact & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: SettingsList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type SecurityContactsCreateResponse = SecurityContact & { +export type SettingsGetResponse = Setting & { /** * The underlying HTTP response. */ @@ -2296,17 +2233,18 @@ export type SecurityContactsCreateResponse = SecurityContact & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: Setting; }; }; /** * Contains response data for the update operation. */ -export type SecurityContactsUpdateResponse = SecurityContact & { +export type SettingsUpdateResponse = Setting & { /** * The underlying HTTP response. */ @@ -2315,17 +2253,18 @@ export type SecurityContactsUpdateResponse = SecurityContact & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContact; + parsedBody: Setting; }; }; /** * Contains response data for the listNext operation. */ -export type SecurityContactsListNextResponse = SecurityContactList & { +export type SettingsListNextResponse = SettingsList & { /** * The underlying HTTP response. */ @@ -2334,17 +2273,18 @@ export type SecurityContactsListNextResponse = SecurityContactList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityContactList; + parsedBody: SettingsList; }; }; /** * Contains response data for the list operation. */ -export type WorkspaceSettingsListResponse = WorkspaceSettingList & { +export type AllowedConnectionsListResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -2353,17 +2293,18 @@ export type WorkspaceSettingsListResponse = WorkspaceSettingList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegion operation. */ -export type WorkspaceSettingsGetResponse = WorkspaceSetting & { +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -2372,17 +2313,18 @@ export type WorkspaceSettingsGetResponse = WorkspaceSetting & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { +export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { /** * The underlying HTTP response. */ @@ -2391,17 +2333,18 @@ export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: AllowedConnectionsResource; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { +export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -2410,17 +2353,18 @@ export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSetting; + parsedBody: AllowedConnectionsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { /** * The underlying HTTP response. */ @@ -2429,17 +2373,18 @@ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkspaceSettingList; + parsedBody: AllowedConnectionsList; }; }; /** * Contains response data for the list operation. */ -export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2448,17 +2393,18 @@ export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByHomeRegion operation. */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2467,17 +2413,18 @@ export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { /** * The underlying HTTP response. */ @@ -2486,17 +2433,18 @@ export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSetting; + parsedBody: DiscoveredSecuritySolution; }; }; /** * Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2505,17 +2453,18 @@ export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingLi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AutoProvisioningSettingList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type CompliancesListResponse = ComplianceList & { +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2524,17 +2473,18 @@ export type CompliancesListResponse = ComplianceList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: DiscoveredSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type CompliancesGetResponse = Compliance & { +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2543,17 +2493,18 @@ export type CompliancesGetResponse = Compliance & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Compliance; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type CompliancesListNextResponse = ComplianceList & { +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2562,17 +2513,18 @@ export type CompliancesListNextResponse = ComplianceList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ComplianceList; + parsedBody: ExternalSecuritySolutionList; }; }; /** * Contains response data for the get operation. */ -export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { /** * The underlying HTTP response. */ @@ -2581,17 +2533,18 @@ export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSettin * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: ExternalSecuritySolutionUnion; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2600,17 +2553,18 @@ export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSet * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AdvancedThreatProtectionSetting; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type SettingsListResponse = SettingsList & { +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { /** * The underlying HTTP response. */ @@ -2619,17 +2573,18 @@ export type SettingsListResponse = SettingsList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: ExternalSecuritySolutionList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type SettingsGetResponse = SettingUnion & { +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2638,17 +2593,18 @@ export type SettingsGetResponse = SettingUnion & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByRegion operation. */ -export type SettingsUpdateResponse = SettingUnion & { +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2657,17 +2613,18 @@ export type SettingsUpdateResponse = SettingUnion & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type SettingsListNextResponse = SettingsList & { +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2676,17 +2633,18 @@ export type SettingsListNextResponse = SettingsList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SettingsList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupAndRegion operation. */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2695,17 +2653,18 @@ export type InformationProtectionPoliciesGetResponse = InformationProtectionPoli * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -2714,17 +2673,18 @@ export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationPro * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicy; + parsedBody: JitNetworkAccessPolicy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { /** * The underlying HTTP response. */ @@ -2733,17 +2693,18 @@ export type InformationProtectionPoliciesListResponse = InformationProtectionPol * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: JitNetworkAccessPolicy; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the initiate operation. */ -export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { /** * The underlying HTTP response. */ @@ -2752,17 +2713,18 @@ export type InformationProtectionPoliciesListNextResponse = InformationProtectio * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: InformationProtectionPolicyList; + parsedBody: JitNetworkAccessRequest; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type OperationsListResponse = OperationList & { +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2771,17 +2733,18 @@ export type OperationsListResponse = OperationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByRegionNext operation. */ -export type OperationsListNextResponse = OperationList & { +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2790,17 +2753,18 @@ export type OperationsListNextResponse = OperationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type LocationsListResponse = AscLocationList & { +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2809,17 +2773,18 @@ export type LocationsListResponse = AscLocationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AscLocationList; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type LocationsGetResponse = AscLocation & { +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { /** * The underlying HTTP response. */ @@ -2828,17 +2793,18 @@ export type LocationsGetResponse = AscLocation & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AscLocation; + parsedBody: JitNetworkAccessPoliciesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type LocationsListNextResponse = AscLocationList & { +export type LocationsListResponse = AscLocationList & { /** * The underlying HTTP response. */ @@ -2847,6 +2813,7 @@ export type LocationsListNextResponse = AscLocationList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2855,9 +2822,9 @@ export type LocationsListNextResponse = AscLocationList & { }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type TasksListResponse = SecurityTaskList & { +export type LocationsGetResponse = AscLocation & { /** * The underlying HTTP response. */ @@ -2866,17 +2833,18 @@ export type TasksListResponse = SecurityTaskList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AscLocation; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the listNext operation. */ -export type TasksListByHomeRegionResponse = SecurityTaskList & { +export type LocationsListNextResponse = AscLocationList & { /** * The underlying HTTP response. */ @@ -2885,17 +2853,18 @@ export type TasksListByHomeRegionResponse = SecurityTaskList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AscLocationList; }; }; /** - * Contains response data for the getSubscriptionLevelTask operation. + * Contains response data for the list operation. */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { +export type OperationsListResponse = OperationList & { /** * The underlying HTTP response. */ @@ -2904,17 +2873,18 @@ export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: OperationList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type TasksListByResourceGroupResponse = SecurityTaskList & { +export type OperationsListNextResponse = OperationList & { /** * The underlying HTTP response. */ @@ -2923,17 +2893,18 @@ export type TasksListByResourceGroupResponse = SecurityTaskList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: OperationList; }; }; /** - * Contains response data for the getResourceGroupLevelTask operation. + * Contains response data for the list operation. */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { +export type TasksListResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -2942,17 +2913,18 @@ export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTask; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByHomeRegion operation. */ -export type TasksListNextResponse = SecurityTaskList & { +export type TasksListByHomeRegionResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -2961,6 +2933,7 @@ export type TasksListNextResponse = SecurityTaskList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2969,9 +2942,9 @@ export type TasksListNextResponse = SecurityTaskList & { }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the getSubscriptionLevelTask operation. */ -export type TasksListByHomeRegionNextResponse = SecurityTaskList & { +export type TasksGetSubscriptionLevelTaskResponse = SecurityTask & { /** * The underlying HTTP response. */ @@ -2980,17 +2953,18 @@ export type TasksListByHomeRegionNextResponse = SecurityTaskList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: SecurityTask; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type TasksListByResourceGroupNextResponse = SecurityTaskList & { +export type TasksListByResourceGroupResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -2999,6 +2973,7 @@ export type TasksListByResourceGroupNextResponse = SecurityTaskList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -3007,9 +2982,9 @@ export type TasksListByResourceGroupNextResponse = SecurityTaskList & { }; /** - * Contains response data for the list operation. + * Contains response data for the getResourceGroupLevelTask operation. */ -export type AlertsListResponse = AlertList & { +export type TasksGetResourceGroupLevelTaskResponse = SecurityTask & { /** * The underlying HTTP response. */ @@ -3018,17 +2993,18 @@ export type AlertsListResponse = AlertList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecurityTask; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type AlertsListByResourceGroupResponse = AlertList & { +export type TasksListNextResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -3037,17 +3013,18 @@ export type AlertsListByResourceGroupResponse = AlertList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegion operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { +export type TasksListByHomeRegionNextResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -3056,17 +3033,18 @@ export type AlertsListSubscriptionLevelAlertsByRegionResponse = AlertList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegion operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { +export type TasksListByResourceGroupNextResponse = SecurityTaskList & { /** * The underlying HTTP response. */ @@ -3075,17 +3053,18 @@ export type AlertsListResourceGroupLevelAlertsByRegionResponse = AlertList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: SecurityTaskList; }; }; /** - * Contains response data for the getSubscriptionLevelAlert operation. + * Contains response data for the list operation. */ -export type AlertsGetSubscriptionLevelAlertResponse = Alert & { +export type TopologyListResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -3094,17 +3073,18 @@ export type AlertsGetSubscriptionLevelAlertResponse = Alert & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: TopologyList; }; }; /** - * Contains response data for the getResourceGroupLevelAlerts operation. + * Contains response data for the listByHomeRegion operation. */ -export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { +export type TopologyListByHomeRegionResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -3113,17 +3093,18 @@ export type AlertsGetResourceGroupLevelAlertsResponse = Alert & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type AlertsListNextResponse = AlertList & { +export type TopologyGetResponse = TopologyResource & { /** * The underlying HTTP response. */ @@ -3132,17 +3113,18 @@ export type AlertsListNextResponse = AlertList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: TopologyResource; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList & { +export type TopologyListNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -3151,17 +3133,18 @@ export type AlertsListByResourceGroupNextResponse = AlertList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listSubscriptionLevelAlertsByRegionNext operation. + * Contains response data for the listByHomeRegionNext operation. */ -export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & { +export type TopologyListByHomeRegionNextResponse = TopologyList & { /** * The underlying HTTP response. */ @@ -3170,17 +3153,18 @@ export type AlertsListSubscriptionLevelAlertsByRegionNextResponse = AlertList & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: TopologyList; }; }; /** - * Contains response data for the listResourceGroupLevelAlertsByRegionNext operation. + * Contains response data for the get operation. */ -export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & { +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting & { /** * The underlying HTTP response. */ @@ -3189,17 +3173,18 @@ export type AlertsListResourceGroupLevelAlertsByRegionNextResponse = AlertList & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: AdvancedThreatProtectionSetting; }; }; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting & { /** * The underlying HTTP response. */ @@ -3208,17 +3193,18 @@ export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolution * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AdvancedThreatProtectionSetting; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList & { +export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList & { /** * The underlying HTTP response. */ @@ -3227,17 +3213,18 @@ export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AutoProvisioningSettingList; }; }; /** * Contains response data for the get operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution & { +export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting & { /** * The underlying HTTP response. */ @@ -3246,17 +3233,18 @@ export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolution; + parsedBody: AutoProvisioningSetting; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { +export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting & { /** * The underlying HTTP response. */ @@ -3265,17 +3253,18 @@ export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AutoProvisioningSetting; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList & { +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList & { /** * The underlying HTTP response. */ @@ -3284,17 +3273,18 @@ export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = Discovered * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DiscoveredSecuritySolutionList; + parsedBody: AutoProvisioningSettingList; }; }; /** * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList & { +export type CompliancesListResponse = ComplianceList & { /** * The underlying HTTP response. */ @@ -3303,17 +3293,18 @@ export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ComplianceList; }; }; /** - * Contains response data for the listByRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList & { +export type CompliancesGetResponse = Compliance & { /** * The underlying HTTP response. */ @@ -3322,17 +3313,18 @@ export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPolic * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: Compliance; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList & { +export type CompliancesListNextResponse = ComplianceList & { /** * The underlying HTTP response. */ @@ -3341,17 +3333,18 @@ export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAcce * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: ComplianceList; }; }; /** - * Contains response data for the listByResourceGroupAndRegion operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList & { +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy & { /** * The underlying HTTP response. */ @@ -3360,17 +3353,18 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNe * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: InformationProtectionPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy & { /** * The underlying HTTP response. */ @@ -3379,17 +3373,18 @@ export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: InformationProtectionPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy & { +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList & { /** * The underlying HTTP response. */ @@ -3398,17 +3393,18 @@ export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPol * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPolicy; + parsedBody: InformationProtectionPolicyList; }; }; /** - * Contains response data for the initiate operation. + * Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & { +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList & { /** * The underlying HTTP response. */ @@ -3417,17 +3413,18 @@ export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessRequest; + parsedBody: InformationProtectionPolicyList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList & { +export type SecurityContactsListResponse = SecurityContactList & { /** * The underlying HTTP response. */ @@ -3436,17 +3433,18 @@ export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesL * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: SecurityContactList; }; }; /** - * Contains response data for the listByRegionNext operation. + * Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList & { +export type SecurityContactsGetResponse = SecurityContact & { /** * The underlying HTTP response. */ @@ -3455,17 +3453,18 @@ export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessP * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: SecurityContact; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the create operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList & { +export type SecurityContactsCreateResponse = SecurityContact & { /** * The underlying HTTP response. */ @@ -3474,17 +3473,18 @@ export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetwork * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: SecurityContact; }; }; /** - * Contains response data for the listByResourceGroupAndRegionNext operation. + * Contains response data for the update operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList & { +export type SecurityContactsUpdateResponse = SecurityContact & { /** * The underlying HTTP response. */ @@ -3493,17 +3493,18 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = J * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: JitNetworkAccessPoliciesList; + parsedBody: SecurityContact; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList & { +export type SecurityContactsListNextResponse = SecurityContactList & { /** * The underlying HTTP response. */ @@ -3512,17 +3513,18 @@ export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: SecurityContactList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList & { +export type WorkspaceSettingsListResponse = WorkspaceSettingList & { /** * The underlying HTTP response. */ @@ -3531,17 +3533,18 @@ export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecurity * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: WorkspaceSettingList; }; }; /** * Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion & { +export type WorkspaceSettingsGetResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -3550,17 +3553,18 @@ export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionUnion; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { +export type WorkspaceSettingsCreateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -3569,17 +3573,18 @@ export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolution * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the update operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList & { +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { /** * The underlying HTTP response. */ @@ -3588,17 +3593,18 @@ export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecu * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ExternalSecuritySolutionList; + parsedBody: WorkspaceSetting; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ -export type TopologyListResponse = TopologyList & { +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * The underlying HTTP response. */ @@ -3607,17 +3613,18 @@ export type TopologyListResponse = TopologyList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: WorkspaceSettingList; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the list operation. */ -export type TopologyListByHomeRegionResponse = TopologyList & { +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -3626,17 +3633,18 @@ export type TopologyListByHomeRegionResponse = TopologyList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: RegulatoryComplianceStandardList; }; }; /** * Contains response data for the get operation. */ -export type TopologyGetResponse = TopologyResource & { +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { /** * The underlying HTTP response. */ @@ -3645,17 +3653,18 @@ export type TopologyGetResponse = TopologyResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: TopologyResource; + parsedBody: RegulatoryComplianceStandard; }; }; /** * Contains response data for the listNext operation. */ -export type TopologyListNextResponse = TopologyList & { +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -3664,17 +3673,18 @@ export type TopologyListNextResponse = TopologyList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: RegulatoryComplianceStandardList; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the list operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList & { +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -3683,17 +3693,18 @@ export type TopologyListByHomeRegionNextResponse = TopologyList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: TopologyList; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList & { +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { /** * The underlying HTTP response. */ @@ -3702,17 +3713,18 @@ export type AllowedConnectionsListResponse = AllowedConnectionsList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: RegulatoryComplianceControl; }; }; /** - * Contains response data for the listByHomeRegion operation. + * Contains response data for the listNext operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList & { +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -3721,17 +3733,18 @@ export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -3740,17 +3753,18 @@ export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsResource; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the get operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment & { /** * The underlying HTTP response. */ @@ -3759,17 +3773,18 @@ export type AllowedConnectionsListNextResponse = AllowedConnectionsList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: RegulatoryComplianceAssessment; }; }; /** - * Contains response data for the listByHomeRegionNext operation. + * Contains response data for the listNext operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList & { +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -3778,9 +3793,10 @@ export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsL * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AllowedConnectionsList; + parsedBody: RegulatoryComplianceAssessmentList; }; }; diff --git a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts index 427b115cf9f7..52fc680e8750 100644 --- a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - InformationProtectionPolicy, - Resource, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, - SensitivityLabel, - InformationType, - InformationProtectionKeyword, CloudError, - InformationProtectionPolicyList, - SecurityContact, - Pricing, - WorkspaceSetting, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationProtectionPolicyList, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts b/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts index c7f8d5b68006..81a91877bca5 100644 --- a/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/jitNetworkAccessPoliciesMappers.ts @@ -1,25 +1,22 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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, - JitNetworkAccessRequestVirtualMachine, JitNetworkAccessRequestPort, - CloudError, - JitNetworkAccessPolicyInitiateRequest, - JitNetworkAccessPolicyInitiateVirtualMachine, - JitNetworkAccessPolicyInitiatePort + JitNetworkAccessRequestVirtualMachine } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/locationsMappers.ts b/sdk/security/arm-security/src/models/locationsMappers.ts index a9e459ba15e8..10f48773d0ce 100644 --- a/sdk/security/arm-security/src/models/locationsMappers.ts +++ b/sdk/security/arm-security/src/models/locationsMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - AscLocationList, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, AscLocation, - Resource, + AscLocationList, + AutoProvisioningSetting, BaseResource, CloudError, - SecurityContact, - Pricing, - WorkspaceSetting, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + 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 b54822ca337d..5c81c3572d0c 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -45,14 +43,16 @@ export const Resource: msRest.CompositeMapper = { } }; -export const Kind: msRest.CompositeMapper = { - serializedName: "Kind", +export const ComplianceResult: msRest.CompositeMapper = { + serializedName: "ComplianceResult", type: { name: "Composite", - className: "Kind", + className: "ComplianceResult", modelProperties: { - kind: { - serializedName: "kind", + ...Resource.type.modelProperties, + resourceStatus: { + readOnly: true, + serializedName: "properties.resourceStatus", type: { name: "String" } @@ -61,97 +61,116 @@ export const Kind: msRest.CompositeMapper = { } }; -export const SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", +export const ComplianceResultList: msRest.CompositeMapper = { + serializedName: "ComplianceResultList", type: { name: "Composite", - className: "SecurityContact", + className: "ComplianceResultList", 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: { + value: { required: true, - serializedName: "properties.alertsToAdmins", + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComplianceResult" + } + } } } } } }; -export const Pricing: msRest.CompositeMapper = { - serializedName: "Pricing", +export const AscLocation: msRest.CompositeMapper = { + serializedName: "AscLocation", type: { name: "Composite", - className: "Pricing", + className: "AscLocation", modelProperties: { ...Resource.type.modelProperties, - pricingTier: { - required: true, - serializedName: "properties.pricingTier", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Object" } } } } }; -export const WorkspaceSetting: msRest.CompositeMapper = { - serializedName: "WorkspaceSetting", +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", type: { name: "Composite", - className: "WorkspaceSetting", + className: "TrackedResource", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - required: true, - serializedName: "properties.workspaceId", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - scope: { - required: true, - serializedName: "properties.scope", + 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: { + serializedName: "kind", + type: { + name: "String" + } + }, + etag: { + serializedName: "etag", type: { name: "String" } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } }; -export const AutoProvisioningSetting: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSetting", +export const Location: msRest.CompositeMapper = { + serializedName: "Location", type: { name: "Composite", - className: "AutoProvisioningSetting", + className: "Location", modelProperties: { - ...Resource.type.modelProperties, - autoProvision: { - required: true, - serializedName: "properties.autoProvision", + location: { + readOnly: true, + serializedName: "location", type: { name: "String" } @@ -160,471 +179,810 @@ export const AutoProvisioningSetting: msRest.CompositeMapper = { } }; -export const ComplianceSegment: msRest.CompositeMapper = { - serializedName: "ComplianceSegment", +export const Kind: msRest.CompositeMapper = { + serializedName: "Kind", type: { name: "Composite", - className: "ComplianceSegment", + className: "Kind", modelProperties: { - segmentType: { - readOnly: true, - serializedName: "segmentType", + kind: { + serializedName: "kind", type: { name: "String" } - }, - percentage: { - readOnly: true, - serializedName: "percentage", - type: { - name: "Number" - } } } } }; -export const Compliance: msRest.CompositeMapper = { - serializedName: "Compliance", +export const ETag: msRest.CompositeMapper = { + serializedName: "ETag", type: { name: "Composite", - className: "Compliance", + className: "ETag", 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", + etag: { + serializedName: "etag", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceSegment" - } - } + name: "String" } } } } }; -export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { - serializedName: "AdvancedThreatProtectionSetting", +export const Tags: msRest.CompositeMapper = { + serializedName: "Tags", type: { name: "Composite", - className: "AdvancedThreatProtectionSetting", + className: "Tags", modelProperties: { - ...Resource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const Setting: msRest.CompositeMapper = { - serializedName: "Setting", +export const Pricing: msRest.CompositeMapper = { + serializedName: "Pricing", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "Setting", - className: "Setting", + className: "Pricing", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", + ...Resource.type.modelProperties, + pricingTier: { + required: true, + serializedName: "properties.pricingTier", type: { name: "String" } }, - type: { + freeTrialRemainingTime: { readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - kind: { - required: true, - serializedName: "kind", + serializedName: "properties.freeTrialRemainingTime", type: { - name: "String" + name: "TimeSpan" } } } } }; -export const DataExportSetting: msRest.CompositeMapper = { - serializedName: "DataExportSetting", +export const PricingList: msRest.CompositeMapper = { + serializedName: "PricingList", type: { name: "Composite", - polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, - uberParent: "Setting", - className: "DataExportSetting", + className: "PricingList", modelProperties: { - ...Setting.type.modelProperties, - enabled: { + value: { required: true, - serializedName: "properties.enabled", + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Pricing" + } + } } } } } }; -export const SettingKind1: msRest.CompositeMapper = { - serializedName: "SettingKind", +export const AlertEntity: msRest.CompositeMapper = { + serializedName: "AlertEntity", type: { name: "Composite", - className: "SettingKind1", + className: "AlertEntity", modelProperties: { - kind: { - serializedName: "kind", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } } + }, + additionalProperties: { + type: { + name: "Object" + } } } }; -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", +export const AlertConfidenceReason: msRest.CompositeMapper = { + serializedName: "AlertConfidenceReason", type: { name: "Composite", - className: "SensitivityLabel", + className: "AlertConfidenceReason", modelProperties: { - displayName: { - serializedName: "displayName", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - order: { - serializedName: "order", - type: { - name: "Number" + reason: { + readOnly: true, + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const Alert: msRest.CompositeMapper = { + serializedName: "Alert", + type: { + name: "Composite", + className: "Alert", + modelProperties: { + ...Resource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + reportedTimeUtc: { + readOnly: true, + serializedName: "properties.reportedTimeUtc", + type: { + name: "DateTime" + } + }, + vendorName: { + readOnly: true, + serializedName: "properties.vendorName", + type: { + name: "String" + } + }, + alertName: { + readOnly: true, + serializedName: "properties.alertName", + type: { + name: "String" + } + }, + alertDisplayName: { + readOnly: true, + serializedName: "properties.alertDisplayName", + type: { + name: "String" + } + }, + detectedTimeUtc: { + readOnly: true, + serializedName: "properties.detectedTimeUtc", + type: { + name: "DateTime" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + remediationSteps: { + readOnly: true, + serializedName: "properties.remediationSteps", + type: { + name: "String" + } + }, + actionTaken: { + readOnly: true, + serializedName: "properties.actionTaken", + type: { + name: "String" + } + }, + reportedSeverity: { + readOnly: true, + serializedName: "properties.reportedSeverity", + type: { + name: "String" + } + }, + compromisedEntity: { + readOnly: true, + serializedName: "properties.compromisedEntity", + type: { + name: "String" + } + }, + associatedResource: { + readOnly: true, + serializedName: "properties.associatedResource", + type: { + name: "String" + } + }, + extendedProperties: { + serializedName: "properties.extendedProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, + systemSource: { + readOnly: true, + serializedName: "properties.systemSource", + type: { + name: "String" + } + }, + canBeInvestigated: { + readOnly: true, + serializedName: "properties.canBeInvestigated", + type: { + name: "Boolean" + } + }, + isIncident: { + readOnly: true, + serializedName: "properties.isIncident", + type: { + name: "Boolean" + } + }, + entities: { + serializedName: "properties.entities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + }, + confidenceScore: { + readOnly: true, + serializedName: "properties.confidenceScore", + constraints: { + InclusiveMaximum: 1, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + confidenceReasons: { + serializedName: "properties.confidenceReasons", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertConfidenceReason" + } + } + } + }, + subscriptionId: { + readOnly: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + }, + instanceId: { + readOnly: true, + serializedName: "properties.instanceId", + type: { + name: "String" + } + }, + workspaceArmId: { + readOnly: true, + serializedName: "properties.workspaceArmId", + type: { + name: "String" + } + }, + correlationKey: { + readOnly: true, + serializedName: "properties.correlationKey", + type: { + name: "String" + } + } + } + } +}; + +export const SettingResource: msRest.CompositeMapper = { + serializedName: "SettingResource", + type: { + name: "Composite", + className: "SettingResource", + modelProperties: { + ...Resource.type.modelProperties, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const Setting: msRest.CompositeMapper = { + serializedName: "Setting", + type: { + name: "Composite", + className: "Setting", + modelProperties: { + ...SettingResource.type.modelProperties + } + } +}; + +export const DataExportSetting: msRest.CompositeMapper = { + serializedName: "DataExportSetting", + type: { + name: "Composite", + className: "DataExportSetting", + modelProperties: { + ...Setting.type.modelProperties, + enabled: { + required: true, + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +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" + } + } } }, - enabled: { - serializedName: "enabled", + outboundConnectedResources: { + readOnly: true, + serializedName: "outboundConnectedResources", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource" + } + } } } } } }; -export const InformationProtectionKeyword: msRest.CompositeMapper = { - serializedName: "InformationProtectionKeyword", +export const AllowedConnectionsResource: msRest.CompositeMapper = { + serializedName: "AllowedConnectionsResource", type: { name: "Composite", - className: "InformationProtectionKeyword", + className: "AllowedConnectionsResource", modelProperties: { - pattern: { - serializedName: "pattern", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - custom: { - serializedName: "custom", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - canBeNumeric: { - serializedName: "canBeNumeric", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Boolean" + name: "String" } }, - excluded: { - serializedName: "excluded", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Boolean" + 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 InformationType: msRest.CompositeMapper = { - serializedName: "InformationType", +export const DiscoveredSecuritySolution: msRest.CompositeMapper = { + serializedName: "DiscoveredSecuritySolution", type: { name: "Composite", - className: "InformationType", + className: "DiscoveredSecuritySolution", modelProperties: { - displayName: { - serializedName: "displayName", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - order: { - serializedName: "order", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Number" + name: "String" } }, - recommendedLabelId: { - serializedName: "recommendedLabelId", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Uuid" + name: "String" } }, - enabled: { - serializedName: "enabled", + location: { + readOnly: true, + serializedName: "location", type: { - name: "Boolean" + name: "String" } }, - custom: { - serializedName: "custom", + securityFamily: { + required: true, + serializedName: "properties.securityFamily", type: { - name: "Boolean" + name: "String" } }, - keywords: { - serializedName: "keywords", + offer: { + required: true, + serializedName: "properties.offer", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformationProtectionKeyword" - } - } + name: "String" + } + }, + publisher: { + required: true, + serializedName: "properties.publisher", + type: { + name: "String" + } + }, + sku: { + required: true, + serializedName: "properties.sku", + type: { + name: "String" } } } } }; -export const InformationProtectionPolicy: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicy", +export const ExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolution", type: { name: "Composite", - className: "InformationProtectionPolicy", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "ExternalSecuritySolution", + className: "ExternalSecuritySolution", modelProperties: { - ...Resource.type.modelProperties, - lastModifiedUtc: { + id: { readOnly: true, - serializedName: "properties.lastModifiedUtc", + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - labels: { - serializedName: "properties.labels", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - informationTypes: { - serializedName: "properties.informationTypes", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "InformationType" - } - } + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" } } } } }; -export const Location: msRest.CompositeMapper = { - serializedName: "Location", +export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionProperties", type: { name: "Composite", - className: "Location", + className: "ExternalSecuritySolutionProperties", modelProperties: { - location: { - readOnly: true, - serializedName: "location", + 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 OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const CefSolutionProperties: msRest.CompositeMapper = { + serializedName: "CefSolutionProperties", type: { name: "Composite", - className: "OperationDisplay", + className: "CefSolutionProperties", modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", + ...ExternalSecuritySolutionProperties.type.modelProperties, + hostname: { + serializedName: "hostname", type: { name: "String" } }, - resource: { - readOnly: true, - serializedName: "resource", + agent: { + serializedName: "agent", type: { name: "String" } }, - operation: { - readOnly: true, - serializedName: "operation", + lastEventReceived: { + serializedName: "lastEventReceived", type: { name: "String" } - }, - description: { - readOnly: true, - serializedName: "description", + } + }, + 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: "String" + name: "Composite", + className: "CefSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties } } } } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const AtaSolutionProperties: msRest.CompositeMapper = { + serializedName: "AtaSolutionProperties", type: { name: "Composite", - className: "Operation", + className: "AtaSolutionProperties", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - origin: { - readOnly: true, - serializedName: "origin", + ...ExternalSecuritySolutionProperties.type.modelProperties, + lastEventReceived: { + serializedName: "lastEventReceived", type: { name: "String" } - }, - display: { - serializedName: "display", + } + }, + 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: "OperationDisplay" + className: "AtaSolutionProperties", + additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties } } } } }; -export const SecurityTaskParameters: msRest.CompositeMapper = { - serializedName: "SecurityTaskParameters", +export const ConnectedWorkspace: msRest.CompositeMapper = { + serializedName: "ConnectedWorkspace", type: { name: "Composite", - className: "SecurityTaskParameters", + className: "ConnectedWorkspace", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + id: { + serializedName: "id", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const SecurityTask: msRest.CompositeMapper = { - serializedName: "SecurityTask", +export const AadSolutionProperties: msRest.CompositeMapper = { + serializedName: "AadSolutionProperties", type: { name: "Composite", - className: "SecurityTask", + className: "AadSolutionProperties", modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + deviceVendor: { + serializedName: "deviceVendor", type: { name: "String" } }, - creationTimeUtc: { - readOnly: true, - serializedName: "properties.creationTimeUtc", + deviceType: { + serializedName: "deviceType", type: { - name: "DateTime" + name: "String" } }, - securityTaskParameters: { - serializedName: "properties.securityTaskParameters", + workspace: { + serializedName: "workspace", type: { name: "Composite", - className: "SecurityTaskParameters", - additionalProperties: { - type: { - name: "Object" - } - } - } - }, - lastStateChangeTimeUtc: { - readOnly: true, - serializedName: "properties.lastStateChangeTimeUtc", - type: { - name: "DateTime" + className: "ConnectedWorkspace" } }, - subState: { - readOnly: true, - serializedName: "properties.subState", + connectivityState: { + serializedName: "connectivityState", type: { name: "String" } @@ -633,61 +991,50 @@ export const SecurityTask: msRest.CompositeMapper = { } }; -export const AscLocation: msRest.CompositeMapper = { - serializedName: "AscLocation", +export const AadExternalSecuritySolution: msRest.CompositeMapper = { + serializedName: "AAD", type: { name: "Composite", - className: "AscLocation", + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, + uberParent: "ExternalSecuritySolution", + className: "AadExternalSecuritySolution", modelProperties: { - ...Resource.type.modelProperties, + ...ExternalSecuritySolution.type.modelProperties, properties: { serializedName: "properties", type: { - name: "Object" + name: "Composite", + className: "AadSolutionProperties" } } } } }; -export const AlertEntity: msRest.CompositeMapper = { - serializedName: "AlertEntity", +export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionKind", type: { name: "Composite", - className: "AlertEntity", + className: "ExternalSecuritySolutionKind1", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + kind: { + serializedName: "kind", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const AlertConfidenceReason: msRest.CompositeMapper = { - serializedName: "AlertConfidenceReason", +export const AadConnectivityState1: msRest.CompositeMapper = { + serializedName: "AadConnectivityState", type: { name: "Composite", - className: "AlertConfidenceReason", + className: "AadConnectivityState1", modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - reason: { - readOnly: true, - serializedName: "reason", + connectivityState: { + serializedName: "connectivityState", type: { name: "String" } @@ -696,179 +1043,198 @@ export const AlertConfidenceReason: msRest.CompositeMapper = { } }; -export const Alert: msRest.CompositeMapper = { - serializedName: "Alert", +export const JitNetworkAccessPortRule: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPortRule", type: { name: "Composite", - className: "Alert", + className: "JitNetworkAccessPortRule", modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", + number: { + required: true, + serializedName: "number", type: { - name: "String" + name: "Number" } }, - reportedTimeUtc: { - readOnly: true, - serializedName: "properties.reportedTimeUtc", + protocol: { + required: true, + serializedName: "protocol", type: { - name: "DateTime" + name: "String" } }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - alertName: { - readOnly: true, - serializedName: "properties.alertName", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", + maxRequestAccessDuration: { + required: true, + serializedName: "maxRequestAccessDuration", type: { name: "String" } - }, - detectedTimeUtc: { - readOnly: true, - serializedName: "properties.detectedTimeUtc", + } + } + } +}; + +export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - description: { - readOnly: true, - serializedName: "properties.description", + ports: { + required: true, + serializedName: "ports", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPortRule" + } + } } - }, - remediationSteps: { - readOnly: true, - serializedName: "properties.remediationSteps", + } + } + } +}; + +export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestPort", + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + modelProperties: { + number: { + required: true, + serializedName: "number", type: { - name: "String" + name: "Number" } }, - actionTaken: { - readOnly: true, - serializedName: "properties.actionTaken", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - compromisedEntity: { - readOnly: true, - serializedName: "properties.compromisedEntity", + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", type: { - name: "String" + name: "DateTime" } }, - associatedResource: { - readOnly: true, - serializedName: "properties.associatedResource", + status: { + required: true, + serializedName: "status", type: { name: "String" } }, - extendedProperties: { - serializedName: "properties.extendedProperties", - type: { - name: "Dictionary", - value: { - type: { - name: "Object" - } - } - } - }, - systemSource: { - readOnly: true, - serializedName: "properties.systemSource", + statusReason: { + required: true, + serializedName: "statusReason", type: { name: "String" } - }, - canBeInvestigated: { - readOnly: true, - serializedName: "properties.canBeInvestigated", + } + } + } +}; + +export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessRequestVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessRequestVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { - name: "Boolean" + name: "String" } }, - entities: { - serializedName: "properties.entities", + ports: { + required: true, + serializedName: "ports", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AlertEntity", - additionalProperties: { - type: { - name: "Object" - } - } + className: "JitNetworkAccessRequestPort" } } } - }, - confidenceScore: { - readOnly: true, - serializedName: "properties.confidenceScore", - constraints: { - InclusiveMaximum: 1, - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - confidenceReasons: { - serializedName: "properties.confidenceReasons", + } + } + } +}; + +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: "AlertConfidenceReason" + className: "JitNetworkAccessRequestVirtualMachine" } } } }, - subscriptionId: { - readOnly: true, - serializedName: "properties.subscriptionId", - type: { - name: "String" - } - }, - instanceId: { - readOnly: true, - serializedName: "properties.instanceId", + startTimeUtc: { + required: true, + serializedName: "startTimeUtc", type: { - name: "String" + name: "DateTime" } }, - workspaceArmId: { - readOnly: true, - serializedName: "properties.workspaceArmId", + requestor: { + required: true, + serializedName: "requestor", type: { name: "String" } @@ -877,11 +1243,11 @@ export const Alert: msRest.CompositeMapper = { } }; -export const DiscoveredSecuritySolution: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolution", +export const JitNetworkAccessPolicy: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicy", type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "JitNetworkAccessPolicy", modelProperties: { id: { readOnly: true, @@ -904,71 +1270,47 @@ export const DiscoveredSecuritySolution: msRest.CompositeMapper = { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + kind: { + serializedName: "kind", type: { name: "String" } }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", + location: { + readOnly: true, + serializedName: "location", type: { name: "String" } }, - offer: { + virtualMachines: { required: true, - serializedName: "properties.offer", + serializedName: "properties.virtualMachines", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyVirtualMachine" + } + } } }, - publisher: { - required: true, - serializedName: "properties.publisher", + requests: { + serializedName: "properties.requests", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequest" + } + } } }, - sku: { - required: true, - serializedName: "properties.sku", - type: { - name: "String" - } - } - } - } -}; - -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: { + provisioningState: { readOnly: true, - serializedName: "resourceId", + serializedName: "properties.provisioningState", type: { name: "String" } @@ -977,76 +1319,81 @@ export const TopologySingleResourceChild: msRest.CompositeMapper = { } }; -export const TopologySingleResource: msRest.CompositeMapper = { - serializedName: "TopologySingleResource", +export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiatePort", type: { name: "Composite", - className: "TopologySingleResource", + className: "JitNetworkAccessPolicyInitiatePort", modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "severity", - type: { - name: "String" - } - }, - recommendationsExist: { - readOnly: true, - serializedName: "recommendationsExist", + number: { + required: true, + serializedName: "number", type: { - name: "Boolean" + name: "Number" } }, - networkZones: { - readOnly: true, - serializedName: "networkZones", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String" } }, - topologyScore: { - readOnly: true, - serializedName: "topologyScore", + endTimeUtc: { + required: true, + serializedName: "endTimeUtc", type: { - name: "Number" + name: "DateTime" } - }, - location: { - readOnly: true, - serializedName: "location", + } + } + } +}; + +export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { name: "String" } }, - parents: { - readOnly: true, - serializedName: "parents", + ports: { + required: true, + serializedName: "ports", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceParent" + className: "JitNetworkAccessPolicyInitiatePort" } } } - }, - children: { - readOnly: true, - serializedName: "children", + } + } + } +}; + +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: "TopologySingleResourceChild" + className: "JitNetworkAccessPolicyInitiateVirtualMachine" } } } @@ -1055,104 +1402,140 @@ export const TopologySingleResource: msRest.CompositeMapper = { } }; -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", type: { name: "Composite", - className: "TopologyResource", + className: "OperationDisplay", modelProperties: { - id: { + provider: { readOnly: true, - serializedName: "id", + serializedName: "provider", type: { name: "String" } }, - name: { + resource: { readOnly: true, - serializedName: "name", + serializedName: "resource", type: { name: "String" } }, - type: { + operation: { readOnly: true, - serializedName: "type", + serializedName: "operation", type: { name: "String" } }, - location: { + description: { readOnly: true, - serializedName: "location", + serializedName: "description", type: { name: "String" } - }, - calculatedDateTime: { + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { readOnly: true, - serializedName: "properties.calculatedDateTime", + serializedName: "name", type: { - name: "DateTime" + name: "String" } }, - topologyResources: { + origin: { readOnly: true, - serializedName: "properties.topologyResources", + serializedName: "origin", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResource" - } - } + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" } } } } }; -export const JitNetworkAccessPortRule: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPortRule", +export const SecurityTaskParameters: msRest.CompositeMapper = { + serializedName: "SecurityTaskParameters", type: { name: "Composite", - className: "JitNetworkAccessPortRule", + className: "SecurityTaskParameters", modelProperties: { - number: { - required: true, - serializedName: "number", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Number" + name: "String" } - }, - protocol: { - required: true, - serializedName: "protocol", + } + }, + 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" } }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + creationTimeUtc: { + readOnly: true, + serializedName: "properties.creationTimeUtc", type: { - name: "String" + name: "DateTime" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + securityTaskParameters: { + serializedName: "properties.securityTaskParameters", type: { - name: "Sequence", - element: { + name: "Composite", + className: "SecurityTaskParameters", + additionalProperties: { type: { - name: "String" + name: "Object" } } } }, - maxRequestAccessDuration: { - required: true, - serializedName: "maxRequestAccessDuration", + lastStateChangeTimeUtc: { + readOnly: true, + serializedName: "properties.lastStateChangeTimeUtc", + type: { + name: "DateTime" + } + }, + subState: { + readOnly: true, + serializedName: "properties.subState", type: { name: "String" } @@ -1161,163 +1544,123 @@ export const JitNetworkAccessPortRule: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPolicyVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyVirtualMachine", +export const TopologySingleResourceParent: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceParent", type: { name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", + className: "TopologySingleResourceParent", modelProperties: { - id: { - required: true, - serializedName: "id", + resourceId: { + readOnly: true, + serializedName: "resourceId", type: { name: "String" } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPortRule" - } - } - } } } } }; -export const JitNetworkAccessRequestPort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestPort", +export const TopologySingleResourceChild: msRest.CompositeMapper = { + serializedName: "TopologySingleResourceChild", type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "TopologySingleResourceChild", modelProperties: { - number: { - required: true, - serializedName: "number", + resourceId: { + readOnly: true, + serializedName: "resourceId", type: { - name: "Number" + name: "String" } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + } + } + } +}; + +export const TopologySingleResource: msRest.CompositeMapper = { + serializedName: "TopologySingleResource", + type: { + name: "Composite", + className: "TopologySingleResource", + modelProperties: { + resourceId: { + readOnly: true, + serializedName: "resourceId", type: { name: "String" } }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + severity: { + readOnly: true, + serializedName: "severity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + recommendationsExist: { + readOnly: true, + serializedName: "recommendationsExist", type: { - name: "DateTime" + name: "Boolean" } }, - status: { - required: true, - serializedName: "status", + networkZones: { + readOnly: true, + serializedName: "networkZones", type: { name: "String" } }, - statusReason: { - required: true, - serializedName: "statusReason", + topologyScore: { + readOnly: true, + serializedName: "topologyScore", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const JitNetworkAccessRequestVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequestVirtualMachine", - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + location: { + readOnly: true, + serializedName: "location", type: { name: "String" } }, - ports: { - required: true, - serializedName: "ports", + parents: { + readOnly: true, + serializedName: "parents", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequestPort" + className: "TopologySingleResourceParent" } } } - } - } - } -}; - -export const JitNetworkAccessRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessRequest", - type: { - name: "Composite", - className: "JitNetworkAccessRequest", - modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", + }, + children: { + readOnly: true, + serializedName: "children", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine" + className: "TopologySingleResourceChild" } } } - }, - startTimeUtc: { - required: true, - serializedName: "startTimeUtc", - type: { - name: "DateTime" - } - }, - requestor: { - required: true, - serializedName: "requestor", - type: { - name: "String" - } } } } }; -export const JitNetworkAccessPolicy: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicy", +export const TopologyResource: msRest.CompositeMapper = { + serializedName: "TopologyResource", type: { name: "Composite", - className: "JitNetworkAccessPolicy", + className: "TopologyResource", modelProperties: { id: { readOnly: true, @@ -1340,12 +1683,6 @@ export const JitNetworkAccessPolicy: msRest.CompositeMapper = { name: "String" } }, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, location: { readOnly: true, serializedName: "location", @@ -1353,342 +1690,313 @@ export const JitNetworkAccessPolicy: msRest.CompositeMapper = { name: "String" } }, - virtualMachines: { - required: true, - serializedName: "properties.virtualMachines", + calculatedDateTime: { + readOnly: true, + serializedName: "properties.calculatedDateTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine" - } - } + name: "DateTime" } }, - requests: { - serializedName: "properties.requests", + topologyResources: { + readOnly: true, + serializedName: "properties.topologyResources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequest" + className: "TopologySingleResource" } } } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } } } } }; -export const JitNetworkAccessPolicyInitiatePort: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiatePort", +export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { + serializedName: "AdvancedThreatProtectionSetting", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "AdvancedThreatProtectionSetting", modelProperties: { - number: { - required: true, - serializedName: "number", - type: { - name: "Number" - } - }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", - type: { - name: "String" - } - }, - endTimeUtc: { - required: true, - serializedName: "endTimeUtc", + ...Resource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const JitNetworkAccessPolicyInitiateVirtualMachine: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateVirtualMachine", +export const AutoProvisioningSetting: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSetting", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", + className: "AutoProvisioningSetting", modelProperties: { - id: { + ...Resource.type.modelProperties, + autoProvision: { required: true, - serializedName: "id", + serializedName: "properties.autoProvision", type: { name: "String" } - }, - ports: { - required: true, - serializedName: "ports", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort" - } - } - } } } } }; -export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPolicyInitiateRequest", +export const ComplianceSegment: msRest.CompositeMapper = { + serializedName: "ComplianceSegment", type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", + className: "ComplianceSegment", modelProperties: { - virtualMachines: { - required: true, - serializedName: "virtualMachines", + segmentType: { + readOnly: true, + serializedName: "segmentType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine" - } - } + name: "String" + } + }, + percentage: { + readOnly: true, + serializedName: "percentage", + type: { + name: "Number" } } } } }; -export const ExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolution", +export const Compliance: msRest.CompositeMapper = { + serializedName: "Compliance", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "ExternalSecuritySolution", - className: "ExternalSecuritySolution", + className: "Compliance", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { + ...Resource.type.modelProperties, + assessmentTimestampUtcDate: { readOnly: true, - serializedName: "name", + serializedName: "properties.assessmentTimestampUtcDate", type: { - name: "String" + name: "DateTime" } }, - type: { + resourceCount: { readOnly: true, - serializedName: "type", + serializedName: "properties.resourceCount", type: { - name: "String" + name: "Number" } }, - location: { + assessmentResult: { readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - kind: { - required: true, - serializedName: "kind", + serializedName: "properties.assessmentResult", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComplianceSegment" + } + } } } } } }; -export const ExternalSecuritySolutionProperties: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionProperties", +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", type: { name: "Composite", - className: "ExternalSecuritySolutionProperties", + className: "SensitivityLabel", modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - deviceType: { - serializedName: "deviceType", + order: { + serializedName: "order", type: { - name: "String" + name: "Number" } }, - workspace: { - serializedName: "workspace", + enabled: { + serializedName: "enabled", type: { - name: "Composite", - className: "ConnectedWorkspace" + name: "Boolean" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const CefSolutionProperties: msRest.CompositeMapper = { - serializedName: "CefSolutionProperties", +export const InformationProtectionKeyword: msRest.CompositeMapper = { + serializedName: "InformationProtectionKeyword", type: { name: "Composite", - className: "CefSolutionProperties", + className: "InformationProtectionKeyword", modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - hostname: { - serializedName: "hostname", + pattern: { + serializedName: "pattern", type: { name: "String" } }, - agent: { - serializedName: "agent", + custom: { + serializedName: "custom", type: { - name: "String" + name: "Boolean" } }, - lastEventReceived: { - serializedName: "lastEventReceived", + canBeNumeric: { + serializedName: "canBeNumeric", type: { - name: "String" + name: "Boolean" } - } - }, - 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", + }, + excluded: { + serializedName: "excluded", type: { - name: "Composite", - className: "CefSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + name: "Boolean" } } } } }; -export const AtaSolutionProperties: msRest.CompositeMapper = { - serializedName: "AtaSolutionProperties", +export const InformationType: msRest.CompositeMapper = { + serializedName: "InformationType", type: { name: "Composite", - className: "AtaSolutionProperties", + className: "InformationType", modelProperties: { - ...ExternalSecuritySolutionProperties.type.modelProperties, - lastEventReceived: { - serializedName: "lastEventReceived", + displayName: { + serializedName: "displayName", 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", + }, + order: { + serializedName: "order", type: { - name: "Composite", - className: "AtaSolutionProperties", - additionalProperties: ExternalSecuritySolutionProperties.type.additionalProperties + 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 ConnectedWorkspace: msRest.CompositeMapper = { - serializedName: "ConnectedWorkspace", +export const InformationProtectionPolicy: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicy", type: { name: "Composite", - className: "ConnectedWorkspace", + className: "InformationProtectionPolicy", modelProperties: { - id: { - serializedName: "id", + ...Resource.type.modelProperties, + lastModifiedUtc: { + readOnly: true, + serializedName: "properties.lastModifiedUtc", type: { - name: "String" + name: "DateTime" + } + }, + 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 AadSolutionProperties: msRest.CompositeMapper = { - serializedName: "AadSolutionProperties", +export const SecurityContact: msRest.CompositeMapper = { + serializedName: "SecurityContact", type: { name: "Composite", - className: "AadSolutionProperties", + className: "SecurityContact", modelProperties: { - deviceVendor: { - serializedName: "deviceVendor", + ...Resource.type.modelProperties, + email: { + required: true, + serializedName: "properties.email", type: { name: "String" } }, - deviceType: { - serializedName: "deviceType", + phone: { + serializedName: "properties.phone", type: { name: "String" } }, - workspace: { - serializedName: "workspace", + alertNotifications: { + required: true, + serializedName: "properties.alertNotifications", type: { - name: "Composite", - className: "ConnectedWorkspace" + name: "String" } }, - connectivityState: { - serializedName: "connectivityState", + alertsToAdmins: { + required: true, + serializedName: "properties.alertsToAdmins", type: { name: "String" } @@ -1697,34 +2005,23 @@ export const AadSolutionProperties: msRest.CompositeMapper = { } }; -export const AadExternalSecuritySolution: msRest.CompositeMapper = { - serializedName: "AAD", +export const WorkspaceSetting: msRest.CompositeMapper = { + serializedName: "WorkspaceSetting", type: { name: "Composite", - polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, - uberParent: "ExternalSecuritySolution", - className: "AadExternalSecuritySolution", + className: "WorkspaceSetting", modelProperties: { - ...ExternalSecuritySolution.type.modelProperties, - properties: { - serializedName: "properties", + ...Resource.type.modelProperties, + workspaceId: { + required: true, + serializedName: "properties.workspaceId", type: { - name: "Composite", - className: "AadSolutionProperties" + name: "String" } - } - } - } -}; - -export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionKind", - type: { - name: "Composite", - className: "ExternalSecuritySolutionKind1", - modelProperties: { - kind: { - serializedName: "kind", + }, + scope: { + required: true, + serializedName: "properties.scope", type: { name: "String" } @@ -1733,169 +2030,205 @@ export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { } }; -export const AadConnectivityState1: msRest.CompositeMapper = { - serializedName: "AadConnectivityState", +export const RegulatoryComplianceStandard: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandard", type: { name: "Composite", - className: "AadConnectivityState1", + className: "RegulatoryComplianceStandard", modelProperties: { - connectivityState: { - serializedName: "connectivityState", + ...Resource.type.modelProperties, + state: { + serializedName: "properties.state", type: { name: "String" } - } - } - } -}; - -export const ConnectedResource: msRest.CompositeMapper = { - serializedName: "ConnectedResource", - type: { - name: "Composite", - className: "ConnectedResource", - modelProperties: { - connectedResourceId: { + }, + passedControls: { readOnly: true, - serializedName: "connectedResourceId", + serializedName: "properties.passedControls", type: { - name: "String" + name: "Number" } }, - tcpPorts: { + failedControls: { readOnly: true, - serializedName: "tcpPorts", + serializedName: "properties.failedControls", type: { - name: "String" + name: "Number" } }, - udpPorts: { + skippedControls: { + readOnly: true, + serializedName: "properties.skippedControls", + type: { + name: "Number" + } + }, + unsupportedControls: { readOnly: true, - serializedName: "udpPorts", + serializedName: "properties.unsupportedControls", type: { - name: "String" + name: "Number" } } } } }; -export const ConnectableResource: msRest.CompositeMapper = { - serializedName: "ConnectableResource", +export const RegulatoryComplianceControl: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControl", type: { name: "Composite", - className: "ConnectableResource", + className: "RegulatoryComplianceControl", modelProperties: { - id: { + ...Resource.type.modelProperties, + description: { readOnly: true, - serializedName: "id", + serializedName: "properties.description", type: { name: "String" } }, - inboundConnectedResources: { + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + passedAssessments: { readOnly: true, - serializedName: "inboundConnectedResources", + serializedName: "properties.passedAssessments", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource" - } - } + name: "Number" } }, - outboundConnectedResources: { + failedAssessments: { readOnly: true, - serializedName: "outboundConnectedResources", + serializedName: "properties.failedAssessments", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource" - } - } + name: "Number" + } + }, + skippedAssessments: { + readOnly: true, + serializedName: "properties.skippedAssessments", + type: { + name: "Number" } } } } }; -export const AllowedConnectionsResource: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsResource", +export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceAssessment", type: { name: "Composite", - className: "AllowedConnectionsResource", + className: "RegulatoryComplianceAssessment", modelProperties: { - id: { + ...Resource.type.modelProperties, + description: { readOnly: true, - serializedName: "id", + serializedName: "properties.description", type: { name: "String" } }, - name: { + assessmentType: { readOnly: true, - serializedName: "name", + serializedName: "properties.assessmentType", type: { name: "String" } }, - type: { + assessmentDetailsLink: { readOnly: true, - serializedName: "type", + serializedName: "properties.assessmentDetailsLink", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + state: { + serializedName: "properties.state", type: { name: "String" } }, - calculatedDateTime: { + passedResources: { readOnly: true, - serializedName: "properties.calculatedDateTime", + serializedName: "properties.passedResources", type: { - name: "DateTime" + name: "Number" } }, - connectableResources: { + failedResources: { readOnly: true, - serializedName: "properties.connectableResources", + 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 AlertList: msRest.CompositeMapper = { + serializedName: "AlertList", + type: { + name: "Composite", + className: "AlertList", + modelProperties: { + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectableResource" + className: "Alert" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PricingList: msRest.CompositeMapper = { - serializedName: "PricingList", +export const SettingsList: msRest.CompositeMapper = { + serializedName: "SettingsList", type: { name: "Composite", - className: "PricingList", + className: "SettingsList", modelProperties: { value: { - required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Pricing" + className: "Setting" } } } @@ -1911,11 +2244,11 @@ export const PricingList: msRest.CompositeMapper = { } }; -export const SecurityContactList: msRest.CompositeMapper = { - serializedName: "SecurityContactList", +export const AllowedConnectionsList: msRest.CompositeMapper = { + serializedName: "AllowedConnectionsList", type: { name: "Composite", - className: "SecurityContactList", + className: "AllowedConnectionsList", modelProperties: { value: { readOnly: true, @@ -1925,7 +2258,7 @@ export const SecurityContactList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityContact" + className: "AllowedConnectionsResource" } } } @@ -1941,21 +2274,20 @@ export const SecurityContactList: msRest.CompositeMapper = { } }; -export const WorkspaceSettingList: msRest.CompositeMapper = { - serializedName: "WorkspaceSettingList", +export const DiscoveredSecuritySolutionList: msRest.CompositeMapper = { + serializedName: "DiscoveredSecuritySolutionList", type: { name: "Composite", - className: "WorkspaceSettingList", + className: "DiscoveredSecuritySolutionList", modelProperties: { value: { - required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WorkspaceSetting" + className: "DiscoveredSecuritySolution" } } } @@ -1971,11 +2303,11 @@ export const WorkspaceSettingList: msRest.CompositeMapper = { } }; -export const AutoProvisioningSettingList: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSettingList", +export const ExternalSecuritySolutionList: msRest.CompositeMapper = { + serializedName: "ExternalSecuritySolutionList", type: { name: "Composite", - className: "AutoProvisioningSettingList", + className: "ExternalSecuritySolutionList", modelProperties: { value: { serializedName: "", @@ -1984,7 +2316,7 @@ export const AutoProvisioningSettingList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "AutoProvisioningSetting" + className: "ExternalSecuritySolution" } } } @@ -2000,11 +2332,11 @@ export const AutoProvisioningSettingList: msRest.CompositeMapper = { } }; -export const ComplianceList: msRest.CompositeMapper = { - serializedName: "ComplianceList", +export const JitNetworkAccessPoliciesList: msRest.CompositeMapper = { + serializedName: "JitNetworkAccessPoliciesList", type: { name: "Composite", - className: "ComplianceList", + className: "JitNetworkAccessPoliciesList", modelProperties: { value: { serializedName: "", @@ -2013,7 +2345,7 @@ export const ComplianceList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Compliance" + className: "JitNetworkAccessPolicy" } } } @@ -2029,20 +2361,21 @@ export const ComplianceList: msRest.CompositeMapper = { } }; -export const SettingsList: msRest.CompositeMapper = { - serializedName: "SettingsList", +export const AscLocationList: msRest.CompositeMapper = { + serializedName: "AscLocationList", type: { name: "Composite", - className: "SettingsList", + className: "AscLocationList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Setting" + className: "AscLocation" } } } @@ -2058,11 +2391,11 @@ export const SettingsList: msRest.CompositeMapper = { } }; -export const InformationProtectionPolicyList: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicyList", +export const OperationList: msRest.CompositeMapper = { + serializedName: "OperationList", type: { name: "Composite", - className: "InformationProtectionPolicyList", + className: "OperationList", modelProperties: { value: { serializedName: "", @@ -2071,7 +2404,7 @@ export const InformationProtectionPolicyList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "InformationProtectionPolicy" + className: "Operation" } } } @@ -2087,20 +2420,21 @@ export const InformationProtectionPolicyList: msRest.CompositeMapper = { } }; -export const OperationList: msRest.CompositeMapper = { - serializedName: "OperationList", +export const SecurityTaskList: msRest.CompositeMapper = { + serializedName: "SecurityTaskList", type: { name: "Composite", - className: "OperationList", + className: "SecurityTaskList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "SecurityTask" } } } @@ -2116,11 +2450,11 @@ export const OperationList: msRest.CompositeMapper = { } }; -export const AscLocationList: msRest.CompositeMapper = { - serializedName: "AscLocationList", +export const TopologyList: msRest.CompositeMapper = { + serializedName: "TopologyList", type: { name: "Composite", - className: "AscLocationList", + className: "TopologyList", modelProperties: { value: { readOnly: true, @@ -2130,7 +2464,7 @@ export const AscLocationList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "AscLocation" + className: "TopologyResource" } } } @@ -2146,21 +2480,20 @@ export const AscLocationList: msRest.CompositeMapper = { } }; -export const SecurityTaskList: msRest.CompositeMapper = { - serializedName: "SecurityTaskList", +export const AutoProvisioningSettingList: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSettingList", type: { name: "Composite", - className: "SecurityTaskList", + className: "AutoProvisioningSettingList", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityTask" + className: "AutoProvisioningSetting" } } } @@ -2176,11 +2509,11 @@ export const SecurityTaskList: msRest.CompositeMapper = { } }; -export const AlertList: msRest.CompositeMapper = { - serializedName: "AlertList", +export const ComplianceList: msRest.CompositeMapper = { + serializedName: "ComplianceList", type: { name: "Composite", - className: "AlertList", + className: "ComplianceList", modelProperties: { value: { serializedName: "", @@ -2189,7 +2522,7 @@ export const AlertList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Alert" + className: "Compliance" } } } @@ -2205,11 +2538,11 @@ export const AlertList: msRest.CompositeMapper = { } }; -export const DiscoveredSecuritySolutionList: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolutionList", +export const InformationProtectionPolicyList: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicyList", type: { name: "Composite", - className: "DiscoveredSecuritySolutionList", + className: "InformationProtectionPolicyList", modelProperties: { value: { serializedName: "", @@ -2218,7 +2551,7 @@ export const DiscoveredSecuritySolutionList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DiscoveredSecuritySolution" + className: "InformationProtectionPolicy" } } } @@ -2234,20 +2567,21 @@ export const DiscoveredSecuritySolutionList: msRest.CompositeMapper = { } }; -export const JitNetworkAccessPoliciesList: msRest.CompositeMapper = { - serializedName: "JitNetworkAccessPoliciesList", +export const SecurityContactList: msRest.CompositeMapper = { + serializedName: "SecurityContactList", type: { name: "Composite", - className: "JitNetworkAccessPoliciesList", + className: "SecurityContactList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessPolicy" + className: "SecurityContact" } } } @@ -2263,20 +2597,21 @@ export const JitNetworkAccessPoliciesList: msRest.CompositeMapper = { } }; -export const ExternalSecuritySolutionList: msRest.CompositeMapper = { - serializedName: "ExternalSecuritySolutionList", +export const WorkspaceSettingList: msRest.CompositeMapper = { + serializedName: "WorkspaceSettingList", type: { name: "Composite", - className: "ExternalSecuritySolutionList", + className: "WorkspaceSettingList", modelProperties: { value: { + required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExternalSecuritySolution" + className: "WorkspaceSetting" } } } @@ -2292,21 +2627,21 @@ export const ExternalSecuritySolutionList: msRest.CompositeMapper = { } }; -export const TopologyList: msRest.CompositeMapper = { - serializedName: "TopologyList", +export const RegulatoryComplianceStandardList: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandardList", type: { name: "Composite", - className: "TopologyList", + className: "RegulatoryComplianceStandardList", modelProperties: { value: { - readOnly: true, + required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologyResource" + className: "RegulatoryComplianceStandard" } } } @@ -2322,21 +2657,51 @@ export const TopologyList: msRest.CompositeMapper = { } }; -export const AllowedConnectionsList: msRest.CompositeMapper = { - serializedName: "AllowedConnectionsList", +export const RegulatoryComplianceControlList: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControlList", type: { name: "Composite", - className: "AllowedConnectionsList", + 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: "AllowedConnectionsResource" + className: "RegulatoryComplianceAssessment" } } } @@ -2353,10 +2718,9 @@ export const AllowedConnectionsList: msRest.CompositeMapper = { }; export const discriminators = { - 'Setting' : Setting, - 'Setting.DataExportSetting' : DataExportSetting, 'ExternalSecuritySolution' : ExternalSecuritySolution, 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution + }; diff --git a/sdk/security/arm-security/src/models/operationsMappers.ts b/sdk/security/arm-security/src/models/operationsMappers.ts index f2e907d82125..786d9130f59f 100644 --- a/sdk/security/arm-security/src/models/operationsMappers.ts +++ b/sdk/security/arm-security/src/models/operationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - OperationList, + CloudError, Operation, OperationDisplay, - CloudError + 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 fb823bdaca2c..81b4f4b26995 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -46,13 +46,37 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-08-01-preview', + 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 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, @@ -64,6 +88,30 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const apiVersion4: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2017-08-01-preview', + type: { + name: "String" + } + } +}; +export const apiVersion5: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-01-01-preview', + type: { + name: "String" + } + } +}; export const ascLocation: msRest.OperationURLParameter = { parameterPath: "ascLocation", mapper: { @@ -84,6 +132,16 @@ export const complianceName: msRest.OperationURLParameter = { } } }; +export const complianceResultName: msRest.OperationURLParameter = { + parameterPath: "complianceResultName", + mapper: { + required: true, + serializedName: "complianceResultName", + type: { + name: "String" + } + } +}; export const connectionType: msRest.OperationURLParameter = { parameterPath: "connectionType", mapper: { @@ -191,6 +249,36 @@ export const pricingName: msRest.OperationURLParameter = { } } }; +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: { diff --git a/sdk/security/arm-security/src/models/pricingsMappers.ts b/sdk/security/arm-security/src/models/pricingsMappers.ts index 457b9ad15a1f..9d1d10c375ef 100644 --- a/sdk/security/arm-security/src/models/pricingsMappers.ts +++ b/sdk/security/arm-security/src/models/pricingsMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - PricingList, - Pricing, - Resource, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, CloudError, - SecurityContact, - WorkspaceSetting, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + PricingList, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts new file mode 100644 index 000000000000..188768cc4c3e --- /dev/null +++ b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, + BaseResource, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceAssessmentList, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts new file mode 100644 index 000000000000..235acc2449b1 --- /dev/null +++ b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, + BaseResource, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceControlList, + RegulatoryComplianceStandard, + Resource, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts new file mode 100644 index 000000000000..143cd564c3dd --- /dev/null +++ b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, + BaseResource, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + RegulatoryComplianceStandardList, + Resource, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/securityContactsMappers.ts b/sdk/security/arm-security/src/models/securityContactsMappers.ts index 1e4d8593b773..a9ddbb7d6804 100644 --- a/sdk/security/arm-security/src/models/securityContactsMappers.ts +++ b/sdk/security/arm-security/src/models/securityContactsMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - SecurityContactList, - SecurityContact, - Resource, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, CloudError, - Pricing, - WorkspaceSetting, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, + SecurityContactList, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/settingsMappers.ts b/sdk/security/arm-security/src/models/settingsMappers.ts index 127c46204903..1d9fe9340416 100644 --- a/sdk/security/arm-security/src/models/settingsMappers.ts +++ b/sdk/security/arm-security/src/models/settingsMappers.ts @@ -1,18 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - SettingsList, - Setting, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, + BaseResource, CloudError, - DataExportSetting + Compliance, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + Setting, + SettingResource, + SettingsList, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/tasksMappers.ts b/sdk/security/arm-security/src/models/tasksMappers.ts index 5e5eb961a569..11ed68cac894 100644 --- a/sdk/security/arm-security/src/models/tasksMappers.ts +++ b/sdk/security/arm-security/src/models/tasksMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - SecurityTaskList, - SecurityTask, - Resource, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, - SecurityTaskParameters, CloudError, - SecurityContact, - Pricing, - WorkspaceSetting, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, + SecurityTask, + SecurityTaskList, + SecurityTaskParameters, + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/topologyMappers.ts b/sdk/security/arm-security/src/models/topologyMappers.ts index 2f721b7b6c8b..80804dc1264b 100644 --- a/sdk/security/arm-security/src/models/topologyMappers.ts +++ b/sdk/security/arm-security/src/models/topologyMappers.ts @@ -1,20 +1,17 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, + CloudError, TopologyList, TopologyResource, TopologySingleResource, - TopologySingleResourceParent, TopologySingleResourceChild, - CloudError + TopologySingleResourceParent } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts index df56c1d9defb..8884819bfe87 100644 --- a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts @@ -1,35 +1,39 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { discriminators, - WorkspaceSettingList, - WorkspaceSetting, - Resource, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AutoProvisioningSetting, BaseResource, CloudError, - SecurityContact, - Pricing, - AutoProvisioningSetting, Compliance, + ComplianceResult, ComplianceSegment, - AdvancedThreatProtectionSetting, + DataExportSetting, + InformationProtectionKeyword, InformationProtectionPolicy, - SensitivityLabel, InformationType, - InformationProtectionKeyword, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + SecurityContact, SecurityTask, SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SensitivityLabel, + Setting, + SettingResource, + WorkspaceSetting, + WorkspaceSettingList } from "../models/mappers"; - diff --git a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts index 7c141526f4da..5ae4356491dc 100644 --- a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts +++ b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts @@ -97,7 +97,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -121,7 +121,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index 5437e2d49e75..d9963abce16f 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.ts @@ -51,7 +51,7 @@ export class Alerts { } /** - * List all the alerts alerts that are associated with the resource group + * 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 @@ -307,7 +307,7 @@ export class Alerts { } /** - * List all the alerts alerts that are associated with the resource group + * 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 @@ -402,7 +402,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter, Parameters.select, Parameters.expand @@ -429,7 +429,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter, Parameters.select, Parameters.expand @@ -456,7 +456,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter, Parameters.select, Parameters.expand @@ -484,7 +484,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter, Parameters.select, Parameters.expand @@ -512,7 +512,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { Parameters.alertName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -538,7 +538,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -564,7 +564,7 @@ const updateSubscriptionLevelAlertStateOperationSpec: msRest.OperationSpec = { Parameters.alertUpdateActionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -589,7 +589,7 @@ const updateResourceGroupLevelAlertStateOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/allowedConnections.ts b/sdk/security/arm-security/src/operations/allowedConnections.ts index b738cdb1d55a..b4a0a2c0d818 100644 --- a/sdk/security/arm-security/src/operations/allowedConnections.ts +++ b/sdk/security/arm-security/src/operations/allowedConnections.ts @@ -179,7 +179,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -203,7 +203,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -229,7 +229,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.connectionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts index be242ac19ac5..b0f148dc8be3 100644 --- a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts +++ b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts @@ -148,7 +148,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -172,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -196,7 +196,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/complianceResults.ts b/sdk/security/arm-security/src/operations/complianceResults.ts new file mode 100644 index 000000000000..f93d88b9ed2c --- /dev/null +++ b/sdk/security/arm-security/src/operations/complianceResults.ts @@ -0,0 +1,143 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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; + } +} + +// 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 +}; diff --git a/sdk/security/arm-security/src/operations/compliances.ts b/sdk/security/arm-security/src/operations/compliances.ts index 73cb750b550e..3b922e550679 100644 --- a/sdk/security/arm-security/src/operations/compliances.ts +++ b/sdk/security/arm-security/src/operations/compliances.ts @@ -136,7 +136,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.complianceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts index 08ce2d37ee85..59ca5da504c7 100644 --- a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts @@ -175,7 +175,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +199,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +225,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.discoveredSecuritySolutionName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts index 564bd6cab181..b88471034f9c 100644 --- a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts @@ -175,7 +175,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +199,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +225,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.externalSecuritySolutionsName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index dd820149dfa7..f1afad5d1e69 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -8,20 +8,24 @@ * regenerated. */ +export * from "./complianceResults"; export * from "./pricings"; -export * from "./securityContacts"; -export * from "./workspaceSettings"; -export * from "./autoProvisioningSettings"; -export * from "./compliances"; -export * from "./advancedThreatProtection"; -export * from "./settings"; -export * from "./informationProtectionPolicies"; -export * from "./operations"; -export * from "./locations"; -export * from "./tasks"; export * from "./alerts"; +export * from "./settings"; +export * from "./allowedConnections"; export * from "./discoveredSecuritySolutions"; -export * from "./jitNetworkAccessPolicies"; export * from "./externalSecuritySolutions"; +export * from "./jitNetworkAccessPolicies"; +export * from "./locations"; +export * from "./operations"; +export * from "./tasks"; export * from "./topology"; -export * from "./allowedConnections"; +export * from "./advancedThreatProtection"; +export * from "./autoProvisioningSettings"; +export * from "./compliances"; +export * from "./informationProtectionPolicies"; +export * from "./securityContacts"; +export * from "./workspaceSettings"; +export * from "./regulatoryComplianceStandards"; +export * from "./regulatoryComplianceControls"; +export * from "./regulatoryComplianceAssessments"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index 59e511fb0445..56acb26d52f5 100644 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts @@ -181,7 +181,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -205,7 +205,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -231,7 +231,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts index a9eca485751a..19de8e652b64 100644 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts @@ -413,7 +413,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -437,7 +437,7 @@ const listByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -461,7 +461,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -486,7 +486,7 @@ const listByResourceGroupAndRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -512,7 +512,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -538,7 +538,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -571,7 +571,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -597,7 +597,7 @@ const initiateOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyInitiateType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/locations.ts b/sdk/security/arm-security/src/operations/locations.ts index ca7e3a22f61b..55deb4222589 100644 --- a/sdk/security/arm-security/src/operations/locations.ts +++ b/sdk/security/arm-security/src/operations/locations.ts @@ -116,7 +116,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -140,7 +140,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/operations.ts b/sdk/security/arm-security/src/operations/operations.ts index 76388bc9221b..43d8b8fe4740 100644 --- a/sdk/security/arm-security/src/operations/operations.ts +++ b/sdk/security/arm-security/src/operations/operations.ts @@ -85,7 +85,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Security/operations", queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts index 835af87be06a..5d3e1abfd2da 100644 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ b/sdk/security/arm-security/src/operations/pricings.ts @@ -50,226 +50,64 @@ export class Pricings { callback) as Promise; } - /** - * Security pricing configurations in 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; - } - - /** - * Security pricing configuration in the subscriptionSecurity pricing configuration in the - * subscription - * @param pricingName name of the pricing configuration - * @param [options] The optional parameters - * @returns Promise - */ - getSubscriptionPricing(pricingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param pricingName name of the pricing configuration - * @param callback The callback - */ - getSubscriptionPricing(pricingName: string, callback: msRest.ServiceCallback): void; - /** - * @param pricingName name of the pricing configuration - * @param options The optional parameters - * @param callback The callback - */ - getSubscriptionPricing(pricingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getSubscriptionPricing(pricingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - pricingName, - options - }, - getSubscriptionPricingOperationSpec, - callback) as Promise; - } - /** * Security pricing configuration in the subscription * @param pricingName name of the pricing configuration - * @param pricing Pricing object * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; + get(pricingName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param pricingName name of the pricing configuration - * @param pricing Pricing object * @param callback The callback */ - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; + get(pricingName: string, callback: msRest.ServiceCallback): void; /** * @param pricingName name of the pricing configuration - * @param pricing Pricing object * @param options The optional parameters * @param callback The callback */ - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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, - pricing, options }, - updateSubscriptionPricingOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Security pricing configuration in the resource group - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param pricingName name of the pricing configuration - * @param [options] The optional parameters - * @returns Promise - */ - getResourceGroupPricing(resourceGroupName: string, pricingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param pricingName name of the pricing configuration - * @param callback The callback - */ - getResourceGroupPricing(resourceGroupName: string, pricingName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param pricingName name of the pricing configuration - * @param options The optional parameters - * @param callback The callback - */ - getResourceGroupPricing(resourceGroupName: string, pricingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getResourceGroupPricing(resourceGroupName: string, pricingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - pricingName, - options - }, - getResourceGroupPricingOperationSpec, - callback) as Promise; - } - - /** - * Security pricing configuration in the resource group - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. + * Security pricing configuration in the subscription * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; + update(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param callback The callback */ - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; + update(pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param options The optional parameters * @param callback The callback */ - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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( { - resourceGroupName, pricingName, pricing, options }, - createOrUpdateResourceGroupPricingOperationSpec, - callback) as Promise; - } - - /** - * Security pricing configurations 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; - } - - /** - * Security pricing configurations in 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; + updateOperationSpec, + callback) as Promise; } } @@ -282,7 +120,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -298,31 +136,7 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/pricings", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getSubscriptionPricingOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}", urlParameters: [ @@ -330,7 +144,7 @@ const getSubscriptionPricingOperationSpec: msRest.OperationSpec = { Parameters.pricingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -346,7 +160,7 @@ const getSubscriptionPricingOperationSpec: msRest.OperationSpec = { serializer }; -const updateSubscriptionPricingOperationSpec: msRest.OperationSpec = { +const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}", urlParameters: [ @@ -354,64 +168,7 @@ const updateSubscriptionPricingOperationSpec: msRest.OperationSpec = { Parameters.pricingName ], queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "pricing", - mapper: { - ...Mappers.Pricing, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Pricing - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getResourceGroupPricingOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/pricings/{pricingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.pricingName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Pricing - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateResourceGroupPricingOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/pricings/{pricingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.pricingName - ], - queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -433,45 +190,3 @@ const createOrUpdateResourceGroupPricingOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - 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 new file mode 100644 index 000000000000..59090b6bf3a9 --- /dev/null +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts @@ -0,0 +1,215 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: Models.RegulatoryComplianceAssessmentsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param regulatoryComplianceControlName Name of the regulatory compliance control object + * @param callback The callback + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options: Models.RegulatoryComplianceAssessmentsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: Models.RegulatoryComplianceAssessmentsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + regulatoryComplianceStandardName, + regulatoryComplianceControlName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Supported regulatory compliance details and state for selected assessment + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, regulatoryComplianceAssessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + 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?: 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName, + Parameters.regulatoryComplianceControlName + ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceAssessmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}/regulatoryComplianceAssessments/{regulatoryComplianceAssessmentName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName, + Parameters.regulatoryComplianceControlName, + Parameters.regulatoryComplianceAssessmentName + ], + queryParameters: [ + Parameters.apiVersion5 + ], + 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 + ], + 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 new file mode 100644 index 000000000000..917962861981 --- /dev/null +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts @@ -0,0 +1,205 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: Models.RegulatoryComplianceControlsListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param callback The callback + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, regulatoryComplianceStandardName: string, options: Models.RegulatoryComplianceControlsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: Models.RegulatoryComplianceControlsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + regulatoryComplianceStandardName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Selected regulatory compliance control details and state + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param regulatoryComplianceControlName Name of the regulatory compliance control object + * @param callback The callback + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @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(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, regulatoryComplianceStandardName: string, regulatoryComplianceControlName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + 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?: 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName + ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceControlList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}/regulatoryComplianceControls/{regulatoryComplianceControlName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName, + Parameters.regulatoryComplianceControlName + ], + queryParameters: [ + Parameters.apiVersion5 + ], + 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 + ], + 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 new file mode 100644 index 000000000000..195d871f0553 --- /dev/null +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts @@ -0,0 +1,195 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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 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?: Models.RegulatoryComplianceStandardsListOptionalParams): 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: Models.RegulatoryComplianceStandardsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, options?: Models.RegulatoryComplianceStandardsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Supported regulatory compliance details state for selected standard + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param callback The callback + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, regulatoryComplianceStandardName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, regulatoryComplianceStandardName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + 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?: 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion5, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceStandardList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/regulatoryComplianceStandards/{regulatoryComplianceStandardName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.regulatoryComplianceStandardName + ], + queryParameters: [ + Parameters.apiVersion5 + ], + 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegulatoryComplianceStandardList + }, + 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 index d96d049f457f..6ca8121a3cb0 100644 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ b/sdk/security/arm-security/src/operations/securityContacts.ts @@ -208,7 +208,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -232,7 +232,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -256,7 +256,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -287,7 +287,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +309,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index b5d38a326868..78571824c8c0 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -52,23 +52,23 @@ export class Settings { /** * Settings of different configurations in security center - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param [options] The optional parameters * @returns Promise */ get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param callback The callback */ - get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; + get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @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 { + 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, @@ -80,26 +80,26 @@ export class Settings { /** * updating settings about different configurations in security center - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param setting Setting object * @param [options] The optional parameters * @returns Promise */ - update(settingName: Models.SettingName1, setting: Models.SettingUnion, options?: msRest.RequestOptionsBase): Promise; + update(settingName: Models.SettingName1, setting: Models.Setting, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param setting Setting object * @param callback The callback */ - update(settingName: Models.SettingName1, setting: Models.SettingUnion, callback: msRest.ServiceCallback): void; + update(settingName: Models.SettingName1, setting: Models.Setting, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @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 { + update(settingName: Models.SettingName1, setting: Models.Setting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(settingName: Models.SettingName1, setting: Models.Setting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { settingName, @@ -148,7 +148,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -172,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -196,7 +196,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts index cf2414a50cfe..e457fc13c2c5 100644 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ b/sdk/security/arm-security/src/operations/tasks.ts @@ -339,7 +339,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -364,7 +364,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -390,7 +390,7 @@ const getSubscriptionLevelTaskOperationSpec: msRest.OperationSpec = { Parameters.taskName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -416,7 +416,7 @@ const updateSubscriptionLevelTaskStateOperationSpec: msRest.OperationSpec = { Parameters.taskUpdateActionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +439,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion3, Parameters.filter ], headerParameters: [ @@ -466,7 +466,7 @@ const getResourceGroupLevelTaskOperationSpec: msRest.OperationSpec = { Parameters.taskName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -493,7 +493,7 @@ const updateResourceGroupLevelTaskStateOperationSpec: msRest.OperationSpec = { Parameters.taskUpdateActionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/topology.ts b/sdk/security/arm-security/src/operations/topology.ts index 29881ed37736..598b206eeef2 100644 --- a/sdk/security/arm-security/src/operations/topology.ts +++ b/sdk/security/arm-security/src/operations/topology.ts @@ -175,7 +175,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +199,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +225,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.topologyResourceName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/workspaceSettings.ts b/sdk/security/arm-security/src/operations/workspaceSettings.ts index 7aa4886714a4..d1c7142227fa 100644 --- a/sdk/security/arm-security/src/operations/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operations/workspaceSettings.ts @@ -27,7 +27,8 @@ export class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * 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 */ @@ -51,7 +52,8 @@ export class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * 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 @@ -172,7 +174,8 @@ export class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * 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 @@ -209,7 +212,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -233,7 +236,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -257,7 +260,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -288,7 +291,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -319,7 +322,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 5b1f4c9ebf51..10067c567d57 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -17,23 +17,27 @@ import { SecurityCenterContext } from "./securityCenterContext"; class SecurityCenter extends SecurityCenterContext { // Operation groups + complianceResults: operations.ComplianceResults; pricings: operations.Pricings; - securityContacts: operations.SecurityContacts; - workspaceSettings: operations.WorkspaceSettings; - autoProvisioningSettings: operations.AutoProvisioningSettings; - compliances: operations.Compliances; - advancedThreatProtection: operations.AdvancedThreatProtection; - settings: operations.Settings; - informationProtectionPolicies: operations.InformationProtectionPolicies; - operations: operations.Operations; - locations: operations.Locations; - tasks: operations.Tasks; alerts: operations.Alerts; + settings: operations.Settings; + allowedConnections: operations.AllowedConnections; discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; - jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; externalSecuritySolutions: operations.ExternalSecuritySolutions; + jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; + locations: operations.Locations; + operations: operations.Operations; + tasks: operations.Tasks; topology: operations.Topology; - allowedConnections: operations.AllowedConnections; + advancedThreatProtection: operations.AdvancedThreatProtection; + autoProvisioningSettings: operations.AutoProvisioningSettings; + compliances: operations.Compliances; + informationProtectionPolicies: operations.InformationProtectionPolicies; + securityContacts: operations.SecurityContacts; + workspaceSettings: operations.WorkspaceSettings; + regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; + regulatoryComplianceControls: operations.RegulatoryComplianceControls; + regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; /** * Initializes a new instance of the SecurityCenter class. @@ -45,23 +49,27 @@ class SecurityCenter extends SecurityCenterContext { */ constructor(credentials: msRest.ServiceClientCredentials, 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.securityContacts = new operations.SecurityContacts(this); - this.workspaceSettings = new operations.WorkspaceSettings(this); - this.autoProvisioningSettings = new operations.AutoProvisioningSettings(this); - this.compliances = new operations.Compliances(this); - this.advancedThreatProtection = new operations.AdvancedThreatProtection(this); - this.settings = new operations.Settings(this); - this.informationProtectionPolicies = new operations.InformationProtectionPolicies(this); - this.operations = new operations.Operations(this); - this.locations = new operations.Locations(this); - this.tasks = new operations.Tasks(this); this.alerts = new operations.Alerts(this); + this.settings = new operations.Settings(this); + this.allowedConnections = new operations.AllowedConnections(this); this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); - this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); + this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); + this.locations = new operations.Locations(this); + this.operations = new operations.Operations(this); + this.tasks = new operations.Tasks(this); this.topology = new operations.Topology(this); - this.allowedConnections = new operations.AllowedConnections(this); + this.advancedThreatProtection = new operations.AdvancedThreatProtection(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); } } diff --git a/sdk/security/arm-security/src/securityCenterContext.ts b/sdk/security/arm-security/src/securityCenterContext.ts index 1456da91b8ae..3cbbd0dd847c 100644 --- a/sdk/security/arm-security/src/securityCenterContext.ts +++ b/sdk/security/arm-security/src/securityCenterContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-security"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class SecurityCenterContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 51ea90961ce5..87bbf5b5fa49 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./lib/**/*.ts"], + "include": ["./src/**/*.ts"], "exclude": ["node_modules"] }