From 53992dba94bd62a57b081fb86ccd2053ed4b15c3 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 28 Jun 2021 06:15:32 +0000 Subject: [PATCH] CodeGen from PR 15001 in Azure/azure-rest-api-specs Merge e8f1edfd9b18970a5cd22a9d77dcb3fec8782205 into 3cf8aa90fbdf15379f62a1e8e0c3dcbd9c4d46af --- sdk/dns/arm-dns/LICENSE.txt | 2 +- sdk/dns/arm-dns/README.md | 8 +- sdk/dns/arm-dns/package.json | 2 +- sdk/dns/arm-dns/rollup.config.js | 4 +- sdk/dns/arm-dns/src/dnsManagementClient.ts | 5 +- .../arm-dns/src/dnsManagementClientContext.ts | 13 ++-- .../dnsResourceReferenceOperationsMappers.ts | 4 +- sdk/dns/arm-dns/src/models/index.ts | 78 ++++++++++++++++++- sdk/dns/arm-dns/src/models/mappers.ts | 11 ++- sdk/dns/arm-dns/src/models/parameters.ts | 29 ++++--- .../arm-dns/src/models/recordSetsMappers.ts | 4 +- sdk/dns/arm-dns/src/models/zonesMappers.ts | 4 +- .../dnsResourceReferenceOperations.ts | 5 +- sdk/dns/arm-dns/src/operations/index.ts | 5 +- sdk/dns/arm-dns/src/operations/recordSets.ts | 38 ++++++--- sdk/dns/arm-dns/src/operations/zones.ts | 25 +++--- 16 files changed, 166 insertions(+), 71 deletions(-) diff --git a/sdk/dns/arm-dns/LICENSE.txt b/sdk/dns/arm-dns/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/dns/arm-dns/LICENSE.txt +++ b/sdk/dns/arm-dns/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 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/dns/arm-dns/README.md b/sdk/dns/arm-dns/README.md index 806e1ac8583a..08ab0c6283c5 100644 --- a/sdk/dns/arm-dns/README.md +++ b/sdk/dns/arm-dns/README.md @@ -1,11 +1,11 @@ ## Azure DnsManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DnsManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for DnsManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-dns @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. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ 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 get recordSets as an example written in JavaScript. ##### Sample code @@ -89,7 +87,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmDns.DnsManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/dns/arm-dns/package.json b/sdk/dns/arm-dns/package.json index 37bcfae3c4ae..eb6cee0c9b59 100644 --- a/sdk/dns/arm-dns/package.json +++ b/sdk/dns/arm-dns/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dns/arm-dns", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/dns/arm-dns", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/dns/arm-dns/rollup.config.js b/sdk/dns/arm-dns/rollup.config.js index 2737b1e41813..c11a36e0461a 100644 --- a/sdk/dns/arm-dns/rollup.config.js +++ b/sdk/dns/arm-dns/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/dns/arm-dns/src/dnsManagementClient.ts b/sdk/dns/arm-dns/src/dnsManagementClient.ts index 5a7d85c07575..3ea01edd64b2 100644 --- a/sdk/dns/arm-dns/src/dnsManagementClient.ts +++ b/sdk/dns/arm-dns/src/dnsManagementClient.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 diff --git a/sdk/dns/arm-dns/src/dnsManagementClientContext.ts b/sdk/dns/arm-dns/src/dnsManagementClientContext.ts index f11d7d427648..419da16c1e47 100644 --- a/sdk/dns/arm-dns/src/dnsManagementClientContext.ts +++ b/sdk/dns/arm-dns/src/dnsManagementClientContext.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 @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-dns"; const packageVersion = "4.1.0"; @@ -44,7 +43,7 @@ export class DnsManagementClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -59,10 +58,10 @@ export class DnsManagementClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts b/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts index c355dc3a376f..5fc7824810e1 100644 --- a/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.ts +++ b/sdk/dns/arm-dns/src/models/dnsResourceReferenceOperationsMappers.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. diff --git a/sdk/dns/arm-dns/src/models/index.ts b/sdk/dns/arm-dns/src/models/index.ts index d1290f20e2e1..266893022edc 100644 --- a/sdk/dns/arm-dns/src/models/index.ts +++ b/sdk/dns/arm-dns/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. @@ -310,6 +310,12 @@ export interface Zone extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maxNumberOfRecordSets?: number; + /** + * The maximum number of records per record set that can be created in this DNS zone. This is a + * read-only property and any attempt to set this value will be ignored. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maxNumberOfRecordsPerRecordSet?: number; /** * The current number of record sets in this DNS zone. This is a read-only property and any * attempt to set this value will be ignored. @@ -470,6 +476,54 @@ export interface RecordSetsListAllByDnsZoneOptionalParams extends msRest.Request recordSetNameSuffix?: string; } +/** + * Optional Parameters. + */ +export interface RecordSetsListByTypeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + top?: number; + /** + * The suffix label of the record set name that has to be used to filter the record set + * enumerations. If this parameter is specified, Enumeration will return only records that end + * with . + */ + recordsetnamesuffix?: string; +} + +/** + * Optional Parameters. + */ +export interface RecordSetsListByDnsZoneNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + top?: number; + /** + * The suffix label of the record set name that has to be used to filter the record set + * enumerations. If this parameter is specified, Enumeration will return only records that end + * with . + */ + recordsetnamesuffix?: string; +} + +/** + * Optional Parameters. + */ +export interface RecordSetsListAllByDnsZoneNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + top?: number; + /** + * The suffix label of the record set name that has to be used to filter the record set + * enumerations. If this parameter is specified, Enumeration will return only records that end + * with . + */ + recordSetNameSuffix?: string; +} + /** * Optional Parameters. */ @@ -539,6 +593,26 @@ export interface ZonesBeginDeleteMethodOptionalParams extends msRest.RequestOpti ifMatch?: string; } +/** + * Optional Parameters. + */ +export interface ZonesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of record sets to return. If not specified, returns up to 100 record sets. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface ZonesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The maximum number of DNS zones to return. If not specified, returns up to 100 zones. + */ + top?: number; +} + /** * An interface representing DnsManagementClientOptions. */ diff --git a/sdk/dns/arm-dns/src/models/mappers.ts b/sdk/dns/arm-dns/src/models/mappers.ts index 75602f130641..2ccf2ec0e4b6 100644 --- a/sdk/dns/arm-dns/src/models/mappers.ts +++ b/sdk/dns/arm-dns/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. @@ -536,6 +536,13 @@ export const Zone: msRest.CompositeMapper = { name: "Number" } }, + maxNumberOfRecordsPerRecordSet: { + readOnly: true, + serializedName: "properties.maxNumberOfRecordsPerRecordSet", + type: { + name: "Number" + } + }, numberOfRecordSets: { readOnly: true, serializedName: "properties.numberOfRecordSets", diff --git a/sdk/dns/arm-dns/src/models/parameters.ts b/sdk/dns/arm-dns/src/models/parameters.ts index c7f054e39aac..88bca1383e2b 100644 --- a/sdk/dns/arm-dns/src/models/parameters.ts +++ b/sdk/dns/arm-dns/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 @@ -65,6 +64,18 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const recordsetnamesuffix: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "recordsetnamesuffix" + ], + mapper: { + serializedName: "$recordsetnamesuffix", + type: { + name: "String" + } + } +}; export const recordSetNameSuffix: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -99,18 +110,6 @@ export const recordType: msRest.OperationURLParameter = { } } }; -export const recordsetnamesuffix: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "recordsetnamesuffix" - ], - mapper: { - serializedName: "$recordsetnamesuffix", - type: { - name: "String" - } - } -}; export const relativeRecordSetName: msRest.OperationURLParameter = { parameterPath: "relativeRecordSetName", mapper: { diff --git a/sdk/dns/arm-dns/src/models/recordSetsMappers.ts b/sdk/dns/arm-dns/src/models/recordSetsMappers.ts index d564d6db7062..a3965ee419e6 100644 --- a/sdk/dns/arm-dns/src/models/recordSetsMappers.ts +++ b/sdk/dns/arm-dns/src/models/recordSetsMappers.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. diff --git a/sdk/dns/arm-dns/src/models/zonesMappers.ts b/sdk/dns/arm-dns/src/models/zonesMappers.ts index 177ff6d4fc9a..d8f1fa284496 100644 --- a/sdk/dns/arm-dns/src/models/zonesMappers.ts +++ b/sdk/dns/arm-dns/src/models/zonesMappers.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. diff --git a/sdk/dns/arm-dns/src/operations/dnsResourceReferenceOperations.ts b/sdk/dns/arm-dns/src/operations/dnsResourceReferenceOperations.ts index e315c3713111..954bcfde593a 100644 --- a/sdk/dns/arm-dns/src/operations/dnsResourceReferenceOperations.ts +++ b/sdk/dns/arm-dns/src/operations/dnsResourceReferenceOperations.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 diff --git a/sdk/dns/arm-dns/src/operations/index.ts b/sdk/dns/arm-dns/src/operations/index.ts index c3c01f8bfd52..c3730267b920 100644 --- a/sdk/dns/arm-dns/src/operations/index.ts +++ b/sdk/dns/arm-dns/src/operations/index.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 diff --git a/sdk/dns/arm-dns/src/operations/recordSets.ts b/sdk/dns/arm-dns/src/operations/recordSets.ts index 36ca178620ce..97f9f5d14adc 100644 --- a/sdk/dns/arm-dns/src/operations/recordSets.ts +++ b/sdk/dns/arm-dns/src/operations/recordSets.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 @@ -321,7 +320,7 @@ export class RecordSets { * @param [options] The optional parameters * @returns Promise */ - listByTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByTypeNext(nextPageLink: string, options?: Models.RecordSetsListByTypeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -332,8 +331,8 @@ export class RecordSets { * @param options The optional parameters * @param callback The callback */ - listByTypeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByTypeNext(nextPageLink: string, options: Models.RecordSetsListByTypeNextOptionalParams, callback: msRest.ServiceCallback): void; + listByTypeNext(nextPageLink: string, options?: Models.RecordSetsListByTypeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -349,7 +348,7 @@ export class RecordSets { * @param [options] The optional parameters * @returns Promise */ - listByDnsZoneNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDnsZoneNext(nextPageLink: string, options?: Models.RecordSetsListByDnsZoneNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -360,8 +359,8 @@ export class RecordSets { * @param options The optional parameters * @param callback The callback */ - listByDnsZoneNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDnsZoneNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDnsZoneNext(nextPageLink: string, options: Models.RecordSetsListByDnsZoneNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDnsZoneNext(nextPageLink: string, options?: Models.RecordSetsListByDnsZoneNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -377,7 +376,7 @@ export class RecordSets { * @param [options] The optional parameters * @returns Promise */ - listAllByDnsZoneNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listAllByDnsZoneNext(nextPageLink: string, options?: Models.RecordSetsListAllByDnsZoneNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -388,8 +387,8 @@ export class RecordSets { * @param options The optional parameters * @param callback The callback */ - listAllByDnsZoneNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listAllByDnsZoneNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listAllByDnsZoneNext(nextPageLink: string, options: Models.RecordSetsListAllByDnsZoneNextOptionalParams, callback: msRest.ServiceCallback): void; + listAllByDnsZoneNext(nextPageLink: string, options?: Models.RecordSetsListAllByDnsZoneNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -619,6 +618,11 @@ const listByTypeNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.recordsetnamesuffix, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -640,6 +644,11 @@ const listByDnsZoneNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.recordsetnamesuffix, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -661,6 +670,11 @@ const listAllByDnsZoneNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.recordSetNameSuffix, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/dns/arm-dns/src/operations/zones.ts b/sdk/dns/arm-dns/src/operations/zones.ts index 950ecffd2349..fdf9baafca75 100644 --- a/sdk/dns/arm-dns/src/operations/zones.ts +++ b/sdk/dns/arm-dns/src/operations/zones.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 @@ -221,7 +220,7 @@ export class Zones { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.ZonesListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -232,8 +231,8 @@ export class Zones { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.ZonesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.ZonesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -249,7 +248,7 @@ export class Zones { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ZonesListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -260,8 +259,8 @@ export class Zones { * @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.ZonesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ZonesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -451,6 +450,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -472,6 +475,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ],