@azure/arm-securityinsight 1.0.0-alpha.20250207.1 → 1.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 +66 -66
- 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
|
}
|
|
@@ -16449,7 +16449,7 @@ class AlertRulesImpl {
|
|
|
16449
16449
|
return this;
|
|
16450
16450
|
},
|
|
16451
16451
|
byPage: (settings) => {
|
|
16452
|
-
if (settings === null || settings ===
|
|
16452
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
16453
16453
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16454
16454
|
}
|
|
16455
16455
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -16459,7 +16459,7 @@ class AlertRulesImpl {
|
|
|
16459
16459
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
16460
16460
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
16461
16461
|
let result;
|
|
16462
|
-
let continuationToken = settings === null || settings ===
|
|
16462
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
16463
16463
|
if (!continuationToken) {
|
|
16464
16464
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
16465
16465
|
let page = result.value || [];
|
|
@@ -16696,7 +16696,7 @@ class ActionsImpl {
|
|
|
16696
16696
|
return this;
|
|
16697
16697
|
},
|
|
16698
16698
|
byPage: (settings) => {
|
|
16699
|
-
if (settings === null || settings ===
|
|
16699
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
16700
16700
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16701
16701
|
}
|
|
16702
16702
|
return this.listByAlertRulePagingPage(resourceGroupName, workspaceName, ruleId, options, settings);
|
|
@@ -16706,7 +16706,7 @@ class ActionsImpl {
|
|
|
16706
16706
|
listByAlertRulePagingPage(resourceGroupName, workspaceName, ruleId, options, settings) {
|
|
16707
16707
|
return tslib.__asyncGenerator(this, arguments, function* listByAlertRulePagingPage_1() {
|
|
16708
16708
|
let result;
|
|
16709
|
-
let continuationToken = settings === null || settings ===
|
|
16709
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
16710
16710
|
if (!continuationToken) {
|
|
16711
16711
|
result = yield tslib.__await(this._listByAlertRule(resourceGroupName, workspaceName, ruleId, options));
|
|
16712
16712
|
let page = result.value || [];
|
|
@@ -16952,7 +16952,7 @@ class AlertRuleTemplatesImpl {
|
|
|
16952
16952
|
return this;
|
|
16953
16953
|
},
|
|
16954
16954
|
byPage: (settings) => {
|
|
16955
|
-
if (settings === null || settings ===
|
|
16955
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
16956
16956
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16957
16957
|
}
|
|
16958
16958
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -16962,7 +16962,7 @@ class AlertRuleTemplatesImpl {
|
|
|
16962
16962
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
16963
16963
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
16964
16964
|
let result;
|
|
16965
|
-
let continuationToken = settings === null || settings ===
|
|
16965
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
16966
16966
|
if (!continuationToken) {
|
|
16967
16967
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
16968
16968
|
let page = result.value || [];
|
|
@@ -17129,7 +17129,7 @@ class AutomationRulesImpl {
|
|
|
17129
17129
|
return this;
|
|
17130
17130
|
},
|
|
17131
17131
|
byPage: (settings) => {
|
|
17132
|
-
if (settings === null || settings ===
|
|
17132
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17133
17133
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17134
17134
|
}
|
|
17135
17135
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -17139,7 +17139,7 @@ class AutomationRulesImpl {
|
|
|
17139
17139
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
17140
17140
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
17141
17141
|
let result;
|
|
17142
|
-
let continuationToken = settings === null || settings ===
|
|
17142
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17143
17143
|
if (!continuationToken) {
|
|
17144
17144
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
17145
17145
|
let page = result.value || [];
|
|
@@ -17382,7 +17382,7 @@ class IncidentsImpl {
|
|
|
17382
17382
|
return this;
|
|
17383
17383
|
},
|
|
17384
17384
|
byPage: (settings) => {
|
|
17385
|
-
if (settings === null || settings ===
|
|
17385
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17386
17386
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17387
17387
|
}
|
|
17388
17388
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -17392,7 +17392,7 @@ class IncidentsImpl {
|
|
|
17392
17392
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
17393
17393
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
17394
17394
|
let result;
|
|
17395
|
-
let continuationToken = settings === null || settings ===
|
|
17395
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17396
17396
|
if (!continuationToken) {
|
|
17397
17397
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
17398
17398
|
let page = result.value || [];
|
|
@@ -17802,7 +17802,7 @@ class BookmarksImpl {
|
|
|
17802
17802
|
return this;
|
|
17803
17803
|
},
|
|
17804
17804
|
byPage: (settings) => {
|
|
17805
|
-
if (settings === null || settings ===
|
|
17805
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17806
17806
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17807
17807
|
}
|
|
17808
17808
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -17812,7 +17812,7 @@ class BookmarksImpl {
|
|
|
17812
17812
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
17813
17813
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
17814
17814
|
let result;
|
|
17815
|
-
let continuationToken = settings === null || settings ===
|
|
17815
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17816
17816
|
if (!continuationToken) {
|
|
17817
17817
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
17818
17818
|
let page = result.value || [];
|
|
@@ -18049,7 +18049,7 @@ class BookmarkRelationsImpl {
|
|
|
18049
18049
|
return this;
|
|
18050
18050
|
},
|
|
18051
18051
|
byPage: (settings) => {
|
|
18052
|
-
if (settings === null || settings ===
|
|
18052
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
18053
18053
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18054
18054
|
}
|
|
18055
18055
|
return this.listPagingPage(resourceGroupName, workspaceName, bookmarkId, options, settings);
|
|
@@ -18059,7 +18059,7 @@ class BookmarkRelationsImpl {
|
|
|
18059
18059
|
listPagingPage(resourceGroupName, workspaceName, bookmarkId, options, settings) {
|
|
18060
18060
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
18061
18061
|
let result;
|
|
18062
|
-
let continuationToken = settings === null || settings ===
|
|
18062
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
18063
18063
|
if (!continuationToken) {
|
|
18064
18064
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, bookmarkId, options));
|
|
18065
18065
|
let page = result.value || [];
|
|
@@ -18471,7 +18471,7 @@ class EntitiesImpl {
|
|
|
18471
18471
|
return this;
|
|
18472
18472
|
},
|
|
18473
18473
|
byPage: (settings) => {
|
|
18474
|
-
if (settings === null || settings ===
|
|
18474
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
18475
18475
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18476
18476
|
}
|
|
18477
18477
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -18481,7 +18481,7 @@ class EntitiesImpl {
|
|
|
18481
18481
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
18482
18482
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
18483
18483
|
let result;
|
|
18484
|
-
let continuationToken = settings === null || settings ===
|
|
18484
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
18485
18485
|
if (!continuationToken) {
|
|
18486
18486
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
18487
18487
|
let page = result.value || [];
|
|
@@ -18807,7 +18807,7 @@ class EntitiesRelationsImpl {
|
|
|
18807
18807
|
return this;
|
|
18808
18808
|
},
|
|
18809
18809
|
byPage: (settings) => {
|
|
18810
|
-
if (settings === null || settings ===
|
|
18810
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
18811
18811
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18812
18812
|
}
|
|
18813
18813
|
return this.listPagingPage(resourceGroupName, workspaceName, entityId, options, settings);
|
|
@@ -18817,7 +18817,7 @@ class EntitiesRelationsImpl {
|
|
|
18817
18817
|
listPagingPage(resourceGroupName, workspaceName, entityId, options, settings) {
|
|
18818
18818
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
18819
18819
|
let result;
|
|
18820
|
-
let continuationToken = settings === null || settings ===
|
|
18820
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
18821
18821
|
if (!continuationToken) {
|
|
18822
18822
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, entityId, options));
|
|
18823
18823
|
let page = result.value || [];
|
|
@@ -19016,7 +19016,7 @@ class EntityQueriesImpl {
|
|
|
19016
19016
|
return this;
|
|
19017
19017
|
},
|
|
19018
19018
|
byPage: (settings) => {
|
|
19019
|
-
if (settings === null || settings ===
|
|
19019
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
19020
19020
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
19021
19021
|
}
|
|
19022
19022
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -19026,7 +19026,7 @@ class EntityQueriesImpl {
|
|
|
19026
19026
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
19027
19027
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
19028
19028
|
let result;
|
|
19029
|
-
let continuationToken = settings === null || settings ===
|
|
19029
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
19030
19030
|
if (!continuationToken) {
|
|
19031
19031
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
19032
19032
|
let page = result.value || [];
|
|
@@ -19262,7 +19262,7 @@ class EntityQueryTemplatesImpl {
|
|
|
19262
19262
|
return this;
|
|
19263
19263
|
},
|
|
19264
19264
|
byPage: (settings) => {
|
|
19265
|
-
if (settings === null || settings ===
|
|
19265
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
19266
19266
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
19267
19267
|
}
|
|
19268
19268
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -19272,7 +19272,7 @@ class EntityQueryTemplatesImpl {
|
|
|
19272
19272
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
19273
19273
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
19274
19274
|
let result;
|
|
19275
|
-
let continuationToken = settings === null || settings ===
|
|
19275
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
19276
19276
|
if (!continuationToken) {
|
|
19277
19277
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
19278
19278
|
let page = result.value || [];
|
|
@@ -19422,12 +19422,12 @@ class LroImpl {
|
|
|
19422
19422
|
this.requestMethod = requestMethod;
|
|
19423
19423
|
}
|
|
19424
19424
|
sendInitialRequest() {
|
|
19425
|
-
return tslib.__awaiter(this,
|
|
19425
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
19426
19426
|
return this.sendOperationFn(this.args, this.spec);
|
|
19427
19427
|
});
|
|
19428
19428
|
}
|
|
19429
19429
|
sendPollRequest(path) {
|
|
19430
|
-
return tslib.__awaiter(this,
|
|
19430
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
19431
19431
|
const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
19432
19432
|
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
19433
19433
|
});
|
|
@@ -19467,7 +19467,7 @@ class FileImportsImpl {
|
|
|
19467
19467
|
return this;
|
|
19468
19468
|
},
|
|
19469
19469
|
byPage: (settings) => {
|
|
19470
|
-
if (settings === null || settings ===
|
|
19470
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
19471
19471
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
19472
19472
|
}
|
|
19473
19473
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -19477,7 +19477,7 @@ class FileImportsImpl {
|
|
|
19477
19477
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
19478
19478
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
19479
19479
|
let result;
|
|
19480
|
-
let continuationToken = settings === null || settings ===
|
|
19480
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
19481
19481
|
if (!continuationToken) {
|
|
19482
19482
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
19483
19483
|
let page = result.value || [];
|
|
@@ -19552,17 +19552,17 @@ class FileImportsImpl {
|
|
|
19552
19552
|
* @param options The options parameters.
|
|
19553
19553
|
*/
|
|
19554
19554
|
beginDelete(resourceGroupName, workspaceName, fileImportId, options) {
|
|
19555
|
-
return tslib.__awaiter(this,
|
|
19556
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19555
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
19556
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
19557
19557
|
return this.client.sendOperationRequest(args, spec);
|
|
19558
19558
|
});
|
|
19559
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
19559
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
19560
19560
|
var _a;
|
|
19561
19561
|
let currentRawResponse = undefined;
|
|
19562
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
19562
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
19563
19563
|
const callback = (rawResponse, flatResponse) => {
|
|
19564
19564
|
currentRawResponse = rawResponse;
|
|
19565
|
-
providedCallback === null || providedCallback ===
|
|
19565
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
19566
19566
|
};
|
|
19567
19567
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
19568
19568
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -19577,8 +19577,8 @@ class FileImportsImpl {
|
|
|
19577
19577
|
});
|
|
19578
19578
|
const lro = new LroImpl(sendOperation, { resourceGroupName, workspaceName, fileImportId, options }, deleteOperationSpec$c);
|
|
19579
19579
|
const poller = new coreLro.LroEngine(lro, {
|
|
19580
|
-
resumeFrom: options === null || options ===
|
|
19581
|
-
intervalInMs: options === null || options ===
|
|
19580
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
19581
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
19582
19582
|
lroResourceLocationConfig: "location"
|
|
19583
19583
|
});
|
|
19584
19584
|
yield poller.poll();
|
|
@@ -19593,7 +19593,7 @@ class FileImportsImpl {
|
|
|
19593
19593
|
* @param options The options parameters.
|
|
19594
19594
|
*/
|
|
19595
19595
|
beginDeleteAndWait(resourceGroupName, workspaceName, fileImportId, options) {
|
|
19596
|
-
return tslib.__awaiter(this,
|
|
19596
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
19597
19597
|
const poller = yield this.beginDelete(resourceGroupName, workspaceName, fileImportId, options);
|
|
19598
19598
|
return poller.pollUntilDone();
|
|
19599
19599
|
});
|
|
@@ -19771,7 +19771,7 @@ class IncidentCommentsImpl {
|
|
|
19771
19771
|
return this;
|
|
19772
19772
|
},
|
|
19773
19773
|
byPage: (settings) => {
|
|
19774
|
-
if (settings === null || settings ===
|
|
19774
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
19775
19775
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
19776
19776
|
}
|
|
19777
19777
|
return this.listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings);
|
|
@@ -19781,7 +19781,7 @@ class IncidentCommentsImpl {
|
|
|
19781
19781
|
listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings) {
|
|
19782
19782
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
19783
19783
|
let result;
|
|
19784
|
-
let continuationToken = settings === null || settings ===
|
|
19784
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
19785
19785
|
if (!continuationToken) {
|
|
19786
19786
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, incidentId, options));
|
|
19787
19787
|
let page = result.value || [];
|
|
@@ -20053,7 +20053,7 @@ class IncidentRelationsImpl {
|
|
|
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.listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings);
|
|
@@ -20063,7 +20063,7 @@ class IncidentRelationsImpl {
|
|
|
20063
20063
|
listPagingPage(resourceGroupName, workspaceName, incidentId, options, settings) {
|
|
20064
20064
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_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._list(resourceGroupName, workspaceName, incidentId, options));
|
|
20069
20069
|
let page = result.value || [];
|
|
@@ -20322,7 +20322,7 @@ class MetadataImpl {
|
|
|
20322
20322
|
return this;
|
|
20323
20323
|
},
|
|
20324
20324
|
byPage: (settings) => {
|
|
20325
|
-
if (settings === null || settings ===
|
|
20325
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
20326
20326
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
20327
20327
|
}
|
|
20328
20328
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -20332,7 +20332,7 @@ class MetadataImpl {
|
|
|
20332
20332
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
20333
20333
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
20334
20334
|
let result;
|
|
20335
|
-
let continuationToken = settings === null || settings ===
|
|
20335
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
20336
20336
|
if (!continuationToken) {
|
|
20337
20337
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
20338
20338
|
let page = result.value || [];
|
|
@@ -20615,7 +20615,7 @@ class OfficeConsentsImpl {
|
|
|
20615
20615
|
return this;
|
|
20616
20616
|
},
|
|
20617
20617
|
byPage: (settings) => {
|
|
20618
|
-
if (settings === null || settings ===
|
|
20618
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
20619
20619
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
20620
20620
|
}
|
|
20621
20621
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -20625,7 +20625,7 @@ class OfficeConsentsImpl {
|
|
|
20625
20625
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
20626
20626
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
20627
20627
|
let result;
|
|
20628
|
-
let continuationToken = settings === null || settings ===
|
|
20628
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
20629
20629
|
if (!continuationToken) {
|
|
20630
20630
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
20631
20631
|
let page = result.value || [];
|
|
@@ -20988,7 +20988,7 @@ class SecurityMLAnalyticsSettingsImpl {
|
|
|
20988
20988
|
return this;
|
|
20989
20989
|
},
|
|
20990
20990
|
byPage: (settings) => {
|
|
20991
|
-
if (settings === null || settings ===
|
|
20991
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
20992
20992
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
20993
20993
|
}
|
|
20994
20994
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -20998,7 +20998,7 @@ class SecurityMLAnalyticsSettingsImpl {
|
|
|
20998
20998
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
20999
20999
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
21000
21000
|
let result;
|
|
21001
|
-
let continuationToken = settings === null || settings ===
|
|
21001
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
21002
21002
|
if (!continuationToken) {
|
|
21003
21003
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
21004
21004
|
let page = result.value || [];
|
|
@@ -21389,7 +21389,7 @@ class SourceControlOperationsImpl {
|
|
|
21389
21389
|
return this;
|
|
21390
21390
|
},
|
|
21391
21391
|
byPage: (settings) => {
|
|
21392
|
-
if (settings === null || settings ===
|
|
21392
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
21393
21393
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
21394
21394
|
}
|
|
21395
21395
|
return this.listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, options, settings);
|
|
@@ -21399,7 +21399,7 @@ class SourceControlOperationsImpl {
|
|
|
21399
21399
|
listRepositoriesPagingPage(resourceGroupName, workspaceName, repoType, options, settings) {
|
|
21400
21400
|
return tslib.__asyncGenerator(this, arguments, function* listRepositoriesPagingPage_1() {
|
|
21401
21401
|
let result;
|
|
21402
|
-
let continuationToken = settings === null || settings ===
|
|
21402
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
21403
21403
|
if (!continuationToken) {
|
|
21404
21404
|
result = yield tslib.__await(this._listRepositories(resourceGroupName, workspaceName, repoType, options));
|
|
21405
21405
|
let page = result.value || [];
|
|
@@ -21539,7 +21539,7 @@ class SourceControlsImpl {
|
|
|
21539
21539
|
return this;
|
|
21540
21540
|
},
|
|
21541
21541
|
byPage: (settings) => {
|
|
21542
|
-
if (settings === null || settings ===
|
|
21542
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
21543
21543
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
21544
21544
|
}
|
|
21545
21545
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -21549,7 +21549,7 @@ class SourceControlsImpl {
|
|
|
21549
21549
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
21550
21550
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
21551
21551
|
let result;
|
|
21552
|
-
let continuationToken = settings === null || settings ===
|
|
21552
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
21553
21553
|
if (!continuationToken) {
|
|
21554
21554
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
21555
21555
|
let page = result.value || [];
|
|
@@ -21793,7 +21793,7 @@ class ThreatIntelligenceIndicatorImpl {
|
|
|
21793
21793
|
return this;
|
|
21794
21794
|
},
|
|
21795
21795
|
byPage: (settings) => {
|
|
21796
|
-
if (settings === null || settings ===
|
|
21796
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
21797
21797
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
21798
21798
|
}
|
|
21799
21799
|
return this.queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options, settings);
|
|
@@ -21803,7 +21803,7 @@ class ThreatIntelligenceIndicatorImpl {
|
|
|
21803
21803
|
queryIndicatorsPagingPage(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options, settings) {
|
|
21804
21804
|
return tslib.__asyncGenerator(this, arguments, function* queryIndicatorsPagingPage_1() {
|
|
21805
21805
|
let result;
|
|
21806
|
-
let continuationToken = settings === null || settings ===
|
|
21806
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
21807
21807
|
if (!continuationToken) {
|
|
21808
21808
|
result = yield tslib.__await(this._queryIndicators(resourceGroupName, workspaceName, threatIntelligenceFilteringCriteria, options));
|
|
21809
21809
|
let page = result.value || [];
|
|
@@ -22186,7 +22186,7 @@ class ThreatIntelligenceIndicatorsImpl {
|
|
|
22186
22186
|
return this;
|
|
22187
22187
|
},
|
|
22188
22188
|
byPage: (settings) => {
|
|
22189
|
-
if (settings === null || settings ===
|
|
22189
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22190
22190
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22191
22191
|
}
|
|
22192
22192
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -22196,7 +22196,7 @@ class ThreatIntelligenceIndicatorsImpl {
|
|
|
22196
22196
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
22197
22197
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22198
22198
|
let result;
|
|
22199
|
-
let continuationToken = settings === null || settings ===
|
|
22199
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22200
22200
|
if (!continuationToken) {
|
|
22201
22201
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
22202
22202
|
let page = result.value || [];
|
|
@@ -22387,7 +22387,7 @@ class WatchlistsImpl {
|
|
|
22387
22387
|
return this;
|
|
22388
22388
|
},
|
|
22389
22389
|
byPage: (settings) => {
|
|
22390
|
-
if (settings === null || settings ===
|
|
22390
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22391
22391
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22392
22392
|
}
|
|
22393
22393
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -22397,7 +22397,7 @@ class WatchlistsImpl {
|
|
|
22397
22397
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
22398
22398
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22399
22399
|
let result;
|
|
22400
|
-
let continuationToken = settings === null || settings ===
|
|
22400
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22401
22401
|
if (!continuationToken) {
|
|
22402
22402
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
22403
22403
|
let page = result.value || [];
|
|
@@ -22642,7 +22642,7 @@ class WatchlistItemsImpl {
|
|
|
22642
22642
|
return this;
|
|
22643
22643
|
},
|
|
22644
22644
|
byPage: (settings) => {
|
|
22645
|
-
if (settings === null || settings ===
|
|
22645
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22646
22646
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22647
22647
|
}
|
|
22648
22648
|
return this.listPagingPage(resourceGroupName, workspaceName, watchlistAlias, options, settings);
|
|
@@ -22652,7 +22652,7 @@ class WatchlistItemsImpl {
|
|
|
22652
22652
|
listPagingPage(resourceGroupName, workspaceName, watchlistAlias, options, settings) {
|
|
22653
22653
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22654
22654
|
let result;
|
|
22655
|
-
let continuationToken = settings === null || settings ===
|
|
22655
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22656
22656
|
if (!continuationToken) {
|
|
22657
22657
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, watchlistAlias, options));
|
|
22658
22658
|
let page = result.value || [];
|
|
@@ -22917,7 +22917,7 @@ class DataConnectorsImpl {
|
|
|
22917
22917
|
return this;
|
|
22918
22918
|
},
|
|
22919
22919
|
byPage: (settings) => {
|
|
22920
|
-
if (settings === null || settings ===
|
|
22920
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
22921
22921
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
22922
22922
|
}
|
|
22923
22923
|
return this.listPagingPage(resourceGroupName, workspaceName, options, settings);
|
|
@@ -22927,7 +22927,7 @@ class DataConnectorsImpl {
|
|
|
22927
22927
|
listPagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
22928
22928
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
22929
22929
|
let result;
|
|
22930
|
-
let continuationToken = settings === null || settings ===
|
|
22930
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
22931
22931
|
if (!continuationToken) {
|
|
22932
22932
|
result = yield tslib.__await(this._list(resourceGroupName, workspaceName, options));
|
|
22933
22933
|
let page = result.value || [];
|
|
@@ -23294,7 +23294,7 @@ class OperationsImpl {
|
|
|
23294
23294
|
return this;
|
|
23295
23295
|
},
|
|
23296
23296
|
byPage: (settings) => {
|
|
23297
|
-
if (settings === null || settings ===
|
|
23297
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
23298
23298
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
23299
23299
|
}
|
|
23300
23300
|
return this.listPagingPage(options, settings);
|
|
@@ -23304,7 +23304,7 @@ class OperationsImpl {
|
|
|
23304
23304
|
listPagingPage(options, settings) {
|
|
23305
23305
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
23306
23306
|
let result;
|
|
23307
|
-
let continuationToken = settings === null || settings ===
|
|
23307
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
23308
23308
|
if (!continuationToken) {
|
|
23309
23309
|
result = yield tslib.__await(this._list(options));
|
|
23310
23310
|
let page = result.value || [];
|
|
@@ -23427,10 +23427,10 @@ class SecurityInsights extends coreClient__namespace.ServiceClient {
|
|
|
23427
23427
|
: `${packageDetails}`;
|
|
23428
23428
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
23429
23429
|
userAgentPrefix
|
|
23430
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
23430
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
23431
23431
|
super(optionsWithDefaults);
|
|
23432
23432
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
23433
|
-
if ((options === null || options ===
|
|
23433
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
23434
23434
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
23435
23435
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
23436
23436
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -23444,7 +23444,7 @@ class SecurityInsights extends coreClient__namespace.ServiceClient {
|
|
|
23444
23444
|
});
|
|
23445
23445
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
23446
23446
|
credential: credentials,
|
|
23447
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
23447
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
23448
23448
|
challengeCallbacks: {
|
|
23449
23449
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
23450
23450
|
}
|
|
@@ -23499,7 +23499,7 @@ class SecurityInsights extends coreClient__namespace.ServiceClient {
|
|
|
23499
23499
|
const apiVersionPolicy = {
|
|
23500
23500
|
name: "CustomApiVersionPolicy",
|
|
23501
23501
|
sendRequest(request, next) {
|
|
23502
|
-
return tslib.__awaiter(this,
|
|
23502
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23503
23503
|
const param = request.url.split("?");
|
|
23504
23504
|
if (param.length > 1) {
|
|
23505
23505
|
const newParams = param[1].split("&").map((item) => {
|