Skip to content

Commit cc04bf8

Browse files
author
SDKAuto
committed
CodeGen from PR 12855 in Azure/azure-rest-api-specs
Merge f25973709c397b368b19b0ebbe7f4419eda64e69 into 32534619c50430542ebfded88f2c3a8147727e0c
1 parent 8e14c7a commit cc04bf8

38 files changed

+3221
-531
lines changed

sdk/peering/arm-peering/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/peering/arm-peering/README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-peering
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list legacyPeerings as an example written in TypeScript.
18+
#### nodejs - client creation and list cdnPeeringPrefixes as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,18 +26,16 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { PeeringManagementClient, PeeringManagementModels, PeeringManagementMappers } from "@azure/arm-peering";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { PeeringManagementClient } = require("@azure/arm-peering");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {
3736
const client = new PeeringManagementClient(creds, subscriptionId);
3837
const peeringLocation = "testpeeringLocation";
39-
const kind = "Direct";
40-
client.legacyPeerings.list(peeringLocation, kind).then((result) => {
38+
client.cdnPeeringPrefixes.list(peeringLocation).then((result) => {
4139
console.log("The result is:");
4240
console.log(result);
4341
});
@@ -46,7 +44,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4644
});
4745
```
4846

49-
#### browser - Authentication, client creation and list legacyPeerings as an example written in JavaScript.
47+
#### browser - Authentication, client creation and list cdnPeeringPrefixes as an example written in JavaScript.
5048

5149
##### Install @azure/ms-rest-browserauth
5250

@@ -81,8 +79,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
8179
}
8280
const client = new Azure.ArmPeering.PeeringManagementClient(res.creds, subscriptionId);
8381
const peeringLocation = "testpeeringLocation";
84-
const kind = "Direct";
85-
client.legacyPeerings.list(peeringLocation, kind).then((result) => {
82+
client.cdnPeeringPrefixes.list(peeringLocation).then((result) => {
8683
console.log("The result is:");
8784
console.log(result);
8885
}).catch((err) => {
@@ -100,4 +97,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
10097

10198
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
10299

103-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fpeering%2Farm-peering%2FREADME.png)
100+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/peering/arm-peering/README.png)

sdk/peering/arm-peering/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/peering/arm-peering/src/models/peeringServicePrefixesMappers.ts renamed to sdk/peering/arm-peering/src/models/cdnPeeringPrefixesMappers.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -9,9 +9,12 @@
99
export {
1010
BaseResource,
1111
BgpSession,
12-
ContactInfo,
12+
CdnPeeringPrefix,
13+
CdnPeeringPrefixListResult,
14+
ContactDetail,
1315
DirectConnection,
1416
DirectPeeringFacility,
17+
ErrorDetail,
1518
ErrorResponse,
1619
ExchangeConnection,
1720
ExchangePeeringFacility,
@@ -23,10 +26,15 @@ export {
2326
PeeringLocationPropertiesExchange,
2427
PeeringPropertiesDirect,
2528
PeeringPropertiesExchange,
29+
PeeringRegisteredAsn,
30+
PeeringRegisteredPrefix,
2631
PeeringService,
32+
PeeringServiceCountry,
2733
PeeringServiceLocation,
2834
PeeringServicePrefix,
35+
PeeringServicePrefixEvent,
2936
PeeringServiceProvider,
37+
PeeringServiceSku,
3038
PeeringSku,
3139
Resource,
3240
SubResource

0 commit comments

Comments
 (0)