@azure/arm-datadog 3.1.0-alpha.20250103.1 → 3.1.0-alpha.20250106.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 === void 0 ? void 0 : _a.continuationToken;
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 !== void 0 ? _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
  }
@@ -1899,7 +1899,7 @@ class MarketplaceAgreementsImpl {
1899
1899
  return this;
1900
1900
  },
1901
1901
  byPage: (settings) => {
1902
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1902
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1903
1903
  throw new Error("maxPageSize is not supported by this operation.");
1904
1904
  }
1905
1905
  return this.listPagingPage(options, settings);
@@ -1909,7 +1909,7 @@ class MarketplaceAgreementsImpl {
1909
1909
  listPagingPage(options, settings) {
1910
1910
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1911
1911
  let result;
1912
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1912
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1913
1913
  if (!continuationToken) {
1914
1914
  result = yield tslib.__await(this._list(options));
1915
1915
  let page = result.value || [];
@@ -2057,7 +2057,7 @@ class CreationSupportedImpl {
2057
2057
  return this;
2058
2058
  },
2059
2059
  byPage: (settings) => {
2060
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2060
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2061
2061
  throw new Error("maxPageSize is not supported by this operation.");
2062
2062
  }
2063
2063
  return this.listPagingPage(datadogOrganizationId, options, settings);
@@ -2158,7 +2158,7 @@ function createLroSpec(inputs) {
2158
2158
  sendInitialRequest: () => sendOperationFn(args, spec),
2159
2159
  sendPollRequest: (path, options) => {
2160
2160
  const restSpec = tslib.__rest(spec, ["requestBody"]);
2161
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2161
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
2162
2162
  }
2163
2163
  };
2164
2164
  }
@@ -2196,7 +2196,7 @@ class MonitorsImpl {
2196
2196
  return this;
2197
2197
  },
2198
2198
  byPage: (settings) => {
2199
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2199
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2200
2200
  throw new Error("maxPageSize is not supported by this operation.");
2201
2201
  }
2202
2202
  return this.listApiKeysPagingPage(resourceGroupName, monitorName, options, settings);
@@ -2206,7 +2206,7 @@ class MonitorsImpl {
2206
2206
  listApiKeysPagingPage(resourceGroupName, monitorName, options, settings) {
2207
2207
  return tslib.__asyncGenerator(this, arguments, function* listApiKeysPagingPage_1() {
2208
2208
  let result;
2209
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2209
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2210
2210
  if (!continuationToken) {
2211
2211
  result = yield tslib.__await(this._listApiKeys(resourceGroupName, monitorName, options));
2212
2212
  let page = result.value || [];
@@ -2259,7 +2259,7 @@ class MonitorsImpl {
2259
2259
  return this;
2260
2260
  },
2261
2261
  byPage: (settings) => {
2262
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2262
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2263
2263
  throw new Error("maxPageSize is not supported by this operation.");
2264
2264
  }
2265
2265
  return this.listHostsPagingPage(resourceGroupName, monitorName, options, settings);
@@ -2269,7 +2269,7 @@ class MonitorsImpl {
2269
2269
  listHostsPagingPage(resourceGroupName, monitorName, options, settings) {
2270
2270
  return tslib.__asyncGenerator(this, arguments, function* listHostsPagingPage_1() {
2271
2271
  let result;
2272
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2272
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2273
2273
  if (!continuationToken) {
2274
2274
  result = yield tslib.__await(this._listHosts(resourceGroupName, monitorName, options));
2275
2275
  let page = result.value || [];
@@ -2322,7 +2322,7 @@ class MonitorsImpl {
2322
2322
  return this;
2323
2323
  },
2324
2324
  byPage: (settings) => {
2325
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2325
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2326
2326
  throw new Error("maxPageSize is not supported by this operation.");
2327
2327
  }
2328
2328
  return this.listLinkedResourcesPagingPage(resourceGroupName, monitorName, options, settings);
@@ -2332,7 +2332,7 @@ class MonitorsImpl {
2332
2332
  listLinkedResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
2333
2333
  return tslib.__asyncGenerator(this, arguments, function* listLinkedResourcesPagingPage_1() {
2334
2334
  let result;
2335
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2335
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2336
2336
  if (!continuationToken) {
2337
2337
  result = yield tslib.__await(this._listLinkedResources(resourceGroupName, monitorName, options));
2338
2338
  let page = result.value || [];
@@ -2385,7 +2385,7 @@ class MonitorsImpl {
2385
2385
  return this;
2386
2386
  },
2387
2387
  byPage: (settings) => {
2388
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2388
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2389
2389
  throw new Error("maxPageSize is not supported by this operation.");
2390
2390
  }
2391
2391
  return this.listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings);
@@ -2395,7 +2395,7 @@ class MonitorsImpl {
2395
2395
  listMonitoredResourcesPagingPage(resourceGroupName, monitorName, options, settings) {
2396
2396
  return tslib.__asyncGenerator(this, arguments, function* listMonitoredResourcesPagingPage_1() {
2397
2397
  let result;
2398
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2398
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2399
2399
  if (!continuationToken) {
2400
2400
  result = yield tslib.__await(this._listMonitoredResources(resourceGroupName, monitorName, options));
2401
2401
  let page = result.value || [];
@@ -2446,7 +2446,7 @@ class MonitorsImpl {
2446
2446
  return this;
2447
2447
  },
2448
2448
  byPage: (settings) => {
2449
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2449
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2450
2450
  throw new Error("maxPageSize is not supported by this operation.");
2451
2451
  }
2452
2452
  return this.listPagingPage(options, settings);
@@ -2456,7 +2456,7 @@ class MonitorsImpl {
2456
2456
  listPagingPage(options, settings) {
2457
2457
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2458
2458
  let result;
2459
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2459
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2460
2460
  if (!continuationToken) {
2461
2461
  result = yield tslib.__await(this._list(options));
2462
2462
  let page = result.value || [];
@@ -2508,7 +2508,7 @@ class MonitorsImpl {
2508
2508
  return this;
2509
2509
  },
2510
2510
  byPage: (settings) => {
2511
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2511
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
2512
2512
  throw new Error("maxPageSize is not supported by this operation.");
2513
2513
  }
2514
2514
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -2518,7 +2518,7 @@ class MonitorsImpl {
2518
2518
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2519
2519
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2520
2520
  let result;
2521
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2521
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
2522
2522
  if (!continuationToken) {
2523
2523
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2524
2524
  let page = result.value || [];
@@ -2640,17 +2640,17 @@ class MonitorsImpl {
2640
2640
  * @param options The options parameters.
2641
2641
  */
2642
2642
  beginCreate(resourceGroupName, monitorName, options) {
2643
- return tslib.__awaiter(this, void 0, void 0, function* () {
2644
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2643
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2644
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2645
2645
  return this.client.sendOperationRequest(args, spec);
2646
2646
  });
2647
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2647
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2648
2648
  var _a;
2649
2649
  let currentRawResponse = undefined;
2650
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2650
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2651
2651
  const callback = (rawResponse, flatResponse) => {
2652
2652
  currentRawResponse = rawResponse;
2653
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2653
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2654
2654
  };
2655
2655
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2656
2656
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2669,8 +2669,8 @@ class MonitorsImpl {
2669
2669
  spec: createOperationSpec
2670
2670
  });
2671
2671
  const poller = yield coreLro.createHttpPoller(lro, {
2672
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2673
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2672
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2673
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
2674
2674
  resourceLocationConfig: "azure-async-operation"
2675
2675
  });
2676
2676
  yield poller.poll();
@@ -2684,7 +2684,7 @@ class MonitorsImpl {
2684
2684
  * @param options The options parameters.
2685
2685
  */
2686
2686
  beginCreateAndWait(resourceGroupName, monitorName, options) {
2687
- return tslib.__awaiter(this, void 0, void 0, function* () {
2687
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2688
2688
  const poller = yield this.beginCreate(resourceGroupName, monitorName, options);
2689
2689
  return poller.pollUntilDone();
2690
2690
  });
@@ -2696,17 +2696,17 @@ class MonitorsImpl {
2696
2696
  * @param options The options parameters.
2697
2697
  */
2698
2698
  beginUpdate(resourceGroupName, monitorName, options) {
2699
- return tslib.__awaiter(this, void 0, void 0, function* () {
2700
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2699
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2700
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2701
2701
  return this.client.sendOperationRequest(args, spec);
2702
2702
  });
2703
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2703
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2704
2704
  var _a;
2705
2705
  let currentRawResponse = undefined;
2706
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2706
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2707
2707
  const callback = (rawResponse, flatResponse) => {
2708
2708
  currentRawResponse = rawResponse;
2709
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2709
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2710
2710
  };
2711
2711
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2712
2712
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2725,8 +2725,8 @@ class MonitorsImpl {
2725
2725
  spec: updateOperationSpec$1
2726
2726
  });
2727
2727
  const poller = yield coreLro.createHttpPoller(lro, {
2728
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2729
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2728
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2729
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2730
2730
  });
2731
2731
  yield poller.poll();
2732
2732
  return poller;
@@ -2739,7 +2739,7 @@ class MonitorsImpl {
2739
2739
  * @param options The options parameters.
2740
2740
  */
2741
2741
  beginUpdateAndWait(resourceGroupName, monitorName, options) {
2742
- return tslib.__awaiter(this, void 0, void 0, function* () {
2742
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2743
2743
  const poller = yield this.beginUpdate(resourceGroupName, monitorName, options);
2744
2744
  return poller.pollUntilDone();
2745
2745
  });
@@ -2751,17 +2751,17 @@ class MonitorsImpl {
2751
2751
  * @param options The options parameters.
2752
2752
  */
2753
2753
  beginDelete(resourceGroupName, monitorName, options) {
2754
- return tslib.__awaiter(this, void 0, void 0, function* () {
2755
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2754
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2755
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2756
2756
  return this.client.sendOperationRequest(args, spec);
2757
2757
  });
2758
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2758
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
2759
2759
  var _a;
2760
2760
  let currentRawResponse = undefined;
2761
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2761
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
2762
2762
  const callback = (rawResponse, flatResponse) => {
2763
2763
  currentRawResponse = rawResponse;
2764
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2764
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
2765
2765
  };
2766
2766
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2767
2767
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -2780,8 +2780,8 @@ class MonitorsImpl {
2780
2780
  spec: deleteOperationSpec$1
2781
2781
  });
2782
2782
  const poller = yield coreLro.createHttpPoller(lro, {
2783
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2784
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2783
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
2784
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
2785
2785
  });
2786
2786
  yield poller.poll();
2787
2787
  return poller;
@@ -2794,7 +2794,7 @@ class MonitorsImpl {
2794
2794
  * @param options The options parameters.
2795
2795
  */
2796
2796
  beginDeleteAndWait(resourceGroupName, monitorName, options) {
2797
- return tslib.__awaiter(this, void 0, void 0, function* () {
2797
+ return tslib.__awaiter(this, undefined, undefined, function* () {
2798
2798
  const poller = yield this.beginDelete(resourceGroupName, monitorName, options);
2799
2799
  return poller.pollUntilDone();
2800
2800
  });
@@ -3313,7 +3313,7 @@ class OperationsImpl {
3313
3313
  return this;
3314
3314
  },
3315
3315
  byPage: (settings) => {
3316
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3316
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3317
3317
  throw new Error("maxPageSize is not supported by this operation.");
3318
3318
  }
3319
3319
  return this.listPagingPage(options, settings);
@@ -3323,7 +3323,7 @@ class OperationsImpl {
3323
3323
  listPagingPage(options, settings) {
3324
3324
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3325
3325
  let result;
3326
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3326
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3327
3327
  if (!continuationToken) {
3328
3328
  result = yield tslib.__await(this._list(options));
3329
3329
  let page = result.value || [];
@@ -3443,7 +3443,7 @@ class TagRulesImpl {
3443
3443
  return this;
3444
3444
  },
3445
3445
  byPage: (settings) => {
3446
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3446
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3447
3447
  throw new Error("maxPageSize is not supported by this operation.");
3448
3448
  }
3449
3449
  return this.listPagingPage(resourceGroupName, monitorName, options, settings);
@@ -3453,7 +3453,7 @@ class TagRulesImpl {
3453
3453
  listPagingPage(resourceGroupName, monitorName, options, settings) {
3454
3454
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3455
3455
  let result;
3456
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3456
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3457
3457
  if (!continuationToken) {
3458
3458
  result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
3459
3459
  let page = result.value || [];
@@ -3654,7 +3654,7 @@ class SingleSignOnConfigurationsImpl {
3654
3654
  return this;
3655
3655
  },
3656
3656
  byPage: (settings) => {
3657
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3657
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3658
3658
  throw new Error("maxPageSize is not supported by this operation.");
3659
3659
  }
3660
3660
  return this.listPagingPage(resourceGroupName, monitorName, options, settings);
@@ -3664,7 +3664,7 @@ class SingleSignOnConfigurationsImpl {
3664
3664
  listPagingPage(resourceGroupName, monitorName, options, settings) {
3665
3665
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3666
3666
  let result;
3667
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3667
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3668
3668
  if (!continuationToken) {
3669
3669
  result = yield tslib.__await(this._list(resourceGroupName, monitorName, options));
3670
3670
  let page = result.value || [];
@@ -3718,17 +3718,17 @@ class SingleSignOnConfigurationsImpl {
3718
3718
  * @param options The options parameters.
3719
3719
  */
3720
3720
  beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, options) {
3721
- return tslib.__awaiter(this, void 0, void 0, function* () {
3722
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3721
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3722
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3723
3723
  return this.client.sendOperationRequest(args, spec);
3724
3724
  });
3725
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3725
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3726
3726
  var _a;
3727
3727
  let currentRawResponse = undefined;
3728
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3728
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3729
3729
  const callback = (rawResponse, flatResponse) => {
3730
3730
  currentRawResponse = rawResponse;
3731
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3731
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3732
3732
  };
3733
3733
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3734
3734
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -3747,8 +3747,8 @@ class SingleSignOnConfigurationsImpl {
3747
3747
  spec: createOrUpdateOperationSpec
3748
3748
  });
3749
3749
  const poller = yield coreLro.createHttpPoller(lro, {
3750
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3751
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3750
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
3751
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
3752
3752
  resourceLocationConfig: "azure-async-operation"
3753
3753
  });
3754
3754
  yield poller.poll();
@@ -3763,7 +3763,7 @@ class SingleSignOnConfigurationsImpl {
3763
3763
  * @param options The options parameters.
3764
3764
  */
3765
3765
  beginCreateOrUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
3766
- return tslib.__awaiter(this, void 0, void 0, function* () {
3766
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3767
3767
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, monitorName, configurationName, options);
3768
3768
  return poller.pollUntilDone();
3769
3769
  });
@@ -3922,7 +3922,7 @@ class MonitoredSubscriptionsImpl {
3922
3922
  return this;
3923
3923
  },
3924
3924
  byPage: (settings) => {
3925
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3925
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3926
3926
  throw new Error("maxPageSize is not supported by this operation.");
3927
3927
  }
3928
3928
  return this.listPagingPage(resourceGroupName, monitorName, options, settings);
@@ -3983,17 +3983,17 @@ class MonitoredSubscriptionsImpl {
3983
3983
  * @param options The options parameters.
3984
3984
  */
3985
3985
  beginCreateorUpdate(resourceGroupName, monitorName, configurationName, options) {
3986
- return tslib.__awaiter(this, void 0, void 0, function* () {
3987
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3986
+ return tslib.__awaiter(this, undefined, undefined, function* () {
3987
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3988
3988
  return this.client.sendOperationRequest(args, spec);
3989
3989
  });
3990
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3990
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
3991
3991
  var _a;
3992
3992
  let currentRawResponse = undefined;
3993
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3993
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
3994
3994
  const callback = (rawResponse, flatResponse) => {
3995
3995
  currentRawResponse = rawResponse;
3996
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3996
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
3997
3997
  };
3998
3998
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3999
3999
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4012,8 +4012,8 @@ class MonitoredSubscriptionsImpl {
4012
4012
  spec: createorUpdateOperationSpec
4013
4013
  });
4014
4014
  const poller = yield coreLro.createHttpPoller(lro, {
4015
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4016
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4015
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4016
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4017
4017
  });
4018
4018
  yield poller.poll();
4019
4019
  return poller;
@@ -4027,7 +4027,7 @@ class MonitoredSubscriptionsImpl {
4027
4027
  * @param options The options parameters.
4028
4028
  */
4029
4029
  beginCreateorUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
4030
- return tslib.__awaiter(this, void 0, void 0, function* () {
4030
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4031
4031
  const poller = yield this.beginCreateorUpdate(resourceGroupName, monitorName, configurationName, options);
4032
4032
  return poller.pollUntilDone();
4033
4033
  });
@@ -4040,17 +4040,17 @@ class MonitoredSubscriptionsImpl {
4040
4040
  * @param options The options parameters.
4041
4041
  */
4042
4042
  beginUpdate(resourceGroupName, monitorName, configurationName, options) {
4043
- return tslib.__awaiter(this, void 0, void 0, function* () {
4044
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4043
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4044
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4045
4045
  return this.client.sendOperationRequest(args, spec);
4046
4046
  });
4047
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4047
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4048
4048
  var _a;
4049
4049
  let currentRawResponse = undefined;
4050
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4050
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4051
4051
  const callback = (rawResponse, flatResponse) => {
4052
4052
  currentRawResponse = rawResponse;
4053
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4053
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4054
4054
  };
4055
4055
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4056
4056
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4069,8 +4069,8 @@ class MonitoredSubscriptionsImpl {
4069
4069
  spec: updateOperationSpec
4070
4070
  });
4071
4071
  const poller = yield coreLro.createHttpPoller(lro, {
4072
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4073
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4072
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4073
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4074
4074
  });
4075
4075
  yield poller.poll();
4076
4076
  return poller;
@@ -4084,7 +4084,7 @@ class MonitoredSubscriptionsImpl {
4084
4084
  * @param options The options parameters.
4085
4085
  */
4086
4086
  beginUpdateAndWait(resourceGroupName, monitorName, configurationName, options) {
4087
- return tslib.__awaiter(this, void 0, void 0, function* () {
4087
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4088
4088
  const poller = yield this.beginUpdate(resourceGroupName, monitorName, configurationName, options);
4089
4089
  return poller.pollUntilDone();
4090
4090
  });
@@ -4097,17 +4097,17 @@ class MonitoredSubscriptionsImpl {
4097
4097
  * @param options The options parameters.
4098
4098
  */
4099
4099
  beginDelete(resourceGroupName, monitorName, configurationName, options) {
4100
- return tslib.__awaiter(this, void 0, void 0, function* () {
4101
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4100
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4101
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4102
4102
  return this.client.sendOperationRequest(args, spec);
4103
4103
  });
4104
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4104
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
4105
4105
  var _a;
4106
4106
  let currentRawResponse = undefined;
4107
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4107
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
4108
4108
  const callback = (rawResponse, flatResponse) => {
4109
4109
  currentRawResponse = rawResponse;
4110
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4110
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
4111
4111
  };
4112
4112
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4113
4113
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -4126,8 +4126,8 @@ class MonitoredSubscriptionsImpl {
4126
4126
  spec: deleteOperationSpec
4127
4127
  });
4128
4128
  const poller = yield coreLro.createHttpPoller(lro, {
4129
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4130
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4129
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
4130
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
4131
4131
  });
4132
4132
  yield poller.poll();
4133
4133
  return poller;
@@ -4141,7 +4141,7 @@ class MonitoredSubscriptionsImpl {
4141
4141
  * @param options The options parameters.
4142
4142
  */
4143
4143
  beginDeleteAndWait(resourceGroupName, monitorName, configurationName, options) {
4144
- return tslib.__awaiter(this, void 0, void 0, function* () {
4144
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4145
4145
  const poller = yield this.beginDelete(resourceGroupName, monitorName, configurationName, options);
4146
4146
  return poller.pollUntilDone();
4147
4147
  });
@@ -4318,10 +4318,10 @@ class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
4318
4318
  : `${packageDetails}`;
4319
4319
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4320
4320
  userAgentPrefix
4321
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4321
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
4322
4322
  super(optionsWithDefaults);
4323
4323
  let bearerTokenAuthenticationPolicyFound = false;
4324
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4324
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4325
4325
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
4326
4326
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4327
4327
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -4335,7 +4335,7 @@ class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
4335
4335
  });
4336
4336
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4337
4337
  credential: credentials,
4338
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4338
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
4339
4339
  challengeCallbacks: {
4340
4340
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4341
4341
  }
@@ -4363,7 +4363,7 @@ class MicrosoftDatadogClient extends coreClient__namespace.ServiceClient {
4363
4363
  const apiVersionPolicy = {
4364
4364
  name: "CustomApiVersionPolicy",
4365
4365
  sendRequest(request, next) {
4366
- return tslib.__awaiter(this, void 0, void 0, function* () {
4366
+ return tslib.__awaiter(this, undefined, undefined, function* () {
4367
4367
  const param = request.url.split("?");
4368
4368
  if (param.length > 1) {
4369
4369
  const newParams = param[1].split("&").map((item) => {