Skip to content
Draft
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: 8 additions & 9 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions sdk/security/arm-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Release History

## 4.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 4.1.0-beta.1 (2022-02-21)
**Features**

- Added Interface InformationProtectionAwsOfferingInformationProtection
- Added Type Alias InformationProtectionAwsOffering
- Enum KnownOfferingType has a new value InformationProtectionAws
- Enum KnownSupportedCloudEnum has a new value GCP
## 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.
Expand Down
2 changes: 1 addition & 1 deletion sdk/security/arm-security/LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/security/arm-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sdk/security/arm-security/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff",
"commit": "022faba0e571338920201cfdbdf4d7e9ce4c395d",
"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/[email protected].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/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211207.1"
"use": "@autorest/[email protected].20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/security/arm-security/api-extractor.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
8 changes: 4 additions & 4 deletions sdk/security/arm-security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -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",
Expand Down Expand Up @@ -99,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
25 changes: 20 additions & 5 deletions sdk/security/arm-security/review/arm-security.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 & {
Expand Down Expand Up @@ -1420,7 +1420,7 @@ export interface DefenderForContainersAwsOfferingKubernetesService {

// @public
export type DefenderForServersAwsOffering = CloudOffering & {
offeringType: "DefenderForServersAWS";
offeringType: "DefenderForServersAws";
defenderForServers?: DefenderForServersAwsOfferingDefenderForServers;
arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning;
};
Expand Down Expand Up @@ -1749,6 +1749,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;
Expand Down Expand Up @@ -2759,7 +2770,9 @@ export enum KnownOfferingType {
// (undocumented)
DefenderForContainersAws = "DefenderForContainersAws",
// (undocumented)
DefenderForServersAws = "DefenderForServersAws"
DefenderForServersAws = "DefenderForServersAws",
// (undocumented)
InformationProtectionAws = "InformationProtectionAws"
}

// @public
Expand Down Expand Up @@ -3066,7 +3079,9 @@ export enum KnownSubAssessmentStatusCode {
// @public
export enum KnownSupportedCloudEnum {
// (undocumented)
AWS = "AWS"
AWS = "AWS",
// (undocumented)
GCP = "GCP"
}

// @public
Expand Down
34 changes: 27 additions & 7 deletions sdk/security/arm-security/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export type CloudOfferingUnion =
| CloudOffering
| CspmMonitorAwsOffering
| DefenderForContainersAwsOffering
| DefenderForServersAwsOffering;
| DefenderForServersAwsOffering
| InformationProtectionAwsOffering;
export type ExternalSecuritySolutionUnion =
| ExternalSecuritySolution
| CefExternalSecuritySolution
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -3614,15 +3630,17 @@ export type CreatedByType = string;

/** Known values of {@link SupportedCloudEnum} that the service accepts. */
export enum KnownSupportedCloudEnum {
AWS = "AWS"
AWS = "AWS",
GCP = "GCP"
}

/**
* Defines values for SupportedCloudEnum. \
* {@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;

Expand Down Expand Up @@ -5407,7 +5425,8 @@ export type CloudName = string;
export enum KnownOfferingType {
CspmMonitorAws = "CspmMonitorAws",
DefenderForContainersAws = "DefenderForContainersAws",
DefenderForServersAws = "DefenderForServersAws"
DefenderForServersAws = "DefenderForServersAws",
InformationProtectionAws = "InformationProtectionAws"
}

/**
Expand All @@ -5417,7 +5436,8 @@ export enum KnownOfferingType {
* ### Known values supported by the service
* **CspmMonitorAws** \
* **DefenderForContainersAws** \
* **DefenderForServersAws**
* **DefenderForServersAws** \
* **InformationProtectionAws**
*/
export type OfferingType = string;

Expand Down
40 changes: 38 additions & 2 deletions sdk/security/arm-security/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -8028,7 +8043,7 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = {
};

export const DefenderForServersAwsOffering: coreClient.CompositeMapper = {
serializedName: "DefenderForServersAWS",
serializedName: "DefenderForServersAws",
type: {
name: "Composite",
className: "DefenderForServersAwsOffering",
Expand All @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
Loading