@azure/arm-managedapplications 3.0.0-alpha.20250103.1 → 3.0.0-alpha.20250107.1
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/dist/index.js +89 -89
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
|
48
48
|
return undefined;
|
|
49
49
|
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -2120,7 +2120,7 @@ function createLroSpec(inputs) {
|
|
|
2120
2120
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2121
2121
|
sendPollRequest: (path, options) => {
|
|
2122
2122
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2123
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
2123
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
2124
2124
|
}
|
|
2125
2125
|
};
|
|
2126
2126
|
}
|
|
@@ -2157,7 +2157,7 @@ class ApplicationsImpl {
|
|
|
2157
2157
|
return this;
|
|
2158
2158
|
},
|
|
2159
2159
|
byPage: (settings) => {
|
|
2160
|
-
if (settings === null || settings ===
|
|
2160
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2161
2161
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2162
2162
|
}
|
|
2163
2163
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2167,7 +2167,7 @@ class ApplicationsImpl {
|
|
|
2167
2167
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2168
2168
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2169
2169
|
let result;
|
|
2170
|
-
let continuationToken = settings === null || settings ===
|
|
2170
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2171
2171
|
if (!continuationToken) {
|
|
2172
2172
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2173
2173
|
let page = result.value || [];
|
|
@@ -2218,7 +2218,7 @@ class ApplicationsImpl {
|
|
|
2218
2218
|
return this;
|
|
2219
2219
|
},
|
|
2220
2220
|
byPage: (settings) => {
|
|
2221
|
-
if (settings === null || settings ===
|
|
2221
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2222
2222
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2223
2223
|
}
|
|
2224
2224
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -2228,7 +2228,7 @@ class ApplicationsImpl {
|
|
|
2228
2228
|
listBySubscriptionPagingPage(options, settings) {
|
|
2229
2229
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2230
2230
|
let result;
|
|
2231
|
-
let continuationToken = settings === null || settings ===
|
|
2231
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2232
2232
|
if (!continuationToken) {
|
|
2233
2233
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
2234
2234
|
let page = result.value || [];
|
|
@@ -2281,17 +2281,17 @@ class ApplicationsImpl {
|
|
|
2281
2281
|
* @param options The options parameters.
|
|
2282
2282
|
*/
|
|
2283
2283
|
beginDelete(resourceGroupName, applicationName, options) {
|
|
2284
|
-
return tslib.__awaiter(this,
|
|
2285
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2284
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2285
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2286
2286
|
return this.client.sendOperationRequest(args, spec);
|
|
2287
2287
|
});
|
|
2288
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2288
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2289
2289
|
var _a;
|
|
2290
2290
|
let currentRawResponse = undefined;
|
|
2291
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2291
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2292
2292
|
const callback = (rawResponse, flatResponse) => {
|
|
2293
2293
|
currentRawResponse = rawResponse;
|
|
2294
|
-
providedCallback === null || providedCallback ===
|
|
2294
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2295
2295
|
};
|
|
2296
2296
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2297
2297
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2310,8 +2310,8 @@ class ApplicationsImpl {
|
|
|
2310
2310
|
spec: deleteOperationSpec$2
|
|
2311
2311
|
});
|
|
2312
2312
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2313
|
-
restoreFrom: options === null || options ===
|
|
2314
|
-
intervalInMs: options === null || options ===
|
|
2313
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2314
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2315
2315
|
resourceLocationConfig: "azure-async-operation"
|
|
2316
2316
|
});
|
|
2317
2317
|
yield poller.poll();
|
|
@@ -2325,7 +2325,7 @@ class ApplicationsImpl {
|
|
|
2325
2325
|
* @param options The options parameters.
|
|
2326
2326
|
*/
|
|
2327
2327
|
beginDeleteAndWait(resourceGroupName, applicationName, options) {
|
|
2328
|
-
return tslib.__awaiter(this,
|
|
2328
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2329
2329
|
const poller = yield this.beginDelete(resourceGroupName, applicationName, options);
|
|
2330
2330
|
return poller.pollUntilDone();
|
|
2331
2331
|
});
|
|
@@ -2338,17 +2338,17 @@ class ApplicationsImpl {
|
|
|
2338
2338
|
* @param options The options parameters.
|
|
2339
2339
|
*/
|
|
2340
2340
|
beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options) {
|
|
2341
|
-
return tslib.__awaiter(this,
|
|
2342
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2341
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2342
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2343
2343
|
return this.client.sendOperationRequest(args, spec);
|
|
2344
2344
|
});
|
|
2345
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2345
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2346
2346
|
var _a;
|
|
2347
2347
|
let currentRawResponse = undefined;
|
|
2348
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2348
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2349
2349
|
const callback = (rawResponse, flatResponse) => {
|
|
2350
2350
|
currentRawResponse = rawResponse;
|
|
2351
|
-
providedCallback === null || providedCallback ===
|
|
2351
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2352
2352
|
};
|
|
2353
2353
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2354
2354
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2367,8 +2367,8 @@ class ApplicationsImpl {
|
|
|
2367
2367
|
spec: createOrUpdateOperationSpec$2
|
|
2368
2368
|
});
|
|
2369
2369
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2370
|
-
restoreFrom: options === null || options ===
|
|
2371
|
-
intervalInMs: options === null || options ===
|
|
2370
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2371
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2372
2372
|
resourceLocationConfig: "azure-async-operation"
|
|
2373
2373
|
});
|
|
2374
2374
|
yield poller.poll();
|
|
@@ -2383,7 +2383,7 @@ class ApplicationsImpl {
|
|
|
2383
2383
|
* @param options The options parameters.
|
|
2384
2384
|
*/
|
|
2385
2385
|
beginCreateOrUpdateAndWait(resourceGroupName, applicationName, parameters, options) {
|
|
2386
|
-
return tslib.__awaiter(this,
|
|
2386
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2387
2387
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options);
|
|
2388
2388
|
return poller.pollUntilDone();
|
|
2389
2389
|
});
|
|
@@ -2395,17 +2395,17 @@ class ApplicationsImpl {
|
|
|
2395
2395
|
* @param options The options parameters.
|
|
2396
2396
|
*/
|
|
2397
2397
|
beginUpdate(resourceGroupName, applicationName, options) {
|
|
2398
|
-
return tslib.__awaiter(this,
|
|
2399
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2398
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2399
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2400
2400
|
return this.client.sendOperationRequest(args, spec);
|
|
2401
2401
|
});
|
|
2402
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2402
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2403
2403
|
var _a;
|
|
2404
2404
|
let currentRawResponse = undefined;
|
|
2405
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2405
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2406
2406
|
const callback = (rawResponse, flatResponse) => {
|
|
2407
2407
|
currentRawResponse = rawResponse;
|
|
2408
|
-
providedCallback === null || providedCallback ===
|
|
2408
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2409
2409
|
};
|
|
2410
2410
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2411
2411
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2424,8 +2424,8 @@ class ApplicationsImpl {
|
|
|
2424
2424
|
spec: updateOperationSpec$2
|
|
2425
2425
|
});
|
|
2426
2426
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2427
|
-
restoreFrom: options === null || options ===
|
|
2428
|
-
intervalInMs: options === null || options ===
|
|
2427
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2428
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2429
2429
|
resourceLocationConfig: "azure-async-operation"
|
|
2430
2430
|
});
|
|
2431
2431
|
yield poller.poll();
|
|
@@ -2439,7 +2439,7 @@ class ApplicationsImpl {
|
|
|
2439
2439
|
* @param options The options parameters.
|
|
2440
2440
|
*/
|
|
2441
2441
|
beginUpdateAndWait(resourceGroupName, applicationName, options) {
|
|
2442
|
-
return tslib.__awaiter(this,
|
|
2442
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2443
2443
|
const poller = yield this.beginUpdate(resourceGroupName, applicationName, options);
|
|
2444
2444
|
return poller.pollUntilDone();
|
|
2445
2445
|
});
|
|
@@ -2477,17 +2477,17 @@ class ApplicationsImpl {
|
|
|
2477
2477
|
* @param options The options parameters.
|
|
2478
2478
|
*/
|
|
2479
2479
|
beginDeleteById(applicationId, options) {
|
|
2480
|
-
return tslib.__awaiter(this,
|
|
2481
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2480
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2481
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2482
2482
|
return this.client.sendOperationRequest(args, spec);
|
|
2483
2483
|
});
|
|
2484
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2484
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2485
2485
|
var _a;
|
|
2486
2486
|
let currentRawResponse = undefined;
|
|
2487
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2487
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2488
2488
|
const callback = (rawResponse, flatResponse) => {
|
|
2489
2489
|
currentRawResponse = rawResponse;
|
|
2490
|
-
providedCallback === null || providedCallback ===
|
|
2490
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2491
2491
|
};
|
|
2492
2492
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2493
2493
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2506,8 +2506,8 @@ class ApplicationsImpl {
|
|
|
2506
2506
|
spec: deleteByIdOperationSpec$1
|
|
2507
2507
|
});
|
|
2508
2508
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2509
|
-
restoreFrom: options === null || options ===
|
|
2510
|
-
intervalInMs: options === null || options ===
|
|
2509
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2510
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2511
2511
|
resourceLocationConfig: "azure-async-operation"
|
|
2512
2512
|
});
|
|
2513
2513
|
yield poller.poll();
|
|
@@ -2522,7 +2522,7 @@ class ApplicationsImpl {
|
|
|
2522
2522
|
* @param options The options parameters.
|
|
2523
2523
|
*/
|
|
2524
2524
|
beginDeleteByIdAndWait(applicationId, options) {
|
|
2525
|
-
return tslib.__awaiter(this,
|
|
2525
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2526
2526
|
const poller = yield this.beginDeleteById(applicationId, options);
|
|
2527
2527
|
return poller.pollUntilDone();
|
|
2528
2528
|
});
|
|
@@ -2536,17 +2536,17 @@ class ApplicationsImpl {
|
|
|
2536
2536
|
* @param options The options parameters.
|
|
2537
2537
|
*/
|
|
2538
2538
|
beginCreateOrUpdateById(applicationId, parameters, options) {
|
|
2539
|
-
return tslib.__awaiter(this,
|
|
2540
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2539
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2540
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2541
2541
|
return this.client.sendOperationRequest(args, spec);
|
|
2542
2542
|
});
|
|
2543
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2543
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2544
2544
|
var _a;
|
|
2545
2545
|
let currentRawResponse = undefined;
|
|
2546
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2546
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2547
2547
|
const callback = (rawResponse, flatResponse) => {
|
|
2548
2548
|
currentRawResponse = rawResponse;
|
|
2549
|
-
providedCallback === null || providedCallback ===
|
|
2549
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2550
2550
|
};
|
|
2551
2551
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2552
2552
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2565,8 +2565,8 @@ class ApplicationsImpl {
|
|
|
2565
2565
|
spec: createOrUpdateByIdOperationSpec$1
|
|
2566
2566
|
});
|
|
2567
2567
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2568
|
-
restoreFrom: options === null || options ===
|
|
2569
|
-
intervalInMs: options === null || options ===
|
|
2568
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2569
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2570
2570
|
resourceLocationConfig: "azure-async-operation"
|
|
2571
2571
|
});
|
|
2572
2572
|
yield poller.poll();
|
|
@@ -2582,7 +2582,7 @@ class ApplicationsImpl {
|
|
|
2582
2582
|
* @param options The options parameters.
|
|
2583
2583
|
*/
|
|
2584
2584
|
beginCreateOrUpdateByIdAndWait(applicationId, parameters, options) {
|
|
2585
|
-
return tslib.__awaiter(this,
|
|
2585
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2586
2586
|
const poller = yield this.beginCreateOrUpdateById(applicationId, parameters, options);
|
|
2587
2587
|
return poller.pollUntilDone();
|
|
2588
2588
|
});
|
|
@@ -2595,17 +2595,17 @@ class ApplicationsImpl {
|
|
|
2595
2595
|
* @param options The options parameters.
|
|
2596
2596
|
*/
|
|
2597
2597
|
beginUpdateById(applicationId, options) {
|
|
2598
|
-
return tslib.__awaiter(this,
|
|
2599
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2598
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2599
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2600
2600
|
return this.client.sendOperationRequest(args, spec);
|
|
2601
2601
|
});
|
|
2602
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2602
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2603
2603
|
var _a;
|
|
2604
2604
|
let currentRawResponse = undefined;
|
|
2605
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2605
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2606
2606
|
const callback = (rawResponse, flatResponse) => {
|
|
2607
2607
|
currentRawResponse = rawResponse;
|
|
2608
|
-
providedCallback === null || providedCallback ===
|
|
2608
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2609
2609
|
};
|
|
2610
2610
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2611
2611
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2624,8 +2624,8 @@ class ApplicationsImpl {
|
|
|
2624
2624
|
spec: updateByIdOperationSpec$1
|
|
2625
2625
|
});
|
|
2626
2626
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2627
|
-
restoreFrom: options === null || options ===
|
|
2628
|
-
intervalInMs: options === null || options ===
|
|
2627
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2628
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2629
2629
|
resourceLocationConfig: "azure-async-operation"
|
|
2630
2630
|
});
|
|
2631
2631
|
yield poller.poll();
|
|
@@ -2640,7 +2640,7 @@ class ApplicationsImpl {
|
|
|
2640
2640
|
* @param options The options parameters.
|
|
2641
2641
|
*/
|
|
2642
2642
|
beginUpdateByIdAndWait(applicationId, options) {
|
|
2643
|
-
return tslib.__awaiter(this,
|
|
2643
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2644
2644
|
const poller = yield this.beginUpdateById(applicationId, options);
|
|
2645
2645
|
return poller.pollUntilDone();
|
|
2646
2646
|
});
|
|
@@ -2652,17 +2652,17 @@ class ApplicationsImpl {
|
|
|
2652
2652
|
* @param options The options parameters.
|
|
2653
2653
|
*/
|
|
2654
2654
|
beginRefreshPermissions(resourceGroupName, applicationName, options) {
|
|
2655
|
-
return tslib.__awaiter(this,
|
|
2656
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2655
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2656
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2657
2657
|
return this.client.sendOperationRequest(args, spec);
|
|
2658
2658
|
});
|
|
2659
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2659
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2660
2660
|
var _a;
|
|
2661
2661
|
let currentRawResponse = undefined;
|
|
2662
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2662
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2663
2663
|
const callback = (rawResponse, flatResponse) => {
|
|
2664
2664
|
currentRawResponse = rawResponse;
|
|
2665
|
-
providedCallback === null || providedCallback ===
|
|
2665
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2666
2666
|
};
|
|
2667
2667
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2668
2668
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2681,8 +2681,8 @@ class ApplicationsImpl {
|
|
|
2681
2681
|
spec: refreshPermissionsOperationSpec
|
|
2682
2682
|
});
|
|
2683
2683
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2684
|
-
restoreFrom: options === null || options ===
|
|
2685
|
-
intervalInMs: options === null || options ===
|
|
2684
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2685
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2686
2686
|
resourceLocationConfig: "location"
|
|
2687
2687
|
});
|
|
2688
2688
|
yield poller.poll();
|
|
@@ -2696,7 +2696,7 @@ class ApplicationsImpl {
|
|
|
2696
2696
|
* @param options The options parameters.
|
|
2697
2697
|
*/
|
|
2698
2698
|
beginRefreshPermissionsAndWait(resourceGroupName, applicationName, options) {
|
|
2699
|
-
return tslib.__awaiter(this,
|
|
2699
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2700
2700
|
const poller = yield this.beginRefreshPermissions(resourceGroupName, applicationName, options);
|
|
2701
2701
|
return poller.pollUntilDone();
|
|
2702
2702
|
});
|
|
@@ -2718,17 +2718,17 @@ class ApplicationsImpl {
|
|
|
2718
2718
|
* @param options The options parameters.
|
|
2719
2719
|
*/
|
|
2720
2720
|
beginUpdateAccess(resourceGroupName, applicationName, parameters, options) {
|
|
2721
|
-
return tslib.__awaiter(this,
|
|
2722
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2721
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2722
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2723
2723
|
return this.client.sendOperationRequest(args, spec);
|
|
2724
2724
|
});
|
|
2725
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2725
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2726
2726
|
var _a;
|
|
2727
2727
|
let currentRawResponse = undefined;
|
|
2728
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2728
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2729
2729
|
const callback = (rawResponse, flatResponse) => {
|
|
2730
2730
|
currentRawResponse = rawResponse;
|
|
2731
|
-
providedCallback === null || providedCallback ===
|
|
2731
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2732
2732
|
};
|
|
2733
2733
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2734
2734
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2747,8 +2747,8 @@ class ApplicationsImpl {
|
|
|
2747
2747
|
spec: updateAccessOperationSpec
|
|
2748
2748
|
});
|
|
2749
2749
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2750
|
-
restoreFrom: options === null || options ===
|
|
2751
|
-
intervalInMs: options === null || options ===
|
|
2750
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2751
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2752
2752
|
resourceLocationConfig: "location"
|
|
2753
2753
|
});
|
|
2754
2754
|
yield poller.poll();
|
|
@@ -2763,7 +2763,7 @@ class ApplicationsImpl {
|
|
|
2763
2763
|
* @param options The options parameters.
|
|
2764
2764
|
*/
|
|
2765
2765
|
beginUpdateAccessAndWait(resourceGroupName, applicationName, parameters, options) {
|
|
2766
|
-
return tslib.__awaiter(this,
|
|
2766
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2767
2767
|
const poller = yield this.beginUpdateAccess(resourceGroupName, applicationName, parameters, options);
|
|
2768
2768
|
return poller.pollUntilDone();
|
|
2769
2769
|
});
|
|
@@ -3192,7 +3192,7 @@ class ApplicationDefinitionsImpl {
|
|
|
3192
3192
|
return this;
|
|
3193
3193
|
},
|
|
3194
3194
|
byPage: (settings) => {
|
|
3195
|
-
if (settings === null || settings ===
|
|
3195
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3196
3196
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3197
3197
|
}
|
|
3198
3198
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -3202,7 +3202,7 @@ class ApplicationDefinitionsImpl {
|
|
|
3202
3202
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3203
3203
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3204
3204
|
let result;
|
|
3205
|
-
let continuationToken = settings === null || settings ===
|
|
3205
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3206
3206
|
if (!continuationToken) {
|
|
3207
3207
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3208
3208
|
let page = result.value || [];
|
|
@@ -3253,7 +3253,7 @@ class ApplicationDefinitionsImpl {
|
|
|
3253
3253
|
return this;
|
|
3254
3254
|
},
|
|
3255
3255
|
byPage: (settings) => {
|
|
3256
|
-
if (settings === null || settings ===
|
|
3256
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3257
3257
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3258
3258
|
}
|
|
3259
3259
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -3263,7 +3263,7 @@ class ApplicationDefinitionsImpl {
|
|
|
3263
3263
|
listBySubscriptionPagingPage(options, settings) {
|
|
3264
3264
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3265
3265
|
let result;
|
|
3266
|
-
let continuationToken = settings === null || settings ===
|
|
3266
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3267
3267
|
if (!continuationToken) {
|
|
3268
3268
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
3269
3269
|
let page = result.value || [];
|
|
@@ -3702,17 +3702,17 @@ class JitRequestsImpl {
|
|
|
3702
3702
|
* @param options The options parameters.
|
|
3703
3703
|
*/
|
|
3704
3704
|
beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options) {
|
|
3705
|
-
return tslib.__awaiter(this,
|
|
3706
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3705
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3706
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3707
3707
|
return this.client.sendOperationRequest(args, spec);
|
|
3708
3708
|
});
|
|
3709
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3709
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3710
3710
|
var _a;
|
|
3711
3711
|
let currentRawResponse = undefined;
|
|
3712
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3712
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3713
3713
|
const callback = (rawResponse, flatResponse) => {
|
|
3714
3714
|
currentRawResponse = rawResponse;
|
|
3715
|
-
providedCallback === null || providedCallback ===
|
|
3715
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3716
3716
|
};
|
|
3717
3717
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3718
3718
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3731,8 +3731,8 @@ class JitRequestsImpl {
|
|
|
3731
3731
|
spec: createOrUpdateOperationSpec
|
|
3732
3732
|
});
|
|
3733
3733
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3734
|
-
restoreFrom: options === null || options ===
|
|
3735
|
-
intervalInMs: options === null || options ===
|
|
3734
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3735
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3736
3736
|
resourceLocationConfig: "azure-async-operation"
|
|
3737
3737
|
});
|
|
3738
3738
|
yield poller.poll();
|
|
@@ -3747,7 +3747,7 @@ class JitRequestsImpl {
|
|
|
3747
3747
|
* @param options The options parameters.
|
|
3748
3748
|
*/
|
|
3749
3749
|
beginCreateOrUpdateAndWait(resourceGroupName, jitRequestName, parameters, options) {
|
|
3750
|
-
return tslib.__awaiter(this,
|
|
3750
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3751
3751
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options);
|
|
3752
3752
|
return poller.pollUntilDone();
|
|
3753
3753
|
});
|
|
@@ -3958,10 +3958,10 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
|
|
|
3958
3958
|
: `${packageDetails}`;
|
|
3959
3959
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3960
3960
|
userAgentPrefix
|
|
3961
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
3961
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
3962
3962
|
super(optionsWithDefaults);
|
|
3963
3963
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
3964
|
-
if ((options === null || options ===
|
|
3964
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3965
3965
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3966
3966
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3967
3967
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -3975,7 +3975,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
|
|
|
3975
3975
|
});
|
|
3976
3976
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3977
3977
|
credential: credentials,
|
|
3978
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
3978
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3979
3979
|
challengeCallbacks: {
|
|
3980
3980
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3981
3981
|
}
|
|
@@ -3999,7 +3999,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
|
|
|
3999
3999
|
const apiVersionPolicy = {
|
|
4000
4000
|
name: "CustomApiVersionPolicy",
|
|
4001
4001
|
sendRequest(request, next) {
|
|
4002
|
-
return tslib.__awaiter(this,
|
|
4002
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4003
4003
|
const param = request.url.split("?");
|
|
4004
4004
|
if (param.length > 1) {
|
|
4005
4005
|
const newParams = param[1].split("&").map((item) => {
|
|
@@ -4032,7 +4032,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
|
|
|
4032
4032
|
return this;
|
|
4033
4033
|
},
|
|
4034
4034
|
byPage: (settings) => {
|
|
4035
|
-
if (settings === null || settings ===
|
|
4035
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4036
4036
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4037
4037
|
}
|
|
4038
4038
|
return this.listOperationsPagingPage(options, settings);
|
|
@@ -4042,7 +4042,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
|
|
|
4042
4042
|
listOperationsPagingPage(options, settings) {
|
|
4043
4043
|
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
|
|
4044
4044
|
let result;
|
|
4045
|
-
let continuationToken = settings === null || settings ===
|
|
4045
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4046
4046
|
if (!continuationToken) {
|
|
4047
4047
|
result = yield tslib.__await(this._listOperations(options));
|
|
4048
4048
|
let page = result.value || [];
|