diff --git a/packages/@azure/arm-security/LICENSE.txt b/packages/@azure/arm-security/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-security/LICENSE.txt +++ b/packages/@azure/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/packages/@azure/arm-security/README.md b/packages/@azure/arm-security/README.md index 9a44b7efe4b5..fc8cebf6c190 100644 --- a/packages/@azure/arm-security/README.md +++ b/packages/@azure/arm-security/README.md @@ -9,23 +9,23 @@ This package contains an isomorphic SDK for SecurityCenter. ### How to Install -``` +```bash 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 regulatoryComplianceStandards as an example written in TypeScript. ##### 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"; @@ -34,7 +34,9 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new SecurityCenter(creds, subscriptionId); - client.pricings.list().then((result) => { + const resourceGroupName = "testresourceGroupName"; + const filter = "testfilter"; + client.regulatoryComplianceStandards.list(resourceGroupName, filter).then((result) => { console.log("The result is:"); console.log(result); }); @@ -43,11 +45,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and list pricings as an example written in JavaScript. +#### browser - Authentication, client creation and list regulatoryComplianceStandards as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -77,7 +79,9 @@ 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 resourceGroupName = "testresourceGroupName"; + const filter = "testfilter"; + client.regulatoryComplianceStandards.list(resourceGroupName, filter).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -94,6 +98,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%2Fpackages%2F%40azure%2Farm-security%2FREADME.png) diff --git a/packages/@azure/arm-security/lib/models/adaptiveNetworkHardeningsMappers.ts b/packages/@azure/arm-security/lib/models/adaptiveNetworkHardeningsMappers.ts new file mode 100644 index 000000000000..ba2520f1b05e --- /dev/null +++ b/packages/@azure/arm-security/lib/models/adaptiveNetworkHardeningsMappers.ts @@ -0,0 +1,52 @@ +/* + * 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, + AdaptiveNetworkHardeningsList, + AdaptiveNetworkHardening, + Resource, + BaseResource, + Rule, + EffectiveNetworkSecurityGroups, + CloudError, + AdaptiveNetworkHardeningEnforceRequest, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, + Pricing, + SecurityContact, + WorkspaceSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityTask, + SecurityTaskParameters, + Alert, + AlertEntity, + AlertConfidenceReason, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts b/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts index a5728932eabf..5a3f11f81870 100644 --- a/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts +++ b/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts @@ -14,21 +14,37 @@ export { Resource, BaseResource, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/alertsMappers.ts b/packages/@azure/arm-security/lib/models/alertsMappers.ts index db7d75be9704..81ac97f5fd0e 100644 --- a/packages/@azure/arm-security/lib/models/alertsMappers.ts +++ b/packages/@azure/arm-security/lib/models/alertsMappers.ts @@ -17,19 +17,35 @@ export { AlertEntity, AlertConfidenceReason, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts b/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts index 8c012f3647a2..0f11f1d906b1 100644 --- a/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts +++ b/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts @@ -15,21 +15,37 @@ export { Resource, BaseResource, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, WorkspaceSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/compliancesMappers.ts b/packages/@azure/arm-security/lib/models/compliancesMappers.ts index a38fc6ae8046..32455a31e257 100644 --- a/packages/@azure/arm-security/lib/models/compliancesMappers.ts +++ b/packages/@azure/arm-security/lib/models/compliancesMappers.ts @@ -16,20 +16,36 @@ export { BaseResource, ComplianceSegment, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, WorkspaceSetting, AutoProvisioningSetting, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/deviceSecurityGroupsMappers.ts b/packages/@azure/arm-security/lib/models/deviceSecurityGroupsMappers.ts new file mode 100644 index 000000000000..4e9f61d6ac06 --- /dev/null +++ b/packages/@azure/arm-security/lib/models/deviceSecurityGroupsMappers.ts @@ -0,0 +1,51 @@ +/* + * 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, + DeviceSecurityGroupList, + DeviceSecurityGroup, + Resource, + BaseResource, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + CloudError, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, + Pricing, + SecurityContact, + WorkspaceSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + AdvancedThreatProtectionSetting, + SettingResource, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityTask, + SecurityTaskParameters, + Alert, + AlertEntity, + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/packages/@azure/arm-security/lib/models/index.ts b/packages/@azure/arm-security/lib/models/index.ts index dc38e6a5aba6..81e0348e8956 100644 --- a/packages/@azure/arm-security/lib/models/index.ts +++ b/packages/@azure/arm-security/lib/models/index.ts @@ -44,44 +44,171 @@ export interface Resource extends BaseResource { /** * @interface - * An interface representing Kind. - * Describes an Azure resource with kind + * An interface representing RegulatoryComplianceStandard. + * Regulatory compliance standard details and state * + * @extends Resource */ -export interface Kind { +export interface RegulatoryComplianceStandard extends Resource { /** - * @member {string} [kind] Kind of the resource + * @member {State} [state] Aggregative state based on the standard's + * supported controls states. Possible values include: 'Passed', 'Failed', + * 'Skipped', 'Unsupported' */ - kind?: string; + 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 SecurityContact. - * Contact details for security issues + * An interface representing RegulatoryComplianceControl. + * Regulatory compliance control details and state * * @extends Resource */ -export interface SecurityContact extends Resource { +export interface RegulatoryComplianceControl extends Resource { /** - * @member {string} email The email of this security contact + * @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.** */ - email: string; + readonly description?: string; /** - * @member {string} [phone] The phone number of this security contact + * @member {State} [state] Aggregative state based on the control's supported + * assessments states. Possible values include: 'Passed', 'Failed', + * 'Skipped', 'Unsupported' */ - phone?: string; + state?: State; /** - * @member {AlertNotifications} alertNotifications Whether to send security - * alerts notifications to the security contact. Possible values include: - * 'On', 'Off' + * @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.** */ - alertNotifications: AlertNotifications; + readonly passedAssessments?: number; /** - * @member {AlertsToAdmins} alertsToAdmins Whether to send security alerts - * notifications to subscription admins. Possible values include: 'On', 'Off' + * @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.** */ - alertsToAdmins: AlertsToAdmins; + 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 AscLocation. + * The ASC location of the subscription is in the "name" field + * + * @extends Resource + */ +export interface AscLocation extends Resource { + /** + * @member {any} [properties] + */ + properties?: any; } /** @@ -93,10 +220,60 @@ export interface SecurityContact extends Resource { */ export interface Pricing extends Resource { /** - * @member {PricingTier} pricingTier Pricing tier type. Possible values + * @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 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; } /** @@ -205,88 +382,212 @@ export interface AdvancedThreatProtectionSetting extends Resource { } /** - * Contains the possible cases for Setting. + * @interface + * An interface representing CustomAlertRule. + * A custom alert rule + * */ -export type SettingUnion = Setting | DataExportSetting; +export interface CustomAlertRule { + /** + * @member {string} [displayName] The display name of the custom alert. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly displayName?: string; + /** + * @member {string} [description] The description of the custom alert. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {boolean} isEnabled Whether the custom alert is enabled. + */ + isEnabled: boolean; + /** + * @member {string} ruleType The type of the custom alert rule. + */ + ruleType: string; +} /** * @interface - * An interface representing Setting. - * Represents a security setting in Azure Security Center. + * An interface representing ThresholdCustomAlertRule. + * A custom alert rule that checks if a value (depends on the custom alert + * type) is within the given range. * + * @extends CustomAlertRule */ -export interface Setting { +export interface ThresholdCustomAlertRule extends CustomAlertRule { /** - * @member {string} kind Polymorphic Discriminator + * @member {number} minThreshold The minimum threshold. */ - kind: "Setting"; + minThreshold: number; /** - * @member {string} [id] Resource Id + * @member {number} maxThreshold The maximum threshold. + */ + maxThreshold: number; +} + +/** + * @interface + * An interface representing TimeWindowCustomAlertRule. + * A custom alert rule that checks if the number of activities (depends on the + * custom alert type) in a time window is within the given range. + * + */ +export interface TimeWindowCustomAlertRule { + /** + * @member {string} [displayName] The display name of the custom alert. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly displayName?: string; /** - * @member {string} [name] Resource name + * @member {string} [description] The description of the custom alert. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly description?: string; /** - * @member {string} [type] Resource type + * @member {boolean} isEnabled Whether the custom alert is enabled. + */ + isEnabled: boolean; + /** + * @member {string} ruleType The type of the custom alert rule. + */ + ruleType: string; + /** + * @member {number} minThreshold The minimum threshold. + */ + minThreshold: number; + /** + * @member {number} maxThreshold The maximum threshold. + */ + maxThreshold: number; + /** + * @member {string} timeWindowSize The time window size in iso8601 format. + */ + timeWindowSize: string; +} + +/** + * @interface + * An interface representing ListCustomAlertRule. + * A List custom alert rule + * + * @extends CustomAlertRule + */ +export interface ListCustomAlertRule extends CustomAlertRule { + /** + * @member {ValueType} [valueType] The value type of the items in the list. + * Possible values include: 'IpCidr', 'String' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; + readonly valueType?: ValueType; } /** * @interface - * An interface representing DataExportSetting. - * Represents a data export setting + * An interface representing AllowlistCustomAlertRule. + * A custom alert rule that checks if a value (depends on the custom alert + * type) is allowed * + * @extends ListCustomAlertRule */ -export interface DataExportSetting { +export interface AllowlistCustomAlertRule extends ListCustomAlertRule { /** - * @member {string} kind Polymorphic Discriminator + * @member {string[]} allowlistValues The values to allow. The format of the + * values depends on the rule type. */ - kind: "DataExportSetting"; + allowlistValues: string[]; +} + +/** + * @interface + * An interface representing DenylistCustomAlertRule. + * A custom alert rule that checks if a value (depends on the custom alert + * type) is denied + * + * @extends ListCustomAlertRule + */ +export interface DenylistCustomAlertRule extends ListCustomAlertRule { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string[]} denylistValues The values to deny. The format of the + * values depends on the rule type. */ - readonly id?: string; + denylistValues: string[]; +} + +/** + * @interface + * An interface representing DeviceSecurityGroup. + * The device security group resource + * + * @extends Resource + */ +export interface DeviceSecurityGroup extends Resource { /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ThresholdCustomAlertRule[]} [thresholdRules] A list of threshold + * custom alert rules. */ - readonly name?: string; + thresholdRules?: ThresholdCustomAlertRule[]; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {TimeWindowCustomAlertRule[]} [timeWindowRules] A list of time + * window custom alert rules. */ - readonly type?: string; + timeWindowRules?: TimeWindowCustomAlertRule[]; /** - * @member {boolean} enabled Is the data export setting is enabled + * @member {AllowlistCustomAlertRule[]} [allowlistRules] A list of allow-list + * custom alert rules. */ - enabled: boolean; + allowlistRules?: AllowlistCustomAlertRule[]; + /** + * @member {DenylistCustomAlertRule[]} [denylistRules] A list of deny-list + * custom alert rules. + */ + denylistRules?: DenylistCustomAlertRule[]; } /** * @interface - * An interface representing SettingKind1. + * An interface representing SettingResource. * The kind of the security setting * + * @extends Resource */ -export interface SettingKind1 { +export interface SettingResource extends Resource { /** - * @member {SettingKind} [kind] the kind of the settings string. Possible - * values include: 'DataExportSetting' + * @member {SettingKind} kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' */ - kind?: SettingKind; + 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; } /** @@ -401,21 +702,6 @@ export interface InformationProtectionPolicy extends Resource { informationTypes?: { [propertyName: string]: InformationType }; } -/** - * @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 OperationDisplay. @@ -535,20 +821,6 @@ export interface SecurityTask extends Resource { readonly subState?: string; } -/** - * @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 AlertEntity. @@ -659,11 +931,12 @@ export interface Alert extends Resource { */ readonly actionTaken?: string; /** - * @member {string} [reportedSeverity] Estimated severity of this alert + * @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?: string; + readonly reportedSeverity?: ReportedSeverity; /** * @member {string} [compromisedEntity] The entity that the incident happened * on @@ -690,193 +963,70 @@ export interface Alert extends Resource { */ 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 {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; -} - -/** - * @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; -} - -/** - * @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 + * @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 resourceId?: string; + readonly canBeInvestigated?: boolean; /** - * @member {string} [severity] The security severity of the resource + * @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 severity?: string; + readonly isIncident?: boolean; /** - * @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.** + * @member {AlertEntity[]} [entities] objects that are related to this alerts */ - readonly recommendationsExist?: boolean; + entities?: AlertEntity[]; /** - * @member {string} [networkZones] Indicates the resource connectivity level - * to the Internet (InternetFacing, Internal ,etc.) + * @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 networkZones?: string; + readonly confidenceScore?: number; /** - * @member {number} [topologyScore] Score of the resource based on its - * security severity + * @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 topologyScore?: number; + readonly subscriptionId?: string; /** - * @member {string} [location] The location of this resource + * @member {string} [instanceId] Instance ID of the alert. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly location?: string; + readonly instanceId?: string; /** - * @member {TopologySingleResourceParent[]} [parents] Azure resources - * connected to this resource which are in higher level in the topology view + * @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 parents?: TopologySingleResourceParent[]; + readonly workspaceArmId?: string; /** - * @member {TopologySingleResourceChild[]} [children] Azure resources - * connected to this resource which are in lower level in the topology view + * @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 children?: TopologySingleResourceChild[]; + readonly correlationKey?: string; } /** * @interface - * An interface representing TopologyResource. + * An interface representing DiscoveredSecuritySolution. */ -export interface TopologyResource { +export interface DiscoveredSecuritySolution { /** * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by @@ -902,19 +1052,38 @@ export interface TopologyResource { */ 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.** + * @member {SecurityFamily} securityFamily The security family of the + * discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', + * 'Va' */ - readonly calculatedDateTime?: Date; + securityFamily: SecurityFamily; /** - * @member {TopologySingleResource[]} [topologyResources] Azure resources - * which are part of this topology resource + * @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; +} + +/** + * @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 topologyResources?: TopologySingleResource[]; + readonly location?: string; } /** @@ -1139,6 +1308,19 @@ export interface JitNetworkAccessPolicyInitiateRequest { virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; } +/** + * @interface + * An interface representing Kind. + * Describes an Azure resource with kind + * + */ +export interface Kind { + /** + * @member {string} [kind] Kind of the resource + */ + kind?: string; +} + /** * Contains the possible cases for ExternalSecuritySolution. */ @@ -1148,8 +1330,8 @@ export type ExternalSecuritySolutionUnion = ExternalSecuritySolution | CefExtern * @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. + * information to an OMS workspace and whose data is displayed by Azure + * Security Center. * */ export interface ExternalSecuritySolution { @@ -1302,83 +1484,235 @@ export interface AtaExternalSecuritySolution { * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + 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 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} [name] Resource name + * @member {string} [resourceId] Azure resource id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly resourceId?: string; /** - * @member {string} [type] Resource type + * @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 type?: string; + readonly severity?: string; /** - * @member {string} [location] Location where the resource is stored + * @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 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 { + readonly recommendationsExist?: boolean; /** - * @member {string} [id] Azure resource ID of the connected OMS workspace + * @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.** */ - id?: string; -} - -/** - * @interface - * An interface representing AadSolutionProperties. - * @summary The external security solution properties for AAD solutions - * - */ -export interface AadSolutionProperties { + readonly networkZones?: string; /** - * @member {string} [deviceVendor] + * @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.** */ - deviceVendor?: string; + readonly topologyScore?: number; /** - * @member {string} [deviceType] + * @member {string} [location] The location of this resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - deviceType?: string; + readonly location?: string; /** - * @member {ConnectedWorkspace} [workspace] + * @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.** */ - workspace?: ConnectedWorkspace; + readonly parents?: TopologySingleResourceParent[]; /** - * @member {AadConnectivityState} [connectivityState] The connectivity state - * of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' + * @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.** */ - connectivityState?: AadConnectivityState; + readonly children?: TopologySingleResourceChild[]; } /** * @interface - * An interface representing AadExternalSecuritySolution. - * Represents an AAD identity protection solution which sends logs to an OMS - * workspace. - * + * An interface representing TopologyResource. */ -export interface AadExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "AAD"; +export interface TopologyResource { /** * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by @@ -1404,38 +1738,19 @@ export interface AadExternalSecuritySolution { */ 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' + * @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.** */ - kind?: ExternalSecuritySolutionKind; -} - -/** - * @interface - * An interface representing AadConnectivityState1. - * Describes an Azure resource with kind - * - */ -export interface AadConnectivityState1 { + readonly calculatedDateTime?: Date; /** - * @member {AadConnectivityState} [connectivityState] The connectivity state - * of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' + * @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.** */ - connectivityState?: AadConnectivityState; + readonly topologyResources?: TopologySingleResource[]; } /** @@ -1543,6 +1858,145 @@ export interface AllowedConnectionsResource { readonly connectableResources?: ConnectableResource[]; } +/** + * @interface + * An interface representing Rule. + * Describes remote addresses that is recommended to communicate with the Azure + * resource on some (Protocol, Port, Direction). All other remote addresses are + * recommended to be blocked + * + */ +export interface Rule { + /** + * @member {string} [name] The name of the rule + */ + name?: string; + /** + * @member {Direction} [direction] The rule's direction. Possible values + * include: 'Inbound', 'Outbound' + */ + direction?: Direction; + /** + * @member {number} [destinationPort] The rule's destination port + */ + destinationPort?: number; + /** + * @member {TransportProtocol[]} [protocols] The rule's transport protocols + */ + protocols?: TransportProtocol[]; + /** + * @member {string[]} [ipAddresses] The remote IP addresses that should be + * able to communicate with the Azure resource on the rule's destination port + * and protocol + */ + ipAddresses?: string[]; +} + +/** + * @interface + * An interface representing EffectiveNetworkSecurityGroups. + * Describes the Network Security Groups effective on a network interface + * + */ +export interface EffectiveNetworkSecurityGroups { + /** + * @member {string} [networkInterface] The Azure resource ID of the network + * interface + */ + networkInterface?: string; + /** + * @member {string[]} [networkSecurityGroups] The Network Security Groups + * effective on the network interface + */ + networkSecurityGroups?: string[]; +} + +/** + * @interface + * An interface representing AdaptiveNetworkHardening. + * The resource whose properties describes the Adaptive Network Hardening + * settings for some Azure resource + * + * @extends Resource + */ +export interface AdaptiveNetworkHardening extends Resource { + /** + * @member {Rule[]} [rules] The security rules which are recommended to be + * effective on the VM + */ + rules?: Rule[]; + /** + * @member {Date} [rulesCalculationTime] The UTC time on which the rules were + * calculated + */ + rulesCalculationTime?: Date; + /** + * @member {EffectiveNetworkSecurityGroups[]} + * [effectiveNetworkSecurityGroups] The Network Security Groups effective on + * the network interfaces of the protected resource + */ + effectiveNetworkSecurityGroups?: EffectiveNetworkSecurityGroups[]; +} + +/** + * @interface + * An interface representing AdaptiveNetworkHardeningEnforceRequest. + */ +export interface AdaptiveNetworkHardeningEnforceRequest { + /** + * @member {Rule[]} rules The rules to enforce + */ + rules: Rule[]; + /** + * @member {string[]} networkSecurityGroups The Azure resource IDs of the + * effective network security groups that will be updated with the created + * security rules from the Adaptive Network Hardening rules + */ + networkSecurityGroups: string[]; +} + +/** + * @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 TasksListOptionalParams. @@ -1688,12 +2142,44 @@ export interface SecurityCenterOptions extends AzureServiceClientOptions { /** * @interface - * An interface representing the PricingList. - * List of pricing configurations response + * 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 + * @extends Array */ -export interface PricingList 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 @@ -1741,7 +2227,23 @@ export interface WorkspaceSettingList extends Array { * * @extends Array */ -export interface AutoProvisioningSettingList 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 @@ -1752,12 +2254,12 @@ export interface AutoProvisioningSettingList extends Array + * @extends Array */ -export interface ComplianceList extends Array { +export interface DeviceSecurityGroupList 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 @@ -1771,9 +2273,9 @@ export interface ComplianceList extends Array { * An interface representing the SettingsList. * Subscription settings list. * - * @extends Array + * @extends Array */ -export interface SettingsList 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 @@ -1934,6 +2436,36 @@ export interface AllowedConnectionsList extends Array + */ +export interface AdaptiveNetworkHardeningsList extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of results + */ + nextLink?: string; +} + +/** + * Defines values for State. + * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + * @readonly + * @enum {string} + */ +export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; + +/** + * Defines values for PricingTier. + * Possible values include: 'Free', 'Standard' + * @readonly + * @enum {string} + */ +export type PricingTier = 'Free' | 'Standard'; + /** * Defines values for AlertNotifications. * Possible values include: 'On', 'Off' @@ -1951,28 +2483,36 @@ export type AlertNotifications = 'On' | 'Off'; export type AlertsToAdmins = 'On' | 'Off'; /** - * Defines values for PricingTier. - * Possible values include: 'Free', 'Standard' + * Defines values for AutoProvision. + * Possible values include: 'On', 'Off' * @readonly * @enum {string} */ -export type PricingTier = 'Free' | 'Standard'; +export type AutoProvision = 'On' | 'Off'; /** - * Defines values for AutoProvision. - * Possible values include: 'On', 'Off' + * Defines values for ValueType. + * Possible values include: 'IpCidr', 'String' * @readonly * @enum {string} */ -export type AutoProvision = 'On' | 'Off'; +export type ValueType = 'IpCidr' | 'String'; /** * Defines values for SettingKind. - * Possible values include: 'DataExportSetting' + * Possible values include: 'DataExportSetting', 'AlertSuppressionSetting' + * @readonly + * @enum {string} + */ +export type SettingKind = 'DataExportSetting' | 'AlertSuppressionSetting'; + +/** + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' * @readonly * @enum {string} */ -export type SettingKind = 'DataExportSetting'; +export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; /** * Defines values for SecurityFamily. @@ -2022,6 +2562,22 @@ export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; */ export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; +/** + * Defines values for Direction. + * Possible values include: 'Inbound', 'Outbound' + * @readonly + * @enum {string} + */ +export type Direction = 'Inbound' | 'Outbound'; + +/** + * Defines values for TransportProtocol. + * Possible values include: 'TCP', 'UDP' + * @readonly + * @enum {string} + */ +export type TransportProtocol = 'TCP' | 'UDP'; + /** * Defines values for ConnectionType. * Possible values include: 'Internal', 'External' @@ -2097,7 +2653,7 @@ export type AlertUpdateActionType1 = 'Dismiss' | 'Reactivate'; /** * Contains response data for the list operation. */ -export type PricingsListResponse = PricingList & { +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -2109,14 +2665,14 @@ export type PricingsListResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: RegulatoryComplianceStandardList; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type PricingsListByResourceGroupResponse = PricingList & { +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard & { /** * The underlying HTTP response. */ @@ -2128,14 +2684,14 @@ export type PricingsListByResourceGroupResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: RegulatoryComplianceStandard; }; }; /** - * Contains response data for the getSubscriptionPricing operation. + * Contains response data for the listNext operation. */ -export type PricingsGetSubscriptionPricingResponse = Pricing & { +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList & { /** * The underlying HTTP response. */ @@ -2147,14 +2703,14 @@ export type PricingsGetSubscriptionPricingResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: RegulatoryComplianceStandardList; }; }; /** - * Contains response data for the updateSubscriptionPricing operation. + * Contains response data for the list operation. */ -export type PricingsUpdateSubscriptionPricingResponse = Pricing & { +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList & { /** * The underlying HTTP response. */ @@ -2166,14 +2722,14 @@ export type PricingsUpdateSubscriptionPricingResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: RegulatoryComplianceControlList; }; }; /** - * Contains response data for the getResourceGroupPricing operation. + * Contains response data for the get operation. */ -export type PricingsGetResourceGroupPricingResponse = Pricing & { +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl & { /** * The underlying HTTP response. */ @@ -2185,14 +2741,33 @@ export type PricingsGetResourceGroupPricingResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + 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 createOrUpdateResourceGroupPricing operation. + * Contains response data for the list operation. */ -export type PricingsCreateOrUpdateResourceGroupPricingResponse = Pricing & { +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -2204,14 +2779,33 @@ export type PricingsCreateOrUpdateResourceGroupPricingResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + 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 PricingsListNextResponse = PricingList & { +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList & { /** * The underlying HTTP response. */ @@ -2223,14 +2817,14 @@ export type PricingsListNextResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: RegulatoryComplianceAssessmentList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the list operation. */ -export type PricingsListByResourceGroupNextResponse = PricingList & { +export type PricingsListResponse = PricingList & { /** * The underlying HTTP response. */ @@ -2246,6 +2840,44 @@ export type PricingsListByResourceGroupNextResponse = 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. */ @@ -2607,6 +3239,82 @@ export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSet }; }; +/** + * Contains response data for the list operation. + */ +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroupList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroup; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroup; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeviceSecurityGroupList; + }; +}; + /** * Contains response data for the list operation. */ @@ -2629,7 +3337,7 @@ export type SettingsListResponse = SettingsList & { /** * Contains response data for the get operation. */ -export type SettingsGetResponse = SettingUnion & { +export type SettingsGetResponse = Setting & { /** * The underlying HTTP response. */ @@ -2641,14 +3349,14 @@ export type SettingsGetResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: Setting; }; }; /** * Contains response data for the update operation. */ -export type SettingsUpdateResponse = SettingUnion & { +export type SettingsUpdateResponse = Setting & { /** * The underlying HTTP response. */ @@ -2660,7 +3368,7 @@ export type SettingsUpdateResponse = SettingUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: SettingUnion; + parsedBody: Setting; }; }; @@ -3784,3 +4492,60 @@ export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsL parsedBody: AllowedConnectionsList; }; }; + +/** + * Contains response data for the listByExtendedResource operation. + */ +export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AdaptiveNetworkHardeningsList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AdaptiveNetworkHardening; + }; +}; + +/** + * Contains response data for the listByExtendedResourceNext operation. + */ +export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AdaptiveNetworkHardeningsList; + }; +}; diff --git a/packages/@azure/arm-security/lib/models/informationProtectionPoliciesMappers.ts b/packages/@azure/arm-security/lib/models/informationProtectionPoliciesMappers.ts index 427b115cf9f7..9afebc1251e8 100644 --- a/packages/@azure/arm-security/lib/models/informationProtectionPoliciesMappers.ts +++ b/packages/@azure/arm-security/lib/models/informationProtectionPoliciesMappers.ts @@ -18,18 +18,34 @@ export { InformationProtectionKeyword, CloudError, InformationProtectionPolicyList, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/locationsMappers.ts b/packages/@azure/arm-security/lib/models/locationsMappers.ts index a9e459ba15e8..dafa73b230cd 100644 --- a/packages/@azure/arm-security/lib/models/locationsMappers.ts +++ b/packages/@azure/arm-security/lib/models/locationsMappers.ts @@ -15,13 +15,24 @@ export { Resource, BaseResource, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, Pricing, + SecurityContact, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, @@ -30,6 +41,11 @@ export { SecurityTaskParameters, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/mappers.ts b/packages/@azure/arm-security/lib/models/mappers.ts index b54822ca337d..c09bd50beb66 100644 --- a/packages/@azure/arm-security/lib/models/mappers.ts +++ b/packages/@azure/arm-security/lib/models/mappers.ts @@ -45,55 +45,174 @@ export const Resource: msRest.CompositeMapper = { } }; -export const Kind: msRest.CompositeMapper = { - serializedName: "Kind", +export const RegulatoryComplianceStandard: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandard", type: { name: "Composite", - className: "Kind", + className: "RegulatoryComplianceStandard", modelProperties: { - kind: { - serializedName: "kind", + ...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 SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", +export const RegulatoryComplianceControl: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControl", type: { name: "Composite", - className: "SecurityContact", + className: "RegulatoryComplianceControl", modelProperties: { ...Resource.type.modelProperties, - email: { - required: true, - serializedName: "properties.email", + description: { + readOnly: true, + serializedName: "properties.description", type: { name: "String" } }, - phone: { - serializedName: "properties.phone", + state: { + serializedName: "properties.state", type: { name: "String" } }, - alertNotifications: { - required: true, - serializedName: "properties.alertNotifications", + 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" } }, - alertsToAdmins: { - required: true, - serializedName: "properties.alertsToAdmins", + 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 AscLocation: msRest.CompositeMapper = { + serializedName: "AscLocation", + type: { + name: "Composite", + className: "AscLocation", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Object" + } } } } @@ -112,6 +231,74 @@ export const Pricing: msRest.CompositeMapper = { 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 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" + } } } } @@ -213,7 +400,269 @@ export const Compliance: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ComplianceSegment" + className: "ComplianceSegment" + } + } + } + } + } + } +}; + +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 CustomAlertRule: msRest.CompositeMapper = { + serializedName: "CustomAlertRule", + type: { + name: "Composite", + className: "CustomAlertRule", + modelProperties: { + displayName: { + readOnly: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + isEnabled: { + required: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + ruleType: { + required: true, + serializedName: "ruleType", + type: { + name: "String" + } + } + } + } +}; + +export const ThresholdCustomAlertRule: msRest.CompositeMapper = { + serializedName: "ThresholdCustomAlertRule", + type: { + name: "Composite", + className: "ThresholdCustomAlertRule", + modelProperties: { + ...CustomAlertRule.type.modelProperties, + minThreshold: { + required: true, + serializedName: "minThreshold", + type: { + name: "Number" + } + }, + maxThreshold: { + required: true, + serializedName: "maxThreshold", + type: { + name: "Number" + } + } + } + } +}; + +export const TimeWindowCustomAlertRule: msRest.CompositeMapper = { + serializedName: "TimeWindowCustomAlertRule", + type: { + name: "Composite", + className: "TimeWindowCustomAlertRule", + modelProperties: { + displayName: { + readOnly: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + isEnabled: { + required: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + ruleType: { + required: true, + serializedName: "ruleType", + type: { + name: "String" + } + }, + minThreshold: { + required: true, + serializedName: "minThreshold", + type: { + name: "Number" + } + }, + maxThreshold: { + required: true, + serializedName: "maxThreshold", + type: { + name: "Number" + } + }, + timeWindowSize: { + required: true, + serializedName: "timeWindowSize", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const ListCustomAlertRule: msRest.CompositeMapper = { + serializedName: "ListCustomAlertRule", + type: { + name: "Composite", + className: "ListCustomAlertRule", + modelProperties: { + ...CustomAlertRule.type.modelProperties, + valueType: { + readOnly: true, + serializedName: "valueType", + type: { + name: "String" + } + } + } + } +}; + +export const AllowlistCustomAlertRule: msRest.CompositeMapper = { + serializedName: "AllowlistCustomAlertRule", + type: { + name: "Composite", + className: "AllowlistCustomAlertRule", + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + allowlistValues: { + required: true, + serializedName: "allowlistValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DenylistCustomAlertRule: msRest.CompositeMapper = { + serializedName: "DenylistCustomAlertRule", + type: { + name: "Composite", + className: "DenylistCustomAlertRule", + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + denylistValues: { + required: true, + serializedName: "denylistValues", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DeviceSecurityGroup: msRest.CompositeMapper = { + serializedName: "DeviceSecurityGroup", + type: { + name: "Composite", + className: "DeviceSecurityGroup", + modelProperties: { + ...Resource.type.modelProperties, + thresholdRules: { + serializedName: "properties.thresholdRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ThresholdCustomAlertRule" + } + } + } + }, + timeWindowRules: { + serializedName: "properties.timeWindowRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeWindowCustomAlertRule" + } + } + } + }, + allowlistRules: { + serializedName: "properties.allowlistRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AllowlistCustomAlertRule" + } + } + } + }, + denylistRules: { + serializedName: "properties.denylistRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DenylistCustomAlertRule" } } } @@ -222,17 +671,18 @@ export const Compliance: msRest.CompositeMapper = { } }; -export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { - serializedName: "AdvancedThreatProtectionSetting", +export const SettingResource: msRest.CompositeMapper = { + serializedName: "SettingResource", type: { name: "Composite", - className: "AdvancedThreatProtectionSetting", + className: "SettingResource", modelProperties: { ...Resource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + kind: { + required: true, + serializedName: "kind", type: { - name: "Boolean" + name: "String" } } } @@ -243,41 +693,9 @@ export const Setting: msRest.CompositeMapper = { serializedName: "Setting", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "Setting", className: "Setting", 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: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - } + ...SettingResource.type.modelProperties } } }; @@ -286,8 +704,6 @@ export const DataExportSetting: msRest.CompositeMapper = { serializedName: "DataExportSetting", type: { name: "Composite", - polymorphicDiscriminator: Setting.type.polymorphicDiscriminator, - uberParent: "Setting", className: "DataExportSetting", modelProperties: { ...Setting.type.modelProperties, @@ -302,22 +718,6 @@ export const DataExportSetting: msRest.CompositeMapper = { } }; -export const SettingKind1: msRest.CompositeMapper = { - serializedName: "SettingKind", - type: { - name: "Composite", - className: "SettingKind1", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - } - } - } -}; - export const SensitivityLabel: msRest.CompositeMapper = { serializedName: "SensitivityLabel", type: { @@ -474,23 +874,6 @@ export const InformationProtectionPolicy: msRest.CompositeMapper = { } }; -export const Location: msRest.CompositeMapper = { - serializedName: "Location", - type: { - name: "Composite", - className: "Location", - modelProperties: { - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - export const OperationDisplay: msRest.CompositeMapper = { serializedName: "OperationDisplay", type: { @@ -633,23 +1016,6 @@ export const SecurityTask: msRest.CompositeMapper = { } }; -export const AscLocation: msRest.CompositeMapper = { - serializedName: "AscLocation", - type: { - name: "Composite", - className: "AscLocation", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Object" - } - } - } - } -}; - export const AlertEntity: msRest.CompositeMapper = { serializedName: "AlertEntity", type: { @@ -812,6 +1178,13 @@ export const Alert: msRest.CompositeMapper = { name: "Boolean" } }, + isIncident: { + readOnly: true, + serializedName: "properties.isIncident", + type: { + name: "Boolean" + } + }, entities: { serializedName: "properties.entities", type: { @@ -868,198 +1241,27 @@ export const Alert: msRest.CompositeMapper = { }, workspaceArmId: { readOnly: true, - serializedName: "properties.workspaceArmId", - type: { - name: "String" - } - } - } - } -}; - -export const DiscoveredSecuritySolution: msRest.CompositeMapper = { - serializedName: "DiscoveredSecuritySolution", - type: { - name: "Composite", - className: "DiscoveredSecuritySolution", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - securityFamily: { - required: true, - serializedName: "properties.securityFamily", - type: { - name: "String" - } - }, - offer: { - required: true, - serializedName: "properties.offer", - type: { - name: "String" - } - }, - publisher: { - required: true, - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - sku: { - required: true, - serializedName: "properties.sku", - type: { - name: "String" - } - } - } - } -}; - -export const 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", + serializedName: "properties.workspaceArmId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceParent" - } - } + name: "String" } }, - children: { + correlationKey: { readOnly: true, - serializedName: "children", + serializedName: "properties.correlationKey", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceChild" - } - } + name: "String" } } } } }; -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", +export const DiscoveredSecuritySolution: msRest.CompositeMapper = { + serializedName: "DiscoveredSecuritySolution", type: { name: "Composite", - className: "TopologyResource", + className: "DiscoveredSecuritySolution", modelProperties: { id: { readOnly: true, @@ -1089,24 +1291,49 @@ export const TopologyResource: msRest.CompositeMapper = { name: "String" } }, - calculatedDateTime: { - readOnly: true, - serializedName: "properties.calculatedDateTime", + securityFamily: { + required: true, + serializedName: "properties.securityFamily", type: { - name: "DateTime" + name: "String" } }, - topologyResources: { + 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 Location: msRest.CompositeMapper = { + serializedName: "Location", + type: { + name: "Composite", + className: "Location", + modelProperties: { + location: { readOnly: true, - serializedName: "properties.topologyResources", + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResource" - } - } + name: "String" } } } @@ -1472,6 +1699,22 @@ export const JitNetworkAccessPolicyInitiateRequest: msRest.CompositeMapper = { } }; +export const Kind: msRest.CompositeMapper = { + serializedName: "Kind", + type: { + name: "Composite", + className: "Kind", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + export const ExternalSecuritySolution: msRest.CompositeMapper = { serializedName: "ExternalSecuritySolution", type: { @@ -1728,21 +1971,191 @@ export const ExternalSecuritySolutionKind1: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const AadConnectivityState1: msRest.CompositeMapper = { - serializedName: "AadConnectivityState", - type: { - name: "Composite", - className: "AadConnectivityState1", - modelProperties: { - connectivityState: { - serializedName: "connectivityState", + } + } + } +}; + +export const AadConnectivityState1: msRest.CompositeMapper = { + serializedName: "AadConnectivityState", + type: { + name: "Composite", + className: "AadConnectivityState1", + modelProperties: { + connectivityState: { + serializedName: "connectivityState", + 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: "String" + name: "DateTime" + } + }, + topologyResources: { + readOnly: true, + serializedName: "properties.topologyResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResource" + } + } } } } @@ -1881,11 +2294,164 @@ export const AllowedConnectionsResource: msRest.CompositeMapper = { } }; -export const PricingList: msRest.CompositeMapper = { - serializedName: "PricingList", +export const Rule: msRest.CompositeMapper = { + serializedName: "Rule", type: { name: "Composite", - className: "PricingList", + className: "Rule", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + direction: { + serializedName: "direction", + type: { + name: "String" + } + }, + destinationPort: { + serializedName: "destinationPort", + type: { + name: "Number" + } + }, + protocols: { + serializedName: "protocols", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ipAddresses: { + serializedName: "ipAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EffectiveNetworkSecurityGroups: msRest.CompositeMapper = { + serializedName: "EffectiveNetworkSecurityGroups", + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups", + modelProperties: { + networkInterface: { + serializedName: "networkInterface", + type: { + name: "String" + } + }, + networkSecurityGroups: { + serializedName: "networkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AdaptiveNetworkHardening: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardening", + type: { + name: "Composite", + className: "AdaptiveNetworkHardening", + modelProperties: { + ...Resource.type.modelProperties, + rules: { + serializedName: "properties.rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } + } + }, + rulesCalculationTime: { + serializedName: "properties.rulesCalculationTime", + type: { + name: "DateTime" + } + }, + effectiveNetworkSecurityGroups: { + serializedName: "properties.effectiveNetworkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EffectiveNetworkSecurityGroups" + } + } + } + } + } + } +}; + +export const AdaptiveNetworkHardeningEnforceRequest: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardeningEnforceRequest", + type: { + name: "Composite", + className: "AdaptiveNetworkHardeningEnforceRequest", + modelProperties: { + rules: { + required: true, + serializedName: "rules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Rule" + } + } + } + }, + networkSecurityGroups: { + required: true, + serializedName: "networkSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RegulatoryComplianceStandardList: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandardList", + type: { + name: "Composite", + className: "RegulatoryComplianceStandardList", modelProperties: { value: { required: true, @@ -1895,7 +2461,67 @@ export const PricingList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Pricing" + 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" } } } @@ -2029,6 +2655,35 @@ export const ComplianceList: msRest.CompositeMapper = { } }; +export const DeviceSecurityGroupList: msRest.CompositeMapper = { + serializedName: "DeviceSecurityGroupList", + type: { + name: "Composite", + className: "DeviceSecurityGroupList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeviceSecurityGroup" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const SettingsList: msRest.CompositeMapper = { serializedName: "SettingsList", type: { @@ -2352,9 +3007,35 @@ export const AllowedConnectionsList: msRest.CompositeMapper = { } }; +export const AdaptiveNetworkHardeningsList: msRest.CompositeMapper = { + serializedName: "AdaptiveNetworkHardeningsList", + type: { + name: "Composite", + className: "AdaptiveNetworkHardeningsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdaptiveNetworkHardening" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const discriminators = { - 'Setting' : Setting, - 'Setting.DataExportSetting' : DataExportSetting, 'ExternalSecuritySolution' : ExternalSecuritySolution, 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, diff --git a/packages/@azure/arm-security/lib/models/parameters.ts b/packages/@azure/arm-security/lib/models/parameters.ts index fb823bdaca2c..359bbfa4f2f7 100644 --- a/packages/@azure/arm-security/lib/models/parameters.ts +++ b/packages/@azure/arm-security/lib/models/parameters.ts @@ -20,6 +20,28 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; +export const adaptiveNetworkHardeningEnforceAction: msRest.OperationURLParameter = { + parameterPath: "adaptiveNetworkHardeningEnforceAction", + mapper: { + required: true, + isConstant: true, + serializedName: "adaptiveNetworkHardeningEnforceAction", + defaultValue: 'enforce', + type: { + name: "String" + } + } +}; +export const adaptiveNetworkHardeningResourceName: msRest.OperationURLParameter = { + parameterPath: "adaptiveNetworkHardeningResourceName", + mapper: { + required: true, + serializedName: "adaptiveNetworkHardeningResourceName", + type: { + name: "String" + } + } +}; export const alertName: msRest.OperationURLParameter = { parameterPath: "alertName", mapper: { @@ -46,13 +68,37 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2017-08-01-preview', + defaultValue: '2019-01-01-preview', 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: '2017-08-01-preview', + type: { + name: "String" + } + } +}; +export const apiVersion3: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, @@ -64,6 +110,18 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; +export const apiVersion4: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2019-01-01', + type: { + name: "String" + } + } +}; export const ascLocation: msRest.OperationURLParameter = { parameterPath: "ascLocation", mapper: { @@ -94,6 +152,16 @@ export const connectionType: msRest.OperationURLParameter = { } } }; +export const deviceSecurityGroupName: msRest.OperationURLParameter = { + parameterPath: "deviceSecurityGroupName", + mapper: { + required: true, + serializedName: "deviceSecurityGroupName", + type: { + name: "String" + } + } +}; export const discoveredSecuritySolutionName: msRest.OperationURLParameter = { parameterPath: "discoveredSecuritySolutionName", mapper: { @@ -191,6 +259,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: { @@ -216,6 +314,36 @@ export const resourceId: msRest.OperationURLParameter = { } } }; +export const resourceName: msRest.OperationURLParameter = { + parameterPath: "resourceName", + mapper: { + required: true, + serializedName: "resourceName", + type: { + name: "String" + } + } +}; +export const resourceNamespace: msRest.OperationURLParameter = { + parameterPath: "resourceNamespace", + mapper: { + required: true, + serializedName: "resourceNamespace", + type: { + name: "String" + } + } +}; +export const resourceType: msRest.OperationURLParameter = { + parameterPath: "resourceType", + mapper: { + required: true, + serializedName: "resourceType", + type: { + name: "String" + } + } +}; export const scope: msRest.OperationURLParameter = { parameterPath: "scope", mapper: { diff --git a/packages/@azure/arm-security/lib/models/pricingsMappers.ts b/packages/@azure/arm-security/lib/models/pricingsMappers.ts index 457b9ad15a1f..49b1100d726a 100644 --- a/packages/@azure/arm-security/lib/models/pricingsMappers.ts +++ b/packages/@azure/arm-security/lib/models/pricingsMappers.ts @@ -15,21 +15,37 @@ export { Resource, BaseResource, CloudError, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, SecurityContact, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts b/packages/@azure/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts new file mode 100644 index 000000000000..b782570076bc --- /dev/null +++ b/packages/@azure/arm-security/lib/models/regulatoryComplianceAssessmentsMappers.ts @@ -0,0 +1,51 @@ +/* + * 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, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + AscLocation, + Pricing, + SecurityContact, + WorkspaceSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityTask, + SecurityTaskParameters, + Alert, + AlertEntity, + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/packages/@azure/arm-security/lib/models/regulatoryComplianceControlsMappers.ts b/packages/@azure/arm-security/lib/models/regulatoryComplianceControlsMappers.ts new file mode 100644 index 000000000000..cd6e5988133f --- /dev/null +++ b/packages/@azure/arm-security/lib/models/regulatoryComplianceControlsMappers.ts @@ -0,0 +1,51 @@ +/* + * 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, + RegulatoryComplianceStandard, + RegulatoryComplianceAssessment, + AscLocation, + Pricing, + SecurityContact, + WorkspaceSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityTask, + SecurityTaskParameters, + Alert, + AlertEntity, + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/packages/@azure/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts b/packages/@azure/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts new file mode 100644 index 000000000000..35f2872cc75b --- /dev/null +++ b/packages/@azure/arm-security/lib/models/regulatoryComplianceStandardsMappers.ts @@ -0,0 +1,51 @@ +/* + * 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, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, + Pricing, + SecurityContact, + WorkspaceSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityTask, + SecurityTaskParameters, + Alert, + AlertEntity, + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting +} from "../models/mappers"; + diff --git a/packages/@azure/arm-security/lib/models/securityContactsMappers.ts b/packages/@azure/arm-security/lib/models/securityContactsMappers.ts index 1e4d8593b773..764966a398a0 100644 --- a/packages/@azure/arm-security/lib/models/securityContactsMappers.ts +++ b/packages/@azure/arm-security/lib/models/securityContactsMappers.ts @@ -15,21 +15,37 @@ export { Resource, BaseResource, CloudError, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/settingsMappers.ts b/packages/@azure/arm-security/lib/models/settingsMappers.ts index 127c46204903..53b88494c801 100644 --- a/packages/@azure/arm-security/lib/models/settingsMappers.ts +++ b/packages/@azure/arm-security/lib/models/settingsMappers.ts @@ -12,7 +12,40 @@ export { discriminators, SettingsList, Setting, + SettingResource, + Resource, + BaseResource, CloudError, - DataExportSetting + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, + Pricing, + SecurityContact, + WorkspaceSetting, + AutoProvisioningSetting, + Compliance, + ComplianceSegment, + AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + DataExportSetting, + InformationProtectionPolicy, + SensitivityLabel, + InformationType, + InformationProtectionKeyword, + SecurityTask, + SecurityTaskParameters, + Alert, + AlertEntity, + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/tasksMappers.ts b/packages/@azure/arm-security/lib/models/tasksMappers.ts index 5e5eb961a569..acee86804a4e 100644 --- a/packages/@azure/arm-security/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-security/lib/models/tasksMappers.ts @@ -16,20 +16,36 @@ export { BaseResource, SecurityTaskParameters, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, WorkspaceSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/workspaceSettingsMappers.ts b/packages/@azure/arm-security/lib/models/workspaceSettingsMappers.ts index df56c1d9defb..fa169c1ec120 100644 --- a/packages/@azure/arm-security/lib/models/workspaceSettingsMappers.ts +++ b/packages/@azure/arm-security/lib/models/workspaceSettingsMappers.ts @@ -15,21 +15,37 @@ export { Resource, BaseResource, CloudError, - SecurityContact, + RegulatoryComplianceStandard, + RegulatoryComplianceControl, + RegulatoryComplianceAssessment, + AscLocation, Pricing, + SecurityContact, AutoProvisioningSetting, Compliance, ComplianceSegment, AdvancedThreatProtectionSetting, + DeviceSecurityGroup, + ThresholdCustomAlertRule, + CustomAlertRule, + TimeWindowCustomAlertRule, + AllowlistCustomAlertRule, + ListCustomAlertRule, + DenylistCustomAlertRule, + SettingResource, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, SecurityTask, SecurityTaskParameters, - AscLocation, Alert, AlertEntity, - AlertConfidenceReason + AlertConfidenceReason, + AdaptiveNetworkHardening, + Rule, + EffectiveNetworkSecurityGroups, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/operations/adaptiveNetworkHardenings.ts b/packages/@azure/arm-security/lib/operations/adaptiveNetworkHardenings.ts new file mode 100644 index 000000000000..95a9a513d09e --- /dev/null +++ b/packages/@azure/arm-security/lib/operations/adaptiveNetworkHardenings.ts @@ -0,0 +1,304 @@ +/* + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/adaptiveNetworkHardeningsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a AdaptiveNetworkHardenings. */ +export class AdaptiveNetworkHardenings { + private readonly client: SecurityCenterContext; + + /** + * Create a AdaptiveNetworkHardenings. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param callback The callback + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + options + }, + listByExtendedResourceOperationSpec, + callback) as Promise; + } + + /** + * Gets a single Adaptive Network Hardening resource + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. + * @param callback The callback + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + adaptiveNetworkHardeningResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Enforces the given rules on the NSG(s) listed in the request + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. + * @param body + * @param [options] The optional parameters + * @returns Promise + */ + enforce(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: Models.AdaptiveNetworkHardeningEnforceRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginEnforce(resourceGroupName,resourceNamespace,resourceType,resourceName,adaptiveNetworkHardeningResourceName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Enforces the given rules on the NSG(s) listed in the request + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param resourceNamespace The Namespace of the resource. + * @param resourceType The type of the resource. + * @param resourceName Name of the resource. + * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. + * @param body + * @param [options] The optional parameters + * @returns Promise + */ + beginEnforce(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: Models.AdaptiveNetworkHardeningEnforceRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceNamespace, + resourceType, + resourceName, + adaptiveNetworkHardeningResourceName, + body, + options + }, + beginEnforceOperationSpec, + options); + } + + /** + * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByExtendedResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByExtendedResourceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByExtendedResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByExtendedResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByExtendedResourceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByExtendedResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AdaptiveNetworkHardeningsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName, + Parameters.adaptiveNetworkHardeningResourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AdaptiveNetworkHardening + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginEnforceOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceNamespace, + Parameters.resourceType, + Parameters.resourceName, + Parameters.adaptiveNetworkHardeningResourceName, + Parameters.adaptiveNetworkHardeningEnforceAction + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.AdaptiveNetworkHardeningEnforceRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByExtendedResourceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AdaptiveNetworkHardeningsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-security/lib/operations/advancedThreatProtection.ts b/packages/@azure/arm-security/lib/operations/advancedThreatProtection.ts index 7c141526f4da..e46de5f02a25 100644 --- a/packages/@azure/arm-security/lib/operations/advancedThreatProtection.ts +++ b/packages/@azure/arm-security/lib/operations/advancedThreatProtection.ts @@ -97,7 +97,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -121,7 +121,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.settingName1 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/alerts.ts b/packages/@azure/arm-security/lib/operations/alerts.ts index 5437e2d49e75..db2b69e8a57e 100644 --- a/packages/@azure/arm-security/lib/operations/alerts.ts +++ b/packages/@azure/arm-security/lib/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.apiVersion4, Parameters.filter, Parameters.select, Parameters.expand @@ -429,7 +429,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion4, Parameters.filter, Parameters.select, Parameters.expand @@ -456,7 +456,7 @@ const listSubscriptionLevelAlertsByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion4, Parameters.filter, Parameters.select, Parameters.expand @@ -484,7 +484,7 @@ const listResourceGroupLevelAlertsByRegionOperationSpec: msRest.OperationSpec = Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion4, Parameters.filter, Parameters.select, Parameters.expand @@ -512,7 +512,7 @@ const getSubscriptionLevelAlertOperationSpec: msRest.OperationSpec = { Parameters.alertName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -538,7 +538,7 @@ const getResourceGroupLevelAlertsOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -564,7 +564,7 @@ const updateSubscriptionLevelAlertStateOperationSpec: msRest.OperationSpec = { Parameters.alertUpdateActionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage @@ -589,7 +589,7 @@ const updateResourceGroupLevelAlertStateOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion4 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/allowedConnections.ts b/packages/@azure/arm-security/lib/operations/allowedConnections.ts index b738cdb1d55a..b4a0a2c0d818 100644 --- a/packages/@azure/arm-security/lib/operations/allowedConnections.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts b/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts index be242ac19ac5..f856fa2a46ad 100644 --- a/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts +++ b/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts @@ -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 createOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/compliances.ts b/packages/@azure/arm-security/lib/operations/compliances.ts index 73cb750b550e..d1b0523449c4 100644 --- a/packages/@azure/arm-security/lib/operations/compliances.ts +++ b/packages/@azure/arm-security/lib/operations/compliances.ts @@ -136,7 +136,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.complianceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/deviceSecurityGroups.ts b/packages/@azure/arm-security/lib/operations/deviceSecurityGroups.ts new file mode 100644 index 000000000000..cceb27becfd5 --- /dev/null +++ b/packages/@azure/arm-security/lib/operations/deviceSecurityGroups.ts @@ -0,0 +1,320 @@ +/* + * 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/deviceSecurityGroupsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a DeviceSecurityGroups. */ +export class DeviceSecurityGroups { + private readonly client: SecurityCenterContext; + + /** + * Create a DeviceSecurityGroups. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Gets the list of device security groups for the specified IoT hub resource. + * @param resourceId The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param callback The callback + */ + list(resourceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the device security group for the specified IoT hub resource. + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param callback The callback + */ + get(resourceId: string, deviceSecurityGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceId: string, deviceSecurityGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + deviceSecurityGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the device security group on a specified IoT hub resource. + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param deviceSecurityGroup Security group object. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param deviceSecurityGroup Security group object. + * @param callback The callback + */ + createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param deviceSecurityGroup Security group object. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceId: string, deviceSecurityGroupName: string, deviceSecurityGroup: Models.DeviceSecurityGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + deviceSecurityGroupName, + deviceSecurityGroup, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the security group + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param callback The callback + */ + deleteMethod(resourceId: string, deviceSecurityGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param deviceSecurityGroupName The name of the security group. Please notice that the name is + * case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceId: string, deviceSecurityGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceId: string, deviceSecurityGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + deviceSecurityGroupName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the list of device security groups for the specified IoT hub resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups", + urlParameters: [ + Parameters.resourceId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceSecurityGroupList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", + urlParameters: [ + Parameters.resourceId, + Parameters.deviceSecurityGroupName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", + urlParameters: [ + Parameters.resourceId, + Parameters.deviceSecurityGroupName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "deviceSecurityGroup", + mapper: { + ...Mappers.DeviceSecurityGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DeviceSecurityGroup + }, + 201: { + bodyMapper: Mappers.DeviceSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "{resourceId}/providers/Microsoft.Security/deviceSecurityGroups/{deviceSecurityGroupName}", + urlParameters: [ + Parameters.resourceId, + Parameters.deviceSecurityGroupName + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeviceSecurityGroupList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts b/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts index 08ce2d37ee85..59ca5da504c7 100644 --- a/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts b/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts index 564bd6cab181..b88471034f9c 100644 --- a/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/index.ts b/packages/@azure/arm-security/lib/operations/index.ts index dd820149dfa7..91c0f4623402 100644 --- a/packages/@azure/arm-security/lib/operations/index.ts +++ b/packages/@azure/arm-security/lib/operations/index.ts @@ -8,12 +8,16 @@ * regenerated. */ +export * from "./regulatoryComplianceStandards"; +export * from "./regulatoryComplianceControls"; +export * from "./regulatoryComplianceAssessments"; export * from "./pricings"; export * from "./securityContacts"; export * from "./workspaceSettings"; export * from "./autoProvisioningSettings"; export * from "./compliances"; export * from "./advancedThreatProtection"; +export * from "./deviceSecurityGroups"; export * from "./settings"; export * from "./informationProtectionPolicies"; export * from "./operations"; @@ -25,3 +29,4 @@ export * from "./jitNetworkAccessPolicies"; export * from "./externalSecuritySolutions"; export * from "./topology"; export * from "./allowedConnections"; +export * from "./adaptiveNetworkHardenings"; diff --git a/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts b/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts index 59e511fb0445..9327dadd7c9c 100644 --- a/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts +++ b/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts @@ -181,7 +181,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -205,7 +205,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -231,7 +231,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts b/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts index a9eca485751a..19de8e652b64 100644 --- a/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/locations.ts b/packages/@azure/arm-security/lib/operations/locations.ts index ca7e3a22f61b..55deb4222589 100644 --- a/packages/@azure/arm-security/lib/operations/locations.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/operations.ts b/packages/@azure/arm-security/lib/operations/operations.ts index 76388bc9221b..43d8b8fe4740 100644 --- a/packages/@azure/arm-security/lib/operations/operations.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/pricings.ts b/packages/@azure/arm-security/lib/operations/pricings.ts index 835af87be06a..5d3e1abfd2da 100644 --- a/packages/@azure/arm-security/lib/operations/pricings.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/regulatoryComplianceAssessments.ts b/packages/@azure/arm-security/lib/operations/regulatoryComplianceAssessments.ts new file mode 100644 index 000000000000..71654861454e --- /dev/null +++ b/packages/@azure/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.apiVersion0, + 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.apiVersion0 + ], + 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/packages/@azure/arm-security/lib/operations/regulatoryComplianceControls.ts b/packages/@azure/arm-security/lib/operations/regulatoryComplianceControls.ts new file mode 100644 index 000000000000..7e270d70051d --- /dev/null +++ b/packages/@azure/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.apiVersion0, + 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.apiVersion0 + ], + 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/packages/@azure/arm-security/lib/operations/regulatoryComplianceStandards.ts b/packages/@azure/arm-security/lib/operations/regulatoryComplianceStandards.ts new file mode 100644 index 000000000000..54ad45db61ad --- /dev/null +++ b/packages/@azure/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.apiVersion0, + 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.apiVersion0 + ], + 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/packages/@azure/arm-security/lib/operations/securityContacts.ts b/packages/@azure/arm-security/lib/operations/securityContacts.ts index d96d049f457f..92412bbd8ce4 100644 --- a/packages/@azure/arm-security/lib/operations/securityContacts.ts +++ b/packages/@azure/arm-security/lib/operations/securityContacts.ts @@ -208,7 +208,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -232,7 +232,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -256,7 +256,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -287,7 +287,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +309,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/settings.ts b/packages/@azure/arm-security/lib/operations/settings.ts index b5d38a326868..78571824c8c0 100644 --- a/packages/@azure/arm-security/lib/operations/settings.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/tasks.ts b/packages/@azure/arm-security/lib/operations/tasks.ts index cf2414a50cfe..e457fc13c2c5 100644 --- a/packages/@azure/arm-security/lib/operations/tasks.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/topology.ts b/packages/@azure/arm-security/lib/operations/topology.ts index 29881ed37736..598b206eeef2 100644 --- a/packages/@azure/arm-security/lib/operations/topology.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/lib/operations/workspaceSettings.ts b/packages/@azure/arm-security/lib/operations/workspaceSettings.ts index 7aa4886714a4..5d89aa618107 100644 --- a/packages/@azure/arm-security/lib/operations/workspaceSettings.ts +++ b/packages/@azure/arm-security/lib/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.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -233,7 +236,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -257,7 +260,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -288,7 +291,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -319,7 +322,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/securityCenter.ts b/packages/@azure/arm-security/lib/securityCenter.ts index 5b1f4c9ebf51..560bd94df893 100644 --- a/packages/@azure/arm-security/lib/securityCenter.ts +++ b/packages/@azure/arm-security/lib/securityCenter.ts @@ -17,12 +17,16 @@ import { SecurityCenterContext } from "./securityCenterContext"; class SecurityCenter extends SecurityCenterContext { // Operation groups + regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; + regulatoryComplianceControls: operations.RegulatoryComplianceControls; + regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; pricings: operations.Pricings; securityContacts: operations.SecurityContacts; workspaceSettings: operations.WorkspaceSettings; autoProvisioningSettings: operations.AutoProvisioningSettings; compliances: operations.Compliances; advancedThreatProtection: operations.AdvancedThreatProtection; + deviceSecurityGroups: operations.DeviceSecurityGroups; settings: operations.Settings; informationProtectionPolicies: operations.InformationProtectionPolicies; operations: operations.Operations; @@ -34,6 +38,7 @@ class SecurityCenter extends SecurityCenterContext { externalSecuritySolutions: operations.ExternalSecuritySolutions; topology: operations.Topology; allowedConnections: operations.AllowedConnections; + adaptiveNetworkHardenings: operations.AdaptiveNetworkHardenings; /** * Initializes a new instance of the SecurityCenter class. @@ -45,12 +50,16 @@ class SecurityCenter extends SecurityCenterContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { super(credentials, subscriptionId, ascLocation, options); + this.regulatoryComplianceStandards = new operations.RegulatoryComplianceStandards(this); + this.regulatoryComplianceControls = new operations.RegulatoryComplianceControls(this); + this.regulatoryComplianceAssessments = new operations.RegulatoryComplianceAssessments(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.deviceSecurityGroups = new operations.DeviceSecurityGroups(this); this.settings = new operations.Settings(this); this.informationProtectionPolicies = new operations.InformationProtectionPolicies(this); this.operations = new operations.Operations(this); @@ -62,6 +71,7 @@ class SecurityCenter extends SecurityCenterContext { this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); this.topology = new operations.Topology(this); this.allowedConnections = new operations.AllowedConnections(this); + this.adaptiveNetworkHardenings = new operations.AdaptiveNetworkHardenings(this); } } diff --git a/packages/@azure/arm-security/lib/securityCenterContext.ts b/packages/@azure/arm-security/lib/securityCenterContext.ts index 1456da91b8ae..3cbbd0dd847c 100644 --- a/packages/@azure/arm-security/lib/securityCenterContext.ts +++ b/packages/@azure/arm-security/lib/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/packages/@azure/arm-security/package.json b/packages/@azure/arm-security/package.json index f787f1cab990..bab4f254e9dc 100644 --- a/packages/@azure/arm-security/package.json +++ b/packages/@azure/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,6 +23,7 @@ "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/packages/@azure/arm-security", @@ -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/packages/@azure/arm-security/rollup.config.js b/packages/@azure/arm-security/rollup.config.js index 651c85e10ed3..43a7bd9aa064 100644 --- a/packages/@azure/arm-security/rollup.config.js +++ b/packages/@azure/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;