Skip to content

Commit

Permalink
CodeGen from PR 16990 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 46829f540e1c2da2656d76f44e72e5b19d351b97 into 0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf
  • Loading branch information
SDKAuto committed Dec 21, 2021
1 parent 1176512 commit eda90c6
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 45 deletions.
21 changes: 10 additions & 11 deletions sdk/security/arm-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Release History

## 4.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 4.1.0-beta.1 (2021-12-21)

**Features**

- Added Interface InformationProtectionAwsOfferingInformationProtection
- Added Type Alias InformationProtectionAwsOffering
- Enum KnownOfferingType has a new value InformationProtectionAws


## 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
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": "252ecbc877f7de9e086bee808487449bd025a817",
"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.1.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].20211130.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211207.1"
"use": "@autorest/[email protected].20211130.1"
}
18 changes: 4 additions & 14 deletions sdk/security/arm-security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SecurityCenter.",
"version": "4.0.1",
"engines": {
"node": ">=12.0.0"
},
"version": "4.1.0-beta.1",
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -16,13 +14,7 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -49,9 +41,7 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down

This file was deleted.

21 changes: 17 additions & 4 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
28 changes: 23 additions & 5 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 @@ -5407,7 +5423,8 @@ export type CloudName = string;
export enum KnownOfferingType {
CspmMonitorAws = "CspmMonitorAws",
DefenderForContainersAws = "DefenderForContainersAws",
DefenderForServersAws = "DefenderForServersAws"
DefenderForServersAws = "DefenderForServersAws",
InformationProtectionAws = "InformationProtectionAws"
}

/**
Expand All @@ -5417,7 +5434,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
2 changes: 1 addition & 1 deletion sdk/security/arm-security/src/securityCenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/4.1.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down

0 comments on commit eda90c6

Please sign in to comment.