Skip to content

[AutoPR @azure/arm-frontdoor] [Hub Generated] Review request for Microsoft.Network to add version stable/2023-11-01 #6890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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
12 changes: 7 additions & 5 deletions common/config/rush/pnpm-lock.yaml

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

29 changes: 20 additions & 9 deletions sdk/frontdoor/arm-frontdoor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
# Release History

## 6.0.0 (2023-10-03)

**Features**

## 5.2.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface PolicySettingsLogScrubbing
- Added Interface WebApplicationFirewallScrubbingRules
- Added Type Alias ScrubbingRuleEntryMatchOperator
- Added Type Alias ScrubbingRuleEntryMatchVariable
- Added Type Alias ScrubbingRuleEntryState
- Added Type Alias WebApplicationFirewallScrubbingState
- Interface PolicySettings has a new optional parameter logScrubbing
- Added Enum KnownScrubbingRuleEntryMatchOperator
- Added Enum KnownScrubbingRuleEntryMatchVariable
- Added Enum KnownScrubbingRuleEntryState
- Added Enum KnownWebApplicationFirewallScrubbingState

### Other Changes
**Breaking Changes**

- Class FrontDoorManagementClient has a new signature


## 5.2.0 (2023-05-09)

**Features**
Expand Down Expand Up @@ -73,4 +84,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.

To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).

To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
8 changes: 4 additions & 4 deletions sdk/frontdoor/arm-frontdoor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "d5c8648e01a2a2a743c2649c9522d21f5db952ce",
"commit": "d8908192d2797418626e3890255ca421217d973b",
"readme": "specification/frontdoor/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\\frontdoor\\resource-manager\\readme.md --use=@autorest/[email protected].1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --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/frontdoor/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}
30 changes: 11 additions & 19 deletions sdk/frontdoor/arm-frontdoor/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 FrontDoorManagementClient.",
"version": "5.2.1",
"version": "6.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -38,18 +38,18 @@
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^3.3.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -84,7 +84,7 @@
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand Down Expand Up @@ -112,13 +112,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/frontdoor/arm-frontdoor",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-frontdoor?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/frontdoor/arm-frontdoor"
}
59 changes: 58 additions & 1 deletion sdk/frontdoor/arm-frontdoor/review/arm-frontdoor.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: FrontDoorManagementClientOptionalParams);
constructor(credentials: coreAuth.TokenCredential, options?: FrontDoorManagementClientOptionalParams);
// (undocumented)
endpoints: Endpoints;
// (undocumented)
Expand All @@ -368,7 +369,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
// (undocumented)
rulesEngines: RulesEngines;
// (undocumented)
subscriptionId: string;
subscriptionId?: string;
}

// @public
Expand Down Expand Up @@ -995,6 +996,29 @@ export enum KnownRuleType {
RateLimitRule = "RateLimitRule"
}

// @public
export enum KnownScrubbingRuleEntryMatchOperator {
Equals = "Equals",
EqualsAny = "EqualsAny"
}

// @public
export enum KnownScrubbingRuleEntryMatchVariable {
QueryStringArgNames = "QueryStringArgNames",
RequestBodyJsonArgNames = "RequestBodyJsonArgNames",
RequestBodyPostArgNames = "RequestBodyPostArgNames",
RequestCookieNames = "RequestCookieNames",
RequestHeaderNames = "RequestHeaderNames",
RequestIPAddress = "RequestIPAddress",
RequestUri = "RequestUri"
}

// @public
export enum KnownScrubbingRuleEntryState {
Disabled = "Disabled",
Enabled = "Enabled"
}

// @public
export enum KnownSessionAffinityEnabledState {
Disabled = "Disabled",
Expand Down Expand Up @@ -1048,6 +1072,12 @@ export enum KnownTransformType {
UrlEncode = "UrlEncode"
}

// @public
export enum KnownWebApplicationFirewallScrubbingState {
Disabled = "Disabled",
Enabled = "Enabled"
}

// @public
export interface LatencyMetric {
readonly aCLower95CI?: number;
Expand Down Expand Up @@ -1392,11 +1422,18 @@ export interface PolicySettings {
customBlockResponseBody?: string;
customBlockResponseStatusCode?: number;
enabledState?: PolicyEnabledState;
logScrubbing?: PolicySettingsLogScrubbing;
mode?: PolicyMode;
redirectUrl?: string;
requestBodyCheck?: PolicyRequestBodyCheck;
}

// @public
export interface PolicySettingsLogScrubbing {
scrubbingRules?: WebApplicationFirewallScrubbingRules[];
state?: WebApplicationFirewallScrubbingState;
}

// @public
export interface PreconfiguredEndpoint extends Resource {
backend?: string;
Expand Down Expand Up @@ -1671,6 +1708,15 @@ export interface RulesEngineUpdateParameters {
// @public
export type RuleType = string;

// @public
export type ScrubbingRuleEntryMatchOperator = string;

// @public
export type ScrubbingRuleEntryMatchVariable = string;

// @public
export type ScrubbingRuleEntryState = string;

// @public
export interface SecurityPolicyLink {
id?: string;
Expand Down Expand Up @@ -1763,6 +1809,17 @@ export interface WebApplicationFirewallPolicyList {
readonly value?: WebApplicationFirewallPolicy[];
}

// @public
export interface WebApplicationFirewallScrubbingRules {
matchVariable: ScrubbingRuleEntryMatchVariable;
selector?: string;
selectorMatchOperator: ScrubbingRuleEntryMatchOperator;
state?: ScrubbingRuleEntryState;
}

// @public
export type WebApplicationFirewallScrubbingState = string;

// (No @packageDocumentation comment for this package)

```
22 changes: 18 additions & 4 deletions sdk/frontdoor/arm-frontdoor/src/frontDoorManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { FrontDoorManagementClientOptionalParams } from "./models";

export class FrontDoorManagementClient extends coreClient.ServiceClient {
$host: string;
subscriptionId: string;
subscriptionId?: string;

/**
* Initializes a new instance of the FrontDoorManagementClient class.
Expand All @@ -54,12 +54,26 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
credentials: coreAuth.TokenCredential,
subscriptionId: string,
options?: FrontDoorManagementClientOptionalParams
);
constructor(
credentials: coreAuth.TokenCredential,
options?: FrontDoorManagementClientOptionalParams
);
constructor(
credentials: coreAuth.TokenCredential,
subscriptionIdOrOptions?: FrontDoorManagementClientOptionalParams | string,
options?: FrontDoorManagementClientOptionalParams
) {
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
}
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");

let subscriptionId: string | undefined;

if (typeof subscriptionIdOrOptions === "string") {
subscriptionId = subscriptionIdOrOptions;
} else if (typeof subscriptionIdOrOptions === "object") {
options = subscriptionIdOrOptions;
}

// Initializing default values for options
Expand All @@ -71,7 +85,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-frontdoor/5.2.1`;
const packageDetails = `azsdk-js-arm-frontdoor/6.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
Loading