Skip to content

Commit f260f85

Browse files
author
SDKAuto
committed
CodeGen from PR 19112 in Azure/azure-rest-api-specs
Merge c6725bc17563244e3aa352aa278497453a9cbc8f into 61001b68a8aa743f0dd890224c6b5cb130ef006e
1 parent f6572b7 commit f260f85

File tree

15 files changed

+112
-104
lines changed

15 files changed

+112
-104
lines changed

sdk/security/arm-security/CHANGELOG.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Release History
2+
3+
## 5.1.0-beta.1 (2022-05-19)
4+
5+
**Features**
26

3-
## 5.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Enum KnownSettingName has a new value WdatpUnifiedSolution
8+
9+
1310
## 5.0.0 (2022-03-30)
1411

1512
**Features**
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "3c1da29166fe1306071c939ac1344b092bafd0ce",
2+
"commit": "c30890a6a6e85f10b3c6dbfc16bdb619b61122a1",
33
"readme": "specification/security/resource-manager/readme.md",
4-
"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=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\security\\resource-manager\\readme.md --use=@autorest/[email protected].18.20220329.1 --generate-sample=true",
4+
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/[email protected].19.20220425.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.1",
7-
"use": "@autorest/[email protected].18.20220329.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
7+
"use": "@autorest/[email protected].19.20220425.1"
88
}

sdk/security/arm-security/package.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for SecurityCenter.",
6-
"version": "5.0.1",
6+
"version": "5.1.0-beta.1",
77
"engines": {
88
"node": ">=12.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-lro": "^2.2.0",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.0.0",
14+
"@azure/core-client": "^1.5.0",
1515
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.1.0",
16+
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -40,9 +40,11 @@
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
43-
"@azure-tools/test-recorder": "^1.0.0",
43+
"@azure-tools/test-recorder": "^2.0.0",
44+
"@azure-tools/test-credential": "^1.0.0",
4445
"mocha": "^7.1.1",
45-
"cross-env": "^7.0.2"
46+
"cross-env": "^7.0.2",
47+
"@azure/dev-tool": "^1.0.0"
4648
},
4749
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security",
4850
"repository": {
@@ -93,7 +95,7 @@
9395
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
9496
"unit-test:browser": "echo skipped",
9597
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
96-
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
98+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
9799
"integration-test:browser": "echo skipped",
98100
"docs": "echo skipped"
99101
},
@@ -106,13 +108,5 @@
106108
}
107109
]
108110
},
109-
"autoPublish": true,
110-
"//sampleConfiguration": {
111-
"productName": "",
112-
"productSlugs": [
113-
"azure"
114-
],
115-
"disableDocsMs": true,
116-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
117-
}
118-
}
111+
"autoPublish": true
112+
}

sdk/security/arm-security/review/arm-security.api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2976,7 +2976,9 @@ export enum KnownSettingName {
29762976
// (undocumented)
29772977
Wdatp = "WDATP",
29782978
// (undocumented)
2979-
WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW"
2979+
WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW",
2980+
// (undocumented)
2981+
WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION"
29802982
}
29812983

29822984
// @public

sdk/security/arm-security/src/models/index.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ export interface SecurityAssessmentPartnerData {
971971
secret: string;
972972
}
973973

974-
/** Represents a list of machine groups and set of rules that are recommended by Azure Security Center to be allowed */
974+
/** Represents a list of VM/server groups and set of rules that are Recommended by Microsoft Defender for Cloud to be allowed */
975975
export interface AdaptiveApplicationControlGroups {
976976
value?: AdaptiveApplicationControlGroup[];
977977
}
@@ -1971,9 +1971,9 @@ export type ComplianceResult = Resource & {
19711971
readonly resourceStatus?: ResourceStatus;
19721972
};
19731973

1974-
/** Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */
1974+
/** Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */
19751975
export type Pricing = Resource & {
1976-
/** The pricing tier value. Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */
1976+
/** The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */
19771977
pricingTier?: PricingTier;
19781978
/** The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. */
19791979
subPlan?: string;
@@ -2646,7 +2646,7 @@ export type SecuritySolutionsReferenceData = Resource &
26462646
template: string;
26472647
};
26482648

2649-
/** Represents a security solution external to Azure Security Center which sends information to an OMS workspace and whose data is displayed by Azure Security Center. */
2649+
/** Represents a security solution external to Microsoft Defender for Cloud which sends information to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud. */
26502650
export type ExternalSecuritySolution = Resource &
26512651
ExternalSecuritySolutionKindAutoGenerated &
26522652
Location & {};
@@ -3147,7 +3147,7 @@ export type ServerVulnerabilityProperties = AdditionalData & {
31473147
readonly vendorReferences?: VendorReference[];
31483148
};
31493149

3150-
/** The logic app action that should be triggered. To learn more about Security Center's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */
3150+
/** The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */
31513151
export type AutomationActionLogicApp = AutomationAction & {
31523152
/** Polymorphic discriminator, which specifies the different types this object can be */
31533153
actionType: "LogicApp";
@@ -3157,7 +3157,7 @@ export type AutomationActionLogicApp = AutomationAction & {
31573157
uri?: string;
31583158
};
31593159

3160-
/** The target Event Hub to which event data will be exported. To learn more about Security Center continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */
3160+
/** The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */
31613161
export type AutomationActionEventHub = AutomationAction & {
31623162
/** Polymorphic discriminator, which specifies the different types this object can be */
31633163
actionType: "EventHub";
@@ -3172,7 +3172,7 @@ export type AutomationActionEventHub = AutomationAction & {
31723172
connectionString?: string;
31733173
};
31743174

3175-
/** The Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Security Center continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */
3175+
/** The Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */
31763176
export type AutomationActionWorkspace = AutomationAction & {
31773177
/** Polymorphic discriminator, which specifies the different types this object can be */
31783178
actionType: "Workspace";
@@ -3690,9 +3690,9 @@ export type ResourceStatus = string;
36903690

36913691
/** Known values of {@link PricingTier} that the service accepts. */
36923692
export enum KnownPricingTier {
3693-
/** Get free Azure security center experience with basic security features */
3693+
/** Get free Microsoft Defender for Cloud experience with basic security features */
36943694
Free = "Free",
3695-
/** Get the standard Azure security center experience with advanced security features */
3695+
/** Get the standard Microsoft Defender for Cloud experience with advanced security features */
36963696
Standard = "Standard"
36973697
}
36983698

@@ -3701,8 +3701,8 @@ export enum KnownPricingTier {
37013701
* {@link KnownPricingTier} can be used interchangeably with PricingTier,
37023702
* this enum contains the known values that the service supports.
37033703
* ### Known values supported by the service
3704-
* **Free**: Get free Azure security center experience with basic security features \
3705-
* **Standard**: Get the standard Azure security center experience with advanced security features
3704+
* **Free**: Get free Microsoft Defender for Cloud experience with basic security features \
3705+
* **Standard**: Get the standard Microsoft Defender for Cloud experience with advanced security features
37063706
*/
37073707
export type PricingTier = string;
37083708

@@ -4589,11 +4589,11 @@ export type Threats = string;
45894589

45904590
/** Known values of {@link AssessmentType} that the service accepts. */
45914591
export enum KnownAssessmentType {
4592-
/** Azure Security Center managed assessments */
4592+
/** Microsoft Defender for Cloud managed assessments */
45934593
BuiltIn = "BuiltIn",
4594-
/** User defined policies that are automatically ingested from Azure Policy to Azure Security Center */
4594+
/** User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud */
45954595
CustomPolicy = "CustomPolicy",
4596-
/** User assessments pushed directly by the user or other third party to Azure Security Center */
4596+
/** User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud */
45974597
CustomerManaged = "CustomerManaged",
45984598
/** An assessment that was created by a verified 3rd party if the user connected it to ASC */
45994599
VerifiedPartner = "VerifiedPartner"
@@ -4604,9 +4604,9 @@ export enum KnownAssessmentType {
46044604
* {@link KnownAssessmentType} can be used interchangeably with AssessmentType,
46054605
* this enum contains the known values that the service supports.
46064606
* ### Known values supported by the service
4607-
* **BuiltIn**: Azure Security Center managed assessments \
4608-
* **CustomPolicy**: User defined policies that are automatically ingested from Azure Policy to Azure Security Center \
4609-
* **CustomerManaged**: User assessments pushed directly by the user or other third party to Azure Security Center \
4607+
* **BuiltIn**: Microsoft Defender for Cloud managed assessments \
4608+
* **CustomPolicy**: User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud \
4609+
* **CustomerManaged**: User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud \
46104610
* **VerifiedPartner**: An assessment that was created by a verified 3rd party if the user connected it to ASC
46114611
*/
46124612
export type AssessmentType = string;
@@ -4971,9 +4971,9 @@ export type ExpandControlsEnum = string;
49714971

49724972
/** Known values of {@link ControlType} that the service accepts. */
49734973
export enum KnownControlType {
4974-
/** Azure Security Center managed assessments */
4974+
/** Microsoft Defender for Cloud managed assessments */
49754975
BuiltIn = "BuiltIn",
4976-
/** Non Azure Security Center managed assessments */
4976+
/** Non Microsoft Defender for Cloud managed assessments */
49774977
Custom = "Custom"
49784978
}
49794979

@@ -4982,8 +4982,8 @@ export enum KnownControlType {
49824982
* {@link KnownControlType} can be used interchangeably with ControlType,
49834983
* this enum contains the known values that the service supports.
49844984
* ### Known values supported by the service
4985-
* **BuiltIn**: Azure Security Center managed assessments \
4986-
* **Custom**: Non Azure Security Center managed assessments
4985+
* **BuiltIn**: Microsoft Defender for Cloud managed assessments \
4986+
* **Custom**: Non Microsoft Defender for Cloud managed assessments
49874987
*/
49884988
export type ControlType = string;
49894989

@@ -5368,6 +5368,7 @@ export enum KnownSettingName {
53685368
Mcas = "MCAS",
53695369
Wdatp = "WDATP",
53705370
WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW",
5371+
WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION",
53715372
Sentinel = "Sentinel"
53725373
}
53735374

@@ -5379,6 +5380,7 @@ export enum KnownSettingName {
53795380
* **MCAS** \
53805381
* **WDATP** \
53815382
* **WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW** \
5383+
* **WDATP_UNIFIED_SOLUTION** \
53825384
* **Sentinel**
53835385
*/
53845386
export type SettingName = string;

sdk/security/arm-security/src/models/parameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ export const alertSimulatorRequestBody: OperationParameter = {
10101010
export const apiVersion14: OperationQueryParameter = {
10111011
parameterPath: "apiVersion",
10121012
mapper: {
1013-
defaultValue: "2021-07-01",
1013+
defaultValue: "2022-05-01",
10141014
isConstant: true,
10151015
serializedName: "api-version",
10161016
type: {

sdk/security/arm-security/src/operations/pricings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ export class PricingsImpl implements Pricings {
3434
}
3535

3636
/**
37-
* Lists Security Center pricing configurations in the subscription.
37+
* Lists Microsoft Defender for Cloud pricing configurations in the subscription.
3838
* @param options The options parameters.
3939
*/
4040
list(options?: PricingsListOptionalParams): Promise<PricingsListResponse> {
4141
return this.client.sendOperationRequest({ options }, listOperationSpec);
4242
}
4343

4444
/**
45-
* Gets a provided Security Center pricing configuration in the subscription.
45+
* Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
4646
* @param pricingName name of the pricing configuration
4747
* @param options The options parameters.
4848
*/
@@ -57,7 +57,7 @@ export class PricingsImpl implements Pricings {
5757
}
5858

5959
/**
60-
* Updates a provided Security Center pricing configuration in the subscription.
60+
* Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
6161
* @param pricingName name of the pricing configuration
6262
* @param pricing Pricing object
6363
* @param options The options parameters.

sdk/security/arm-security/src/operations/secureScores.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class SecureScoresImpl implements SecureScores {
3636
}
3737

3838
/**
39-
* List secure scores for all your Security Center initiatives within your current scope.
39+
* List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope.
4040
* @param options The options parameters.
4141
*/
4242
public list(
@@ -78,7 +78,7 @@ export class SecureScoresImpl implements SecureScores {
7878
}
7979

8080
/**
81-
* List secure scores for all your Security Center initiatives within your current scope.
81+
* List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope.
8282
* @param options The options parameters.
8383
*/
8484
private _list(
@@ -88,8 +88,8 @@ export class SecureScoresImpl implements SecureScores {
8888
}
8989

9090
/**
91-
* Get secure score for a specific Security Center initiative within your current scope. For the ASC
92-
* Default initiative, use 'ascScore'.
91+
* Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope.
92+
* For the ASC Default initiative, use 'ascScore'.
9393
* @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the
9494
* sample request below.
9595
* @param options The options parameters.

sdk/security/arm-security/src/operations/settings.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class SettingsImpl implements Settings {
3939
}
4040

4141
/**
42-
* Settings about different configurations in security center
42+
* Settings about different configurations in Microsoft Defender for Cloud
4343
* @param options The options parameters.
4444
*/
4545
public list(
@@ -81,7 +81,7 @@ export class SettingsImpl implements Settings {
8181
}
8282

8383
/**
84-
* Settings about different configurations in security center
84+
* Settings about different configurations in Microsoft Defender for Cloud
8585
* @param options The options parameters.
8686
*/
8787
private _list(
@@ -91,7 +91,7 @@ export class SettingsImpl implements Settings {
9191
}
9292

9393
/**
94-
* Settings of different configurations in security center
94+
* Settings of different configurations in Microsoft Defender for Cloud
9595
* @param settingName The name of the setting
9696
* @param options The options parameters.
9797
*/
@@ -106,7 +106,7 @@ export class SettingsImpl implements Settings {
106106
}
107107

108108
/**
109-
* updating settings about different configurations in security center
109+
* updating settings about different configurations in Microsoft Defender for Cloud
110110
* @param settingName The name of the setting
111111
* @param setting Setting object
112112
* @param options The options parameters.

sdk/security/arm-security/src/operationsInterfaces/pricings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import {
1919
/** Interface representing a Pricings. */
2020
export interface Pricings {
2121
/**
22-
* Lists Security Center pricing configurations in the subscription.
22+
* Lists Microsoft Defender for Cloud pricing configurations in the subscription.
2323
* @param options The options parameters.
2424
*/
2525
list(options?: PricingsListOptionalParams): Promise<PricingsListResponse>;
2626
/**
27-
* Gets a provided Security Center pricing configuration in the subscription.
27+
* Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
2828
* @param pricingName name of the pricing configuration
2929
* @param options The options parameters.
3030
*/
@@ -33,7 +33,7 @@ export interface Pricings {
3333
options?: PricingsGetOptionalParams
3434
): Promise<PricingsGetResponse>;
3535
/**
36-
* Updates a provided Security Center pricing configuration in the subscription.
36+
* Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
3737
* @param pricingName name of the pricing configuration
3838
* @param pricing Pricing object
3939
* @param options The options parameters.

0 commit comments

Comments
 (0)