diff --git a/sdk/peering/arm-peering/CHANGELOG.md b/sdk/peering/arm-peering/CHANGELOG.md index 581a1d35872f..49760969c2c4 100644 --- a/sdk/peering/arm-peering/CHANGELOG.md +++ b/sdk/peering/arm-peering/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 3.0.0 (2022-01-25) + +**Features** + + - Added Type Alias SourceType + - Added Enum KnownSourceType + - Enum KnownDirectPeeringType has a new value EdgeZoneForOperators + +**Breaking Changes** + + - Operation LegacyPeerings.list has a new signature + - Operation LookingGlass.invoke has a new signature + - Operation PeeringLocations.list has a new signature + - Removed Enum KnownLegacyPeeringsKind + - Removed Enum KnownLookingGlassCommand + - Removed Enum KnownLookingGlassSourceType + - Removed Enum KnownPeeringLocationsDirectPeeringType + - Removed Enum KnownPeeringLocationsKind + + ## 2.0.0 (2022-01-20) The package of @azure/arm-peering is using our next generation design principles since version 2.0.0, which contains breaking changes. diff --git a/sdk/peering/arm-peering/_meta.json b/sdk/peering/arm-peering/_meta.json index c83565f30b66..5406f12c1c05 100644 --- a/sdk/peering/arm-peering/_meta.json +++ b/sdk/peering/arm-peering/_meta.json @@ -1,7 +1,7 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", + "commit": "b9d1f9b744cc777139bcd812fa1d4b4e679bfef9", "readme": "specification/peering/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/peering/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/peering/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/peering/arm-peering/api-extractor.json b/sdk/peering/arm-peering/api-extractor.json index 590552f6c518..5aae5edbdca7 100644 --- a/sdk/peering/arm-peering/api-extractor.json +++ b/sdk/peering/arm-peering/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-peering.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/peering/arm-peering/package.json b/sdk/peering/arm-peering/package.json index d71673b6a2ae..29ed4ec197c6 100644 --- a/sdk/peering/arm-peering/package.json +++ b/sdk/peering/arm-peering/package.json @@ -3,8 +3,10 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for PeeringManagementClient.", - "version": "2.0.0", - "engines": { "node": ">=12.0.0" }, + "version": "3.0.0", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.0.0", @@ -12,7 +14,13 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -39,7 +47,9 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -86,16 +96,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { "path": "src/PeeringManagementClient.ts", "prefix": "packageDetails" } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": ["azure"], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-peering?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/peering/arm-peering/review/arm-peering.api.md b/sdk/peering/arm-peering/review/arm-peering.api.md index b4d1ec9aa2de..beadd9e74d92 100644 --- a/sdk/peering/arm-peering/review/arm-peering.api.md +++ b/sdk/peering/arm-peering/review/arm-peering.api.md @@ -245,6 +245,8 @@ export enum KnownDirectPeeringType { // (undocumented) Edge = "Edge", // (undocumented) + EdgeZoneForOperators = "EdgeZoneForOperators", + // (undocumented) Internal = "Internal", // (undocumented) Ix = "Ix", @@ -290,58 +292,6 @@ export enum KnownLearnedType { ViaSession = "ViaSession" } -// @public -export enum KnownLegacyPeeringsKind { - // (undocumented) - Direct = "Direct", - // (undocumented) - Exchange = "Exchange" -} - -// @public -export enum KnownLookingGlassCommand { - // (undocumented) - BgpRoute = "BgpRoute", - // (undocumented) - Ping = "Ping", - // (undocumented) - Traceroute = "Traceroute" -} - -// @public -export enum KnownLookingGlassSourceType { - // (undocumented) - AzureRegion = "AzureRegion", - // (undocumented) - EdgeSite = "EdgeSite" -} - -// @public -export enum KnownPeeringLocationsDirectPeeringType { - // (undocumented) - Cdn = "Cdn", - // (undocumented) - Edge = "Edge", - // (undocumented) - Internal = "Internal", - // (undocumented) - Ix = "Ix", - // (undocumented) - IxRs = "IxRs", - // (undocumented) - Transit = "Transit", - // (undocumented) - Voice = "Voice" -} - -// @public -export enum KnownPeeringLocationsKind { - // (undocumented) - Direct = "Direct", - // (undocumented) - Exchange = "Exchange" -} - // @public export enum KnownPrefixValidationState { // (undocumented) @@ -458,6 +408,14 @@ export enum KnownSize { Unlimited = "Unlimited" } +// @public +export enum KnownSourceType { + // (undocumented) + AzureRegion = "AzureRegion", + // (undocumented) + EdgeSite = "EdgeSite" +} + // @public export enum KnownTier { // (undocumented) @@ -483,12 +441,9 @@ export type LearnedType = string; // @public export interface LegacyPeerings { - list(peeringLocation: string, kind: LegacyPeeringsKind, options?: LegacyPeeringsListOptionalParams): PagedAsyncIterableIterator; + list(peeringLocation: string, kind: Kind, options?: LegacyPeeringsListOptionalParams): PagedAsyncIterableIterator; } -// @public -export type LegacyPeeringsKind = string; - // @public export interface LegacyPeeringsListNextOptionalParams extends coreClient.OperationOptions { asn?: number; @@ -514,12 +469,9 @@ export interface LogAnalyticsWorkspaceProperties { // @public export interface LookingGlass { - invoke(command: LookingGlassCommand, sourceType: LookingGlassSourceType, sourceLocation: string, destinationIP: string, options?: LookingGlassInvokeOptionalParams): Promise; + invoke(command: Command, sourceType: SourceType, sourceLocation: string, destinationIP: string, options?: LookingGlassInvokeOptionalParams): Promise; } -// @public -export type LookingGlassCommand = string; - // @public export interface LookingGlassInvokeOptionalParams extends coreClient.OperationOptions { } @@ -533,9 +485,6 @@ export interface LookingGlassOutput { output?: string; } -// @public -export type LookingGlassSourceType = string; - // @public export interface MetricDimension { readonly displayName?: string; @@ -704,18 +653,12 @@ export interface PeeringLocationPropertiesExchange { // @public export interface PeeringLocations { - list(kind: PeeringLocationsKind, options?: PeeringLocationsListOptionalParams): PagedAsyncIterableIterator; + list(kind: Kind, options?: PeeringLocationsListOptionalParams): PagedAsyncIterableIterator; } -// @public -export type PeeringLocationsDirectPeeringType = string; - -// @public -export type PeeringLocationsKind = string; - // @public export interface PeeringLocationsListNextOptionalParams extends coreClient.OperationOptions { - directPeeringType?: PeeringLocationsDirectPeeringType; + directPeeringType?: DirectPeeringType; } // @public @@ -723,7 +666,7 @@ export type PeeringLocationsListNextResponse = PeeringLocationListResult; // @public export interface PeeringLocationsListOptionalParams extends coreClient.OperationOptions { - directPeeringType?: PeeringLocationsDirectPeeringType; + directPeeringType?: DirectPeeringType; } // @public @@ -1315,6 +1258,9 @@ export type SessionStateV6 = string; // @public export type Size = string; +// @public +export type SourceType = string; + // @public export interface SubResource { id?: string; diff --git a/sdk/peering/arm-peering/src/models/index.ts b/sdk/peering/arm-peering/src/models/index.ts index fcb782de6485..9bd5c61b8a6a 100644 --- a/sdk/peering/arm-peering/src/models/index.ts +++ b/sdk/peering/arm-peering/src/models/index.ts @@ -838,21 +838,21 @@ export enum KnownEnum0 { */ export type Enum0 = string; -/** Known values of {@link LegacyPeeringsKind} that the service accepts. */ -export enum KnownLegacyPeeringsKind { +/** Known values of {@link Kind} that the service accepts. */ +export enum KnownKind { Direct = "Direct", Exchange = "Exchange" } /** - * Defines values for LegacyPeeringsKind. \ - * {@link KnownLegacyPeeringsKind} can be used interchangeably with LegacyPeeringsKind, + * Defines values for Kind. \ + * {@link KnownKind} can be used interchangeably with Kind, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Direct** \ * **Exchange** */ -export type LegacyPeeringsKind = string; +export type Kind = string; /** Known values of {@link Tier} that the service accepts. */ export enum KnownTier { @@ -904,22 +904,6 @@ export enum KnownSize { */ export type Size = string; -/** Known values of {@link Kind} that the service accepts. */ -export enum KnownKind { - Direct = "Direct", - Exchange = "Exchange" -} - -/** - * Defines values for Kind. \ - * {@link KnownKind} can be used interchangeably with Kind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Direct** \ - * **Exchange** - */ -export type Kind = string; - /** Known values of {@link SessionAddressProvider} that the service accepts. */ export enum KnownSessionAddressProvider { Microsoft = "Microsoft", @@ -1040,7 +1024,8 @@ export enum KnownDirectPeeringType { Internal = "Internal", Ix = "Ix", IxRs = "IxRs", - Voice = "Voice" + Voice = "Voice", + EdgeZoneForOperators = "EdgeZoneForOperators" } /** @@ -1054,7 +1039,8 @@ export enum KnownDirectPeeringType { * **Internal** \ * **Ix** \ * **IxRs** \ - * **Voice** + * **Voice** \ + * **EdgeZoneForOperators** */ export type DirectPeeringType = string; @@ -1078,57 +1064,39 @@ export enum KnownProvisioningState { */ export type ProvisioningState = string; -/** Known values of {@link LookingGlassCommand} that the service accepts. */ -export enum KnownLookingGlassCommand { +/** Known values of {@link Command} that the service accepts. */ +export enum KnownCommand { Traceroute = "Traceroute", Ping = "Ping", BgpRoute = "BgpRoute" } /** - * Defines values for LookingGlassCommand. \ - * {@link KnownLookingGlassCommand} can be used interchangeably with LookingGlassCommand, + * Defines values for Command. \ + * {@link KnownCommand} can be used interchangeably with Command, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Traceroute** \ * **Ping** \ * **BgpRoute** */ -export type LookingGlassCommand = string; +export type Command = string; -/** Known values of {@link LookingGlassSourceType} that the service accepts. */ -export enum KnownLookingGlassSourceType { +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { EdgeSite = "EdgeSite", AzureRegion = "AzureRegion" } /** - * Defines values for LookingGlassSourceType. \ - * {@link KnownLookingGlassSourceType} can be used interchangeably with LookingGlassSourceType, + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **EdgeSite** \ * **AzureRegion** */ -export type LookingGlassSourceType = string; - -/** Known values of {@link Command} that the service accepts. */ -export enum KnownCommand { - Traceroute = "Traceroute", - Ping = "Ping", - BgpRoute = "BgpRoute" -} - -/** - * Defines values for Command. \ - * {@link KnownCommand} can be used interchangeably with Command, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Traceroute** \ - * **Ping** \ - * **BgpRoute** - */ -export type Command = string; +export type SourceType = string; /** Known values of {@link Role} that the service accepts. */ export enum KnownRole { @@ -1174,48 +1142,6 @@ export enum KnownValidationState { */ export type ValidationState = string; -/** Known values of {@link PeeringLocationsKind} that the service accepts. */ -export enum KnownPeeringLocationsKind { - Direct = "Direct", - Exchange = "Exchange" -} - -/** - * Defines values for PeeringLocationsKind. \ - * {@link KnownPeeringLocationsKind} can be used interchangeably with PeeringLocationsKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Direct** \ - * **Exchange** - */ -export type PeeringLocationsKind = string; - -/** Known values of {@link PeeringLocationsDirectPeeringType} that the service accepts. */ -export enum KnownPeeringLocationsDirectPeeringType { - Edge = "Edge", - Transit = "Transit", - Cdn = "Cdn", - Internal = "Internal", - Ix = "Ix", - IxRs = "IxRs", - Voice = "Voice" -} - -/** - * Defines values for PeeringLocationsDirectPeeringType. \ - * {@link KnownPeeringLocationsDirectPeeringType} can be used interchangeably with PeeringLocationsDirectPeeringType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Edge** \ - * **Transit** \ - * **Cdn** \ - * **Internal** \ - * **Ix** \ - * **IxRs** \ - * **Voice** - */ -export type PeeringLocationsDirectPeeringType = string; - /** Known values of {@link PrefixValidationState} that the service accepts. */ export enum KnownPrefixValidationState { None = "None", @@ -1361,7 +1287,7 @@ export type PeerAsnsListBySubscriptionNextResponse = PeerAsnListResult; export interface PeeringLocationsListOptionalParams extends coreClient.OperationOptions { /** The type of direct peering. */ - directPeeringType?: PeeringLocationsDirectPeeringType; + directPeeringType?: DirectPeeringType; } /** Contains response data for the list operation. */ @@ -1371,7 +1297,7 @@ export type PeeringLocationsListResponse = PeeringLocationListResult; export interface PeeringLocationsListNextOptionalParams extends coreClient.OperationOptions { /** The type of direct peering. */ - directPeeringType?: PeeringLocationsDirectPeeringType; + directPeeringType?: DirectPeeringType; } /** Contains response data for the listNext operation. */ diff --git a/sdk/peering/arm-peering/src/models/parameters.ts b/sdk/peering/arm-peering/src/models/parameters.ts index c446c78f1834..fddb6f746b36 100644 --- a/sdk/peering/arm-peering/src/models/parameters.ts +++ b/sdk/peering/arm-peering/src/models/parameters.ts @@ -72,7 +72,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-06-01", + defaultValue: "2022-01-01", isConstant: true, serializedName: "api-version", type: { @@ -191,17 +191,6 @@ export const peerAsn: OperationParameter = { mapper: PeerAsnMapper }; -export const kind1: OperationQueryParameter = { - parameterPath: "kind", - mapper: { - serializedName: "kind", - required: true, - type: { - name: "String" - } - } -}; - export const directPeeringType: OperationQueryParameter = { parameterPath: ["options", "directPeeringType"], mapper: { diff --git a/sdk/peering/arm-peering/src/operations/legacyPeerings.ts b/sdk/peering/arm-peering/src/operations/legacyPeerings.ts index e23fef24cd4f..ff24758664be 100644 --- a/sdk/peering/arm-peering/src/operations/legacyPeerings.ts +++ b/sdk/peering/arm-peering/src/operations/legacyPeerings.ts @@ -14,7 +14,7 @@ import * as Parameters from "../models/parameters"; import { PeeringManagementClient } from "../peeringManagementClient"; import { Peering, - LegacyPeeringsKind, + Kind, LegacyPeeringsListNextOptionalParams, LegacyPeeringsListOptionalParams, LegacyPeeringsListResponse, @@ -43,7 +43,7 @@ export class LegacyPeeringsImpl implements LegacyPeerings { */ public list( peeringLocation: string, - kind: LegacyPeeringsKind, + kind: Kind, options?: LegacyPeeringsListOptionalParams ): PagedAsyncIterableIterator { const iter = this.listPagingAll(peeringLocation, kind, options); @@ -62,7 +62,7 @@ export class LegacyPeeringsImpl implements LegacyPeerings { private async *listPagingPage( peeringLocation: string, - kind: LegacyPeeringsKind, + kind: Kind, options?: LegacyPeeringsListOptionalParams ): AsyncIterableIterator { let result = await this._list(peeringLocation, kind, options); @@ -82,7 +82,7 @@ export class LegacyPeeringsImpl implements LegacyPeerings { private async *listPagingAll( peeringLocation: string, - kind: LegacyPeeringsKind, + kind: Kind, options?: LegacyPeeringsListOptionalParams ): AsyncIterableIterator { for await (const page of this.listPagingPage( @@ -103,7 +103,7 @@ export class LegacyPeeringsImpl implements LegacyPeerings { */ private _list( peeringLocation: string, - kind: LegacyPeeringsKind, + kind: Kind, options?: LegacyPeeringsListOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -121,7 +121,7 @@ export class LegacyPeeringsImpl implements LegacyPeerings { */ private _listNext( peeringLocation: string, - kind: LegacyPeeringsKind, + kind: Kind, nextLink: string, options?: LegacyPeeringsListNextOptionalParams ): Promise { diff --git a/sdk/peering/arm-peering/src/operations/lookingGlass.ts b/sdk/peering/arm-peering/src/operations/lookingGlass.ts index 8b1baf0d71c2..b43d61b28d8a 100644 --- a/sdk/peering/arm-peering/src/operations/lookingGlass.ts +++ b/sdk/peering/arm-peering/src/operations/lookingGlass.ts @@ -12,8 +12,8 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { PeeringManagementClient } from "../peeringManagementClient"; import { - LookingGlassCommand, - LookingGlassSourceType, + Command, + SourceType, LookingGlassInvokeOptionalParams, LookingGlassInvokeResponse } from "../models"; @@ -39,8 +39,8 @@ export class LookingGlassImpl implements LookingGlass { * @param options The options parameters. */ invoke( - command: LookingGlassCommand, - sourceType: LookingGlassSourceType, + command: Command, + sourceType: SourceType, sourceLocation: string, destinationIP: string, options?: LookingGlassInvokeOptionalParams diff --git a/sdk/peering/arm-peering/src/operations/peeringLocations.ts b/sdk/peering/arm-peering/src/operations/peeringLocations.ts index 14e56b33fefb..2b19cea18fe4 100644 --- a/sdk/peering/arm-peering/src/operations/peeringLocations.ts +++ b/sdk/peering/arm-peering/src/operations/peeringLocations.ts @@ -14,7 +14,7 @@ import * as Parameters from "../models/parameters"; import { PeeringManagementClient } from "../peeringManagementClient"; import { PeeringLocation, - PeeringLocationsKind, + Kind, PeeringLocationsListNextOptionalParams, PeeringLocationsListOptionalParams, PeeringLocationsListResponse, @@ -40,7 +40,7 @@ export class PeeringLocationsImpl implements PeeringLocations { * @param options The options parameters. */ public list( - kind: PeeringLocationsKind, + kind: Kind, options?: PeeringLocationsListOptionalParams ): PagedAsyncIterableIterator { const iter = this.listPagingAll(kind, options); @@ -58,7 +58,7 @@ export class PeeringLocationsImpl implements PeeringLocations { } private async *listPagingPage( - kind: PeeringLocationsKind, + kind: Kind, options?: PeeringLocationsListOptionalParams ): AsyncIterableIterator { let result = await this._list(kind, options); @@ -72,7 +72,7 @@ export class PeeringLocationsImpl implements PeeringLocations { } private async *listPagingAll( - kind: PeeringLocationsKind, + kind: Kind, options?: PeeringLocationsListOptionalParams ): AsyncIterableIterator { for await (const page of this.listPagingPage(kind, options)) { @@ -86,7 +86,7 @@ export class PeeringLocationsImpl implements PeeringLocations { * @param options The options parameters. */ private _list( - kind: PeeringLocationsKind, + kind: Kind, options?: PeeringLocationsListOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -102,7 +102,7 @@ export class PeeringLocationsImpl implements PeeringLocations { * @param options The options parameters. */ private _listNext( - kind: PeeringLocationsKind, + kind: Kind, nextLink: string, options?: PeeringLocationsListNextOptionalParams ): Promise { @@ -129,7 +129,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.kind1, + Parameters.kind, Parameters.directPeeringType ], urlParameters: [Parameters.$host, Parameters.subscriptionId], @@ -149,7 +149,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { }, queryParameters: [ Parameters.apiVersion, - Parameters.kind1, + Parameters.kind, Parameters.directPeeringType ], urlParameters: [ diff --git a/sdk/peering/arm-peering/src/operationsInterfaces/legacyPeerings.ts b/sdk/peering/arm-peering/src/operationsInterfaces/legacyPeerings.ts index 2d9ae742d083..ad92abdca908 100644 --- a/sdk/peering/arm-peering/src/operationsInterfaces/legacyPeerings.ts +++ b/sdk/peering/arm-peering/src/operationsInterfaces/legacyPeerings.ts @@ -7,11 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - Peering, - LegacyPeeringsKind, - LegacyPeeringsListOptionalParams -} from "../models"; +import { Peering, Kind, LegacyPeeringsListOptionalParams } from "../models"; /// /** Interface representing a LegacyPeerings. */ @@ -25,7 +21,7 @@ export interface LegacyPeerings { */ list( peeringLocation: string, - kind: LegacyPeeringsKind, + kind: Kind, options?: LegacyPeeringsListOptionalParams ): PagedAsyncIterableIterator; } diff --git a/sdk/peering/arm-peering/src/operationsInterfaces/lookingGlass.ts b/sdk/peering/arm-peering/src/operationsInterfaces/lookingGlass.ts index 484c021c5d03..d17b672dc7b4 100644 --- a/sdk/peering/arm-peering/src/operationsInterfaces/lookingGlass.ts +++ b/sdk/peering/arm-peering/src/operationsInterfaces/lookingGlass.ts @@ -7,8 +7,8 @@ */ import { - LookingGlassCommand, - LookingGlassSourceType, + Command, + SourceType, LookingGlassInvokeOptionalParams, LookingGlassInvokeResponse } from "../models"; @@ -24,8 +24,8 @@ export interface LookingGlass { * @param options The options parameters. */ invoke( - command: LookingGlassCommand, - sourceType: LookingGlassSourceType, + command: Command, + sourceType: SourceType, sourceLocation: string, destinationIP: string, options?: LookingGlassInvokeOptionalParams diff --git a/sdk/peering/arm-peering/src/operationsInterfaces/peeringLocations.ts b/sdk/peering/arm-peering/src/operationsInterfaces/peeringLocations.ts index eeb0052fa411..4f1b5338766d 100644 --- a/sdk/peering/arm-peering/src/operationsInterfaces/peeringLocations.ts +++ b/sdk/peering/arm-peering/src/operationsInterfaces/peeringLocations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PeeringLocation, - PeeringLocationsKind, + Kind, PeeringLocationsListOptionalParams } from "../models"; @@ -22,7 +22,7 @@ export interface PeeringLocations { * @param options The options parameters. */ list( - kind: PeeringLocationsKind, + kind: Kind, options?: PeeringLocationsListOptionalParams ): PagedAsyncIterableIterator; } diff --git a/sdk/peering/arm-peering/src/peeringManagementClient.ts b/sdk/peering/arm-peering/src/peeringManagementClient.ts index bca7c7f2664e..4df3d01023b2 100644 --- a/sdk/peering/arm-peering/src/peeringManagementClient.ts +++ b/sdk/peering/arm-peering/src/peeringManagementClient.ts @@ -85,7 +85,7 @@ export class PeeringManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-peering/2.0.0`; + const packageDetails = `azsdk-js-arm-peering/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -108,7 +108,7 @@ export class PeeringManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-06-01"; + this.apiVersion = options.apiVersion || "2022-01-01"; this.cdnPeeringPrefixes = new CdnPeeringPrefixesImpl(this); this.legacyPeerings = new LegacyPeeringsImpl(this); this.lookingGlass = new LookingGlassImpl(this); diff --git a/sdk/peering/arm-peering/tsconfig.json b/sdk/peering/arm-peering/tsconfig.json index 5e356f36bc07..3e6ae96443f3 100644 --- a/sdk/peering/arm-peering/tsconfig.json +++ b/sdk/peering/arm-peering/tsconfig.json @@ -9,12 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-peering": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file