Skip to content
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
54 changes: 28 additions & 26 deletions common/config/rush/pnpm-lock.yaml

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

17 changes: 9 additions & 8 deletions sdk/network/arm-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Release History

## 31.0.0 (2023-03-20)

**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**
Expand Down
4 changes: 2 additions & 2 deletions sdk/network/arm-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "f6d16956a7d5b75e125a88d81d7bc9b6fecfd41a",
"commit": "a1860827fdbb96f07905eac9d599ac243f21f04f",
"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.9",
"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"
Expand Down
16 changes: 4 additions & 12 deletions sdk/network/arm-network/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 NetworkManagementClient.",
"version": "30.2.1",
"version": "31.0.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
Expand Down Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion sdk/network/arm-network/review/arm-network.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
2 changes: 1 addition & 1 deletion sdk/network/arm-network/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
4 changes: 2 additions & 2 deletions sdk/network/arm-network/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17810,8 +17810,8 @@ export const Subnet: coreClient.CompositeMapper = {
name: "String"
}
},
applicationGatewayIpConfigurations: {
serializedName: "properties.applicationGatewayIpConfigurations",
applicationGatewayIPConfigurations: {
serializedName: "properties.applicationGatewayIPConfigurations",
type: {
name: "Sequence",
element: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/network/arm-network/src/networkManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
43 changes: 43 additions & 0 deletions sdk/network/arm-network/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!");
});
});
Loading