@azure/arm-appservice 13.0.3-alpha.20221025.1 → 13.0.3-alpha.20221115.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.
- package/CHANGELOG.md +2 -8
- package/dist/index.js +3061 -1189
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/operations/appServiceCertificateOrders.d.ts.map +1 -1
- package/dist-esm/src/operations/appServiceCertificateOrders.js +55 -21
- package/dist-esm/src/operations/appServiceCertificateOrders.js.map +1 -1
- package/dist-esm/src/operations/appServiceEnvironments.d.ts.map +1 -1
- package/dist-esm/src/operations/appServiceEnvironments.js +400 -157
- package/dist-esm/src/operations/appServiceEnvironments.js.map +1 -1
- package/dist-esm/src/operations/appServicePlans.d.ts.map +1 -1
- package/dist-esm/src/operations/appServicePlans.js +109 -42
- package/dist-esm/src/operations/appServicePlans.js.map +1 -1
- package/dist-esm/src/operations/certificateOrdersDiagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOrdersDiagnostics.js +19 -7
- package/dist-esm/src/operations/certificateOrdersDiagnostics.js.map +1 -1
- package/dist-esm/src/operations/certificateRegistrationProvider.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateRegistrationProvider.js +19 -7
- package/dist-esm/src/operations/certificateRegistrationProvider.js.map +1 -1
- package/dist-esm/src/operations/certificates.d.ts.map +1 -1
- package/dist-esm/src/operations/certificates.js +37 -14
- package/dist-esm/src/operations/certificates.js.map +1 -1
- package/dist-esm/src/operations/containerApps.d.ts.map +1 -1
- package/dist-esm/src/operations/containerApps.js +37 -14
- package/dist-esm/src/operations/containerApps.js.map +1 -1
- package/dist-esm/src/operations/containerAppsRevisions.d.ts.map +1 -1
- package/dist-esm/src/operations/containerAppsRevisions.js +19 -7
- package/dist-esm/src/operations/containerAppsRevisions.js.map +1 -1
- package/dist-esm/src/operations/deletedWebApps.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedWebApps.js +37 -14
- package/dist-esm/src/operations/deletedWebApps.js.map +1 -1
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnostics.js +163 -63
- package/dist-esm/src/operations/diagnostics.js.map +1 -1
- package/dist-esm/src/operations/domainRegistrationProvider.d.ts.map +1 -1
- package/dist-esm/src/operations/domainRegistrationProvider.js +19 -7
- package/dist-esm/src/operations/domainRegistrationProvider.js.map +1 -1
- package/dist-esm/src/operations/domains.d.ts.map +1 -1
- package/dist-esm/src/operations/domains.js +73 -28
- package/dist-esm/src/operations/domains.js.map +1 -1
- package/dist-esm/src/operations/kubeEnvironments.d.ts.map +1 -1
- package/dist-esm/src/operations/kubeEnvironments.js +37 -14
- package/dist-esm/src/operations/kubeEnvironments.js.map +1 -1
- package/dist-esm/src/operations/provider.d.ts.map +1 -1
- package/dist-esm/src/operations/provider.js +127 -49
- package/dist-esm/src/operations/provider.js.map +1 -1
- package/dist-esm/src/operations/recommendations.d.ts.map +1 -1
- package/dist-esm/src/operations/recommendations.js +91 -35
- package/dist-esm/src/operations/recommendations.js.map +1 -1
- package/dist-esm/src/operations/resourceHealthMetadataOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceHealthMetadataOperations.js +73 -28
- package/dist-esm/src/operations/resourceHealthMetadataOperations.js.map +1 -1
- package/dist-esm/src/operations/staticSites.d.ts.map +1 -1
- package/dist-esm/src/operations/staticSites.js +217 -84
- package/dist-esm/src/operations/staticSites.js.map +1 -1
- package/dist-esm/src/operations/topLevelDomains.d.ts.map +1 -1
- package/dist-esm/src/operations/topLevelDomains.js +37 -14
- package/dist-esm/src/operations/topLevelDomains.js.map +1 -1
- package/dist-esm/src/operations/webApps.d.ts.map +1 -1
- package/dist-esm/src/operations/webApps.js +1171 -455
- package/dist-esm/src/operations/webApps.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitions.js +37 -14
- package/dist-esm/src/operations/workflowRunActionRepetitions.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js +19 -7
- package/dist-esm/src/operations/workflowRunActionRepetitionsRequestHistories.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActionScopeRepetitions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js +19 -7
- package/dist-esm/src/operations/workflowRunActionScopeRepetitions.js.map +1 -1
- package/dist-esm/src/operations/workflowRunActions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRunActions.js +37 -14
- package/dist-esm/src/operations/workflowRunActions.js.map +1 -1
- package/dist-esm/src/operations/workflowRuns.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowRuns.js +19 -7
- package/dist-esm/src/operations/workflowRuns.js.map +1 -1
- package/dist-esm/src/operations/workflowTriggerHistories.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowTriggerHistories.js +19 -7
- package/dist-esm/src/operations/workflowTriggerHistories.js.map +1 -1
- package/dist-esm/src/operations/workflowTriggers.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowTriggers.js +19 -7
- package/dist-esm/src/operations/workflowTriggers.js.map +1 -1
- package/dist-esm/src/operations/workflowVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/workflowVersions.js +19 -7
- package/dist-esm/src/operations/workflowVersions.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/webSiteManagementClient.d.ts.map +1 -1
- package/dist-esm/src/webSiteManagementClient.js +128 -59
- package/dist-esm/src/webSiteManagementClient.js.map +1 -1
- package/dist-esm/test/web_examples.js +2 -2
- package/dist-esm/test/web_examples.js.map +1 -1
- package/package.json +4 -3
- package/review/arm-appservice.api.md +3 -0
- package/src/index.ts +1 -0
- package/src/operations/appServiceCertificateOrders.ts +71 -29
- package/src/operations/appServiceEnvironments.ts +552 -243
- package/src/operations/appServicePlans.ts +148 -59
- package/src/operations/certificateOrdersDiagnostics.ts +26 -12
- package/src/operations/certificateRegistrationProvider.ts +21 -8
- package/src/operations/certificates.ts +45 -16
- package/src/operations/containerApps.ts +45 -16
- package/src/operations/containerAppsRevisions.ts +26 -12
- package/src/operations/deletedWebApps.ts +41 -16
- package/src/operations/diagnostics.ts +235 -117
- package/src/operations/domainRegistrationProvider.ts +21 -8
- package/src/operations/domains.ts +95 -37
- package/src/operations/kubeEnvironments.ts +45 -16
- package/src/operations/provider.ts +146 -56
- package/src/operations/recommendations.ts +122 -57
- package/src/operations/resourceHealthMetadataOperations.ts +97 -38
- package/src/operations/staticSites.ts +296 -144
- package/src/operations/topLevelDomains.ts +47 -17
- package/src/operations/webApps.ts +1667 -791
- package/src/operations/workflowRunActionRepetitions.ts +59 -32
- package/src/operations/workflowRunActionRepetitionsRequestHistories.ts +30 -16
- package/src/operations/workflowRunActionScopeRepetitions.ts +29 -15
- package/src/operations/workflowRunActions.ts +57 -30
- package/src/operations/workflowRuns.ts +22 -13
- package/src/operations/workflowTriggerHistories.ts +28 -14
- package/src/operations/workflowTriggers.ts +22 -13
- package/src/operations/workflowVersions.ts +22 -13
- package/src/pagingHelper.ts +39 -0
- package/src/webSiteManagementClient.ts +151 -71
- package/types/arm-appservice.d.ts +9 -0
- package/types/tsdoc-metadata.json +1 -1
|
@@ -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 { AppServicePlans } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,21 +19,25 @@ import {
|
|
|
18
19
|
AppServicePlan,
|
|
19
20
|
AppServicePlansListNextOptionalParams,
|
|
20
21
|
AppServicePlansListOptionalParams,
|
|
22
|
+
AppServicePlansListResponse,
|
|
21
23
|
AppServicePlansListByResourceGroupNextOptionalParams,
|
|
22
24
|
AppServicePlansListByResourceGroupOptionalParams,
|
|
25
|
+
AppServicePlansListByResourceGroupResponse,
|
|
23
26
|
AppServicePlansListWebAppsByHybridConnectionNextOptionalParams,
|
|
24
27
|
AppServicePlansListWebAppsByHybridConnectionOptionalParams,
|
|
28
|
+
AppServicePlansListWebAppsByHybridConnectionResponse,
|
|
25
29
|
HybridConnection,
|
|
26
30
|
AppServicePlansListHybridConnectionsNextOptionalParams,
|
|
27
31
|
AppServicePlansListHybridConnectionsOptionalParams,
|
|
32
|
+
AppServicePlansListHybridConnectionsResponse,
|
|
28
33
|
Site,
|
|
29
34
|
AppServicePlansListWebAppsNextOptionalParams,
|
|
30
35
|
AppServicePlansListWebAppsOptionalParams,
|
|
36
|
+
AppServicePlansListWebAppsResponse,
|
|
31
37
|
CsmUsageQuota,
|
|
32
38
|
AppServicePlansListUsagesNextOptionalParams,
|
|
33
39
|
AppServicePlansListUsagesOptionalParams,
|
|
34
|
-
|
|
35
|
-
AppServicePlansListByResourceGroupResponse,
|
|
40
|
+
AppServicePlansListUsagesResponse,
|
|
36
41
|
AppServicePlansGetOptionalParams,
|
|
37
42
|
AppServicePlansGetResponse,
|
|
38
43
|
AppServicePlansCreateOrUpdateOptionalParams,
|
|
@@ -48,15 +53,11 @@ import {
|
|
|
48
53
|
AppServicePlansDeleteHybridConnectionOptionalParams,
|
|
49
54
|
AppServicePlansListHybridConnectionKeysOptionalParams,
|
|
50
55
|
AppServicePlansListHybridConnectionKeysResponse,
|
|
51
|
-
AppServicePlansListWebAppsByHybridConnectionResponse,
|
|
52
56
|
AppServicePlansGetHybridConnectionPlanLimitOptionalParams,
|
|
53
57
|
AppServicePlansGetHybridConnectionPlanLimitResponse,
|
|
54
|
-
AppServicePlansListHybridConnectionsResponse,
|
|
55
58
|
AppServicePlansRestartWebAppsOptionalParams,
|
|
56
|
-
AppServicePlansListWebAppsResponse,
|
|
57
59
|
AppServicePlansGetServerFarmSkusOptionalParams,
|
|
58
60
|
AppServicePlansGetServerFarmSkusResponse,
|
|
59
|
-
AppServicePlansListUsagesResponse,
|
|
60
61
|
AppServicePlansListVnetsOptionalParams,
|
|
61
62
|
AppServicePlansListVnetsResponse,
|
|
62
63
|
AppServicePlansGetVnetFromServerFarmOptionalParams,
|
|
@@ -113,22 +114,34 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
113
114
|
[Symbol.asyncIterator]() {
|
|
114
115
|
return this;
|
|
115
116
|
},
|
|
116
|
-
byPage: () => {
|
|
117
|
-
|
|
117
|
+
byPage: (settings?: PageSettings) => {
|
|
118
|
+
if (settings?.maxPageSize) {
|
|
119
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
120
|
+
}
|
|
121
|
+
return this.listPagingPage(options, settings);
|
|
118
122
|
}
|
|
119
123
|
};
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
private async *listPagingPage(
|
|
123
|
-
options?: AppServicePlansListOptionalParams
|
|
127
|
+
options?: AppServicePlansListOptionalParams,
|
|
128
|
+
settings?: PageSettings
|
|
124
129
|
): AsyncIterableIterator<AppServicePlan[]> {
|
|
125
|
-
let result
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
let result: AppServicePlansListResponse;
|
|
131
|
+
let continuationToken = settings?.continuationToken;
|
|
132
|
+
if (!continuationToken) {
|
|
133
|
+
result = await this._list(options);
|
|
134
|
+
let page = result.value || [];
|
|
135
|
+
continuationToken = result.nextLink;
|
|
136
|
+
setContinuationToken(page, continuationToken);
|
|
137
|
+
yield page;
|
|
138
|
+
}
|
|
128
139
|
while (continuationToken) {
|
|
129
140
|
result = await this._listNext(continuationToken, options);
|
|
130
141
|
continuationToken = result.nextLink;
|
|
131
|
-
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
setContinuationToken(page, continuationToken);
|
|
144
|
+
yield page;
|
|
132
145
|
}
|
|
133
146
|
}
|
|
134
147
|
|
|
@@ -157,19 +170,33 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
157
170
|
[Symbol.asyncIterator]() {
|
|
158
171
|
return this;
|
|
159
172
|
},
|
|
160
|
-
byPage: () => {
|
|
161
|
-
|
|
173
|
+
byPage: (settings?: PageSettings) => {
|
|
174
|
+
if (settings?.maxPageSize) {
|
|
175
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
176
|
+
}
|
|
177
|
+
return this.listByResourceGroupPagingPage(
|
|
178
|
+
resourceGroupName,
|
|
179
|
+
options,
|
|
180
|
+
settings
|
|
181
|
+
);
|
|
162
182
|
}
|
|
163
183
|
};
|
|
164
184
|
}
|
|
165
185
|
|
|
166
186
|
private async *listByResourceGroupPagingPage(
|
|
167
187
|
resourceGroupName: string,
|
|
168
|
-
options?: AppServicePlansListByResourceGroupOptionalParams
|
|
188
|
+
options?: AppServicePlansListByResourceGroupOptionalParams,
|
|
189
|
+
settings?: PageSettings
|
|
169
190
|
): AsyncIterableIterator<AppServicePlan[]> {
|
|
170
|
-
let result
|
|
171
|
-
|
|
172
|
-
|
|
191
|
+
let result: AppServicePlansListByResourceGroupResponse;
|
|
192
|
+
let continuationToken = settings?.continuationToken;
|
|
193
|
+
if (!continuationToken) {
|
|
194
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
195
|
+
let page = result.value || [];
|
|
196
|
+
continuationToken = result.nextLink;
|
|
197
|
+
setContinuationToken(page, continuationToken);
|
|
198
|
+
yield page;
|
|
199
|
+
}
|
|
173
200
|
while (continuationToken) {
|
|
174
201
|
result = await this._listByResourceGroupNext(
|
|
175
202
|
resourceGroupName,
|
|
@@ -177,7 +204,9 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
177
204
|
options
|
|
178
205
|
);
|
|
179
206
|
continuationToken = result.nextLink;
|
|
180
|
-
|
|
207
|
+
let page = result.value || [];
|
|
208
|
+
setContinuationToken(page, continuationToken);
|
|
209
|
+
yield page;
|
|
181
210
|
}
|
|
182
211
|
}
|
|
183
212
|
|
|
@@ -222,13 +251,17 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
222
251
|
[Symbol.asyncIterator]() {
|
|
223
252
|
return this;
|
|
224
253
|
},
|
|
225
|
-
byPage: () => {
|
|
254
|
+
byPage: (settings?: PageSettings) => {
|
|
255
|
+
if (settings?.maxPageSize) {
|
|
256
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
257
|
+
}
|
|
226
258
|
return this.listWebAppsByHybridConnectionPagingPage(
|
|
227
259
|
resourceGroupName,
|
|
228
260
|
name,
|
|
229
261
|
namespaceName,
|
|
230
262
|
relayName,
|
|
231
|
-
options
|
|
263
|
+
options,
|
|
264
|
+
settings
|
|
232
265
|
);
|
|
233
266
|
}
|
|
234
267
|
};
|
|
@@ -239,17 +272,24 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
239
272
|
name: string,
|
|
240
273
|
namespaceName: string,
|
|
241
274
|
relayName: string,
|
|
242
|
-
options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams
|
|
275
|
+
options?: AppServicePlansListWebAppsByHybridConnectionOptionalParams,
|
|
276
|
+
settings?: PageSettings
|
|
243
277
|
): AsyncIterableIterator<string[]> {
|
|
244
|
-
let result
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
278
|
+
let result: AppServicePlansListWebAppsByHybridConnectionResponse;
|
|
279
|
+
let continuationToken = settings?.continuationToken;
|
|
280
|
+
if (!continuationToken) {
|
|
281
|
+
result = await this._listWebAppsByHybridConnection(
|
|
282
|
+
resourceGroupName,
|
|
283
|
+
name,
|
|
284
|
+
namespaceName,
|
|
285
|
+
relayName,
|
|
286
|
+
options
|
|
287
|
+
);
|
|
288
|
+
let page = result.value || [];
|
|
289
|
+
continuationToken = result.nextLink;
|
|
290
|
+
setContinuationToken(page, continuationToken);
|
|
291
|
+
yield page;
|
|
292
|
+
}
|
|
253
293
|
while (continuationToken) {
|
|
254
294
|
result = await this._listWebAppsByHybridConnectionNext(
|
|
255
295
|
resourceGroupName,
|
|
@@ -260,7 +300,9 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
260
300
|
options
|
|
261
301
|
);
|
|
262
302
|
continuationToken = result.nextLink;
|
|
263
|
-
|
|
303
|
+
let page = result.value || [];
|
|
304
|
+
setContinuationToken(page, continuationToken);
|
|
305
|
+
yield page;
|
|
264
306
|
}
|
|
265
307
|
}
|
|
266
308
|
|
|
@@ -305,11 +347,15 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
305
347
|
[Symbol.asyncIterator]() {
|
|
306
348
|
return this;
|
|
307
349
|
},
|
|
308
|
-
byPage: () => {
|
|
350
|
+
byPage: (settings?: PageSettings) => {
|
|
351
|
+
if (settings?.maxPageSize) {
|
|
352
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
353
|
+
}
|
|
309
354
|
return this.listHybridConnectionsPagingPage(
|
|
310
355
|
resourceGroupName,
|
|
311
356
|
name,
|
|
312
|
-
options
|
|
357
|
+
options,
|
|
358
|
+
settings
|
|
313
359
|
);
|
|
314
360
|
}
|
|
315
361
|
};
|
|
@@ -318,15 +364,22 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
318
364
|
private async *listHybridConnectionsPagingPage(
|
|
319
365
|
resourceGroupName: string,
|
|
320
366
|
name: string,
|
|
321
|
-
options?: AppServicePlansListHybridConnectionsOptionalParams
|
|
367
|
+
options?: AppServicePlansListHybridConnectionsOptionalParams,
|
|
368
|
+
settings?: PageSettings
|
|
322
369
|
): AsyncIterableIterator<HybridConnection[]> {
|
|
323
|
-
let result
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
370
|
+
let result: AppServicePlansListHybridConnectionsResponse;
|
|
371
|
+
let continuationToken = settings?.continuationToken;
|
|
372
|
+
if (!continuationToken) {
|
|
373
|
+
result = await this._listHybridConnections(
|
|
374
|
+
resourceGroupName,
|
|
375
|
+
name,
|
|
376
|
+
options
|
|
377
|
+
);
|
|
378
|
+
let page = result.value || [];
|
|
379
|
+
continuationToken = result.nextLink;
|
|
380
|
+
setContinuationToken(page, continuationToken);
|
|
381
|
+
yield page;
|
|
382
|
+
}
|
|
330
383
|
while (continuationToken) {
|
|
331
384
|
result = await this._listHybridConnectionsNext(
|
|
332
385
|
resourceGroupName,
|
|
@@ -335,7 +388,9 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
335
388
|
options
|
|
336
389
|
);
|
|
337
390
|
continuationToken = result.nextLink;
|
|
338
|
-
|
|
391
|
+
let page = result.value || [];
|
|
392
|
+
setContinuationToken(page, continuationToken);
|
|
393
|
+
yield page;
|
|
339
394
|
}
|
|
340
395
|
}
|
|
341
396
|
|
|
@@ -372,8 +427,16 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
372
427
|
[Symbol.asyncIterator]() {
|
|
373
428
|
return this;
|
|
374
429
|
},
|
|
375
|
-
byPage: () => {
|
|
376
|
-
|
|
430
|
+
byPage: (settings?: PageSettings) => {
|
|
431
|
+
if (settings?.maxPageSize) {
|
|
432
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
433
|
+
}
|
|
434
|
+
return this.listWebAppsPagingPage(
|
|
435
|
+
resourceGroupName,
|
|
436
|
+
name,
|
|
437
|
+
options,
|
|
438
|
+
settings
|
|
439
|
+
);
|
|
377
440
|
}
|
|
378
441
|
};
|
|
379
442
|
}
|
|
@@ -381,11 +444,18 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
381
444
|
private async *listWebAppsPagingPage(
|
|
382
445
|
resourceGroupName: string,
|
|
383
446
|
name: string,
|
|
384
|
-
options?: AppServicePlansListWebAppsOptionalParams
|
|
447
|
+
options?: AppServicePlansListWebAppsOptionalParams,
|
|
448
|
+
settings?: PageSettings
|
|
385
449
|
): AsyncIterableIterator<Site[]> {
|
|
386
|
-
let result
|
|
387
|
-
|
|
388
|
-
|
|
450
|
+
let result: AppServicePlansListWebAppsResponse;
|
|
451
|
+
let continuationToken = settings?.continuationToken;
|
|
452
|
+
if (!continuationToken) {
|
|
453
|
+
result = await this._listWebApps(resourceGroupName, name, options);
|
|
454
|
+
let page = result.value || [];
|
|
455
|
+
continuationToken = result.nextLink;
|
|
456
|
+
setContinuationToken(page, continuationToken);
|
|
457
|
+
yield page;
|
|
458
|
+
}
|
|
389
459
|
while (continuationToken) {
|
|
390
460
|
result = await this._listWebAppsNext(
|
|
391
461
|
resourceGroupName,
|
|
@@ -394,7 +464,9 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
394
464
|
options
|
|
395
465
|
);
|
|
396
466
|
continuationToken = result.nextLink;
|
|
397
|
-
|
|
467
|
+
let page = result.value || [];
|
|
468
|
+
setContinuationToken(page, continuationToken);
|
|
469
|
+
yield page;
|
|
398
470
|
}
|
|
399
471
|
}
|
|
400
472
|
|
|
@@ -431,8 +503,16 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
431
503
|
[Symbol.asyncIterator]() {
|
|
432
504
|
return this;
|
|
433
505
|
},
|
|
434
|
-
byPage: () => {
|
|
435
|
-
|
|
506
|
+
byPage: (settings?: PageSettings) => {
|
|
507
|
+
if (settings?.maxPageSize) {
|
|
508
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
509
|
+
}
|
|
510
|
+
return this.listUsagesPagingPage(
|
|
511
|
+
resourceGroupName,
|
|
512
|
+
name,
|
|
513
|
+
options,
|
|
514
|
+
settings
|
|
515
|
+
);
|
|
436
516
|
}
|
|
437
517
|
};
|
|
438
518
|
}
|
|
@@ -440,11 +520,18 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
440
520
|
private async *listUsagesPagingPage(
|
|
441
521
|
resourceGroupName: string,
|
|
442
522
|
name: string,
|
|
443
|
-
options?: AppServicePlansListUsagesOptionalParams
|
|
523
|
+
options?: AppServicePlansListUsagesOptionalParams,
|
|
524
|
+
settings?: PageSettings
|
|
444
525
|
): AsyncIterableIterator<CsmUsageQuota[]> {
|
|
445
|
-
let result
|
|
446
|
-
|
|
447
|
-
|
|
526
|
+
let result: AppServicePlansListUsagesResponse;
|
|
527
|
+
let continuationToken = settings?.continuationToken;
|
|
528
|
+
if (!continuationToken) {
|
|
529
|
+
result = await this._listUsages(resourceGroupName, name, options);
|
|
530
|
+
let page = result.value || [];
|
|
531
|
+
continuationToken = result.nextLink;
|
|
532
|
+
setContinuationToken(page, continuationToken);
|
|
533
|
+
yield page;
|
|
534
|
+
}
|
|
448
535
|
while (continuationToken) {
|
|
449
536
|
result = await this._listUsagesNext(
|
|
450
537
|
resourceGroupName,
|
|
@@ -453,7 +540,9 @@ export class AppServicePlansImpl implements AppServicePlans {
|
|
|
453
540
|
options
|
|
454
541
|
);
|
|
455
542
|
continuationToken = result.nextLink;
|
|
456
|
-
|
|
543
|
+
let page = result.value || [];
|
|
544
|
+
setContinuationToken(page, continuationToken);
|
|
545
|
+
yield page;
|
|
457
546
|
}
|
|
458
547
|
}
|
|
459
548
|
|
|
@@ -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 { CertificateOrdersDiagnostics } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -59,11 +60,15 @@ export class CertificateOrdersDiagnosticsImpl
|
|
|
59
60
|
[Symbol.asyncIterator]() {
|
|
60
61
|
return this;
|
|
61
62
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
63
67
|
return this.listAppServiceCertificateOrderDetectorResponsePagingPage(
|
|
64
68
|
resourceGroupName,
|
|
65
69
|
certificateOrderName,
|
|
66
|
-
options
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
67
72
|
);
|
|
68
73
|
}
|
|
69
74
|
};
|
|
@@ -72,15 +77,22 @@ export class CertificateOrdersDiagnosticsImpl
|
|
|
72
77
|
private async *listAppServiceCertificateOrderDetectorResponsePagingPage(
|
|
73
78
|
resourceGroupName: string,
|
|
74
79
|
certificateOrderName: string,
|
|
75
|
-
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams
|
|
80
|
+
options?: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
76
82
|
): AsyncIterableIterator<DetectorResponse[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
let result: CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._listAppServiceCertificateOrderDetectorResponse(
|
|
87
|
+
resourceGroupName,
|
|
88
|
+
certificateOrderName,
|
|
89
|
+
options
|
|
90
|
+
);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
84
96
|
while (continuationToken) {
|
|
85
97
|
result = await this._listAppServiceCertificateOrderDetectorResponseNext(
|
|
86
98
|
resourceGroupName,
|
|
@@ -89,7 +101,9 @@ export class CertificateOrdersDiagnosticsImpl
|
|
|
89
101
|
options
|
|
90
102
|
);
|
|
91
103
|
continuationToken = result.nextLink;
|
|
92
|
-
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
93
107
|
}
|
|
94
108
|
}
|
|
95
109
|
|
|
@@ -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 { CertificateRegistrationProvider } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -50,22 +51,34 @@ export class CertificateRegistrationProviderImpl
|
|
|
50
51
|
[Symbol.asyncIterator]() {
|
|
51
52
|
return this;
|
|
52
53
|
},
|
|
53
|
-
byPage: () => {
|
|
54
|
-
|
|
54
|
+
byPage: (settings?: PageSettings) => {
|
|
55
|
+
if (settings?.maxPageSize) {
|
|
56
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
57
|
+
}
|
|
58
|
+
return this.listOperationsPagingPage(options, settings);
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
private async *listOperationsPagingPage(
|
|
60
|
-
options?: CertificateRegistrationProviderListOperationsOptionalParams
|
|
64
|
+
options?: CertificateRegistrationProviderListOperationsOptionalParams,
|
|
65
|
+
settings?: PageSettings
|
|
61
66
|
): AsyncIterableIterator<CsmOperationDescription[]> {
|
|
62
|
-
let result
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
let result: CertificateRegistrationProviderListOperationsResponse;
|
|
68
|
+
let continuationToken = settings?.continuationToken;
|
|
69
|
+
if (!continuationToken) {
|
|
70
|
+
result = await this._listOperations(options);
|
|
71
|
+
let page = result.value || [];
|
|
72
|
+
continuationToken = result.nextLink;
|
|
73
|
+
setContinuationToken(page, continuationToken);
|
|
74
|
+
yield page;
|
|
75
|
+
}
|
|
65
76
|
while (continuationToken) {
|
|
66
77
|
result = await this._listOperationsNext(continuationToken, options);
|
|
67
78
|
continuationToken = result.nextLink;
|
|
68
|
-
|
|
79
|
+
let page = result.value || [];
|
|
80
|
+
setContinuationToken(page, continuationToken);
|
|
81
|
+
yield page;
|
|
69
82
|
}
|
|
70
83
|
}
|
|
71
84
|
|
|
@@ -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 { Certificates } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,9 +17,9 @@ import {
|
|
|
16
17
|
Certificate,
|
|
17
18
|
CertificatesListNextOptionalParams,
|
|
18
19
|
CertificatesListOptionalParams,
|
|
20
|
+
CertificatesListResponse,
|
|
19
21
|
CertificatesListByResourceGroupNextOptionalParams,
|
|
20
22
|
CertificatesListByResourceGroupOptionalParams,
|
|
21
|
-
CertificatesListResponse,
|
|
22
23
|
CertificatesListByResourceGroupResponse,
|
|
23
24
|
CertificatesGetOptionalParams,
|
|
24
25
|
CertificatesGetResponse,
|
|
@@ -60,22 +61,34 @@ export class CertificatesImpl implements Certificates {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listPagingPage(options, settings);
|
|
65
69
|
}
|
|
66
70
|
};
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
private async *listPagingPage(
|
|
70
|
-
options?: CertificatesListOptionalParams
|
|
74
|
+
options?: CertificatesListOptionalParams,
|
|
75
|
+
settings?: PageSettings
|
|
71
76
|
): AsyncIterableIterator<Certificate[]> {
|
|
72
|
-
let result
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
let result: CertificatesListResponse;
|
|
78
|
+
let continuationToken = settings?.continuationToken;
|
|
79
|
+
if (!continuationToken) {
|
|
80
|
+
result = await this._list(options);
|
|
81
|
+
let page = result.value || [];
|
|
82
|
+
continuationToken = result.nextLink;
|
|
83
|
+
setContinuationToken(page, continuationToken);
|
|
84
|
+
yield page;
|
|
85
|
+
}
|
|
75
86
|
while (continuationToken) {
|
|
76
87
|
result = await this._listNext(continuationToken, options);
|
|
77
88
|
continuationToken = result.nextLink;
|
|
78
|
-
|
|
89
|
+
let page = result.value || [];
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
79
92
|
}
|
|
80
93
|
}
|
|
81
94
|
|
|
@@ -104,19 +117,33 @@ export class CertificatesImpl implements Certificates {
|
|
|
104
117
|
[Symbol.asyncIterator]() {
|
|
105
118
|
return this;
|
|
106
119
|
},
|
|
107
|
-
byPage: () => {
|
|
108
|
-
|
|
120
|
+
byPage: (settings?: PageSettings) => {
|
|
121
|
+
if (settings?.maxPageSize) {
|
|
122
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
123
|
+
}
|
|
124
|
+
return this.listByResourceGroupPagingPage(
|
|
125
|
+
resourceGroupName,
|
|
126
|
+
options,
|
|
127
|
+
settings
|
|
128
|
+
);
|
|
109
129
|
}
|
|
110
130
|
};
|
|
111
131
|
}
|
|
112
132
|
|
|
113
133
|
private async *listByResourceGroupPagingPage(
|
|
114
134
|
resourceGroupName: string,
|
|
115
|
-
options?: CertificatesListByResourceGroupOptionalParams
|
|
135
|
+
options?: CertificatesListByResourceGroupOptionalParams,
|
|
136
|
+
settings?: PageSettings
|
|
116
137
|
): AsyncIterableIterator<Certificate[]> {
|
|
117
|
-
let result
|
|
118
|
-
|
|
119
|
-
|
|
138
|
+
let result: CertificatesListByResourceGroupResponse;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
120
147
|
while (continuationToken) {
|
|
121
148
|
result = await this._listByResourceGroupNext(
|
|
122
149
|
resourceGroupName,
|
|
@@ -124,7 +151,9 @@ export class CertificatesImpl implements Certificates {
|
|
|
124
151
|
options
|
|
125
152
|
);
|
|
126
153
|
continuationToken = result.nextLink;
|
|
127
|
-
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
setContinuationToken(page, continuationToken);
|
|
156
|
+
yield page;
|
|
128
157
|
}
|
|
129
158
|
}
|
|
130
159
|
|