Skip to content

Commit

Permalink
[mgmt] cdn release (#29201)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored Apr 15, 2024
1 parent 32d29e1 commit d6cbc82
Show file tree
Hide file tree
Showing 393 changed files with 7,814 additions and 7,769 deletions.
6 changes: 4 additions & 2 deletions common/config/rush/pnpm-lock.yaml

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

18 changes: 18 additions & 0 deletions sdk/cdn/arm-cdn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Release History

## 9.1.0 (2024-04-08)

**Features**

- Added Interface ProfileLogScrubbing
- Added Interface ProfileScrubbingRules
- Added Type Alias ProfileScrubbingState
- Added Type Alias ScrubbingRuleEntryMatchOperator
- Added Type Alias ScrubbingRuleEntryMatchVariable
- Added Type Alias ScrubbingRuleEntryState
- Interface Profile has a new optional parameter logScrubbing
- Interface ProfileUpdateParameters has a new optional parameter logScrubbing
- Added Enum KnownProfileScrubbingState
- Added Enum KnownScrubbingRuleEntryMatchOperator
- Added Enum KnownScrubbingRuleEntryMatchVariable
- Added Enum KnownScrubbingRuleEntryState


## 9.0.0 (2023-10-10)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/cdn/arm-cdn/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 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
8 changes: 4 additions & 4 deletions sdk/cdn/arm-cdn/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d",
"commit": "835b124ff8160d23823c0e770b4989ca79e7418c",
"readme": "specification/cdn/resource-manager/readme.md",
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cdn\\resource-manager\\readme.md --use=@autorest/typescript@6.0.9 --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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cdn\\resource-manager\\readme.md --use=@autorest/typescript@6.0.20 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@6.0.9"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.20"
}
16 changes: 8 additions & 8 deletions sdk/cdn/arm-cdn/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 CdnManagementClient.",
"version": "9.0.0",
"version": "9.1.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -12,8 +12,8 @@
"@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.12.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -29,22 +29,23 @@
"types": "./types/arm-cdn.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"typescript": "~5.4.5",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0",
"@types/mocha": "^10.0.0"
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -77,7 +78,6 @@
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
Expand Down
52 changes: 52 additions & 0 deletions sdk/cdn/arm-cdn/review/arm-cdn.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,12 @@ export enum KnownProfileResourceState {
PendingMigrationCommit = "PendingMigrationCommit"
}

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

// @public
export enum KnownProtocolType {
IPBased = "IPBased",
Expand Down Expand Up @@ -2515,6 +2521,24 @@ export enum KnownRuleQueryStringCachingBehavior {
UseQueryString = "UseQueryString"
}

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

// @public
export enum KnownScrubbingRuleEntryMatchVariable {
QueryStringArgNames = "QueryStringArgNames",
RequestIPAddress = "RequestIPAddress",
RequestUri = "RequestUri"
}

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

// @public
export enum KnownSecretType {
AzureFirstPartyManagedCertificate = "AzureFirstPartyManagedCertificate",
Expand Down Expand Up @@ -3482,6 +3506,7 @@ export interface Profile extends TrackedResource {
readonly frontDoorId?: string;
identity?: ManagedServiceIdentity;
readonly kind?: string;
logScrubbing?: ProfileLogScrubbing;
originResponseTimeoutSeconds?: number;
readonly provisioningState?: ProfileProvisioningState;
readonly resourceState?: ProfileResourceState;
Expand All @@ -3500,6 +3525,12 @@ export interface ProfileListResult {
readonly value?: Profile[];
}

// @public
export interface ProfileLogScrubbing {
scrubbingRules?: ProfileScrubbingRules[];
state?: ProfileScrubbingState;
}

// @public
export type ProfileProvisioningState = string;

Expand Down Expand Up @@ -3558,6 +3589,17 @@ export interface ProfilesCreateOptionalParams extends coreClient.OperationOption
// @public
export type ProfilesCreateResponse = Profile;

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

// @public
export type ProfileScrubbingState = string;

// @public
export interface ProfilesDeleteHeaders {
// (undocumented)
Expand Down Expand Up @@ -3678,6 +3720,7 @@ export type ProfilesUpdateResponse = Profile;
// @public
export interface ProfileUpdateParameters {
identity?: ManagedServiceIdentity;
logScrubbing?: ProfileLogScrubbing;
originResponseTimeoutSeconds?: number;
tags?: {
[propertyName: string]: string;
Expand Down Expand Up @@ -4309,6 +4352,15 @@ export interface RuleUpdatePropertiesParameters {
readonly ruleSetName?: string;
}

// @public
export type ScrubbingRuleEntryMatchOperator = string;

// @public
export type ScrubbingRuleEntryMatchVariable = string;

// @public
export type ScrubbingRuleEntryState = string;

// @public
export interface Secret extends ProxyResource {
readonly deploymentStatus?: DeploymentStatus;
Expand Down
8 changes: 4 additions & 4 deletions sdk/cdn/arm-cdn/samples-dev/afdCustomDomainsCreateSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Creates a new domain within the specified profile.
*
* @summary Creates a new domain within the specified profile.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDCustomDomains_Create.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Create.json
*/
async function afdCustomDomainsCreate() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -30,16 +30,16 @@ async function afdCustomDomainsCreate() {
hostName: "www.someDomain.net",
tlsSettings: {
certificateType: "ManagedCertificate",
minimumTlsVersion: "TLS12"
}
minimumTlsVersion: "TLS12",
},
};
const credential = new DefaultAzureCredential();
const client = new CdnManagementClient(credential, subscriptionId);
const result = await client.afdCustomDomains.beginCreateAndWait(
resourceGroupName,
profileName,
customDomainName,
customDomain
customDomain,
);
console.log(result);
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/cdn/arm-cdn/samples-dev/afdCustomDomainsDeleteSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
*
* @summary Deletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDCustomDomains_Delete.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Delete.json
*/
async function afdCustomDomainsDelete() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -30,7 +30,7 @@ async function afdCustomDomainsDelete() {
const result = await client.afdCustomDomains.beginDeleteAndWait(
resourceGroupName,
profileName,
customDomainName
customDomainName,
);
console.log(result);
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/cdn/arm-cdn/samples-dev/afdCustomDomainsGetSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
*
* @summary Gets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDCustomDomains_Get.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Get.json
*/
async function afdCustomDomainsGet() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -30,7 +30,7 @@ async function afdCustomDomainsGet() {
const result = await client.afdCustomDomains.get(
resourceGroupName,
profileName,
customDomainName
customDomainName,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists existing AzureFrontDoor domains.
*
* @summary Lists existing AzureFrontDoor domains.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDCustomDomains_ListByProfile.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_ListByProfile.json
*/
async function afdCustomDomainsListByProfile() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -29,7 +29,7 @@ async function afdCustomDomainsListByProfile() {
const resArray = new Array();
for await (let item of client.afdCustomDomains.listByProfile(
resourceGroupName,
profileName
profileName,
)) {
resArray.push(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Updates the domain validation token.
*
* @summary Updates the domain validation token.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDCustomDomains_RefreshValidationToken.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_RefreshValidationToken.json
*/
async function afdCustomDomainsDelete() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -27,11 +27,12 @@ async function afdCustomDomainsDelete() {
const customDomainName = "domain1";
const credential = new DefaultAzureCredential();
const client = new CdnManagementClient(credential, subscriptionId);
const result = await client.afdCustomDomains.beginRefreshValidationTokenAndWait(
resourceGroupName,
profileName,
customDomainName
);
const result =
await client.afdCustomDomains.beginRefreshValidationTokenAndWait(
resourceGroupName,
profileName,
customDomainName,
);
console.log(result);
}

Expand Down
8 changes: 4 additions & 4 deletions sdk/cdn/arm-cdn/samples-dev/afdCustomDomainsUpdateSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Updates an existing domain within a profile.
*
* @summary Updates an existing domain within a profile.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDCustomDomains_Update.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDCustomDomains_Update.json
*/
async function afdCustomDomainsUpdate() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -29,16 +29,16 @@ async function afdCustomDomainsUpdate() {
azureDnsZone: { id: "" },
tlsSettings: {
certificateType: "CustomerCertificate",
minimumTlsVersion: "TLS12"
}
minimumTlsVersion: "TLS12",
},
};
const credential = new DefaultAzureCredential();
const client = new CdnManagementClient(credential, subscriptionId);
const result = await client.afdCustomDomains.beginUpdateAndWait(
resourceGroupName,
profileName,
customDomainName,
customDomainUpdateProperties
customDomainUpdateProperties,
);
console.log(result);
}
Expand Down
6 changes: 3 additions & 3 deletions sdk/cdn/arm-cdn/samples-dev/afdEndpointsCreateSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
*
* @summary Creates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/examples/AFDEndpoints_Create.json
* x-ms-original-file: specification/cdn/resource-manager/Microsoft.Cdn/stable/2024-02-01/examples/AFDEndpoints_Create.json
*/
async function afdEndpointsCreate() {
const subscriptionId = process.env["CDN_SUBSCRIPTION_ID"] || "subid";
Expand All @@ -29,15 +29,15 @@ async function afdEndpointsCreate() {
autoGeneratedDomainNameLabelScope: "TenantReuse",
enabledState: "Enabled",
location: "global",
tags: {}
tags: {},
};
const credential = new DefaultAzureCredential();
const client = new CdnManagementClient(credential, subscriptionId);
const result = await client.afdEndpoints.beginCreateAndWait(
resourceGroupName,
profileName,
endpointName,
endpoint
endpoint,
);
console.log(result);
}
Expand Down
Loading

0 comments on commit d6cbc82

Please sign in to comment.