@azure/arm-managedapplications 3.0.0-alpha.20250207.1 → 3.0.0-alpha.20250210.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 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 === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _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 !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -2113,7 +2113,7 @@ function createLroSpec(inputs) {
2113
2113
  sendInitialRequest: () => sendOperationFn(args, spec),
2114
2114
  sendPollRequest: (path, options) => {
2115
2115
  const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
2116
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2116
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2117
2117
  }
2118
2118
  };
2119
2119
  }
@@ -2150,7 +2150,7 @@ class ApplicationsImpl {
2150
2150
  return this;
2151
2151
  },
2152
2152
  byPage: (settings) => {
2153
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2153
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2154
2154
  throw new Error("maxPageSize is not supported by this operation.");
2155
2155
  }
2156
2156
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2160,7 +2160,7 @@ class ApplicationsImpl {
2160
2160
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2161
2161
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2162
2162
  let result;
2163
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2163
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2164
2164
  if (!continuationToken) {
2165
2165
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2166
2166
  let page = result.value || [];
@@ -2211,7 +2211,7 @@ class ApplicationsImpl {
2211
2211
  return this;
2212
2212
  },
2213
2213
  byPage: (settings) => {
2214
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2214
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2215
2215
  throw new Error("maxPageSize is not supported by this operation.");
2216
2216
  }
2217
2217
  return this.listBySubscriptionPagingPage(options, settings);
@@ -2221,7 +2221,7 @@ class ApplicationsImpl {
2221
2221
  listBySubscriptionPagingPage(options, settings) {
2222
2222
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2223
2223
  let result;
2224
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2224
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2225
2225
  if (!continuationToken) {
2226
2226
  result = yield tslib.__await(this._listBySubscription(options));
2227
2227
  let page = result.value || [];
@@ -2274,17 +2274,17 @@ class ApplicationsImpl {
2274
2274
  * @param options The options parameters.
2275
2275
  */
2276
2276
  beginDelete(resourceGroupName, applicationName, options) {
2277
- return tslib.__awaiter(this, undefined, undefined, function* () {
2278
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2277
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2278
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2279
2279
  return this.client.sendOperationRequest(args, spec);
2280
2280
  });
2281
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2281
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2282
2282
  var _a;
2283
2283
  let currentRawResponse = undefined;
2284
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2284
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2285
2285
  const callback = (rawResponse, flatResponse) => {
2286
2286
  currentRawResponse = rawResponse;
2287
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2287
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2288
2288
  };
2289
2289
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2290
2290
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2303,8 +2303,8 @@ class ApplicationsImpl {
2303
2303
  spec: deleteOperationSpec$2
2304
2304
  });
2305
2305
  const poller = yield coreLro.createHttpPoller(lro, {
2306
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2307
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2306
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2307
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2308
2308
  resourceLocationConfig: "azure-async-operation"
2309
2309
  });
2310
2310
  yield poller.poll();
@@ -2318,7 +2318,7 @@ class ApplicationsImpl {
2318
2318
  * @param options The options parameters.
2319
2319
  */
2320
2320
  beginDeleteAndWait(resourceGroupName, applicationName, options) {
2321
- return tslib.__awaiter(this, undefined, undefined, function* () {
2321
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2322
2322
  const poller = yield this.beginDelete(resourceGroupName, applicationName, options);
2323
2323
  return poller.pollUntilDone();
2324
2324
  });
@@ -2331,17 +2331,17 @@ class ApplicationsImpl {
2331
2331
  * @param options The options parameters.
2332
2332
  */
2333
2333
  beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options) {
2334
- return tslib.__awaiter(this, undefined, undefined, function* () {
2335
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2334
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2335
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2336
2336
  return this.client.sendOperationRequest(args, spec);
2337
2337
  });
2338
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2338
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2339
2339
  var _a;
2340
2340
  let currentRawResponse = undefined;
2341
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2341
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2342
2342
  const callback = (rawResponse, flatResponse) => {
2343
2343
  currentRawResponse = rawResponse;
2344
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2344
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2345
2345
  };
2346
2346
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2347
2347
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2360,8 +2360,8 @@ class ApplicationsImpl {
2360
2360
  spec: createOrUpdateOperationSpec$2
2361
2361
  });
2362
2362
  const poller = yield coreLro.createHttpPoller(lro, {
2363
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2364
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2363
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2364
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2365
2365
  resourceLocationConfig: "azure-async-operation"
2366
2366
  });
2367
2367
  yield poller.poll();
@@ -2376,7 +2376,7 @@ class ApplicationsImpl {
2376
2376
  * @param options The options parameters.
2377
2377
  */
2378
2378
  beginCreateOrUpdateAndWait(resourceGroupName, applicationName, parameters, options) {
2379
- return tslib.__awaiter(this, undefined, undefined, function* () {
2379
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2380
2380
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, applicationName, parameters, options);
2381
2381
  return poller.pollUntilDone();
2382
2382
  });
@@ -2388,17 +2388,17 @@ class ApplicationsImpl {
2388
2388
  * @param options The options parameters.
2389
2389
  */
2390
2390
  beginUpdate(resourceGroupName, applicationName, options) {
2391
- return tslib.__awaiter(this, undefined, undefined, function* () {
2392
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2391
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2392
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2393
2393
  return this.client.sendOperationRequest(args, spec);
2394
2394
  });
2395
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2395
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2396
2396
  var _a;
2397
2397
  let currentRawResponse = undefined;
2398
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2398
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2399
2399
  const callback = (rawResponse, flatResponse) => {
2400
2400
  currentRawResponse = rawResponse;
2401
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2401
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2402
2402
  };
2403
2403
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2404
2404
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2417,8 +2417,8 @@ class ApplicationsImpl {
2417
2417
  spec: updateOperationSpec$2
2418
2418
  });
2419
2419
  const poller = yield coreLro.createHttpPoller(lro, {
2420
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2421
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2420
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2421
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2422
2422
  resourceLocationConfig: "azure-async-operation"
2423
2423
  });
2424
2424
  yield poller.poll();
@@ -2432,7 +2432,7 @@ class ApplicationsImpl {
2432
2432
  * @param options The options parameters.
2433
2433
  */
2434
2434
  beginUpdateAndWait(resourceGroupName, applicationName, options) {
2435
- return tslib.__awaiter(this, undefined, undefined, function* () {
2435
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2436
2436
  const poller = yield this.beginUpdate(resourceGroupName, applicationName, options);
2437
2437
  return poller.pollUntilDone();
2438
2438
  });
@@ -2470,17 +2470,17 @@ class ApplicationsImpl {
2470
2470
  * @param options The options parameters.
2471
2471
  */
2472
2472
  beginDeleteById(applicationId, options) {
2473
- return tslib.__awaiter(this, undefined, undefined, function* () {
2474
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2473
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2474
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2475
2475
  return this.client.sendOperationRequest(args, spec);
2476
2476
  });
2477
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2477
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2478
2478
  var _a;
2479
2479
  let currentRawResponse = undefined;
2480
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2480
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2481
2481
  const callback = (rawResponse, flatResponse) => {
2482
2482
  currentRawResponse = rawResponse;
2483
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2483
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2484
2484
  };
2485
2485
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2486
2486
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2499,8 +2499,8 @@ class ApplicationsImpl {
2499
2499
  spec: deleteByIdOperationSpec$1
2500
2500
  });
2501
2501
  const poller = yield coreLro.createHttpPoller(lro, {
2502
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2503
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2502
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2503
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2504
2504
  resourceLocationConfig: "azure-async-operation"
2505
2505
  });
2506
2506
  yield poller.poll();
@@ -2515,7 +2515,7 @@ class ApplicationsImpl {
2515
2515
  * @param options The options parameters.
2516
2516
  */
2517
2517
  beginDeleteByIdAndWait(applicationId, options) {
2518
- return tslib.__awaiter(this, undefined, undefined, function* () {
2518
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2519
2519
  const poller = yield this.beginDeleteById(applicationId, options);
2520
2520
  return poller.pollUntilDone();
2521
2521
  });
@@ -2529,17 +2529,17 @@ class ApplicationsImpl {
2529
2529
  * @param options The options parameters.
2530
2530
  */
2531
2531
  beginCreateOrUpdateById(applicationId, parameters, options) {
2532
- return tslib.__awaiter(this, undefined, undefined, function* () {
2533
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2532
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2533
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2534
2534
  return this.client.sendOperationRequest(args, spec);
2535
2535
  });
2536
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2536
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2537
2537
  var _a;
2538
2538
  let currentRawResponse = undefined;
2539
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2539
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2540
2540
  const callback = (rawResponse, flatResponse) => {
2541
2541
  currentRawResponse = rawResponse;
2542
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2542
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2543
2543
  };
2544
2544
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2545
2545
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2558,8 +2558,8 @@ class ApplicationsImpl {
2558
2558
  spec: createOrUpdateByIdOperationSpec$1
2559
2559
  });
2560
2560
  const poller = yield coreLro.createHttpPoller(lro, {
2561
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2562
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2561
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2562
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2563
2563
  resourceLocationConfig: "azure-async-operation"
2564
2564
  });
2565
2565
  yield poller.poll();
@@ -2575,7 +2575,7 @@ class ApplicationsImpl {
2575
2575
  * @param options The options parameters.
2576
2576
  */
2577
2577
  beginCreateOrUpdateByIdAndWait(applicationId, parameters, options) {
2578
- return tslib.__awaiter(this, undefined, undefined, function* () {
2578
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2579
2579
  const poller = yield this.beginCreateOrUpdateById(applicationId, parameters, options);
2580
2580
  return poller.pollUntilDone();
2581
2581
  });
@@ -2588,17 +2588,17 @@ class ApplicationsImpl {
2588
2588
  * @param options The options parameters.
2589
2589
  */
2590
2590
  beginUpdateById(applicationId, options) {
2591
- return tslib.__awaiter(this, undefined, undefined, function* () {
2592
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2591
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2592
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2593
2593
  return this.client.sendOperationRequest(args, spec);
2594
2594
  });
2595
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2595
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2596
2596
  var _a;
2597
2597
  let currentRawResponse = undefined;
2598
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2598
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2599
2599
  const callback = (rawResponse, flatResponse) => {
2600
2600
  currentRawResponse = rawResponse;
2601
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2601
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2602
2602
  };
2603
2603
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2604
2604
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2617,8 +2617,8 @@ class ApplicationsImpl {
2617
2617
  spec: updateByIdOperationSpec$1
2618
2618
  });
2619
2619
  const poller = yield coreLro.createHttpPoller(lro, {
2620
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2621
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2620
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2621
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2622
2622
  resourceLocationConfig: "azure-async-operation"
2623
2623
  });
2624
2624
  yield poller.poll();
@@ -2633,7 +2633,7 @@ class ApplicationsImpl {
2633
2633
  * @param options The options parameters.
2634
2634
  */
2635
2635
  beginUpdateByIdAndWait(applicationId, options) {
2636
- return tslib.__awaiter(this, undefined, undefined, function* () {
2636
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2637
2637
  const poller = yield this.beginUpdateById(applicationId, options);
2638
2638
  return poller.pollUntilDone();
2639
2639
  });
@@ -2645,17 +2645,17 @@ class ApplicationsImpl {
2645
2645
  * @param options The options parameters.
2646
2646
  */
2647
2647
  beginRefreshPermissions(resourceGroupName, applicationName, options) {
2648
- return tslib.__awaiter(this, undefined, undefined, function* () {
2649
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2648
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2649
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2650
2650
  return this.client.sendOperationRequest(args, spec);
2651
2651
  });
2652
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2652
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2653
2653
  var _a;
2654
2654
  let currentRawResponse = undefined;
2655
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2655
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2656
2656
  const callback = (rawResponse, flatResponse) => {
2657
2657
  currentRawResponse = rawResponse;
2658
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2658
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2659
2659
  };
2660
2660
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2661
2661
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2674,8 +2674,8 @@ class ApplicationsImpl {
2674
2674
  spec: refreshPermissionsOperationSpec
2675
2675
  });
2676
2676
  const poller = yield coreLro.createHttpPoller(lro, {
2677
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2678
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2677
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2678
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2679
2679
  resourceLocationConfig: "location"
2680
2680
  });
2681
2681
  yield poller.poll();
@@ -2689,7 +2689,7 @@ class ApplicationsImpl {
2689
2689
  * @param options The options parameters.
2690
2690
  */
2691
2691
  beginRefreshPermissionsAndWait(resourceGroupName, applicationName, options) {
2692
- return tslib.__awaiter(this, undefined, undefined, function* () {
2692
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2693
2693
  const poller = yield this.beginRefreshPermissions(resourceGroupName, applicationName, options);
2694
2694
  return poller.pollUntilDone();
2695
2695
  });
@@ -2711,17 +2711,17 @@ class ApplicationsImpl {
2711
2711
  * @param options The options parameters.
2712
2712
  */
2713
2713
  beginUpdateAccess(resourceGroupName, applicationName, parameters, options) {
2714
- return tslib.__awaiter(this, undefined, undefined, function* () {
2715
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2714
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2715
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2716
2716
  return this.client.sendOperationRequest(args, spec);
2717
2717
  });
2718
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2718
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2719
2719
  var _a;
2720
2720
  let currentRawResponse = undefined;
2721
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2721
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2722
2722
  const callback = (rawResponse, flatResponse) => {
2723
2723
  currentRawResponse = rawResponse;
2724
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2724
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2725
2725
  };
2726
2726
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2727
2727
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2740,8 +2740,8 @@ class ApplicationsImpl {
2740
2740
  spec: updateAccessOperationSpec
2741
2741
  });
2742
2742
  const poller = yield coreLro.createHttpPoller(lro, {
2743
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2744
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2743
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2744
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2745
2745
  resourceLocationConfig: "location"
2746
2746
  });
2747
2747
  yield poller.poll();
@@ -2756,7 +2756,7 @@ class ApplicationsImpl {
2756
2756
  * @param options The options parameters.
2757
2757
  */
2758
2758
  beginUpdateAccessAndWait(resourceGroupName, applicationName, parameters, options) {
2759
- return tslib.__awaiter(this, undefined, undefined, function* () {
2759
+ return tslib.__awaiter(this, void 0, void 0, function* () {
2760
2760
  const poller = yield this.beginUpdateAccess(resourceGroupName, applicationName, parameters, options);
2761
2761
  return poller.pollUntilDone();
2762
2762
  });
@@ -3185,7 +3185,7 @@ class ApplicationDefinitionsImpl {
3185
3185
  return this;
3186
3186
  },
3187
3187
  byPage: (settings) => {
3188
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3188
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3189
3189
  throw new Error("maxPageSize is not supported by this operation.");
3190
3190
  }
3191
3191
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -3195,7 +3195,7 @@ class ApplicationDefinitionsImpl {
3195
3195
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3196
3196
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3197
3197
  let result;
3198
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3198
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3199
3199
  if (!continuationToken) {
3200
3200
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3201
3201
  let page = result.value || [];
@@ -3246,7 +3246,7 @@ class ApplicationDefinitionsImpl {
3246
3246
  return this;
3247
3247
  },
3248
3248
  byPage: (settings) => {
3249
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3249
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3250
3250
  throw new Error("maxPageSize is not supported by this operation.");
3251
3251
  }
3252
3252
  return this.listBySubscriptionPagingPage(options, settings);
@@ -3256,7 +3256,7 @@ class ApplicationDefinitionsImpl {
3256
3256
  listBySubscriptionPagingPage(options, settings) {
3257
3257
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
3258
3258
  let result;
3259
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3259
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3260
3260
  if (!continuationToken) {
3261
3261
  result = yield tslib.__await(this._listBySubscription(options));
3262
3262
  let page = result.value || [];
@@ -3695,17 +3695,17 @@ class JitRequestsImpl {
3695
3695
  * @param options The options parameters.
3696
3696
  */
3697
3697
  beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options) {
3698
- return tslib.__awaiter(this, undefined, undefined, function* () {
3699
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3698
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3699
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3700
3700
  return this.client.sendOperationRequest(args, spec);
3701
3701
  });
3702
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3702
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3703
3703
  var _a;
3704
3704
  let currentRawResponse = undefined;
3705
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3705
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3706
3706
  const callback = (rawResponse, flatResponse) => {
3707
3707
  currentRawResponse = rawResponse;
3708
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3708
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3709
3709
  };
3710
3710
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3711
3711
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3724,8 +3724,8 @@ class JitRequestsImpl {
3724
3724
  spec: createOrUpdateOperationSpec
3725
3725
  });
3726
3726
  const poller = yield coreLro.createHttpPoller(lro, {
3727
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3728
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3727
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3728
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3729
3729
  resourceLocationConfig: "azure-async-operation"
3730
3730
  });
3731
3731
  yield poller.poll();
@@ -3740,7 +3740,7 @@ class JitRequestsImpl {
3740
3740
  * @param options The options parameters.
3741
3741
  */
3742
3742
  beginCreateOrUpdateAndWait(resourceGroupName, jitRequestName, parameters, options) {
3743
- return tslib.__awaiter(this, undefined, undefined, function* () {
3743
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3744
3744
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, jitRequestName, parameters, options);
3745
3745
  return poller.pollUntilDone();
3746
3746
  });
@@ -3951,10 +3951,10 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
3951
3951
  : `${packageDetails}`;
3952
3952
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3953
3953
  userAgentPrefix
3954
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
3954
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3955
3955
  super(optionsWithDefaults);
3956
3956
  let bearerTokenAuthenticationPolicyFound = false;
3957
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3957
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3958
3958
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
3959
3959
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3960
3960
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -3968,7 +3968,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
3968
3968
  });
3969
3969
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3970
3970
  credential: credentials,
3971
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
3971
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3972
3972
  challengeCallbacks: {
3973
3973
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3974
3974
  }
@@ -3992,7 +3992,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
3992
3992
  const apiVersionPolicy = {
3993
3993
  name: "CustomApiVersionPolicy",
3994
3994
  sendRequest(request, next) {
3995
- return tslib.__awaiter(this, undefined, undefined, function* () {
3995
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3996
3996
  const param = request.url.split("?");
3997
3997
  if (param.length > 1) {
3998
3998
  const newParams = param[1].split("&").map((item) => {
@@ -4025,7 +4025,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
4025
4025
  return this;
4026
4026
  },
4027
4027
  byPage: (settings) => {
4028
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4028
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4029
4029
  throw new Error("maxPageSize is not supported by this operation.");
4030
4030
  }
4031
4031
  return this.listOperationsPagingPage(options, settings);
@@ -4035,7 +4035,7 @@ class ApplicationClient extends coreClient__namespace.ServiceClient {
4035
4035
  listOperationsPagingPage(options, settings) {
4036
4036
  return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
4037
4037
  let result;
4038
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4038
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4039
4039
  if (!continuationToken) {
4040
4040
  result = yield tslib.__await(this._listOperations(options));
4041
4041
  let page = result.value || [];