@azure/arm-security 6.0.0-alpha.20250103.1 → 6.0.0-alpha.20250107.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js 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
  }
@@ -15767,7 +15767,7 @@ class LocationsImpl {
15767
15767
  return this;
15768
15768
  },
15769
15769
  byPage: (settings) => {
15770
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15770
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15771
15771
  throw new Error("maxPageSize is not supported by this operation.");
15772
15772
  }
15773
15773
  return this.listPagingPage(options, settings);
@@ -15777,7 +15777,7 @@ class LocationsImpl {
15777
15777
  listPagingPage(options, settings) {
15778
15778
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15779
15779
  let result;
15780
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15780
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15781
15781
  if (!continuationToken) {
15782
15782
  result = yield tslib.__await(this._list(options));
15783
15783
  let page = result.value || [];
@@ -15930,7 +15930,7 @@ class OperationsImpl {
15930
15930
  return this;
15931
15931
  },
15932
15932
  byPage: (settings) => {
15933
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
15933
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
15934
15934
  throw new Error("maxPageSize is not supported by this operation.");
15935
15935
  }
15936
15936
  return this.listPagingPage(options, settings);
@@ -15940,7 +15940,7 @@ class OperationsImpl {
15940
15940
  listPagingPage(options, settings) {
15941
15941
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
15942
15942
  let result;
15943
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
15943
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
15944
15944
  if (!continuationToken) {
15945
15945
  result = yield tslib.__await(this._list(options));
15946
15946
  let page = result.value || [];
@@ -16058,7 +16058,7 @@ class TasksImpl {
16058
16058
  return this;
16059
16059
  },
16060
16060
  byPage: (settings) => {
16061
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16061
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16062
16062
  throw new Error("maxPageSize is not supported by this operation.");
16063
16063
  }
16064
16064
  return this.listPagingPage(options, settings);
@@ -16068,7 +16068,7 @@ class TasksImpl {
16068
16068
  listPagingPage(options, settings) {
16069
16069
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16070
16070
  let result;
16071
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16071
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16072
16072
  if (!continuationToken) {
16073
16073
  result = yield tslib.__await(this._list(options));
16074
16074
  let page = result.value || [];
@@ -16121,7 +16121,7 @@ class TasksImpl {
16121
16121
  return this;
16122
16122
  },
16123
16123
  byPage: (settings) => {
16124
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16124
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16125
16125
  throw new Error("maxPageSize is not supported by this operation.");
16126
16126
  }
16127
16127
  return this.listByHomeRegionPagingPage(ascLocation, options, settings);
@@ -16131,7 +16131,7 @@ class TasksImpl {
16131
16131
  listByHomeRegionPagingPage(ascLocation, options, settings) {
16132
16132
  return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
16133
16133
  let result;
16134
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16134
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16135
16135
  if (!continuationToken) {
16136
16136
  result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
16137
16137
  let page = result.value || [];
@@ -16186,7 +16186,7 @@ class TasksImpl {
16186
16186
  return this;
16187
16187
  },
16188
16188
  byPage: (settings) => {
16189
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16189
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16190
16190
  throw new Error("maxPageSize is not supported by this operation.");
16191
16191
  }
16192
16192
  return this.listByResourceGroupPagingPage(resourceGroupName, ascLocation, options, settings);
@@ -16196,7 +16196,7 @@ class TasksImpl {
16196
16196
  listByResourceGroupPagingPage(resourceGroupName, ascLocation, options, settings) {
16197
16197
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
16198
16198
  let result;
16199
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16199
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16200
16200
  if (!continuationToken) {
16201
16201
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, ascLocation, options));
16202
16202
  let page = result.value || [];
@@ -16578,7 +16578,7 @@ class AutoProvisioningSettingsImpl {
16578
16578
  return this;
16579
16579
  },
16580
16580
  byPage: (settings) => {
16581
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16581
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16582
16582
  throw new Error("maxPageSize is not supported by this operation.");
16583
16583
  }
16584
16584
  return this.listPagingPage(options, settings);
@@ -16588,7 +16588,7 @@ class AutoProvisioningSettingsImpl {
16588
16588
  listPagingPage(options, settings) {
16589
16589
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16590
16590
  let result;
16591
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16591
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16592
16592
  if (!continuationToken) {
16593
16593
  result = yield tslib.__await(this._list(options));
16594
16594
  let page = result.value || [];
@@ -16772,7 +16772,7 @@ class CompliancesImpl {
16772
16772
  return this;
16773
16773
  },
16774
16774
  byPage: (settings) => {
16775
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16775
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16776
16776
  throw new Error("maxPageSize is not supported by this operation.");
16777
16777
  }
16778
16778
  return this.listPagingPage(scope, options, settings);
@@ -16782,7 +16782,7 @@ class CompliancesImpl {
16782
16782
  listPagingPage(scope, options, settings) {
16783
16783
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16784
16784
  let result;
16785
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16785
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16786
16786
  if (!continuationToken) {
16787
16787
  result = yield tslib.__await(this._list(scope, options));
16788
16788
  let page = result.value || [];
@@ -16940,7 +16940,7 @@ class InformationProtectionPoliciesImpl {
16940
16940
  return this;
16941
16941
  },
16942
16942
  byPage: (settings) => {
16943
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
16943
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
16944
16944
  throw new Error("maxPageSize is not supported by this operation.");
16945
16945
  }
16946
16946
  return this.listPagingPage(scope, options, settings);
@@ -16950,7 +16950,7 @@ class InformationProtectionPoliciesImpl {
16950
16950
  listPagingPage(scope, options, settings) {
16951
16951
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
16952
16952
  let result;
16953
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
16953
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
16954
16954
  if (!continuationToken) {
16955
16955
  result = yield tslib.__await(this._list(scope, options));
16956
16956
  let page = result.value || [];
@@ -17148,7 +17148,7 @@ class WorkspaceSettingsImpl {
17148
17148
  return this;
17149
17149
  },
17150
17150
  byPage: (settings) => {
17151
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17151
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17152
17152
  throw new Error("maxPageSize is not supported by this operation.");
17153
17153
  }
17154
17154
  return this.listPagingPage(options, settings);
@@ -17158,7 +17158,7 @@ class WorkspaceSettingsImpl {
17158
17158
  listPagingPage(options, settings) {
17159
17159
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
17160
17160
  let result;
17161
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17161
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17162
17162
  if (!continuationToken) {
17163
17163
  result = yield tslib.__await(this._list(options));
17164
17164
  let page = result.value || [];
@@ -17399,7 +17399,7 @@ class AlertsSuppressionRulesImpl {
17399
17399
  return this;
17400
17400
  },
17401
17401
  byPage: (settings) => {
17402
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17402
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17403
17403
  throw new Error("maxPageSize is not supported by this operation.");
17404
17404
  }
17405
17405
  return this.listPagingPage(options, settings);
@@ -17409,7 +17409,7 @@ class AlertsSuppressionRulesImpl {
17409
17409
  listPagingPage(options, settings) {
17410
17410
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
17411
17411
  let result;
17412
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17412
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17413
17413
  if (!continuationToken) {
17414
17414
  result = yield tslib.__await(this._list(options));
17415
17415
  let page = result.value || [];
@@ -17617,7 +17617,7 @@ class AutomationsImpl {
17617
17617
  return this;
17618
17618
  },
17619
17619
  byPage: (settings) => {
17620
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17620
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17621
17621
  throw new Error("maxPageSize is not supported by this operation.");
17622
17622
  }
17623
17623
  return this.listPagingPage(options, settings);
@@ -17627,7 +17627,7 @@ class AutomationsImpl {
17627
17627
  listPagingPage(options, settings) {
17628
17628
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
17629
17629
  let result;
17630
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17630
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17631
17631
  if (!continuationToken) {
17632
17632
  result = yield tslib.__await(this._list(options));
17633
17633
  let page = result.value || [];
@@ -17681,7 +17681,7 @@ class AutomationsImpl {
17681
17681
  return this;
17682
17682
  },
17683
17683
  byPage: (settings) => {
17684
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
17684
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
17685
17685
  throw new Error("maxPageSize is not supported by this operation.");
17686
17686
  }
17687
17687
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -17691,7 +17691,7 @@ class AutomationsImpl {
17691
17691
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
17692
17692
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
17693
17693
  let result;
17694
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
17694
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
17695
17695
  if (!continuationToken) {
17696
17696
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
17697
17697
  let page = result.value || [];
@@ -18042,7 +18042,7 @@ class RegulatoryComplianceStandardsImpl {
18042
18042
  return this;
18043
18043
  },
18044
18044
  byPage: (settings) => {
18045
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18045
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18046
18046
  throw new Error("maxPageSize is not supported by this operation.");
18047
18047
  }
18048
18048
  return this.listPagingPage(options, settings);
@@ -18052,7 +18052,7 @@ class RegulatoryComplianceStandardsImpl {
18052
18052
  listPagingPage(options, settings) {
18053
18053
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
18054
18054
  let result;
18055
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18055
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18056
18056
  if (!continuationToken) {
18057
18057
  result = yield tslib.__await(this._list(options));
18058
18058
  let page = result.value || [];
@@ -18203,7 +18203,7 @@ class RegulatoryComplianceControlsImpl {
18203
18203
  return this;
18204
18204
  },
18205
18205
  byPage: (settings) => {
18206
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18206
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18207
18207
  throw new Error("maxPageSize is not supported by this operation.");
18208
18208
  }
18209
18209
  return this.listPagingPage(regulatoryComplianceStandardName, options, settings);
@@ -18213,7 +18213,7 @@ class RegulatoryComplianceControlsImpl {
18213
18213
  listPagingPage(regulatoryComplianceStandardName, options, settings) {
18214
18214
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
18215
18215
  let result;
18216
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18216
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18217
18217
  if (!continuationToken) {
18218
18218
  result = yield tslib.__await(this._list(regulatoryComplianceStandardName, options));
18219
18219
  let page = result.value || [];
@@ -18378,7 +18378,7 @@ class RegulatoryComplianceAssessmentsImpl {
18378
18378
  return this;
18379
18379
  },
18380
18380
  byPage: (settings) => {
18381
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18381
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18382
18382
  throw new Error("maxPageSize is not supported by this operation.");
18383
18383
  }
18384
18384
  return this.listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options, settings);
@@ -18388,7 +18388,7 @@ class RegulatoryComplianceAssessmentsImpl {
18388
18388
  listPagingPage(regulatoryComplianceStandardName, regulatoryComplianceControlName, options, settings) {
18389
18389
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
18390
18390
  let result;
18391
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18391
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18392
18392
  if (!continuationToken) {
18393
18393
  result = yield tslib.__await(this._list(regulatoryComplianceStandardName, regulatoryComplianceControlName, options));
18394
18394
  let page = result.value || [];
@@ -18570,7 +18570,7 @@ class SubAssessmentsImpl {
18570
18570
  return this;
18571
18571
  },
18572
18572
  byPage: (settings) => {
18573
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18573
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18574
18574
  throw new Error("maxPageSize is not supported by this operation.");
18575
18575
  }
18576
18576
  return this.listAllPagingPage(scope, options, settings);
@@ -18580,7 +18580,7 @@ class SubAssessmentsImpl {
18580
18580
  listAllPagingPage(scope, options, settings) {
18581
18581
  return tslib.__asyncGenerator(this, arguments, function* listAllPagingPage_1() {
18582
18582
  let result;
18583
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18583
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18584
18584
  if (!continuationToken) {
18585
18585
  result = yield tslib.__await(this._listAll(scope, options));
18586
18586
  let page = result.value || [];
@@ -18635,7 +18635,7 @@ class SubAssessmentsImpl {
18635
18635
  return this;
18636
18636
  },
18637
18637
  byPage: (settings) => {
18638
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18638
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18639
18639
  throw new Error("maxPageSize is not supported by this operation.");
18640
18640
  }
18641
18641
  return this.listPagingPage(scope, assessmentName, options, settings);
@@ -18645,7 +18645,7 @@ class SubAssessmentsImpl {
18645
18645
  listPagingPage(scope, assessmentName, options, settings) {
18646
18646
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
18647
18647
  let result;
18648
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18648
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18649
18649
  if (!continuationToken) {
18650
18650
  result = yield tslib.__await(this._list(scope, assessmentName, options));
18651
18651
  let page = result.value || [];
@@ -18865,7 +18865,7 @@ class ConnectorsImpl {
18865
18865
  return this;
18866
18866
  },
18867
18867
  byPage: (settings) => {
18868
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
18868
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
18869
18869
  throw new Error("maxPageSize is not supported by this operation.");
18870
18870
  }
18871
18871
  return this.listPagingPage(options, settings);
@@ -18875,7 +18875,7 @@ class ConnectorsImpl {
18875
18875
  listPagingPage(options, settings) {
18876
18876
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
18877
18877
  let result;
18878
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
18878
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
18879
18879
  if (!continuationToken) {
18880
18880
  result = yield tslib.__await(this._list(options));
18881
18881
  let page = result.value || [];
@@ -19085,7 +19085,7 @@ class SecurityContactsImpl {
19085
19085
  return this;
19086
19086
  },
19087
19087
  byPage: (settings) => {
19088
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19088
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19089
19089
  throw new Error("maxPageSize is not supported by this operation.");
19090
19090
  }
19091
19091
  return this.listPagingPage(options, settings);
@@ -19095,7 +19095,7 @@ class SecurityContactsImpl {
19095
19095
  listPagingPage(options, settings) {
19096
19096
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
19097
19097
  let result;
19098
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19098
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19099
19099
  if (!continuationToken) {
19100
19100
  result = yield tslib.__await(this._list(options));
19101
19101
  let page = result.value || [];
@@ -19311,7 +19311,7 @@ class SoftwareInventoriesImpl {
19311
19311
  return this;
19312
19312
  },
19313
19313
  byPage: (settings) => {
19314
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19314
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19315
19315
  throw new Error("maxPageSize is not supported by this operation.");
19316
19316
  }
19317
19317
  return this.listByExtendedResourcePagingPage(resourceGroupName, resourceNamespace, resourceType, resourceName, options, settings);
@@ -19321,7 +19321,7 @@ class SoftwareInventoriesImpl {
19321
19321
  listByExtendedResourcePagingPage(resourceGroupName, resourceNamespace, resourceType, resourceName, options, settings) {
19322
19322
  return tslib.__asyncGenerator(this, arguments, function* listByExtendedResourcePagingPage_1() {
19323
19323
  let result;
19324
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19324
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19325
19325
  if (!continuationToken) {
19326
19326
  result = yield tslib.__await(this._listByExtendedResource(resourceGroupName, resourceNamespace, resourceType, resourceName, options));
19327
19327
  let page = result.value || [];
@@ -19372,7 +19372,7 @@ class SoftwareInventoriesImpl {
19372
19372
  return this;
19373
19373
  },
19374
19374
  byPage: (settings) => {
19375
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19375
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19376
19376
  throw new Error("maxPageSize is not supported by this operation.");
19377
19377
  }
19378
19378
  return this.listBySubscriptionPagingPage(options, settings);
@@ -19382,7 +19382,7 @@ class SoftwareInventoriesImpl {
19382
19382
  listBySubscriptionPagingPage(options, settings) {
19383
19383
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
19384
19384
  let result;
19385
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19385
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19386
19386
  if (!continuationToken) {
19387
19387
  result = yield tslib.__await(this._listBySubscription(options));
19388
19388
  let page = result.value || [];
@@ -19634,7 +19634,7 @@ class CustomAssessmentAutomationsImpl {
19634
19634
  return this;
19635
19635
  },
19636
19636
  byPage: (settings) => {
19637
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19637
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19638
19638
  throw new Error("maxPageSize is not supported by this operation.");
19639
19639
  }
19640
19640
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -19644,7 +19644,7 @@ class CustomAssessmentAutomationsImpl {
19644
19644
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
19645
19645
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
19646
19646
  let result;
19647
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19647
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19648
19648
  if (!continuationToken) {
19649
19649
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
19650
19650
  let page = result.value || [];
@@ -19695,7 +19695,7 @@ class CustomAssessmentAutomationsImpl {
19695
19695
  return this;
19696
19696
  },
19697
19697
  byPage: (settings) => {
19698
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19698
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19699
19699
  throw new Error("maxPageSize is not supported by this operation.");
19700
19700
  }
19701
19701
  return this.listBySubscriptionPagingPage(options, settings);
@@ -19705,7 +19705,7 @@ class CustomAssessmentAutomationsImpl {
19705
19705
  listBySubscriptionPagingPage(options, settings) {
19706
19706
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
19707
19707
  let result;
19708
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
19708
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
19709
19709
  if (!continuationToken) {
19710
19710
  result = yield tslib.__await(this._listBySubscription(options));
19711
19711
  let page = result.value || [];
@@ -19992,7 +19992,7 @@ class CustomEntityStoreAssignmentsImpl {
19992
19992
  return this;
19993
19993
  },
19994
19994
  byPage: (settings) => {
19995
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
19995
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
19996
19996
  throw new Error("maxPageSize is not supported by this operation.");
19997
19997
  }
19998
19998
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -20002,7 +20002,7 @@ class CustomEntityStoreAssignmentsImpl {
20002
20002
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
20003
20003
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
20004
20004
  let result;
20005
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
20005
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
20006
20006
  if (!continuationToken) {
20007
20007
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
20008
20008
  let page = result.value || [];
@@ -20053,7 +20053,7 @@ class CustomEntityStoreAssignmentsImpl {
20053
20053
  return this;
20054
20054
  },
20055
20055
  byPage: (settings) => {
20056
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
20056
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
20057
20057
  throw new Error("maxPageSize is not supported by this operation.");
20058
20058
  }
20059
20059
  return this.listBySubscriptionPagingPage(options, settings);
@@ -20063,7 +20063,7 @@ class CustomEntityStoreAssignmentsImpl {
20063
20063
  listBySubscriptionPagingPage(options, settings) {
20064
20064
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
20065
20065
  let result;
20066
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
20066
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
20067
20067
  if (!continuationToken) {
20068
20068
  result = yield tslib.__await(this._listBySubscription(options));
20069
20069
  let page = result.value || [];
@@ -20421,7 +20421,7 @@ class GovernanceAssignmentsImpl {
20421
20421
  return this;
20422
20422
  },
20423
20423
  byPage: (settings) => {
20424
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
20424
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
20425
20425
  throw new Error("maxPageSize is not supported by this operation.");
20426
20426
  }
20427
20427
  return this.listPagingPage(scope, assessmentName, options, settings);
@@ -20431,7 +20431,7 @@ class GovernanceAssignmentsImpl {
20431
20431
  listPagingPage(scope, assessmentName, options, settings) {
20432
20432
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
20433
20433
  let result;
20434
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
20434
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
20435
20435
  if (!continuationToken) {
20436
20436
  result = yield tslib.__await(this._list(scope, assessmentName, options));
20437
20437
  let page = result.value || [];
@@ -20650,7 +20650,7 @@ function createLroSpec(inputs) {
20650
20650
  sendInitialRequest: () => sendOperationFn(args, spec),
20651
20651
  sendPollRequest: (path, options) => {
20652
20652
  const restSpec = tslib.__rest(spec, ["requestBody"]);
20653
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
20653
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
20654
20654
  },
20655
20655
  };
20656
20656
  }
@@ -20690,7 +20690,7 @@ class GovernanceRulesImpl {
20690
20690
  return this;
20691
20691
  },
20692
20692
  byPage: (settings) => {
20693
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
20693
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
20694
20694
  throw new Error("maxPageSize is not supported by this operation.");
20695
20695
  }
20696
20696
  return this.listPagingPage(scope, options, settings);
@@ -20700,7 +20700,7 @@ class GovernanceRulesImpl {
20700
20700
  listPagingPage(scope, options, settings) {
20701
20701
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
20702
20702
  let result;
20703
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
20703
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
20704
20704
  if (!continuationToken) {
20705
20705
  result = yield tslib.__await(this._list(scope, options));
20706
20706
  let page = result.value || [];
@@ -20783,17 +20783,17 @@ class GovernanceRulesImpl {
20783
20783
  * @param options The options parameters.
20784
20784
  */
20785
20785
  beginDelete(scope, ruleId, options) {
20786
- return tslib.__awaiter(this, void 0, void 0, function* () {
20787
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20786
+ return tslib.__awaiter(this, undefined, undefined, function* () {
20787
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20788
20788
  return this.client.sendOperationRequest(args, spec);
20789
20789
  });
20790
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20790
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20791
20791
  var _a;
20792
20792
  let currentRawResponse = undefined;
20793
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
20793
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
20794
20794
  const callback = (rawResponse, flatResponse) => {
20795
20795
  currentRawResponse = rawResponse;
20796
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
20796
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
20797
20797
  };
20798
20798
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
20799
20799
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20812,8 +20812,8 @@ class GovernanceRulesImpl {
20812
20812
  spec: deleteOperationSpec$e,
20813
20813
  });
20814
20814
  const poller = yield coreLro.createHttpPoller(lro, {
20815
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20816
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20815
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20816
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20817
20817
  resourceLocationConfig: "location",
20818
20818
  });
20819
20819
  yield poller.poll();
@@ -20830,7 +20830,7 @@ class GovernanceRulesImpl {
20830
20830
  * @param options The options parameters.
20831
20831
  */
20832
20832
  beginDeleteAndWait(scope, ruleId, options) {
20833
- return tslib.__awaiter(this, void 0, void 0, function* () {
20833
+ return tslib.__awaiter(this, undefined, undefined, function* () {
20834
20834
  const poller = yield this.beginDelete(scope, ruleId, options);
20835
20835
  return poller.pollUntilDone();
20836
20836
  });
@@ -20845,17 +20845,17 @@ class GovernanceRulesImpl {
20845
20845
  * @param options The options parameters.
20846
20846
  */
20847
20847
  beginExecute(scope, ruleId, options) {
20848
- return tslib.__awaiter(this, void 0, void 0, function* () {
20849
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20848
+ return tslib.__awaiter(this, undefined, undefined, function* () {
20849
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20850
20850
  return this.client.sendOperationRequest(args, spec);
20851
20851
  });
20852
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
20852
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
20853
20853
  var _a;
20854
20854
  let currentRawResponse = undefined;
20855
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
20855
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
20856
20856
  const callback = (rawResponse, flatResponse) => {
20857
20857
  currentRawResponse = rawResponse;
20858
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
20858
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
20859
20859
  };
20860
20860
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
20861
20861
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -20874,8 +20874,8 @@ class GovernanceRulesImpl {
20874
20874
  spec: executeOperationSpec,
20875
20875
  });
20876
20876
  const poller = yield coreLro.createHttpPoller(lro, {
20877
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
20878
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
20877
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
20878
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
20879
20879
  resourceLocationConfig: "location",
20880
20880
  });
20881
20881
  yield poller.poll();
@@ -20892,7 +20892,7 @@ class GovernanceRulesImpl {
20892
20892
  * @param options The options parameters.
20893
20893
  */
20894
20894
  beginExecuteAndWait(scope, ruleId, options) {
20895
- return tslib.__awaiter(this, void 0, void 0, function* () {
20895
+ return tslib.__awaiter(this, undefined, undefined, function* () {
20896
20896
  const poller = yield this.beginExecute(scope, ruleId, options);
20897
20897
  return poller.pollUntilDone();
20898
20898
  });
@@ -21084,7 +21084,7 @@ class ApplicationsImpl {
21084
21084
  return this;
21085
21085
  },
21086
21086
  byPage: (settings) => {
21087
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
21087
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
21088
21088
  throw new Error("maxPageSize is not supported by this operation.");
21089
21089
  }
21090
21090
  return this.listPagingPage(options, settings);
@@ -21094,7 +21094,7 @@ class ApplicationsImpl {
21094
21094
  listPagingPage(options, settings) {
21095
21095
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
21096
21096
  let result;
21097
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
21097
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
21098
21098
  if (!continuationToken) {
21099
21099
  result = yield tslib.__await(this._list(options));
21100
21100
  let page = result.value || [];
@@ -21321,7 +21321,7 @@ class SecurityConnectorApplicationsImpl {
21321
21321
  return this;
21322
21322
  },
21323
21323
  byPage: (settings) => {
21324
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
21324
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
21325
21325
  throw new Error("maxPageSize is not supported by this operation.");
21326
21326
  }
21327
21327
  return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
@@ -21331,7 +21331,7 @@ class SecurityConnectorApplicationsImpl {
21331
21331
  listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
21332
21332
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
21333
21333
  let result;
21334
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
21334
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
21335
21335
  if (!continuationToken) {
21336
21336
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
21337
21337
  let page = result.value || [];
@@ -22156,7 +22156,7 @@ class HealthReportsImpl {
22156
22156
  return this;
22157
22157
  },
22158
22158
  byPage: (settings) => {
22159
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
22159
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
22160
22160
  throw new Error("maxPageSize is not supported by this operation.");
22161
22161
  }
22162
22162
  return this.listPagingPage(scope, options, settings);
@@ -22166,7 +22166,7 @@ class HealthReportsImpl {
22166
22166
  listPagingPage(scope, options, settings) {
22167
22167
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
22168
22168
  let result;
22169
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
22169
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
22170
22170
  if (!continuationToken) {
22171
22171
  result = yield tslib.__await(this._list(scope, options));
22172
22172
  let page = result.value || [];
@@ -22319,7 +22319,7 @@ class AzureDevOpsOrgsImpl {
22319
22319
  return this;
22320
22320
  },
22321
22321
  byPage: (settings) => {
22322
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
22322
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
22323
22323
  throw new Error("maxPageSize is not supported by this operation.");
22324
22324
  }
22325
22325
  return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
@@ -22329,7 +22329,7 @@ class AzureDevOpsOrgsImpl {
22329
22329
  listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
22330
22330
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
22331
22331
  let result;
22332
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
22332
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
22333
22333
  if (!continuationToken) {
22334
22334
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
22335
22335
  let page = result.value || [];
@@ -22404,17 +22404,17 @@ class AzureDevOpsOrgsImpl {
22404
22404
  * @param options The options parameters.
22405
22405
  */
22406
22406
  beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
22407
- return tslib.__awaiter(this, void 0, void 0, function* () {
22408
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22407
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22408
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22409
22409
  return this.client.sendOperationRequest(args, spec);
22410
22410
  });
22411
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22411
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22412
22412
  var _a;
22413
22413
  let currentRawResponse = undefined;
22414
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
22414
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
22415
22415
  const callback = (rawResponse, flatResponse) => {
22416
22416
  currentRawResponse = rawResponse;
22417
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
22417
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
22418
22418
  };
22419
22419
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
22420
22420
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -22439,8 +22439,8 @@ class AzureDevOpsOrgsImpl {
22439
22439
  spec: createOrUpdateOperationSpec$a,
22440
22440
  });
22441
22441
  const poller = yield coreLro.createHttpPoller(lro, {
22442
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22443
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
22442
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
22443
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
22444
22444
  resourceLocationConfig: "azure-async-operation",
22445
22445
  });
22446
22446
  yield poller.poll();
@@ -22456,7 +22456,7 @@ class AzureDevOpsOrgsImpl {
22456
22456
  * @param options The options parameters.
22457
22457
  */
22458
22458
  beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
22459
- return tslib.__awaiter(this, void 0, void 0, function* () {
22459
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22460
22460
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options);
22461
22461
  return poller.pollUntilDone();
22462
22462
  });
@@ -22470,17 +22470,17 @@ class AzureDevOpsOrgsImpl {
22470
22470
  * @param options The options parameters.
22471
22471
  */
22472
22472
  beginUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
22473
- return tslib.__awaiter(this, void 0, void 0, function* () {
22474
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22473
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22474
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22475
22475
  return this.client.sendOperationRequest(args, spec);
22476
22476
  });
22477
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22477
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22478
22478
  var _a;
22479
22479
  let currentRawResponse = undefined;
22480
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
22480
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
22481
22481
  const callback = (rawResponse, flatResponse) => {
22482
22482
  currentRawResponse = rawResponse;
22483
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
22483
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
22484
22484
  };
22485
22485
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
22486
22486
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -22505,8 +22505,8 @@ class AzureDevOpsOrgsImpl {
22505
22505
  spec: updateOperationSpec$7,
22506
22506
  });
22507
22507
  const poller = yield coreLro.createHttpPoller(lro, {
22508
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22509
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
22508
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
22509
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
22510
22510
  resourceLocationConfig: "azure-async-operation",
22511
22511
  });
22512
22512
  yield poller.poll();
@@ -22522,7 +22522,7 @@ class AzureDevOpsOrgsImpl {
22522
22522
  * @param options The options parameters.
22523
22523
  */
22524
22524
  beginUpdateAndWait(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
22525
- return tslib.__awaiter(this, void 0, void 0, function* () {
22525
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22526
22526
  const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options);
22527
22527
  return poller.pollUntilDone();
22528
22528
  });
@@ -22726,7 +22726,7 @@ class AzureDevOpsProjectsImpl {
22726
22726
  return this;
22727
22727
  },
22728
22728
  byPage: (settings) => {
22729
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
22729
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
22730
22730
  throw new Error("maxPageSize is not supported by this operation.");
22731
22731
  }
22732
22732
  return this.listPagingPage(resourceGroupName, securityConnectorName, orgName, options, settings);
@@ -22736,7 +22736,7 @@ class AzureDevOpsProjectsImpl {
22736
22736
  listPagingPage(resourceGroupName, securityConnectorName, orgName, options, settings) {
22737
22737
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
22738
22738
  let result;
22739
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
22739
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
22740
22740
  if (!continuationToken) {
22741
22741
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, orgName, options));
22742
22742
  let page = result.value || [];
@@ -22810,17 +22810,17 @@ class AzureDevOpsProjectsImpl {
22810
22810
  * @param options The options parameters.
22811
22811
  */
22812
22812
  beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
22813
- return tslib.__awaiter(this, void 0, void 0, function* () {
22814
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22813
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22814
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22815
22815
  return this.client.sendOperationRequest(args, spec);
22816
22816
  });
22817
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22817
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22818
22818
  var _a;
22819
22819
  let currentRawResponse = undefined;
22820
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
22820
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
22821
22821
  const callback = (rawResponse, flatResponse) => {
22822
22822
  currentRawResponse = rawResponse;
22823
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
22823
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
22824
22824
  };
22825
22825
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
22826
22826
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -22846,8 +22846,8 @@ class AzureDevOpsProjectsImpl {
22846
22846
  spec: createOrUpdateOperationSpec$9,
22847
22847
  });
22848
22848
  const poller = yield coreLro.createHttpPoller(lro, {
22849
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22850
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
22849
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
22850
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
22851
22851
  resourceLocationConfig: "azure-async-operation",
22852
22852
  });
22853
22853
  yield poller.poll();
@@ -22864,7 +22864,7 @@ class AzureDevOpsProjectsImpl {
22864
22864
  * @param options The options parameters.
22865
22865
  */
22866
22866
  beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
22867
- return tslib.__awaiter(this, void 0, void 0, function* () {
22867
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22868
22868
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options);
22869
22869
  return poller.pollUntilDone();
22870
22870
  });
@@ -22879,17 +22879,17 @@ class AzureDevOpsProjectsImpl {
22879
22879
  * @param options The options parameters.
22880
22880
  */
22881
22881
  beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
22882
- return tslib.__awaiter(this, void 0, void 0, function* () {
22883
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22882
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22883
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22884
22884
  return this.client.sendOperationRequest(args, spec);
22885
22885
  });
22886
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
22886
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
22887
22887
  var _a;
22888
22888
  let currentRawResponse = undefined;
22889
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
22889
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
22890
22890
  const callback = (rawResponse, flatResponse) => {
22891
22891
  currentRawResponse = rawResponse;
22892
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
22892
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
22893
22893
  };
22894
22894
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
22895
22895
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -22915,8 +22915,8 @@ class AzureDevOpsProjectsImpl {
22915
22915
  spec: updateOperationSpec$6,
22916
22916
  });
22917
22917
  const poller = yield coreLro.createHttpPoller(lro, {
22918
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
22919
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
22918
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
22919
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
22920
22920
  resourceLocationConfig: "azure-async-operation",
22921
22921
  });
22922
22922
  yield poller.poll();
@@ -22933,7 +22933,7 @@ class AzureDevOpsProjectsImpl {
22933
22933
  * @param options The options parameters.
22934
22934
  */
22935
22935
  beginUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
22936
- return tslib.__awaiter(this, void 0, void 0, function* () {
22936
+ return tslib.__awaiter(this, undefined, undefined, function* () {
22937
22937
  const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options);
22938
22938
  return poller.pollUntilDone();
22939
22939
  });
@@ -23123,7 +23123,7 @@ class AzureDevOpsReposImpl {
23123
23123
  return this;
23124
23124
  },
23125
23125
  byPage: (settings) => {
23126
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
23126
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
23127
23127
  throw new Error("maxPageSize is not supported by this operation.");
23128
23128
  }
23129
23129
  return this.listPagingPage(resourceGroupName, securityConnectorName, orgName, projectName, options, settings);
@@ -23133,7 +23133,7 @@ class AzureDevOpsReposImpl {
23133
23133
  listPagingPage(resourceGroupName, securityConnectorName, orgName, projectName, options, settings) {
23134
23134
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
23135
23135
  let result;
23136
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
23136
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
23137
23137
  if (!continuationToken) {
23138
23138
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, orgName, projectName, options));
23139
23139
  let page = result.value || [];
@@ -23217,17 +23217,17 @@ class AzureDevOpsReposImpl {
23217
23217
  * @param options The options parameters.
23218
23218
  */
23219
23219
  beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
23220
- return tslib.__awaiter(this, void 0, void 0, function* () {
23221
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23220
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23221
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23222
23222
  return this.client.sendOperationRequest(args, spec);
23223
23223
  });
23224
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23224
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23225
23225
  var _a;
23226
23226
  let currentRawResponse = undefined;
23227
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23227
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23228
23228
  const callback = (rawResponse, flatResponse) => {
23229
23229
  currentRawResponse = rawResponse;
23230
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23230
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23231
23231
  };
23232
23232
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23233
23233
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23254,8 +23254,8 @@ class AzureDevOpsReposImpl {
23254
23254
  spec: createOrUpdateOperationSpec$8,
23255
23255
  });
23256
23256
  const poller = yield coreLro.createHttpPoller(lro, {
23257
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23258
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23257
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23258
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23259
23259
  resourceLocationConfig: "azure-async-operation",
23260
23260
  });
23261
23261
  yield poller.poll();
@@ -23273,7 +23273,7 @@ class AzureDevOpsReposImpl {
23273
23273
  * @param options The options parameters.
23274
23274
  */
23275
23275
  beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
23276
- return tslib.__awaiter(this, void 0, void 0, function* () {
23276
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23277
23277
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options);
23278
23278
  return poller.pollUntilDone();
23279
23279
  });
@@ -23289,17 +23289,17 @@ class AzureDevOpsReposImpl {
23289
23289
  * @param options The options parameters.
23290
23290
  */
23291
23291
  beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
23292
- return tslib.__awaiter(this, void 0, void 0, function* () {
23293
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23292
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23293
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23294
23294
  return this.client.sendOperationRequest(args, spec);
23295
23295
  });
23296
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23296
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23297
23297
  var _a;
23298
23298
  let currentRawResponse = undefined;
23299
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23299
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23300
23300
  const callback = (rawResponse, flatResponse) => {
23301
23301
  currentRawResponse = rawResponse;
23302
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23302
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23303
23303
  };
23304
23304
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23305
23305
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23326,8 +23326,8 @@ class AzureDevOpsReposImpl {
23326
23326
  spec: updateOperationSpec$5,
23327
23327
  });
23328
23328
  const poller = yield coreLro.createHttpPoller(lro, {
23329
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23330
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23329
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23330
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23331
23331
  resourceLocationConfig: "azure-async-operation",
23332
23332
  });
23333
23333
  yield poller.poll();
@@ -23345,7 +23345,7 @@ class AzureDevOpsReposImpl {
23345
23345
  * @param options The options parameters.
23346
23346
  */
23347
23347
  beginUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
23348
- return tslib.__awaiter(this, void 0, void 0, function* () {
23348
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23349
23349
  const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options);
23350
23350
  return poller.pollUntilDone();
23351
23351
  });
@@ -23546,7 +23546,7 @@ class DevOpsConfigurationsImpl {
23546
23546
  return this;
23547
23547
  },
23548
23548
  byPage: (settings) => {
23549
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
23549
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
23550
23550
  throw new Error("maxPageSize is not supported by this operation.");
23551
23551
  }
23552
23552
  return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
@@ -23556,7 +23556,7 @@ class DevOpsConfigurationsImpl {
23556
23556
  listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
23557
23557
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
23558
23558
  let result;
23559
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
23559
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
23560
23560
  if (!continuationToken) {
23561
23561
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
23562
23562
  let page = result.value || [];
@@ -23619,17 +23619,17 @@ class DevOpsConfigurationsImpl {
23619
23619
  * @param options The options parameters.
23620
23620
  */
23621
23621
  beginCreateOrUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
23622
- return tslib.__awaiter(this, void 0, void 0, function* () {
23623
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23622
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23623
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23624
23624
  return this.client.sendOperationRequest(args, spec);
23625
23625
  });
23626
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23626
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23627
23627
  var _a;
23628
23628
  let currentRawResponse = undefined;
23629
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23629
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23630
23630
  const callback = (rawResponse, flatResponse) => {
23631
23631
  currentRawResponse = rawResponse;
23632
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23632
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23633
23633
  };
23634
23634
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23635
23635
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23653,8 +23653,8 @@ class DevOpsConfigurationsImpl {
23653
23653
  spec: createOrUpdateOperationSpec$7,
23654
23654
  });
23655
23655
  const poller = yield coreLro.createHttpPoller(lro, {
23656
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23657
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23656
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23657
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23658
23658
  resourceLocationConfig: "azure-async-operation",
23659
23659
  });
23660
23660
  yield poller.poll();
@@ -23669,7 +23669,7 @@ class DevOpsConfigurationsImpl {
23669
23669
  * @param options The options parameters.
23670
23670
  */
23671
23671
  beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
23672
- return tslib.__awaiter(this, void 0, void 0, function* () {
23672
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23673
23673
  const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options);
23674
23674
  return poller.pollUntilDone();
23675
23675
  });
@@ -23682,17 +23682,17 @@ class DevOpsConfigurationsImpl {
23682
23682
  * @param options The options parameters.
23683
23683
  */
23684
23684
  beginUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
23685
- return tslib.__awaiter(this, void 0, void 0, function* () {
23686
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23685
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23686
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23687
23687
  return this.client.sendOperationRequest(args, spec);
23688
23688
  });
23689
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23689
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23690
23690
  var _a;
23691
23691
  let currentRawResponse = undefined;
23692
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23692
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23693
23693
  const callback = (rawResponse, flatResponse) => {
23694
23694
  currentRawResponse = rawResponse;
23695
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23695
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23696
23696
  };
23697
23697
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23698
23698
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23716,8 +23716,8 @@ class DevOpsConfigurationsImpl {
23716
23716
  spec: updateOperationSpec$4,
23717
23717
  });
23718
23718
  const poller = yield coreLro.createHttpPoller(lro, {
23719
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23720
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23719
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23720
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23721
23721
  resourceLocationConfig: "azure-async-operation",
23722
23722
  });
23723
23723
  yield poller.poll();
@@ -23732,7 +23732,7 @@ class DevOpsConfigurationsImpl {
23732
23732
  * @param options The options parameters.
23733
23733
  */
23734
23734
  beginUpdateAndWait(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
23735
- return tslib.__awaiter(this, void 0, void 0, function* () {
23735
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23736
23736
  const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options);
23737
23737
  return poller.pollUntilDone();
23738
23738
  });
@@ -23744,17 +23744,17 @@ class DevOpsConfigurationsImpl {
23744
23744
  * @param options The options parameters.
23745
23745
  */
23746
23746
  beginDelete(resourceGroupName, securityConnectorName, options) {
23747
- return tslib.__awaiter(this, void 0, void 0, function* () {
23748
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23747
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23748
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23749
23749
  return this.client.sendOperationRequest(args, spec);
23750
23750
  });
23751
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
23751
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
23752
23752
  var _a;
23753
23753
  let currentRawResponse = undefined;
23754
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
23754
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
23755
23755
  const callback = (rawResponse, flatResponse) => {
23756
23756
  currentRawResponse = rawResponse;
23757
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
23757
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
23758
23758
  };
23759
23759
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
23760
23760
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -23773,8 +23773,8 @@ class DevOpsConfigurationsImpl {
23773
23773
  spec: deleteOperationSpec$9,
23774
23774
  });
23775
23775
  const poller = yield coreLro.createHttpPoller(lro, {
23776
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
23777
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
23776
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
23777
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
23778
23778
  });
23779
23779
  yield poller.poll();
23780
23780
  return poller;
@@ -23787,7 +23787,7 @@ class DevOpsConfigurationsImpl {
23787
23787
  * @param options The options parameters.
23788
23788
  */
23789
23789
  beginDeleteAndWait(resourceGroupName, securityConnectorName, options) {
23790
- return tslib.__awaiter(this, void 0, void 0, function* () {
23790
+ return tslib.__awaiter(this, undefined, undefined, function* () {
23791
23791
  const poller = yield this.beginDelete(resourceGroupName, securityConnectorName, options);
23792
23792
  return poller.pollUntilDone();
23793
23793
  });
@@ -23988,7 +23988,7 @@ class GitHubOwnersImpl {
23988
23988
  return this;
23989
23989
  },
23990
23990
  byPage: (settings) => {
23991
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
23991
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
23992
23992
  throw new Error("maxPageSize is not supported by this operation.");
23993
23993
  }
23994
23994
  return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
@@ -23998,7 +23998,7 @@ class GitHubOwnersImpl {
23998
23998
  listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
23999
23999
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24000
24000
  let result;
24001
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24001
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24002
24002
  if (!continuationToken) {
24003
24003
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
24004
24004
  let page = result.value || [];
@@ -24196,7 +24196,7 @@ class GitHubReposImpl {
24196
24196
  return this;
24197
24197
  },
24198
24198
  byPage: (settings) => {
24199
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24199
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24200
24200
  throw new Error("maxPageSize is not supported by this operation.");
24201
24201
  }
24202
24202
  return this.listPagingPage(resourceGroupName, securityConnectorName, ownerName, options, settings);
@@ -24206,7 +24206,7 @@ class GitHubReposImpl {
24206
24206
  listPagingPage(resourceGroupName, securityConnectorName, ownerName, options, settings) {
24207
24207
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24208
24208
  let result;
24209
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24209
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24210
24210
  if (!continuationToken) {
24211
24211
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, ownerName, options));
24212
24212
  let page = result.value || [];
@@ -24391,7 +24391,7 @@ class GitLabGroupsImpl {
24391
24391
  return this;
24392
24392
  },
24393
24393
  byPage: (settings) => {
24394
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24394
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24395
24395
  throw new Error("maxPageSize is not supported by this operation.");
24396
24396
  }
24397
24397
  return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
@@ -24401,7 +24401,7 @@ class GitLabGroupsImpl {
24401
24401
  listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
24402
24402
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24403
24403
  let result;
24404
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24404
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24405
24405
  if (!continuationToken) {
24406
24406
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
24407
24407
  let page = result.value || [];
@@ -24652,7 +24652,7 @@ class GitLabProjectsImpl {
24652
24652
  return this;
24653
24653
  },
24654
24654
  byPage: (settings) => {
24655
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24655
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24656
24656
  throw new Error("maxPageSize is not supported by this operation.");
24657
24657
  }
24658
24658
  return this.listPagingPage(resourceGroupName, securityConnectorName, groupFQName, options, settings);
@@ -24662,7 +24662,7 @@ class GitLabProjectsImpl {
24662
24662
  listPagingPage(resourceGroupName, securityConnectorName, groupFQName, options, settings) {
24663
24663
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24664
24664
  let result;
24665
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24665
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24666
24666
  if (!continuationToken) {
24667
24667
  result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, groupFQName, options));
24668
24668
  let page = result.value || [];
@@ -24899,7 +24899,7 @@ class SecurityConnectorsImpl {
24899
24899
  return this;
24900
24900
  },
24901
24901
  byPage: (settings) => {
24902
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24902
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24903
24903
  throw new Error("maxPageSize is not supported by this operation.");
24904
24904
  }
24905
24905
  return this.listPagingPage(options, settings);
@@ -24909,7 +24909,7 @@ class SecurityConnectorsImpl {
24909
24909
  listPagingPage(options, settings) {
24910
24910
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
24911
24911
  let result;
24912
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24912
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24913
24913
  if (!continuationToken) {
24914
24914
  result = yield tslib.__await(this._list(options));
24915
24915
  let page = result.value || [];
@@ -24963,7 +24963,7 @@ class SecurityConnectorsImpl {
24963
24963
  return this;
24964
24964
  },
24965
24965
  byPage: (settings) => {
24966
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
24966
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
24967
24967
  throw new Error("maxPageSize is not supported by this operation.");
24968
24968
  }
24969
24969
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -24973,7 +24973,7 @@ class SecurityConnectorsImpl {
24973
24973
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
24974
24974
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
24975
24975
  let result;
24976
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
24976
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
24977
24977
  if (!continuationToken) {
24978
24978
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
24979
24979
  let page = result.value || [];
@@ -25292,7 +25292,7 @@ class ComplianceResultsImpl {
25292
25292
  return this;
25293
25293
  },
25294
25294
  byPage: (settings) => {
25295
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
25295
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
25296
25296
  throw new Error("maxPageSize is not supported by this operation.");
25297
25297
  }
25298
25298
  return this.listPagingPage(scope, options, settings);
@@ -25302,7 +25302,7 @@ class ComplianceResultsImpl {
25302
25302
  listPagingPage(scope, options, settings) {
25303
25303
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
25304
25304
  let result;
25305
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
25305
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
25306
25306
  if (!continuationToken) {
25307
25307
  result = yield tslib.__await(this._list(scope, options));
25308
25308
  let page = result.value || [];
@@ -25535,7 +25535,7 @@ class DeviceSecurityGroupsImpl {
25535
25535
  return this;
25536
25536
  },
25537
25537
  byPage: (settings) => {
25538
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
25538
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
25539
25539
  throw new Error("maxPageSize is not supported by this operation.");
25540
25540
  }
25541
25541
  return this.listPagingPage(resourceId, options, settings);
@@ -25545,7 +25545,7 @@ class DeviceSecurityGroupsImpl {
25545
25545
  listPagingPage(resourceId, options, settings) {
25546
25546
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
25547
25547
  let result;
25548
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
25548
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
25549
25549
  if (!continuationToken) {
25550
25550
  result = yield tslib.__await(this._list(resourceId, options));
25551
25551
  let page = result.value || [];
@@ -25845,7 +25845,7 @@ class IotSecuritySolutionsAnalyticsAggregatedAlertImpl {
25845
25845
  return this;
25846
25846
  },
25847
25847
  byPage: (settings) => {
25848
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
25848
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
25849
25849
  throw new Error("maxPageSize is not supported by this operation.");
25850
25850
  }
25851
25851
  return this.listPagingPage(resourceGroupName, solutionName, options, settings);
@@ -25855,7 +25855,7 @@ class IotSecuritySolutionsAnalyticsAggregatedAlertImpl {
25855
25855
  listPagingPage(resourceGroupName, solutionName, options, settings) {
25856
25856
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
25857
25857
  let result;
25858
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
25858
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
25859
25859
  if (!continuationToken) {
25860
25860
  result = yield tslib.__await(this._list(resourceGroupName, solutionName, options));
25861
25861
  let page = result.value || [];
@@ -26059,7 +26059,7 @@ class IotSecuritySolutionsAnalyticsRecommendationImpl {
26059
26059
  return this;
26060
26060
  },
26061
26061
  byPage: (settings) => {
26062
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
26062
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
26063
26063
  throw new Error("maxPageSize is not supported by this operation.");
26064
26064
  }
26065
26065
  return this.listPagingPage(resourceGroupName, solutionName, options, settings);
@@ -26069,7 +26069,7 @@ class IotSecuritySolutionsAnalyticsRecommendationImpl {
26069
26069
  listPagingPage(resourceGroupName, solutionName, options, settings) {
26070
26070
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
26071
26071
  let result;
26072
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
26072
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
26073
26073
  if (!continuationToken) {
26074
26074
  result = yield tslib.__await(this._list(resourceGroupName, solutionName, options));
26075
26075
  let page = result.value || [];
@@ -26244,7 +26244,7 @@ class IotSecuritySolutionImpl {
26244
26244
  return this;
26245
26245
  },
26246
26246
  byPage: (settings) => {
26247
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
26247
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
26248
26248
  throw new Error("maxPageSize is not supported by this operation.");
26249
26249
  }
26250
26250
  return this.listBySubscriptionPagingPage(options, settings);
@@ -26254,7 +26254,7 @@ class IotSecuritySolutionImpl {
26254
26254
  listBySubscriptionPagingPage(options, settings) {
26255
26255
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
26256
26256
  let result;
26257
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
26257
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
26258
26258
  if (!continuationToken) {
26259
26259
  result = yield tslib.__await(this._listBySubscription(options));
26260
26260
  let page = result.value || [];
@@ -26307,7 +26307,7 @@ class IotSecuritySolutionImpl {
26307
26307
  return this;
26308
26308
  },
26309
26309
  byPage: (settings) => {
26310
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
26310
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
26311
26311
  throw new Error("maxPageSize is not supported by this operation.");
26312
26312
  }
26313
26313
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -26317,7 +26317,7 @@ class IotSecuritySolutionImpl {
26317
26317
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
26318
26318
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
26319
26319
  let result;
26320
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
26320
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
26321
26321
  if (!continuationToken) {
26322
26322
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
26323
26323
  let page = result.value || [];
@@ -26641,7 +26641,7 @@ class AdaptiveNetworkHardeningsImpl {
26641
26641
  return this;
26642
26642
  },
26643
26643
  byPage: (settings) => {
26644
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
26644
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
26645
26645
  throw new Error("maxPageSize is not supported by this operation.");
26646
26646
  }
26647
26647
  return this.listByExtendedResourcePagingPage(resourceGroupName, resourceNamespace, resourceType, resourceName, options, settings);
@@ -26651,7 +26651,7 @@ class AdaptiveNetworkHardeningsImpl {
26651
26651
  listByExtendedResourcePagingPage(resourceGroupName, resourceNamespace, resourceType, resourceName, options, settings) {
26652
26652
  return tslib.__asyncGenerator(this, arguments, function* listByExtendedResourcePagingPage_1() {
26653
26653
  let result;
26654
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
26654
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
26655
26655
  if (!continuationToken) {
26656
26656
  result = yield tslib.__await(this._listByExtendedResource(resourceGroupName, resourceNamespace, resourceType, resourceName, options));
26657
26657
  let page = result.value || [];
@@ -26738,17 +26738,17 @@ class AdaptiveNetworkHardeningsImpl {
26738
26738
  * @param options The options parameters.
26739
26739
  */
26740
26740
  beginEnforce(resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body, options) {
26741
- return tslib.__awaiter(this, void 0, void 0, function* () {
26742
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26741
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26742
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26743
26743
  return this.client.sendOperationRequest(args, spec);
26744
26744
  });
26745
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
26745
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
26746
26746
  var _a;
26747
26747
  let currentRawResponse = undefined;
26748
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
26748
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
26749
26749
  const callback = (rawResponse, flatResponse) => {
26750
26750
  currentRawResponse = rawResponse;
26751
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
26751
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
26752
26752
  };
26753
26753
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
26754
26754
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -26775,8 +26775,8 @@ class AdaptiveNetworkHardeningsImpl {
26775
26775
  spec: enforceOperationSpec,
26776
26776
  });
26777
26777
  const poller = yield coreLro.createHttpPoller(lro, {
26778
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26779
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26778
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
26779
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
26780
26780
  });
26781
26781
  yield poller.poll();
26782
26782
  return poller;
@@ -26794,7 +26794,7 @@ class AdaptiveNetworkHardeningsImpl {
26794
26794
  * @param options The options parameters.
26795
26795
  */
26796
26796
  beginEnforceAndWait(resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body, options) {
26797
- return tslib.__awaiter(this, void 0, void 0, function* () {
26797
+ return tslib.__awaiter(this, undefined, undefined, function* () {
26798
26798
  const poller = yield this.beginEnforce(resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body, options);
26799
26799
  return poller.pollUntilDone();
26800
26800
  });
@@ -26952,7 +26952,7 @@ class AllowedConnectionsImpl {
26952
26952
  return this;
26953
26953
  },
26954
26954
  byPage: (settings) => {
26955
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
26955
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
26956
26956
  throw new Error("maxPageSize is not supported by this operation.");
26957
26957
  }
26958
26958
  return this.listPagingPage(options, settings);
@@ -26962,7 +26962,7 @@ class AllowedConnectionsImpl {
26962
26962
  listPagingPage(options, settings) {
26963
26963
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
26964
26964
  let result;
26965
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
26965
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
26966
26966
  if (!continuationToken) {
26967
26967
  result = yield tslib.__await(this._list(options));
26968
26968
  let page = result.value || [];
@@ -27015,7 +27015,7 @@ class AllowedConnectionsImpl {
27015
27015
  return this;
27016
27016
  },
27017
27017
  byPage: (settings) => {
27018
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27018
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27019
27019
  throw new Error("maxPageSize is not supported by this operation.");
27020
27020
  }
27021
27021
  return this.listByHomeRegionPagingPage(ascLocation, options, settings);
@@ -27025,7 +27025,7 @@ class AllowedConnectionsImpl {
27025
27025
  listByHomeRegionPagingPage(ascLocation, options, settings) {
27026
27026
  return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
27027
27027
  let result;
27028
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27028
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27029
27029
  if (!continuationToken) {
27030
27030
  result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
27031
27031
  let page = result.value || [];
@@ -27384,7 +27384,7 @@ class DiscoveredSecuritySolutionsImpl {
27384
27384
  return this;
27385
27385
  },
27386
27386
  byPage: (settings) => {
27387
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27387
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27388
27388
  throw new Error("maxPageSize is not supported by this operation.");
27389
27389
  }
27390
27390
  return this.listPagingPage(options, settings);
@@ -27394,7 +27394,7 @@ class DiscoveredSecuritySolutionsImpl {
27394
27394
  listPagingPage(options, settings) {
27395
27395
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
27396
27396
  let result;
27397
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27397
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27398
27398
  if (!continuationToken) {
27399
27399
  result = yield tslib.__await(this._list(options));
27400
27400
  let page = result.value || [];
@@ -27447,7 +27447,7 @@ class DiscoveredSecuritySolutionsImpl {
27447
27447
  return this;
27448
27448
  },
27449
27449
  byPage: (settings) => {
27450
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27450
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27451
27451
  throw new Error("maxPageSize is not supported by this operation.");
27452
27452
  }
27453
27453
  return this.listByHomeRegionPagingPage(ascLocation, options, settings);
@@ -27457,7 +27457,7 @@ class DiscoveredSecuritySolutionsImpl {
27457
27457
  listByHomeRegionPagingPage(ascLocation, options, settings) {
27458
27458
  return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
27459
27459
  let result;
27460
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27460
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27461
27461
  if (!continuationToken) {
27462
27462
  result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
27463
27463
  let page = result.value || [];
@@ -27677,7 +27677,7 @@ class ExternalSecuritySolutionsImpl {
27677
27677
  return this;
27678
27678
  },
27679
27679
  byPage: (settings) => {
27680
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27680
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27681
27681
  throw new Error("maxPageSize is not supported by this operation.");
27682
27682
  }
27683
27683
  return this.listPagingPage(options, settings);
@@ -27687,7 +27687,7 @@ class ExternalSecuritySolutionsImpl {
27687
27687
  listPagingPage(options, settings) {
27688
27688
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
27689
27689
  let result;
27690
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27690
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27691
27691
  if (!continuationToken) {
27692
27692
  result = yield tslib.__await(this._list(options));
27693
27693
  let page = result.value || [];
@@ -27740,7 +27740,7 @@ class ExternalSecuritySolutionsImpl {
27740
27740
  return this;
27741
27741
  },
27742
27742
  byPage: (settings) => {
27743
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27743
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27744
27744
  throw new Error("maxPageSize is not supported by this operation.");
27745
27745
  }
27746
27746
  return this.listByHomeRegionPagingPage(ascLocation, options, settings);
@@ -27750,7 +27750,7 @@ class ExternalSecuritySolutionsImpl {
27750
27750
  listByHomeRegionPagingPage(ascLocation, options, settings) {
27751
27751
  return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
27752
27752
  let result;
27753
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27753
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27754
27754
  if (!continuationToken) {
27755
27755
  result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
27756
27756
  let page = result.value || [];
@@ -27970,7 +27970,7 @@ class JitNetworkAccessPoliciesImpl {
27970
27970
  return this;
27971
27971
  },
27972
27972
  byPage: (settings) => {
27973
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
27973
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
27974
27974
  throw new Error("maxPageSize is not supported by this operation.");
27975
27975
  }
27976
27976
  return this.listPagingPage(options, settings);
@@ -27980,7 +27980,7 @@ class JitNetworkAccessPoliciesImpl {
27980
27980
  listPagingPage(options, settings) {
27981
27981
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
27982
27982
  let result;
27983
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
27983
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
27984
27984
  if (!continuationToken) {
27985
27985
  result = yield tslib.__await(this._list(options));
27986
27986
  let page = result.value || [];
@@ -28033,7 +28033,7 @@ class JitNetworkAccessPoliciesImpl {
28033
28033
  return this;
28034
28034
  },
28035
28035
  byPage: (settings) => {
28036
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
28036
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
28037
28037
  throw new Error("maxPageSize is not supported by this operation.");
28038
28038
  }
28039
28039
  return this.listByRegionPagingPage(ascLocation, options, settings);
@@ -28043,7 +28043,7 @@ class JitNetworkAccessPoliciesImpl {
28043
28043
  listByRegionPagingPage(ascLocation, options, settings) {
28044
28044
  return tslib.__asyncGenerator(this, arguments, function* listByRegionPagingPage_1() {
28045
28045
  let result;
28046
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
28046
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
28047
28047
  if (!continuationToken) {
28048
28048
  result = yield tslib.__await(this._listByRegion(ascLocation, options));
28049
28049
  let page = result.value || [];
@@ -28096,7 +28096,7 @@ class JitNetworkAccessPoliciesImpl {
28096
28096
  return this;
28097
28097
  },
28098
28098
  byPage: (settings) => {
28099
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
28099
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
28100
28100
  throw new Error("maxPageSize is not supported by this operation.");
28101
28101
  }
28102
28102
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -28106,7 +28106,7 @@ class JitNetworkAccessPoliciesImpl {
28106
28106
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
28107
28107
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
28108
28108
  let result;
28109
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
28109
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
28110
28110
  if (!continuationToken) {
28111
28111
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
28112
28112
  let page = result.value || [];
@@ -28161,7 +28161,7 @@ class JitNetworkAccessPoliciesImpl {
28161
28161
  return this;
28162
28162
  },
28163
28163
  byPage: (settings) => {
28164
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
28164
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
28165
28165
  throw new Error("maxPageSize is not supported by this operation.");
28166
28166
  }
28167
28167
  return this.listByResourceGroupAndRegionPagingPage(resourceGroupName, ascLocation, options, settings);
@@ -28171,7 +28171,7 @@ class JitNetworkAccessPoliciesImpl {
28171
28171
  listByResourceGroupAndRegionPagingPage(resourceGroupName, ascLocation, options, settings) {
28172
28172
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupAndRegionPagingPage_1() {
28173
28173
  let result;
28174
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
28174
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
28175
28175
  if (!continuationToken) {
28176
28176
  result = yield tslib.__await(this._listByResourceGroupAndRegion(resourceGroupName, ascLocation, options));
28177
28177
  let page = result.value || [];
@@ -28631,7 +28631,7 @@ class SecureScoresImpl {
28631
28631
  return this;
28632
28632
  },
28633
28633
  byPage: (settings) => {
28634
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
28634
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
28635
28635
  throw new Error("maxPageSize is not supported by this operation.");
28636
28636
  }
28637
28637
  return this.listPagingPage(options, settings);
@@ -28641,7 +28641,7 @@ class SecureScoresImpl {
28641
28641
  listPagingPage(options, settings) {
28642
28642
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
28643
28643
  let result;
28644
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
28644
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
28645
28645
  if (!continuationToken) {
28646
28646
  result = yield tslib.__await(this._list(options));
28647
28647
  let page = result.value || [];
@@ -28795,7 +28795,7 @@ class SecureScoreControlsImpl {
28795
28795
  return this;
28796
28796
  },
28797
28797
  byPage: (settings) => {
28798
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
28798
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
28799
28799
  throw new Error("maxPageSize is not supported by this operation.");
28800
28800
  }
28801
28801
  return this.listBySecureScorePagingPage(secureScoreName, options, settings);
@@ -28805,7 +28805,7 @@ class SecureScoreControlsImpl {
28805
28805
  listBySecureScorePagingPage(secureScoreName, options, settings) {
28806
28806
  return tslib.__asyncGenerator(this, arguments, function* listBySecureScorePagingPage_1() {
28807
28807
  let result;
28808
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
28808
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
28809
28809
  if (!continuationToken) {
28810
28810
  result = yield tslib.__await(this._listBySecureScore(secureScoreName, options));
28811
28811
  let page = result.value || [];
@@ -28856,7 +28856,7 @@ class SecureScoreControlsImpl {
28856
28856
  return this;
28857
28857
  },
28858
28858
  byPage: (settings) => {
28859
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
28859
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
28860
28860
  throw new Error("maxPageSize is not supported by this operation.");
28861
28861
  }
28862
28862
  return this.listPagingPage(options, settings);
@@ -28866,7 +28866,7 @@ class SecureScoreControlsImpl {
28866
28866
  listPagingPage(options, settings) {
28867
28867
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
28868
28868
  let result;
28869
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
28869
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
28870
28870
  if (!continuationToken) {
28871
28871
  result = yield tslib.__await(this._list(options));
28872
28872
  let page = result.value || [];
@@ -29047,7 +29047,7 @@ class SecureScoreControlDefinitionsImpl {
29047
29047
  return this;
29048
29048
  },
29049
29049
  byPage: (settings) => {
29050
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29050
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29051
29051
  throw new Error("maxPageSize is not supported by this operation.");
29052
29052
  }
29053
29053
  return this.listPagingPage(options, settings);
@@ -29057,7 +29057,7 @@ class SecureScoreControlDefinitionsImpl {
29057
29057
  listPagingPage(options, settings) {
29058
29058
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
29059
29059
  let result;
29060
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29060
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29061
29061
  if (!continuationToken) {
29062
29062
  result = yield tslib.__await(this._list(options));
29063
29063
  let page = result.value || [];
@@ -29109,7 +29109,7 @@ class SecureScoreControlDefinitionsImpl {
29109
29109
  return this;
29110
29110
  },
29111
29111
  byPage: (settings) => {
29112
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29112
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29113
29113
  throw new Error("maxPageSize is not supported by this operation.");
29114
29114
  }
29115
29115
  return this.listBySubscriptionPagingPage(options, settings);
@@ -29119,7 +29119,7 @@ class SecureScoreControlDefinitionsImpl {
29119
29119
  listBySubscriptionPagingPage(options, settings) {
29120
29120
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
29121
29121
  let result;
29122
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29122
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29123
29123
  if (!continuationToken) {
29124
29124
  result = yield tslib.__await(this._listBySubscription(options));
29125
29125
  let page = result.value || [];
@@ -29288,7 +29288,7 @@ class SecuritySolutionsImpl {
29288
29288
  return this;
29289
29289
  },
29290
29290
  byPage: (settings) => {
29291
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29291
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29292
29292
  throw new Error("maxPageSize is not supported by this operation.");
29293
29293
  }
29294
29294
  return this.listPagingPage(options, settings);
@@ -29298,7 +29298,7 @@ class SecuritySolutionsImpl {
29298
29298
  listPagingPage(options, settings) {
29299
29299
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
29300
29300
  let result;
29301
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29301
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29302
29302
  if (!continuationToken) {
29303
29303
  result = yield tslib.__await(this._list(options));
29304
29304
  let page = result.value || [];
@@ -29576,17 +29576,17 @@ class ServerVulnerabilityAssessmentOperationsImpl {
29576
29576
  * @param options The options parameters.
29577
29577
  */
29578
29578
  beginDelete(resourceGroupName, resourceNamespace, resourceType, resourceName, options) {
29579
- return tslib.__awaiter(this, void 0, void 0, function* () {
29580
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29579
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29580
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
29581
29581
  return this.client.sendOperationRequest(args, spec);
29582
29582
  });
29583
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
29583
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
29584
29584
  var _a;
29585
29585
  let currentRawResponse = undefined;
29586
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
29586
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
29587
29587
  const callback = (rawResponse, flatResponse) => {
29588
29588
  currentRawResponse = rawResponse;
29589
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
29589
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
29590
29590
  };
29591
29591
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
29592
29592
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -29611,8 +29611,8 @@ class ServerVulnerabilityAssessmentOperationsImpl {
29611
29611
  spec: deleteOperationSpec$3,
29612
29612
  });
29613
29613
  const poller = yield coreLro.createHttpPoller(lro, {
29614
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
29615
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
29614
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
29615
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
29616
29616
  resourceLocationConfig: "location",
29617
29617
  });
29618
29618
  yield poller.poll();
@@ -29629,7 +29629,7 @@ class ServerVulnerabilityAssessmentOperationsImpl {
29629
29629
  * @param options The options parameters.
29630
29630
  */
29631
29631
  beginDeleteAndWait(resourceGroupName, resourceNamespace, resourceType, resourceName, options) {
29632
- return tslib.__awaiter(this, void 0, void 0, function* () {
29632
+ return tslib.__awaiter(this, undefined, undefined, function* () {
29633
29633
  const poller = yield this.beginDelete(resourceGroupName, resourceNamespace, resourceType, resourceName, options);
29634
29634
  return poller.pollUntilDone();
29635
29635
  });
@@ -29765,7 +29765,7 @@ class TopologyImpl {
29765
29765
  return this;
29766
29766
  },
29767
29767
  byPage: (settings) => {
29768
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29768
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29769
29769
  throw new Error("maxPageSize is not supported by this operation.");
29770
29770
  }
29771
29771
  return this.listPagingPage(options, settings);
@@ -29775,7 +29775,7 @@ class TopologyImpl {
29775
29775
  listPagingPage(options, settings) {
29776
29776
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
29777
29777
  let result;
29778
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29778
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29779
29779
  if (!continuationToken) {
29780
29780
  result = yield tslib.__await(this._list(options));
29781
29781
  let page = result.value || [];
@@ -29828,7 +29828,7 @@ class TopologyImpl {
29828
29828
  return this;
29829
29829
  },
29830
29830
  byPage: (settings) => {
29831
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
29831
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
29832
29832
  throw new Error("maxPageSize is not supported by this operation.");
29833
29833
  }
29834
29834
  return this.listByHomeRegionPagingPage(ascLocation, options, settings);
@@ -29838,7 +29838,7 @@ class TopologyImpl {
29838
29838
  listByHomeRegionPagingPage(ascLocation, options, settings) {
29839
29839
  return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
29840
29840
  let result;
29841
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
29841
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
29842
29842
  if (!continuationToken) {
29843
29843
  result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
29844
29844
  let page = result.value || [];
@@ -30053,7 +30053,7 @@ class AssessmentsMetadataImpl {
30053
30053
  return this;
30054
30054
  },
30055
30055
  byPage: (settings) => {
30056
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30056
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30057
30057
  throw new Error("maxPageSize is not supported by this operation.");
30058
30058
  }
30059
30059
  return this.listPagingPage(options, settings);
@@ -30063,7 +30063,7 @@ class AssessmentsMetadataImpl {
30063
30063
  listPagingPage(options, settings) {
30064
30064
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
30065
30065
  let result;
30066
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30066
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30067
30067
  if (!continuationToken) {
30068
30068
  result = yield tslib.__await(this._list(options));
30069
30069
  let page = result.value || [];
@@ -30114,7 +30114,7 @@ class AssessmentsMetadataImpl {
30114
30114
  return this;
30115
30115
  },
30116
30116
  byPage: (settings) => {
30117
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30117
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30118
30118
  throw new Error("maxPageSize is not supported by this operation.");
30119
30119
  }
30120
30120
  return this.listBySubscriptionPagingPage(options, settings);
@@ -30124,7 +30124,7 @@ class AssessmentsMetadataImpl {
30124
30124
  listBySubscriptionPagingPage(options, settings) {
30125
30125
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
30126
30126
  let result;
30127
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30127
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30128
30128
  if (!continuationToken) {
30129
30129
  result = yield tslib.__await(this._listBySubscription(options));
30130
30130
  let page = result.value || [];
@@ -30405,7 +30405,7 @@ class AssessmentsImpl {
30405
30405
  return this;
30406
30406
  },
30407
30407
  byPage: (settings) => {
30408
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30408
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30409
30409
  throw new Error("maxPageSize is not supported by this operation.");
30410
30410
  }
30411
30411
  return this.listPagingPage(scope, options, settings);
@@ -30415,7 +30415,7 @@ class AssessmentsImpl {
30415
30415
  listPagingPage(scope, options, settings) {
30416
30416
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
30417
30417
  let result;
30418
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30418
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30419
30419
  if (!continuationToken) {
30420
30420
  result = yield tslib.__await(this._list(scope, options));
30421
30421
  let page = result.value || [];
@@ -30633,7 +30633,7 @@ class AlertsImpl {
30633
30633
  return this;
30634
30634
  },
30635
30635
  byPage: (settings) => {
30636
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30636
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30637
30637
  throw new Error("maxPageSize is not supported by this operation.");
30638
30638
  }
30639
30639
  return this.listPagingPage(options, settings);
@@ -30643,7 +30643,7 @@ class AlertsImpl {
30643
30643
  listPagingPage(options, settings) {
30644
30644
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
30645
30645
  let result;
30646
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30646
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30647
30647
  if (!continuationToken) {
30648
30648
  result = yield tslib.__await(this._list(options));
30649
30649
  let page = result.value || [];
@@ -30696,7 +30696,7 @@ class AlertsImpl {
30696
30696
  return this;
30697
30697
  },
30698
30698
  byPage: (settings) => {
30699
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30699
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30700
30700
  throw new Error("maxPageSize is not supported by this operation.");
30701
30701
  }
30702
30702
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -30706,7 +30706,7 @@ class AlertsImpl {
30706
30706
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
30707
30707
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
30708
30708
  let result;
30709
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30709
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30710
30710
  if (!continuationToken) {
30711
30711
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
30712
30712
  let page = result.value || [];
@@ -30759,7 +30759,7 @@ class AlertsImpl {
30759
30759
  return this;
30760
30760
  },
30761
30761
  byPage: (settings) => {
30762
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30762
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30763
30763
  throw new Error("maxPageSize is not supported by this operation.");
30764
30764
  }
30765
30765
  return this.listSubscriptionLevelByRegionPagingPage(ascLocation, options, settings);
@@ -30769,7 +30769,7 @@ class AlertsImpl {
30769
30769
  listSubscriptionLevelByRegionPagingPage(ascLocation, options, settings) {
30770
30770
  return tslib.__asyncGenerator(this, arguments, function* listSubscriptionLevelByRegionPagingPage_1() {
30771
30771
  let result;
30772
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30772
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30773
30773
  if (!continuationToken) {
30774
30774
  result = yield tslib.__await(this._listSubscriptionLevelByRegion(ascLocation, options));
30775
30775
  let page = result.value || [];
@@ -30825,7 +30825,7 @@ class AlertsImpl {
30825
30825
  return this;
30826
30826
  },
30827
30827
  byPage: (settings) => {
30828
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
30828
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
30829
30829
  throw new Error("maxPageSize is not supported by this operation.");
30830
30830
  }
30831
30831
  return this.listResourceGroupLevelByRegionPagingPage(ascLocation, resourceGroupName, options, settings);
@@ -30835,7 +30835,7 @@ class AlertsImpl {
30835
30835
  listResourceGroupLevelByRegionPagingPage(ascLocation, resourceGroupName, options, settings) {
30836
30836
  return tslib.__asyncGenerator(this, arguments, function* listResourceGroupLevelByRegionPagingPage_1() {
30837
30837
  let result;
30838
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
30838
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
30839
30839
  if (!continuationToken) {
30840
30840
  result = yield tslib.__await(this._listResourceGroupLevelByRegion(ascLocation, resourceGroupName, options));
30841
30841
  let page = result.value || [];
@@ -31027,17 +31027,17 @@ class AlertsImpl {
31027
31027
  * @param options The options parameters.
31028
31028
  */
31029
31029
  beginSimulate(ascLocation, alertSimulatorRequestBody, options) {
31030
- return tslib.__awaiter(this, void 0, void 0, function* () {
31031
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31030
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31031
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31032
31032
  return this.client.sendOperationRequest(args, spec);
31033
31033
  });
31034
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
31034
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
31035
31035
  var _a;
31036
31036
  let currentRawResponse = undefined;
31037
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
31037
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
31038
31038
  const callback = (rawResponse, flatResponse) => {
31039
31039
  currentRawResponse = rawResponse;
31040
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
31040
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
31041
31041
  };
31042
31042
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
31043
31043
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -31056,8 +31056,8 @@ class AlertsImpl {
31056
31056
  spec: simulateOperationSpec,
31057
31057
  });
31058
31058
  const poller = yield coreLro.createHttpPoller(lro, {
31059
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
31060
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
31059
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
31060
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
31061
31061
  resourceLocationConfig: "original-uri",
31062
31062
  });
31063
31063
  yield poller.poll();
@@ -31072,7 +31072,7 @@ class AlertsImpl {
31072
31072
  * @param options The options parameters.
31073
31073
  */
31074
31074
  beginSimulateAndWait(ascLocation, alertSimulatorRequestBody, options) {
31075
- return tslib.__awaiter(this, void 0, void 0, function* () {
31075
+ return tslib.__awaiter(this, undefined, undefined, function* () {
31076
31076
  const poller = yield this.beginSimulate(ascLocation, alertSimulatorRequestBody, options);
31077
31077
  return poller.pollUntilDone();
31078
31078
  });
@@ -31533,7 +31533,7 @@ class SettingsImpl {
31533
31533
  return this;
31534
31534
  },
31535
31535
  byPage: (settings) => {
31536
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31536
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31537
31537
  throw new Error("maxPageSize is not supported by this operation.");
31538
31538
  }
31539
31539
  return this.listPagingPage(options, settings);
@@ -31543,7 +31543,7 @@ class SettingsImpl {
31543
31543
  listPagingPage(options, settings) {
31544
31544
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
31545
31545
  let result;
31546
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31546
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31547
31547
  if (!continuationToken) {
31548
31548
  result = yield tslib.__await(this._list(options));
31549
31549
  let page = result.value || [];
@@ -31724,7 +31724,7 @@ class ServerVulnerabilityAssessmentsSettingsImpl {
31724
31724
  return this;
31725
31725
  },
31726
31726
  byPage: (settings) => {
31727
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31727
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31728
31728
  throw new Error("maxPageSize is not supported by this operation.");
31729
31729
  }
31730
31730
  return this.listBySubscriptionPagingPage(options, settings);
@@ -31734,7 +31734,7 @@ class ServerVulnerabilityAssessmentsSettingsImpl {
31734
31734
  listBySubscriptionPagingPage(options, settings) {
31735
31735
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
31736
31736
  let result;
31737
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31737
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31738
31738
  if (!continuationToken) {
31739
31739
  result = yield tslib.__await(this._listBySubscription(options));
31740
31740
  let page = result.value || [];
@@ -31949,7 +31949,7 @@ class APICollectionsImpl {
31949
31949
  return this;
31950
31950
  },
31951
31951
  byPage: (settings) => {
31952
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
31952
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
31953
31953
  throw new Error("maxPageSize is not supported by this operation.");
31954
31954
  }
31955
31955
  return this.listBySubscriptionPagingPage(options, settings);
@@ -31959,7 +31959,7 @@ class APICollectionsImpl {
31959
31959
  listBySubscriptionPagingPage(options, settings) {
31960
31960
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
31961
31961
  let result;
31962
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
31962
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
31963
31963
  if (!continuationToken) {
31964
31964
  result = yield tslib.__await(this._listBySubscription(options));
31965
31965
  let page = result.value || [];
@@ -32012,7 +32012,7 @@ class APICollectionsImpl {
32012
32012
  return this;
32013
32013
  },
32014
32014
  byPage: (settings) => {
32015
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32015
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32016
32016
  throw new Error("maxPageSize is not supported by this operation.");
32017
32017
  }
32018
32018
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
@@ -32022,7 +32022,7 @@ class APICollectionsImpl {
32022
32022
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
32023
32023
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
32024
32024
  let result;
32025
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32025
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32026
32026
  if (!continuationToken) {
32027
32027
  result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
32028
32028
  let page = result.value || [];
@@ -32078,7 +32078,7 @@ class APICollectionsImpl {
32078
32078
  return this;
32079
32079
  },
32080
32080
  byPage: (settings) => {
32081
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
32081
+ if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
32082
32082
  throw new Error("maxPageSize is not supported by this operation.");
32083
32083
  }
32084
32084
  return this.listByAzureApiManagementServicePagingPage(resourceGroupName, serviceName, options, settings);
@@ -32088,7 +32088,7 @@ class APICollectionsImpl {
32088
32088
  listByAzureApiManagementServicePagingPage(resourceGroupName, serviceName, options, settings) {
32089
32089
  return tslib.__asyncGenerator(this, arguments, function* listByAzureApiManagementServicePagingPage_1() {
32090
32090
  let result;
32091
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
32091
+ let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
32092
32092
  if (!continuationToken) {
32093
32093
  result = yield tslib.__await(this._listByAzureApiManagementService(resourceGroupName, serviceName, options));
32094
32094
  let page = result.value || [];
@@ -32179,17 +32179,17 @@ class APICollectionsImpl {
32179
32179
  * @param options The options parameters.
32180
32180
  */
32181
32181
  beginOnboardAzureApiManagementApi(resourceGroupName, serviceName, apiId, options) {
32182
- return tslib.__awaiter(this, void 0, void 0, function* () {
32183
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32182
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32183
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32184
32184
  return this.client.sendOperationRequest(args, spec);
32185
32185
  });
32186
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
32186
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
32187
32187
  var _a;
32188
32188
  let currentRawResponse = undefined;
32189
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
32189
+ const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
32190
32190
  const callback = (rawResponse, flatResponse) => {
32191
32191
  currentRawResponse = rawResponse;
32192
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
32192
+ providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
32193
32193
  };
32194
32194
  const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
32195
32195
  const flatResponse = yield directSendOperation(updatedArgs, spec);
@@ -32208,8 +32208,8 @@ class APICollectionsImpl {
32208
32208
  spec: onboardAzureApiManagementApiOperationSpec,
32209
32209
  });
32210
32210
  const poller = yield coreLro.createHttpPoller(lro, {
32211
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32212
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32211
+ restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
32212
+ intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
32213
32213
  resourceLocationConfig: "location",
32214
32214
  });
32215
32215
  yield poller.poll();
@@ -32227,7 +32227,7 @@ class APICollectionsImpl {
32227
32227
  * @param options The options parameters.
32228
32228
  */
32229
32229
  beginOnboardAzureApiManagementApiAndWait(resourceGroupName, serviceName, apiId, options) {
32230
- return tslib.__awaiter(this, void 0, void 0, function* () {
32230
+ return tslib.__awaiter(this, undefined, undefined, function* () {
32231
32231
  const poller = yield this.beginOnboardAzureApiManagementApi(resourceGroupName, serviceName, apiId, options);
32232
32232
  return poller.pollUntilDone();
32233
32233
  });
@@ -32657,10 +32657,10 @@ class SecurityCenter extends coreClient__namespace.ServiceClient {
32657
32657
  : `${packageDetails}`;
32658
32658
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
32659
32659
  userAgentPrefix,
32660
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
32660
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
32661
32661
  super(optionsWithDefaults);
32662
32662
  let bearerTokenAuthenticationPolicyFound = false;
32663
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
32663
+ if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
32664
32664
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
32665
32665
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
32666
32666
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
@@ -32674,7 +32674,7 @@ class SecurityCenter extends coreClient__namespace.ServiceClient {
32674
32674
  });
32675
32675
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
32676
32676
  credential: credentials,
32677
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
32677
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
32678
32678
  challengeCallbacks: {
32679
32679
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
32680
32680
  },