From 19a9da29331f315c736315438806953c2520ca1b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 22 Mar 2023 21:59:11 +0000 Subject: [PATCH] CodeGen from PR 23228 in Azure/azure-rest-api-specs Merge 7a96ae85d394a2ee9206ee607147a14d9b82821d into 7824f04db829f016255f0042e86f7061401ca5bb --- sdk/network/arm-network/CHANGELOG.md | 17 ++++---- sdk/network/arm-network/_meta.json | 6 +-- sdk/network/arm-network/package.json | 14 ++---- .../arm-network/review/arm-network.api.md | 2 +- sdk/network/arm-network/src/models/index.ts | 2 +- sdk/network/arm-network/src/models/mappers.ts | 4 +- .../src/networkManagementClient.ts | 2 +- sdk/network/arm-network/test/sampleTest.ts | 43 +++++++++++++++++++ sdk/network/arm-network/tsconfig.json | 10 +---- 9 files changed, 65 insertions(+), 35 deletions(-) create mode 100644 sdk/network/arm-network/test/sampleTest.ts diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index 7399f245e594..1f607add93a1 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History + +## 31.0.0 (2023-03-22) + +**Features** -## 30.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Interface Subnet has a new optional parameter applicationGatewayIPConfigurations -### Other Changes +**Breaking Changes** + - Interface Subnet no longer has parameter applicationGatewayIpConfigurations + + ## 30.2.0 (2023-03-07) **Features** diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 4d0c13c6bbca..4ca72dfb7583 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f6d16956a7d5b75e125a88d81d7bc9b6fecfd41a", + "commit": "3ed9e677b537b456cbe48210e7e68b1cbb62d984", "readme": "specification/network/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\\network\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --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/network/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 0655ad3803c5..8d91816dd3cb 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "30.2.1", + "version": "31.0.0", "engines": { "node": ">=14.0.0" }, @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network" +} \ No newline at end of file diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index 75823a6ac091..8efac50975ea 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -12439,7 +12439,7 @@ export interface StaticRoutesConfig { export interface Subnet extends SubResource { addressPrefix?: string; addressPrefixes?: string[]; - applicationGatewayIpConfigurations?: ApplicationGatewayIPConfiguration[]; + applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; delegations?: Delegation[]; readonly etag?: string; ipAllocations?: SubResource[]; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index c429ce48db4d..f783c86acc2c 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -6416,7 +6416,7 @@ export interface Subnet extends SubResource { /** Enable or Disable apply network policies on private link service in the subnet. */ privateLinkServiceNetworkPolicies?: VirtualNetworkPrivateLinkServiceNetworkPolicies; /** Application gateway IP configurations of virtual network resource. */ - applicationGatewayIpConfigurations?: ApplicationGatewayIPConfiguration[]; + applicationGatewayIPConfigurations?: ApplicationGatewayIPConfiguration[]; } /** Frontend IP address of the load balancer. */ diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index d71086cd73c3..c589f17f8078 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -17810,8 +17810,8 @@ export const Subnet: coreClient.CompositeMapper = { name: "String" } }, - applicationGatewayIpConfigurations: { - serializedName: "properties.applicationGatewayIpConfigurations", + applicationGatewayIPConfigurations: { + serializedName: "properties.applicationGatewayIPConfigurations", type: { name: "Sequence", element: { diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 73bea4a77274..6d7f7a9682f4 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -363,7 +363,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/30.2.1`; + const packageDetails = `azsdk-js-arm-network/31.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/network/arm-network/test/sampleTest.ts @@ -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 = { + 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!"); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 094dfbf3dbe3..3e6ae96443f3 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-network": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"