@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 { Provider } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,27 +17,27 @@ import {
|
|
|
16
17
|
ApplicationStackResource,
|
|
17
18
|
ProviderGetAvailableStacksNextOptionalParams,
|
|
18
19
|
ProviderGetAvailableStacksOptionalParams,
|
|
20
|
+
ProviderGetAvailableStacksResponse,
|
|
19
21
|
FunctionAppStack,
|
|
20
22
|
ProviderGetFunctionAppStacksNextOptionalParams,
|
|
21
23
|
ProviderGetFunctionAppStacksOptionalParams,
|
|
24
|
+
ProviderGetFunctionAppStacksResponse,
|
|
22
25
|
ProviderGetFunctionAppStacksForLocationNextOptionalParams,
|
|
23
26
|
ProviderGetFunctionAppStacksForLocationOptionalParams,
|
|
27
|
+
ProviderGetFunctionAppStacksForLocationResponse,
|
|
24
28
|
WebAppStack,
|
|
25
29
|
ProviderGetWebAppStacksForLocationNextOptionalParams,
|
|
26
30
|
ProviderGetWebAppStacksForLocationOptionalParams,
|
|
31
|
+
ProviderGetWebAppStacksForLocationResponse,
|
|
27
32
|
CsmOperationDescription,
|
|
28
33
|
ProviderListOperationsNextOptionalParams,
|
|
29
34
|
ProviderListOperationsOptionalParams,
|
|
35
|
+
ProviderListOperationsResponse,
|
|
30
36
|
ProviderGetWebAppStacksNextOptionalParams,
|
|
31
37
|
ProviderGetWebAppStacksOptionalParams,
|
|
38
|
+
ProviderGetWebAppStacksResponse,
|
|
32
39
|
ProviderGetAvailableStacksOnPremNextOptionalParams,
|
|
33
40
|
ProviderGetAvailableStacksOnPremOptionalParams,
|
|
34
|
-
ProviderGetAvailableStacksResponse,
|
|
35
|
-
ProviderGetFunctionAppStacksResponse,
|
|
36
|
-
ProviderGetFunctionAppStacksForLocationResponse,
|
|
37
|
-
ProviderGetWebAppStacksForLocationResponse,
|
|
38
|
-
ProviderListOperationsResponse,
|
|
39
|
-
ProviderGetWebAppStacksResponse,
|
|
40
41
|
ProviderGetAvailableStacksOnPremResponse,
|
|
41
42
|
ProviderGetAvailableStacksNextResponse,
|
|
42
43
|
ProviderGetFunctionAppStacksNextResponse,
|
|
@@ -75,22 +76,34 @@ export class ProviderImpl implements Provider {
|
|
|
75
76
|
[Symbol.asyncIterator]() {
|
|
76
77
|
return this;
|
|
77
78
|
},
|
|
78
|
-
byPage: () => {
|
|
79
|
-
|
|
79
|
+
byPage: (settings?: PageSettings) => {
|
|
80
|
+
if (settings?.maxPageSize) {
|
|
81
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
82
|
+
}
|
|
83
|
+
return this.getAvailableStacksPagingPage(options, settings);
|
|
80
84
|
}
|
|
81
85
|
};
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
private async *getAvailableStacksPagingPage(
|
|
85
|
-
options?: ProviderGetAvailableStacksOptionalParams
|
|
89
|
+
options?: ProviderGetAvailableStacksOptionalParams,
|
|
90
|
+
settings?: PageSettings
|
|
86
91
|
): AsyncIterableIterator<ApplicationStackResource[]> {
|
|
87
|
-
let result
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
let result: ProviderGetAvailableStacksResponse;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._getAvailableStacks(options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
90
101
|
while (continuationToken) {
|
|
91
102
|
result = await this._getAvailableStacksNext(continuationToken, options);
|
|
92
103
|
continuationToken = result.nextLink;
|
|
93
|
-
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
94
107
|
}
|
|
95
108
|
}
|
|
96
109
|
|
|
@@ -117,22 +130,34 @@ export class ProviderImpl implements Provider {
|
|
|
117
130
|
[Symbol.asyncIterator]() {
|
|
118
131
|
return this;
|
|
119
132
|
},
|
|
120
|
-
byPage: () => {
|
|
121
|
-
|
|
133
|
+
byPage: (settings?: PageSettings) => {
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
135
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
136
|
+
}
|
|
137
|
+
return this.getFunctionAppStacksPagingPage(options, settings);
|
|
122
138
|
}
|
|
123
139
|
};
|
|
124
140
|
}
|
|
125
141
|
|
|
126
142
|
private async *getFunctionAppStacksPagingPage(
|
|
127
|
-
options?: ProviderGetFunctionAppStacksOptionalParams
|
|
143
|
+
options?: ProviderGetFunctionAppStacksOptionalParams,
|
|
144
|
+
settings?: PageSettings
|
|
128
145
|
): AsyncIterableIterator<FunctionAppStack[]> {
|
|
129
|
-
let result
|
|
130
|
-
|
|
131
|
-
|
|
146
|
+
let result: ProviderGetFunctionAppStacksResponse;
|
|
147
|
+
let continuationToken = settings?.continuationToken;
|
|
148
|
+
if (!continuationToken) {
|
|
149
|
+
result = await this._getFunctionAppStacks(options);
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
continuationToken = result.nextLink;
|
|
152
|
+
setContinuationToken(page, continuationToken);
|
|
153
|
+
yield page;
|
|
154
|
+
}
|
|
132
155
|
while (continuationToken) {
|
|
133
156
|
result = await this._getFunctionAppStacksNext(continuationToken, options);
|
|
134
157
|
continuationToken = result.nextLink;
|
|
135
|
-
|
|
158
|
+
let page = result.value || [];
|
|
159
|
+
setContinuationToken(page, continuationToken);
|
|
160
|
+
yield page;
|
|
136
161
|
}
|
|
137
162
|
}
|
|
138
163
|
|
|
@@ -164,10 +189,14 @@ export class ProviderImpl implements Provider {
|
|
|
164
189
|
[Symbol.asyncIterator]() {
|
|
165
190
|
return this;
|
|
166
191
|
},
|
|
167
|
-
byPage: () => {
|
|
192
|
+
byPage: (settings?: PageSettings) => {
|
|
193
|
+
if (settings?.maxPageSize) {
|
|
194
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
195
|
+
}
|
|
168
196
|
return this.getFunctionAppStacksForLocationPagingPage(
|
|
169
197
|
location,
|
|
170
|
-
options
|
|
198
|
+
options,
|
|
199
|
+
settings
|
|
171
200
|
);
|
|
172
201
|
}
|
|
173
202
|
};
|
|
@@ -175,11 +204,18 @@ export class ProviderImpl implements Provider {
|
|
|
175
204
|
|
|
176
205
|
private async *getFunctionAppStacksForLocationPagingPage(
|
|
177
206
|
location: string,
|
|
178
|
-
options?: ProviderGetFunctionAppStacksForLocationOptionalParams
|
|
207
|
+
options?: ProviderGetFunctionAppStacksForLocationOptionalParams,
|
|
208
|
+
settings?: PageSettings
|
|
179
209
|
): AsyncIterableIterator<FunctionAppStack[]> {
|
|
180
|
-
let result
|
|
181
|
-
|
|
182
|
-
|
|
210
|
+
let result: ProviderGetFunctionAppStacksForLocationResponse;
|
|
211
|
+
let continuationToken = settings?.continuationToken;
|
|
212
|
+
if (!continuationToken) {
|
|
213
|
+
result = await this._getFunctionAppStacksForLocation(location, options);
|
|
214
|
+
let page = result.value || [];
|
|
215
|
+
continuationToken = result.nextLink;
|
|
216
|
+
setContinuationToken(page, continuationToken);
|
|
217
|
+
yield page;
|
|
218
|
+
}
|
|
183
219
|
while (continuationToken) {
|
|
184
220
|
result = await this._getFunctionAppStacksForLocationNext(
|
|
185
221
|
location,
|
|
@@ -187,7 +223,9 @@ export class ProviderImpl implements Provider {
|
|
|
187
223
|
options
|
|
188
224
|
);
|
|
189
225
|
continuationToken = result.nextLink;
|
|
190
|
-
|
|
226
|
+
let page = result.value || [];
|
|
227
|
+
setContinuationToken(page, continuationToken);
|
|
228
|
+
yield page;
|
|
191
229
|
}
|
|
192
230
|
}
|
|
193
231
|
|
|
@@ -220,19 +258,33 @@ export class ProviderImpl implements Provider {
|
|
|
220
258
|
[Symbol.asyncIterator]() {
|
|
221
259
|
return this;
|
|
222
260
|
},
|
|
223
|
-
byPage: () => {
|
|
224
|
-
|
|
261
|
+
byPage: (settings?: PageSettings) => {
|
|
262
|
+
if (settings?.maxPageSize) {
|
|
263
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
264
|
+
}
|
|
265
|
+
return this.getWebAppStacksForLocationPagingPage(
|
|
266
|
+
location,
|
|
267
|
+
options,
|
|
268
|
+
settings
|
|
269
|
+
);
|
|
225
270
|
}
|
|
226
271
|
};
|
|
227
272
|
}
|
|
228
273
|
|
|
229
274
|
private async *getWebAppStacksForLocationPagingPage(
|
|
230
275
|
location: string,
|
|
231
|
-
options?: ProviderGetWebAppStacksForLocationOptionalParams
|
|
276
|
+
options?: ProviderGetWebAppStacksForLocationOptionalParams,
|
|
277
|
+
settings?: PageSettings
|
|
232
278
|
): AsyncIterableIterator<WebAppStack[]> {
|
|
233
|
-
let result
|
|
234
|
-
|
|
235
|
-
|
|
279
|
+
let result: ProviderGetWebAppStacksForLocationResponse;
|
|
280
|
+
let continuationToken = settings?.continuationToken;
|
|
281
|
+
if (!continuationToken) {
|
|
282
|
+
result = await this._getWebAppStacksForLocation(location, options);
|
|
283
|
+
let page = result.value || [];
|
|
284
|
+
continuationToken = result.nextLink;
|
|
285
|
+
setContinuationToken(page, continuationToken);
|
|
286
|
+
yield page;
|
|
287
|
+
}
|
|
236
288
|
while (continuationToken) {
|
|
237
289
|
result = await this._getWebAppStacksForLocationNext(
|
|
238
290
|
location,
|
|
@@ -240,7 +292,9 @@ export class ProviderImpl implements Provider {
|
|
|
240
292
|
options
|
|
241
293
|
);
|
|
242
294
|
continuationToken = result.nextLink;
|
|
243
|
-
|
|
295
|
+
let page = result.value || [];
|
|
296
|
+
setContinuationToken(page, continuationToken);
|
|
297
|
+
yield page;
|
|
244
298
|
}
|
|
245
299
|
}
|
|
246
300
|
|
|
@@ -272,22 +326,34 @@ export class ProviderImpl implements Provider {
|
|
|
272
326
|
[Symbol.asyncIterator]() {
|
|
273
327
|
return this;
|
|
274
328
|
},
|
|
275
|
-
byPage: () => {
|
|
276
|
-
|
|
329
|
+
byPage: (settings?: PageSettings) => {
|
|
330
|
+
if (settings?.maxPageSize) {
|
|
331
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
332
|
+
}
|
|
333
|
+
return this.listOperationsPagingPage(options, settings);
|
|
277
334
|
}
|
|
278
335
|
};
|
|
279
336
|
}
|
|
280
337
|
|
|
281
338
|
private async *listOperationsPagingPage(
|
|
282
|
-
options?: ProviderListOperationsOptionalParams
|
|
339
|
+
options?: ProviderListOperationsOptionalParams,
|
|
340
|
+
settings?: PageSettings
|
|
283
341
|
): AsyncIterableIterator<CsmOperationDescription[]> {
|
|
284
|
-
let result
|
|
285
|
-
|
|
286
|
-
|
|
342
|
+
let result: ProviderListOperationsResponse;
|
|
343
|
+
let continuationToken = settings?.continuationToken;
|
|
344
|
+
if (!continuationToken) {
|
|
345
|
+
result = await this._listOperations(options);
|
|
346
|
+
let page = result.value || [];
|
|
347
|
+
continuationToken = result.nextLink;
|
|
348
|
+
setContinuationToken(page, continuationToken);
|
|
349
|
+
yield page;
|
|
350
|
+
}
|
|
287
351
|
while (continuationToken) {
|
|
288
352
|
result = await this._listOperationsNext(continuationToken, options);
|
|
289
353
|
continuationToken = result.nextLink;
|
|
290
|
-
|
|
354
|
+
let page = result.value || [];
|
|
355
|
+
setContinuationToken(page, continuationToken);
|
|
356
|
+
yield page;
|
|
291
357
|
}
|
|
292
358
|
}
|
|
293
359
|
|
|
@@ -314,22 +380,34 @@ export class ProviderImpl implements Provider {
|
|
|
314
380
|
[Symbol.asyncIterator]() {
|
|
315
381
|
return this;
|
|
316
382
|
},
|
|
317
|
-
byPage: () => {
|
|
318
|
-
|
|
383
|
+
byPage: (settings?: PageSettings) => {
|
|
384
|
+
if (settings?.maxPageSize) {
|
|
385
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
386
|
+
}
|
|
387
|
+
return this.getWebAppStacksPagingPage(options, settings);
|
|
319
388
|
}
|
|
320
389
|
};
|
|
321
390
|
}
|
|
322
391
|
|
|
323
392
|
private async *getWebAppStacksPagingPage(
|
|
324
|
-
options?: ProviderGetWebAppStacksOptionalParams
|
|
393
|
+
options?: ProviderGetWebAppStacksOptionalParams,
|
|
394
|
+
settings?: PageSettings
|
|
325
395
|
): AsyncIterableIterator<WebAppStack[]> {
|
|
326
|
-
let result
|
|
327
|
-
|
|
328
|
-
|
|
396
|
+
let result: ProviderGetWebAppStacksResponse;
|
|
397
|
+
let continuationToken = settings?.continuationToken;
|
|
398
|
+
if (!continuationToken) {
|
|
399
|
+
result = await this._getWebAppStacks(options);
|
|
400
|
+
let page = result.value || [];
|
|
401
|
+
continuationToken = result.nextLink;
|
|
402
|
+
setContinuationToken(page, continuationToken);
|
|
403
|
+
yield page;
|
|
404
|
+
}
|
|
329
405
|
while (continuationToken) {
|
|
330
406
|
result = await this._getWebAppStacksNext(continuationToken, options);
|
|
331
407
|
continuationToken = result.nextLink;
|
|
332
|
-
|
|
408
|
+
let page = result.value || [];
|
|
409
|
+
setContinuationToken(page, continuationToken);
|
|
410
|
+
yield page;
|
|
333
411
|
}
|
|
334
412
|
}
|
|
335
413
|
|
|
@@ -356,25 +434,37 @@ export class ProviderImpl implements Provider {
|
|
|
356
434
|
[Symbol.asyncIterator]() {
|
|
357
435
|
return this;
|
|
358
436
|
},
|
|
359
|
-
byPage: () => {
|
|
360
|
-
|
|
437
|
+
byPage: (settings?: PageSettings) => {
|
|
438
|
+
if (settings?.maxPageSize) {
|
|
439
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
440
|
+
}
|
|
441
|
+
return this.getAvailableStacksOnPremPagingPage(options, settings);
|
|
361
442
|
}
|
|
362
443
|
};
|
|
363
444
|
}
|
|
364
445
|
|
|
365
446
|
private async *getAvailableStacksOnPremPagingPage(
|
|
366
|
-
options?: ProviderGetAvailableStacksOnPremOptionalParams
|
|
447
|
+
options?: ProviderGetAvailableStacksOnPremOptionalParams,
|
|
448
|
+
settings?: PageSettings
|
|
367
449
|
): AsyncIterableIterator<ApplicationStackResource[]> {
|
|
368
|
-
let result
|
|
369
|
-
|
|
370
|
-
|
|
450
|
+
let result: ProviderGetAvailableStacksOnPremResponse;
|
|
451
|
+
let continuationToken = settings?.continuationToken;
|
|
452
|
+
if (!continuationToken) {
|
|
453
|
+
result = await this._getAvailableStacksOnPrem(options);
|
|
454
|
+
let page = result.value || [];
|
|
455
|
+
continuationToken = result.nextLink;
|
|
456
|
+
setContinuationToken(page, continuationToken);
|
|
457
|
+
yield page;
|
|
458
|
+
}
|
|
371
459
|
while (continuationToken) {
|
|
372
460
|
result = await this._getAvailableStacksOnPremNext(
|
|
373
461
|
continuationToken,
|
|
374
462
|
options
|
|
375
463
|
);
|
|
376
464
|
continuationToken = result.nextLink;
|
|
377
|
-
|
|
465
|
+
let page = result.value || [];
|
|
466
|
+
setContinuationToken(page, continuationToken);
|
|
467
|
+
yield page;
|
|
378
468
|
}
|
|
379
469
|
}
|
|
380
470
|
|
|
@@ -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 { Recommendations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,26 +17,26 @@ import {
|
|
|
16
17
|
Recommendation,
|
|
17
18
|
RecommendationsListNextOptionalParams,
|
|
18
19
|
RecommendationsListOptionalParams,
|
|
20
|
+
RecommendationsListResponse,
|
|
19
21
|
RecommendationsListHistoryForHostingEnvironmentNextOptionalParams,
|
|
20
22
|
RecommendationsListHistoryForHostingEnvironmentOptionalParams,
|
|
23
|
+
RecommendationsListHistoryForHostingEnvironmentResponse,
|
|
21
24
|
RecommendationsListRecommendedRulesForHostingEnvironmentNextOptionalParams,
|
|
22
25
|
RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams,
|
|
26
|
+
RecommendationsListRecommendedRulesForHostingEnvironmentResponse,
|
|
23
27
|
RecommendationsListHistoryForWebAppNextOptionalParams,
|
|
24
28
|
RecommendationsListHistoryForWebAppOptionalParams,
|
|
29
|
+
RecommendationsListHistoryForWebAppResponse,
|
|
25
30
|
RecommendationsListRecommendedRulesForWebAppNextOptionalParams,
|
|
26
31
|
RecommendationsListRecommendedRulesForWebAppOptionalParams,
|
|
27
|
-
|
|
32
|
+
RecommendationsListRecommendedRulesForWebAppResponse,
|
|
28
33
|
RecommendationsResetAllFiltersOptionalParams,
|
|
29
34
|
RecommendationsDisableRecommendationForSubscriptionOptionalParams,
|
|
30
|
-
RecommendationsListHistoryForHostingEnvironmentResponse,
|
|
31
|
-
RecommendationsListRecommendedRulesForHostingEnvironmentResponse,
|
|
32
35
|
RecommendationsDisableAllForHostingEnvironmentOptionalParams,
|
|
33
36
|
RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams,
|
|
34
37
|
RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams,
|
|
35
38
|
RecommendationsGetRuleDetailsByHostingEnvironmentResponse,
|
|
36
39
|
RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams,
|
|
37
|
-
RecommendationsListHistoryForWebAppResponse,
|
|
38
|
-
RecommendationsListRecommendedRulesForWebAppResponse,
|
|
39
40
|
RecommendationsDisableAllForWebAppOptionalParams,
|
|
40
41
|
RecommendationsResetAllFiltersForWebAppOptionalParams,
|
|
41
42
|
RecommendationsGetRuleDetailsByWebAppOptionalParams,
|
|
@@ -76,22 +77,34 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
76
77
|
[Symbol.asyncIterator]() {
|
|
77
78
|
return this;
|
|
78
79
|
},
|
|
79
|
-
byPage: () => {
|
|
80
|
-
|
|
80
|
+
byPage: (settings?: PageSettings) => {
|
|
81
|
+
if (settings?.maxPageSize) {
|
|
82
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
83
|
+
}
|
|
84
|
+
return this.listPagingPage(options, settings);
|
|
81
85
|
}
|
|
82
86
|
};
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
private async *listPagingPage(
|
|
86
|
-
options?: RecommendationsListOptionalParams
|
|
90
|
+
options?: RecommendationsListOptionalParams,
|
|
91
|
+
settings?: PageSettings
|
|
87
92
|
): AsyncIterableIterator<Recommendation[]> {
|
|
88
|
-
let result
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
let result: RecommendationsListResponse;
|
|
94
|
+
let continuationToken = settings?.continuationToken;
|
|
95
|
+
if (!continuationToken) {
|
|
96
|
+
result = await this._list(options);
|
|
97
|
+
let page = result.value || [];
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
101
|
+
}
|
|
91
102
|
while (continuationToken) {
|
|
92
103
|
result = await this._listNext(continuationToken, options);
|
|
93
104
|
continuationToken = result.nextLink;
|
|
94
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
95
108
|
}
|
|
96
109
|
}
|
|
97
110
|
|
|
@@ -126,11 +139,15 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
126
139
|
[Symbol.asyncIterator]() {
|
|
127
140
|
return this;
|
|
128
141
|
},
|
|
129
|
-
byPage: () => {
|
|
142
|
+
byPage: (settings?: PageSettings) => {
|
|
143
|
+
if (settings?.maxPageSize) {
|
|
144
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
145
|
+
}
|
|
130
146
|
return this.listHistoryForHostingEnvironmentPagingPage(
|
|
131
147
|
resourceGroupName,
|
|
132
148
|
hostingEnvironmentName,
|
|
133
|
-
options
|
|
149
|
+
options,
|
|
150
|
+
settings
|
|
134
151
|
);
|
|
135
152
|
}
|
|
136
153
|
};
|
|
@@ -139,15 +156,22 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
139
156
|
private async *listHistoryForHostingEnvironmentPagingPage(
|
|
140
157
|
resourceGroupName: string,
|
|
141
158
|
hostingEnvironmentName: string,
|
|
142
|
-
options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams
|
|
159
|
+
options?: RecommendationsListHistoryForHostingEnvironmentOptionalParams,
|
|
160
|
+
settings?: PageSettings
|
|
143
161
|
): AsyncIterableIterator<Recommendation[]> {
|
|
144
|
-
let result
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
162
|
+
let result: RecommendationsListHistoryForHostingEnvironmentResponse;
|
|
163
|
+
let continuationToken = settings?.continuationToken;
|
|
164
|
+
if (!continuationToken) {
|
|
165
|
+
result = await this._listHistoryForHostingEnvironment(
|
|
166
|
+
resourceGroupName,
|
|
167
|
+
hostingEnvironmentName,
|
|
168
|
+
options
|
|
169
|
+
);
|
|
170
|
+
let page = result.value || [];
|
|
171
|
+
continuationToken = result.nextLink;
|
|
172
|
+
setContinuationToken(page, continuationToken);
|
|
173
|
+
yield page;
|
|
174
|
+
}
|
|
151
175
|
while (continuationToken) {
|
|
152
176
|
result = await this._listHistoryForHostingEnvironmentNext(
|
|
153
177
|
resourceGroupName,
|
|
@@ -156,7 +180,9 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
156
180
|
options
|
|
157
181
|
);
|
|
158
182
|
continuationToken = result.nextLink;
|
|
159
|
-
|
|
183
|
+
let page = result.value || [];
|
|
184
|
+
setContinuationToken(page, continuationToken);
|
|
185
|
+
yield page;
|
|
160
186
|
}
|
|
161
187
|
}
|
|
162
188
|
|
|
@@ -197,11 +223,15 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
197
223
|
[Symbol.asyncIterator]() {
|
|
198
224
|
return this;
|
|
199
225
|
},
|
|
200
|
-
byPage: () => {
|
|
226
|
+
byPage: (settings?: PageSettings) => {
|
|
227
|
+
if (settings?.maxPageSize) {
|
|
228
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
229
|
+
}
|
|
201
230
|
return this.listRecommendedRulesForHostingEnvironmentPagingPage(
|
|
202
231
|
resourceGroupName,
|
|
203
232
|
hostingEnvironmentName,
|
|
204
|
-
options
|
|
233
|
+
options,
|
|
234
|
+
settings
|
|
205
235
|
);
|
|
206
236
|
}
|
|
207
237
|
};
|
|
@@ -210,15 +240,22 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
210
240
|
private async *listRecommendedRulesForHostingEnvironmentPagingPage(
|
|
211
241
|
resourceGroupName: string,
|
|
212
242
|
hostingEnvironmentName: string,
|
|
213
|
-
options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams
|
|
243
|
+
options?: RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams,
|
|
244
|
+
settings?: PageSettings
|
|
214
245
|
): AsyncIterableIterator<Recommendation[]> {
|
|
215
|
-
let result
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
246
|
+
let result: RecommendationsListRecommendedRulesForHostingEnvironmentResponse;
|
|
247
|
+
let continuationToken = settings?.continuationToken;
|
|
248
|
+
if (!continuationToken) {
|
|
249
|
+
result = await this._listRecommendedRulesForHostingEnvironment(
|
|
250
|
+
resourceGroupName,
|
|
251
|
+
hostingEnvironmentName,
|
|
252
|
+
options
|
|
253
|
+
);
|
|
254
|
+
let page = result.value || [];
|
|
255
|
+
continuationToken = result.nextLink;
|
|
256
|
+
setContinuationToken(page, continuationToken);
|
|
257
|
+
yield page;
|
|
258
|
+
}
|
|
222
259
|
while (continuationToken) {
|
|
223
260
|
result = await this._listRecommendedRulesForHostingEnvironmentNext(
|
|
224
261
|
resourceGroupName,
|
|
@@ -227,7 +264,9 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
227
264
|
options
|
|
228
265
|
);
|
|
229
266
|
continuationToken = result.nextLink;
|
|
230
|
-
|
|
267
|
+
let page = result.value || [];
|
|
268
|
+
setContinuationToken(page, continuationToken);
|
|
269
|
+
yield page;
|
|
231
270
|
}
|
|
232
271
|
}
|
|
233
272
|
|
|
@@ -268,11 +307,15 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
268
307
|
[Symbol.asyncIterator]() {
|
|
269
308
|
return this;
|
|
270
309
|
},
|
|
271
|
-
byPage: () => {
|
|
310
|
+
byPage: (settings?: PageSettings) => {
|
|
311
|
+
if (settings?.maxPageSize) {
|
|
312
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
313
|
+
}
|
|
272
314
|
return this.listHistoryForWebAppPagingPage(
|
|
273
315
|
resourceGroupName,
|
|
274
316
|
siteName,
|
|
275
|
-
options
|
|
317
|
+
options,
|
|
318
|
+
settings
|
|
276
319
|
);
|
|
277
320
|
}
|
|
278
321
|
};
|
|
@@ -281,15 +324,22 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
281
324
|
private async *listHistoryForWebAppPagingPage(
|
|
282
325
|
resourceGroupName: string,
|
|
283
326
|
siteName: string,
|
|
284
|
-
options?: RecommendationsListHistoryForWebAppOptionalParams
|
|
327
|
+
options?: RecommendationsListHistoryForWebAppOptionalParams,
|
|
328
|
+
settings?: PageSettings
|
|
285
329
|
): AsyncIterableIterator<Recommendation[]> {
|
|
286
|
-
let result
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
330
|
+
let result: RecommendationsListHistoryForWebAppResponse;
|
|
331
|
+
let continuationToken = settings?.continuationToken;
|
|
332
|
+
if (!continuationToken) {
|
|
333
|
+
result = await this._listHistoryForWebApp(
|
|
334
|
+
resourceGroupName,
|
|
335
|
+
siteName,
|
|
336
|
+
options
|
|
337
|
+
);
|
|
338
|
+
let page = result.value || [];
|
|
339
|
+
continuationToken = result.nextLink;
|
|
340
|
+
setContinuationToken(page, continuationToken);
|
|
341
|
+
yield page;
|
|
342
|
+
}
|
|
293
343
|
while (continuationToken) {
|
|
294
344
|
result = await this._listHistoryForWebAppNext(
|
|
295
345
|
resourceGroupName,
|
|
@@ -298,7 +348,9 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
298
348
|
options
|
|
299
349
|
);
|
|
300
350
|
continuationToken = result.nextLink;
|
|
301
|
-
|
|
351
|
+
let page = result.value || [];
|
|
352
|
+
setContinuationToken(page, continuationToken);
|
|
353
|
+
yield page;
|
|
302
354
|
}
|
|
303
355
|
}
|
|
304
356
|
|
|
@@ -339,11 +391,15 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
339
391
|
[Symbol.asyncIterator]() {
|
|
340
392
|
return this;
|
|
341
393
|
},
|
|
342
|
-
byPage: () => {
|
|
394
|
+
byPage: (settings?: PageSettings) => {
|
|
395
|
+
if (settings?.maxPageSize) {
|
|
396
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
397
|
+
}
|
|
343
398
|
return this.listRecommendedRulesForWebAppPagingPage(
|
|
344
399
|
resourceGroupName,
|
|
345
400
|
siteName,
|
|
346
|
-
options
|
|
401
|
+
options,
|
|
402
|
+
settings
|
|
347
403
|
);
|
|
348
404
|
}
|
|
349
405
|
};
|
|
@@ -352,15 +408,22 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
352
408
|
private async *listRecommendedRulesForWebAppPagingPage(
|
|
353
409
|
resourceGroupName: string,
|
|
354
410
|
siteName: string,
|
|
355
|
-
options?: RecommendationsListRecommendedRulesForWebAppOptionalParams
|
|
411
|
+
options?: RecommendationsListRecommendedRulesForWebAppOptionalParams,
|
|
412
|
+
settings?: PageSettings
|
|
356
413
|
): AsyncIterableIterator<Recommendation[]> {
|
|
357
|
-
let result
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
414
|
+
let result: RecommendationsListRecommendedRulesForWebAppResponse;
|
|
415
|
+
let continuationToken = settings?.continuationToken;
|
|
416
|
+
if (!continuationToken) {
|
|
417
|
+
result = await this._listRecommendedRulesForWebApp(
|
|
418
|
+
resourceGroupName,
|
|
419
|
+
siteName,
|
|
420
|
+
options
|
|
421
|
+
);
|
|
422
|
+
let page = result.value || [];
|
|
423
|
+
continuationToken = result.nextLink;
|
|
424
|
+
setContinuationToken(page, continuationToken);
|
|
425
|
+
yield page;
|
|
426
|
+
}
|
|
364
427
|
while (continuationToken) {
|
|
365
428
|
result = await this._listRecommendedRulesForWebAppNext(
|
|
366
429
|
resourceGroupName,
|
|
@@ -369,7 +432,9 @@ export class RecommendationsImpl implements Recommendations {
|
|
|
369
432
|
options
|
|
370
433
|
);
|
|
371
434
|
continuationToken = result.nextLink;
|
|
372
|
-
|
|
435
|
+
let page = result.value || [];
|
|
436
|
+
setContinuationToken(page, continuationToken);
|
|
437
|
+
yield page;
|
|
373
438
|
}
|
|
374
439
|
}
|
|
375
440
|
|