Skip to content

Commit

Permalink
CodeGen from PR 21341 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 004c022131549112797581ace4ee86544a9febba into abd5d0016f12f6862cae88ef70f1333e84e20c07
  • Loading branch information
SDKAuto committed Oct 31, 2022
1 parent 0d72600 commit 9a92b3c
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 38 deletions.
17 changes: 7 additions & 10 deletions sdk/network/arm-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Release History

## 30.1.0 (2022-10-31)

**Features**

## 30.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface NetworkWatcher has a new optional parameter runningOperationIds


## 30.0.0 (2022-09-29)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/network/arm-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Network Client

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
Expand Down
8 changes: 4 additions & 4 deletions sdk/network/arm-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "065b070773ed6fa98ede768ad602f4c4d2edf739",
"commit": "211a5b0274be48a44f2b476755f8bb560e80690c",
"readme": "specification/network/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --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/[email protected].1.20220727.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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/[email protected].2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].2",
"use": "@autorest/[email protected].1.20220727.1"
"release_tool": "@azure-tools/[email protected].4",
"use": "@autorest/[email protected].2"
}
14 changes: 3 additions & 11 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.0.1",
"version": "30.1.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -109,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview"
}
}
"autoPublish": true
}
3 changes: 2 additions & 1 deletion sdk/network/arm-network/review/arm-network.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3386,7 +3386,7 @@ export interface ErrorModel {

// @public
export interface ErrorResponse {
error?: ErrorDetails;
error?: ErrorModel;
}

// @public
Expand Down Expand Up @@ -9567,6 +9567,7 @@ export type NetworkVirtualAppliancesUpdateTagsResponse = NetworkVirtualAppliance
export interface NetworkWatcher extends Resource {
readonly etag?: string;
readonly provisioningState?: ProvisioningState;
runningOperationIds?: number[];
}

// @public
Expand Down
4 changes: 3 additions & 1 deletion sdk/network/arm-network/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2624,7 +2624,7 @@ export interface InboundSecurityRules {
/** The error object. */
export interface ErrorResponse {
/** The error details object. */
error?: ErrorDetails;
error?: ErrorModel;
}

/** Response for ListNetworkWatchers API service call. */
Expand Down Expand Up @@ -9966,6 +9966,8 @@ export interface NetworkWatcher extends Resource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/** List of running operation IDs. */
runningOperationIds?: number[];
}

/** Public IP prefix resource. */
Expand Down
13 changes: 12 additions & 1 deletion sdk/network/arm-network/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7466,7 +7466,7 @@ export const ErrorResponse: coreClient.CompositeMapper = {
serializedName: "error",
type: {
name: "Composite",
className: "ErrorDetails"
className: "ErrorModel"
}
}
}
Expand Down Expand Up @@ -26548,6 +26548,17 @@ export const NetworkWatcher: coreClient.CompositeMapper = {
type: {
name: "String"
}
},
runningOperationIds: {
serializedName: "properties.runningOperationIds",
type: {
name: "Sequence",
element: {
type: {
name: "Number"
}
}
}
}
}
}
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 @@ -358,7 +358,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-network/30.0.1`;
const packageDetails = `azsdk-js-arm-network/30.1.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!");
});
});
10 changes: 2 additions & 8 deletions sdk/network/arm-network/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9a92b3c

Please sign in to comment.