diff --git a/sdk/peering/arm-peering/LICENSE.txt b/sdk/peering/arm-peering/LICENSE.txt
index b73b4a1293c3..2d3163745319 100644
--- a/sdk/peering/arm-peering/LICENSE.txt
+++ b/sdk/peering/arm-peering/LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2019 Microsoft
+Copyright (c) 2021 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
diff --git a/sdk/peering/arm-peering/README.md b/sdk/peering/arm-peering/README.md
index 8cfb0a190945..6940928b3ccc 100644
--- a/sdk/peering/arm-peering/README.md
+++ b/sdk/peering/arm-peering/README.md
@@ -1,94 +1,99 @@
## Azure PeeringManagementClient SDK for JavaScript
-This package contains an isomorphic SDK for PeeringManagementClient.
+This package contains an isomorphic SDK (runs both in node.js and in browsers) for PeeringManagementClient.
### Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
+- [LTS versions of Node.js](https://nodejs.org/about/releases/)
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
+You must have an [Azure subscription](https://azure.microsoft.com/free/).
+
+### How to install
+
+To use this SDK in your project, you will need to install two packages.
+- `@azure/arm-peering` that contains the client.
+- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+
+Install both packages using the below command:
```bash
-npm install @azure/arm-peering
+npm install --save @azure/arm-peering @azure/identity
```
+> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
+If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
### How to use
-#### nodejs - Authentication, client creation and list legacyPeerings as an example written in TypeScript.
+- If you are writing a client side browser application,
+ - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
+ - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
+- If you are writing a server side application,
+ - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
+ - Complete the set up steps required by the credential if any.
+ - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
-##### Install @azure/ms-rest-nodeauth
-
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
-```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
-```
+In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
+Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
+#### nodejs - Authentication, client creation, and list cdnPeeringPrefixes as an example written in JavaScript.
##### Sample code
-```typescript
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
-import { PeeringManagementClient, PeeringManagementModels, PeeringManagementMappers } from "@azure/arm-peering";
+```javascript
+const { DefaultAzureCredential } = require("@azure/identity");
+const { PeeringManagementClient } = require("@azure/arm-peering");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new PeeringManagementClient(creds, subscriptionId);
- const peeringLocation = "testpeeringLocation";
- const kind = "Direct";
- client.legacyPeerings.list(peeringLocation, kind).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
+// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
+// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
+const creds = new DefaultAzureCredential();
+const client = new PeeringManagementClient(creds, subscriptionId);
+const peeringLocation = "testpeeringLocation";
+client.cdnPeeringPrefixes.list(peeringLocation).then((result) => {
+ console.log("The result is:");
+ console.log(result);
}).catch((err) => {
+ console.log("An error occurred:");
console.error(err);
});
```
-#### browser - Authentication, client creation and list legacyPeerings as an example written in JavaScript.
+#### browser - Authentication, client creation, and list cdnPeeringPrefixes as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
-
-```bash
-npm install @azure/ms-rest-browserauth
-```
+In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
+ - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
+ - Note down the client Id from the previous step and use it in the browser sample below.
##### Sample code
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
- index.html
+
```html
@azure/arm-peering sample
-
-
+
@@ -100,4 +105,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
-
+
diff --git a/sdk/peering/arm-peering/package.json b/sdk/peering/arm-peering/package.json
index c7c2b7e47341..848731bd9607 100644
--- a/sdk/peering/arm-peering/package.json
+++ b/sdk/peering/arm-peering/package.json
@@ -4,8 +4,9 @@
"description": "PeeringManagementClient Library with typescript type definitions for node.js and browser.",
"version": "1.0.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
+ "@azure/ms-rest-azure-js": "^2.1.0",
+ "@azure/ms-rest-js": "^2.2.0",
+ "@azure/core-auth": "^1.1.4",
"tslib": "^1.10.0"
},
"keywords": [
@@ -20,13 +21,13 @@
"module": "./esm/peeringManagementClient.js",
"types": "./esm/peeringManagementClient.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
+ "typescript": "^3.6.0",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/peering/arm-peering",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/peering/arm-peering",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
diff --git a/sdk/peering/arm-peering/rollup.config.js b/sdk/peering/arm-peering/rollup.config.js
index 6115b0630086..b6815e03bd92 100644
--- a/sdk/peering/arm-peering/rollup.config.js
+++ b/sdk/peering/arm-peering/rollup.config.js
@@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
diff --git a/sdk/peering/arm-peering/src/models/peeringServicePrefixesMappers.ts b/sdk/peering/arm-peering/src/models/cdnPeeringPrefixesMappers.ts
similarity index 70%
rename from sdk/peering/arm-peering/src/models/peeringServicePrefixesMappers.ts
rename to sdk/peering/arm-peering/src/models/cdnPeeringPrefixesMappers.ts
index 3750ca36a206..c6761e1b9d4a 100644
--- a/sdk/peering/arm-peering/src/models/peeringServicePrefixesMappers.ts
+++ b/sdk/peering/arm-peering/src/models/cdnPeeringPrefixesMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,12 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ CdnPeeringPrefixListResult,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -23,10 +26,15 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/index.ts b/sdk/peering/arm-peering/src/models/index.ts
index fd1be10962e1..f4dc58290010 100644
--- a/sdk/peering/arm-peering/src/models/index.ts
+++ b/sdk/peering/arm-peering/src/models/index.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -11,16 +11,68 @@ import * as msRest from "@azure/ms-rest-js";
export { BaseResource, CloudError };
+/**
+ * The ARM resource class.
+ */
+export interface Resource extends BaseResource {
+ /**
+ * The name of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly name?: string;
+ /**
+ * The ID of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * The type of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+}
+
+/**
+ * The CDN peering prefix
+ */
+export interface CdnPeeringPrefix extends Resource {
+ /**
+ * The prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly prefix?: string;
+ /**
+ * The Azure region.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly azureRegion?: string;
+ /**
+ * The Azure service.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly azureService?: string;
+ /**
+ * The flag that indicates whether or not this is the primary region.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly isPrimaryRegion?: boolean;
+ /**
+ * The BGP Community
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly bgpCommunity?: string;
+}
+
/**
* Class for CheckServiceProviderAvailabilityInput
*/
export interface CheckServiceProviderAvailabilityInput {
/**
- * Gets or sets the PeeringServiceLocation
+ * Gets or sets the peering service location.
*/
peeringServiceLocation?: string;
/**
- * Gets or sets the PeeringServiceProvider
+ * Gets or sets the peering service provider.
*/
peeringServiceProvider?: string;
}
@@ -30,11 +82,9 @@ export interface CheckServiceProviderAvailabilityInput {
*/
export interface PeeringSku {
/**
- * The name of the peering SKU. Possible values include: 'Basic_Exchange_Free',
- * 'Basic_Direct_Free', 'Premium_Direct_Free', 'Premium_Exchange_Metered',
- * 'Premium_Direct_Metered', 'Premium_Direct_Unlimited'
+ * The name of the peering SKU.
*/
- name?: Name;
+ name?: string;
/**
* The tier of the peering SKU. Possible values include: 'Basic', 'Premium'
*/
@@ -63,14 +113,12 @@ export interface BgpSession {
sessionPrefixV6?: string;
/**
* The IPv4 session address on Microsoft's end.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- readonly microsoftSessionIPv4Address?: string;
+ microsoftSessionIPv4Address?: string;
/**
* The IPv6 session address on Microsoft's end.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- readonly microsoftSessionIPv6Address?: string;
+ microsoftSessionIPv6Address?: string;
/**
* The IPv4 session address on peer's end.
*/
@@ -117,8 +165,9 @@ export interface DirectConnection {
bandwidthInMbps?: number;
/**
* The bandwidth that is actually provisioned.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- provisionedBandwidthInMbps?: number;
+ readonly provisionedBandwidthInMbps?: number;
/**
* The field indicating if Microsoft provides session ip addresses. Possible values include:
* 'Microsoft', 'Peer'
@@ -128,6 +177,11 @@ export interface DirectConnection {
* The flag that indicates whether or not the connection is used for peering service.
*/
useForPeeringService?: boolean;
+ /**
+ * The ID used within Microsoft's peering provisioning system to track the connection
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly microsoftTrackingId?: string;
/**
* The PeeringDB.com ID of the facility at which the connection has to be set up.
*/
@@ -146,6 +200,11 @@ export interface DirectConnection {
* The unique identifier (GUID) for the connection.
*/
connectionIdentifier?: string;
+ /**
+ * The error message related to the connection state, if any.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly errorMessage?: string;
}
/**
@@ -168,14 +227,16 @@ export interface PeeringPropertiesDirect {
connections?: DirectConnection[];
/**
* The flag that indicates whether or not the peering is used for peering service.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- useForPeeringService?: boolean;
+ readonly useForPeeringService?: boolean;
/**
* The reference of the peer ASN.
*/
peerAsn?: SubResource;
/**
- * The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ * The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal',
+ * 'Ix', 'IxRs', 'Voice'
*/
directPeeringType?: DirectPeeringType;
}
@@ -202,6 +263,11 @@ export interface ExchangeConnection {
* The unique identifier (GUID) for the connection.
*/
connectionIdentifier?: string;
+ /**
+ * The error message related to the connection state, if any.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly errorMessage?: string;
}
/**
@@ -218,27 +284,6 @@ export interface PeeringPropertiesExchange {
peerAsn?: SubResource;
}
-/**
- * The ARM resource class.
- */
-export interface Resource extends BaseResource {
- /**
- * The name of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * The ID of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The type of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
-}
-
/**
* Peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a
* location.
@@ -328,17 +373,22 @@ export interface Operation {
}
/**
- * The contact information of the peer.
+ * The contact detail class.
*/
-export interface ContactInfo {
+export interface ContactDetail {
+ /**
+ * The role of the contact. Possible values include: 'Noc', 'Policy', 'Technical', 'Service',
+ * 'Escalation', 'Other'
+ */
+ role?: Role;
/**
- * The list of email addresses.
+ * The e-mail address of the contact.
*/
- emails?: string[];
+ email?: string;
/**
- * The list of contact numbers.
+ * The phone number of the contact.
*/
- phone?: string[];
+ phone?: string;
}
/**
@@ -350,9 +400,9 @@ export interface PeerAsn extends Resource {
*/
peerAsn?: number;
/**
- * The contact information of the peer.
+ * The contact details of the peer.
*/
- peerContactInfo?: ContactInfo;
+ peerContactDetail?: ContactDetail[];
/**
* The name of the peer.
*/
@@ -362,6 +412,11 @@ export interface PeerAsn extends Resource {
* 'Pending', 'Approved', 'Failed'
*/
validationState?: ValidationState;
+ /**
+ * The error message for the validation state
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly errorMessage?: string;
}
/**
@@ -373,7 +428,8 @@ export interface DirectPeeringFacility {
*/
address?: string;
/**
- * The type of the direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ * The type of the direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal',
+ * 'Ix', 'IxRs', 'Voice'
*/
directPeeringType?: DirectPeeringType;
/**
@@ -493,6 +549,59 @@ export interface PeeringLocation extends Resource {
azureRegion?: string;
}
+/**
+ * The customer's ASN that is registered by the peering service provider.
+ */
+export interface PeeringRegisteredAsn extends Resource {
+ /**
+ * The customer's ASN from which traffic originates.
+ */
+ asn?: number;
+ /**
+ * The peering service prefix key that is to be shared with the customer.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly peeringServicePrefixKey?: string;
+ /**
+ * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating',
+ * 'Deleting', 'Failed'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+}
+
+/**
+ * The customer's prefix that is registered by the peering service provider.
+ */
+export interface PeeringRegisteredPrefix extends Resource {
+ /**
+ * The customer's prefix from which traffic originates.
+ */
+ prefix?: string;
+ /**
+ * The prefix validation state. Possible values include: 'None', 'Invalid', 'Verified', 'Failed',
+ * 'Pending', 'Warning', 'Unknown'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly prefixValidationState?: PrefixValidationState;
+ /**
+ * The peering service prefix key that is to be shared with the customer.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly peeringServicePrefixKey?: string;
+ /**
+ * The error message associated with the validation state, if any.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly errorMessage?: string;
+ /**
+ * The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating',
+ * 'Deleting', 'Failed'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+}
+
/**
* The resource tags.
*/
@@ -504,7 +613,54 @@ export interface ResourceTags {
}
/**
- * PeeringService location
+ * The properties that define a received route.
+ */
+export interface PeeringReceivedRoute {
+ /**
+ * The prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly prefix?: string;
+ /**
+ * The next hop for the prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly nextHop?: string;
+ /**
+ * The AS path for the prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly asPath?: string;
+ /**
+ * The origin AS change information for the prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly originAsValidationState?: string;
+ /**
+ * The RPKI validation state for the prefix and origin AS that's listed in the AS path.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly rpkiValidationState?: string;
+ /**
+ * The authority which holds the Route Origin Authorization record for the prefix, if any.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly trustAnchor?: string;
+ /**
+ * The received timestamp associated with the prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly receivedTimestamp?: string;
+}
+
+/**
+ * The peering service country.
+ */
+export interface PeeringServiceCountry extends Resource {
+}
+
+/**
+ * The peering service location.
*/
export interface PeeringServiceLocation extends Resource {
/**
@@ -521,23 +677,70 @@ export interface PeeringServiceLocation extends Resource {
azureRegion?: string;
}
+/**
+ * The details of the event associated with a prefix.
+ */
+export interface PeeringServicePrefixEvent {
+ /**
+ * The timestamp of the event associated with a prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly eventTimestamp?: Date;
+ /**
+ * The type of the event associated with a prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly eventType?: string;
+ /**
+ * The summary of the event associated with a prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly eventSummary?: string;
+ /**
+ * The level of the event associated with a prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly eventLevel?: string;
+ /**
+ * The description of the event associated with a prefix.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly eventDescription?: string;
+}
+
/**
* The peering service prefix class.
*/
export interface PeeringServicePrefix extends Resource {
/**
- * Valid route prefix
+ * The prefix from which your traffic originates.
*/
prefix?: string;
/**
* The prefix validation state. Possible values include: 'None', 'Invalid', 'Verified', 'Failed',
- * 'Pending', 'Unknown'
+ * 'Pending', 'Warning', 'Unknown'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly prefixValidationState?: PrefixValidationState;
+ /**
+ * The prefix learned type. Possible values include: 'None', 'ViaServiceProvider', 'ViaSession'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly learnedType?: LearnedType;
+ /**
+ * The error message for validation state
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly errorMessage?: string;
+ /**
+ * The list of events for peering service prefix
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
- prefixValidationState?: PrefixValidationState;
+ readonly events?: PeeringServicePrefixEvent[];
/**
- * The prefix learned type. Possible values include: 'None', 'ViaPartner', 'ViaSession'
+ * The peering service prefix key
*/
- learnedType?: LearnedType;
+ peeringServicePrefixKey?: string;
/**
* The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating',
* 'Deleting', 'Failed'
@@ -554,6 +757,20 @@ export interface PeeringServiceProvider extends Resource {
* The name of the service provider.
*/
serviceProviderName?: string;
+ /**
+ * The list of locations at which the service provider peers with Microsoft.
+ */
+ peeringLocations?: string[];
+}
+
+/**
+ * The SKU that defines the type of the peering service.
+ */
+export interface PeeringServiceSku {
+ /**
+ * The name of the peering service SKU.
+ */
+ name?: string;
}
/**
@@ -561,11 +778,15 @@ export interface PeeringServiceProvider extends Resource {
*/
export interface PeeringService extends Resource {
/**
- * The PeeringServiceLocation of the Customer.
+ * The SKU that defines the type of the peering service.
+ */
+ sku?: PeeringServiceSku;
+ /**
+ * The location (state/province) of the customer.
*/
peeringServiceLocation?: string;
/**
- * The MAPS Provider Name.
+ * The name of the service provider.
*/
peeringServiceProvider?: string;
/**
@@ -574,6 +795,14 @@ export interface PeeringService extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: ProvisioningState;
+ /**
+ * The primary peering (Microsoft/service provider) location to be used for customer traffic.
+ */
+ providerPrimaryPeeringLocation?: string;
+ /**
+ * The backup peering (Microsoft/service provider) location to be used for customer traffic.
+ */
+ providerBackupPeeringLocation?: string;
/**
* The location of the resource.
*/
@@ -585,9 +814,9 @@ export interface PeeringService extends Resource {
}
/**
- * The error response that indicates why an operation has failed.
+ * The error detail that describes why an operation has failed.
*/
-export interface ErrorResponse {
+export interface ErrorDetail {
/**
* The error code.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -600,16 +829,26 @@ export interface ErrorResponse {
readonly message?: string;
}
+/**
+ * The error response that indicates why an operation has failed.
+ */
+export interface ErrorResponse {
+ /**
+ * The error detail that describes why an operation has failed.
+ */
+ error?: ErrorDetail;
+}
+
/**
* Optional Parameters.
*/
export interface PeeringManagementClientCheckServiceProviderAvailabilityOptionalParams extends msRest.RequestOptionsBase {
/**
- * Gets or sets the PeeringServiceLocation
+ * Gets or sets the peering service location.
*/
peeringServiceLocation?: string;
/**
- * Gets or sets the PeeringServiceProvider
+ * Gets or sets the peering service provider.
*/
peeringServiceProvider?: string;
}
@@ -617,94 +856,322 @@ export interface PeeringManagementClientCheckServiceProviderAvailabilityOptional
/**
* Optional Parameters.
*/
-export interface PeeringLocationsListOptionalParams extends msRest.RequestOptionsBase {
+export interface LegacyPeeringsListOptionalParams extends msRest.RequestOptionsBase {
/**
- * The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ * The ASN number associated with a legacy peering.
*/
- directPeeringType?: DirectPeeringType1;
+ asn?: number;
}
/**
* Optional Parameters.
*/
-export interface PeeringsUpdateOptionalParams extends msRest.RequestOptionsBase {
+export interface LegacyPeeringsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * Gets or sets the tags, a dictionary of descriptors arm object
+ * The ASN number associated with a legacy peering.
*/
- tags?: { [propertyName: string]: string };
+ asn?: number;
}
/**
* Optional Parameters.
*/
-export interface PeeringServicesUpdateOptionalParams extends msRest.RequestOptionsBase {
+export interface PeeringLocationsListOptionalParams extends msRest.RequestOptionsBase {
/**
- * Gets or sets the tags, a dictionary of descriptors arm object
+ * The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal',
+ * 'Ix', 'IxRs', 'Voice'
*/
- tags?: { [propertyName: string]: string };
-}
-
-/**
- * An interface representing PeeringManagementClientOptions.
- */
-export interface PeeringManagementClientOptions extends AzureServiceClientOptions {
- baseUri?: string;
+ directPeeringType?: DirectPeeringType1;
}
/**
- * @interface
- * The paginated list of peerings.
- * @extends Array
+ * Optional Parameters.
*/
-export interface PeeringListResult extends Array {
+export interface PeeringLocationsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
- * The link to fetch the next page of peerings.
+ * The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal',
+ * 'Ix', 'IxRs', 'Voice'
*/
- nextLink?: string;
+ directPeeringType?: DirectPeeringType1;
}
/**
- * @interface
- * The paginated list of peering API operations.
- * @extends Array
+ * Optional Parameters.
*/
-export interface OperationListResult extends Array {
+export interface RegisteredAsnsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
/**
- * The link to fetch the next page of peering API operations.
+ * The customer's ASN from which traffic originates.
*/
- nextLink?: string;
+ asn?: number;
}
/**
- * @interface
- * The paginated list of peer ASNs.
- * @extends Array
+ * Optional Parameters.
*/
-export interface PeerAsnListResult extends Array {
+export interface RegisteredPrefixesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
/**
- * The link to fetch the next page of peer ASNs.
+ * The customer's prefix from which traffic originates.
*/
- nextLink?: string;
+ prefix?: string;
}
/**
- * @interface
- * The paginated list of peering locations.
- * @extends Array
+ * Optional Parameters.
*/
-export interface PeeringLocationListResult extends Array {
+export interface PeeringsUpdateOptionalParams extends msRest.RequestOptionsBase {
/**
- * The link to fetch the next page of peering locations.
+ * Gets or sets the tags, a dictionary of descriptors arm object
*/
- nextLink?: string;
+ tags?: { [propertyName: string]: string };
}
/**
- * @interface
- * The paginated list of peering service locations.
- * @extends Array
+ * Optional Parameters.
*/
-export interface PeeringServiceLocationListResult extends Array {
+export interface ReceivedRoutesListByPeeringOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The optional prefix that can be used to filter the routes.
+ */
+ prefix?: string;
+ /**
+ * The optional AS path that can be used to filter the routes.
+ */
+ asPath?: string;
+ /**
+ * The optional origin AS validation state that can be used to filter the routes.
+ */
+ originAsValidationState?: string;
+ /**
+ * The optional RPKI validation state that can be used to filter the routes.
+ */
+ rpkiValidationState?: string;
+ /**
+ * The optional page continuation token that is used in the event of paginated result.
+ */
+ skipToken?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface ReceivedRoutesListByPeeringNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The optional prefix that can be used to filter the routes.
+ */
+ prefix?: string;
+ /**
+ * The optional AS path that can be used to filter the routes.
+ */
+ asPath?: string;
+ /**
+ * The optional origin AS validation state that can be used to filter the routes.
+ */
+ originAsValidationState?: string;
+ /**
+ * The optional RPKI validation state that can be used to filter the routes.
+ */
+ rpkiValidationState?: string;
+ /**
+ * The optional page continuation token that is used in the event of paginated result.
+ */
+ skipToken?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PeeringServiceLocationsListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The country of interest, in which the locations are to be present.
+ */
+ country?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PeeringServiceLocationsListNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The country of interest, in which the locations are to be present.
+ */
+ country?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PrefixesGetOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The properties to be expanded.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PrefixesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The prefix from which your traffic originates.
+ */
+ prefix?: string;
+ /**
+ * The peering service prefix key
+ */
+ peeringServicePrefixKey?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PrefixesListByPeeringServiceOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The properties to be expanded.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PrefixesListByPeeringServiceNextOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * The properties to be expanded.
+ */
+ expand?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface PeeringServicesUpdateOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * Gets or sets the tags, a dictionary of descriptors arm object
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * An interface representing PeeringManagementClientOptions.
+ */
+export interface PeeringManagementClientOptions extends AzureServiceClientOptions {
+ baseUri?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of CDN peering prefixes.
+ * @extends Array
+ */
+export interface CdnPeeringPrefixListResult extends Array {
+ /**
+ * The link to fetch the next page of CDN peering prefixes.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peerings.
+ * @extends Array
+ */
+export interface PeeringListResult extends Array {
+ /**
+ * The link to fetch the next page of peerings.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peering API operations.
+ * @extends Array
+ */
+export interface OperationListResult extends Array {
+ /**
+ * The link to fetch the next page of peering API operations.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peer ASNs.
+ * @extends Array
+ */
+export interface PeerAsnListResult extends Array {
+ /**
+ * The link to fetch the next page of peer ASNs.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peering locations.
+ * @extends Array
+ */
+export interface PeeringLocationListResult extends Array {
+ /**
+ * The link to fetch the next page of peering locations.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peering registered ASNs.
+ * @extends Array
+ */
+export interface PeeringRegisteredAsnListResult extends Array {
+ /**
+ * The link to fetch the next page of peering registered ASNs.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peering registered prefixes.
+ * @extends Array
+ */
+export interface PeeringRegisteredPrefixListResult extends Array {
+ /**
+ * The link to fetch the next page of peering registered prefixes.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of received routes for the peering.
+ * @extends Array
+ */
+export interface PeeringReceivedRouteListResult extends Array {
+ /**
+ * The link to fetch the next page of received routes for the peering.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peering service countries.
+ * @extends Array
+ */
+export interface PeeringServiceCountryListResult extends Array {
+ /**
+ * The link to fetch the next page of peering service countries.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * The paginated list of peering service locations.
+ * @extends Array
+ */
+export interface PeeringServiceLocationListResult extends Array {
/**
* The link to fetch the next page of peering service locations.
*/
@@ -713,12 +1180,12 @@ export interface PeeringServiceLocationListResult extends Array
*/
export interface PeeringServicePrefixListResult extends Array {
/**
- * The link to fetch the next page of [T].
+ * The link to fetch the next page of peering service prefixes.
*/
nextLink?: string;
}
@@ -747,15 +1214,6 @@ export interface PeeringServiceListResult extends Array {
nextLink?: string;
}
-/**
- * Defines values for Name.
- * Possible values include: 'Basic_Exchange_Free', 'Basic_Direct_Free', 'Premium_Direct_Free',
- * 'Premium_Exchange_Metered', 'Premium_Direct_Metered', 'Premium_Direct_Unlimited'
- * @readonly
- * @enum {string}
- */
-export type Name = 'Basic_Exchange_Free' | 'Basic_Direct_Free' | 'Premium_Direct_Free' | 'Premium_Exchange_Metered' | 'Premium_Direct_Metered' | 'Premium_Direct_Unlimited';
-
/**
* Defines values for Tier.
* Possible values include: 'Basic', 'Premium'
@@ -825,11 +1283,11 @@ export type SessionStateV6 = 'None' | 'Idle' | 'Connect' | 'Active' | 'OpenSent'
/**
* Defines values for DirectPeeringType.
- * Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ * Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal', 'Ix', 'IxRs', 'Voice'
* @readonly
* @enum {string}
*/
-export type DirectPeeringType = 'Edge' | 'Transit' | 'Cdn' | 'Internal';
+export type DirectPeeringType = 'Edge' | 'Transit' | 'Cdn' | 'Internal' | 'Ix' | 'IxRs' | 'Voice';
/**
* Defines values for ProvisioningState.
@@ -839,6 +1297,14 @@ export type DirectPeeringType = 'Edge' | 'Transit' | 'Cdn' | 'Internal';
*/
export type ProvisioningState = 'Succeeded' | 'Updating' | 'Deleting' | 'Failed';
+/**
+ * Defines values for Role.
+ * Possible values include: 'Noc', 'Policy', 'Technical', 'Service', 'Escalation', 'Other'
+ * @readonly
+ * @enum {string}
+ */
+export type Role = 'Noc' | 'Policy' | 'Technical' | 'Service' | 'Escalation' | 'Other';
+
/**
* Defines values for ValidationState.
* Possible values include: 'None', 'Pending', 'Approved', 'Failed'
@@ -849,35 +1315,36 @@ export type ValidationState = 'None' | 'Pending' | 'Approved' | 'Failed';
/**
* Defines values for PrefixValidationState.
- * Possible values include: 'None', 'Invalid', 'Verified', 'Failed', 'Pending', 'Unknown'
+ * Possible values include: 'None', 'Invalid', 'Verified', 'Failed', 'Pending', 'Warning',
+ * 'Unknown'
* @readonly
* @enum {string}
*/
-export type PrefixValidationState = 'None' | 'Invalid' | 'Verified' | 'Failed' | 'Pending' | 'Unknown';
+export type PrefixValidationState = 'None' | 'Invalid' | 'Verified' | 'Failed' | 'Pending' | 'Warning' | 'Unknown';
/**
* Defines values for LearnedType.
- * Possible values include: 'None', 'ViaPartner', 'ViaSession'
+ * Possible values include: 'None', 'ViaServiceProvider', 'ViaSession'
* @readonly
* @enum {string}
*/
-export type LearnedType = 'None' | 'ViaPartner' | 'ViaSession';
+export type LearnedType = 'None' | 'ViaServiceProvider' | 'ViaSession';
/**
* Defines values for DirectPeeringType1.
- * Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
+ * Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal', 'Ix', 'IxRs', 'Voice'
* @readonly
* @enum {string}
*/
-export type DirectPeeringType1 = 'Edge' | 'Transit' | 'Cdn' | 'Internal';
+export type DirectPeeringType1 = 'Edge' | 'Transit' | 'Cdn' | 'Internal' | 'Ix' | 'IxRs' | 'Voice';
/**
* Defines values for CheckServiceProviderAvailabilityOKResponse.
- * Possible values include: 'Available', 'UnAvailable'
+ * Possible values include: 'Available', 'Unavailable'
* @readonly
* @enum {string}
*/
-export type CheckServiceProviderAvailabilityOKResponse = 'Available' | 'UnAvailable';
+export type CheckServiceProviderAvailabilityOKResponse = 'Available' | 'Unavailable';
/**
* Defines values for Kind1.
@@ -895,6 +1362,46 @@ export type Kind1 = 'Direct' | 'Exchange';
*/
export type Kind2 = 'Direct' | 'Exchange';
+/**
+ * Contains response data for the list operation.
+ */
+export type CdnPeeringPrefixesListResponse = CdnPeeringPrefixListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CdnPeeringPrefixListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type CdnPeeringPrefixesListNextResponse = CdnPeeringPrefixListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CdnPeeringPrefixListResult;
+ };
+};
+
/**
* Contains response data for the checkServiceProviderAvailability operation.
*/
@@ -1120,6 +1627,166 @@ export type PeeringLocationsListNextResponse = PeeringLocationListResult & {
};
};
+/**
+ * Contains response data for the get operation.
+ */
+export type RegisteredAsnsGetResponse = PeeringRegisteredAsn & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredAsn;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type RegisteredAsnsCreateOrUpdateResponse = PeeringRegisteredAsn & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredAsn;
+ };
+};
+
+/**
+ * Contains response data for the listByPeering operation.
+ */
+export type RegisteredAsnsListByPeeringResponse = PeeringRegisteredAsnListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredAsnListResult;
+ };
+};
+
+/**
+ * Contains response data for the listByPeeringNext operation.
+ */
+export type RegisteredAsnsListByPeeringNextResponse = PeeringRegisteredAsnListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredAsnListResult;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type RegisteredPrefixesGetResponse = PeeringRegisteredPrefix & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredPrefix;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type RegisteredPrefixesCreateOrUpdateResponse = PeeringRegisteredPrefix & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredPrefix;
+ };
+};
+
+/**
+ * Contains response data for the listByPeering operation.
+ */
+export type RegisteredPrefixesListByPeeringResponse = PeeringRegisteredPrefixListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredPrefixListResult;
+ };
+};
+
+/**
+ * Contains response data for the listByPeeringNext operation.
+ */
+export type RegisteredPrefixesListByPeeringNextResponse = PeeringRegisteredPrefixListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringRegisteredPrefixListResult;
+ };
+};
+
/**
* Contains response data for the get operation.
*/
@@ -1260,6 +1927,86 @@ export type PeeringsListBySubscriptionNextResponse = PeeringListResult & {
};
};
+/**
+ * Contains response data for the listByPeering operation.
+ */
+export type ReceivedRoutesListByPeeringResponse = PeeringReceivedRouteListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringReceivedRouteListResult;
+ };
+};
+
+/**
+ * Contains response data for the listByPeeringNext operation.
+ */
+export type ReceivedRoutesListByPeeringNextResponse = PeeringReceivedRouteListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringReceivedRouteListResult;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type PeeringServiceCountriesListResponse = PeeringServiceCountryListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringServiceCountryListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type PeeringServiceCountriesListNextResponse = PeeringServiceCountryListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PeeringServiceCountryListResult;
+ };
+};
+
/**
* Contains response data for the list operation.
*/
@@ -1303,7 +2050,7 @@ export type PeeringServiceLocationsListNextResponse = PeeringServiceLocationList
/**
* Contains response data for the get operation.
*/
-export type PeeringServicePrefixesGetResponse = PeeringServicePrefix & {
+export type PrefixesGetResponse = PeeringServicePrefix & {
/**
* The underlying HTTP response.
*/
@@ -1323,7 +2070,7 @@ export type PeeringServicePrefixesGetResponse = PeeringServicePrefix & {
/**
* Contains response data for the createOrUpdate operation.
*/
-export type PeeringServicePrefixesCreateOrUpdateResponse = PeeringServicePrefix & {
+export type PrefixesCreateOrUpdateResponse = PeeringServicePrefix & {
/**
* The underlying HTTP response.
*/
diff --git a/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts b/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts
index 147e9d528f40..1e9ae5577662 100644
--- a/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts
+++ b/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -24,10 +26,15 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/mappers.ts b/sdk/peering/arm-peering/src/models/mappers.ts
index 534d6d8012e8..4a7a62d5603c 100644
--- a/sdk/peering/arm-peering/src/models/mappers.ts
+++ b/sdk/peering/arm-peering/src/models/mappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -12,6 +12,83 @@ import * as msRest from "@azure/ms-rest-js";
export const CloudError = CloudErrorMapper;
export const BaseResource = BaseResourceMapper;
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
+ type: {
+ name: "Composite",
+ className: "Resource",
+ modelProperties: {
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CdnPeeringPrefix: msRest.CompositeMapper = {
+ serializedName: "CdnPeeringPrefix",
+ type: {
+ name: "Composite",
+ className: "CdnPeeringPrefix",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ prefix: {
+ readOnly: true,
+ serializedName: "properties.prefix",
+ type: {
+ name: "String"
+ }
+ },
+ azureRegion: {
+ readOnly: true,
+ serializedName: "properties.azureRegion",
+ type: {
+ name: "String"
+ }
+ },
+ azureService: {
+ readOnly: true,
+ serializedName: "properties.azureService",
+ type: {
+ name: "String"
+ }
+ },
+ isPrimaryRegion: {
+ readOnly: true,
+ serializedName: "properties.isPrimaryRegion",
+ type: {
+ name: "Boolean"
+ }
+ },
+ bgpCommunity: {
+ readOnly: true,
+ serializedName: "properties.bgpCommunity",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const CheckServiceProviderAvailabilityInput: msRest.CompositeMapper = {
serializedName: "CheckServiceProviderAvailabilityInput",
type: {
@@ -87,14 +164,12 @@ export const BgpSession: msRest.CompositeMapper = {
}
},
microsoftSessionIPv4Address: {
- readOnly: true,
serializedName: "microsoftSessionIPv4Address",
type: {
name: "String"
}
},
microsoftSessionIPv6Address: {
- readOnly: true,
serializedName: "microsoftSessionIPv6Address",
type: {
name: "String"
@@ -161,6 +236,7 @@ export const DirectConnection: msRest.CompositeMapper = {
}
},
provisionedBandwidthInMbps: {
+ readOnly: true,
serializedName: "provisionedBandwidthInMbps",
type: {
name: "Number"
@@ -178,6 +254,13 @@ export const DirectConnection: msRest.CompositeMapper = {
name: "Boolean"
}
},
+ microsoftTrackingId: {
+ readOnly: true,
+ serializedName: "microsoftTrackingId",
+ type: {
+ name: "String"
+ }
+ },
peeringDBFacilityId: {
serializedName: "peeringDBFacilityId",
type: {
@@ -203,6 +286,13 @@ export const DirectConnection: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ errorMessage: {
+ readOnly: true,
+ serializedName: "errorMessage",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -243,6 +333,7 @@ export const PeeringPropertiesDirect: msRest.CompositeMapper = {
}
},
useForPeeringService: {
+ readOnly: true,
serializedName: "useForPeeringService",
type: {
name: "Boolean"
@@ -296,6 +387,13 @@ export const ExchangeConnection: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ errorMessage: {
+ readOnly: true,
+ serializedName: "errorMessage",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -330,37 +428,6 @@ export const PeeringPropertiesExchange: msRest.CompositeMapper = {
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
- type: {
- name: "Composite",
- className: "Resource",
- modelProperties: {
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const Peering: msRest.CompositeMapper = {
serializedName: "Peering",
type: {
@@ -502,32 +569,28 @@ export const Operation: msRest.CompositeMapper = {
}
};
-export const ContactInfo: msRest.CompositeMapper = {
- serializedName: "ContactInfo",
+export const ContactDetail: msRest.CompositeMapper = {
+ serializedName: "ContactDetail",
type: {
name: "Composite",
- className: "ContactInfo",
+ className: "ContactDetail",
modelProperties: {
- emails: {
- serializedName: "emails",
+ role: {
+ serializedName: "role",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
+ }
+ },
+ email: {
+ serializedName: "email",
+ type: {
+ name: "String"
}
},
phone: {
serializedName: "phone",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
+ name: "String"
}
}
}
@@ -547,11 +610,16 @@ export const PeerAsn: msRest.CompositeMapper = {
name: "Number"
}
},
- peerContactInfo: {
- serializedName: "properties.peerContactInfo",
+ peerContactDetail: {
+ serializedName: "properties.peerContactDetail",
type: {
- name: "Composite",
- className: "ContactInfo"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ContactDetail"
+ }
+ }
}
},
peerName: {
@@ -565,6 +633,13 @@ export const PeerAsn: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ errorMessage: {
+ readOnly: true,
+ serializedName: "properties.errorMessage",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -789,6 +864,82 @@ export const PeeringLocation: msRest.CompositeMapper = {
}
};
+export const PeeringRegisteredAsn: msRest.CompositeMapper = {
+ serializedName: "PeeringRegisteredAsn",
+ type: {
+ name: "Composite",
+ className: "PeeringRegisteredAsn",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ asn: {
+ serializedName: "properties.asn",
+ type: {
+ name: "Number"
+ }
+ },
+ peeringServicePrefixKey: {
+ readOnly: true,
+ serializedName: "properties.peeringServicePrefixKey",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PeeringRegisteredPrefix: msRest.CompositeMapper = {
+ serializedName: "PeeringRegisteredPrefix",
+ type: {
+ name: "Composite",
+ className: "PeeringRegisteredPrefix",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ prefix: {
+ serializedName: "properties.prefix",
+ type: {
+ name: "String"
+ }
+ },
+ prefixValidationState: {
+ readOnly: true,
+ serializedName: "properties.prefixValidationState",
+ type: {
+ name: "String"
+ }
+ },
+ peeringServicePrefixKey: {
+ readOnly: true,
+ serializedName: "properties.peeringServicePrefixKey",
+ type: {
+ name: "String"
+ }
+ },
+ errorMessage: {
+ readOnly: true,
+ serializedName: "properties.errorMessage",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const ResourceTags: msRest.CompositeMapper = {
serializedName: "ResourceTags",
type: {
@@ -810,6 +961,76 @@ export const ResourceTags: msRest.CompositeMapper = {
}
};
+export const PeeringReceivedRoute: msRest.CompositeMapper = {
+ serializedName: "PeeringReceivedRoute",
+ type: {
+ name: "Composite",
+ className: "PeeringReceivedRoute",
+ modelProperties: {
+ prefix: {
+ readOnly: true,
+ serializedName: "prefix",
+ type: {
+ name: "String"
+ }
+ },
+ nextHop: {
+ readOnly: true,
+ serializedName: "nextHop",
+ type: {
+ name: "String"
+ }
+ },
+ asPath: {
+ readOnly: true,
+ serializedName: "asPath",
+ type: {
+ name: "String"
+ }
+ },
+ originAsValidationState: {
+ readOnly: true,
+ serializedName: "originAsValidationState",
+ type: {
+ name: "String"
+ }
+ },
+ rpkiValidationState: {
+ readOnly: true,
+ serializedName: "rpkiValidationState",
+ type: {
+ name: "String"
+ }
+ },
+ trustAnchor: {
+ readOnly: true,
+ serializedName: "trustAnchor",
+ type: {
+ name: "String"
+ }
+ },
+ receivedTimestamp: {
+ readOnly: true,
+ serializedName: "receivedTimestamp",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PeeringServiceCountry: msRest.CompositeMapper = {
+ serializedName: "PeeringServiceCountry",
+ type: {
+ name: "Composite",
+ className: "PeeringServiceCountry",
+ modelProperties: {
+ ...Resource.type.modelProperties
+ }
+ }
+};
+
export const PeeringServiceLocation: msRest.CompositeMapper = {
serializedName: "PeeringServiceLocation",
type: {
@@ -839,6 +1060,51 @@ export const PeeringServiceLocation: msRest.CompositeMapper = {
}
};
+export const PeeringServicePrefixEvent: msRest.CompositeMapper = {
+ serializedName: "PeeringServicePrefixEvent",
+ type: {
+ name: "Composite",
+ className: "PeeringServicePrefixEvent",
+ modelProperties: {
+ eventTimestamp: {
+ readOnly: true,
+ serializedName: "eventTimestamp",
+ type: {
+ name: "DateTime"
+ }
+ },
+ eventType: {
+ readOnly: true,
+ serializedName: "eventType",
+ type: {
+ name: "String"
+ }
+ },
+ eventSummary: {
+ readOnly: true,
+ serializedName: "eventSummary",
+ type: {
+ name: "String"
+ }
+ },
+ eventLevel: {
+ readOnly: true,
+ serializedName: "eventLevel",
+ type: {
+ name: "String"
+ }
+ },
+ eventDescription: {
+ readOnly: true,
+ serializedName: "eventDescription",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const PeeringServicePrefix: msRest.CompositeMapper = {
serializedName: "PeeringServicePrefix",
type: {
@@ -853,17 +1119,45 @@ export const PeeringServicePrefix: msRest.CompositeMapper = {
}
},
prefixValidationState: {
+ readOnly: true,
serializedName: "properties.prefixValidationState",
type: {
name: "String"
}
},
learnedType: {
+ readOnly: true,
serializedName: "properties.learnedType",
type: {
name: "String"
}
},
+ errorMessage: {
+ readOnly: true,
+ serializedName: "properties.errorMessage",
+ type: {
+ name: "String"
+ }
+ },
+ events: {
+ readOnly: true,
+ serializedName: "properties.events",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PeeringServicePrefixEvent"
+ }
+ }
+ }
+ },
+ peeringServicePrefixKey: {
+ serializedName: "properties.peeringServicePrefixKey",
+ type: {
+ name: "String"
+ }
+ },
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
@@ -887,6 +1181,33 @@ export const PeeringServiceProvider: msRest.CompositeMapper = {
type: {
name: "String"
}
+ },
+ peeringLocations: {
+ serializedName: "properties.peeringLocations",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const PeeringServiceSku: msRest.CompositeMapper = {
+ serializedName: "PeeringServiceSku",
+ type: {
+ name: "Composite",
+ className: "PeeringServiceSku",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -899,6 +1220,13 @@ export const PeeringService: msRest.CompositeMapper = {
className: "PeeringService",
modelProperties: {
...Resource.type.modelProperties,
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "PeeringServiceSku"
+ }
+ },
peeringServiceLocation: {
serializedName: "properties.peeringServiceLocation",
type: {
@@ -918,6 +1246,18 @@ export const PeeringService: msRest.CompositeMapper = {
name: "String"
}
},
+ providerPrimaryPeeringLocation: {
+ serializedName: "properties.providerPrimaryPeeringLocation",
+ type: {
+ name: "String"
+ }
+ },
+ providerBackupPeeringLocation: {
+ serializedName: "properties.providerBackupPeeringLocation",
+ type: {
+ name: "String"
+ }
+ },
location: {
required: true,
serializedName: "location",
@@ -940,11 +1280,11 @@ export const PeeringService: msRest.CompositeMapper = {
}
};
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
+export const ErrorDetail: msRest.CompositeMapper = {
+ serializedName: "ErrorDetail",
type: {
name: "Composite",
- className: "ErrorResponse",
+ className: "ErrorDetail",
modelProperties: {
code: {
readOnly: true,
@@ -964,6 +1304,51 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};
+export const ErrorResponse: msRest.CompositeMapper = {
+ serializedName: "ErrorResponse",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorDetail"
+ }
+ }
+ }
+ }
+};
+
+export const CdnPeeringPrefixListResult: msRest.CompositeMapper = {
+ serializedName: "CdnPeeringPrefixListResult",
+ type: {
+ name: "Composite",
+ className: "CdnPeeringPrefixListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CdnPeeringPrefix"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const PeeringListResult: msRest.CompositeMapper = {
serializedName: "PeeringListResult",
type: {
@@ -1076,6 +1461,118 @@ export const PeeringLocationListResult: msRest.CompositeMapper = {
}
};
+export const PeeringRegisteredAsnListResult: msRest.CompositeMapper = {
+ serializedName: "PeeringRegisteredAsnListResult",
+ type: {
+ name: "Composite",
+ className: "PeeringRegisteredAsnListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PeeringRegisteredAsn"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PeeringRegisteredPrefixListResult: msRest.CompositeMapper = {
+ serializedName: "PeeringRegisteredPrefixListResult",
+ type: {
+ name: "Composite",
+ className: "PeeringRegisteredPrefixListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PeeringRegisteredPrefix"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PeeringReceivedRouteListResult: msRest.CompositeMapper = {
+ serializedName: "PeeringReceivedRouteListResult",
+ type: {
+ name: "Composite",
+ className: "PeeringReceivedRouteListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PeeringReceivedRoute"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PeeringServiceCountryListResult: msRest.CompositeMapper = {
+ serializedName: "PeeringServiceCountryListResult",
+ type: {
+ name: "Composite",
+ className: "PeeringServiceCountryListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PeeringServiceCountry"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const PeeringServiceLocationListResult: msRest.CompositeMapper = {
serializedName: "PeeringServiceLocationListResult",
type: {
diff --git a/sdk/peering/arm-peering/src/models/operationsMappers.ts b/sdk/peering/arm-peering/src/models/operationsMappers.ts
index 41b000418950..03f4d74ce1d6 100644
--- a/sdk/peering/arm-peering/src/models/operationsMappers.ts
+++ b/sdk/peering/arm-peering/src/models/operationsMappers.ts
@@ -1,12 +1,13 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
*/
export {
+ ErrorDetail,
ErrorResponse,
Operation,
OperationDisplayInfo,
diff --git a/sdk/peering/arm-peering/src/models/parameters.ts b/sdk/peering/arm-peering/src/models/parameters.ts
index e9e0cef438b5..a1333bc1de02 100644
--- a/sdk/peering/arm-peering/src/models/parameters.ts
+++ b/sdk/peering/arm-peering/src/models/parameters.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -30,6 +29,42 @@ export const apiVersion: msRest.OperationQueryParameter = {
}
}
};
+export const asn: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "asn"
+ ],
+ mapper: {
+ serializedName: "asn",
+ type: {
+ name: "Number"
+ }
+ }
+};
+export const asPath: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "asPath"
+ ],
+ mapper: {
+ serializedName: "asPath",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const country: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "country"
+ ],
+ mapper: {
+ serializedName: "country",
+ type: {
+ name: "String"
+ }
+ }
+};
export const directPeeringType: msRest.OperationQueryParameter = {
parameterPath: [
"options",
@@ -42,6 +77,18 @@ export const directPeeringType: msRest.OperationQueryParameter = {
}
}
};
+export const expand: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "expand"
+ ],
+ mapper: {
+ serializedName: "$expand",
+ type: {
+ name: "String"
+ }
+ }
+};
export const kind: msRest.OperationQueryParameter = {
parameterPath: "kind",
mapper: {
@@ -63,6 +110,18 @@ export const nextPageLink: msRest.OperationURLParameter = {
},
skipEncoding: true
};
+export const originAsValidationState: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "originAsValidationState"
+ ],
+ mapper: {
+ serializedName: "originAsValidationState",
+ type: {
+ name: "String"
+ }
+ }
+};
export const peerAsnName: msRest.OperationURLParameter = {
parameterPath: "peerAsnName",
mapper: {
@@ -103,6 +162,18 @@ export const peeringServiceName: msRest.OperationURLParameter = {
}
}
};
+export const prefix: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "prefix"
+ ],
+ mapper: {
+ serializedName: "prefix",
+ type: {
+ name: "String"
+ }
+ }
+};
export const prefixName: msRest.OperationURLParameter = {
parameterPath: "prefixName",
mapper: {
@@ -113,6 +184,26 @@ export const prefixName: msRest.OperationURLParameter = {
}
}
};
+export const registeredAsnName: msRest.OperationURLParameter = {
+ parameterPath: "registeredAsnName",
+ mapper: {
+ required: true,
+ serializedName: "registeredAsnName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const registeredPrefixName: msRest.OperationURLParameter = {
+ parameterPath: "registeredPrefixName",
+ mapper: {
+ required: true,
+ serializedName: "registeredPrefixName",
+ type: {
+ name: "String"
+ }
+ }
+};
export const resourceGroupName: msRest.OperationURLParameter = {
parameterPath: "resourceGroupName",
mapper: {
@@ -123,6 +214,30 @@ export const resourceGroupName: msRest.OperationURLParameter = {
}
}
};
+export const rpkiValidationState: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "rpkiValidationState"
+ ],
+ mapper: {
+ serializedName: "rpkiValidationState",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const skipToken: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "skipToken"
+ ],
+ mapper: {
+ serializedName: "$skipToken",
+ type: {
+ name: "String"
+ }
+ }
+};
export const subscriptionId: msRest.OperationURLParameter = {
parameterPath: "subscriptionId",
mapper: {
diff --git a/sdk/peering/arm-peering/src/models/peerAsnsMappers.ts b/sdk/peering/arm-peering/src/models/peerAsnsMappers.ts
index da3cdc4561cd..454cd8e2de2d 100644
--- a/sdk/peering/arm-peering/src/models/peerAsnsMappers.ts
+++ b/sdk/peering/arm-peering/src/models/peerAsnsMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -24,10 +26,15 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts b/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts
index 7e3205ea330a..d6e7c8e9644f 100644
--- a/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts
+++ b/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -24,10 +26,15 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts b/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts
new file mode 100644
index 000000000000..925bfdc4501b
--- /dev/null
+++ b/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+
+export {
+ BaseResource,
+ BgpSession,
+ CdnPeeringPrefix,
+ ContactDetail,
+ DirectConnection,
+ DirectPeeringFacility,
+ ErrorDetail,
+ ErrorResponse,
+ ExchangeConnection,
+ ExchangePeeringFacility,
+ PeerAsn,
+ Peering,
+ PeeringBandwidthOffer,
+ PeeringLocation,
+ PeeringLocationPropertiesDirect,
+ PeeringLocationPropertiesExchange,
+ PeeringPropertiesDirect,
+ PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
+ PeeringService,
+ PeeringServiceCountry,
+ PeeringServiceCountryListResult,
+ PeeringServiceLocation,
+ PeeringServicePrefix,
+ PeeringServicePrefixEvent,
+ PeeringServiceProvider,
+ PeeringServiceSku,
+ PeeringSku,
+ Resource,
+ SubResource
+} from "../models/mappers";
diff --git a/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts b/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts
index c41b232f2c04..59be5ac482d6 100644
--- a/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts
+++ b/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -23,11 +25,16 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServiceLocationListResult,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts b/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts
index b9729dc9379f..150e2980743f 100644
--- a/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts
+++ b/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -23,11 +25,16 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
PeeringServiceProviderListResult,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts b/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts
index ddc9ffdfb198..5202a98affe3 100644
--- a/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts
+++ b/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -23,11 +25,16 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceListResult,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
ResourceTags,
diff --git a/sdk/peering/arm-peering/src/models/peeringsMappers.ts b/sdk/peering/arm-peering/src/models/peeringsMappers.ts
index 736ac14d0a85..e2e34ffc09f7 100644
--- a/sdk/peering/arm-peering/src/models/peeringsMappers.ts
+++ b/sdk/peering/arm-peering/src/models/peeringsMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -24,10 +26,15 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
ResourceTags,
diff --git a/sdk/peering/arm-peering/src/models/prefixesMappers.ts b/sdk/peering/arm-peering/src/models/prefixesMappers.ts
index 880f11ef7879..2a689e2a7628 100644
--- a/sdk/peering/arm-peering/src/models/prefixesMappers.ts
+++ b/sdk/peering/arm-peering/src/models/prefixesMappers.ts
@@ -1,6 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for license information.
+ * 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.
@@ -9,9 +9,11 @@
export {
BaseResource,
BgpSession,
- ContactInfo,
+ CdnPeeringPrefix,
+ ContactDetail,
DirectConnection,
DirectPeeringFacility,
+ ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
@@ -23,11 +25,16 @@ export {
PeeringLocationPropertiesExchange,
PeeringPropertiesDirect,
PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
PeeringService,
+ PeeringServiceCountry,
PeeringServiceLocation,
PeeringServicePrefix,
+ PeeringServicePrefixEvent,
PeeringServicePrefixListResult,
PeeringServiceProvider,
+ PeeringServiceSku,
PeeringSku,
Resource,
SubResource
diff --git a/sdk/peering/arm-peering/src/models/receivedRoutesMappers.ts b/sdk/peering/arm-peering/src/models/receivedRoutesMappers.ts
new file mode 100644
index 000000000000..48e101731d46
--- /dev/null
+++ b/sdk/peering/arm-peering/src/models/receivedRoutesMappers.ts
@@ -0,0 +1,14 @@
+/*
+ * 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.
+ */
+
+export {
+ ErrorDetail,
+ ErrorResponse,
+ PeeringReceivedRoute,
+ PeeringReceivedRouteListResult
+} from "../models/mappers";
diff --git a/sdk/peering/arm-peering/src/models/registeredAsnsMappers.ts b/sdk/peering/arm-peering/src/models/registeredAsnsMappers.ts
new file mode 100644
index 000000000000..23967e83c0c8
--- /dev/null
+++ b/sdk/peering/arm-peering/src/models/registeredAsnsMappers.ts
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+
+export {
+ BaseResource,
+ BgpSession,
+ CdnPeeringPrefix,
+ ContactDetail,
+ DirectConnection,
+ DirectPeeringFacility,
+ ErrorDetail,
+ ErrorResponse,
+ ExchangeConnection,
+ ExchangePeeringFacility,
+ PeerAsn,
+ Peering,
+ PeeringBandwidthOffer,
+ PeeringLocation,
+ PeeringLocationPropertiesDirect,
+ PeeringLocationPropertiesExchange,
+ PeeringPropertiesDirect,
+ PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredAsnListResult,
+ PeeringRegisteredPrefix,
+ PeeringService,
+ PeeringServiceCountry,
+ PeeringServiceLocation,
+ PeeringServicePrefix,
+ PeeringServicePrefixEvent,
+ PeeringServiceProvider,
+ PeeringServiceSku,
+ PeeringSku,
+ Resource,
+ SubResource
+} from "../models/mappers";
diff --git a/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts b/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts
new file mode 100644
index 000000000000..6d4b02f50adb
--- /dev/null
+++ b/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+
+export {
+ BaseResource,
+ BgpSession,
+ CdnPeeringPrefix,
+ ContactDetail,
+ DirectConnection,
+ DirectPeeringFacility,
+ ErrorDetail,
+ ErrorResponse,
+ ExchangeConnection,
+ ExchangePeeringFacility,
+ PeerAsn,
+ Peering,
+ PeeringBandwidthOffer,
+ PeeringLocation,
+ PeeringLocationPropertiesDirect,
+ PeeringLocationPropertiesExchange,
+ PeeringPropertiesDirect,
+ PeeringPropertiesExchange,
+ PeeringRegisteredAsn,
+ PeeringRegisteredPrefix,
+ PeeringRegisteredPrefixListResult,
+ PeeringService,
+ PeeringServiceCountry,
+ PeeringServiceLocation,
+ PeeringServicePrefix,
+ PeeringServicePrefixEvent,
+ PeeringServiceProvider,
+ PeeringServiceSku,
+ PeeringSku,
+ Resource,
+ SubResource
+} from "../models/mappers";
diff --git a/sdk/peering/arm-peering/src/operations/cdnPeeringPrefixes.ts b/sdk/peering/arm-peering/src/operations/cdnPeeringPrefixes.ts
new file mode 100644
index 000000000000..706bdc76fcf6
--- /dev/null
+++ b/sdk/peering/arm-peering/src/operations/cdnPeeringPrefixes.ts
@@ -0,0 +1,138 @@
+/*
+ * 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 * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/cdnPeeringPrefixesMappers";
+import * as Parameters from "../models/parameters";
+import { PeeringManagementClientContext } from "../peeringManagementClientContext";
+
+/** Class representing a CdnPeeringPrefixes. */
+export class CdnPeeringPrefixes {
+ private readonly client: PeeringManagementClientContext;
+
+ /**
+ * Create a CdnPeeringPrefixes.
+ * @param {PeeringManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: PeeringManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists all of the advertised prefixes for the specified peering location
+ * @param peeringLocation The peering location.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(peeringLocation: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param peeringLocation The peering location.
+ * @param callback The callback
+ */
+ list(peeringLocation: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param peeringLocation The peering location.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(peeringLocation: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(peeringLocation: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ peeringLocation,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all of the advertised prefixes for the specified peering location
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param peeringLocation The peering location.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, peeringLocation: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param peeringLocation The peering location.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, peeringLocation: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param peeringLocation The peering location.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, peeringLocation: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, peeringLocation: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ peeringLocation,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Peering/cdnPeeringPrefixes",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.peeringLocation,
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.CdnPeeringPrefixListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.peeringLocation,
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.CdnPeeringPrefixListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/peering/arm-peering/src/operations/index.ts b/sdk/peering/arm-peering/src/operations/index.ts
index 62dc0305012e..cf2e5250932e 100644
--- a/sdk/peering/arm-peering/src/operations/index.ts
+++ b/sdk/peering/arm-peering/src/operations/index.ts
@@ -1,20 +1,23 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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.
*/
+export * from "./cdnPeeringPrefixes";
export * from "./legacyPeerings";
export * from "./operations";
export * from "./peerAsns";
export * from "./peeringLocations";
+export * from "./registeredAsns";
+export * from "./registeredPrefixes";
export * from "./peerings";
+export * from "./receivedRoutes";
+export * from "./peeringServiceCountries";
export * from "./peeringServiceLocations";
-export * from "./peeringServicePrefixes";
export * from "./prefixes";
export * from "./peeringServiceProviders";
export * from "./peeringServices";
diff --git a/sdk/peering/arm-peering/src/operations/legacyPeerings.ts b/sdk/peering/arm-peering/src/operations/legacyPeerings.ts
index 552e26a56c06..910f16338eed 100644
--- a/sdk/peering/arm-peering/src/operations/legacyPeerings.ts
+++ b/sdk/peering/arm-peering/src/operations/legacyPeerings.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -34,7 +33,7 @@ export class LegacyPeerings {
* @param [options] The optional parameters
* @returns Promise
*/
- list(peeringLocation: string, kind: Models.Kind1, options?: msRest.RequestOptionsBase): Promise;
+ list(peeringLocation: string, kind: Models.Kind1, options?: Models.LegacyPeeringsListOptionalParams): Promise;
/**
* @param peeringLocation The location of the peering.
* @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
@@ -47,8 +46,8 @@ export class LegacyPeerings {
* @param options The optional parameters
* @param callback The callback
*/
- list(peeringLocation: string, kind: Models.Kind1, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(peeringLocation: string, kind: Models.Kind1, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ list(peeringLocation: string, kind: Models.Kind1, options: Models.LegacyPeeringsListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(peeringLocation: string, kind: Models.Kind1, options?: Models.LegacyPeeringsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
peeringLocation,
@@ -63,25 +62,33 @@ export class LegacyPeerings {
* Lists all of the legacy peerings under the given subscription matching the specified kind and
* location.
* @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param peeringLocation The location of the peering.
+ * @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
* @param [options] The optional parameters
* @returns Promise
*/
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listNext(nextPageLink: string, peeringLocation: string, kind: Models.Kind1, options?: Models.LegacyPeeringsListNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param peeringLocation The location of the peering.
+ * @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
* @param callback The callback
*/
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, peeringLocation: string, kind: Models.Kind1, callback: msRest.ServiceCallback): void;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param peeringLocation The location of the peering.
+ * @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
* @param options The optional parameters
* @param callback The callback
*/
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, peeringLocation: string, kind: Models.Kind1, options: Models.LegacyPeeringsListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, peeringLocation: string, kind: Models.Kind1, options?: Models.LegacyPeeringsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
+ peeringLocation,
+ kind,
options
},
listNextOperationSpec,
@@ -100,6 +107,7 @@ const listOperationSpec: msRest.OperationSpec = {
queryParameters: [
Parameters.peeringLocation,
Parameters.kind,
+ Parameters.asn,
Parameters.apiVersion
],
headerParameters: [
@@ -123,6 +131,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.peeringLocation,
+ Parameters.kind,
+ Parameters.asn,
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/operations.ts b/sdk/peering/arm-peering/src/operations/operations.ts
index ea8c2e65bb8d..853299164a6f 100644
--- a/sdk/peering/arm-peering/src/operations/operations.ts
+++ b/sdk/peering/arm-peering/src/operations/operations.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/peerAsns.ts b/sdk/peering/arm-peering/src/operations/peerAsns.ts
index c07c4c937eee..436a3bf59af0 100644
--- a/sdk/peering/arm-peering/src/operations/peerAsns.ts
+++ b/sdk/peering/arm-peering/src/operations/peerAsns.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -281,6 +280,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/peeringLocations.ts b/sdk/peering/arm-peering/src/operations/peeringLocations.ts
index 759ff1c75516..bcac9735f453 100644
--- a/sdk/peering/arm-peering/src/operations/peeringLocations.ts
+++ b/sdk/peering/arm-peering/src/operations/peeringLocations.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -57,25 +56,29 @@ export class PeeringLocations {
/**
* Lists all of the available peering locations for the specified kind of peering.
* @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
* @param [options] The optional parameters
* @returns Promise
*/
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listNext(nextPageLink: string, kind: Models.Kind2, options?: Models.PeeringLocationsListNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
* @param callback The callback
*/
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, kind: Models.Kind2, callback: msRest.ServiceCallback): void;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param kind The kind of the peering. Possible values include: 'Direct', 'Exchange'
* @param options The optional parameters
* @param callback The callback
*/
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, kind: Models.Kind2, options: Models.PeeringLocationsListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, kind: Models.Kind2, options?: Models.PeeringLocationsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
+ kind,
options
},
listNextOperationSpec,
@@ -117,6 +120,11 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.kind,
+ Parameters.directPeeringType,
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/peeringServiceCountries.ts b/sdk/peering/arm-peering/src/operations/peeringServiceCountries.ts
new file mode 100644
index 000000000000..7000e623ebfd
--- /dev/null
+++ b/sdk/peering/arm-peering/src/operations/peeringServiceCountries.ts
@@ -0,0 +1,128 @@
+/*
+ * 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 * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/peeringServiceCountriesMappers";
+import * as Parameters from "../models/parameters";
+import { PeeringManagementClientContext } from "../peeringManagementClientContext";
+
+/** Class representing a PeeringServiceCountries. */
+export class PeeringServiceCountries {
+ private readonly client: PeeringManagementClientContext;
+
+ /**
+ * Create a PeeringServiceCountries.
+ * @param {PeeringManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: PeeringManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists all of the available countries for peering service.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all of the available countries for peering service.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceCountries",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringServiceCountryListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringServiceCountryListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/peering/arm-peering/src/operations/peeringServiceLocations.ts b/sdk/peering/arm-peering/src/operations/peeringServiceLocations.ts
index dd0262656860..e00d5e245342 100644
--- a/sdk/peering/arm-peering/src/operations/peeringServiceLocations.ts
+++ b/sdk/peering/arm-peering/src/operations/peeringServiceLocations.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -27,11 +26,11 @@ export class PeeringServiceLocations {
}
/**
- * Lists all of the available peering service locations for the specified kind of peering.
+ * Lists all of the available locations for peering service.
* @param [options] The optional parameters
* @returns Promise
*/
- list(options?: msRest.RequestOptionsBase): Promise;
+ list(options?: Models.PeeringServiceLocationsListOptionalParams): Promise;
/**
* @param callback The callback
*/
@@ -40,8 +39,8 @@ export class PeeringServiceLocations {
* @param options The optional parameters
* @param callback The callback
*/
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ list(options: Models.PeeringServiceLocationsListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(options?: Models.PeeringServiceLocationsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -51,12 +50,12 @@ export class PeeringServiceLocations {
}
/**
- * Lists all of the available peering service locations for the specified kind of peering.
+ * Lists all of the available locations for peering service.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise
*/
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listNext(nextPageLink: string, options?: Models.PeeringServiceLocationsListNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
@@ -67,8 +66,8 @@ export class PeeringServiceLocations {
* @param options The optional parameters
* @param callback The callback
*/
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options: Models.PeeringServiceLocationsListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: Models.PeeringServiceLocationsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
@@ -88,6 +87,7 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
+ Parameters.country,
Parameters.apiVersion
],
headerParameters: [
@@ -111,6 +111,10 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.country,
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/peeringServicePrefixes.ts b/sdk/peering/arm-peering/src/operations/peeringServicePrefixes.ts
deleted file mode 100644
index be55a7d444d9..000000000000
--- a/sdk/peering/arm-peering/src/operations/peeringServicePrefixes.ts
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/peeringServicePrefixesMappers";
-import * as Parameters from "../models/parameters";
-import { PeeringManagementClientContext } from "../peeringManagementClientContext";
-
-/** Class representing a PeeringServicePrefixes. */
-export class PeeringServicePrefixes {
- private readonly client: PeeringManagementClientContext;
-
- /**
- * Create a PeeringServicePrefixes.
- * @param {PeeringManagementClientContext} client Reference to the service client.
- */
- constructor(client: PeeringManagementClientContext) {
- this.client = client;
- }
-
- /**
- * Gets the peering service prefix.
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name.
- * @param callback The callback
- */
- get(resourceGroupName: string, peeringServiceName: string, prefixName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, peeringServiceName: string, prefixName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- peeringServiceName,
- prefixName,
- options
- },
- getOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Creates or updates the peering prefix.
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name
- * @param peeringServicePrefix The IP prefix for an peering
- * @param [options] The optional parameters
- * @returns Promise
- */
- createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, peeringServicePrefix: Models.PeeringServicePrefix, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name
- * @param peeringServicePrefix The IP prefix for an peering
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, peeringServicePrefix: Models.PeeringServicePrefix, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name
- * @param peeringServicePrefix The IP prefix for an peering
- * @param options The optional parameters
- * @param callback The callback
- */
- createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, peeringServicePrefix: Models.PeeringServicePrefix, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, peeringServicePrefix: Models.PeeringServicePrefix, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- peeringServiceName,
- prefixName,
- peeringServicePrefix,
- options
- },
- createOrUpdateOperationSpec,
- callback) as Promise;
- }
-
- /**
- * removes the peering prefix.
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
- * @param prefixName The prefix name
- * @param options The optional parameters
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- peeringServiceName,
- prefixName,
- options
- },
- deleteMethodOperationSpec,
- callback);
- }
-}
-
-// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}",
- urlParameters: [
- Parameters.resourceGroupName,
- Parameters.peeringServiceName,
- Parameters.prefixName,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.PeeringServicePrefix
- },
- default: {
- bodyMapper: Mappers.ErrorResponse
- }
- },
- serializer
-};
-
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}",
- urlParameters: [
- Parameters.resourceGroupName,
- Parameters.peeringServiceName,
- Parameters.prefixName,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "peeringServicePrefix",
- mapper: {
- ...Mappers.PeeringServicePrefix,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.PeeringServicePrefix
- },
- 201: {
- bodyMapper: Mappers.PeeringServicePrefix
- },
- default: {
- bodyMapper: Mappers.ErrorResponse
- }
- },
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}",
- urlParameters: [
- Parameters.resourceGroupName,
- Parameters.peeringServiceName,
- Parameters.prefixName,
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {},
- 204: {},
- default: {
- bodyMapper: Mappers.ErrorResponse
- }
- },
- serializer
-};
diff --git a/sdk/peering/arm-peering/src/operations/peeringServiceProviders.ts b/sdk/peering/arm-peering/src/operations/peeringServiceProviders.ts
index edbad85b30c6..e144d857a255 100644
--- a/sdk/peering/arm-peering/src/operations/peeringServiceProviders.ts
+++ b/sdk/peering/arm-peering/src/operations/peeringServiceProviders.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -111,6 +110,9 @@ const listNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/peeringServices.ts b/sdk/peering/arm-peering/src/operations/peeringServices.ts
index 46b91d13e22d..09aa104df394 100644
--- a/sdk/peering/arm-peering/src/operations/peeringServices.ts
+++ b/sdk/peering/arm-peering/src/operations/peeringServices.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -448,6 +447,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
@@ -469,6 +471,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/peerings.ts b/sdk/peering/arm-peering/src/operations/peerings.ts
index 5ae8d6aac042..b24c22fb8d41 100644
--- a/sdk/peering/arm-peering/src/operations/peerings.ts
+++ b/sdk/peering/arm-peering/src/operations/peerings.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -448,6 +447,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
@@ -469,6 +471,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/prefixes.ts b/sdk/peering/arm-peering/src/operations/prefixes.ts
index ae39a7f70bce..27938874680f 100644
--- a/sdk/peering/arm-peering/src/operations/prefixes.ts
+++ b/sdk/peering/arm-peering/src/operations/prefixes.ts
@@ -1,7 +1,6 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * 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
@@ -27,27 +26,138 @@ export class Prefixes {
}
/**
- * Lists the peerings prefix in the resource group.
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
+ * Gets an existing prefix with the specified name under the given subscription, resource group and
+ * peering service.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: Models.PrefixesGetOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, peeringServiceName: string, prefixName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, peeringServiceName: string, prefixName: string, options: Models.PrefixesGetOptionalParams, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: Models.PrefixesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringServiceName,
+ prefixName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a new prefix with the specified name under the given subscription, resource group and
+ * peering service.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: Models.PrefixesCreateOrUpdateOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param callback The callback
+ */
+ createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, options: Models.PrefixesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ createOrUpdate(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: Models.PrefixesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringServiceName,
+ prefixName,
+ options
+ },
+ createOrUpdateOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Deletes an existing prefix with the specified name under the given subscription, resource group
+ * and peering service.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param callback The callback
+ */
+ deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
+ * @param prefixName The name of the prefix.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, peeringServiceName: string, prefixName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringServiceName,
+ prefixName,
+ options
+ },
+ deleteMethodOperationSpec,
+ callback);
+ }
+
+ /**
+ * Lists all prefixes under the given subscription, resource group and peering service.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
* @param [options] The optional parameters
* @returns Promise
*/
- listByPeeringService(resourceGroupName: string, peeringServiceName: string, options?: msRest.RequestOptionsBase): Promise;
+ listByPeeringService(resourceGroupName: string, peeringServiceName: string, options?: Models.PrefixesListByPeeringServiceOptionalParams): Promise;
/**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
* @param callback The callback
*/
listByPeeringService(resourceGroupName: string, peeringServiceName: string, callback: msRest.ServiceCallback): void;
/**
- * @param resourceGroupName The resource group name.
- * @param peeringServiceName The peering service name.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringServiceName The name of the peering service.
* @param options The optional parameters
* @param callback The callback
*/
- listByPeeringService(resourceGroupName: string, peeringServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByPeeringService(resourceGroupName: string, peeringServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listByPeeringService(resourceGroupName: string, peeringServiceName: string, options: Models.PrefixesListByPeeringServiceOptionalParams, callback: msRest.ServiceCallback): void;
+ listByPeeringService(resourceGroupName: string, peeringServiceName: string, options?: Models.PrefixesListByPeeringServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -59,12 +169,12 @@ export class Prefixes {
}
/**
- * Lists the peerings prefix in the resource group.
+ * Lists all prefixes under the given subscription, resource group and peering service.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise
*/
- listByPeeringServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ listByPeeringServiceNext(nextPageLink: string, options?: Models.PrefixesListByPeeringServiceNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
@@ -75,8 +185,8 @@ export class Prefixes {
* @param options The optional parameters
* @param callback The callback
*/
- listByPeeringServiceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByPeeringServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listByPeeringServiceNext(nextPageLink: string, options: Models.PrefixesListByPeeringServiceNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listByPeeringServiceNext(nextPageLink: string, options?: Models.PrefixesListByPeeringServiceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
@@ -89,6 +199,103 @@ export class Prefixes {
// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringServiceName,
+ Parameters.prefixName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.expand,
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringServicePrefix
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const createOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringServiceName,
+ Parameters.prefixName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: {
+ prefix: [
+ "options",
+ "prefix"
+ ],
+ peeringServicePrefixKey: [
+ "options",
+ "peeringServicePrefixKey"
+ ]
+ },
+ mapper: {
+ ...Mappers.PeeringServicePrefix,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringServicePrefix
+ },
+ 201: {
+ bodyMapper: Mappers.PeeringServicePrefix
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const deleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes/{prefixName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringServiceName,
+ Parameters.prefixName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
const listByPeeringServiceOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/prefixes",
@@ -98,6 +305,7 @@ const listByPeeringServiceOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
+ Parameters.expand,
Parameters.apiVersion
],
headerParameters: [
@@ -121,6 +329,10 @@ const listByPeeringServiceNextOperationSpec: msRest.OperationSpec = {
urlParameters: [
Parameters.nextPageLink
],
+ queryParameters: [
+ Parameters.expand,
+ Parameters.apiVersion
+ ],
headerParameters: [
Parameters.acceptLanguage
],
diff --git a/sdk/peering/arm-peering/src/operations/receivedRoutes.ts b/sdk/peering/arm-peering/src/operations/receivedRoutes.ts
new file mode 100644
index 000000000000..294bc69cd961
--- /dev/null
+++ b/sdk/peering/arm-peering/src/operations/receivedRoutes.ts
@@ -0,0 +1,150 @@
+/*
+ * 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 * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/receivedRoutesMappers";
+import * as Parameters from "../models/parameters";
+import { PeeringManagementClientContext } from "../peeringManagementClientContext";
+
+/** Class representing a ReceivedRoutes. */
+export class ReceivedRoutes {
+ private readonly client: PeeringManagementClientContext;
+
+ /**
+ * Create a ReceivedRoutes.
+ * @param {PeeringManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: PeeringManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists the prefixes received over the specified peering under the given subscription and resource
+ * group.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByPeering(resourceGroupName: string, peeringName: string, options?: Models.ReceivedRoutesListByPeeringOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param callback The callback
+ */
+ listByPeering(resourceGroupName: string, peeringName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByPeering(resourceGroupName: string, peeringName: string, options: Models.ReceivedRoutesListByPeeringOptionalParams, callback: msRest.ServiceCallback): void;
+ listByPeering(resourceGroupName: string, peeringName: string, options?: Models.ReceivedRoutesListByPeeringOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringName,
+ options
+ },
+ listByPeeringOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the prefixes received over the specified peering under the given subscription and resource
+ * group.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByPeeringNext(nextPageLink: string, options?: Models.ReceivedRoutesListByPeeringNextOptionalParams): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByPeeringNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByPeeringNext(nextPageLink: string, options: Models.ReceivedRoutesListByPeeringNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listByPeeringNext(nextPageLink: string, options?: Models.ReceivedRoutesListByPeeringNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByPeeringNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByPeeringOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/receivedRoutes",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.prefix,
+ Parameters.asPath,
+ Parameters.originAsValidationState,
+ Parameters.rpkiValidationState,
+ Parameters.skipToken,
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringReceivedRouteListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByPeeringNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.prefix,
+ Parameters.asPath,
+ Parameters.originAsValidationState,
+ Parameters.rpkiValidationState,
+ Parameters.skipToken,
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringReceivedRouteListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/peering/arm-peering/src/operations/registeredAsns.ts b/sdk/peering/arm-peering/src/operations/registeredAsns.ts
new file mode 100644
index 000000000000..6fea4767bb3b
--- /dev/null
+++ b/sdk/peering/arm-peering/src/operations/registeredAsns.ts
@@ -0,0 +1,341 @@
+/*
+ * 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 * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/registeredAsnsMappers";
+import * as Parameters from "../models/parameters";
+import { PeeringManagementClientContext } from "../peeringManagementClientContext";
+
+/** Class representing a RegisteredAsns. */
+export class RegisteredAsns {
+ private readonly client: PeeringManagementClientContext;
+
+ /**
+ * Create a RegisteredAsns.
+ * @param {PeeringManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: PeeringManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets an existing registered ASN with the specified name under the given subscription, resource
+ * group and peering.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the registered ASN.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the registered ASN.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, peeringName: string, registeredAsnName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the registered ASN.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, peeringName: string, registeredAsnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringName,
+ registeredAsnName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a new registered ASN with the specified name under the given subscription, resource
+ * group and peering.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the ASN.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: Models.RegisteredAsnsCreateOrUpdateOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the ASN.
+ * @param callback The callback
+ */
+ createOrUpdate(resourceGroupName: string, peeringName: string, registeredAsnName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the ASN.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ createOrUpdate(resourceGroupName: string, peeringName: string, registeredAsnName: string, options: Models.RegisteredAsnsCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ createOrUpdate(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: Models.RegisteredAsnsCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringName,
+ registeredAsnName,
+ options
+ },
+ createOrUpdateOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Deletes an existing registered ASN with the specified name under the given subscription,
+ * resource group and peering.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the registered ASN.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the registered ASN.
+ * @param callback The callback
+ */
+ deleteMethod(resourceGroupName: string, peeringName: string, registeredAsnName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredAsnName The name of the registered ASN.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ deleteMethod(resourceGroupName: string, peeringName: string, registeredAsnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, peeringName: string, registeredAsnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringName,
+ registeredAsnName,
+ options
+ },
+ deleteMethodOperationSpec,
+ callback);
+ }
+
+ /**
+ * Lists all registered ASNs under the given subscription, resource group and peering.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByPeering(resourceGroupName: string, peeringName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param callback The callback
+ */
+ listByPeering(resourceGroupName: string, peeringName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByPeering(resourceGroupName: string, peeringName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByPeering(resourceGroupName: string, peeringName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ peeringName,
+ options
+ },
+ listByPeeringOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all registered ASNs under the given subscription, resource group and peering.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByPeeringNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByPeeringNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByPeeringNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByPeeringNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByPeeringNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns/{registeredAsnName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringName,
+ Parameters.registeredAsnName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringRegisteredAsn
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const createOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns/{registeredAsnName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringName,
+ Parameters.registeredAsnName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: {
+ asn: [
+ "options",
+ "asn"
+ ]
+ },
+ mapper: {
+ ...Mappers.PeeringRegisteredAsn,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringRegisteredAsn
+ },
+ 201: {
+ bodyMapper: Mappers.PeeringRegisteredAsn
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const deleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns/{registeredAsnName}",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringName,
+ Parameters.registeredAsnName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByPeeringOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peerings/{peeringName}/registeredAsns",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.peeringName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringRegisteredAsnListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByPeeringNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PeeringRegisteredAsnListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/peering/arm-peering/src/operations/registeredPrefixes.ts b/sdk/peering/arm-peering/src/operations/registeredPrefixes.ts
new file mode 100644
index 000000000000..c9a874d75022
--- /dev/null
+++ b/sdk/peering/arm-peering/src/operations/registeredPrefixes.ts
@@ -0,0 +1,341 @@
+/*
+ * 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 * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/registeredPrefixesMappers";
+import * as Parameters from "../models/parameters";
+import { PeeringManagementClientContext } from "../peeringManagementClientContext";
+
+/** Class representing a RegisteredPrefixes. */
+export class RegisteredPrefixes {
+ private readonly client: PeeringManagementClientContext;
+
+ /**
+ * Create a RegisteredPrefixes.
+ * @param {PeeringManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: PeeringManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets an existing registered prefix with the specified name under the given subscription,
+ * resource group and peering.
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredPrefixName The name of the registered prefix.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, peeringName: string, registeredPrefixName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredPrefixName The name of the registered prefix.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, peeringName: string, registeredPrefixName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group.
+ * @param peeringName The name of the peering.
+ * @param registeredPrefixName The name of the registered prefix.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, peeringName: string, registeredPrefixName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, peeringName: string, registeredPrefixName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback