Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions sdk/security/arm-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Release History

## 5.1.0-beta.1 (2022-05-19)

**Features**

## 5.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Enum KnownSettingName has a new value WdatpUnifiedSolution


## 5.0.0 (2022-03-30)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/security/arm-security/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "3c1da29166fe1306071c939ac1344b092bafd0ce",
"commit": "c30890a6a6e85f10b3c6dbfc16bdb619b61122a1",
"readme": "specification/security/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.1",
"use": "@autorest/[email protected].18.20220329.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/[email protected].19.20220425.1"
}
26 changes: 10 additions & 16 deletions sdk/security/arm-security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SecurityCenter.",
"version": "5.0.1",
"version": "5.1.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-client": "^1.5.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -40,9 +40,11 @@
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security",
"repository": {
Expand Down Expand Up @@ -93,7 +95,7 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
Expand All @@ -106,13 +108,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
}
}
"autoPublish": true
}
4 changes: 3 additions & 1 deletion sdk/security/arm-security/review/arm-security.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2976,7 +2976,9 @@ export enum KnownSettingName {
// (undocumented)
Wdatp = "WDATP",
// (undocumented)
WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW"
WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW",
// (undocumented)
WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION"
}

// @public
Expand Down
44 changes: 23 additions & 21 deletions sdk/security/arm-security/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ export interface SecurityAssessmentPartnerData {
secret: string;
}

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

/** 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. */
/** 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. */
export type Pricing = Resource & {
/** The pricing tier value. Azure Security Center is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */
/** 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. */
pricingTier?: PricingTier;
/** 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. */
subPlan?: string;
Expand Down Expand Up @@ -2646,7 +2646,7 @@ export type SecuritySolutionsReferenceData = Resource &
template: string;
};

/** 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. */
/** 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. */
export type ExternalSecuritySolution = Resource &
ExternalSecuritySolutionKindAutoGenerated &
Location & {};
Expand Down Expand Up @@ -3147,7 +3147,7 @@ export type ServerVulnerabilityProperties = AdditionalData & {
readonly vendorReferences?: VendorReference[];
};

/** The logic app action that should be triggered. To learn more about Security Center's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */
/** 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 */
export type AutomationActionLogicApp = AutomationAction & {
/** Polymorphic discriminator, which specifies the different types this object can be */
actionType: "LogicApp";
Expand All @@ -3157,7 +3157,7 @@ export type AutomationActionLogicApp = AutomationAction & {
uri?: string;
};

/** The target Event Hub to which event data will be exported. To learn more about Security Center continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */
/** 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 */
export type AutomationActionEventHub = AutomationAction & {
/** Polymorphic discriminator, which specifies the different types this object can be */
actionType: "EventHub";
Expand All @@ -3172,7 +3172,7 @@ export type AutomationActionEventHub = AutomationAction & {
connectionString?: string;
};

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

/** Known values of {@link PricingTier} that the service accepts. */
export enum KnownPricingTier {
/** Get free Azure security center experience with basic security features */
/** Get free Microsoft Defender for Cloud experience with basic security features */
Free = "Free",
/** Get the standard Azure security center experience with advanced security features */
/** Get the standard Microsoft Defender for Cloud experience with advanced security features */
Standard = "Standard"
}

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

Expand Down Expand Up @@ -4589,11 +4589,11 @@ export type Threats = string;

/** Known values of {@link AssessmentType} that the service accepts. */
export enum KnownAssessmentType {
/** Azure Security Center managed assessments */
/** Microsoft Defender for Cloud managed assessments */
BuiltIn = "BuiltIn",
/** User defined policies that are automatically ingested from Azure Policy to Azure Security Center */
/** User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud */
CustomPolicy = "CustomPolicy",
/** User assessments pushed directly by the user or other third party to Azure Security Center */
/** User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud */
CustomerManaged = "CustomerManaged",
/** An assessment that was created by a verified 3rd party if the user connected it to ASC */
VerifiedPartner = "VerifiedPartner"
Expand All @@ -4604,9 +4604,9 @@ export enum KnownAssessmentType {
* {@link KnownAssessmentType} can be used interchangeably with AssessmentType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **BuiltIn**: Azure Security Center managed assessments \
* **CustomPolicy**: User defined policies that are automatically ingested from Azure Policy to Azure Security Center \
* **CustomerManaged**: User assessments pushed directly by the user or other third party to Azure Security Center \
* **BuiltIn**: Microsoft Defender for Cloud managed assessments \
* **CustomPolicy**: User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud \
* **CustomerManaged**: User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud \
* **VerifiedPartner**: An assessment that was created by a verified 3rd party if the user connected it to ASC
*/
export type AssessmentType = string;
Expand Down Expand Up @@ -4971,9 +4971,9 @@ export type ExpandControlsEnum = string;

/** Known values of {@link ControlType} that the service accepts. */
export enum KnownControlType {
/** Azure Security Center managed assessments */
/** Microsoft Defender for Cloud managed assessments */
BuiltIn = "BuiltIn",
/** Non Azure Security Center managed assessments */
/** Non Microsoft Defender for Cloud managed assessments */
Custom = "Custom"
}

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

Expand Down Expand Up @@ -5368,6 +5368,7 @@ export enum KnownSettingName {
Mcas = "MCAS",
Wdatp = "WDATP",
WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW",
WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION",
Sentinel = "Sentinel"
}

Expand All @@ -5379,6 +5380,7 @@ export enum KnownSettingName {
* **MCAS** \
* **WDATP** \
* **WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW** \
* **WDATP_UNIFIED_SOLUTION** \
* **Sentinel**
*/
export type SettingName = string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/security/arm-security/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ export const alertSimulatorRequestBody: OperationParameter = {
export const apiVersion14: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2021-07-01",
defaultValue: "2022-05-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
6 changes: 3 additions & 3 deletions sdk/security/arm-security/src/operations/pricings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export class PricingsImpl implements Pricings {
}

/**
* Lists Security Center pricing configurations in the subscription.
* Lists Microsoft Defender for Cloud pricing configurations in the subscription.
* @param options The options parameters.
*/
list(options?: PricingsListOptionalParams): Promise<PricingsListResponse> {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}

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

/**
* Updates a provided Security Center pricing configuration in the subscription.
* Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
* @param pricingName name of the pricing configuration
* @param pricing Pricing object
* @param options The options parameters.
Expand Down
8 changes: 4 additions & 4 deletions sdk/security/arm-security/src/operations/secureScores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class SecureScoresImpl implements SecureScores {
}

/**
* List secure scores for all your Security Center initiatives within your current scope.
* List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope.
* @param options The options parameters.
*/
public list(
Expand Down Expand Up @@ -78,7 +78,7 @@ export class SecureScoresImpl implements SecureScores {
}

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

/**
* Get secure score for a specific Security Center initiative within your current scope. For the ASC
* Default initiative, use 'ascScore'.
* Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope.
* For the ASC Default initiative, use 'ascScore'.
* @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the
* sample request below.
* @param options The options parameters.
Expand Down
8 changes: 4 additions & 4 deletions sdk/security/arm-security/src/operations/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class SettingsImpl implements Settings {
}

/**
* Settings about different configurations in security center
* Settings about different configurations in Microsoft Defender for Cloud
* @param options The options parameters.
*/
public list(
Expand Down Expand Up @@ -81,7 +81,7 @@ export class SettingsImpl implements Settings {
}

/**
* Settings about different configurations in security center
* Settings about different configurations in Microsoft Defender for Cloud
* @param options The options parameters.
*/
private _list(
Expand All @@ -91,7 +91,7 @@ export class SettingsImpl implements Settings {
}

/**
* Settings of different configurations in security center
* Settings of different configurations in Microsoft Defender for Cloud
* @param settingName The name of the setting
* @param options The options parameters.
*/
Expand All @@ -106,7 +106,7 @@ export class SettingsImpl implements Settings {
}

/**
* updating settings about different configurations in security center
* updating settings about different configurations in Microsoft Defender for Cloud
* @param settingName The name of the setting
* @param setting Setting object
* @param options The options parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import {
/** Interface representing a Pricings. */
export interface Pricings {
/**
* Lists Security Center pricing configurations in the subscription.
* Lists Microsoft Defender for Cloud pricing configurations in the subscription.
* @param options The options parameters.
*/
list(options?: PricingsListOptionalParams): Promise<PricingsListResponse>;
/**
* Gets a provided Security Center pricing configuration in the subscription.
* Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
* @param pricingName name of the pricing configuration
* @param options The options parameters.
*/
Expand All @@ -33,7 +33,7 @@ export interface Pricings {
options?: PricingsGetOptionalParams
): Promise<PricingsGetResponse>;
/**
* Updates a provided Security Center pricing configuration in the subscription.
* Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
* @param pricingName name of the pricing configuration
* @param pricing Pricing object
* @param options The options parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import {
/** Interface representing a SecureScores. */
export interface SecureScores {
/**
* List secure scores for all your Security Center initiatives within your current scope.
* List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope.
* @param options The options parameters.
*/
list(
options?: SecureScoresListOptionalParams
): PagedAsyncIterableIterator<SecureScoreItem>;
/**
* Get secure score for a specific Security Center initiative within your current scope. For the ASC
* Default initiative, use 'ascScore'.
* Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope.
* For the ASC Default initiative, use 'ascScore'.
* @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the
* sample request below.
* @param options The options parameters.
Expand Down
Loading