@azure/arm-appservice 13.0.3-alpha.20221101.1 → 13.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/CHANGELOG.md +2 -8
  2. package/dist/index.js +3061 -1189
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/index.d.ts +1 -0
  7. package/dist-esm/src/index.d.ts.map +1 -1
  8. package/dist-esm/src/index.js +1 -0
  9. package/dist-esm/src/index.js.map +1 -1
  10. package/dist-esm/src/operations/appServiceCertificateOrders.d.ts.map +1 -1
  11. package/dist-esm/src/operations/appServiceCertificateOrders.js +55 -21
  12. package/dist-esm/src/operations/appServiceCertificateOrders.js.map +1 -1
  13. package/dist-esm/src/operations/appServiceEnvironments.d.ts.map +1 -1
  14. package/dist-esm/src/operations/appServiceEnvironments.js +400 -157
  15. package/dist-esm/src/operations/appServiceEnvironments.js.map +1 -1
  16. package/dist-esm/src/operations/appServicePlans.d.ts.map +1 -1
  17. package/dist-esm/src/operations/appServicePlans.js +109 -42
  18. package/dist-esm/src/operations/appServicePlans.js.map +1 -1
  19. package/dist-esm/src/operations/certificateOrdersDiagnostics.d.ts.map +1 -1
  20. package/dist-esm/src/operations/certificateOrdersDiagnostics.js +19 -7
  21. package/dist-esm/src/operations/certificateOrdersDiagnostics.js.map +1 -1
  22. package/dist-esm/src/operations/certificateRegistrationProvider.d.ts.map +1 -1
  23. package/dist-esm/src/operations/certificateRegistrationProvider.js +19 -7
  24. package/dist-esm/src/operations/certificateRegistrationProvider.js.map +1 -1
  25. package/dist-esm/src/operations/certificates.d.ts.map +1 -1
  26. package/dist-esm/src/operations/certificates.js +37 -14
  27. package/dist-esm/src/operations/certificates.js.map +1 -1
  28. package/dist-esm/src/operations/containerApps.d.ts.map +1 -1
  29. package/dist-esm/src/operations/containerApps.js +37 -14
  30. package/dist-esm/src/operations/containerApps.js.map +1 -1
  31. package/dist-esm/src/operations/containerAppsRevisions.d.ts.map +1 -1
  32. package/dist-esm/src/operations/containerAppsRevisions.js +19 -7
  33. package/dist-esm/src/operations/containerAppsRevisions.js.map +1 -1
  34. package/dist-esm/src/operations/deletedWebApps.d.ts.map +1 -1
  35. package/dist-esm/src/operations/deletedWebApps.js +37 -14
  36. package/dist-esm/src/operations/deletedWebApps.js.map +1 -1
  37. package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
  38. package/dist-esm/src/operations/diagnostics.js +163 -63
  39. package/dist-esm/src/operations/diagnostics.js.map +1 -1
  40. package/dist-esm/src/operations/domainRegistrationProvider.d.ts.map +1 -1
  41. package/dist-esm/src/operations/domainRegistrationProvider.js +19 -7
  42. package/dist-esm/src/operations/domainRegistrationProvider.js.map +1 -1
  43. package/dist-esm/src/operations/domains.d.ts.map +1 -1
  44. package/dist-esm/src/operations/domains.js +73 -28
  45. package/dist-esm/src/operations/domains.js.map +1 -1
  46. package/dist-esm/src/operations/kubeEnvironments.d.ts.map +1 -1
  47. package/dist-esm/src/operations/kubeEnvironments.js +37 -14
  48. package/dist-esm/src/operations/kubeEnvironments.js.map +1 -1
  49. package/dist-esm/src/operations/provider.d.ts.map +1 -1
  50. package/dist-esm/src/operations/provider.js +127 -49
  51. package/dist-esm/src/operations/provider.js.map +1 -1
  52. package/dist-esm/src/operations/recommendations.d.ts.map +1 -1
  53. package/dist-esm/src/operations/recommendations.js +91 -35
  54. package/dist-esm/src/operations/recommendations.js.map +1 -1
  55. package/dist-esm/src/operations/resourceHealthMetadataOperations.d.ts.map +1 -1
  56. package/dist-esm/src/operations/resourceHealthMetadataOperations.js +73 -28
  57. package/dist-esm/src/operations/resourceHealthMetadataOperations.js.map +1 -1
  58. package/dist-esm/src/operations/staticSites.d.ts.map +1 -1
  59. package/dist-esm/src/operations/staticSites.js +217 -84
  60. package/dist-esm/src/operations/staticSites.js.map +1 -1
  61. package/dist-esm/src/operations/topLevelDomains.d.ts.map +1 -1
  62. package/dist-esm/src/operations/topLevelDomains.js +37 -14
  63. package/dist-esm/src/operations/topLevelDomains.js.map +1 -1
  64. package/dist-esm/src/operations/webApps.d.ts.map +1 -1
  65. package/dist-esm/src/operations/webApps.js +1171 -455
  66. package/dist-esm/src/operations/webApps.js.map +1 -1
  67. package/dist-esm/src/operations/workflowRunActionRepetitions.d.ts.map +1 -1
  68. package/dist-esm/src/operations/workflowRunActionRepetitions.js +37 -14
  69. package/dist-esm/src/operations/workflowRunActionRepetitions.js.map +1 -1
  70. package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.d.ts.map +1 -1
  71. package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js +19 -7
  72. package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js.map +1 -1
  73. package/dist-esm/src/operations/workflowRunActionScopeRepetitions.d.ts.map +1 -1
  74. package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js +19 -7
  75. package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js.map +1 -1
  76. package/dist-esm/src/operations/workflowRunActions.d.ts.map +1 -1
  77. package/dist-esm/src/operations/workflowRunActions.js +37 -14
  78. package/dist-esm/src/operations/workflowRunActions.js.map +1 -1
  79. package/dist-esm/src/operations/workflowRuns.d.ts.map +1 -1
  80. package/dist-esm/src/operations/workflowRuns.js +19 -7
  81. package/dist-esm/src/operations/workflowRuns.js.map +1 -1
  82. package/dist-esm/src/operations/workflowTriggerHistories.d.ts.map +1 -1
  83. package/dist-esm/src/operations/workflowTriggerHistories.js +19 -7
  84. package/dist-esm/src/operations/workflowTriggerHistories.js.map +1 -1
  85. package/dist-esm/src/operations/workflowTriggers.d.ts.map +1 -1
  86. package/dist-esm/src/operations/workflowTriggers.js +19 -7
  87. package/dist-esm/src/operations/workflowTriggers.js.map +1 -1
  88. package/dist-esm/src/operations/workflowVersions.d.ts.map +1 -1
  89. package/dist-esm/src/operations/workflowVersions.js +19 -7
  90. package/dist-esm/src/operations/workflowVersions.js.map +1 -1
  91. package/dist-esm/src/pagingHelper.d.ts +13 -0
  92. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  93. package/dist-esm/src/pagingHelper.js +32 -0
  94. package/dist-esm/src/pagingHelper.js.map +1 -0
  95. package/dist-esm/src/webSiteManagementClient.d.ts.map +1 -1
  96. package/dist-esm/src/webSiteManagementClient.js +128 -59
  97. package/dist-esm/src/webSiteManagementClient.js.map +1 -1
  98. package/dist-esm/test/web_examples.js +2 -2
  99. package/dist-esm/test/web_examples.js.map +1 -1
  100. package/package.json +7 -6
  101. package/review/arm-appservice.api.md +3 -0
  102. package/src/index.ts +1 -0
  103. package/src/operations/appServiceCertificateOrders.ts +71 -29
  104. package/src/operations/appServiceEnvironments.ts +552 -243
  105. package/src/operations/appServicePlans.ts +148 -59
  106. package/src/operations/certificateOrdersDiagnostics.ts +26 -12
  107. package/src/operations/certificateRegistrationProvider.ts +21 -8
  108. package/src/operations/certificates.ts +45 -16
  109. package/src/operations/containerApps.ts +45 -16
  110. package/src/operations/containerAppsRevisions.ts +26 -12
  111. package/src/operations/deletedWebApps.ts +41 -16
  112. package/src/operations/diagnostics.ts +235 -117
  113. package/src/operations/domainRegistrationProvider.ts +21 -8
  114. package/src/operations/domains.ts +95 -37
  115. package/src/operations/kubeEnvironments.ts +45 -16
  116. package/src/operations/provider.ts +146 -56
  117. package/src/operations/recommendations.ts +122 -57
  118. package/src/operations/resourceHealthMetadataOperations.ts +97 -38
  119. package/src/operations/staticSites.ts +296 -144
  120. package/src/operations/topLevelDomains.ts +47 -17
  121. package/src/operations/webApps.ts +1667 -791
  122. package/src/operations/workflowRunActionRepetitions.ts +59 -32
  123. package/src/operations/workflowRunActionRepetitionsRequestHistories.ts +30 -16
  124. package/src/operations/workflowRunActionScopeRepetitions.ts +29 -15
  125. package/src/operations/workflowRunActions.ts +57 -30
  126. package/src/operations/workflowRuns.ts +22 -13
  127. package/src/operations/workflowTriggerHistories.ts +28 -14
  128. package/src/operations/workflowTriggers.ts +22 -13
  129. package/src/operations/workflowVersions.ts +22 -13
  130. package/src/pagingHelper.ts +39 -0
  131. package/src/webSiteManagementClient.ts +151 -71
  132. package/types/arm-appservice.d.ts +9 -0
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { AppServiceEnvironments } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -18,62 +19,82 @@ import {
18
19
  AppServiceEnvironmentResource,
19
20
  AppServiceEnvironmentsListNextOptionalParams,
20
21
  AppServiceEnvironmentsListOptionalParams,
22
+ AppServiceEnvironmentsListResponse,
21
23
  AppServiceEnvironmentsListByResourceGroupNextOptionalParams,
22
24
  AppServiceEnvironmentsListByResourceGroupOptionalParams,
25
+ AppServiceEnvironmentsListByResourceGroupResponse,
23
26
  StampCapacity,
24
27
  AppServiceEnvironmentsListCapacitiesNextOptionalParams,
25
28
  AppServiceEnvironmentsListCapacitiesOptionalParams,
29
+ AppServiceEnvironmentsListCapacitiesResponse,
26
30
  Site,
27
31
  VirtualNetworkProfile,
28
32
  AppServiceEnvironmentsChangeVnetNextOptionalParams,
29
33
  AppServiceEnvironmentsChangeVnetOptionalParams,
34
+ AppServiceEnvironmentsChangeVnetResponse,
30
35
  InboundEnvironmentEndpoint,
31
36
  AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsNextOptionalParams,
32
37
  AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsOptionalParams,
38
+ AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsResponse,
33
39
  WorkerPoolResource,
34
40
  AppServiceEnvironmentsListMultiRolePoolsNextOptionalParams,
35
41
  AppServiceEnvironmentsListMultiRolePoolsOptionalParams,
42
+ AppServiceEnvironmentsListMultiRolePoolsResponse,
36
43
  ResourceMetricDefinition,
37
44
  AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsNextOptionalParams,
38
45
  AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsOptionalParams,
46
+ AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsResponse,
39
47
  AppServiceEnvironmentsListMultiRoleMetricDefinitionsNextOptionalParams,
40
48
  AppServiceEnvironmentsListMultiRoleMetricDefinitionsOptionalParams,
49
+ AppServiceEnvironmentsListMultiRoleMetricDefinitionsResponse,
41
50
  SkuInfo,
42
51
  AppServiceEnvironmentsListMultiRolePoolSkusNextOptionalParams,
43
52
  AppServiceEnvironmentsListMultiRolePoolSkusOptionalParams,
53
+ AppServiceEnvironmentsListMultiRolePoolSkusResponse,
44
54
  Usage,
45
55
  AppServiceEnvironmentsListMultiRoleUsagesNextOptionalParams,
46
56
  AppServiceEnvironmentsListMultiRoleUsagesOptionalParams,
57
+ AppServiceEnvironmentsListMultiRoleUsagesResponse,
47
58
  OutboundEnvironmentEndpoint,
48
59
  AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsNextOptionalParams,
49
60
  AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsOptionalParams,
61
+ AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsResponse,
50
62
  RemotePrivateEndpointConnectionARMResource,
51
63
  AppServiceEnvironmentsGetPrivateEndpointConnectionListNextOptionalParams,
52
64
  AppServiceEnvironmentsGetPrivateEndpointConnectionListOptionalParams,
65
+ AppServiceEnvironmentsGetPrivateEndpointConnectionListResponse,
53
66
  AppServiceEnvironmentsResumeNextOptionalParams,
54
67
  AppServiceEnvironmentsResumeOptionalParams,
68
+ AppServiceEnvironmentsResumeResponse,
55
69
  AppServicePlan,
56
70
  AppServiceEnvironmentsListAppServicePlansNextOptionalParams,
57
71
  AppServiceEnvironmentsListAppServicePlansOptionalParams,
72
+ AppServiceEnvironmentsListAppServicePlansResponse,
58
73
  AppServiceEnvironmentsListWebAppsNextOptionalParams,
59
74
  AppServiceEnvironmentsListWebAppsOptionalParams,
75
+ AppServiceEnvironmentsListWebAppsResponse,
60
76
  AppServiceEnvironmentsSuspendNextOptionalParams,
61
77
  AppServiceEnvironmentsSuspendOptionalParams,
78
+ AppServiceEnvironmentsSuspendResponse,
62
79
  CsmUsageQuota,
63
80
  AppServiceEnvironmentsListUsagesNextOptionalParams,
64
81
  AppServiceEnvironmentsListUsagesOptionalParams,
82
+ AppServiceEnvironmentsListUsagesResponse,
65
83
  AppServiceEnvironmentsListWorkerPoolsNextOptionalParams,
66
84
  AppServiceEnvironmentsListWorkerPoolsOptionalParams,
85
+ AppServiceEnvironmentsListWorkerPoolsResponse,
67
86
  AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsNextOptionalParams,
68
87
  AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsOptionalParams,
88
+ AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsResponse,
69
89
  AppServiceEnvironmentsListWebWorkerMetricDefinitionsNextOptionalParams,
70
90
  AppServiceEnvironmentsListWebWorkerMetricDefinitionsOptionalParams,
91
+ AppServiceEnvironmentsListWebWorkerMetricDefinitionsResponse,
71
92
  AppServiceEnvironmentsListWorkerPoolSkusNextOptionalParams,
72
93
  AppServiceEnvironmentsListWorkerPoolSkusOptionalParams,
94
+ AppServiceEnvironmentsListWorkerPoolSkusResponse,
73
95
  AppServiceEnvironmentsListWebWorkerUsagesNextOptionalParams,
74
96
  AppServiceEnvironmentsListWebWorkerUsagesOptionalParams,
75
- AppServiceEnvironmentsListResponse,
76
- AppServiceEnvironmentsListByResourceGroupResponse,
97
+ AppServiceEnvironmentsListWebWorkerUsagesResponse,
77
98
  AppServiceEnvironmentsGetOptionalParams,
78
99
  AppServiceEnvironmentsGetResponse,
79
100
  AppServiceEnvironmentsCreateOrUpdateOptionalParams,
@@ -82,10 +103,8 @@ import {
82
103
  AppServiceEnvironmentPatchResource,
83
104
  AppServiceEnvironmentsUpdateOptionalParams,
84
105
  AppServiceEnvironmentsUpdateResponse,
85
- AppServiceEnvironmentsListCapacitiesResponse,
86
106
  AppServiceEnvironmentsGetVipInfoOptionalParams,
87
107
  AppServiceEnvironmentsGetVipInfoResponse,
88
- AppServiceEnvironmentsChangeVnetResponse,
89
108
  AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationOptionalParams,
90
109
  AppServiceEnvironmentsGetAseCustomDnsSuffixConfigurationResponse,
91
110
  CustomDnsSuffixConfiguration,
@@ -102,24 +121,16 @@ import {
102
121
  AppServiceEnvironmentsListDiagnosticsResponse,
103
122
  AppServiceEnvironmentsGetDiagnosticsItemOptionalParams,
104
123
  AppServiceEnvironmentsGetDiagnosticsItemResponse,
105
- AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsResponse,
106
- AppServiceEnvironmentsListMultiRolePoolsResponse,
107
124
  AppServiceEnvironmentsGetMultiRolePoolOptionalParams,
108
125
  AppServiceEnvironmentsGetMultiRolePoolResponse,
109
126
  AppServiceEnvironmentsCreateOrUpdateMultiRolePoolOptionalParams,
110
127
  AppServiceEnvironmentsCreateOrUpdateMultiRolePoolResponse,
111
128
  AppServiceEnvironmentsUpdateMultiRolePoolOptionalParams,
112
129
  AppServiceEnvironmentsUpdateMultiRolePoolResponse,
113
- AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsResponse,
114
- AppServiceEnvironmentsListMultiRoleMetricDefinitionsResponse,
115
- AppServiceEnvironmentsListMultiRolePoolSkusResponse,
116
130
  AppServiceEnvironmentsTestUpgradeAvailableNotificationOptionalParams,
117
131
  AppServiceEnvironmentsUpgradeOptionalParams,
118
- AppServiceEnvironmentsListMultiRoleUsagesResponse,
119
132
  AppServiceEnvironmentsListOperationsOptionalParams,
120
133
  AppServiceEnvironmentsListOperationsResponse,
121
- AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsResponse,
122
- AppServiceEnvironmentsGetPrivateEndpointConnectionListResponse,
123
134
  AppServiceEnvironmentsGetPrivateEndpointConnectionOptionalParams,
124
135
  AppServiceEnvironmentsGetPrivateEndpointConnectionResponse,
125
136
  PrivateLinkConnectionApprovalRequestResource,
@@ -130,22 +141,12 @@ import {
130
141
  AppServiceEnvironmentsGetPrivateLinkResourcesOptionalParams,
131
142
  AppServiceEnvironmentsGetPrivateLinkResourcesResponse,
132
143
  AppServiceEnvironmentsRebootOptionalParams,
133
- AppServiceEnvironmentsResumeResponse,
134
- AppServiceEnvironmentsListAppServicePlansResponse,
135
- AppServiceEnvironmentsListWebAppsResponse,
136
- AppServiceEnvironmentsSuspendResponse,
137
- AppServiceEnvironmentsListUsagesResponse,
138
- AppServiceEnvironmentsListWorkerPoolsResponse,
139
144
  AppServiceEnvironmentsGetWorkerPoolOptionalParams,
140
145
  AppServiceEnvironmentsGetWorkerPoolResponse,
141
146
  AppServiceEnvironmentsCreateOrUpdateWorkerPoolOptionalParams,
142
147
  AppServiceEnvironmentsCreateOrUpdateWorkerPoolResponse,
143
148
  AppServiceEnvironmentsUpdateWorkerPoolOptionalParams,
144
149
  AppServiceEnvironmentsUpdateWorkerPoolResponse,
145
- AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsResponse,
146
- AppServiceEnvironmentsListWebWorkerMetricDefinitionsResponse,
147
- AppServiceEnvironmentsListWorkerPoolSkusResponse,
148
- AppServiceEnvironmentsListWebWorkerUsagesResponse,
149
150
  AppServiceEnvironmentsListNextResponse,
150
151
  AppServiceEnvironmentsListByResourceGroupNextResponse,
151
152
  AppServiceEnvironmentsListCapacitiesNextResponse,
@@ -198,22 +199,34 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
198
199
  [Symbol.asyncIterator]() {
199
200
  return this;
200
201
  },
201
- byPage: () => {
202
- return this.listPagingPage(options);
202
+ byPage: (settings?: PageSettings) => {
203
+ if (settings?.maxPageSize) {
204
+ throw new Error("maxPageSize is not supported by this operation.");
205
+ }
206
+ return this.listPagingPage(options, settings);
203
207
  }
204
208
  };
205
209
  }
206
210
 
207
211
  private async *listPagingPage(
208
- options?: AppServiceEnvironmentsListOptionalParams
212
+ options?: AppServiceEnvironmentsListOptionalParams,
213
+ settings?: PageSettings
209
214
  ): AsyncIterableIterator<AppServiceEnvironmentResource[]> {
210
- let result = await this._list(options);
211
- yield result.value || [];
212
- let continuationToken = result.nextLink;
215
+ let result: AppServiceEnvironmentsListResponse;
216
+ let continuationToken = settings?.continuationToken;
217
+ if (!continuationToken) {
218
+ result = await this._list(options);
219
+ let page = result.value || [];
220
+ continuationToken = result.nextLink;
221
+ setContinuationToken(page, continuationToken);
222
+ yield page;
223
+ }
213
224
  while (continuationToken) {
214
225
  result = await this._listNext(continuationToken, options);
215
226
  continuationToken = result.nextLink;
216
- yield result.value || [];
227
+ let page = result.value || [];
228
+ setContinuationToken(page, continuationToken);
229
+ yield page;
217
230
  }
218
231
  }
219
232
 
@@ -242,19 +255,33 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
242
255
  [Symbol.asyncIterator]() {
243
256
  return this;
244
257
  },
245
- byPage: () => {
246
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
258
+ byPage: (settings?: PageSettings) => {
259
+ if (settings?.maxPageSize) {
260
+ throw new Error("maxPageSize is not supported by this operation.");
261
+ }
262
+ return this.listByResourceGroupPagingPage(
263
+ resourceGroupName,
264
+ options,
265
+ settings
266
+ );
247
267
  }
248
268
  };
249
269
  }
250
270
 
251
271
  private async *listByResourceGroupPagingPage(
252
272
  resourceGroupName: string,
253
- options?: AppServiceEnvironmentsListByResourceGroupOptionalParams
273
+ options?: AppServiceEnvironmentsListByResourceGroupOptionalParams,
274
+ settings?: PageSettings
254
275
  ): AsyncIterableIterator<AppServiceEnvironmentResource[]> {
255
- let result = await this._listByResourceGroup(resourceGroupName, options);
256
- yield result.value || [];
257
- let continuationToken = result.nextLink;
276
+ let result: AppServiceEnvironmentsListByResourceGroupResponse;
277
+ let continuationToken = settings?.continuationToken;
278
+ if (!continuationToken) {
279
+ result = await this._listByResourceGroup(resourceGroupName, options);
280
+ let page = result.value || [];
281
+ continuationToken = result.nextLink;
282
+ setContinuationToken(page, continuationToken);
283
+ yield page;
284
+ }
258
285
  while (continuationToken) {
259
286
  result = await this._listByResourceGroupNext(
260
287
  resourceGroupName,
@@ -262,7 +289,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
262
289
  options
263
290
  );
264
291
  continuationToken = result.nextLink;
265
- yield result.value || [];
292
+ let page = result.value || [];
293
+ setContinuationToken(page, continuationToken);
294
+ yield page;
266
295
  }
267
296
  }
268
297
 
@@ -297,8 +326,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
297
326
  [Symbol.asyncIterator]() {
298
327
  return this;
299
328
  },
300
- byPage: () => {
301
- return this.listCapacitiesPagingPage(resourceGroupName, name, options);
329
+ byPage: (settings?: PageSettings) => {
330
+ if (settings?.maxPageSize) {
331
+ throw new Error("maxPageSize is not supported by this operation.");
332
+ }
333
+ return this.listCapacitiesPagingPage(
334
+ resourceGroupName,
335
+ name,
336
+ options,
337
+ settings
338
+ );
302
339
  }
303
340
  };
304
341
  }
@@ -306,11 +343,18 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
306
343
  private async *listCapacitiesPagingPage(
307
344
  resourceGroupName: string,
308
345
  name: string,
309
- options?: AppServiceEnvironmentsListCapacitiesOptionalParams
346
+ options?: AppServiceEnvironmentsListCapacitiesOptionalParams,
347
+ settings?: PageSettings
310
348
  ): AsyncIterableIterator<StampCapacity[]> {
311
- let result = await this._listCapacities(resourceGroupName, name, options);
312
- yield result.value || [];
313
- let continuationToken = result.nextLink;
349
+ let result: AppServiceEnvironmentsListCapacitiesResponse;
350
+ let continuationToken = settings?.continuationToken;
351
+ if (!continuationToken) {
352
+ result = await this._listCapacities(resourceGroupName, name, options);
353
+ let page = result.value || [];
354
+ continuationToken = result.nextLink;
355
+ setContinuationToken(page, continuationToken);
356
+ yield page;
357
+ }
314
358
  while (continuationToken) {
315
359
  result = await this._listCapacitiesNext(
316
360
  resourceGroupName,
@@ -319,7 +363,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
319
363
  options
320
364
  );
321
365
  continuationToken = result.nextLink;
322
- yield result.value || [];
366
+ let page = result.value || [];
367
+ setContinuationToken(page, continuationToken);
368
+ yield page;
323
369
  }
324
370
  }
325
371
 
@@ -363,12 +409,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
363
409
  [Symbol.asyncIterator]() {
364
410
  return this;
365
411
  },
366
- byPage: () => {
412
+ byPage: (settings?: PageSettings) => {
413
+ if (settings?.maxPageSize) {
414
+ throw new Error("maxPageSize is not supported by this operation.");
415
+ }
367
416
  return this.changeVnetPagingPage(
368
417
  resourceGroupName,
369
418
  name,
370
419
  vnetInfo,
371
- options
420
+ options,
421
+ settings
372
422
  );
373
423
  }
374
424
  };
@@ -378,17 +428,24 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
378
428
  resourceGroupName: string,
379
429
  name: string,
380
430
  vnetInfo: VirtualNetworkProfile,
381
- options?: AppServiceEnvironmentsChangeVnetOptionalParams
431
+ options?: AppServiceEnvironmentsChangeVnetOptionalParams,
432
+ settings?: PageSettings
382
433
  ): AsyncIterableIterator<Site[]> {
383
- const poller = await this._changeVnet(
384
- resourceGroupName,
385
- name,
386
- vnetInfo,
387
- options
388
- );
389
- let result: any = await poller.pollUntilDone();
390
- yield result.value || [];
391
- let continuationToken = result.nextLink;
434
+ let result: AppServiceEnvironmentsChangeVnetResponse;
435
+ let continuationToken = settings?.continuationToken;
436
+ if (!continuationToken) {
437
+ const poller = await this._changeVnet(
438
+ resourceGroupName,
439
+ name,
440
+ vnetInfo,
441
+ options
442
+ );
443
+ result = await poller.pollUntilDone();
444
+ let page = result.value || [];
445
+ continuationToken = result.nextLink;
446
+ setContinuationToken(page, continuationToken);
447
+ yield page;
448
+ }
392
449
  while (continuationToken) {
393
450
  result = await this._changeVnetNext(
394
451
  resourceGroupName,
@@ -398,7 +455,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
398
455
  options
399
456
  );
400
457
  continuationToken = result.nextLink;
401
- yield result.value || [];
458
+ let page = result.value || [];
459
+ setContinuationToken(page, continuationToken);
460
+ yield page;
402
461
  }
403
462
  }
404
463
 
@@ -441,11 +500,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
441
500
  [Symbol.asyncIterator]() {
442
501
  return this;
443
502
  },
444
- byPage: () => {
503
+ byPage: (settings?: PageSettings) => {
504
+ if (settings?.maxPageSize) {
505
+ throw new Error("maxPageSize is not supported by this operation.");
506
+ }
445
507
  return this.getInboundNetworkDependenciesEndpointsPagingPage(
446
508
  resourceGroupName,
447
509
  name,
448
- options
510
+ options,
511
+ settings
449
512
  );
450
513
  }
451
514
  };
@@ -454,15 +517,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
454
517
  private async *getInboundNetworkDependenciesEndpointsPagingPage(
455
518
  resourceGroupName: string,
456
519
  name: string,
457
- options?: AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsOptionalParams
520
+ options?: AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsOptionalParams,
521
+ settings?: PageSettings
458
522
  ): AsyncIterableIterator<InboundEnvironmentEndpoint[]> {
459
- let result = await this._getInboundNetworkDependenciesEndpoints(
460
- resourceGroupName,
461
- name,
462
- options
463
- );
464
- yield result.value || [];
465
- let continuationToken = result.nextLink;
523
+ let result: AppServiceEnvironmentsGetInboundNetworkDependenciesEndpointsResponse;
524
+ let continuationToken = settings?.continuationToken;
525
+ if (!continuationToken) {
526
+ result = await this._getInboundNetworkDependenciesEndpoints(
527
+ resourceGroupName,
528
+ name,
529
+ options
530
+ );
531
+ let page = result.value || [];
532
+ continuationToken = result.nextLink;
533
+ setContinuationToken(page, continuationToken);
534
+ yield page;
535
+ }
466
536
  while (continuationToken) {
467
537
  result = await this._getInboundNetworkDependenciesEndpointsNext(
468
538
  resourceGroupName,
@@ -471,7 +541,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
471
541
  options
472
542
  );
473
543
  continuationToken = result.nextLink;
474
- yield result.value || [];
544
+ let page = result.value || [];
545
+ setContinuationToken(page, continuationToken);
546
+ yield page;
475
547
  }
476
548
  }
477
549
 
@@ -512,11 +584,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
512
584
  [Symbol.asyncIterator]() {
513
585
  return this;
514
586
  },
515
- byPage: () => {
587
+ byPage: (settings?: PageSettings) => {
588
+ if (settings?.maxPageSize) {
589
+ throw new Error("maxPageSize is not supported by this operation.");
590
+ }
516
591
  return this.listMultiRolePoolsPagingPage(
517
592
  resourceGroupName,
518
593
  name,
519
- options
594
+ options,
595
+ settings
520
596
  );
521
597
  }
522
598
  };
@@ -525,15 +601,18 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
525
601
  private async *listMultiRolePoolsPagingPage(
526
602
  resourceGroupName: string,
527
603
  name: string,
528
- options?: AppServiceEnvironmentsListMultiRolePoolsOptionalParams
604
+ options?: AppServiceEnvironmentsListMultiRolePoolsOptionalParams,
605
+ settings?: PageSettings
529
606
  ): AsyncIterableIterator<WorkerPoolResource[]> {
530
- let result = await this._listMultiRolePools(
531
- resourceGroupName,
532
- name,
533
- options
534
- );
535
- yield result.value || [];
536
- let continuationToken = result.nextLink;
607
+ let result: AppServiceEnvironmentsListMultiRolePoolsResponse;
608
+ let continuationToken = settings?.continuationToken;
609
+ if (!continuationToken) {
610
+ result = await this._listMultiRolePools(resourceGroupName, name, options);
611
+ let page = result.value || [];
612
+ continuationToken = result.nextLink;
613
+ setContinuationToken(page, continuationToken);
614
+ yield page;
615
+ }
537
616
  while (continuationToken) {
538
617
  result = await this._listMultiRolePoolsNext(
539
618
  resourceGroupName,
@@ -542,7 +621,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
542
621
  options
543
622
  );
544
623
  continuationToken = result.nextLink;
545
- yield result.value || [];
624
+ let page = result.value || [];
625
+ setContinuationToken(page, continuationToken);
626
+ yield page;
546
627
  }
547
628
  }
548
629
 
@@ -587,12 +668,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
587
668
  [Symbol.asyncIterator]() {
588
669
  return this;
589
670
  },
590
- byPage: () => {
671
+ byPage: (settings?: PageSettings) => {
672
+ if (settings?.maxPageSize) {
673
+ throw new Error("maxPageSize is not supported by this operation.");
674
+ }
591
675
  return this.listMultiRolePoolInstanceMetricDefinitionsPagingPage(
592
676
  resourceGroupName,
593
677
  name,
594
678
  instance,
595
- options
679
+ options,
680
+ settings
596
681
  );
597
682
  }
598
683
  };
@@ -602,16 +687,23 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
602
687
  resourceGroupName: string,
603
688
  name: string,
604
689
  instance: string,
605
- options?: AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsOptionalParams
690
+ options?: AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsOptionalParams,
691
+ settings?: PageSettings
606
692
  ): AsyncIterableIterator<ResourceMetricDefinition[]> {
607
- let result = await this._listMultiRolePoolInstanceMetricDefinitions(
608
- resourceGroupName,
609
- name,
610
- instance,
611
- options
612
- );
613
- yield result.value || [];
614
- let continuationToken = result.nextLink;
693
+ let result: AppServiceEnvironmentsListMultiRolePoolInstanceMetricDefinitionsResponse;
694
+ let continuationToken = settings?.continuationToken;
695
+ if (!continuationToken) {
696
+ result = await this._listMultiRolePoolInstanceMetricDefinitions(
697
+ resourceGroupName,
698
+ name,
699
+ instance,
700
+ options
701
+ );
702
+ let page = result.value || [];
703
+ continuationToken = result.nextLink;
704
+ setContinuationToken(page, continuationToken);
705
+ yield page;
706
+ }
615
707
  while (continuationToken) {
616
708
  result = await this._listMultiRolePoolInstanceMetricDefinitionsNext(
617
709
  resourceGroupName,
@@ -621,7 +713,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
621
713
  options
622
714
  );
623
715
  continuationToken = result.nextLink;
624
- yield result.value || [];
716
+ let page = result.value || [];
717
+ setContinuationToken(page, continuationToken);
718
+ yield page;
625
719
  }
626
720
  }
627
721
 
@@ -664,11 +758,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
664
758
  [Symbol.asyncIterator]() {
665
759
  return this;
666
760
  },
667
- byPage: () => {
761
+ byPage: (settings?: PageSettings) => {
762
+ if (settings?.maxPageSize) {
763
+ throw new Error("maxPageSize is not supported by this operation.");
764
+ }
668
765
  return this.listMultiRoleMetricDefinitionsPagingPage(
669
766
  resourceGroupName,
670
767
  name,
671
- options
768
+ options,
769
+ settings
672
770
  );
673
771
  }
674
772
  };
@@ -677,15 +775,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
677
775
  private async *listMultiRoleMetricDefinitionsPagingPage(
678
776
  resourceGroupName: string,
679
777
  name: string,
680
- options?: AppServiceEnvironmentsListMultiRoleMetricDefinitionsOptionalParams
778
+ options?: AppServiceEnvironmentsListMultiRoleMetricDefinitionsOptionalParams,
779
+ settings?: PageSettings
681
780
  ): AsyncIterableIterator<ResourceMetricDefinition[]> {
682
- let result = await this._listMultiRoleMetricDefinitions(
683
- resourceGroupName,
684
- name,
685
- options
686
- );
687
- yield result.value || [];
688
- let continuationToken = result.nextLink;
781
+ let result: AppServiceEnvironmentsListMultiRoleMetricDefinitionsResponse;
782
+ let continuationToken = settings?.continuationToken;
783
+ if (!continuationToken) {
784
+ result = await this._listMultiRoleMetricDefinitions(
785
+ resourceGroupName,
786
+ name,
787
+ options
788
+ );
789
+ let page = result.value || [];
790
+ continuationToken = result.nextLink;
791
+ setContinuationToken(page, continuationToken);
792
+ yield page;
793
+ }
689
794
  while (continuationToken) {
690
795
  result = await this._listMultiRoleMetricDefinitionsNext(
691
796
  resourceGroupName,
@@ -694,7 +799,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
694
799
  options
695
800
  );
696
801
  continuationToken = result.nextLink;
697
- yield result.value || [];
802
+ let page = result.value || [];
803
+ setContinuationToken(page, continuationToken);
804
+ yield page;
698
805
  }
699
806
  }
700
807
 
@@ -735,11 +842,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
735
842
  [Symbol.asyncIterator]() {
736
843
  return this;
737
844
  },
738
- byPage: () => {
845
+ byPage: (settings?: PageSettings) => {
846
+ if (settings?.maxPageSize) {
847
+ throw new Error("maxPageSize is not supported by this operation.");
848
+ }
739
849
  return this.listMultiRolePoolSkusPagingPage(
740
850
  resourceGroupName,
741
851
  name,
742
- options
852
+ options,
853
+ settings
743
854
  );
744
855
  }
745
856
  };
@@ -748,15 +859,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
748
859
  private async *listMultiRolePoolSkusPagingPage(
749
860
  resourceGroupName: string,
750
861
  name: string,
751
- options?: AppServiceEnvironmentsListMultiRolePoolSkusOptionalParams
862
+ options?: AppServiceEnvironmentsListMultiRolePoolSkusOptionalParams,
863
+ settings?: PageSettings
752
864
  ): AsyncIterableIterator<SkuInfo[]> {
753
- let result = await this._listMultiRolePoolSkus(
754
- resourceGroupName,
755
- name,
756
- options
757
- );
758
- yield result.value || [];
759
- let continuationToken = result.nextLink;
865
+ let result: AppServiceEnvironmentsListMultiRolePoolSkusResponse;
866
+ let continuationToken = settings?.continuationToken;
867
+ if (!continuationToken) {
868
+ result = await this._listMultiRolePoolSkus(
869
+ resourceGroupName,
870
+ name,
871
+ options
872
+ );
873
+ let page = result.value || [];
874
+ continuationToken = result.nextLink;
875
+ setContinuationToken(page, continuationToken);
876
+ yield page;
877
+ }
760
878
  while (continuationToken) {
761
879
  result = await this._listMultiRolePoolSkusNext(
762
880
  resourceGroupName,
@@ -765,7 +883,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
765
883
  options
766
884
  );
767
885
  continuationToken = result.nextLink;
768
- yield result.value || [];
886
+ let page = result.value || [];
887
+ setContinuationToken(page, continuationToken);
888
+ yield page;
769
889
  }
770
890
  }
771
891
 
@@ -806,11 +926,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
806
926
  [Symbol.asyncIterator]() {
807
927
  return this;
808
928
  },
809
- byPage: () => {
929
+ byPage: (settings?: PageSettings) => {
930
+ if (settings?.maxPageSize) {
931
+ throw new Error("maxPageSize is not supported by this operation.");
932
+ }
810
933
  return this.listMultiRoleUsagesPagingPage(
811
934
  resourceGroupName,
812
935
  name,
813
- options
936
+ options,
937
+ settings
814
938
  );
815
939
  }
816
940
  };
@@ -819,15 +943,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
819
943
  private async *listMultiRoleUsagesPagingPage(
820
944
  resourceGroupName: string,
821
945
  name: string,
822
- options?: AppServiceEnvironmentsListMultiRoleUsagesOptionalParams
946
+ options?: AppServiceEnvironmentsListMultiRoleUsagesOptionalParams,
947
+ settings?: PageSettings
823
948
  ): AsyncIterableIterator<Usage[]> {
824
- let result = await this._listMultiRoleUsages(
825
- resourceGroupName,
826
- name,
827
- options
828
- );
829
- yield result.value || [];
830
- let continuationToken = result.nextLink;
949
+ let result: AppServiceEnvironmentsListMultiRoleUsagesResponse;
950
+ let continuationToken = settings?.continuationToken;
951
+ if (!continuationToken) {
952
+ result = await this._listMultiRoleUsages(
953
+ resourceGroupName,
954
+ name,
955
+ options
956
+ );
957
+ let page = result.value || [];
958
+ continuationToken = result.nextLink;
959
+ setContinuationToken(page, continuationToken);
960
+ yield page;
961
+ }
831
962
  while (continuationToken) {
832
963
  result = await this._listMultiRoleUsagesNext(
833
964
  resourceGroupName,
@@ -836,7 +967,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
836
967
  options
837
968
  );
838
969
  continuationToken = result.nextLink;
839
- yield result.value || [];
970
+ let page = result.value || [];
971
+ setContinuationToken(page, continuationToken);
972
+ yield page;
840
973
  }
841
974
  }
842
975
 
@@ -878,11 +1011,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
878
1011
  [Symbol.asyncIterator]() {
879
1012
  return this;
880
1013
  },
881
- byPage: () => {
1014
+ byPage: (settings?: PageSettings) => {
1015
+ if (settings?.maxPageSize) {
1016
+ throw new Error("maxPageSize is not supported by this operation.");
1017
+ }
882
1018
  return this.getOutboundNetworkDependenciesEndpointsPagingPage(
883
1019
  resourceGroupName,
884
1020
  name,
885
- options
1021
+ options,
1022
+ settings
886
1023
  );
887
1024
  }
888
1025
  };
@@ -891,15 +1028,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
891
1028
  private async *getOutboundNetworkDependenciesEndpointsPagingPage(
892
1029
  resourceGroupName: string,
893
1030
  name: string,
894
- options?: AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsOptionalParams
1031
+ options?: AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsOptionalParams,
1032
+ settings?: PageSettings
895
1033
  ): AsyncIterableIterator<OutboundEnvironmentEndpoint[]> {
896
- let result = await this._getOutboundNetworkDependenciesEndpoints(
897
- resourceGroupName,
898
- name,
899
- options
900
- );
901
- yield result.value || [];
902
- let continuationToken = result.nextLink;
1034
+ let result: AppServiceEnvironmentsGetOutboundNetworkDependenciesEndpointsResponse;
1035
+ let continuationToken = settings?.continuationToken;
1036
+ if (!continuationToken) {
1037
+ result = await this._getOutboundNetworkDependenciesEndpoints(
1038
+ resourceGroupName,
1039
+ name,
1040
+ options
1041
+ );
1042
+ let page = result.value || [];
1043
+ continuationToken = result.nextLink;
1044
+ setContinuationToken(page, continuationToken);
1045
+ yield page;
1046
+ }
903
1047
  while (continuationToken) {
904
1048
  result = await this._getOutboundNetworkDependenciesEndpointsNext(
905
1049
  resourceGroupName,
@@ -908,7 +1052,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
908
1052
  options
909
1053
  );
910
1054
  continuationToken = result.nextLink;
911
- yield result.value || [];
1055
+ let page = result.value || [];
1056
+ setContinuationToken(page, continuationToken);
1057
+ yield page;
912
1058
  }
913
1059
  }
914
1060
 
@@ -949,11 +1095,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
949
1095
  [Symbol.asyncIterator]() {
950
1096
  return this;
951
1097
  },
952
- byPage: () => {
1098
+ byPage: (settings?: PageSettings) => {
1099
+ if (settings?.maxPageSize) {
1100
+ throw new Error("maxPageSize is not supported by this operation.");
1101
+ }
953
1102
  return this.getPrivateEndpointConnectionListPagingPage(
954
1103
  resourceGroupName,
955
1104
  name,
956
- options
1105
+ options,
1106
+ settings
957
1107
  );
958
1108
  }
959
1109
  };
@@ -962,15 +1112,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
962
1112
  private async *getPrivateEndpointConnectionListPagingPage(
963
1113
  resourceGroupName: string,
964
1114
  name: string,
965
- options?: AppServiceEnvironmentsGetPrivateEndpointConnectionListOptionalParams
1115
+ options?: AppServiceEnvironmentsGetPrivateEndpointConnectionListOptionalParams,
1116
+ settings?: PageSettings
966
1117
  ): AsyncIterableIterator<RemotePrivateEndpointConnectionARMResource[]> {
967
- let result = await this._getPrivateEndpointConnectionList(
968
- resourceGroupName,
969
- name,
970
- options
971
- );
972
- yield result.value || [];
973
- let continuationToken = result.nextLink;
1118
+ let result: AppServiceEnvironmentsGetPrivateEndpointConnectionListResponse;
1119
+ let continuationToken = settings?.continuationToken;
1120
+ if (!continuationToken) {
1121
+ result = await this._getPrivateEndpointConnectionList(
1122
+ resourceGroupName,
1123
+ name,
1124
+ options
1125
+ );
1126
+ let page = result.value || [];
1127
+ continuationToken = result.nextLink;
1128
+ setContinuationToken(page, continuationToken);
1129
+ yield page;
1130
+ }
974
1131
  while (continuationToken) {
975
1132
  result = await this._getPrivateEndpointConnectionListNext(
976
1133
  resourceGroupName,
@@ -979,7 +1136,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
979
1136
  options
980
1137
  );
981
1138
  continuationToken = result.nextLink;
982
- yield result.value || [];
1139
+ let page = result.value || [];
1140
+ setContinuationToken(page, continuationToken);
1141
+ yield page;
983
1142
  }
984
1143
  }
985
1144
 
@@ -1016,8 +1175,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1016
1175
  [Symbol.asyncIterator]() {
1017
1176
  return this;
1018
1177
  },
1019
- byPage: () => {
1020
- return this.resumePagingPage(resourceGroupName, name, options);
1178
+ byPage: (settings?: PageSettings) => {
1179
+ if (settings?.maxPageSize) {
1180
+ throw new Error("maxPageSize is not supported by this operation.");
1181
+ }
1182
+ return this.resumePagingPage(
1183
+ resourceGroupName,
1184
+ name,
1185
+ options,
1186
+ settings
1187
+ );
1021
1188
  }
1022
1189
  };
1023
1190
  }
@@ -1025,12 +1192,19 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1025
1192
  private async *resumePagingPage(
1026
1193
  resourceGroupName: string,
1027
1194
  name: string,
1028
- options?: AppServiceEnvironmentsResumeOptionalParams
1195
+ options?: AppServiceEnvironmentsResumeOptionalParams,
1196
+ settings?: PageSettings
1029
1197
  ): AsyncIterableIterator<Site[]> {
1030
- const poller = await this._resume(resourceGroupName, name, options);
1031
- let result: any = await poller.pollUntilDone();
1032
- yield result.value || [];
1033
- let continuationToken = result.nextLink;
1198
+ let result: AppServiceEnvironmentsResumeResponse;
1199
+ let continuationToken = settings?.continuationToken;
1200
+ if (!continuationToken) {
1201
+ const poller = await this._resume(resourceGroupName, name, options);
1202
+ result = await poller.pollUntilDone();
1203
+ let page = result.value || [];
1204
+ continuationToken = result.nextLink;
1205
+ setContinuationToken(page, continuationToken);
1206
+ yield page;
1207
+ }
1034
1208
  while (continuationToken) {
1035
1209
  result = await this._resumeNext(
1036
1210
  resourceGroupName,
@@ -1039,7 +1213,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1039
1213
  options
1040
1214
  );
1041
1215
  continuationToken = result.nextLink;
1042
- yield result.value || [];
1216
+ let page = result.value || [];
1217
+ setContinuationToken(page, continuationToken);
1218
+ yield page;
1043
1219
  }
1044
1220
  }
1045
1221
 
@@ -1080,11 +1256,15 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1080
1256
  [Symbol.asyncIterator]() {
1081
1257
  return this;
1082
1258
  },
1083
- byPage: () => {
1259
+ byPage: (settings?: PageSettings) => {
1260
+ if (settings?.maxPageSize) {
1261
+ throw new Error("maxPageSize is not supported by this operation.");
1262
+ }
1084
1263
  return this.listAppServicePlansPagingPage(
1085
1264
  resourceGroupName,
1086
1265
  name,
1087
- options
1266
+ options,
1267
+ settings
1088
1268
  );
1089
1269
  }
1090
1270
  };
@@ -1093,15 +1273,22 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1093
1273
  private async *listAppServicePlansPagingPage(
1094
1274
  resourceGroupName: string,
1095
1275
  name: string,
1096
- options?: AppServiceEnvironmentsListAppServicePlansOptionalParams
1276
+ options?: AppServiceEnvironmentsListAppServicePlansOptionalParams,
1277
+ settings?: PageSettings
1097
1278
  ): AsyncIterableIterator<AppServicePlan[]> {
1098
- let result = await this._listAppServicePlans(
1099
- resourceGroupName,
1100
- name,
1101
- options
1102
- );
1103
- yield result.value || [];
1104
- let continuationToken = result.nextLink;
1279
+ let result: AppServiceEnvironmentsListAppServicePlansResponse;
1280
+ let continuationToken = settings?.continuationToken;
1281
+ if (!continuationToken) {
1282
+ result = await this._listAppServicePlans(
1283
+ resourceGroupName,
1284
+ name,
1285
+ options
1286
+ );
1287
+ let page = result.value || [];
1288
+ continuationToken = result.nextLink;
1289
+ setContinuationToken(page, continuationToken);
1290
+ yield page;
1291
+ }
1105
1292
  while (continuationToken) {
1106
1293
  result = await this._listAppServicePlansNext(
1107
1294
  resourceGroupName,
@@ -1110,7 +1297,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1110
1297
  options
1111
1298
  );
1112
1299
  continuationToken = result.nextLink;
1113
- yield result.value || [];
1300
+ let page = result.value || [];
1301
+ setContinuationToken(page, continuationToken);
1302
+ yield page;
1114
1303
  }
1115
1304
  }
1116
1305
 
@@ -1147,8 +1336,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1147
1336
  [Symbol.asyncIterator]() {
1148
1337
  return this;
1149
1338
  },
1150
- byPage: () => {
1151
- return this.listWebAppsPagingPage(resourceGroupName, name, options);
1339
+ byPage: (settings?: PageSettings) => {
1340
+ if (settings?.maxPageSize) {
1341
+ throw new Error("maxPageSize is not supported by this operation.");
1342
+ }
1343
+ return this.listWebAppsPagingPage(
1344
+ resourceGroupName,
1345
+ name,
1346
+ options,
1347
+ settings
1348
+ );
1152
1349
  }
1153
1350
  };
1154
1351
  }
@@ -1156,11 +1353,18 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1156
1353
  private async *listWebAppsPagingPage(
1157
1354
  resourceGroupName: string,
1158
1355
  name: string,
1159
- options?: AppServiceEnvironmentsListWebAppsOptionalParams
1356
+ options?: AppServiceEnvironmentsListWebAppsOptionalParams,
1357
+ settings?: PageSettings
1160
1358
  ): AsyncIterableIterator<Site[]> {
1161
- let result = await this._listWebApps(resourceGroupName, name, options);
1162
- yield result.value || [];
1163
- let continuationToken = result.nextLink;
1359
+ let result: AppServiceEnvironmentsListWebAppsResponse;
1360
+ let continuationToken = settings?.continuationToken;
1361
+ if (!continuationToken) {
1362
+ result = await this._listWebApps(resourceGroupName, name, options);
1363
+ let page = result.value || [];
1364
+ continuationToken = result.nextLink;
1365
+ setContinuationToken(page, continuationToken);
1366
+ yield page;
1367
+ }
1164
1368
  while (continuationToken) {
1165
1369
  result = await this._listWebAppsNext(
1166
1370
  resourceGroupName,
@@ -1169,7 +1373,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1169
1373
  options
1170
1374
  );
1171
1375
  continuationToken = result.nextLink;
1172
- yield result.value || [];
1376
+ let page = result.value || [];
1377
+ setContinuationToken(page, continuationToken);
1378
+ yield page;
1173
1379
  }
1174
1380
  }
1175
1381
 
@@ -1206,8 +1412,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1206
1412
  [Symbol.asyncIterator]() {
1207
1413
  return this;
1208
1414
  },
1209
- byPage: () => {
1210
- return this.suspendPagingPage(resourceGroupName, name, options);
1415
+ byPage: (settings?: PageSettings) => {
1416
+ if (settings?.maxPageSize) {
1417
+ throw new Error("maxPageSize is not supported by this operation.");
1418
+ }
1419
+ return this.suspendPagingPage(
1420
+ resourceGroupName,
1421
+ name,
1422
+ options,
1423
+ settings
1424
+ );
1211
1425
  }
1212
1426
  };
1213
1427
  }
@@ -1215,12 +1429,19 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1215
1429
  private async *suspendPagingPage(
1216
1430
  resourceGroupName: string,
1217
1431
  name: string,
1218
- options?: AppServiceEnvironmentsSuspendOptionalParams
1432
+ options?: AppServiceEnvironmentsSuspendOptionalParams,
1433
+ settings?: PageSettings
1219
1434
  ): AsyncIterableIterator<Site[]> {
1220
- const poller = await this._suspend(resourceGroupName, name, options);
1221
- let result: any = await poller.pollUntilDone();
1222
- yield result.value || [];
1223
- let continuationToken = result.nextLink;
1435
+ let result: AppServiceEnvironmentsSuspendResponse;
1436
+ let continuationToken = settings?.continuationToken;
1437
+ if (!continuationToken) {
1438
+ const poller = await this._suspend(resourceGroupName, name, options);
1439
+ result = await poller.pollUntilDone();
1440
+ let page = result.value || [];
1441
+ continuationToken = result.nextLink;
1442
+ setContinuationToken(page, continuationToken);
1443
+ yield page;
1444
+ }
1224
1445
  while (continuationToken) {
1225
1446
  result = await this._suspendNext(
1226
1447
  resourceGroupName,
@@ -1229,7 +1450,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1229
1450
  options
1230
1451
  );
1231
1452
  continuationToken = result.nextLink;
1232
- yield result.value || [];
1453
+ let page = result.value || [];
1454
+ setContinuationToken(page, continuationToken);
1455
+ yield page;
1233
1456
  }
1234
1457
  }
1235
1458
 
@@ -1266,8 +1489,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1266
1489
  [Symbol.asyncIterator]() {
1267
1490
  return this;
1268
1491
  },
1269
- byPage: () => {
1270
- return this.listUsagesPagingPage(resourceGroupName, name, options);
1492
+ byPage: (settings?: PageSettings) => {
1493
+ if (settings?.maxPageSize) {
1494
+ throw new Error("maxPageSize is not supported by this operation.");
1495
+ }
1496
+ return this.listUsagesPagingPage(
1497
+ resourceGroupName,
1498
+ name,
1499
+ options,
1500
+ settings
1501
+ );
1271
1502
  }
1272
1503
  };
1273
1504
  }
@@ -1275,11 +1506,18 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1275
1506
  private async *listUsagesPagingPage(
1276
1507
  resourceGroupName: string,
1277
1508
  name: string,
1278
- options?: AppServiceEnvironmentsListUsagesOptionalParams
1509
+ options?: AppServiceEnvironmentsListUsagesOptionalParams,
1510
+ settings?: PageSettings
1279
1511
  ): AsyncIterableIterator<CsmUsageQuota[]> {
1280
- let result = await this._listUsages(resourceGroupName, name, options);
1281
- yield result.value || [];
1282
- let continuationToken = result.nextLink;
1512
+ let result: AppServiceEnvironmentsListUsagesResponse;
1513
+ let continuationToken = settings?.continuationToken;
1514
+ if (!continuationToken) {
1515
+ result = await this._listUsages(resourceGroupName, name, options);
1516
+ let page = result.value || [];
1517
+ continuationToken = result.nextLink;
1518
+ setContinuationToken(page, continuationToken);
1519
+ yield page;
1520
+ }
1283
1521
  while (continuationToken) {
1284
1522
  result = await this._listUsagesNext(
1285
1523
  resourceGroupName,
@@ -1288,7 +1526,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1288
1526
  options
1289
1527
  );
1290
1528
  continuationToken = result.nextLink;
1291
- yield result.value || [];
1529
+ let page = result.value || [];
1530
+ setContinuationToken(page, continuationToken);
1531
+ yield page;
1292
1532
  }
1293
1533
  }
1294
1534
 
@@ -1329,8 +1569,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1329
1569
  [Symbol.asyncIterator]() {
1330
1570
  return this;
1331
1571
  },
1332
- byPage: () => {
1333
- return this.listWorkerPoolsPagingPage(resourceGroupName, name, options);
1572
+ byPage: (settings?: PageSettings) => {
1573
+ if (settings?.maxPageSize) {
1574
+ throw new Error("maxPageSize is not supported by this operation.");
1575
+ }
1576
+ return this.listWorkerPoolsPagingPage(
1577
+ resourceGroupName,
1578
+ name,
1579
+ options,
1580
+ settings
1581
+ );
1334
1582
  }
1335
1583
  };
1336
1584
  }
@@ -1338,11 +1586,18 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1338
1586
  private async *listWorkerPoolsPagingPage(
1339
1587
  resourceGroupName: string,
1340
1588
  name: string,
1341
- options?: AppServiceEnvironmentsListWorkerPoolsOptionalParams
1589
+ options?: AppServiceEnvironmentsListWorkerPoolsOptionalParams,
1590
+ settings?: PageSettings
1342
1591
  ): AsyncIterableIterator<WorkerPoolResource[]> {
1343
- let result = await this._listWorkerPools(resourceGroupName, name, options);
1344
- yield result.value || [];
1345
- let continuationToken = result.nextLink;
1592
+ let result: AppServiceEnvironmentsListWorkerPoolsResponse;
1593
+ let continuationToken = settings?.continuationToken;
1594
+ if (!continuationToken) {
1595
+ result = await this._listWorkerPools(resourceGroupName, name, options);
1596
+ let page = result.value || [];
1597
+ continuationToken = result.nextLink;
1598
+ setContinuationToken(page, continuationToken);
1599
+ yield page;
1600
+ }
1346
1601
  while (continuationToken) {
1347
1602
  result = await this._listWorkerPoolsNext(
1348
1603
  resourceGroupName,
@@ -1351,7 +1606,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1351
1606
  options
1352
1607
  );
1353
1608
  continuationToken = result.nextLink;
1354
- yield result.value || [];
1609
+ let page = result.value || [];
1610
+ setContinuationToken(page, continuationToken);
1611
+ yield page;
1355
1612
  }
1356
1613
  }
1357
1614
 
@@ -1399,13 +1656,17 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1399
1656
  [Symbol.asyncIterator]() {
1400
1657
  return this;
1401
1658
  },
1402
- byPage: () => {
1659
+ byPage: (settings?: PageSettings) => {
1660
+ if (settings?.maxPageSize) {
1661
+ throw new Error("maxPageSize is not supported by this operation.");
1662
+ }
1403
1663
  return this.listWorkerPoolInstanceMetricDefinitionsPagingPage(
1404
1664
  resourceGroupName,
1405
1665
  name,
1406
1666
  workerPoolName,
1407
1667
  instance,
1408
- options
1668
+ options,
1669
+ settings
1409
1670
  );
1410
1671
  }
1411
1672
  };
@@ -1416,17 +1677,24 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1416
1677
  name: string,
1417
1678
  workerPoolName: string,
1418
1679
  instance: string,
1419
- options?: AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsOptionalParams
1680
+ options?: AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsOptionalParams,
1681
+ settings?: PageSettings
1420
1682
  ): AsyncIterableIterator<ResourceMetricDefinition[]> {
1421
- let result = await this._listWorkerPoolInstanceMetricDefinitions(
1422
- resourceGroupName,
1423
- name,
1424
- workerPoolName,
1425
- instance,
1426
- options
1427
- );
1428
- yield result.value || [];
1429
- let continuationToken = result.nextLink;
1683
+ let result: AppServiceEnvironmentsListWorkerPoolInstanceMetricDefinitionsResponse;
1684
+ let continuationToken = settings?.continuationToken;
1685
+ if (!continuationToken) {
1686
+ result = await this._listWorkerPoolInstanceMetricDefinitions(
1687
+ resourceGroupName,
1688
+ name,
1689
+ workerPoolName,
1690
+ instance,
1691
+ options
1692
+ );
1693
+ let page = result.value || [];
1694
+ continuationToken = result.nextLink;
1695
+ setContinuationToken(page, continuationToken);
1696
+ yield page;
1697
+ }
1430
1698
  while (continuationToken) {
1431
1699
  result = await this._listWorkerPoolInstanceMetricDefinitionsNext(
1432
1700
  resourceGroupName,
@@ -1437,7 +1705,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1437
1705
  options
1438
1706
  );
1439
1707
  continuationToken = result.nextLink;
1440
- yield result.value || [];
1708
+ let page = result.value || [];
1709
+ setContinuationToken(page, continuationToken);
1710
+ yield page;
1441
1711
  }
1442
1712
  }
1443
1713
 
@@ -1485,12 +1755,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1485
1755
  [Symbol.asyncIterator]() {
1486
1756
  return this;
1487
1757
  },
1488
- byPage: () => {
1758
+ byPage: (settings?: PageSettings) => {
1759
+ if (settings?.maxPageSize) {
1760
+ throw new Error("maxPageSize is not supported by this operation.");
1761
+ }
1489
1762
  return this.listWebWorkerMetricDefinitionsPagingPage(
1490
1763
  resourceGroupName,
1491
1764
  name,
1492
1765
  workerPoolName,
1493
- options
1766
+ options,
1767
+ settings
1494
1768
  );
1495
1769
  }
1496
1770
  };
@@ -1500,16 +1774,23 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1500
1774
  resourceGroupName: string,
1501
1775
  name: string,
1502
1776
  workerPoolName: string,
1503
- options?: AppServiceEnvironmentsListWebWorkerMetricDefinitionsOptionalParams
1777
+ options?: AppServiceEnvironmentsListWebWorkerMetricDefinitionsOptionalParams,
1778
+ settings?: PageSettings
1504
1779
  ): AsyncIterableIterator<ResourceMetricDefinition[]> {
1505
- let result = await this._listWebWorkerMetricDefinitions(
1506
- resourceGroupName,
1507
- name,
1508
- workerPoolName,
1509
- options
1510
- );
1511
- yield result.value || [];
1512
- let continuationToken = result.nextLink;
1780
+ let result: AppServiceEnvironmentsListWebWorkerMetricDefinitionsResponse;
1781
+ let continuationToken = settings?.continuationToken;
1782
+ if (!continuationToken) {
1783
+ result = await this._listWebWorkerMetricDefinitions(
1784
+ resourceGroupName,
1785
+ name,
1786
+ workerPoolName,
1787
+ options
1788
+ );
1789
+ let page = result.value || [];
1790
+ continuationToken = result.nextLink;
1791
+ setContinuationToken(page, continuationToken);
1792
+ yield page;
1793
+ }
1513
1794
  while (continuationToken) {
1514
1795
  result = await this._listWebWorkerMetricDefinitionsNext(
1515
1796
  resourceGroupName,
@@ -1519,7 +1800,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1519
1800
  options
1520
1801
  );
1521
1802
  continuationToken = result.nextLink;
1522
- yield result.value || [];
1803
+ let page = result.value || [];
1804
+ setContinuationToken(page, continuationToken);
1805
+ yield page;
1523
1806
  }
1524
1807
  }
1525
1808
 
@@ -1565,12 +1848,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1565
1848
  [Symbol.asyncIterator]() {
1566
1849
  return this;
1567
1850
  },
1568
- byPage: () => {
1851
+ byPage: (settings?: PageSettings) => {
1852
+ if (settings?.maxPageSize) {
1853
+ throw new Error("maxPageSize is not supported by this operation.");
1854
+ }
1569
1855
  return this.listWorkerPoolSkusPagingPage(
1570
1856
  resourceGroupName,
1571
1857
  name,
1572
1858
  workerPoolName,
1573
- options
1859
+ options,
1860
+ settings
1574
1861
  );
1575
1862
  }
1576
1863
  };
@@ -1580,16 +1867,23 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1580
1867
  resourceGroupName: string,
1581
1868
  name: string,
1582
1869
  workerPoolName: string,
1583
- options?: AppServiceEnvironmentsListWorkerPoolSkusOptionalParams
1870
+ options?: AppServiceEnvironmentsListWorkerPoolSkusOptionalParams,
1871
+ settings?: PageSettings
1584
1872
  ): AsyncIterableIterator<SkuInfo[]> {
1585
- let result = await this._listWorkerPoolSkus(
1586
- resourceGroupName,
1587
- name,
1588
- workerPoolName,
1589
- options
1590
- );
1591
- yield result.value || [];
1592
- let continuationToken = result.nextLink;
1873
+ let result: AppServiceEnvironmentsListWorkerPoolSkusResponse;
1874
+ let continuationToken = settings?.continuationToken;
1875
+ if (!continuationToken) {
1876
+ result = await this._listWorkerPoolSkus(
1877
+ resourceGroupName,
1878
+ name,
1879
+ workerPoolName,
1880
+ options
1881
+ );
1882
+ let page = result.value || [];
1883
+ continuationToken = result.nextLink;
1884
+ setContinuationToken(page, continuationToken);
1885
+ yield page;
1886
+ }
1593
1887
  while (continuationToken) {
1594
1888
  result = await this._listWorkerPoolSkusNext(
1595
1889
  resourceGroupName,
@@ -1599,7 +1893,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1599
1893
  options
1600
1894
  );
1601
1895
  continuationToken = result.nextLink;
1602
- yield result.value || [];
1896
+ let page = result.value || [];
1897
+ setContinuationToken(page, continuationToken);
1898
+ yield page;
1603
1899
  }
1604
1900
  }
1605
1901
 
@@ -1645,12 +1941,16 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1645
1941
  [Symbol.asyncIterator]() {
1646
1942
  return this;
1647
1943
  },
1648
- byPage: () => {
1944
+ byPage: (settings?: PageSettings) => {
1945
+ if (settings?.maxPageSize) {
1946
+ throw new Error("maxPageSize is not supported by this operation.");
1947
+ }
1649
1948
  return this.listWebWorkerUsagesPagingPage(
1650
1949
  resourceGroupName,
1651
1950
  name,
1652
1951
  workerPoolName,
1653
- options
1952
+ options,
1953
+ settings
1654
1954
  );
1655
1955
  }
1656
1956
  };
@@ -1660,16 +1960,23 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1660
1960
  resourceGroupName: string,
1661
1961
  name: string,
1662
1962
  workerPoolName: string,
1663
- options?: AppServiceEnvironmentsListWebWorkerUsagesOptionalParams
1963
+ options?: AppServiceEnvironmentsListWebWorkerUsagesOptionalParams,
1964
+ settings?: PageSettings
1664
1965
  ): AsyncIterableIterator<Usage[]> {
1665
- let result = await this._listWebWorkerUsages(
1666
- resourceGroupName,
1667
- name,
1668
- workerPoolName,
1669
- options
1670
- );
1671
- yield result.value || [];
1672
- let continuationToken = result.nextLink;
1966
+ let result: AppServiceEnvironmentsListWebWorkerUsagesResponse;
1967
+ let continuationToken = settings?.continuationToken;
1968
+ if (!continuationToken) {
1969
+ result = await this._listWebWorkerUsages(
1970
+ resourceGroupName,
1971
+ name,
1972
+ workerPoolName,
1973
+ options
1974
+ );
1975
+ let page = result.value || [];
1976
+ continuationToken = result.nextLink;
1977
+ setContinuationToken(page, continuationToken);
1978
+ yield page;
1979
+ }
1673
1980
  while (continuationToken) {
1674
1981
  result = await this._listWebWorkerUsagesNext(
1675
1982
  resourceGroupName,
@@ -1679,7 +1986,9 @@ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments {
1679
1986
  options
1680
1987
  );
1681
1988
  continuationToken = result.nextLink;
1682
- yield result.value || [];
1989
+ let page = result.value || [];
1990
+ setContinuationToken(page, continuationToken);
1991
+ yield page;
1683
1992
  }
1684
1993
  }
1685
1994