@azure/arm-security 6.0.0-alpha.20250207.1 → 6.0.0-alpha.20250211.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +280 -280
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
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 ===
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
|
59
59
|
pageMap.set(page, pageInfo);
|
|
60
60
|
}
|
|
@@ -15767,7 +15767,7 @@ class LocationsImpl {
|
|
|
15767
15767
|
return this;
|
|
15768
15768
|
},
|
|
15769
15769
|
byPage: (settings) => {
|
|
15770
|
-
if (settings === null || settings ===
|
|
15770
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
15780
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
15933
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
15943
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16061
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16071
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16124
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16134
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16189
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16199
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16581
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16591
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16775
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16785
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16943
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
16953
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17151
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17161
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17402
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17412
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17620
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17630
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17684
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
17694
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18045
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18055
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18206
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18216
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18381
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18391
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18573
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18583
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18638
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18648
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18868
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
18878
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19088
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19098
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19314
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19324
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19375
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19385
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19637
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19647
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19698
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19708
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
19995
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
20005
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
20056
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
20066
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : 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 ===
|
|
20424
|
+
if (settings === null || settings === void 0 ? void 0 : 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 ===
|
|
20434
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
20435
20435
|
if (!continuationToken) {
|
|
20436
20436
|
result = yield tslib.__await(this._list(scope, assessmentName, options));
|
|
20437
20437
|
let page = result.value || [];
|
|
@@ -20643,7 +20643,7 @@ function createLroSpec(inputs) {
|
|
|
20643
20643
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
20644
20644
|
sendPollRequest: (path, options) => {
|
|
20645
20645
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
20646
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
20646
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
20647
20647
|
},
|
|
20648
20648
|
};
|
|
20649
20649
|
}
|
|
@@ -20683,7 +20683,7 @@ class GovernanceRulesImpl {
|
|
|
20683
20683
|
return this;
|
|
20684
20684
|
},
|
|
20685
20685
|
byPage: (settings) => {
|
|
20686
|
-
if (settings === null || settings ===
|
|
20686
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
20687
20687
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
20688
20688
|
}
|
|
20689
20689
|
return this.listPagingPage(scope, options, settings);
|
|
@@ -20693,7 +20693,7 @@ class GovernanceRulesImpl {
|
|
|
20693
20693
|
listPagingPage(scope, options, settings) {
|
|
20694
20694
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
20695
20695
|
let result;
|
|
20696
|
-
let continuationToken = settings === null || settings ===
|
|
20696
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
20697
20697
|
if (!continuationToken) {
|
|
20698
20698
|
result = yield tslib.__await(this._list(scope, options));
|
|
20699
20699
|
let page = result.value || [];
|
|
@@ -20776,17 +20776,17 @@ class GovernanceRulesImpl {
|
|
|
20776
20776
|
* @param options The options parameters.
|
|
20777
20777
|
*/
|
|
20778
20778
|
beginDelete(scope, ruleId, options) {
|
|
20779
|
-
return tslib.__awaiter(this,
|
|
20780
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
20779
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20780
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20781
20781
|
return this.client.sendOperationRequest(args, spec);
|
|
20782
20782
|
});
|
|
20783
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
20783
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20784
20784
|
var _a;
|
|
20785
20785
|
let currentRawResponse = undefined;
|
|
20786
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
20786
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
20787
20787
|
const callback = (rawResponse, flatResponse) => {
|
|
20788
20788
|
currentRawResponse = rawResponse;
|
|
20789
|
-
providedCallback === null || providedCallback ===
|
|
20789
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
20790
20790
|
};
|
|
20791
20791
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
20792
20792
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20805,8 +20805,8 @@ class GovernanceRulesImpl {
|
|
|
20805
20805
|
spec: deleteOperationSpec$e,
|
|
20806
20806
|
});
|
|
20807
20807
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20808
|
-
restoreFrom: options === null || options ===
|
|
20809
|
-
intervalInMs: options === null || options ===
|
|
20808
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
20809
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
20810
20810
|
resourceLocationConfig: "location",
|
|
20811
20811
|
});
|
|
20812
20812
|
yield poller.poll();
|
|
@@ -20823,7 +20823,7 @@ class GovernanceRulesImpl {
|
|
|
20823
20823
|
* @param options The options parameters.
|
|
20824
20824
|
*/
|
|
20825
20825
|
beginDeleteAndWait(scope, ruleId, options) {
|
|
20826
|
-
return tslib.__awaiter(this,
|
|
20826
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20827
20827
|
const poller = yield this.beginDelete(scope, ruleId, options);
|
|
20828
20828
|
return poller.pollUntilDone();
|
|
20829
20829
|
});
|
|
@@ -20838,17 +20838,17 @@ class GovernanceRulesImpl {
|
|
|
20838
20838
|
* @param options The options parameters.
|
|
20839
20839
|
*/
|
|
20840
20840
|
beginExecute(scope, ruleId, options) {
|
|
20841
|
-
return tslib.__awaiter(this,
|
|
20842
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
20841
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20842
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20843
20843
|
return this.client.sendOperationRequest(args, spec);
|
|
20844
20844
|
});
|
|
20845
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
20845
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20846
20846
|
var _a;
|
|
20847
20847
|
let currentRawResponse = undefined;
|
|
20848
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
20848
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
20849
20849
|
const callback = (rawResponse, flatResponse) => {
|
|
20850
20850
|
currentRawResponse = rawResponse;
|
|
20851
|
-
providedCallback === null || providedCallback ===
|
|
20851
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
20852
20852
|
};
|
|
20853
20853
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
20854
20854
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -20867,8 +20867,8 @@ class GovernanceRulesImpl {
|
|
|
20867
20867
|
spec: executeOperationSpec,
|
|
20868
20868
|
});
|
|
20869
20869
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
20870
|
-
restoreFrom: options === null || options ===
|
|
20871
|
-
intervalInMs: options === null || options ===
|
|
20870
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
20871
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
20872
20872
|
resourceLocationConfig: "location",
|
|
20873
20873
|
});
|
|
20874
20874
|
yield poller.poll();
|
|
@@ -20885,7 +20885,7 @@ class GovernanceRulesImpl {
|
|
|
20885
20885
|
* @param options The options parameters.
|
|
20886
20886
|
*/
|
|
20887
20887
|
beginExecuteAndWait(scope, ruleId, options) {
|
|
20888
|
-
return tslib.__awaiter(this,
|
|
20888
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
20889
20889
|
const poller = yield this.beginExecute(scope, ruleId, options);
|
|
20890
20890
|
return poller.pollUntilDone();
|
|
20891
20891
|
});
|
|
@@ -21077,7 +21077,7 @@ class ApplicationsImpl {
|
|
|
21077
21077
|
return this;
|
|
21078
21078
|
},
|
|
21079
21079
|
byPage: (settings) => {
|
|
21080
|
-
if (settings === null || settings ===
|
|
21080
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
21081
21081
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
21082
21082
|
}
|
|
21083
21083
|
return this.listPagingPage(options, settings);
|
|
@@ -21087,7 +21087,7 @@ class ApplicationsImpl {
|
|
|
21087
21087
|
listPagingPage(options, settings) {
|
|
21088
21088
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
21089
21089
|
let result;
|
|
21090
|
-
let continuationToken = settings === null || settings ===
|
|
21090
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
21091
21091
|
if (!continuationToken) {
|
|
21092
21092
|
result = yield tslib.__await(this._list(options));
|
|
21093
21093
|
let page = result.value || [];
|
|
@@ -21314,7 +21314,7 @@ class SecurityConnectorApplicationsImpl {
|
|
|
21314
21314
|
return this;
|
|
21315
21315
|
},
|
|
21316
21316
|
byPage: (settings) => {
|
|
21317
|
-
if (settings === null || settings ===
|
|
21317
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
21318
21318
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
21319
21319
|
}
|
|
21320
21320
|
return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
|
|
@@ -21324,7 +21324,7 @@ class SecurityConnectorApplicationsImpl {
|
|
|
21324
21324
|
listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
|
|
21325
21325
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
21326
21326
|
let result;
|
|
21327
|
-
let continuationToken = settings === null || settings ===
|
|
21327
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
21328
21328
|
if (!continuationToken) {
|
|
21329
21329
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
|
|
21330
21330
|
let page = result.value || [];
|
|
@@ -22149,7 +22149,7 @@ class HealthReportsImpl {
|
|
|
22149
22149
|
return this;
|
|
22150
22150
|
},
|
|
22151
22151
|
byPage: (settings) => {
|
|
22152
|
-
if (settings === null || settings ===
|
|
22152
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22153
22153
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22154
22154
|
}
|
|
22155
22155
|
return this.listPagingPage(scope, options, settings);
|
|
@@ -22159,7 +22159,7 @@ class HealthReportsImpl {
|
|
|
22159
22159
|
listPagingPage(scope, options, settings) {
|
|
22160
22160
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22161
22161
|
let result;
|
|
22162
|
-
let continuationToken = settings === null || settings ===
|
|
22162
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22163
22163
|
if (!continuationToken) {
|
|
22164
22164
|
result = yield tslib.__await(this._list(scope, options));
|
|
22165
22165
|
let page = result.value || [];
|
|
@@ -22312,7 +22312,7 @@ class AzureDevOpsOrgsImpl {
|
|
|
22312
22312
|
return this;
|
|
22313
22313
|
},
|
|
22314
22314
|
byPage: (settings) => {
|
|
22315
|
-
if (settings === null || settings ===
|
|
22315
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22316
22316
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22317
22317
|
}
|
|
22318
22318
|
return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
|
|
@@ -22322,7 +22322,7 @@ class AzureDevOpsOrgsImpl {
|
|
|
22322
22322
|
listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
|
|
22323
22323
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22324
22324
|
let result;
|
|
22325
|
-
let continuationToken = settings === null || settings ===
|
|
22325
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22326
22326
|
if (!continuationToken) {
|
|
22327
22327
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
|
|
22328
22328
|
let page = result.value || [];
|
|
@@ -22397,17 +22397,17 @@ class AzureDevOpsOrgsImpl {
|
|
|
22397
22397
|
* @param options The options parameters.
|
|
22398
22398
|
*/
|
|
22399
22399
|
beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
|
|
22400
|
-
return tslib.__awaiter(this,
|
|
22401
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
22400
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22401
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22402
22402
|
return this.client.sendOperationRequest(args, spec);
|
|
22403
22403
|
});
|
|
22404
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
22404
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22405
22405
|
var _a;
|
|
22406
22406
|
let currentRawResponse = undefined;
|
|
22407
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
22407
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
22408
22408
|
const callback = (rawResponse, flatResponse) => {
|
|
22409
22409
|
currentRawResponse = rawResponse;
|
|
22410
|
-
providedCallback === null || providedCallback ===
|
|
22410
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
22411
22411
|
};
|
|
22412
22412
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
22413
22413
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -22432,8 +22432,8 @@ class AzureDevOpsOrgsImpl {
|
|
|
22432
22432
|
spec: createOrUpdateOperationSpec$a,
|
|
22433
22433
|
});
|
|
22434
22434
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
22435
|
-
restoreFrom: options === null || options ===
|
|
22436
|
-
intervalInMs: options === null || options ===
|
|
22435
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
22436
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
22437
22437
|
resourceLocationConfig: "azure-async-operation",
|
|
22438
22438
|
});
|
|
22439
22439
|
yield poller.poll();
|
|
@@ -22449,7 +22449,7 @@ class AzureDevOpsOrgsImpl {
|
|
|
22449
22449
|
* @param options The options parameters.
|
|
22450
22450
|
*/
|
|
22451
22451
|
beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
|
|
22452
|
-
return tslib.__awaiter(this,
|
|
22452
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22453
22453
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options);
|
|
22454
22454
|
return poller.pollUntilDone();
|
|
22455
22455
|
});
|
|
@@ -22463,17 +22463,17 @@ class AzureDevOpsOrgsImpl {
|
|
|
22463
22463
|
* @param options The options parameters.
|
|
22464
22464
|
*/
|
|
22465
22465
|
beginUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
|
|
22466
|
-
return tslib.__awaiter(this,
|
|
22467
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
22466
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22467
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22468
22468
|
return this.client.sendOperationRequest(args, spec);
|
|
22469
22469
|
});
|
|
22470
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
22470
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22471
22471
|
var _a;
|
|
22472
22472
|
let currentRawResponse = undefined;
|
|
22473
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
22473
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
22474
22474
|
const callback = (rawResponse, flatResponse) => {
|
|
22475
22475
|
currentRawResponse = rawResponse;
|
|
22476
|
-
providedCallback === null || providedCallback ===
|
|
22476
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
22477
22477
|
};
|
|
22478
22478
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
22479
22479
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -22498,8 +22498,8 @@ class AzureDevOpsOrgsImpl {
|
|
|
22498
22498
|
spec: updateOperationSpec$7,
|
|
22499
22499
|
});
|
|
22500
22500
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
22501
|
-
restoreFrom: options === null || options ===
|
|
22502
|
-
intervalInMs: options === null || options ===
|
|
22501
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
22502
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
22503
22503
|
resourceLocationConfig: "azure-async-operation",
|
|
22504
22504
|
});
|
|
22505
22505
|
yield poller.poll();
|
|
@@ -22515,7 +22515,7 @@ class AzureDevOpsOrgsImpl {
|
|
|
22515
22515
|
* @param options The options parameters.
|
|
22516
22516
|
*/
|
|
22517
22517
|
beginUpdateAndWait(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options) {
|
|
22518
|
-
return tslib.__awaiter(this,
|
|
22518
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22519
22519
|
const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, orgName, azureDevOpsOrg, options);
|
|
22520
22520
|
return poller.pollUntilDone();
|
|
22521
22521
|
});
|
|
@@ -22719,7 +22719,7 @@ class AzureDevOpsProjectsImpl {
|
|
|
22719
22719
|
return this;
|
|
22720
22720
|
},
|
|
22721
22721
|
byPage: (settings) => {
|
|
22722
|
-
if (settings === null || settings ===
|
|
22722
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22723
22723
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22724
22724
|
}
|
|
22725
22725
|
return this.listPagingPage(resourceGroupName, securityConnectorName, orgName, options, settings);
|
|
@@ -22729,7 +22729,7 @@ class AzureDevOpsProjectsImpl {
|
|
|
22729
22729
|
listPagingPage(resourceGroupName, securityConnectorName, orgName, options, settings) {
|
|
22730
22730
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22731
22731
|
let result;
|
|
22732
|
-
let continuationToken = settings === null || settings ===
|
|
22732
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22733
22733
|
if (!continuationToken) {
|
|
22734
22734
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, orgName, options));
|
|
22735
22735
|
let page = result.value || [];
|
|
@@ -22803,17 +22803,17 @@ class AzureDevOpsProjectsImpl {
|
|
|
22803
22803
|
* @param options The options parameters.
|
|
22804
22804
|
*/
|
|
22805
22805
|
beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
|
|
22806
|
-
return tslib.__awaiter(this,
|
|
22807
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
22806
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22807
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22808
22808
|
return this.client.sendOperationRequest(args, spec);
|
|
22809
22809
|
});
|
|
22810
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
22810
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22811
22811
|
var _a;
|
|
22812
22812
|
let currentRawResponse = undefined;
|
|
22813
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
22813
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
22814
22814
|
const callback = (rawResponse, flatResponse) => {
|
|
22815
22815
|
currentRawResponse = rawResponse;
|
|
22816
|
-
providedCallback === null || providedCallback ===
|
|
22816
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
22817
22817
|
};
|
|
22818
22818
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
22819
22819
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -22839,8 +22839,8 @@ class AzureDevOpsProjectsImpl {
|
|
|
22839
22839
|
spec: createOrUpdateOperationSpec$9,
|
|
22840
22840
|
});
|
|
22841
22841
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
22842
|
-
restoreFrom: options === null || options ===
|
|
22843
|
-
intervalInMs: options === null || options ===
|
|
22842
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
22843
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
22844
22844
|
resourceLocationConfig: "azure-async-operation",
|
|
22845
22845
|
});
|
|
22846
22846
|
yield poller.poll();
|
|
@@ -22857,7 +22857,7 @@ class AzureDevOpsProjectsImpl {
|
|
|
22857
22857
|
* @param options The options parameters.
|
|
22858
22858
|
*/
|
|
22859
22859
|
beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
|
|
22860
|
-
return tslib.__awaiter(this,
|
|
22860
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22861
22861
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options);
|
|
22862
22862
|
return poller.pollUntilDone();
|
|
22863
22863
|
});
|
|
@@ -22872,17 +22872,17 @@ class AzureDevOpsProjectsImpl {
|
|
|
22872
22872
|
* @param options The options parameters.
|
|
22873
22873
|
*/
|
|
22874
22874
|
beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
|
|
22875
|
-
return tslib.__awaiter(this,
|
|
22876
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
22875
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22876
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22877
22877
|
return this.client.sendOperationRequest(args, spec);
|
|
22878
22878
|
});
|
|
22879
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
22879
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22880
22880
|
var _a;
|
|
22881
22881
|
let currentRawResponse = undefined;
|
|
22882
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
22882
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
22883
22883
|
const callback = (rawResponse, flatResponse) => {
|
|
22884
22884
|
currentRawResponse = rawResponse;
|
|
22885
|
-
providedCallback === null || providedCallback ===
|
|
22885
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
22886
22886
|
};
|
|
22887
22887
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
22888
22888
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -22908,8 +22908,8 @@ class AzureDevOpsProjectsImpl {
|
|
|
22908
22908
|
spec: updateOperationSpec$6,
|
|
22909
22909
|
});
|
|
22910
22910
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
22911
|
-
restoreFrom: options === null || options ===
|
|
22912
|
-
intervalInMs: options === null || options ===
|
|
22911
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
22912
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
22913
22913
|
resourceLocationConfig: "azure-async-operation",
|
|
22914
22914
|
});
|
|
22915
22915
|
yield poller.poll();
|
|
@@ -22926,7 +22926,7 @@ class AzureDevOpsProjectsImpl {
|
|
|
22926
22926
|
* @param options The options parameters.
|
|
22927
22927
|
*/
|
|
22928
22928
|
beginUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options) {
|
|
22929
|
-
return tslib.__awaiter(this,
|
|
22929
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
22930
22930
|
const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, azureDevOpsProject, options);
|
|
22931
22931
|
return poller.pollUntilDone();
|
|
22932
22932
|
});
|
|
@@ -23116,7 +23116,7 @@ class AzureDevOpsReposImpl {
|
|
|
23116
23116
|
return this;
|
|
23117
23117
|
},
|
|
23118
23118
|
byPage: (settings) => {
|
|
23119
|
-
if (settings === null || settings ===
|
|
23119
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
23120
23120
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
23121
23121
|
}
|
|
23122
23122
|
return this.listPagingPage(resourceGroupName, securityConnectorName, orgName, projectName, options, settings);
|
|
@@ -23126,7 +23126,7 @@ class AzureDevOpsReposImpl {
|
|
|
23126
23126
|
listPagingPage(resourceGroupName, securityConnectorName, orgName, projectName, options, settings) {
|
|
23127
23127
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
23128
23128
|
let result;
|
|
23129
|
-
let continuationToken = settings === null || settings ===
|
|
23129
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
23130
23130
|
if (!continuationToken) {
|
|
23131
23131
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, orgName, projectName, options));
|
|
23132
23132
|
let page = result.value || [];
|
|
@@ -23210,17 +23210,17 @@ class AzureDevOpsReposImpl {
|
|
|
23210
23210
|
* @param options The options parameters.
|
|
23211
23211
|
*/
|
|
23212
23212
|
beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
|
|
23213
|
-
return tslib.__awaiter(this,
|
|
23214
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23213
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23214
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23215
23215
|
return this.client.sendOperationRequest(args, spec);
|
|
23216
23216
|
});
|
|
23217
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23217
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23218
23218
|
var _a;
|
|
23219
23219
|
let currentRawResponse = undefined;
|
|
23220
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23220
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23221
23221
|
const callback = (rawResponse, flatResponse) => {
|
|
23222
23222
|
currentRawResponse = rawResponse;
|
|
23223
|
-
providedCallback === null || providedCallback ===
|
|
23223
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23224
23224
|
};
|
|
23225
23225
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23226
23226
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23247,8 +23247,8 @@ class AzureDevOpsReposImpl {
|
|
|
23247
23247
|
spec: createOrUpdateOperationSpec$8,
|
|
23248
23248
|
});
|
|
23249
23249
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23250
|
-
restoreFrom: options === null || options ===
|
|
23251
|
-
intervalInMs: options === null || options ===
|
|
23250
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23251
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23252
23252
|
resourceLocationConfig: "azure-async-operation",
|
|
23253
23253
|
});
|
|
23254
23254
|
yield poller.poll();
|
|
@@ -23266,7 +23266,7 @@ class AzureDevOpsReposImpl {
|
|
|
23266
23266
|
* @param options The options parameters.
|
|
23267
23267
|
*/
|
|
23268
23268
|
beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
|
|
23269
|
-
return tslib.__awaiter(this,
|
|
23269
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23270
23270
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options);
|
|
23271
23271
|
return poller.pollUntilDone();
|
|
23272
23272
|
});
|
|
@@ -23282,17 +23282,17 @@ class AzureDevOpsReposImpl {
|
|
|
23282
23282
|
* @param options The options parameters.
|
|
23283
23283
|
*/
|
|
23284
23284
|
beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
|
|
23285
|
-
return tslib.__awaiter(this,
|
|
23286
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23285
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23286
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23287
23287
|
return this.client.sendOperationRequest(args, spec);
|
|
23288
23288
|
});
|
|
23289
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23289
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23290
23290
|
var _a;
|
|
23291
23291
|
let currentRawResponse = undefined;
|
|
23292
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23292
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23293
23293
|
const callback = (rawResponse, flatResponse) => {
|
|
23294
23294
|
currentRawResponse = rawResponse;
|
|
23295
|
-
providedCallback === null || providedCallback ===
|
|
23295
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23296
23296
|
};
|
|
23297
23297
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23298
23298
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23319,8 +23319,8 @@ class AzureDevOpsReposImpl {
|
|
|
23319
23319
|
spec: updateOperationSpec$5,
|
|
23320
23320
|
});
|
|
23321
23321
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23322
|
-
restoreFrom: options === null || options ===
|
|
23323
|
-
intervalInMs: options === null || options ===
|
|
23322
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23323
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23324
23324
|
resourceLocationConfig: "azure-async-operation",
|
|
23325
23325
|
});
|
|
23326
23326
|
yield poller.poll();
|
|
@@ -23338,7 +23338,7 @@ class AzureDevOpsReposImpl {
|
|
|
23338
23338
|
* @param options The options parameters.
|
|
23339
23339
|
*/
|
|
23340
23340
|
beginUpdateAndWait(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options) {
|
|
23341
|
-
return tslib.__awaiter(this,
|
|
23341
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23342
23342
|
const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, orgName, projectName, repoName, azureDevOpsRepository, options);
|
|
23343
23343
|
return poller.pollUntilDone();
|
|
23344
23344
|
});
|
|
@@ -23539,7 +23539,7 @@ class DevOpsConfigurationsImpl {
|
|
|
23539
23539
|
return this;
|
|
23540
23540
|
},
|
|
23541
23541
|
byPage: (settings) => {
|
|
23542
|
-
if (settings === null || settings ===
|
|
23542
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
23543
23543
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
23544
23544
|
}
|
|
23545
23545
|
return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
|
|
@@ -23549,7 +23549,7 @@ class DevOpsConfigurationsImpl {
|
|
|
23549
23549
|
listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
|
|
23550
23550
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
23551
23551
|
let result;
|
|
23552
|
-
let continuationToken = settings === null || settings ===
|
|
23552
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
23553
23553
|
if (!continuationToken) {
|
|
23554
23554
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
|
|
23555
23555
|
let page = result.value || [];
|
|
@@ -23612,17 +23612,17 @@ class DevOpsConfigurationsImpl {
|
|
|
23612
23612
|
* @param options The options parameters.
|
|
23613
23613
|
*/
|
|
23614
23614
|
beginCreateOrUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
|
|
23615
|
-
return tslib.__awaiter(this,
|
|
23616
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23615
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23616
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23617
23617
|
return this.client.sendOperationRequest(args, spec);
|
|
23618
23618
|
});
|
|
23619
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23619
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23620
23620
|
var _a;
|
|
23621
23621
|
let currentRawResponse = undefined;
|
|
23622
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23622
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23623
23623
|
const callback = (rawResponse, flatResponse) => {
|
|
23624
23624
|
currentRawResponse = rawResponse;
|
|
23625
|
-
providedCallback === null || providedCallback ===
|
|
23625
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23626
23626
|
};
|
|
23627
23627
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23628
23628
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23646,8 +23646,8 @@ class DevOpsConfigurationsImpl {
|
|
|
23646
23646
|
spec: createOrUpdateOperationSpec$7,
|
|
23647
23647
|
});
|
|
23648
23648
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23649
|
-
restoreFrom: options === null || options ===
|
|
23650
|
-
intervalInMs: options === null || options ===
|
|
23649
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23650
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23651
23651
|
resourceLocationConfig: "azure-async-operation",
|
|
23652
23652
|
});
|
|
23653
23653
|
yield poller.poll();
|
|
@@ -23662,7 +23662,7 @@ class DevOpsConfigurationsImpl {
|
|
|
23662
23662
|
* @param options The options parameters.
|
|
23663
23663
|
*/
|
|
23664
23664
|
beginCreateOrUpdateAndWait(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
|
|
23665
|
-
return tslib.__awaiter(this,
|
|
23665
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23666
23666
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options);
|
|
23667
23667
|
return poller.pollUntilDone();
|
|
23668
23668
|
});
|
|
@@ -23675,17 +23675,17 @@ class DevOpsConfigurationsImpl {
|
|
|
23675
23675
|
* @param options The options parameters.
|
|
23676
23676
|
*/
|
|
23677
23677
|
beginUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
|
|
23678
|
-
return tslib.__awaiter(this,
|
|
23679
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23678
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23679
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23680
23680
|
return this.client.sendOperationRequest(args, spec);
|
|
23681
23681
|
});
|
|
23682
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23682
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23683
23683
|
var _a;
|
|
23684
23684
|
let currentRawResponse = undefined;
|
|
23685
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23685
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23686
23686
|
const callback = (rawResponse, flatResponse) => {
|
|
23687
23687
|
currentRawResponse = rawResponse;
|
|
23688
|
-
providedCallback === null || providedCallback ===
|
|
23688
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23689
23689
|
};
|
|
23690
23690
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23691
23691
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23709,8 +23709,8 @@ class DevOpsConfigurationsImpl {
|
|
|
23709
23709
|
spec: updateOperationSpec$4,
|
|
23710
23710
|
});
|
|
23711
23711
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23712
|
-
restoreFrom: options === null || options ===
|
|
23713
|
-
intervalInMs: options === null || options ===
|
|
23712
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23713
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23714
23714
|
resourceLocationConfig: "azure-async-operation",
|
|
23715
23715
|
});
|
|
23716
23716
|
yield poller.poll();
|
|
@@ -23725,7 +23725,7 @@ class DevOpsConfigurationsImpl {
|
|
|
23725
23725
|
* @param options The options parameters.
|
|
23726
23726
|
*/
|
|
23727
23727
|
beginUpdateAndWait(resourceGroupName, securityConnectorName, devOpsConfiguration, options) {
|
|
23728
|
-
return tslib.__awaiter(this,
|
|
23728
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23729
23729
|
const poller = yield this.beginUpdate(resourceGroupName, securityConnectorName, devOpsConfiguration, options);
|
|
23730
23730
|
return poller.pollUntilDone();
|
|
23731
23731
|
});
|
|
@@ -23737,17 +23737,17 @@ class DevOpsConfigurationsImpl {
|
|
|
23737
23737
|
* @param options The options parameters.
|
|
23738
23738
|
*/
|
|
23739
23739
|
beginDelete(resourceGroupName, securityConnectorName, options) {
|
|
23740
|
-
return tslib.__awaiter(this,
|
|
23741
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
23740
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23741
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23742
23742
|
return this.client.sendOperationRequest(args, spec);
|
|
23743
23743
|
});
|
|
23744
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
23744
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23745
23745
|
var _a;
|
|
23746
23746
|
let currentRawResponse = undefined;
|
|
23747
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
23747
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
23748
23748
|
const callback = (rawResponse, flatResponse) => {
|
|
23749
23749
|
currentRawResponse = rawResponse;
|
|
23750
|
-
providedCallback === null || providedCallback ===
|
|
23750
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
23751
23751
|
};
|
|
23752
23752
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
23753
23753
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -23766,8 +23766,8 @@ class DevOpsConfigurationsImpl {
|
|
|
23766
23766
|
spec: deleteOperationSpec$9,
|
|
23767
23767
|
});
|
|
23768
23768
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
23769
|
-
restoreFrom: options === null || options ===
|
|
23770
|
-
intervalInMs: options === null || options ===
|
|
23769
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
23770
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
23771
23771
|
});
|
|
23772
23772
|
yield poller.poll();
|
|
23773
23773
|
return poller;
|
|
@@ -23780,7 +23780,7 @@ class DevOpsConfigurationsImpl {
|
|
|
23780
23780
|
* @param options The options parameters.
|
|
23781
23781
|
*/
|
|
23782
23782
|
beginDeleteAndWait(resourceGroupName, securityConnectorName, options) {
|
|
23783
|
-
return tslib.__awaiter(this,
|
|
23783
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23784
23784
|
const poller = yield this.beginDelete(resourceGroupName, securityConnectorName, options);
|
|
23785
23785
|
return poller.pollUntilDone();
|
|
23786
23786
|
});
|
|
@@ -23981,7 +23981,7 @@ class GitHubOwnersImpl {
|
|
|
23981
23981
|
return this;
|
|
23982
23982
|
},
|
|
23983
23983
|
byPage: (settings) => {
|
|
23984
|
-
if (settings === null || settings ===
|
|
23984
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
23985
23985
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
23986
23986
|
}
|
|
23987
23987
|
return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
|
|
@@ -23991,7 +23991,7 @@ class GitHubOwnersImpl {
|
|
|
23991
23991
|
listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
|
|
23992
23992
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
23993
23993
|
let result;
|
|
23994
|
-
let continuationToken = settings === null || settings ===
|
|
23994
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
23995
23995
|
if (!continuationToken) {
|
|
23996
23996
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
|
|
23997
23997
|
let page = result.value || [];
|
|
@@ -24189,7 +24189,7 @@ class GitHubReposImpl {
|
|
|
24189
24189
|
return this;
|
|
24190
24190
|
},
|
|
24191
24191
|
byPage: (settings) => {
|
|
24192
|
-
if (settings === null || settings ===
|
|
24192
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24193
24193
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24194
24194
|
}
|
|
24195
24195
|
return this.listPagingPage(resourceGroupName, securityConnectorName, ownerName, options, settings);
|
|
@@ -24199,7 +24199,7 @@ class GitHubReposImpl {
|
|
|
24199
24199
|
listPagingPage(resourceGroupName, securityConnectorName, ownerName, options, settings) {
|
|
24200
24200
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
24201
24201
|
let result;
|
|
24202
|
-
let continuationToken = settings === null || settings ===
|
|
24202
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24203
24203
|
if (!continuationToken) {
|
|
24204
24204
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, ownerName, options));
|
|
24205
24205
|
let page = result.value || [];
|
|
@@ -24384,7 +24384,7 @@ class GitLabGroupsImpl {
|
|
|
24384
24384
|
return this;
|
|
24385
24385
|
},
|
|
24386
24386
|
byPage: (settings) => {
|
|
24387
|
-
if (settings === null || settings ===
|
|
24387
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24388
24388
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24389
24389
|
}
|
|
24390
24390
|
return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings);
|
|
@@ -24394,7 +24394,7 @@ class GitLabGroupsImpl {
|
|
|
24394
24394
|
listPagingPage(resourceGroupName, securityConnectorName, options, settings) {
|
|
24395
24395
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
24396
24396
|
let result;
|
|
24397
|
-
let continuationToken = settings === null || settings ===
|
|
24397
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24398
24398
|
if (!continuationToken) {
|
|
24399
24399
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, options));
|
|
24400
24400
|
let page = result.value || [];
|
|
@@ -24645,7 +24645,7 @@ class GitLabProjectsImpl {
|
|
|
24645
24645
|
return this;
|
|
24646
24646
|
},
|
|
24647
24647
|
byPage: (settings) => {
|
|
24648
|
-
if (settings === null || settings ===
|
|
24648
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24649
24649
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24650
24650
|
}
|
|
24651
24651
|
return this.listPagingPage(resourceGroupName, securityConnectorName, groupFQName, options, settings);
|
|
@@ -24655,7 +24655,7 @@ class GitLabProjectsImpl {
|
|
|
24655
24655
|
listPagingPage(resourceGroupName, securityConnectorName, groupFQName, options, settings) {
|
|
24656
24656
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
24657
24657
|
let result;
|
|
24658
|
-
let continuationToken = settings === null || settings ===
|
|
24658
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24659
24659
|
if (!continuationToken) {
|
|
24660
24660
|
result = yield tslib.__await(this._list(resourceGroupName, securityConnectorName, groupFQName, options));
|
|
24661
24661
|
let page = result.value || [];
|
|
@@ -24892,7 +24892,7 @@ class SecurityConnectorsImpl {
|
|
|
24892
24892
|
return this;
|
|
24893
24893
|
},
|
|
24894
24894
|
byPage: (settings) => {
|
|
24895
|
-
if (settings === null || settings ===
|
|
24895
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24896
24896
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24897
24897
|
}
|
|
24898
24898
|
return this.listPagingPage(options, settings);
|
|
@@ -24902,7 +24902,7 @@ class SecurityConnectorsImpl {
|
|
|
24902
24902
|
listPagingPage(options, settings) {
|
|
24903
24903
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
24904
24904
|
let result;
|
|
24905
|
-
let continuationToken = settings === null || settings ===
|
|
24905
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24906
24906
|
if (!continuationToken) {
|
|
24907
24907
|
result = yield tslib.__await(this._list(options));
|
|
24908
24908
|
let page = result.value || [];
|
|
@@ -24956,7 +24956,7 @@ class SecurityConnectorsImpl {
|
|
|
24956
24956
|
return this;
|
|
24957
24957
|
},
|
|
24958
24958
|
byPage: (settings) => {
|
|
24959
|
-
if (settings === null || settings ===
|
|
24959
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
24960
24960
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
24961
24961
|
}
|
|
24962
24962
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -24966,7 +24966,7 @@ class SecurityConnectorsImpl {
|
|
|
24966
24966
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
24967
24967
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
24968
24968
|
let result;
|
|
24969
|
-
let continuationToken = settings === null || settings ===
|
|
24969
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
24970
24970
|
if (!continuationToken) {
|
|
24971
24971
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
24972
24972
|
let page = result.value || [];
|
|
@@ -25285,7 +25285,7 @@ class ComplianceResultsImpl {
|
|
|
25285
25285
|
return this;
|
|
25286
25286
|
},
|
|
25287
25287
|
byPage: (settings) => {
|
|
25288
|
-
if (settings === null || settings ===
|
|
25288
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25289
25289
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25290
25290
|
}
|
|
25291
25291
|
return this.listPagingPage(scope, options, settings);
|
|
@@ -25295,7 +25295,7 @@ class ComplianceResultsImpl {
|
|
|
25295
25295
|
listPagingPage(scope, options, settings) {
|
|
25296
25296
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
25297
25297
|
let result;
|
|
25298
|
-
let continuationToken = settings === null || settings ===
|
|
25298
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
25299
25299
|
if (!continuationToken) {
|
|
25300
25300
|
result = yield tslib.__await(this._list(scope, options));
|
|
25301
25301
|
let page = result.value || [];
|
|
@@ -25528,7 +25528,7 @@ class DeviceSecurityGroupsImpl {
|
|
|
25528
25528
|
return this;
|
|
25529
25529
|
},
|
|
25530
25530
|
byPage: (settings) => {
|
|
25531
|
-
if (settings === null || settings ===
|
|
25531
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25532
25532
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25533
25533
|
}
|
|
25534
25534
|
return this.listPagingPage(resourceId, options, settings);
|
|
@@ -25538,7 +25538,7 @@ class DeviceSecurityGroupsImpl {
|
|
|
25538
25538
|
listPagingPage(resourceId, options, settings) {
|
|
25539
25539
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
25540
25540
|
let result;
|
|
25541
|
-
let continuationToken = settings === null || settings ===
|
|
25541
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
25542
25542
|
if (!continuationToken) {
|
|
25543
25543
|
result = yield tslib.__await(this._list(resourceId, options));
|
|
25544
25544
|
let page = result.value || [];
|
|
@@ -25838,7 +25838,7 @@ class IotSecuritySolutionsAnalyticsAggregatedAlertImpl {
|
|
|
25838
25838
|
return this;
|
|
25839
25839
|
},
|
|
25840
25840
|
byPage: (settings) => {
|
|
25841
|
-
if (settings === null || settings ===
|
|
25841
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
25842
25842
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
25843
25843
|
}
|
|
25844
25844
|
return this.listPagingPage(resourceGroupName, solutionName, options, settings);
|
|
@@ -25848,7 +25848,7 @@ class IotSecuritySolutionsAnalyticsAggregatedAlertImpl {
|
|
|
25848
25848
|
listPagingPage(resourceGroupName, solutionName, options, settings) {
|
|
25849
25849
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
25850
25850
|
let result;
|
|
25851
|
-
let continuationToken = settings === null || settings ===
|
|
25851
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
25852
25852
|
if (!continuationToken) {
|
|
25853
25853
|
result = yield tslib.__await(this._list(resourceGroupName, solutionName, options));
|
|
25854
25854
|
let page = result.value || [];
|
|
@@ -26052,7 +26052,7 @@ class IotSecuritySolutionsAnalyticsRecommendationImpl {
|
|
|
26052
26052
|
return this;
|
|
26053
26053
|
},
|
|
26054
26054
|
byPage: (settings) => {
|
|
26055
|
-
if (settings === null || settings ===
|
|
26055
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
26056
26056
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
26057
26057
|
}
|
|
26058
26058
|
return this.listPagingPage(resourceGroupName, solutionName, options, settings);
|
|
@@ -26062,7 +26062,7 @@ class IotSecuritySolutionsAnalyticsRecommendationImpl {
|
|
|
26062
26062
|
listPagingPage(resourceGroupName, solutionName, options, settings) {
|
|
26063
26063
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
26064
26064
|
let result;
|
|
26065
|
-
let continuationToken = settings === null || settings ===
|
|
26065
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
26066
26066
|
if (!continuationToken) {
|
|
26067
26067
|
result = yield tslib.__await(this._list(resourceGroupName, solutionName, options));
|
|
26068
26068
|
let page = result.value || [];
|
|
@@ -26237,7 +26237,7 @@ class IotSecuritySolutionImpl {
|
|
|
26237
26237
|
return this;
|
|
26238
26238
|
},
|
|
26239
26239
|
byPage: (settings) => {
|
|
26240
|
-
if (settings === null || settings ===
|
|
26240
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
26241
26241
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
26242
26242
|
}
|
|
26243
26243
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -26247,7 +26247,7 @@ class IotSecuritySolutionImpl {
|
|
|
26247
26247
|
listBySubscriptionPagingPage(options, settings) {
|
|
26248
26248
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
26249
26249
|
let result;
|
|
26250
|
-
let continuationToken = settings === null || settings ===
|
|
26250
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
26251
26251
|
if (!continuationToken) {
|
|
26252
26252
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
26253
26253
|
let page = result.value || [];
|
|
@@ -26300,7 +26300,7 @@ class IotSecuritySolutionImpl {
|
|
|
26300
26300
|
return this;
|
|
26301
26301
|
},
|
|
26302
26302
|
byPage: (settings) => {
|
|
26303
|
-
if (settings === null || settings ===
|
|
26303
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
26304
26304
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
26305
26305
|
}
|
|
26306
26306
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -26310,7 +26310,7 @@ class IotSecuritySolutionImpl {
|
|
|
26310
26310
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
26311
26311
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
26312
26312
|
let result;
|
|
26313
|
-
let continuationToken = settings === null || settings ===
|
|
26313
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
26314
26314
|
if (!continuationToken) {
|
|
26315
26315
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
26316
26316
|
let page = result.value || [];
|
|
@@ -26634,7 +26634,7 @@ class AdaptiveNetworkHardeningsImpl {
|
|
|
26634
26634
|
return this;
|
|
26635
26635
|
},
|
|
26636
26636
|
byPage: (settings) => {
|
|
26637
|
-
if (settings === null || settings ===
|
|
26637
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
26638
26638
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
26639
26639
|
}
|
|
26640
26640
|
return this.listByExtendedResourcePagingPage(resourceGroupName, resourceNamespace, resourceType, resourceName, options, settings);
|
|
@@ -26644,7 +26644,7 @@ class AdaptiveNetworkHardeningsImpl {
|
|
|
26644
26644
|
listByExtendedResourcePagingPage(resourceGroupName, resourceNamespace, resourceType, resourceName, options, settings) {
|
|
26645
26645
|
return tslib.__asyncGenerator(this, arguments, function* listByExtendedResourcePagingPage_1() {
|
|
26646
26646
|
let result;
|
|
26647
|
-
let continuationToken = settings === null || settings ===
|
|
26647
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
26648
26648
|
if (!continuationToken) {
|
|
26649
26649
|
result = yield tslib.__await(this._listByExtendedResource(resourceGroupName, resourceNamespace, resourceType, resourceName, options));
|
|
26650
26650
|
let page = result.value || [];
|
|
@@ -26731,17 +26731,17 @@ class AdaptiveNetworkHardeningsImpl {
|
|
|
26731
26731
|
* @param options The options parameters.
|
|
26732
26732
|
*/
|
|
26733
26733
|
beginEnforce(resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body, options) {
|
|
26734
|
-
return tslib.__awaiter(this,
|
|
26735
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
26734
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26735
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26736
26736
|
return this.client.sendOperationRequest(args, spec);
|
|
26737
26737
|
});
|
|
26738
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
26738
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26739
26739
|
var _a;
|
|
26740
26740
|
let currentRawResponse = undefined;
|
|
26741
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
26741
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
26742
26742
|
const callback = (rawResponse, flatResponse) => {
|
|
26743
26743
|
currentRawResponse = rawResponse;
|
|
26744
|
-
providedCallback === null || providedCallback ===
|
|
26744
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
26745
26745
|
};
|
|
26746
26746
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
26747
26747
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -26768,8 +26768,8 @@ class AdaptiveNetworkHardeningsImpl {
|
|
|
26768
26768
|
spec: enforceOperationSpec,
|
|
26769
26769
|
});
|
|
26770
26770
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
26771
|
-
restoreFrom: options === null || options ===
|
|
26772
|
-
intervalInMs: options === null || options ===
|
|
26771
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
26772
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
26773
26773
|
});
|
|
26774
26774
|
yield poller.poll();
|
|
26775
26775
|
return poller;
|
|
@@ -26787,7 +26787,7 @@ class AdaptiveNetworkHardeningsImpl {
|
|
|
26787
26787
|
* @param options The options parameters.
|
|
26788
26788
|
*/
|
|
26789
26789
|
beginEnforceAndWait(resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body, options) {
|
|
26790
|
-
return tslib.__awaiter(this,
|
|
26790
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26791
26791
|
const poller = yield this.beginEnforce(resourceGroupName, resourceNamespace, resourceType, resourceName, adaptiveNetworkHardeningResourceName, body, options);
|
|
26792
26792
|
return poller.pollUntilDone();
|
|
26793
26793
|
});
|
|
@@ -26945,7 +26945,7 @@ class AllowedConnectionsImpl {
|
|
|
26945
26945
|
return this;
|
|
26946
26946
|
},
|
|
26947
26947
|
byPage: (settings) => {
|
|
26948
|
-
if (settings === null || settings ===
|
|
26948
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
26949
26949
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
26950
26950
|
}
|
|
26951
26951
|
return this.listPagingPage(options, settings);
|
|
@@ -26955,7 +26955,7 @@ class AllowedConnectionsImpl {
|
|
|
26955
26955
|
listPagingPage(options, settings) {
|
|
26956
26956
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
26957
26957
|
let result;
|
|
26958
|
-
let continuationToken = settings === null || settings ===
|
|
26958
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
26959
26959
|
if (!continuationToken) {
|
|
26960
26960
|
result = yield tslib.__await(this._list(options));
|
|
26961
26961
|
let page = result.value || [];
|
|
@@ -27008,7 +27008,7 @@ class AllowedConnectionsImpl {
|
|
|
27008
27008
|
return this;
|
|
27009
27009
|
},
|
|
27010
27010
|
byPage: (settings) => {
|
|
27011
|
-
if (settings === null || settings ===
|
|
27011
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27012
27012
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27013
27013
|
}
|
|
27014
27014
|
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
@@ -27018,7 +27018,7 @@ class AllowedConnectionsImpl {
|
|
|
27018
27018
|
listByHomeRegionPagingPage(ascLocation, options, settings) {
|
|
27019
27019
|
return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
|
|
27020
27020
|
let result;
|
|
27021
|
-
let continuationToken = settings === null || settings ===
|
|
27021
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27022
27022
|
if (!continuationToken) {
|
|
27023
27023
|
result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
|
|
27024
27024
|
let page = result.value || [];
|
|
@@ -27377,7 +27377,7 @@ class DiscoveredSecuritySolutionsImpl {
|
|
|
27377
27377
|
return this;
|
|
27378
27378
|
},
|
|
27379
27379
|
byPage: (settings) => {
|
|
27380
|
-
if (settings === null || settings ===
|
|
27380
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27381
27381
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27382
27382
|
}
|
|
27383
27383
|
return this.listPagingPage(options, settings);
|
|
@@ -27387,7 +27387,7 @@ class DiscoveredSecuritySolutionsImpl {
|
|
|
27387
27387
|
listPagingPage(options, settings) {
|
|
27388
27388
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
27389
27389
|
let result;
|
|
27390
|
-
let continuationToken = settings === null || settings ===
|
|
27390
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27391
27391
|
if (!continuationToken) {
|
|
27392
27392
|
result = yield tslib.__await(this._list(options));
|
|
27393
27393
|
let page = result.value || [];
|
|
@@ -27440,7 +27440,7 @@ class DiscoveredSecuritySolutionsImpl {
|
|
|
27440
27440
|
return this;
|
|
27441
27441
|
},
|
|
27442
27442
|
byPage: (settings) => {
|
|
27443
|
-
if (settings === null || settings ===
|
|
27443
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27444
27444
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27445
27445
|
}
|
|
27446
27446
|
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
@@ -27450,7 +27450,7 @@ class DiscoveredSecuritySolutionsImpl {
|
|
|
27450
27450
|
listByHomeRegionPagingPage(ascLocation, options, settings) {
|
|
27451
27451
|
return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
|
|
27452
27452
|
let result;
|
|
27453
|
-
let continuationToken = settings === null || settings ===
|
|
27453
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27454
27454
|
if (!continuationToken) {
|
|
27455
27455
|
result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
|
|
27456
27456
|
let page = result.value || [];
|
|
@@ -27670,7 +27670,7 @@ class ExternalSecuritySolutionsImpl {
|
|
|
27670
27670
|
return this;
|
|
27671
27671
|
},
|
|
27672
27672
|
byPage: (settings) => {
|
|
27673
|
-
if (settings === null || settings ===
|
|
27673
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27674
27674
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27675
27675
|
}
|
|
27676
27676
|
return this.listPagingPage(options, settings);
|
|
@@ -27680,7 +27680,7 @@ class ExternalSecuritySolutionsImpl {
|
|
|
27680
27680
|
listPagingPage(options, settings) {
|
|
27681
27681
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
27682
27682
|
let result;
|
|
27683
|
-
let continuationToken = settings === null || settings ===
|
|
27683
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27684
27684
|
if (!continuationToken) {
|
|
27685
27685
|
result = yield tslib.__await(this._list(options));
|
|
27686
27686
|
let page = result.value || [];
|
|
@@ -27733,7 +27733,7 @@ class ExternalSecuritySolutionsImpl {
|
|
|
27733
27733
|
return this;
|
|
27734
27734
|
},
|
|
27735
27735
|
byPage: (settings) => {
|
|
27736
|
-
if (settings === null || settings ===
|
|
27736
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27737
27737
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27738
27738
|
}
|
|
27739
27739
|
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
@@ -27743,7 +27743,7 @@ class ExternalSecuritySolutionsImpl {
|
|
|
27743
27743
|
listByHomeRegionPagingPage(ascLocation, options, settings) {
|
|
27744
27744
|
return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
|
|
27745
27745
|
let result;
|
|
27746
|
-
let continuationToken = settings === null || settings ===
|
|
27746
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27747
27747
|
if (!continuationToken) {
|
|
27748
27748
|
result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
|
|
27749
27749
|
let page = result.value || [];
|
|
@@ -27963,7 +27963,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
27963
27963
|
return this;
|
|
27964
27964
|
},
|
|
27965
27965
|
byPage: (settings) => {
|
|
27966
|
-
if (settings === null || settings ===
|
|
27966
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
27967
27967
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
27968
27968
|
}
|
|
27969
27969
|
return this.listPagingPage(options, settings);
|
|
@@ -27973,7 +27973,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
27973
27973
|
listPagingPage(options, settings) {
|
|
27974
27974
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
27975
27975
|
let result;
|
|
27976
|
-
let continuationToken = settings === null || settings ===
|
|
27976
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
27977
27977
|
if (!continuationToken) {
|
|
27978
27978
|
result = yield tslib.__await(this._list(options));
|
|
27979
27979
|
let page = result.value || [];
|
|
@@ -28026,7 +28026,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
28026
28026
|
return this;
|
|
28027
28027
|
},
|
|
28028
28028
|
byPage: (settings) => {
|
|
28029
|
-
if (settings === null || settings ===
|
|
28029
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
28030
28030
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
28031
28031
|
}
|
|
28032
28032
|
return this.listByRegionPagingPage(ascLocation, options, settings);
|
|
@@ -28036,7 +28036,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
28036
28036
|
listByRegionPagingPage(ascLocation, options, settings) {
|
|
28037
28037
|
return tslib.__asyncGenerator(this, arguments, function* listByRegionPagingPage_1() {
|
|
28038
28038
|
let result;
|
|
28039
|
-
let continuationToken = settings === null || settings ===
|
|
28039
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
28040
28040
|
if (!continuationToken) {
|
|
28041
28041
|
result = yield tslib.__await(this._listByRegion(ascLocation, options));
|
|
28042
28042
|
let page = result.value || [];
|
|
@@ -28089,7 +28089,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
28089
28089
|
return this;
|
|
28090
28090
|
},
|
|
28091
28091
|
byPage: (settings) => {
|
|
28092
|
-
if (settings === null || settings ===
|
|
28092
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
28093
28093
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
28094
28094
|
}
|
|
28095
28095
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -28099,7 +28099,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
28099
28099
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
28100
28100
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
28101
28101
|
let result;
|
|
28102
|
-
let continuationToken = settings === null || settings ===
|
|
28102
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
28103
28103
|
if (!continuationToken) {
|
|
28104
28104
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
28105
28105
|
let page = result.value || [];
|
|
@@ -28154,7 +28154,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
28154
28154
|
return this;
|
|
28155
28155
|
},
|
|
28156
28156
|
byPage: (settings) => {
|
|
28157
|
-
if (settings === null || settings ===
|
|
28157
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
28158
28158
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
28159
28159
|
}
|
|
28160
28160
|
return this.listByResourceGroupAndRegionPagingPage(resourceGroupName, ascLocation, options, settings);
|
|
@@ -28164,7 +28164,7 @@ class JitNetworkAccessPoliciesImpl {
|
|
|
28164
28164
|
listByResourceGroupAndRegionPagingPage(resourceGroupName, ascLocation, options, settings) {
|
|
28165
28165
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupAndRegionPagingPage_1() {
|
|
28166
28166
|
let result;
|
|
28167
|
-
let continuationToken = settings === null || settings ===
|
|
28167
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
28168
28168
|
if (!continuationToken) {
|
|
28169
28169
|
result = yield tslib.__await(this._listByResourceGroupAndRegion(resourceGroupName, ascLocation, options));
|
|
28170
28170
|
let page = result.value || [];
|
|
@@ -28624,7 +28624,7 @@ class SecureScoresImpl {
|
|
|
28624
28624
|
return this;
|
|
28625
28625
|
},
|
|
28626
28626
|
byPage: (settings) => {
|
|
28627
|
-
if (settings === null || settings ===
|
|
28627
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
28628
28628
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
28629
28629
|
}
|
|
28630
28630
|
return this.listPagingPage(options, settings);
|
|
@@ -28634,7 +28634,7 @@ class SecureScoresImpl {
|
|
|
28634
28634
|
listPagingPage(options, settings) {
|
|
28635
28635
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
28636
28636
|
let result;
|
|
28637
|
-
let continuationToken = settings === null || settings ===
|
|
28637
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
28638
28638
|
if (!continuationToken) {
|
|
28639
28639
|
result = yield tslib.__await(this._list(options));
|
|
28640
28640
|
let page = result.value || [];
|
|
@@ -28788,7 +28788,7 @@ class SecureScoreControlsImpl {
|
|
|
28788
28788
|
return this;
|
|
28789
28789
|
},
|
|
28790
28790
|
byPage: (settings) => {
|
|
28791
|
-
if (settings === null || settings ===
|
|
28791
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
28792
28792
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
28793
28793
|
}
|
|
28794
28794
|
return this.listBySecureScorePagingPage(secureScoreName, options, settings);
|
|
@@ -28798,7 +28798,7 @@ class SecureScoreControlsImpl {
|
|
|
28798
28798
|
listBySecureScorePagingPage(secureScoreName, options, settings) {
|
|
28799
28799
|
return tslib.__asyncGenerator(this, arguments, function* listBySecureScorePagingPage_1() {
|
|
28800
28800
|
let result;
|
|
28801
|
-
let continuationToken = settings === null || settings ===
|
|
28801
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
28802
28802
|
if (!continuationToken) {
|
|
28803
28803
|
result = yield tslib.__await(this._listBySecureScore(secureScoreName, options));
|
|
28804
28804
|
let page = result.value || [];
|
|
@@ -28849,7 +28849,7 @@ class SecureScoreControlsImpl {
|
|
|
28849
28849
|
return this;
|
|
28850
28850
|
},
|
|
28851
28851
|
byPage: (settings) => {
|
|
28852
|
-
if (settings === null || settings ===
|
|
28852
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
28853
28853
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
28854
28854
|
}
|
|
28855
28855
|
return this.listPagingPage(options, settings);
|
|
@@ -28859,7 +28859,7 @@ class SecureScoreControlsImpl {
|
|
|
28859
28859
|
listPagingPage(options, settings) {
|
|
28860
28860
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
28861
28861
|
let result;
|
|
28862
|
-
let continuationToken = settings === null || settings ===
|
|
28862
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
28863
28863
|
if (!continuationToken) {
|
|
28864
28864
|
result = yield tslib.__await(this._list(options));
|
|
28865
28865
|
let page = result.value || [];
|
|
@@ -29040,7 +29040,7 @@ class SecureScoreControlDefinitionsImpl {
|
|
|
29040
29040
|
return this;
|
|
29041
29041
|
},
|
|
29042
29042
|
byPage: (settings) => {
|
|
29043
|
-
if (settings === null || settings ===
|
|
29043
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
29044
29044
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
29045
29045
|
}
|
|
29046
29046
|
return this.listPagingPage(options, settings);
|
|
@@ -29050,7 +29050,7 @@ class SecureScoreControlDefinitionsImpl {
|
|
|
29050
29050
|
listPagingPage(options, settings) {
|
|
29051
29051
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
29052
29052
|
let result;
|
|
29053
|
-
let continuationToken = settings === null || settings ===
|
|
29053
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
29054
29054
|
if (!continuationToken) {
|
|
29055
29055
|
result = yield tslib.__await(this._list(options));
|
|
29056
29056
|
let page = result.value || [];
|
|
@@ -29102,7 +29102,7 @@ class SecureScoreControlDefinitionsImpl {
|
|
|
29102
29102
|
return this;
|
|
29103
29103
|
},
|
|
29104
29104
|
byPage: (settings) => {
|
|
29105
|
-
if (settings === null || settings ===
|
|
29105
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
29106
29106
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
29107
29107
|
}
|
|
29108
29108
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -29112,7 +29112,7 @@ class SecureScoreControlDefinitionsImpl {
|
|
|
29112
29112
|
listBySubscriptionPagingPage(options, settings) {
|
|
29113
29113
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
29114
29114
|
let result;
|
|
29115
|
-
let continuationToken = settings === null || settings ===
|
|
29115
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
29116
29116
|
if (!continuationToken) {
|
|
29117
29117
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
29118
29118
|
let page = result.value || [];
|
|
@@ -29281,7 +29281,7 @@ class SecuritySolutionsImpl {
|
|
|
29281
29281
|
return this;
|
|
29282
29282
|
},
|
|
29283
29283
|
byPage: (settings) => {
|
|
29284
|
-
if (settings === null || settings ===
|
|
29284
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
29285
29285
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
29286
29286
|
}
|
|
29287
29287
|
return this.listPagingPage(options, settings);
|
|
@@ -29291,7 +29291,7 @@ class SecuritySolutionsImpl {
|
|
|
29291
29291
|
listPagingPage(options, settings) {
|
|
29292
29292
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
29293
29293
|
let result;
|
|
29294
|
-
let continuationToken = settings === null || settings ===
|
|
29294
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
29295
29295
|
if (!continuationToken) {
|
|
29296
29296
|
result = yield tslib.__await(this._list(options));
|
|
29297
29297
|
let page = result.value || [];
|
|
@@ -29569,17 +29569,17 @@ class ServerVulnerabilityAssessmentOperationsImpl {
|
|
|
29569
29569
|
* @param options The options parameters.
|
|
29570
29570
|
*/
|
|
29571
29571
|
beginDelete(resourceGroupName, resourceNamespace, resourceType, resourceName, options) {
|
|
29572
|
-
return tslib.__awaiter(this,
|
|
29573
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
29572
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29573
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29574
29574
|
return this.client.sendOperationRequest(args, spec);
|
|
29575
29575
|
});
|
|
29576
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
29576
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29577
29577
|
var _a;
|
|
29578
29578
|
let currentRawResponse = undefined;
|
|
29579
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
29579
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
29580
29580
|
const callback = (rawResponse, flatResponse) => {
|
|
29581
29581
|
currentRawResponse = rawResponse;
|
|
29582
|
-
providedCallback === null || providedCallback ===
|
|
29582
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
29583
29583
|
};
|
|
29584
29584
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
29585
29585
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -29604,8 +29604,8 @@ class ServerVulnerabilityAssessmentOperationsImpl {
|
|
|
29604
29604
|
spec: deleteOperationSpec$3,
|
|
29605
29605
|
});
|
|
29606
29606
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
29607
|
-
restoreFrom: options === null || options ===
|
|
29608
|
-
intervalInMs: options === null || options ===
|
|
29607
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
29608
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
29609
29609
|
resourceLocationConfig: "location",
|
|
29610
29610
|
});
|
|
29611
29611
|
yield poller.poll();
|
|
@@ -29622,7 +29622,7 @@ class ServerVulnerabilityAssessmentOperationsImpl {
|
|
|
29622
29622
|
* @param options The options parameters.
|
|
29623
29623
|
*/
|
|
29624
29624
|
beginDeleteAndWait(resourceGroupName, resourceNamespace, resourceType, resourceName, options) {
|
|
29625
|
-
return tslib.__awaiter(this,
|
|
29625
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
29626
29626
|
const poller = yield this.beginDelete(resourceGroupName, resourceNamespace, resourceType, resourceName, options);
|
|
29627
29627
|
return poller.pollUntilDone();
|
|
29628
29628
|
});
|
|
@@ -29758,7 +29758,7 @@ class TopologyImpl {
|
|
|
29758
29758
|
return this;
|
|
29759
29759
|
},
|
|
29760
29760
|
byPage: (settings) => {
|
|
29761
|
-
if (settings === null || settings ===
|
|
29761
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
29762
29762
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
29763
29763
|
}
|
|
29764
29764
|
return this.listPagingPage(options, settings);
|
|
@@ -29768,7 +29768,7 @@ class TopologyImpl {
|
|
|
29768
29768
|
listPagingPage(options, settings) {
|
|
29769
29769
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
29770
29770
|
let result;
|
|
29771
|
-
let continuationToken = settings === null || settings ===
|
|
29771
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
29772
29772
|
if (!continuationToken) {
|
|
29773
29773
|
result = yield tslib.__await(this._list(options));
|
|
29774
29774
|
let page = result.value || [];
|
|
@@ -29821,7 +29821,7 @@ class TopologyImpl {
|
|
|
29821
29821
|
return this;
|
|
29822
29822
|
},
|
|
29823
29823
|
byPage: (settings) => {
|
|
29824
|
-
if (settings === null || settings ===
|
|
29824
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
29825
29825
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
29826
29826
|
}
|
|
29827
29827
|
return this.listByHomeRegionPagingPage(ascLocation, options, settings);
|
|
@@ -29831,7 +29831,7 @@ class TopologyImpl {
|
|
|
29831
29831
|
listByHomeRegionPagingPage(ascLocation, options, settings) {
|
|
29832
29832
|
return tslib.__asyncGenerator(this, arguments, function* listByHomeRegionPagingPage_1() {
|
|
29833
29833
|
let result;
|
|
29834
|
-
let continuationToken = settings === null || settings ===
|
|
29834
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
29835
29835
|
if (!continuationToken) {
|
|
29836
29836
|
result = yield tslib.__await(this._listByHomeRegion(ascLocation, options));
|
|
29837
29837
|
let page = result.value || [];
|
|
@@ -30046,7 +30046,7 @@ class AssessmentsMetadataImpl {
|
|
|
30046
30046
|
return this;
|
|
30047
30047
|
},
|
|
30048
30048
|
byPage: (settings) => {
|
|
30049
|
-
if (settings === null || settings ===
|
|
30049
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30050
30050
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30051
30051
|
}
|
|
30052
30052
|
return this.listPagingPage(options, settings);
|
|
@@ -30056,7 +30056,7 @@ class AssessmentsMetadataImpl {
|
|
|
30056
30056
|
listPagingPage(options, settings) {
|
|
30057
30057
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
30058
30058
|
let result;
|
|
30059
|
-
let continuationToken = settings === null || settings ===
|
|
30059
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30060
30060
|
if (!continuationToken) {
|
|
30061
30061
|
result = yield tslib.__await(this._list(options));
|
|
30062
30062
|
let page = result.value || [];
|
|
@@ -30107,7 +30107,7 @@ class AssessmentsMetadataImpl {
|
|
|
30107
30107
|
return this;
|
|
30108
30108
|
},
|
|
30109
30109
|
byPage: (settings) => {
|
|
30110
|
-
if (settings === null || settings ===
|
|
30110
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30111
30111
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30112
30112
|
}
|
|
30113
30113
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -30117,7 +30117,7 @@ class AssessmentsMetadataImpl {
|
|
|
30117
30117
|
listBySubscriptionPagingPage(options, settings) {
|
|
30118
30118
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
30119
30119
|
let result;
|
|
30120
|
-
let continuationToken = settings === null || settings ===
|
|
30120
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30121
30121
|
if (!continuationToken) {
|
|
30122
30122
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
30123
30123
|
let page = result.value || [];
|
|
@@ -30398,7 +30398,7 @@ class AssessmentsImpl {
|
|
|
30398
30398
|
return this;
|
|
30399
30399
|
},
|
|
30400
30400
|
byPage: (settings) => {
|
|
30401
|
-
if (settings === null || settings ===
|
|
30401
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30402
30402
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30403
30403
|
}
|
|
30404
30404
|
return this.listPagingPage(scope, options, settings);
|
|
@@ -30408,7 +30408,7 @@ class AssessmentsImpl {
|
|
|
30408
30408
|
listPagingPage(scope, options, settings) {
|
|
30409
30409
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
30410
30410
|
let result;
|
|
30411
|
-
let continuationToken = settings === null || settings ===
|
|
30411
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30412
30412
|
if (!continuationToken) {
|
|
30413
30413
|
result = yield tslib.__await(this._list(scope, options));
|
|
30414
30414
|
let page = result.value || [];
|
|
@@ -30626,7 +30626,7 @@ class AlertsImpl {
|
|
|
30626
30626
|
return this;
|
|
30627
30627
|
},
|
|
30628
30628
|
byPage: (settings) => {
|
|
30629
|
-
if (settings === null || settings ===
|
|
30629
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30630
30630
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30631
30631
|
}
|
|
30632
30632
|
return this.listPagingPage(options, settings);
|
|
@@ -30636,7 +30636,7 @@ class AlertsImpl {
|
|
|
30636
30636
|
listPagingPage(options, settings) {
|
|
30637
30637
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
30638
30638
|
let result;
|
|
30639
|
-
let continuationToken = settings === null || settings ===
|
|
30639
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30640
30640
|
if (!continuationToken) {
|
|
30641
30641
|
result = yield tslib.__await(this._list(options));
|
|
30642
30642
|
let page = result.value || [];
|
|
@@ -30689,7 +30689,7 @@ class AlertsImpl {
|
|
|
30689
30689
|
return this;
|
|
30690
30690
|
},
|
|
30691
30691
|
byPage: (settings) => {
|
|
30692
|
-
if (settings === null || settings ===
|
|
30692
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30693
30693
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30694
30694
|
}
|
|
30695
30695
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -30699,7 +30699,7 @@ class AlertsImpl {
|
|
|
30699
30699
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
30700
30700
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
30701
30701
|
let result;
|
|
30702
|
-
let continuationToken = settings === null || settings ===
|
|
30702
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30703
30703
|
if (!continuationToken) {
|
|
30704
30704
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
30705
30705
|
let page = result.value || [];
|
|
@@ -30752,7 +30752,7 @@ class AlertsImpl {
|
|
|
30752
30752
|
return this;
|
|
30753
30753
|
},
|
|
30754
30754
|
byPage: (settings) => {
|
|
30755
|
-
if (settings === null || settings ===
|
|
30755
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30756
30756
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30757
30757
|
}
|
|
30758
30758
|
return this.listSubscriptionLevelByRegionPagingPage(ascLocation, options, settings);
|
|
@@ -30762,7 +30762,7 @@ class AlertsImpl {
|
|
|
30762
30762
|
listSubscriptionLevelByRegionPagingPage(ascLocation, options, settings) {
|
|
30763
30763
|
return tslib.__asyncGenerator(this, arguments, function* listSubscriptionLevelByRegionPagingPage_1() {
|
|
30764
30764
|
let result;
|
|
30765
|
-
let continuationToken = settings === null || settings ===
|
|
30765
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30766
30766
|
if (!continuationToken) {
|
|
30767
30767
|
result = yield tslib.__await(this._listSubscriptionLevelByRegion(ascLocation, options));
|
|
30768
30768
|
let page = result.value || [];
|
|
@@ -30818,7 +30818,7 @@ class AlertsImpl {
|
|
|
30818
30818
|
return this;
|
|
30819
30819
|
},
|
|
30820
30820
|
byPage: (settings) => {
|
|
30821
|
-
if (settings === null || settings ===
|
|
30821
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
30822
30822
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
30823
30823
|
}
|
|
30824
30824
|
return this.listResourceGroupLevelByRegionPagingPage(ascLocation, resourceGroupName, options, settings);
|
|
@@ -30828,7 +30828,7 @@ class AlertsImpl {
|
|
|
30828
30828
|
listResourceGroupLevelByRegionPagingPage(ascLocation, resourceGroupName, options, settings) {
|
|
30829
30829
|
return tslib.__asyncGenerator(this, arguments, function* listResourceGroupLevelByRegionPagingPage_1() {
|
|
30830
30830
|
let result;
|
|
30831
|
-
let continuationToken = settings === null || settings ===
|
|
30831
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
30832
30832
|
if (!continuationToken) {
|
|
30833
30833
|
result = yield tslib.__await(this._listResourceGroupLevelByRegion(ascLocation, resourceGroupName, options));
|
|
30834
30834
|
let page = result.value || [];
|
|
@@ -31020,17 +31020,17 @@ class AlertsImpl {
|
|
|
31020
31020
|
* @param options The options parameters.
|
|
31021
31021
|
*/
|
|
31022
31022
|
beginSimulate(ascLocation, alertSimulatorRequestBody, options) {
|
|
31023
|
-
return tslib.__awaiter(this,
|
|
31024
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
31023
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31024
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31025
31025
|
return this.client.sendOperationRequest(args, spec);
|
|
31026
31026
|
});
|
|
31027
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
31027
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31028
31028
|
var _a;
|
|
31029
31029
|
let currentRawResponse = undefined;
|
|
31030
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
31030
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
31031
31031
|
const callback = (rawResponse, flatResponse) => {
|
|
31032
31032
|
currentRawResponse = rawResponse;
|
|
31033
|
-
providedCallback === null || providedCallback ===
|
|
31033
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
31034
31034
|
};
|
|
31035
31035
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
31036
31036
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -31049,8 +31049,8 @@ class AlertsImpl {
|
|
|
31049
31049
|
spec: simulateOperationSpec,
|
|
31050
31050
|
});
|
|
31051
31051
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
31052
|
-
restoreFrom: options === null || options ===
|
|
31053
|
-
intervalInMs: options === null || options ===
|
|
31052
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
31053
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
31054
31054
|
resourceLocationConfig: "original-uri",
|
|
31055
31055
|
});
|
|
31056
31056
|
yield poller.poll();
|
|
@@ -31065,7 +31065,7 @@ class AlertsImpl {
|
|
|
31065
31065
|
* @param options The options parameters.
|
|
31066
31066
|
*/
|
|
31067
31067
|
beginSimulateAndWait(ascLocation, alertSimulatorRequestBody, options) {
|
|
31068
|
-
return tslib.__awaiter(this,
|
|
31068
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
31069
31069
|
const poller = yield this.beginSimulate(ascLocation, alertSimulatorRequestBody, options);
|
|
31070
31070
|
return poller.pollUntilDone();
|
|
31071
31071
|
});
|
|
@@ -31526,7 +31526,7 @@ class SettingsImpl {
|
|
|
31526
31526
|
return this;
|
|
31527
31527
|
},
|
|
31528
31528
|
byPage: (settings) => {
|
|
31529
|
-
if (settings === null || settings ===
|
|
31529
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31530
31530
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31531
31531
|
}
|
|
31532
31532
|
return this.listPagingPage(options, settings);
|
|
@@ -31536,7 +31536,7 @@ class SettingsImpl {
|
|
|
31536
31536
|
listPagingPage(options, settings) {
|
|
31537
31537
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
31538
31538
|
let result;
|
|
31539
|
-
let continuationToken = settings === null || settings ===
|
|
31539
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31540
31540
|
if (!continuationToken) {
|
|
31541
31541
|
result = yield tslib.__await(this._list(options));
|
|
31542
31542
|
let page = result.value || [];
|
|
@@ -31717,7 +31717,7 @@ class ServerVulnerabilityAssessmentsSettingsImpl {
|
|
|
31717
31717
|
return this;
|
|
31718
31718
|
},
|
|
31719
31719
|
byPage: (settings) => {
|
|
31720
|
-
if (settings === null || settings ===
|
|
31720
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31721
31721
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31722
31722
|
}
|
|
31723
31723
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -31727,7 +31727,7 @@ class ServerVulnerabilityAssessmentsSettingsImpl {
|
|
|
31727
31727
|
listBySubscriptionPagingPage(options, settings) {
|
|
31728
31728
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
31729
31729
|
let result;
|
|
31730
|
-
let continuationToken = settings === null || settings ===
|
|
31730
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31731
31731
|
if (!continuationToken) {
|
|
31732
31732
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
31733
31733
|
let page = result.value || [];
|
|
@@ -31942,7 +31942,7 @@ class APICollectionsImpl {
|
|
|
31942
31942
|
return this;
|
|
31943
31943
|
},
|
|
31944
31944
|
byPage: (settings) => {
|
|
31945
|
-
if (settings === null || settings ===
|
|
31945
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
31946
31946
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
31947
31947
|
}
|
|
31948
31948
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -31952,7 +31952,7 @@ class APICollectionsImpl {
|
|
|
31952
31952
|
listBySubscriptionPagingPage(options, settings) {
|
|
31953
31953
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
31954
31954
|
let result;
|
|
31955
|
-
let continuationToken = settings === null || settings ===
|
|
31955
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
31956
31956
|
if (!continuationToken) {
|
|
31957
31957
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
31958
31958
|
let page = result.value || [];
|
|
@@ -32005,7 +32005,7 @@ class APICollectionsImpl {
|
|
|
32005
32005
|
return this;
|
|
32006
32006
|
},
|
|
32007
32007
|
byPage: (settings) => {
|
|
32008
|
-
if (settings === null || settings ===
|
|
32008
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
32009
32009
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
32010
32010
|
}
|
|
32011
32011
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -32015,7 +32015,7 @@ class APICollectionsImpl {
|
|
|
32015
32015
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
32016
32016
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
32017
32017
|
let result;
|
|
32018
|
-
let continuationToken = settings === null || settings ===
|
|
32018
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
32019
32019
|
if (!continuationToken) {
|
|
32020
32020
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
32021
32021
|
let page = result.value || [];
|
|
@@ -32071,7 +32071,7 @@ class APICollectionsImpl {
|
|
|
32071
32071
|
return this;
|
|
32072
32072
|
},
|
|
32073
32073
|
byPage: (settings) => {
|
|
32074
|
-
if (settings === null || settings ===
|
|
32074
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
32075
32075
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
32076
32076
|
}
|
|
32077
32077
|
return this.listByAzureApiManagementServicePagingPage(resourceGroupName, serviceName, options, settings);
|
|
@@ -32081,7 +32081,7 @@ class APICollectionsImpl {
|
|
|
32081
32081
|
listByAzureApiManagementServicePagingPage(resourceGroupName, serviceName, options, settings) {
|
|
32082
32082
|
return tslib.__asyncGenerator(this, arguments, function* listByAzureApiManagementServicePagingPage_1() {
|
|
32083
32083
|
let result;
|
|
32084
|
-
let continuationToken = settings === null || settings ===
|
|
32084
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
32085
32085
|
if (!continuationToken) {
|
|
32086
32086
|
result = yield tslib.__await(this._listByAzureApiManagementService(resourceGroupName, serviceName, options));
|
|
32087
32087
|
let page = result.value || [];
|
|
@@ -32172,17 +32172,17 @@ class APICollectionsImpl {
|
|
|
32172
32172
|
* @param options The options parameters.
|
|
32173
32173
|
*/
|
|
32174
32174
|
beginOnboardAzureApiManagementApi(resourceGroupName, serviceName, apiId, options) {
|
|
32175
|
-
return tslib.__awaiter(this,
|
|
32176
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
32175
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32176
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32177
32177
|
return this.client.sendOperationRequest(args, spec);
|
|
32178
32178
|
});
|
|
32179
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
32179
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32180
32180
|
var _a;
|
|
32181
32181
|
let currentRawResponse = undefined;
|
|
32182
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
32182
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
32183
32183
|
const callback = (rawResponse, flatResponse) => {
|
|
32184
32184
|
currentRawResponse = rawResponse;
|
|
32185
|
-
providedCallback === null || providedCallback ===
|
|
32185
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
32186
32186
|
};
|
|
32187
32187
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
32188
32188
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -32201,8 +32201,8 @@ class APICollectionsImpl {
|
|
|
32201
32201
|
spec: onboardAzureApiManagementApiOperationSpec,
|
|
32202
32202
|
});
|
|
32203
32203
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
32204
|
-
restoreFrom: options === null || options ===
|
|
32205
|
-
intervalInMs: options === null || options ===
|
|
32204
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
32205
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
32206
32206
|
resourceLocationConfig: "location",
|
|
32207
32207
|
});
|
|
32208
32208
|
yield poller.poll();
|
|
@@ -32220,7 +32220,7 @@ class APICollectionsImpl {
|
|
|
32220
32220
|
* @param options The options parameters.
|
|
32221
32221
|
*/
|
|
32222
32222
|
beginOnboardAzureApiManagementApiAndWait(resourceGroupName, serviceName, apiId, options) {
|
|
32223
|
-
return tslib.__awaiter(this,
|
|
32223
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32224
32224
|
const poller = yield this.beginOnboardAzureApiManagementApi(resourceGroupName, serviceName, apiId, options);
|
|
32225
32225
|
return poller.pollUntilDone();
|
|
32226
32226
|
});
|
|
@@ -32650,10 +32650,10 @@ class SecurityCenter extends coreClient__namespace.ServiceClient {
|
|
|
32650
32650
|
: `${packageDetails}`;
|
|
32651
32651
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
32652
32652
|
userAgentPrefix,
|
|
32653
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
32653
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
32654
32654
|
super(optionsWithDefaults);
|
|
32655
32655
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
32656
|
-
if ((options === null || options ===
|
|
32656
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
32657
32657
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
32658
32658
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
32659
32659
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -32667,7 +32667,7 @@ class SecurityCenter extends coreClient__namespace.ServiceClient {
|
|
|
32667
32667
|
});
|
|
32668
32668
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
32669
32669
|
credential: credentials,
|
|
32670
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
32670
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
32671
32671
|
challengeCallbacks: {
|
|
32672
32672
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
32673
32673
|
},
|