@azure/arm-operationalinsights 9.0.1-alpha.20250207.1 → 9.0.1-alpha.20250211.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
47
47
  if (typeof page !== "object" || page === null) {
48
48
  return undefined;
49
49
  }
50
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
50
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
51
  }
52
52
  function setContinuationToken(page, continuationToken) {
53
53
  var _a;
54
54
  if (typeof page !== "object" || page === null || !continuationToken) {
55
55
  return;
56
56
  }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
57
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
58
  pageInfo.continuationToken = continuationToken;
59
59
  pageMap.set(page, pageInfo);
60
60
  }
@@ -3850,7 +3850,7 @@ class QueryPacksImpl {
3850
3850
  return this;
3851
3851
  },
3852
3852
  byPage: (settings) => {
3853
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3853
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3854
3854
  throw new Error("maxPageSize is not supported by this operation.");
3855
3855
  }
3856
3856
  return this.listPagingPage(options, settings);
@@ -3860,7 +3860,7 @@ class QueryPacksImpl {
3860
3860
  listPagingPage(options, settings) {
3861
3861
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
3862
3862
  let result;
3863
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3863
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3864
3864
  if (!continuationToken) {
3865
3865
  result = yield tslib.__await(this._list(options));
3866
3866
  let page = result.value || [];
@@ -3912,7 +3912,7 @@ class QueryPacksImpl {
3912
3912
  return this;
3913
3913
  },
3914
3914
  byPage: (settings) => {
3915
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
3915
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3916
3916
  throw new Error("maxPageSize is not supported by this operation.");
3917
3917
  }
3918
3918
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -3922,7 +3922,7 @@ class QueryPacksImpl {
3922
3922
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
3923
3923
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
3924
3924
  let result;
3925
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
3925
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
3926
3926
  if (!continuationToken) {
3927
3927
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
3928
3928
  let page = result.value || [];
@@ -4268,7 +4268,7 @@ class QueriesImpl {
4268
4268
  return this;
4269
4269
  },
4270
4270
  byPage: (settings) => {
4271
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4271
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4272
4272
  throw new Error("maxPageSize is not supported by this operation.");
4273
4273
  }
4274
4274
  return this.listPagingPage(resourceGroupName, queryPackName, options, settings);
@@ -4278,7 +4278,7 @@ class QueriesImpl {
4278
4278
  listPagingPage(resourceGroupName, queryPackName, options, settings) {
4279
4279
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4280
4280
  let result;
4281
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4281
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4282
4282
  if (!continuationToken) {
4283
4283
  result = yield tslib.__await(this._list(resourceGroupName, queryPackName, options));
4284
4284
  let page = result.value || [];
@@ -4334,7 +4334,7 @@ class QueriesImpl {
4334
4334
  return this;
4335
4335
  },
4336
4336
  byPage: (settings) => {
4337
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4337
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4338
4338
  throw new Error("maxPageSize is not supported by this operation.");
4339
4339
  }
4340
4340
  return this.searchPagingPage(resourceGroupName, queryPackName, querySearchProperties, options, settings);
@@ -4344,7 +4344,7 @@ class QueriesImpl {
4344
4344
  searchPagingPage(resourceGroupName, queryPackName, querySearchProperties, options, settings) {
4345
4345
  return tslib.__asyncGenerator(this, arguments, function* searchPagingPage_1() {
4346
4346
  let result;
4347
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4347
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4348
4348
  if (!continuationToken) {
4349
4349
  result = yield tslib.__await(this._search(resourceGroupName, queryPackName, querySearchProperties, options));
4350
4350
  let page = result.value || [];
@@ -4699,7 +4699,7 @@ class DataExportsImpl {
4699
4699
  return this;
4700
4700
  },
4701
4701
  byPage: (settings) => {
4702
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4702
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4703
4703
  throw new Error("maxPageSize is not supported by this operation.");
4704
4704
  }
4705
4705
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
@@ -4902,7 +4902,7 @@ class DataSourcesImpl {
4902
4902
  return this;
4903
4903
  },
4904
4904
  byPage: (settings) => {
4905
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
4905
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4906
4906
  throw new Error("maxPageSize is not supported by this operation.");
4907
4907
  }
4908
4908
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options, settings);
@@ -4912,7 +4912,7 @@ class DataSourcesImpl {
4912
4912
  listByWorkspacePagingPage(resourceGroupName, workspaceName, filter, options, settings) {
4913
4913
  return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
4914
4914
  let result;
4915
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
4915
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4916
4916
  if (!continuationToken) {
4917
4917
  result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, filter, options));
4918
4918
  let page = result.value || [];
@@ -5220,12 +5220,12 @@ class LroImpl {
5220
5220
  this.requestMethod = requestMethod;
5221
5221
  }
5222
5222
  sendInitialRequest() {
5223
- return tslib.__awaiter(this, undefined, undefined, function* () {
5223
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5224
5224
  return this.sendOperationFn(this.args, this.spec);
5225
5225
  });
5226
5226
  }
5227
5227
  sendPollRequest(path) {
5228
- return tslib.__awaiter(this, undefined, undefined, function* () {
5228
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5229
5229
  const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
5230
5230
  return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
5231
5231
  });
@@ -5265,7 +5265,7 @@ class LinkedServicesImpl {
5265
5265
  return this;
5266
5266
  },
5267
5267
  byPage: (settings) => {
5268
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5268
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5269
5269
  throw new Error("maxPageSize is not supported by this operation.");
5270
5270
  }
5271
5271
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
@@ -5308,17 +5308,17 @@ class LinkedServicesImpl {
5308
5308
  * @param options The options parameters.
5309
5309
  */
5310
5310
  beginCreateOrUpdate(resourceGroupName, workspaceName, linkedServiceName, parameters, options) {
5311
- return tslib.__awaiter(this, undefined, undefined, function* () {
5312
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5311
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5312
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5313
5313
  return this.client.sendOperationRequest(args, spec);
5314
5314
  });
5315
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5315
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5316
5316
  var _a;
5317
5317
  let currentRawResponse = undefined;
5318
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5318
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5319
5319
  const callback = (rawResponse, flatResponse) => {
5320
5320
  currentRawResponse = rawResponse;
5321
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5321
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5322
5322
  };
5323
5323
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5324
5324
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5339,8 +5339,8 @@ class LinkedServicesImpl {
5339
5339
  options
5340
5340
  }, createOrUpdateOperationSpec$6);
5341
5341
  const poller = new coreLro.LroEngine(lro, {
5342
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5343
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5342
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5343
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5344
5344
  });
5345
5345
  yield poller.poll();
5346
5346
  return poller;
@@ -5355,7 +5355,7 @@ class LinkedServicesImpl {
5355
5355
  * @param options The options parameters.
5356
5356
  */
5357
5357
  beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, linkedServiceName, parameters, options) {
5358
- return tslib.__awaiter(this, undefined, undefined, function* () {
5358
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5359
5359
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, linkedServiceName, parameters, options);
5360
5360
  return poller.pollUntilDone();
5361
5361
  });
@@ -5368,17 +5368,17 @@ class LinkedServicesImpl {
5368
5368
  * @param options The options parameters.
5369
5369
  */
5370
5370
  beginDelete(resourceGroupName, workspaceName, linkedServiceName, options) {
5371
- return tslib.__awaiter(this, undefined, undefined, function* () {
5372
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5371
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5372
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5373
5373
  return this.client.sendOperationRequest(args, spec);
5374
5374
  });
5375
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
5375
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5376
5376
  var _a;
5377
5377
  let currentRawResponse = undefined;
5378
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
5378
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5379
5379
  const callback = (rawResponse, flatResponse) => {
5380
5380
  currentRawResponse = rawResponse;
5381
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
5381
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5382
5382
  };
5383
5383
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5384
5384
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -5393,8 +5393,8 @@ class LinkedServicesImpl {
5393
5393
  });
5394
5394
  const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, linkedServiceName, options }, deleteOperationSpec$7);
5395
5395
  const poller = new coreLro.LroEngine(lro, {
5396
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
5397
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
5396
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5397
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5398
5398
  });
5399
5399
  yield poller.poll();
5400
5400
  return poller;
@@ -5408,7 +5408,7 @@ class LinkedServicesImpl {
5408
5408
  * @param options The options parameters.
5409
5409
  */
5410
5410
  beginDeleteAndWait(resourceGroupName, workspaceName, linkedServiceName, options) {
5411
- return tslib.__awaiter(this, undefined, undefined, function* () {
5411
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5412
5412
  const poller = yield this.beginDelete(resourceGroupName, workspaceName, linkedServiceName, options);
5413
5413
  return poller.pollUntilDone();
5414
5414
  });
@@ -5565,7 +5565,7 @@ class LinkedStorageAccountsImpl {
5565
5565
  return this;
5566
5566
  },
5567
5567
  byPage: (settings) => {
5568
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5568
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5569
5569
  throw new Error("maxPageSize is not supported by this operation.");
5570
5570
  }
5571
5571
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
@@ -5752,7 +5752,7 @@ class ManagementGroupsImpl {
5752
5752
  return this;
5753
5753
  },
5754
5754
  byPage: (settings) => {
5755
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5755
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5756
5756
  throw new Error("maxPageSize is not supported by this operation.");
5757
5757
  }
5758
5758
  return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
@@ -5972,7 +5972,7 @@ class UsagesImpl {
5972
5972
  return this;
5973
5973
  },
5974
5974
  byPage: (settings) => {
5975
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
5975
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5976
5976
  throw new Error("maxPageSize is not supported by this operation.");
5977
5977
  }
5978
5978
  return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
@@ -6070,7 +6070,7 @@ class StorageInsightConfigsImpl {
6070
6070
  return this;
6071
6071
  },
6072
6072
  byPage: (settings) => {
6073
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6073
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6074
6074
  throw new Error("maxPageSize is not supported by this operation.");
6075
6075
  }
6076
6076
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
@@ -6080,7 +6080,7 @@ class StorageInsightConfigsImpl {
6080
6080
  listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
6081
6081
  return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
6082
6082
  let result;
6083
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6083
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6084
6084
  if (!continuationToken) {
6085
6085
  result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
6086
6086
  let page = result.value || [];
@@ -6669,7 +6669,7 @@ class ClustersImpl {
6669
6669
  return this;
6670
6670
  },
6671
6671
  byPage: (settings) => {
6672
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6672
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6673
6673
  throw new Error("maxPageSize is not supported by this operation.");
6674
6674
  }
6675
6675
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -6679,7 +6679,7 @@ class ClustersImpl {
6679
6679
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
6680
6680
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
6681
6681
  let result;
6682
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6682
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6683
6683
  if (!continuationToken) {
6684
6684
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
6685
6685
  let page = result.value || [];
@@ -6730,7 +6730,7 @@ class ClustersImpl {
6730
6730
  return this;
6731
6731
  },
6732
6732
  byPage: (settings) => {
6733
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
6733
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6734
6734
  throw new Error("maxPageSize is not supported by this operation.");
6735
6735
  }
6736
6736
  return this.listPagingPage(options, settings);
@@ -6740,7 +6740,7 @@ class ClustersImpl {
6740
6740
  listPagingPage(options, settings) {
6741
6741
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6742
6742
  let result;
6743
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
6743
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6744
6744
  if (!continuationToken) {
6745
6745
  result = yield tslib.__await(this._list(options));
6746
6746
  let page = result.value || [];
@@ -6800,17 +6800,17 @@ class ClustersImpl {
6800
6800
  * @param options The options parameters.
6801
6801
  */
6802
6802
  beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options) {
6803
- return tslib.__awaiter(this, undefined, undefined, function* () {
6804
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6803
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6804
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6805
6805
  return this.client.sendOperationRequest(args, spec);
6806
6806
  });
6807
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6807
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6808
6808
  var _a;
6809
6809
  let currentRawResponse = undefined;
6810
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6810
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6811
6811
  const callback = (rawResponse, flatResponse) => {
6812
6812
  currentRawResponse = rawResponse;
6813
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6813
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6814
6814
  };
6815
6815
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6816
6816
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6825,8 +6825,8 @@ class ClustersImpl {
6825
6825
  });
6826
6826
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOrUpdateOperationSpec$2);
6827
6827
  const poller = new coreLro.LroEngine(lro, {
6828
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6829
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6828
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6829
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6830
6830
  });
6831
6831
  yield poller.poll();
6832
6832
  return poller;
@@ -6840,7 +6840,7 @@ class ClustersImpl {
6840
6840
  * @param options The options parameters.
6841
6841
  */
6842
6842
  beginCreateOrUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
6843
- return tslib.__awaiter(this, undefined, undefined, function* () {
6843
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6844
6844
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, clusterName, parameters, options);
6845
6845
  return poller.pollUntilDone();
6846
6846
  });
@@ -6852,17 +6852,17 @@ class ClustersImpl {
6852
6852
  * @param options The options parameters.
6853
6853
  */
6854
6854
  beginDelete(resourceGroupName, clusterName, options) {
6855
- return tslib.__awaiter(this, undefined, undefined, function* () {
6856
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6855
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6856
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6857
6857
  return this.client.sendOperationRequest(args, spec);
6858
6858
  });
6859
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6859
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6860
6860
  var _a;
6861
6861
  let currentRawResponse = undefined;
6862
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6862
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6863
6863
  const callback = (rawResponse, flatResponse) => {
6864
6864
  currentRawResponse = rawResponse;
6865
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6865
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6866
6866
  };
6867
6867
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6868
6868
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6877,8 +6877,8 @@ class ClustersImpl {
6877
6877
  });
6878
6878
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec$2);
6879
6879
  const poller = new coreLro.LroEngine(lro, {
6880
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6881
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6880
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6881
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6882
6882
  });
6883
6883
  yield poller.poll();
6884
6884
  return poller;
@@ -6891,7 +6891,7 @@ class ClustersImpl {
6891
6891
  * @param options The options parameters.
6892
6892
  */
6893
6893
  beginDeleteAndWait(resourceGroupName, clusterName, options) {
6894
- return tslib.__awaiter(this, undefined, undefined, function* () {
6894
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6895
6895
  const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
6896
6896
  return poller.pollUntilDone();
6897
6897
  });
@@ -6913,17 +6913,17 @@ class ClustersImpl {
6913
6913
  * @param options The options parameters.
6914
6914
  */
6915
6915
  beginUpdate(resourceGroupName, clusterName, parameters, options) {
6916
- return tslib.__awaiter(this, undefined, undefined, function* () {
6917
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6916
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6917
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6918
6918
  return this.client.sendOperationRequest(args, spec);
6919
6919
  });
6920
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
6920
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
6921
6921
  var _a;
6922
6922
  let currentRawResponse = undefined;
6923
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
6923
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
6924
6924
  const callback = (rawResponse, flatResponse) => {
6925
6925
  currentRawResponse = rawResponse;
6926
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
6926
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
6927
6927
  };
6928
6928
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
6929
6929
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -6938,8 +6938,8 @@ class ClustersImpl {
6938
6938
  });
6939
6939
  const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateOperationSpec$2);
6940
6940
  const poller = new coreLro.LroEngine(lro, {
6941
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
6942
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
6941
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6942
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
6943
6943
  });
6944
6944
  yield poller.poll();
6945
6945
  return poller;
@@ -6953,7 +6953,7 @@ class ClustersImpl {
6953
6953
  * @param options The options parameters.
6954
6954
  */
6955
6955
  beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
6956
- return tslib.__awaiter(this, undefined, undefined, function* () {
6956
+ return tslib.__awaiter(this, void 0, void 0, function* () {
6957
6957
  const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
6958
6958
  return poller.pollUntilDone();
6959
6959
  });
@@ -7192,7 +7192,7 @@ class OperationsImpl {
7192
7192
  return this;
7193
7193
  },
7194
7194
  byPage: (settings) => {
7195
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7195
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7196
7196
  throw new Error("maxPageSize is not supported by this operation.");
7197
7197
  }
7198
7198
  return this.listPagingPage(options, settings);
@@ -7202,7 +7202,7 @@ class OperationsImpl {
7202
7202
  listPagingPage(options, settings) {
7203
7203
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7204
7204
  let result;
7205
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
7205
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7206
7206
  if (!continuationToken) {
7207
7207
  result = yield tslib.__await(this._list(options));
7208
7208
  let page = result.value || [];
@@ -7320,7 +7320,7 @@ class WorkspacesImpl {
7320
7320
  return this;
7321
7321
  },
7322
7322
  byPage: (settings) => {
7323
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7323
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7324
7324
  throw new Error("maxPageSize is not supported by this operation.");
7325
7325
  }
7326
7326
  return this.listPagingPage(options, settings);
@@ -7369,7 +7369,7 @@ class WorkspacesImpl {
7369
7369
  return this;
7370
7370
  },
7371
7371
  byPage: (settings) => {
7372
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7372
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7373
7373
  throw new Error("maxPageSize is not supported by this operation.");
7374
7374
  }
7375
7375
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -7426,17 +7426,17 @@ class WorkspacesImpl {
7426
7426
  * @param options The options parameters.
7427
7427
  */
7428
7428
  beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, options) {
7429
- return tslib.__awaiter(this, undefined, undefined, function* () {
7430
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7429
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7430
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7431
7431
  return this.client.sendOperationRequest(args, spec);
7432
7432
  });
7433
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7433
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7434
7434
  var _a;
7435
7435
  let currentRawResponse = undefined;
7436
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7436
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7437
7437
  const callback = (rawResponse, flatResponse) => {
7438
7438
  currentRawResponse = rawResponse;
7439
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7439
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7440
7440
  };
7441
7441
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7442
7442
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7451,8 +7451,8 @@ class WorkspacesImpl {
7451
7451
  });
7452
7452
  const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec$1);
7453
7453
  const poller = new coreLro.LroEngine(lro, {
7454
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7455
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7454
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7455
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7456
7456
  });
7457
7457
  yield poller.poll();
7458
7458
  return poller;
@@ -7466,7 +7466,7 @@ class WorkspacesImpl {
7466
7466
  * @param options The options parameters.
7467
7467
  */
7468
7468
  beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, parameters, options) {
7469
- return tslib.__awaiter(this, undefined, undefined, function* () {
7469
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7470
7470
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, parameters, options);
7471
7471
  return poller.pollUntilDone();
7472
7472
  });
@@ -7480,17 +7480,17 @@ class WorkspacesImpl {
7480
7480
  * @param options The options parameters.
7481
7481
  */
7482
7482
  beginDelete(resourceGroupName, workspaceName, options) {
7483
- return tslib.__awaiter(this, undefined, undefined, function* () {
7484
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7483
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7484
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7485
7485
  return this.client.sendOperationRequest(args, spec);
7486
7486
  });
7487
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7487
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7488
7488
  var _a;
7489
7489
  let currentRawResponse = undefined;
7490
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7490
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7491
7491
  const callback = (rawResponse, flatResponse) => {
7492
7492
  currentRawResponse = rawResponse;
7493
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7493
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7494
7494
  };
7495
7495
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7496
7496
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7505,8 +7505,8 @@ class WorkspacesImpl {
7505
7505
  });
7506
7506
  const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, options }, deleteOperationSpec$1);
7507
7507
  const poller = new coreLro.LroEngine(lro, {
7508
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7509
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
7508
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7509
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
7510
7510
  });
7511
7511
  yield poller.poll();
7512
7512
  return poller;
@@ -7521,7 +7521,7 @@ class WorkspacesImpl {
7521
7521
  * @param options The options parameters.
7522
7522
  */
7523
7523
  beginDeleteAndWait(resourceGroupName, workspaceName, options) {
7524
- return tslib.__awaiter(this, undefined, undefined, function* () {
7524
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7525
7525
  const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
7526
7526
  return poller.pollUntilDone();
7527
7527
  });
@@ -7714,7 +7714,7 @@ class DeletedWorkspacesImpl {
7714
7714
  return this;
7715
7715
  },
7716
7716
  byPage: (settings) => {
7717
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7717
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7718
7718
  throw new Error("maxPageSize is not supported by this operation.");
7719
7719
  }
7720
7720
  return this.listPagingPage(options, settings);
@@ -7763,7 +7763,7 @@ class DeletedWorkspacesImpl {
7763
7763
  return this;
7764
7764
  },
7765
7765
  byPage: (settings) => {
7766
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7766
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7767
7767
  throw new Error("maxPageSize is not supported by this operation.");
7768
7768
  }
7769
7769
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -7885,7 +7885,7 @@ class TablesImpl {
7885
7885
  return this;
7886
7886
  },
7887
7887
  byPage: (settings) => {
7888
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
7888
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7889
7889
  throw new Error("maxPageSize is not supported by this operation.");
7890
7890
  }
7891
7891
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
@@ -7937,17 +7937,17 @@ class TablesImpl {
7937
7937
  * @param options The options parameters.
7938
7938
  */
7939
7939
  beginCreateOrUpdate(resourceGroupName, workspaceName, tableName, parameters, options) {
7940
- return tslib.__awaiter(this, undefined, undefined, function* () {
7941
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7940
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7941
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7942
7942
  return this.client.sendOperationRequest(args, spec);
7943
7943
  });
7944
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7944
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7945
7945
  var _a;
7946
7946
  let currentRawResponse = undefined;
7947
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
7947
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
7948
7948
  const callback = (rawResponse, flatResponse) => {
7949
7949
  currentRawResponse = rawResponse;
7950
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
7950
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
7951
7951
  };
7952
7952
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
7953
7953
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -7962,8 +7962,8 @@ class TablesImpl {
7962
7962
  });
7963
7963
  const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, tableName, parameters, options }, createOrUpdateOperationSpec);
7964
7964
  const poller = new coreLro.LroEngine(lro, {
7965
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
7966
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
7965
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
7966
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
7967
7967
  lroResourceLocationConfig: "azure-async-operation"
7968
7968
  });
7969
7969
  yield poller.poll();
@@ -7979,7 +7979,7 @@ class TablesImpl {
7979
7979
  * @param options The options parameters.
7980
7980
  */
7981
7981
  beginCreateOrUpdateAndWait(resourceGroupName, workspaceName, tableName, parameters, options) {
7982
- return tslib.__awaiter(this, undefined, undefined, function* () {
7982
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7983
7983
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, workspaceName, tableName, parameters, options);
7984
7984
  return poller.pollUntilDone();
7985
7985
  });
@@ -7993,17 +7993,17 @@ class TablesImpl {
7993
7993
  * @param options The options parameters.
7994
7994
  */
7995
7995
  beginUpdate(resourceGroupName, workspaceName, tableName, parameters, options) {
7996
- return tslib.__awaiter(this, undefined, undefined, function* () {
7997
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
7996
+ return tslib.__awaiter(this, void 0, void 0, function* () {
7997
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
7998
7998
  return this.client.sendOperationRequest(args, spec);
7999
7999
  });
8000
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8000
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8001
8001
  var _a;
8002
8002
  let currentRawResponse = undefined;
8003
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8003
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8004
8004
  const callback = (rawResponse, flatResponse) => {
8005
8005
  currentRawResponse = rawResponse;
8006
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8006
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8007
8007
  };
8008
8008
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8009
8009
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8018,8 +8018,8 @@ class TablesImpl {
8018
8018
  });
8019
8019
  const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, tableName, parameters, options }, updateOperationSpec);
8020
8020
  const poller = new coreLro.LroEngine(lro, {
8021
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8022
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8021
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8022
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8023
8023
  lroResourceLocationConfig: "azure-async-operation"
8024
8024
  });
8025
8025
  yield poller.poll();
@@ -8035,7 +8035,7 @@ class TablesImpl {
8035
8035
  * @param options The options parameters.
8036
8036
  */
8037
8037
  beginUpdateAndWait(resourceGroupName, workspaceName, tableName, parameters, options) {
8038
- return tslib.__awaiter(this, undefined, undefined, function* () {
8038
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8039
8039
  const poller = yield this.beginUpdate(resourceGroupName, workspaceName, tableName, parameters, options);
8040
8040
  return poller.pollUntilDone();
8041
8041
  });
@@ -8058,17 +8058,17 @@ class TablesImpl {
8058
8058
  * @param options The options parameters.
8059
8059
  */
8060
8060
  beginDelete(resourceGroupName, workspaceName, tableName, options) {
8061
- return tslib.__awaiter(this, undefined, undefined, function* () {
8062
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8061
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8062
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8063
8063
  return this.client.sendOperationRequest(args, spec);
8064
8064
  });
8065
- const sendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
8065
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
8066
8066
  var _a;
8067
8067
  let currentRawResponse = undefined;
8068
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
8068
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
8069
8069
  const callback = (rawResponse, flatResponse) => {
8070
8070
  currentRawResponse = rawResponse;
8071
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
8071
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
8072
8072
  };
8073
8073
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
8074
8074
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -8083,8 +8083,8 @@ class TablesImpl {
8083
8083
  });
8084
8084
  const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, tableName, options }, deleteOperationSpec);
8085
8085
  const poller = new coreLro.LroEngine(lro, {
8086
- resumeFrom: options === null || options === undefined ? undefined : options.resumeFrom,
8087
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
8086
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
8087
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
8088
8088
  lroResourceLocationConfig: "azure-async-operation"
8089
8089
  });
8090
8090
  yield poller.poll();
@@ -8099,7 +8099,7 @@ class TablesImpl {
8099
8099
  * @param options The options parameters.
8100
8100
  */
8101
8101
  beginDeleteAndWait(resourceGroupName, workspaceName, tableName, options) {
8102
- return tslib.__awaiter(this, undefined, undefined, function* () {
8102
+ return tslib.__awaiter(this, void 0, void 0, function* () {
8103
8103
  const poller = yield this.beginDelete(resourceGroupName, workspaceName, tableName, options);
8104
8104
  return poller.pollUntilDone();
8105
8105
  });
@@ -8337,10 +8337,10 @@ class OperationalInsightsManagementClient extends coreClient__namespace.ServiceC
8337
8337
  : `${packageDetails}`;
8338
8338
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
8339
8339
  userAgentPrefix
8340
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
8340
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
8341
8341
  super(optionsWithDefaults);
8342
8342
  let bearerTokenAuthenticationPolicyFound = false;
8343
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
8343
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
8344
8344
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
8345
8345
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
8346
8346
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -8354,7 +8354,7 @@ class OperationalInsightsManagementClient extends coreClient__namespace.ServiceC
8354
8354
  });
8355
8355
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
8356
8356
  credential: credentials,
8357
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
8357
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
8358
8358
  challengeCallbacks: {
8359
8359
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
8360
8360
  }