@azure/arm-monitor 8.0.0-alpha.20250103.1 → 8.0.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
  }
@@ -678,7 +678,7 @@ function createLroSpec(inputs) {
678
678
  sendInitialRequest: () => sendOperationFn(args, spec),
679
679
  sendPollRequest: (path, options) => {
680
680
  const restSpec = tslib.__rest(spec, ["requestBody"]);
681
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
681
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
682
682
  },
683
683
  };
684
684
  }
@@ -11264,7 +11264,7 @@ class MetricNamespacesImpl {
11264
11264
  return this;
11265
11265
  },
11266
11266
  byPage: (settings) => {
11267
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11267
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11268
11268
  throw new Error("maxPageSize is not supported by this operation.");
11269
11269
  }
11270
11270
  return this.listPagingPage(resourceUri, options, settings);
@@ -11358,7 +11358,7 @@ class MetricDefinitionsImpl {
11358
11358
  return this;
11359
11359
  },
11360
11360
  byPage: (settings) => {
11361
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11361
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11362
11362
  throw new Error("maxPageSize is not supported by this operation.");
11363
11363
  }
11364
11364
  return this.listAtSubscriptionScopePagingPage(region, options, settings);
@@ -11407,7 +11407,7 @@ class MetricDefinitionsImpl {
11407
11407
  return this;
11408
11408
  },
11409
11409
  byPage: (settings) => {
11410
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11410
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11411
11411
  throw new Error("maxPageSize is not supported by this operation.");
11412
11412
  }
11413
11413
  return this.listPagingPage(resourceUri, options, settings);
@@ -11668,7 +11668,7 @@ class AzureMonitorWorkspacesImpl {
11668
11668
  return this;
11669
11669
  },
11670
11670
  byPage: (settings) => {
11671
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11671
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11672
11672
  throw new Error("maxPageSize is not supported by this operation.");
11673
11673
  }
11674
11674
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -11678,7 +11678,7 @@ class AzureMonitorWorkspacesImpl {
11678
11678
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
11679
11679
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
11680
11680
  let result;
11681
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11681
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11682
11682
  if (!continuationToken) {
11683
11683
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
11684
11684
  let page = result.value || [];
@@ -11729,7 +11729,7 @@ class AzureMonitorWorkspacesImpl {
11729
11729
  return this;
11730
11730
  },
11731
11731
  byPage: (settings) => {
11732
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11732
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
11733
11733
  throw new Error("maxPageSize is not supported by this operation.");
11734
11734
  }
11735
11735
  return this.listBySubscriptionPagingPage(options, settings);
@@ -11739,7 +11739,7 @@ class AzureMonitorWorkspacesImpl {
11739
11739
  listBySubscriptionPagingPage(options, settings) {
11740
11740
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
11741
11741
  let result;
11742
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11742
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
11743
11743
  if (!continuationToken) {
11744
11744
  result = yield tslib.__await(this._listBySubscription(options));
11745
11745
  let page = result.value || [];
@@ -11836,17 +11836,17 @@ class AzureMonitorWorkspacesImpl {
11836
11836
  * @param options The options parameters.
11837
11837
  */
11838
11838
  beginDelete(resourceGroupName, azureMonitorWorkspaceName, options) {
11839
- return tslib.__awaiter(this, void 0, void 0, function* () {
11840
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11839
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11840
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11841
11841
  return this.client.sendOperationRequest(args, spec);
11842
11842
  });
11843
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
11843
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
11844
11844
  var _a;
11845
11845
  let currentRawResponse = undefined;
11846
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
11846
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
11847
11847
  const callback = (rawResponse, flatResponse) => {
11848
11848
  currentRawResponse = rawResponse;
11849
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
11849
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
11850
11850
  };
11851
11851
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
11852
11852
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -11865,8 +11865,8 @@ class AzureMonitorWorkspacesImpl {
11865
11865
  spec: deleteOperationSpec$f,
11866
11866
  });
11867
11867
  const poller = yield coreLro.createHttpPoller(lro, {
11868
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
11869
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
11868
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
11869
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
11870
11870
  resourceLocationConfig: "location",
11871
11871
  });
11872
11872
  yield poller.poll();
@@ -11881,7 +11881,7 @@ class AzureMonitorWorkspacesImpl {
11881
11881
  * @param options The options parameters.
11882
11882
  */
11883
11883
  beginDeleteAndWait(resourceGroupName, azureMonitorWorkspaceName, options) {
11884
- return tslib.__awaiter(this, void 0, void 0, function* () {
11884
+ return tslib.__awaiter(this, undefined, undefined, function* () {
11885
11885
  const poller = yield this.beginDelete(resourceGroupName, azureMonitorWorkspaceName, options);
11886
11886
  return poller.pollUntilDone();
11887
11887
  });
@@ -12113,7 +12113,7 @@ class MonitorOperationsImpl {
12113
12113
  return this;
12114
12114
  },
12115
12115
  byPage: (settings) => {
12116
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12116
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12117
12117
  throw new Error("maxPageSize is not supported by this operation.");
12118
12118
  }
12119
12119
  return this.listPagingPage(options, settings);
@@ -12123,7 +12123,7 @@ class MonitorOperationsImpl {
12123
12123
  listPagingPage(options, settings) {
12124
12124
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12125
12125
  let result;
12126
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12126
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12127
12127
  if (!continuationToken) {
12128
12128
  result = yield tslib.__await(this._list(options));
12129
12129
  let page = result.value || [];
@@ -12242,7 +12242,7 @@ class AutoscaleSettingsImpl {
12242
12242
  return this;
12243
12243
  },
12244
12244
  byPage: (settings) => {
12245
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12245
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12246
12246
  throw new Error("maxPageSize is not supported by this operation.");
12247
12247
  }
12248
12248
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -12252,7 +12252,7 @@ class AutoscaleSettingsImpl {
12252
12252
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
12253
12253
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
12254
12254
  let result;
12255
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12255
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12256
12256
  if (!continuationToken) {
12257
12257
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
12258
12258
  let page = result.value || [];
@@ -12303,7 +12303,7 @@ class AutoscaleSettingsImpl {
12303
12303
  return this;
12304
12304
  },
12305
12305
  byPage: (settings) => {
12306
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12306
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12307
12307
  throw new Error("maxPageSize is not supported by this operation.");
12308
12308
  }
12309
12309
  return this.listBySubscriptionPagingPage(options, settings);
@@ -12313,7 +12313,7 @@ class AutoscaleSettingsImpl {
12313
12313
  listBySubscriptionPagingPage(options, settings) {
12314
12314
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
12315
12315
  let result;
12316
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12316
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
12317
12317
  if (!continuationToken) {
12318
12318
  result = yield tslib.__await(this._listBySubscription(options));
12319
12319
  let page = result.value || [];
@@ -12741,7 +12741,7 @@ class AlertRuleIncidentsImpl {
12741
12741
  return this;
12742
12742
  },
12743
12743
  byPage: (settings) => {
12744
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12744
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12745
12745
  throw new Error("maxPageSize is not supported by this operation.");
12746
12746
  }
12747
12747
  return this.listByAlertRulePagingPage(resourceGroupName, ruleName, options, settings);
@@ -12870,7 +12870,7 @@ class AlertRulesImpl {
12870
12870
  return this;
12871
12871
  },
12872
12872
  byPage: (settings) => {
12873
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12873
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12874
12874
  throw new Error("maxPageSize is not supported by this operation.");
12875
12875
  }
12876
12876
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -12918,7 +12918,7 @@ class AlertRulesImpl {
12918
12918
  return this;
12919
12919
  },
12920
12920
  byPage: (settings) => {
12921
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12921
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
12922
12922
  throw new Error("maxPageSize is not supported by this operation.");
12923
12923
  }
12924
12924
  return this.listBySubscriptionPagingPage(options, settings);
@@ -13170,7 +13170,7 @@ class LogProfilesImpl {
13170
13170
  return this;
13171
13171
  },
13172
13172
  byPage: (settings) => {
13173
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13173
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13174
13174
  throw new Error("maxPageSize is not supported by this operation.");
13175
13175
  }
13176
13176
  return this.listPagingPage(options, settings);
@@ -13367,7 +13367,7 @@ class DiagnosticSettingsImpl {
13367
13367
  return this;
13368
13368
  },
13369
13369
  byPage: (settings) => {
13370
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13370
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13371
13371
  throw new Error("maxPageSize is not supported by this operation.");
13372
13372
  }
13373
13373
  return this.listPagingPage(resourceUri, options, settings);
@@ -13538,7 +13538,7 @@ class DiagnosticSettingsCategoryImpl {
13538
13538
  return this;
13539
13539
  },
13540
13540
  byPage: (settings) => {
13541
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13541
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13542
13542
  throw new Error("maxPageSize is not supported by this operation.");
13543
13543
  }
13544
13544
  return this.listPagingPage(resourceUri, options, settings);
@@ -13656,7 +13656,7 @@ class ActionGroupsImpl {
13656
13656
  return this;
13657
13657
  },
13658
13658
  byPage: (settings) => {
13659
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13659
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13660
13660
  throw new Error("maxPageSize is not supported by this operation.");
13661
13661
  }
13662
13662
  return this.listBySubscriptionIdPagingPage(options, settings);
@@ -13705,7 +13705,7 @@ class ActionGroupsImpl {
13705
13705
  return this;
13706
13706
  },
13707
13707
  byPage: (settings) => {
13708
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
13708
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
13709
13709
  throw new Error("maxPageSize is not supported by this operation.");
13710
13710
  }
13711
13711
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -13785,17 +13785,17 @@ class ActionGroupsImpl {
13785
13785
  * @param options The options parameters.
13786
13786
  */
13787
13787
  beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options) {
13788
- return tslib.__awaiter(this, void 0, void 0, function* () {
13789
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13788
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13789
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13790
13790
  return this.client.sendOperationRequest(args, spec);
13791
13791
  });
13792
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
13792
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
13793
13793
  var _a;
13794
13794
  let currentRawResponse = undefined;
13795
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
13795
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
13796
13796
  const callback = (rawResponse, flatResponse) => {
13797
13797
  currentRawResponse = rawResponse;
13798
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
13798
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
13799
13799
  };
13800
13800
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
13801
13801
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -13819,8 +13819,8 @@ class ActionGroupsImpl {
13819
13819
  spec: createNotificationsAtActionGroupResourceLevelOperationSpec,
13820
13820
  });
13821
13821
  const poller = yield coreLro.createHttpPoller(lro, {
13822
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
13823
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
13822
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
13823
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
13824
13824
  resourceLocationConfig: "location",
13825
13825
  });
13826
13826
  yield poller.poll();
@@ -13835,7 +13835,7 @@ class ActionGroupsImpl {
13835
13835
  * @param options The options parameters.
13836
13836
  */
13837
13837
  beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName, actionGroupName, notificationRequest, options) {
13838
- return tslib.__awaiter(this, void 0, void 0, function* () {
13838
+ return tslib.__awaiter(this, undefined, undefined, function* () {
13839
13839
  const poller = yield this.beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options);
13840
13840
  return poller.pollUntilDone();
13841
13841
  });
@@ -14117,7 +14117,7 @@ class TenantActionGroupsImpl {
14117
14117
  return this;
14118
14118
  },
14119
14119
  byPage: (settings) => {
14120
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14120
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14121
14121
  throw new Error("maxPageSize is not supported by this operation.");
14122
14122
  }
14123
14123
  return this.listByManagementGroupIdPagingPage(managementGroupId, xMsClientTenantId, options, settings);
@@ -14373,7 +14373,7 @@ class ActivityLogsImpl {
14373
14373
  return this;
14374
14374
  },
14375
14375
  byPage: (settings) => {
14376
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14376
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14377
14377
  throw new Error("maxPageSize is not supported by this operation.");
14378
14378
  }
14379
14379
  return this.listPagingPage(filter, options, settings);
@@ -14383,7 +14383,7 @@ class ActivityLogsImpl {
14383
14383
  listPagingPage(filter, options, settings) {
14384
14384
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14385
14385
  let result;
14386
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14386
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14387
14387
  if (!continuationToken) {
14388
14388
  result = yield tslib.__await(this._list(filter, options));
14389
14389
  let page = result.value || [];
@@ -14523,7 +14523,7 @@ class EventCategoriesImpl {
14523
14523
  return this;
14524
14524
  },
14525
14525
  byPage: (settings) => {
14526
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14526
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14527
14527
  throw new Error("maxPageSize is not supported by this operation.");
14528
14528
  }
14529
14529
  return this.listPagingPage(options, settings);
@@ -14619,7 +14619,7 @@ class TenantActivityLogsImpl {
14619
14619
  return this;
14620
14620
  },
14621
14621
  byPage: (settings) => {
14622
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14622
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14623
14623
  throw new Error("maxPageSize is not supported by this operation.");
14624
14624
  }
14625
14625
  return this.listPagingPage(options, settings);
@@ -14629,7 +14629,7 @@ class TenantActivityLogsImpl {
14629
14629
  listPagingPage(options, settings) {
14630
14630
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
14631
14631
  let result;
14632
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
14632
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
14633
14633
  if (!continuationToken) {
14634
14634
  result = yield tslib.__await(this._list(options));
14635
14635
  let page = result.value || [];
@@ -14755,7 +14755,7 @@ class BaselinesImpl {
14755
14755
  return this;
14756
14756
  },
14757
14757
  byPage: (settings) => {
14758
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14758
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14759
14759
  throw new Error("maxPageSize is not supported by this operation.");
14760
14760
  }
14761
14761
  return this.listPagingPage(resourceUri, options, settings);
@@ -14858,7 +14858,7 @@ class MetricAlertsImpl {
14858
14858
  return this;
14859
14859
  },
14860
14860
  byPage: (settings) => {
14861
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14861
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14862
14862
  throw new Error("maxPageSize is not supported by this operation.");
14863
14863
  }
14864
14864
  return this.listBySubscriptionPagingPage(options, settings);
@@ -14907,7 +14907,7 @@ class MetricAlertsImpl {
14907
14907
  return this;
14908
14908
  },
14909
14909
  byPage: (settings) => {
14910
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
14910
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
14911
14911
  throw new Error("maxPageSize is not supported by this operation.");
14912
14912
  }
14913
14913
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -15234,7 +15234,7 @@ class ScheduledQueryRulesImpl {
15234
15234
  return this;
15235
15235
  },
15236
15236
  byPage: (settings) => {
15237
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15237
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15238
15238
  throw new Error("maxPageSize is not supported by this operation.");
15239
15239
  }
15240
15240
  return this.listBySubscriptionPagingPage(options, settings);
@@ -15244,7 +15244,7 @@ class ScheduledQueryRulesImpl {
15244
15244
  listBySubscriptionPagingPage(options, settings) {
15245
15245
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
15246
15246
  let result;
15247
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15247
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15248
15248
  if (!continuationToken) {
15249
15249
  result = yield tslib.__await(this._listBySubscription(options));
15250
15250
  let page = result.value || [];
@@ -15296,7 +15296,7 @@ class ScheduledQueryRulesImpl {
15296
15296
  return this;
15297
15297
  },
15298
15298
  byPage: (settings) => {
15299
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15299
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15300
15300
  throw new Error("maxPageSize is not supported by this operation.");
15301
15301
  }
15302
15302
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -15306,7 +15306,7 @@ class ScheduledQueryRulesImpl {
15306
15306
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
15307
15307
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
15308
15308
  let result;
15309
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15309
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15310
15310
  if (!continuationToken) {
15311
15311
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
15312
15312
  let page = result.value || [];
@@ -15658,7 +15658,7 @@ class PrivateLinkScopesImpl {
15658
15658
  return this;
15659
15659
  },
15660
15660
  byPage: (settings) => {
15661
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15661
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15662
15662
  throw new Error("maxPageSize is not supported by this operation.");
15663
15663
  }
15664
15664
  return this.listPagingPage(options, settings);
@@ -15668,7 +15668,7 @@ class PrivateLinkScopesImpl {
15668
15668
  listPagingPage(options, settings) {
15669
15669
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15670
15670
  let result;
15671
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15671
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15672
15672
  if (!continuationToken) {
15673
15673
  result = yield tslib.__await(this._list(options));
15674
15674
  let page = result.value || [];
@@ -15720,7 +15720,7 @@ class PrivateLinkScopesImpl {
15720
15720
  return this;
15721
15721
  },
15722
15722
  byPage: (settings) => {
15723
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15723
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15724
15724
  throw new Error("maxPageSize is not supported by this operation.");
15725
15725
  }
15726
15726
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -15730,7 +15730,7 @@ class PrivateLinkScopesImpl {
15730
15730
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
15731
15731
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
15732
15732
  let result;
15733
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15733
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15734
15734
  if (!continuationToken) {
15735
15735
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
15736
15736
  let page = result.value || [];
@@ -15789,17 +15789,17 @@ class PrivateLinkScopesImpl {
15789
15789
  * @param options The options parameters.
15790
15790
  */
15791
15791
  beginDelete(resourceGroupName, scopeName, options) {
15792
- return tslib.__awaiter(this, void 0, void 0, function* () {
15793
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15792
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15793
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15794
15794
  return this.client.sendOperationRequest(args, spec);
15795
15795
  });
15796
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
15796
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
15797
15797
  var _a;
15798
15798
  let currentRawResponse = undefined;
15799
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
15799
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
15800
15800
  const callback = (rawResponse, flatResponse) => {
15801
15801
  currentRawResponse = rawResponse;
15802
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
15802
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
15803
15803
  };
15804
15804
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
15805
15805
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -15818,8 +15818,8 @@ class PrivateLinkScopesImpl {
15818
15818
  spec: deleteOperationSpec$6,
15819
15819
  });
15820
15820
  const poller = yield coreLro.createHttpPoller(lro, {
15821
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
15822
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
15821
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
15822
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
15823
15823
  });
15824
15824
  yield poller.poll();
15825
15825
  return poller;
@@ -15832,7 +15832,7 @@ class PrivateLinkScopesImpl {
15832
15832
  * @param options The options parameters.
15833
15833
  */
15834
15834
  beginDeleteAndWait(resourceGroupName, scopeName, options) {
15835
- return tslib.__awaiter(this, void 0, void 0, function* () {
15835
+ return tslib.__awaiter(this, undefined, undefined, function* () {
15836
15836
  const poller = yield this.beginDelete(resourceGroupName, scopeName, options);
15837
15837
  return poller.pollUntilDone();
15838
15838
  });
@@ -16228,17 +16228,17 @@ class PrivateEndpointConnectionsImpl {
16228
16228
  * @param options The options parameters.
16229
16229
  */
16230
16230
  beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
16231
- return tslib.__awaiter(this, void 0, void 0, function* () {
16232
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16231
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16232
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16233
16233
  return this.client.sendOperationRequest(args, spec);
16234
16234
  });
16235
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16235
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16236
16236
  var _a;
16237
16237
  let currentRawResponse = undefined;
16238
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16238
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16239
16239
  const callback = (rawResponse, flatResponse) => {
16240
16240
  currentRawResponse = rawResponse;
16241
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16241
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16242
16242
  };
16243
16243
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16244
16244
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16263,8 +16263,8 @@ class PrivateEndpointConnectionsImpl {
16263
16263
  spec: createOrUpdateOperationSpec$2,
16264
16264
  });
16265
16265
  const poller = yield coreLro.createHttpPoller(lro, {
16266
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16267
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16266
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16267
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16268
16268
  });
16269
16269
  yield poller.poll();
16270
16270
  return poller;
@@ -16279,7 +16279,7 @@ class PrivateEndpointConnectionsImpl {
16279
16279
  * @param options The options parameters.
16280
16280
  */
16281
16281
  beginCreateOrUpdateAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
16282
- return tslib.__awaiter(this, void 0, void 0, function* () {
16282
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16283
16283
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options);
16284
16284
  return poller.pollUntilDone();
16285
16285
  });
@@ -16292,17 +16292,17 @@ class PrivateEndpointConnectionsImpl {
16292
16292
  * @param options The options parameters.
16293
16293
  */
16294
16294
  beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
16295
- return tslib.__awaiter(this, void 0, void 0, function* () {
16296
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16295
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16296
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16297
16297
  return this.client.sendOperationRequest(args, spec);
16298
16298
  });
16299
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16299
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16300
16300
  var _a;
16301
16301
  let currentRawResponse = undefined;
16302
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16302
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16303
16303
  const callback = (rawResponse, flatResponse) => {
16304
16304
  currentRawResponse = rawResponse;
16305
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16305
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16306
16306
  };
16307
16307
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16308
16308
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16326,8 +16326,8 @@ class PrivateEndpointConnectionsImpl {
16326
16326
  spec: deleteOperationSpec$5,
16327
16327
  });
16328
16328
  const poller = yield coreLro.createHttpPoller(lro, {
16329
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16330
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16329
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16330
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16331
16331
  });
16332
16332
  yield poller.poll();
16333
16333
  return poller;
@@ -16341,7 +16341,7 @@ class PrivateEndpointConnectionsImpl {
16341
16341
  * @param options The options parameters.
16342
16342
  */
16343
16343
  beginDeleteAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
16344
- return tslib.__awaiter(this, void 0, void 0, function* () {
16344
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16345
16345
  const poller = yield this.beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options);
16346
16346
  return poller.pollUntilDone();
16347
16347
  });
@@ -16491,7 +16491,7 @@ class PrivateLinkScopedResourcesImpl {
16491
16491
  return this;
16492
16492
  },
16493
16493
  byPage: (settings) => {
16494
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16494
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16495
16495
  throw new Error("maxPageSize is not supported by this operation.");
16496
16496
  }
16497
16497
  return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings);
@@ -16501,7 +16501,7 @@ class PrivateLinkScopedResourcesImpl {
16501
16501
  listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
16502
16502
  return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
16503
16503
  let result;
16504
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16504
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16505
16505
  if (!continuationToken) {
16506
16506
  result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
16507
16507
  let page = result.value || [];
@@ -16557,17 +16557,17 @@ class PrivateLinkScopedResourcesImpl {
16557
16557
  * @param options The options parameters.
16558
16558
  */
16559
16559
  beginCreateOrUpdate(resourceGroupName, scopeName, name, parameters, options) {
16560
- return tslib.__awaiter(this, void 0, void 0, function* () {
16561
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16560
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16561
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16562
16562
  return this.client.sendOperationRequest(args, spec);
16563
16563
  });
16564
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16564
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16565
16565
  var _a;
16566
16566
  let currentRawResponse = undefined;
16567
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16567
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16568
16568
  const callback = (rawResponse, flatResponse) => {
16569
16569
  currentRawResponse = rawResponse;
16570
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16570
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16571
16571
  };
16572
16572
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16573
16573
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16586,8 +16586,8 @@ class PrivateLinkScopedResourcesImpl {
16586
16586
  spec: createOrUpdateOperationSpec$1,
16587
16587
  });
16588
16588
  const poller = yield coreLro.createHttpPoller(lro, {
16589
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16590
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16589
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16590
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16591
16591
  });
16592
16592
  yield poller.poll();
16593
16593
  return poller;
@@ -16602,7 +16602,7 @@ class PrivateLinkScopedResourcesImpl {
16602
16602
  * @param options The options parameters.
16603
16603
  */
16604
16604
  beginCreateOrUpdateAndWait(resourceGroupName, scopeName, name, parameters, options) {
16605
- return tslib.__awaiter(this, void 0, void 0, function* () {
16605
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16606
16606
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, name, parameters, options);
16607
16607
  return poller.pollUntilDone();
16608
16608
  });
@@ -16615,17 +16615,17 @@ class PrivateLinkScopedResourcesImpl {
16615
16615
  * @param options The options parameters.
16616
16616
  */
16617
16617
  beginDelete(resourceGroupName, scopeName, name, options) {
16618
- return tslib.__awaiter(this, void 0, void 0, function* () {
16619
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16618
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16619
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16620
16620
  return this.client.sendOperationRequest(args, spec);
16621
16621
  });
16622
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
16622
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
16623
16623
  var _a;
16624
16624
  let currentRawResponse = undefined;
16625
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
16625
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
16626
16626
  const callback = (rawResponse, flatResponse) => {
16627
16627
  currentRawResponse = rawResponse;
16628
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
16628
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
16629
16629
  };
16630
16630
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
16631
16631
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -16644,8 +16644,8 @@ class PrivateLinkScopedResourcesImpl {
16644
16644
  spec: deleteOperationSpec$4,
16645
16645
  });
16646
16646
  const poller = yield coreLro.createHttpPoller(lro, {
16647
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
16648
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
16647
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
16648
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
16649
16649
  });
16650
16650
  yield poller.poll();
16651
16651
  return poller;
@@ -16659,7 +16659,7 @@ class PrivateLinkScopedResourcesImpl {
16659
16659
  * @param options The options parameters.
16660
16660
  */
16661
16661
  beginDeleteAndWait(resourceGroupName, scopeName, name, options) {
16662
- return tslib.__awaiter(this, void 0, void 0, function* () {
16662
+ return tslib.__awaiter(this, undefined, undefined, function* () {
16663
16663
  const poller = yield this.beginDelete(resourceGroupName, scopeName, name, options);
16664
16664
  return poller.pollUntilDone();
16665
16665
  });
@@ -16838,7 +16838,7 @@ class ActivityLogAlertsImpl {
16838
16838
  return this;
16839
16839
  },
16840
16840
  byPage: (settings) => {
16841
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16841
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16842
16842
  throw new Error("maxPageSize is not supported by this operation.");
16843
16843
  }
16844
16844
  return this.listBySubscriptionIdPagingPage(options, settings);
@@ -16848,7 +16848,7 @@ class ActivityLogAlertsImpl {
16848
16848
  listBySubscriptionIdPagingPage(options, settings) {
16849
16849
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
16850
16850
  let result;
16851
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16851
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16852
16852
  if (!continuationToken) {
16853
16853
  result = yield tslib.__await(this._listBySubscriptionId(options));
16854
16854
  let page = result.value || [];
@@ -16900,7 +16900,7 @@ class ActivityLogAlertsImpl {
16900
16900
  return this;
16901
16901
  },
16902
16902
  byPage: (settings) => {
16903
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16903
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16904
16904
  throw new Error("maxPageSize is not supported by this operation.");
16905
16905
  }
16906
16906
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -16910,7 +16910,7 @@ class ActivityLogAlertsImpl {
16910
16910
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
16911
16911
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
16912
16912
  let result;
16913
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16913
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16914
16914
  if (!continuationToken) {
16915
16915
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
16916
16916
  let page = result.value || [];
@@ -17230,7 +17230,7 @@ class DataCollectionEndpointsImpl {
17230
17230
  return this;
17231
17231
  },
17232
17232
  byPage: (settings) => {
17233
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17233
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17234
17234
  throw new Error("maxPageSize is not supported by this operation.");
17235
17235
  }
17236
17236
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -17240,7 +17240,7 @@ class DataCollectionEndpointsImpl {
17240
17240
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
17241
17241
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
17242
17242
  let result;
17243
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17243
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17244
17244
  if (!continuationToken) {
17245
17245
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
17246
17246
  let page = result.value || [];
@@ -17291,7 +17291,7 @@ class DataCollectionEndpointsImpl {
17291
17291
  return this;
17292
17292
  },
17293
17293
  byPage: (settings) => {
17294
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17294
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17295
17295
  throw new Error("maxPageSize is not supported by this operation.");
17296
17296
  }
17297
17297
  return this.listBySubscriptionPagingPage(options, settings);
@@ -17301,7 +17301,7 @@ class DataCollectionEndpointsImpl {
17301
17301
  listBySubscriptionPagingPage(options, settings) {
17302
17302
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
17303
17303
  let result;
17304
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17304
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17305
17305
  if (!continuationToken) {
17306
17306
  result = yield tslib.__await(this._listBySubscription(options));
17307
17307
  let page = result.value || [];
@@ -17611,7 +17611,7 @@ class DataCollectionRuleAssociationsImpl {
17611
17611
  return this;
17612
17612
  },
17613
17613
  byPage: (settings) => {
17614
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17614
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17615
17615
  throw new Error("maxPageSize is not supported by this operation.");
17616
17616
  }
17617
17617
  return this.listByResourcePagingPage(resourceUri, options, settings);
@@ -17621,7 +17621,7 @@ class DataCollectionRuleAssociationsImpl {
17621
17621
  listByResourcePagingPage(resourceUri, options, settings) {
17622
17622
  return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
17623
17623
  let result;
17624
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17624
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17625
17625
  if (!continuationToken) {
17626
17626
  result = yield tslib.__await(this._listByResource(resourceUri, options));
17627
17627
  let page = result.value || [];
@@ -17674,7 +17674,7 @@ class DataCollectionRuleAssociationsImpl {
17674
17674
  return this;
17675
17675
  },
17676
17676
  byPage: (settings) => {
17677
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17677
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17678
17678
  throw new Error("maxPageSize is not supported by this operation.");
17679
17679
  }
17680
17680
  return this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings);
@@ -17684,7 +17684,7 @@ class DataCollectionRuleAssociationsImpl {
17684
17684
  listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings) {
17685
17685
  return tslib.__asyncGenerator(this, arguments, function* listByRulePagingPage_1() {
17686
17686
  let result;
17687
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17687
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17688
17688
  if (!continuationToken) {
17689
17689
  result = yield tslib.__await(this._listByRule(resourceGroupName, dataCollectionRuleName, options));
17690
17690
  let page = result.value || [];
@@ -17738,7 +17738,7 @@ class DataCollectionRuleAssociationsImpl {
17738
17738
  return this;
17739
17739
  },
17740
17740
  byPage: (settings) => {
17741
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17741
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17742
17742
  throw new Error("maxPageSize is not supported by this operation.");
17743
17743
  }
17744
17744
  return this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings);
@@ -17748,7 +17748,7 @@ class DataCollectionRuleAssociationsImpl {
17748
17748
  listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings) {
17749
17749
  return tslib.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingPage_1() {
17750
17750
  let result;
17751
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17751
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17752
17752
  if (!continuationToken) {
17753
17753
  result = yield tslib.__await(this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options));
17754
17754
  let page = result.value || [];
@@ -18089,7 +18089,7 @@ class DataCollectionRulesImpl {
18089
18089
  return this;
18090
18090
  },
18091
18091
  byPage: (settings) => {
18092
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18092
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18093
18093
  throw new Error("maxPageSize is not supported by this operation.");
18094
18094
  }
18095
18095
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -18099,7 +18099,7 @@ class DataCollectionRulesImpl {
18099
18099
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
18100
18100
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
18101
18101
  let result;
18102
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18102
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18103
18103
  if (!continuationToken) {
18104
18104
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
18105
18105
  let page = result.value || [];
@@ -18150,7 +18150,7 @@ class DataCollectionRulesImpl {
18150
18150
  return this;
18151
18151
  },
18152
18152
  byPage: (settings) => {
18153
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18153
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18154
18154
  throw new Error("maxPageSize is not supported by this operation.");
18155
18155
  }
18156
18156
  return this.listBySubscriptionPagingPage(options, settings);
@@ -18160,7 +18160,7 @@ class DataCollectionRulesImpl {
18160
18160
  listBySubscriptionPagingPage(options, settings) {
18161
18161
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
18162
18162
  let result;
18163
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18163
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18164
18164
  if (!continuationToken) {
18165
18165
  result = yield tslib.__await(this._listBySubscription(options));
18166
18166
  let page = result.value || [];
@@ -18468,10 +18468,10 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
18468
18468
  : `${packageDetails}`;
18469
18469
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
18470
18470
  userAgentPrefix,
18471
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
18471
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
18472
18472
  super(optionsWithDefaults);
18473
18473
  let bearerTokenAuthenticationPolicyFound = false;
18474
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
18474
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
18475
18475
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
18476
18476
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
18477
18477
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -18485,7 +18485,7 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
18485
18485
  });
18486
18486
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
18487
18487
  credential: credentials,
18488
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
18488
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
18489
18489
  challengeCallbacks: {
18490
18490
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
18491
18491
  },
@@ -18539,17 +18539,17 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
18539
18539
  * @param options The options parameters.
18540
18540
  */
18541
18541
  beginCreateNotificationsAtTenantActionGroupResourceLevel(managementGroupId, tenantActionGroupName, xMsClientTenantId, notificationRequest, options) {
18542
- return tslib.__awaiter(this, void 0, void 0, function* () {
18543
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18542
+ return tslib.__awaiter(this, undefined, undefined, function* () {
18543
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18544
18544
  return this.sendOperationRequest(args, spec);
18545
18545
  });
18546
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
18546
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
18547
18547
  var _a;
18548
18548
  let currentRawResponse = undefined;
18549
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
18549
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
18550
18550
  const callback = (rawResponse, flatResponse) => {
18551
18551
  currentRawResponse = rawResponse;
18552
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
18552
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
18553
18553
  };
18554
18554
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
18555
18555
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -18574,8 +18574,8 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
18574
18574
  spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,
18575
18575
  });
18576
18576
  const poller = yield coreLro.createHttpPoller(lro, {
18577
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18578
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18577
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
18578
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
18579
18579
  resourceLocationConfig: "location",
18580
18580
  });
18581
18581
  yield poller.poll();
@@ -18591,7 +18591,7 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
18591
18591
  * @param options The options parameters.
18592
18592
  */
18593
18593
  beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(managementGroupId, tenantActionGroupName, xMsClientTenantId, notificationRequest, options) {
18594
- return tslib.__awaiter(this, void 0, void 0, function* () {
18594
+ return tslib.__awaiter(this, undefined, undefined, function* () {
18595
18595
  const poller = yield this.beginCreateNotificationsAtTenantActionGroupResourceLevel(managementGroupId, tenantActionGroupName, xMsClientTenantId, notificationRequest, options);
18596
18596
  return poller.pollUntilDone();
18597
18597
  });