From 0452c50775cbca261b3589ccfee7ac583911909b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 21 Feb 2022 09:19:45 +0000 Subject: [PATCH] CodeGen from PR 17426 in Azure/azure-rest-api-specs Merge c08015f4b4c11fada1de2427c209d360dc45a683 into efd3d669a86d2e123f57ac3a43e5af4bb9e3a29f --- common/config/rush/pnpm-lock.yaml | 17 ++- sdk/security/arm-security/CHANGELOG.md | 40 ++++-- sdk/security/arm-security/LICENSE | 2 +- sdk/security/arm-security/README.md | 2 +- sdk/security/arm-security/_meta.json | 6 +- sdk/security/arm-security/api-extractor.json | 25 +++- sdk/security/arm-security/package.json | 8 +- .../arm-security/review/arm-security.api.md | 123 ++++++++++-------- sdk/security/arm-security/src/models/index.ts | 64 +++++---- .../arm-security/src/models/mappers.ts | 40 +++++- .../informationProtectionPolicies.ts | 6 +- .../arm-security/src/operations/settings.ts | 6 +- .../arm-security/src/operations/tasks.ts | 6 +- .../informationProtectionPolicies.ts | 6 +- .../src/operationsInterfaces/settings.ts | 6 +- .../src/operationsInterfaces/tasks.ts | 6 +- .../arm-security/src/securityCenter.ts | 2 +- sdk/security/arm-security/tsconfig.json | 16 ++- 18 files changed, 245 insertions(+), 136 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a09de01d5d0d..ffbf117e150c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -8883,7 +8883,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-o7nTFUp/He8mxChlJgVsEQGvMSgBwZ3Q0cA3IwYAEgFxksGNGDqirKVX14ixCFXZ4WccvZ7N4k7cRVsDsLJO4g==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-negpkvINfMedZMo/5L1bUc1Jurs3pGS6PuodsviCc+XynPV3SHz+/TtOJD49pu7VzkDnSKEU7Yz1DpaV083KQQ==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -8929,7 +8929,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -11816,22 +11815,22 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-wpcTbI+NbsXZV8weUCWcziRc9vOKNnijbDYBNMx1gYH3fDEvVStwcvfiOhFaTJF60/6G3TXxUAMidLr/z4axRQ==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-X/nlLia9k75M0GhNEY+gfzOYiyQKI6xhf6iaTdMDKCYijqt8UTqiZfGvk3V1DkZzW3aJI6Rr0Uqp/nFs9pAggg==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.1_rollup@2.67.1 - '@rollup/plugin-json': 4.1.0_rollup@2.67.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.67.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.67.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.67.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.67.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.1 diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index 6a435b72be0d..e38dd47c6370 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,15 +1,33 @@ # Release History - -## 4.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 5.0.0-beta.1 (2022-02-21) + +**Features** + + - Added Interface InformationProtectionAwsOfferingInformationProtection + - Added Type Alias InformationProtectionAwsOffering + - Added Type Alias InformationProtectionPolicyName + - Added Type Alias SettingName + - Added Type Alias TaskUpdateActionType + - Added Enum KnownInformationProtectionPolicyName + - Added Enum KnownSettingName + - Added Enum KnownTaskUpdateActionType + - Enum KnownOfferingType has a new value InformationProtectionAws + - Enum KnownSupportedCloudEnum has a new value GCP + +**Breaking Changes** + + - Operation InformationProtectionPolicies.createOrUpdate has a new signature + - Operation InformationProtectionPolicies.get has a new signature + - Operation Settings.get has a new signature + - Operation Settings.update has a new signature + - Operation Tasks.updateResourceGroupLevelTaskState has a new signature + - Operation Tasks.updateSubscriptionLevelTaskState has a new signature + - Removed Enum KnownEnum15 + - Removed Enum KnownEnum17 + - Removed Enum KnownEnum73 + + ## 4.0.0 (2021-12-14) The package of @azure/arm-security is using our next generation design principles since version 4.0.0, which contains breaking changes. diff --git a/sdk/security/arm-security/LICENSE b/sdk/security/arm-security/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/security/arm-security/LICENSE +++ b/sdk/security/arm-security/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index a54f7902e8d8..52eb7db80de6 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -6,7 +6,7 @@ API spec for Microsoft.Security (Azure Security Center) resource provider [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-security) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-security) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 6ffc255b94f2..7f5d5c171afb 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,7 +1,7 @@ { - "commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff", + "commit": "60affb934499302760f2dba2f1d8f6f0fcbf9385", "readme": "specification/security/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/security/arm-security/api-extractor.json b/sdk/security/arm-security/api-extractor.json index 7fa251be5abb..d866cd3a63ba 100644 --- a/sdk/security/arm-security/api-extractor.json +++ b/sdk/security/arm-security/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-security.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index edfaaeb9e235..c2049e491f27 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for SecurityCenter.", - "version": "4.0.1", + "version": "1.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-security.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/review/arm-security.api.md b/sdk/security/arm-security/review/arm-security.api.md index 9819bf594342..f86f4e1c90f4 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -988,11 +988,11 @@ export type CloudName = string; // @public export interface CloudOffering { readonly description?: string; - offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAWS"; + offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws"; } // @public (undocumented) -export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering; +export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | InformationProtectionAwsOffering; // @public export type Compliance = Resource & { @@ -1420,7 +1420,7 @@ export interface DefenderForContainersAwsOfferingKubernetesService { // @public export type DefenderForServersAwsOffering = CloudOffering & { - offeringType: "DefenderForServersAWS"; + offeringType: "DefenderForServersAws"; defenderForServers?: DefenderForServersAwsOfferingDefenderForServers; arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; }; @@ -1583,15 +1583,6 @@ export type EnforcementMode = string; // @public export type EnforcementSupport = string; -// @public -export type Enum15 = string; - -// @public -export type Enum17 = string; - -// @public -export type Enum73 = string; - // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -1749,6 +1740,17 @@ export interface HybridComputeSettingsProperties { // @public export type ImplementationEffort = string; +// @public +export type InformationProtectionAwsOffering = CloudOffering & { + offeringType: "InformationProtectionAws"; + informationProtection?: InformationProtectionAwsOfferingInformationProtection; +}; + +// @public +export interface InformationProtectionAwsOfferingInformationProtection { + cloudRoleArn?: string; +} + // @public export interface InformationProtectionKeyword { canBeNumeric?: boolean; @@ -1759,8 +1761,8 @@ export interface InformationProtectionKeyword { // @public export interface InformationProtectionPolicies { - createOrUpdate(scope: string, informationProtectionPolicyName: Enum17, informationProtectionPolicy: InformationProtectionPolicy, options?: InformationProtectionPoliciesCreateOrUpdateOptionalParams): Promise; - get(scope: string, informationProtectionPolicyName: Enum17, options?: InformationProtectionPoliciesGetOptionalParams): Promise; + createOrUpdate(scope: string, informationProtectionPolicyName: InformationProtectionPolicyName, informationProtectionPolicy: InformationProtectionPolicy, options?: InformationProtectionPoliciesCreateOrUpdateOptionalParams): Promise; + get(scope: string, informationProtectionPolicyName: InformationProtectionPolicyName, options?: InformationProtectionPoliciesGetOptionalParams): Promise; list(scope: string, options?: InformationProtectionPoliciesListOptionalParams): PagedAsyncIterableIterator; } @@ -1810,6 +1812,9 @@ export interface InformationProtectionPolicyList { value?: InformationProtectionPolicy[]; } +// @public +export type InformationProtectionPolicyName = string; + // @public export interface InformationType { custom?: boolean; @@ -2608,40 +2613,6 @@ export enum KnownEnforcementSupport { Unknown = "Unknown" } -// @public -export enum KnownEnum15 { - // (undocumented) - Activate = "Activate", - // (undocumented) - Close = "Close", - // (undocumented) - Dismiss = "Dismiss", - // (undocumented) - Resolve = "Resolve", - // (undocumented) - Start = "Start" -} - -// @public -export enum KnownEnum17 { - // (undocumented) - Custom = "custom", - // (undocumented) - Effective = "effective" -} - -// @public -export enum KnownEnum73 { - // (undocumented) - Mcas = "MCAS", - // (undocumented) - Sentinel = "Sentinel", - // (undocumented) - Wdatp = "WDATP", - // (undocumented) - WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW" -} - // @public export enum KnownEventSource { // (undocumented) @@ -2727,6 +2698,14 @@ export enum KnownImplementationEffort { Moderate = "Moderate" } +// @public +export enum KnownInformationProtectionPolicyName { + // (undocumented) + Custom = "custom", + // (undocumented) + Effective = "effective" +} + // @public export enum KnownIntent { Collection = "Collection", @@ -2759,7 +2738,9 @@ export enum KnownOfferingType { // (undocumented) DefenderForContainersAws = "DefenderForContainersAws", // (undocumented) - DefenderForServersAws = "DefenderForServersAws" + DefenderForServersAws = "DefenderForServersAws", + // (undocumented) + InformationProtectionAws = "InformationProtectionAws" } // @public @@ -2989,6 +2970,18 @@ export enum KnownSettingKind { DataExportSettings = "DataExportSettings" } +// @public +export enum KnownSettingName { + // (undocumented) + Mcas = "MCAS", + // (undocumented) + Sentinel = "Sentinel", + // (undocumented) + Wdatp = "WDATP", + // (undocumented) + WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW" +} + // @public export enum KnownSeverity { // (undocumented) @@ -3066,7 +3059,9 @@ export enum KnownSubAssessmentStatusCode { // @public export enum KnownSupportedCloudEnum { // (undocumented) - AWS = "AWS" + AWS = "AWS", + // (undocumented) + GCP = "GCP" } // @public @@ -3101,6 +3096,20 @@ export enum KnownTactics { ResourceDevelopment = "Resource Development" } +// @public +export enum KnownTaskUpdateActionType { + // (undocumented) + Activate = "Activate", + // (undocumented) + Close = "Close", + // (undocumented) + Dismiss = "Dismiss", + // (undocumented) + Resolve = "Resolve", + // (undocumented) + Start = "Start" +} + // @public export enum KnownTechniques { // (undocumented) @@ -4730,11 +4739,14 @@ export type Setting = Resource & { // @public export type SettingKind = string; +// @public +export type SettingName = string; + // @public export interface Settings { - get(settingName: Enum73, options?: SettingsGetOptionalParams): Promise; + get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise; list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator; - update(settingName: Enum73, setting: SettingUnion, options?: SettingsUpdateOptionalParams): Promise; + update(settingName: SettingName, setting: SettingUnion, options?: SettingsUpdateOptionalParams): Promise; } // @public @@ -5042,8 +5054,8 @@ export interface Tasks { list(options?: TasksListOptionalParams): PagedAsyncIterableIterator; listByHomeRegion(options?: TasksListByHomeRegionOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: TasksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - updateResourceGroupLevelTaskState(resourceGroupName: string, taskName: string, taskUpdateActionType: Enum15, options?: TasksUpdateResourceGroupLevelTaskStateOptionalParams): Promise; - updateSubscriptionLevelTaskState(taskName: string, taskUpdateActionType: Enum15, options?: TasksUpdateSubscriptionLevelTaskStateOptionalParams): Promise; + updateResourceGroupLevelTaskState(resourceGroupName: string, taskName: string, taskUpdateActionType: TaskUpdateActionType, options?: TasksUpdateResourceGroupLevelTaskStateOptionalParams): Promise; + updateSubscriptionLevelTaskState(taskName: string, taskUpdateActionType: TaskUpdateActionType, options?: TasksUpdateSubscriptionLevelTaskStateOptionalParams): Promise; } // @public @@ -5116,6 +5128,9 @@ export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams extends co export interface TasksUpdateSubscriptionLevelTaskStateOptionalParams extends coreClient.OperationOptions { } +// @public +export type TaskUpdateActionType = string; + // @public export type Techniques = string; diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index 770058a2edc7..551c52c7e86b 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -42,7 +42,8 @@ export type CloudOfferingUnion = | CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering - | DefenderForServersAwsOffering; + | DefenderForServersAwsOffering + | InformationProtectionAwsOffering; export type ExternalSecuritySolutionUnion = | ExternalSecuritySolution | CefExternalSecuritySolution @@ -1742,7 +1743,8 @@ export interface CloudOffering { offeringType: | "CspmMonitorAws" | "DefenderForContainersAws" - | "DefenderForServersAWS"; + | "DefenderForServersAws" + | "InformationProtectionAws"; /** * The offering description. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1894,6 +1896,12 @@ export interface DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipa parameterNameInStore?: string; } +/** The native cloud connection configuration */ +export interface InformationProtectionAwsOfferingInformationProtection { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + /** The resource of the configuration or data needed to onboard the machine to MDE */ export type MdeOnboardingData = Resource & { /** The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ @@ -3332,13 +3340,21 @@ export type DefenderForContainersAwsOffering = CloudOffering & { /** The Defender for Servers AWS offering configurations */ export type DefenderForServersAwsOffering = CloudOffering & { /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForServersAWS"; + offeringType: "DefenderForServersAws"; /** The Defender for servers connection configuration */ defenderForServers?: DefenderForServersAwsOfferingDefenderForServers; /** The ARC autoprovisioning configuration */ arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; }; +/** The information protection for AWS offering configurations */ +export type InformationProtectionAwsOffering = CloudOffering & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "InformationProtectionAws"; + /** The native cloud connection configuration */ + informationProtection?: InformationProtectionAwsOfferingInformationProtection; +}; + /** The external security solution properties for CEF solutions */ export type CefSolutionProperties = ExternalSecuritySolutionProperties & { hostname?: string; @@ -3614,7 +3630,8 @@ export type CreatedByType = string; /** Known values of {@link SupportedCloudEnum} that the service accepts. */ export enum KnownSupportedCloudEnum { - AWS = "AWS" + AWS = "AWS", + GCP = "GCP" } /** @@ -3622,7 +3639,8 @@ export enum KnownSupportedCloudEnum { * {@link KnownSupportedCloudEnum} can be used interchangeably with SupportedCloudEnum, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AWS** + * **AWS** \ + * **GCP** */ export type SupportedCloudEnum = string; @@ -3894,8 +3912,8 @@ export enum KnownReportedSeverity { */ export type ReportedSeverity = string; -/** Known values of {@link Enum15} that the service accepts. */ -export enum KnownEnum15 { +/** Known values of {@link TaskUpdateActionType} that the service accepts. */ +export enum KnownTaskUpdateActionType { Activate = "Activate", Dismiss = "Dismiss", Start = "Start", @@ -3904,8 +3922,8 @@ export enum KnownEnum15 { } /** - * Defines values for Enum15. \ - * {@link KnownEnum15} can be used interchangeably with Enum15, + * Defines values for TaskUpdateActionType. \ + * {@link KnownTaskUpdateActionType} can be used interchangeably with TaskUpdateActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Activate** \ @@ -3914,7 +3932,7 @@ export enum KnownEnum15 { * **Resolve** \ * **Close** */ -export type Enum15 = string; +export type TaskUpdateActionType = string; /** Known values of {@link AutoProvision} that the service accepts. */ export enum KnownAutoProvision { @@ -3934,21 +3952,21 @@ export enum KnownAutoProvision { */ export type AutoProvision = string; -/** Known values of {@link Enum17} that the service accepts. */ -export enum KnownEnum17 { +/** Known values of {@link InformationProtectionPolicyName} that the service accepts. */ +export enum KnownInformationProtectionPolicyName { Effective = "effective", Custom = "custom" } /** - * Defines values for Enum17. \ - * {@link KnownEnum17} can be used interchangeably with Enum17, + * Defines values for InformationProtectionPolicyName. \ + * {@link KnownInformationProtectionPolicyName} can be used interchangeably with InformationProtectionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **effective** \ * **custom** */ -export type Enum17 = string; +export type InformationProtectionPolicyName = string; /** Known values of {@link AlertNotifications} that the service accepts. */ export enum KnownAlertNotifications { @@ -5343,8 +5361,8 @@ export enum KnownSettingKind { */ export type SettingKind = string; -/** Known values of {@link Enum73} that the service accepts. */ -export enum KnownEnum73 { +/** Known values of {@link SettingName} that the service accepts. */ +export enum KnownSettingName { Mcas = "MCAS", Wdatp = "WDATP", WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW", @@ -5352,8 +5370,8 @@ export enum KnownEnum73 { } /** - * Defines values for Enum73. \ - * {@link KnownEnum73} can be used interchangeably with Enum73, + * Defines values for SettingName. \ + * {@link KnownSettingName} can be used interchangeably with SettingName, * this enum contains the known values that the service supports. * ### Known values supported by the service * **MCAS** \ @@ -5361,7 +5379,7 @@ export enum KnownEnum73 { * **WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW** \ * **Sentinel** */ -export type Enum73 = string; +export type SettingName = string; /** Known values of {@link EndOfSupportStatus} that the service accepts. */ export enum KnownEndOfSupportStatus { @@ -5407,7 +5425,8 @@ export type CloudName = string; export enum KnownOfferingType { CspmMonitorAws = "CspmMonitorAws", DefenderForContainersAws = "DefenderForContainersAws", - DefenderForServersAws = "DefenderForServersAws" + DefenderForServersAws = "DefenderForServersAws", + InformationProtectionAws = "InformationProtectionAws" } /** @@ -5417,7 +5436,8 @@ export enum KnownOfferingType { * ### Known values supported by the service * **CspmMonitorAws** \ * **DefenderForContainersAws** \ - * **DefenderForServersAws** + * **DefenderForServersAws** \ + * **InformationProtectionAws** */ export type OfferingType = string; diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 320b08d4c50f..ee8378a4892a 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -4718,6 +4718,21 @@ export const DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSec } }; +export const InformationProtectionAwsOfferingInformationProtection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InformationProtectionAwsOfferingInformationProtection", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String" + } + } + } + } +}; + export const MdeOnboardingData: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8028,7 +8043,7 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { }; export const DefenderForServersAwsOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForServersAWS", + serializedName: "DefenderForServersAws", type: { name: "Composite", className: "DefenderForServersAwsOffering", @@ -8054,6 +8069,26 @@ export const DefenderForServersAwsOffering: coreClient.CompositeMapper = { } }; +export const InformationProtectionAwsOffering: coreClient.CompositeMapper = { + serializedName: "InformationProtectionAws", + type: { + name: "Composite", + className: "InformationProtectionAwsOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + informationProtection: { + serializedName: "informationProtection", + type: { + name: "Composite", + className: "InformationProtectionAwsOfferingInformationProtection" + } + } + } + } +}; + export const CefSolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8708,7 +8743,8 @@ export let discriminators = { "AlertSimulatorRequestProperties.Bundles": AlertSimulatorBundlesRequestProperties, "CloudOffering.CspmMonitorAws": CspmMonitorAwsOffering, "CloudOffering.DefenderForContainersAws": DefenderForContainersAwsOffering, - "CloudOffering.DefenderForServersAWS": DefenderForServersAwsOffering, + "CloudOffering.DefenderForServersAws": DefenderForServersAwsOffering, + "CloudOffering.InformationProtectionAws": InformationProtectionAwsOffering, "Resource.CEF": CefExternalSecuritySolution, "Resource.ATA": AtaExternalSecuritySolution, "Resource.AAD": AadExternalSecuritySolution, diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index 19b1bb26b889..fb81b2d13521 100644 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts @@ -16,7 +16,7 @@ import { InformationProtectionPolicy, InformationProtectionPoliciesListNextOptionalParams, InformationProtectionPoliciesListOptionalParams, - Enum17, + InformationProtectionPolicyName, InformationProtectionPoliciesGetOptionalParams, InformationProtectionPoliciesGetResponse, InformationProtectionPoliciesCreateOrUpdateOptionalParams, @@ -97,7 +97,7 @@ export class InformationProtectionPoliciesImpl */ get( scope: string, - informationProtectionPolicyName: Enum17, + informationProtectionPolicyName: InformationProtectionPolicyName, options?: InformationProtectionPoliciesGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -117,7 +117,7 @@ export class InformationProtectionPoliciesImpl */ createOrUpdate( scope: string, - informationProtectionPolicyName: Enum17, + informationProtectionPolicyName: InformationProtectionPolicyName, informationProtectionPolicy: InformationProtectionPolicy, options?: InformationProtectionPoliciesCreateOrUpdateOptionalParams ): Promise { diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index b3cea97bcbee..710b095ffea5 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -17,7 +17,7 @@ import { SettingsListNextOptionalParams, SettingsListOptionalParams, SettingsListResponse, - Enum73, + SettingName, SettingsGetOptionalParams, SettingsGetResponse, SettingsUpdateOptionalParams, @@ -96,7 +96,7 @@ export class SettingsImpl implements Settings { * @param options The options parameters. */ get( - settingName: Enum73, + settingName: SettingName, options?: SettingsGetOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -112,7 +112,7 @@ export class SettingsImpl implements Settings { * @param options The options parameters. */ update( - settingName: Enum73, + settingName: SettingName, setting: SettingUnion, options?: SettingsUpdateOptionalParams ): Promise { diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts index 3840af9f36a0..ffa8d578c315 100644 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ b/sdk/security/arm-security/src/operations/tasks.ts @@ -24,7 +24,7 @@ import { TasksListByHomeRegionResponse, TasksGetSubscriptionLevelTaskOptionalParams, TasksGetSubscriptionLevelTaskResponse, - Enum15, + TaskUpdateActionType, TasksUpdateSubscriptionLevelTaskStateOptionalParams, TasksListByResourceGroupResponse, TasksGetResourceGroupLevelTaskOptionalParams, @@ -230,7 +230,7 @@ export class TasksImpl implements Tasks { */ updateSubscriptionLevelTaskState( taskName: string, - taskUpdateActionType: Enum15, + taskUpdateActionType: TaskUpdateActionType, options?: TasksUpdateSubscriptionLevelTaskStateOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -284,7 +284,7 @@ export class TasksImpl implements Tasks { updateResourceGroupLevelTaskState( resourceGroupName: string, taskName: string, - taskUpdateActionType: Enum15, + taskUpdateActionType: TaskUpdateActionType, options?: TasksUpdateResourceGroupLevelTaskStateOptionalParams ): Promise { return this.client.sendOperationRequest( diff --git a/sdk/security/arm-security/src/operationsInterfaces/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operationsInterfaces/informationProtectionPolicies.ts index 0401adc95554..8db0b0b6ea14 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/informationProtectionPolicies.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { InformationProtectionPolicy, InformationProtectionPoliciesListOptionalParams, - Enum17, + InformationProtectionPolicyName, InformationProtectionPoliciesGetOptionalParams, InformationProtectionPoliciesGetResponse, InformationProtectionPoliciesCreateOrUpdateOptionalParams, @@ -41,7 +41,7 @@ export interface InformationProtectionPolicies { */ get( scope: string, - informationProtectionPolicyName: Enum17, + informationProtectionPolicyName: InformationProtectionPolicyName, options?: InformationProtectionPoliciesGetOptionalParams ): Promise; /** @@ -55,7 +55,7 @@ export interface InformationProtectionPolicies { */ createOrUpdate( scope: string, - informationProtectionPolicyName: Enum17, + informationProtectionPolicyName: InformationProtectionPolicyName, informationProtectionPolicy: InformationProtectionPolicy, options?: InformationProtectionPoliciesCreateOrUpdateOptionalParams ): Promise; diff --git a/sdk/security/arm-security/src/operationsInterfaces/settings.ts b/sdk/security/arm-security/src/operationsInterfaces/settings.ts index 58688f27abfa..28c3ca38bfce 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/settings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/settings.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SettingUnion, SettingsListOptionalParams, - Enum73, + SettingName, SettingsGetOptionalParams, SettingsGetResponse, SettingsUpdateOptionalParams, @@ -33,7 +33,7 @@ export interface Settings { * @param options The options parameters. */ get( - settingName: Enum73, + settingName: SettingName, options?: SettingsGetOptionalParams ): Promise; /** @@ -43,7 +43,7 @@ export interface Settings { * @param options The options parameters. */ update( - settingName: Enum73, + settingName: SettingName, setting: SettingUnion, options?: SettingsUpdateOptionalParams ): Promise; diff --git a/sdk/security/arm-security/src/operationsInterfaces/tasks.ts b/sdk/security/arm-security/src/operationsInterfaces/tasks.ts index 095156a1c971..4ea197042aa5 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/tasks.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/tasks.ts @@ -14,7 +14,7 @@ import { TasksListByResourceGroupOptionalParams, TasksGetSubscriptionLevelTaskOptionalParams, TasksGetSubscriptionLevelTaskResponse, - Enum15, + TaskUpdateActionType, TasksUpdateSubscriptionLevelTaskStateOptionalParams, TasksGetResourceGroupLevelTaskOptionalParams, TasksGetResourceGroupLevelTaskResponse, @@ -65,7 +65,7 @@ export interface Tasks { */ updateSubscriptionLevelTaskState( taskName: string, - taskUpdateActionType: Enum15, + taskUpdateActionType: TaskUpdateActionType, options?: TasksUpdateSubscriptionLevelTaskStateOptionalParams ): Promise; /** @@ -91,7 +91,7 @@ export interface Tasks { updateResourceGroupLevelTaskState( resourceGroupName: string, taskName: string, - taskUpdateActionType: Enum15, + taskUpdateActionType: TaskUpdateActionType, options?: TasksUpdateResourceGroupLevelTaskStateOptionalParams ): Promise; } diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 43425ff4cc8b..2eb104b48810 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -150,7 +150,7 @@ export class SecurityCenter extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-security/4.0.0`; + const packageDetails = `azsdk-js-arm-security/5.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file