Skip to content

Commit

Permalink
CodeGen from PR 23227 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d689dca87643f365a38d89d487a26d4c61727b1c into 09119c0cca116b1d8b69552bb63d697628f0e5f6
  • Loading branch information
SDKAuto committed Mar 23, 2023
1 parent de692a6 commit 39c9289
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 38 deletions.
26 changes: 8 additions & 18 deletions sdk/security/arm-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Release History

## 6.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 6.0.0-beta.3 (2023-03-21)

## 6.0.0-beta.4 (2023-03-23)

**Features**

Expand Down Expand Up @@ -332,6 +322,12 @@
- Enum KnownOfferingType has a new value DefenderForServersGcp
- Enum KnownSettingName has a new value WdatpUnifiedSolution
- Added function getContinuationToken

**Breaking Changes**

- Removed operation Alerts.simulate
- Removed operation SecurityContacts.update
- Operation AllowedConnections.get has a new signature
- Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType
- Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata
- Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter
Expand All @@ -346,12 +342,6 @@
- Interface TasksListByHomeRegionNextOptionalParams no longer has parameter filter
- Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter
- Interface TasksListNextOptionalParams no longer has parameter filter

**Breaking Changes**

- Removed operation Alerts.simulate
- Removed operation SecurityContacts.update
- Operation AllowedConnections.get has a new signature
- Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[]
- Removed Enum KnownAlertNotifications
- Removed Enum KnownAlertsToAdmins
Expand Down
4 changes: 2 additions & 2 deletions sdk/security/arm-security/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "ddcde53422ff186f5b69fb32338ecac3d11c3bca",
"commit": "6edacca014a78c73ea02977bfd5a7b3055ce223e",
"readme": "specification/security/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\security\\resource-manager\\readme.md --use=@autorest/[email protected] --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --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]",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected]"
Expand Down
12 changes: 2 additions & 10 deletions sdk/security/arm-security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security"
}
43 changes: 43 additions & 0 deletions sdk/security/arm-security/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
10 changes: 2 additions & 8 deletions sdk/security/arm-security/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-security": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 39c9289

Please sign in to comment.