diff --git a/sdk/peering/arm-peering/src/models/index.ts b/sdk/peering/arm-peering/src/models/index.ts index 4cd61c119255..f492730dc84c 100644 --- a/sdk/peering/arm-peering/src/models/index.ts +++ b/sdk/peering/arm-peering/src/models/index.ts @@ -342,7 +342,7 @@ export interface Operation { export interface ContactDetail { /** * The role of the contact. Possible values include: 'Noc', 'Policy', 'Technical', 'Service', - * 'Other' + * 'Escalation', 'Other' */ role?: Role; /** @@ -576,6 +576,47 @@ export interface ResourceTags { tags?: { [propertyName: string]: string }; } +/** + * 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. */ @@ -725,9 +766,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.** @@ -740,6 +781,16 @@ 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. */ @@ -805,6 +856,32 @@ export interface PeeringsUpdateOptionalParams extends msRest.RequestOptionsBase tags?: { [propertyName: string]: string }; } +/** + * Optional Parameters. + */ +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. */ @@ -938,6 +1015,18 @@ export interface PeeringRegisteredPrefixListResult 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. @@ -1083,11 +1172,11 @@ export type ProvisioningState = 'Succeeded' | 'Updating' | 'Deleting' | 'Failed' /** * Defines values for Role. - * Possible values include: 'Noc', 'Policy', 'Technical', 'Service', 'Other' + * Possible values include: 'Noc', 'Policy', 'Technical', 'Service', 'Escalation', 'Other' * @readonly * @enum {string} */ -export type Role = 'Noc' | 'Policy' | 'Technical' | 'Service' | 'Other'; +export type Role = 'Noc' | 'Policy' | 'Technical' | 'Service' | 'Escalation' | 'Other'; /** * Defines values for ValidationState. @@ -1671,6 +1760,46 @@ 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. */ diff --git a/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts b/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts index 26fdfd8fe765..7cbda61a28a0 100644 --- a/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts +++ b/sdk/peering/arm-peering/src/models/legacyPeeringsMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/mappers.ts b/sdk/peering/arm-peering/src/models/mappers.ts index 071ff5f6b830..c9c39de69dba 100644 --- a/sdk/peering/arm-peering/src/models/mappers.ts +++ b/sdk/peering/arm-peering/src/models/mappers.ts @@ -908,6 +908,65 @@ 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: { @@ -1145,11 +1204,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, @@ -1169,6 +1228,23 @@ 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 PeeringListResult: msRest.CompositeMapper = { serializedName: "PeeringListResult", type: { @@ -1337,6 +1413,34 @@ export const PeeringRegisteredPrefixListResult: msRest.CompositeMapper = { } }; +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: { diff --git a/sdk/peering/arm-peering/src/models/operationsMappers.ts b/sdk/peering/arm-peering/src/models/operationsMappers.ts index 41b000418950..4051ae4ff684 100644 --- a/sdk/peering/arm-peering/src/models/operationsMappers.ts +++ b/sdk/peering/arm-peering/src/models/operationsMappers.ts @@ -7,6 +7,7 @@ */ 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 de10f622a0ff..198e95e13847 100644 --- a/sdk/peering/arm-peering/src/models/parameters.ts +++ b/sdk/peering/arm-peering/src/models/parameters.ts @@ -42,6 +42,18 @@ export const asn: msRest.OperationQueryParameter = { } } }; +export const asPath: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "asPath" + ], + mapper: { + serializedName: "asPath", + type: { + name: "String" + } + } +}; export const country: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -99,6 +111,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: { @@ -139,6 +163,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: { @@ -179,6 +215,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 c35e6b9ec5a4..96aeb2854b76 100644 --- a/sdk/peering/arm-peering/src/models/peerAsnsMappers.ts +++ b/sdk/peering/arm-peering/src/models/peerAsnsMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts b/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts index e531a47cbfde..dc63f390fc57 100644 --- a/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts +++ b/sdk/peering/arm-peering/src/models/peeringLocationsMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts b/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts index 940773dee696..e32b5370d14a 100644 --- a/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts +++ b/sdk/peering/arm-peering/src/models/peeringServiceCountriesMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts b/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts index d5032001d785..a675a4fa9ac9 100644 --- a/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts +++ b/sdk/peering/arm-peering/src/models/peeringServiceLocationsMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts b/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts index fb3ce2f16618..b205e11db8c3 100644 --- a/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts +++ b/sdk/peering/arm-peering/src/models/peeringServiceProvidersMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts b/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts index f5804e693503..866406fe8225 100644 --- a/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts +++ b/sdk/peering/arm-peering/src/models/peeringServicesMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/peeringsMappers.ts b/sdk/peering/arm-peering/src/models/peeringsMappers.ts index 34e3a0217123..f37d50dd9e6f 100644 --- a/sdk/peering/arm-peering/src/models/peeringsMappers.ts +++ b/sdk/peering/arm-peering/src/models/peeringsMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/prefixesMappers.ts b/sdk/peering/arm-peering/src/models/prefixesMappers.ts index 96304f5c5fc1..207a0fe948c0 100644 --- a/sdk/peering/arm-peering/src/models/prefixesMappers.ts +++ b/sdk/peering/arm-peering/src/models/prefixesMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, 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..6c5329eaf5a9 --- /dev/null +++ b/sdk/peering/arm-peering/src/models/receivedRoutesMappers.ts @@ -0,0 +1,14 @@ +/* + * 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. + */ + +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 index c0d59706b3f5..b3fd4c00959b 100644 --- a/sdk/peering/arm-peering/src/models/registeredAsnsMappers.ts +++ b/sdk/peering/arm-peering/src/models/registeredAsnsMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts b/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts index 830d00dfa842..9ef545c0666e 100644 --- a/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts +++ b/sdk/peering/arm-peering/src/models/registeredPrefixesMappers.ts @@ -12,6 +12,7 @@ export { ContactDetail, DirectConnection, DirectPeeringFacility, + ErrorDetail, ErrorResponse, ExchangeConnection, ExchangePeeringFacility, diff --git a/sdk/peering/arm-peering/src/operations/index.ts b/sdk/peering/arm-peering/src/operations/index.ts index beada169cc6d..a242d40af4fb 100644 --- a/sdk/peering/arm-peering/src/operations/index.ts +++ b/sdk/peering/arm-peering/src/operations/index.ts @@ -15,6 +15,7 @@ export * from "./peeringLocations"; export * from "./registeredAsns"; export * from "./registeredPrefixes"; export * from "./peerings"; +export * from "./receivedRoutes"; export * from "./peeringServiceCountries"; export * from "./peeringServiceLocations"; export * from "./prefixes"; 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..512fc7ab706a --- /dev/null +++ b/sdk/peering/arm-peering/src/operations/receivedRoutes.ts @@ -0,0 +1,143 @@ +/* + * 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/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?: 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 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 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PeeringReceivedRouteListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/peering/arm-peering/src/peeringManagementClient.ts b/sdk/peering/arm-peering/src/peeringManagementClient.ts index e5fc2f3ad100..97b5b33d3f0c 100644 --- a/sdk/peering/arm-peering/src/peeringManagementClient.ts +++ b/sdk/peering/arm-peering/src/peeringManagementClient.ts @@ -25,6 +25,7 @@ class PeeringManagementClient extends PeeringManagementClientContext { registeredAsns: operations.RegisteredAsns; registeredPrefixes: operations.RegisteredPrefixes; peerings: operations.Peerings; + receivedRoutes: operations.ReceivedRoutes; peeringServiceCountries: operations.PeeringServiceCountries; peeringServiceLocations: operations.PeeringServiceLocations; prefixes: operations.Prefixes; @@ -46,6 +47,7 @@ class PeeringManagementClient extends PeeringManagementClientContext { this.registeredAsns = new operations.RegisteredAsns(this); this.registeredPrefixes = new operations.RegisteredPrefixes(this); this.peerings = new operations.Peerings(this); + this.receivedRoutes = new operations.ReceivedRoutes(this); this.peeringServiceCountries = new operations.PeeringServiceCountries(this); this.peeringServiceLocations = new operations.PeeringServiceLocations(this); this.prefixes = new operations.Prefixes(this); diff --git a/sdk/peering/arm-peering/src/peeringManagementClientContext.ts b/sdk/peering/arm-peering/src/peeringManagementClientContext.ts index 326b51242ac7..b69ad7b2e2fa 100644 --- a/sdk/peering/arm-peering/src/peeringManagementClientContext.ts +++ b/sdk/peering/arm-peering/src/peeringManagementClientContext.ts @@ -44,7 +44,7 @@ export class PeeringManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = '2020-01-01-preview'; + this.apiVersion = '2020-04-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";