Skip to content
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

[mgmt] servicenetworking release #32481

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
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
265 changes: 249 additions & 16 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

49 changes: 40 additions & 9 deletions sdk/servicenetworking/arm-servicenetworking/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
# Release History

## 1.1.0-beta.2 (Unreleased)

## 1.1.0 (2025-01-09)
### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation group SecurityPoliciesInterface
- Added Interface SecurityPoliciesInterfaceCreateOrUpdateHeaders
- Added Interface SecurityPoliciesInterfaceCreateOrUpdateOptionalParams
- Added Interface SecurityPoliciesInterfaceDeleteHeaders
- Added Interface SecurityPoliciesInterfaceDeleteOptionalParams
- Added Interface SecurityPoliciesInterfaceGetOptionalParams
- Added Interface SecurityPoliciesInterfaceListByTrafficControllerNextOptionalParams
- Added Interface SecurityPoliciesInterfaceListByTrafficControllerOptionalParams
- Added Interface SecurityPoliciesInterfaceUpdateOptionalParams
- Added Interface SecurityPolicy
- Added Interface SecurityPolicyConfigurations
- Added Interface SecurityPolicyConfigurationsUpdate
- Added Interface SecurityPolicyListResult
- Added Interface SecurityPolicyProperties
- Added Interface SecurityPolicyUpdate
- Added Interface SecurityPolicyUpdateProperties
- Added Interface TrafficControllerUpdateProperties
- Added Interface WafPolicy
- Added Interface WafPolicyUpdate
- Added Interface WafSecurityPolicy
- Added Interface WafSecurityPolicyUpdate
- Added Type Alias AssociationsInterfaceDeleteResponse
- Added Type Alias FrontendsInterfaceDeleteResponse
- Added Type Alias PolicyType
- Added Type Alias SecurityPoliciesInterfaceCreateOrUpdateResponse
- Added Type Alias SecurityPoliciesInterfaceDeleteResponse
- Added Type Alias SecurityPoliciesInterfaceGetResponse
- Added Type Alias SecurityPoliciesInterfaceListByTrafficControllerNextResponse
- Added Type Alias SecurityPoliciesInterfaceListByTrafficControllerResponse
- Added Type Alias SecurityPoliciesInterfaceUpdateResponse
- Added Type Alias TrafficControllerInterfaceDeleteResponse
- Interface TrafficControllerProperties has a new optional parameter securityPolicies
- Interface TrafficControllerProperties has a new optional parameter securityPolicyConfigurations
- Interface TrafficControllerUpdate has a new optional parameter properties
- Added Enum KnownPolicyType


## 1.1.0-beta.1 (2024-08-22)
Compared with version 1.0.0

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

Copyright (c) 2024 Microsoft
Copyright (c) 2025 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
3 changes: 1 addition & 2 deletions sdk/servicenetworking/arm-servicenetworking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Traffic Controller Provider management API.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicenetworking/arm-servicenetworking) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-servicenetworking) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-servicenetworking?view=azure-node-preview) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-servicenetworking) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure ServiceNetworkingManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand Down
8 changes: 4 additions & 4 deletions sdk/servicenetworking/arm-servicenetworking/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "ba268c5654f002bc17914e0bc157f19529f1fec1",
"commit": "10925e3dec73699b950f256576cd6983947faaa3",
"readme": "specification/servicenetworking/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\\servicenetworking\\resource-manager\\readme.md --use=@autorest/[email protected].24 --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\\servicenetworking\\resource-manager\\readme.md --use=@autorest/[email protected].31 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].11",
"use": "@autorest/[email protected].24"
"release_tool": "@azure-tools/[email protected].18",
"use": "@autorest/[email protected].31"
}
95 changes: 63 additions & 32 deletions sdk/servicenetworking/arm-servicenetworking/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 ServiceNetworkingManagementClient.",
"version": "1.1.0-beta.2",
"version": "1.1.0",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/abort-controller": "^1.0.0",
"@azure/core-auth": "^1.3.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.6.0",
"@azure/core-client": "^1.7.0",
"@azure/core-lro": "^2.5.4",
"@azure/core-paging": "^1.2.0",
"@azure/core-rest-pipeline": "^1.12.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -24,22 +24,23 @@
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
"types": "./types/arm-servicenetworking.d.ts",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@types/chai": "^4.2.8",
"@types/mocha": "^10.0.0",
"@azure/identity": "^4.2.1",
"@types/node": "^18.0.0",
"chai": "^4.2.0",
"@vitest/browser": "^2.1.8",
"@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
"mocha": "^11.0.2",
"ts-node": "^10.0.0",
"typescript": "~5.7.2"
"playwright": "^1.49.1",
"tsx": "^4.7.1",
"typescript": "~5.6.2",
"vitest": "^2.1.8"
},
"repository": {
"type": "git",
Expand All @@ -49,24 +50,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"dist-esm/**/*.js",
"dist-esm/**/*.js.map",
"dist-esm/**/*.d.ts",
"dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"dist/",
"README.md",
"LICENSE",
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types/*"
"review/",
"CHANGELOG.md"
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && npm run extract-api",
"build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
Expand All @@ -78,7 +69,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
Expand All @@ -88,7 +79,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
Expand All @@ -109,5 +100,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-servicenetworking?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
},
"dialects": [
"esm",
"commonjs"
],
"esmDialects": [
"browser",
"react-native"
],
"selfLink": false
},
"browser": "./dist/browser/index.js",
"react-native": "./dist/react-native/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
}
}
5 changes: 1 addition & 4 deletions sdk/servicenetworking/arm-servicenetworking/sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# App registration secret for AAD authentication
AZURE_CLIENT_SECRET=
AZURE_CLIENT_ID=
AZURE_TENANT_ID=
# Feel free to add your own environment variables.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import {
ServiceNetworkingManagementClient,
} from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create a Association
*
* @summary Create a Association
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationPut.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/AssociationPut.json
*/
async function putAssociation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
// Licensed under the MIT License.
import { ServiceNetworkingManagementClient } from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Delete a Association
*
* @summary Delete a Association
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationDelete.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/AssociationDelete.json
*/
async function deleteAssociation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
// Licensed under the MIT License.
import { ServiceNetworkingManagementClient } from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Get a Association
*
* @summary Get a Association
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationGet.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/AssociationGet.json
*/
async function getAssociation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
// Licensed under the MIT License.
import { ServiceNetworkingManagementClient } from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to List Association resources by TrafficController
*
* @summary List Association resources by TrafficController
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationsGet.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/AssociationsGet.json
*/
async function getAssociations() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import {
ServiceNetworkingManagementClient,
} from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Update a Association
*
* @summary Update a Association
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationPatch.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/AssociationPatch.json
*/
async function updateAssociation() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ import {
ServiceNetworkingManagementClient,
} from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Create a Frontend
*
* @summary Create a Frontend
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendPut.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/FrontendPut.json
*/
async function putFrontend() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
// Licensed under the MIT License.
import { ServiceNetworkingManagementClient } from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Delete a Frontend
*
* @summary Delete a Frontend
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendDelete.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/FrontendDelete.json
*/
async function deleteFrontend() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
// Licensed under the MIT License.
import { ServiceNetworkingManagementClient } from "@azure/arm-servicenetworking";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();
import "dotenv/config";

/**
* This sample demonstrates how to Get a Frontend
*
* @summary Get a Frontend
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendGet.json
* x-ms-original-file: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2025-01-01/examples/FrontendGet.json
*/
async function getFrontend() {
const subscriptionId =
Expand Down
Loading
Loading