@azure/arm-monitor 8.0.0-alpha.20250206.1 → 8.0.0-alpha.20250210.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 +128 -128
- 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
|
}
|
|
@@ -671,7 +671,7 @@ function createLroSpec(inputs) {
|
|
|
671
671
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
672
672
|
sendPollRequest: (path, options) => {
|
|
673
673
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
674
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
674
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
675
675
|
},
|
|
676
676
|
};
|
|
677
677
|
}
|
|
@@ -11257,7 +11257,7 @@ class MetricNamespacesImpl {
|
|
|
11257
11257
|
return this;
|
|
11258
11258
|
},
|
|
11259
11259
|
byPage: (settings) => {
|
|
11260
|
-
if (settings === null || settings ===
|
|
11260
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11261
11261
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11262
11262
|
}
|
|
11263
11263
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -11351,7 +11351,7 @@ class MetricDefinitionsImpl {
|
|
|
11351
11351
|
return this;
|
|
11352
11352
|
},
|
|
11353
11353
|
byPage: (settings) => {
|
|
11354
|
-
if (settings === null || settings ===
|
|
11354
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11355
11355
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11356
11356
|
}
|
|
11357
11357
|
return this.listAtSubscriptionScopePagingPage(region, options, settings);
|
|
@@ -11400,7 +11400,7 @@ class MetricDefinitionsImpl {
|
|
|
11400
11400
|
return this;
|
|
11401
11401
|
},
|
|
11402
11402
|
byPage: (settings) => {
|
|
11403
|
-
if (settings === null || settings ===
|
|
11403
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11404
11404
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11405
11405
|
}
|
|
11406
11406
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -11661,7 +11661,7 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11661
11661
|
return this;
|
|
11662
11662
|
},
|
|
11663
11663
|
byPage: (settings) => {
|
|
11664
|
-
if (settings === null || settings ===
|
|
11664
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11665
11665
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11666
11666
|
}
|
|
11667
11667
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -11671,7 +11671,7 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11671
11671
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
11672
11672
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
11673
11673
|
let result;
|
|
11674
|
-
let continuationToken = settings === null || settings ===
|
|
11674
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
11675
11675
|
if (!continuationToken) {
|
|
11676
11676
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
11677
11677
|
let page = result.value || [];
|
|
@@ -11722,7 +11722,7 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11722
11722
|
return this;
|
|
11723
11723
|
},
|
|
11724
11724
|
byPage: (settings) => {
|
|
11725
|
-
if (settings === null || settings ===
|
|
11725
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
11726
11726
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
11727
11727
|
}
|
|
11728
11728
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -11732,7 +11732,7 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11732
11732
|
listBySubscriptionPagingPage(options, settings) {
|
|
11733
11733
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
11734
11734
|
let result;
|
|
11735
|
-
let continuationToken = settings === null || settings ===
|
|
11735
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
11736
11736
|
if (!continuationToken) {
|
|
11737
11737
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
11738
11738
|
let page = result.value || [];
|
|
@@ -11829,17 +11829,17 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11829
11829
|
* @param options The options parameters.
|
|
11830
11830
|
*/
|
|
11831
11831
|
beginDelete(resourceGroupName, azureMonitorWorkspaceName, options) {
|
|
11832
|
-
return tslib.__awaiter(this,
|
|
11833
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
11832
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11833
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11834
11834
|
return this.client.sendOperationRequest(args, spec);
|
|
11835
11835
|
});
|
|
11836
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
11836
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11837
11837
|
var _a;
|
|
11838
11838
|
let currentRawResponse = undefined;
|
|
11839
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
11839
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
11840
11840
|
const callback = (rawResponse, flatResponse) => {
|
|
11841
11841
|
currentRawResponse = rawResponse;
|
|
11842
|
-
providedCallback === null || providedCallback ===
|
|
11842
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
11843
11843
|
};
|
|
11844
11844
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
11845
11845
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -11858,8 +11858,8 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11858
11858
|
spec: deleteOperationSpec$f,
|
|
11859
11859
|
});
|
|
11860
11860
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
11861
|
-
restoreFrom: options === null || options ===
|
|
11862
|
-
intervalInMs: options === null || options ===
|
|
11861
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
11862
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
11863
11863
|
resourceLocationConfig: "location",
|
|
11864
11864
|
});
|
|
11865
11865
|
yield poller.poll();
|
|
@@ -11874,7 +11874,7 @@ class AzureMonitorWorkspacesImpl {
|
|
|
11874
11874
|
* @param options The options parameters.
|
|
11875
11875
|
*/
|
|
11876
11876
|
beginDeleteAndWait(resourceGroupName, azureMonitorWorkspaceName, options) {
|
|
11877
|
-
return tslib.__awaiter(this,
|
|
11877
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
11878
11878
|
const poller = yield this.beginDelete(resourceGroupName, azureMonitorWorkspaceName, options);
|
|
11879
11879
|
return poller.pollUntilDone();
|
|
11880
11880
|
});
|
|
@@ -12106,7 +12106,7 @@ class MonitorOperationsImpl {
|
|
|
12106
12106
|
return this;
|
|
12107
12107
|
},
|
|
12108
12108
|
byPage: (settings) => {
|
|
12109
|
-
if (settings === null || settings ===
|
|
12109
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12110
12110
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12111
12111
|
}
|
|
12112
12112
|
return this.listPagingPage(options, settings);
|
|
@@ -12116,7 +12116,7 @@ class MonitorOperationsImpl {
|
|
|
12116
12116
|
listPagingPage(options, settings) {
|
|
12117
12117
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
12118
12118
|
let result;
|
|
12119
|
-
let continuationToken = settings === null || settings ===
|
|
12119
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
12120
12120
|
if (!continuationToken) {
|
|
12121
12121
|
result = yield tslib.__await(this._list(options));
|
|
12122
12122
|
let page = result.value || [];
|
|
@@ -12235,7 +12235,7 @@ class AutoscaleSettingsImpl {
|
|
|
12235
12235
|
return this;
|
|
12236
12236
|
},
|
|
12237
12237
|
byPage: (settings) => {
|
|
12238
|
-
if (settings === null || settings ===
|
|
12238
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12239
12239
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12240
12240
|
}
|
|
12241
12241
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -12245,7 +12245,7 @@ class AutoscaleSettingsImpl {
|
|
|
12245
12245
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
12246
12246
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
12247
12247
|
let result;
|
|
12248
|
-
let continuationToken = settings === null || settings ===
|
|
12248
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
12249
12249
|
if (!continuationToken) {
|
|
12250
12250
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
12251
12251
|
let page = result.value || [];
|
|
@@ -12296,7 +12296,7 @@ class AutoscaleSettingsImpl {
|
|
|
12296
12296
|
return this;
|
|
12297
12297
|
},
|
|
12298
12298
|
byPage: (settings) => {
|
|
12299
|
-
if (settings === null || settings ===
|
|
12299
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12300
12300
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12301
12301
|
}
|
|
12302
12302
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -12306,7 +12306,7 @@ class AutoscaleSettingsImpl {
|
|
|
12306
12306
|
listBySubscriptionPagingPage(options, settings) {
|
|
12307
12307
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
12308
12308
|
let result;
|
|
12309
|
-
let continuationToken = settings === null || settings ===
|
|
12309
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
12310
12310
|
if (!continuationToken) {
|
|
12311
12311
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
12312
12312
|
let page = result.value || [];
|
|
@@ -12734,7 +12734,7 @@ class AlertRuleIncidentsImpl {
|
|
|
12734
12734
|
return this;
|
|
12735
12735
|
},
|
|
12736
12736
|
byPage: (settings) => {
|
|
12737
|
-
if (settings === null || settings ===
|
|
12737
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12738
12738
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12739
12739
|
}
|
|
12740
12740
|
return this.listByAlertRulePagingPage(resourceGroupName, ruleName, options, settings);
|
|
@@ -12863,7 +12863,7 @@ class AlertRulesImpl {
|
|
|
12863
12863
|
return this;
|
|
12864
12864
|
},
|
|
12865
12865
|
byPage: (settings) => {
|
|
12866
|
-
if (settings === null || settings ===
|
|
12866
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12867
12867
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12868
12868
|
}
|
|
12869
12869
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -12911,7 +12911,7 @@ class AlertRulesImpl {
|
|
|
12911
12911
|
return this;
|
|
12912
12912
|
},
|
|
12913
12913
|
byPage: (settings) => {
|
|
12914
|
-
if (settings === null || settings ===
|
|
12914
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
12915
12915
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
12916
12916
|
}
|
|
12917
12917
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -13163,7 +13163,7 @@ class LogProfilesImpl {
|
|
|
13163
13163
|
return this;
|
|
13164
13164
|
},
|
|
13165
13165
|
byPage: (settings) => {
|
|
13166
|
-
if (settings === null || settings ===
|
|
13166
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13167
13167
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13168
13168
|
}
|
|
13169
13169
|
return this.listPagingPage(options, settings);
|
|
@@ -13360,7 +13360,7 @@ class DiagnosticSettingsImpl {
|
|
|
13360
13360
|
return this;
|
|
13361
13361
|
},
|
|
13362
13362
|
byPage: (settings) => {
|
|
13363
|
-
if (settings === null || settings ===
|
|
13363
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13364
13364
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13365
13365
|
}
|
|
13366
13366
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -13531,7 +13531,7 @@ class DiagnosticSettingsCategoryImpl {
|
|
|
13531
13531
|
return this;
|
|
13532
13532
|
},
|
|
13533
13533
|
byPage: (settings) => {
|
|
13534
|
-
if (settings === null || settings ===
|
|
13534
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13535
13535
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13536
13536
|
}
|
|
13537
13537
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -13649,7 +13649,7 @@ class ActionGroupsImpl {
|
|
|
13649
13649
|
return this;
|
|
13650
13650
|
},
|
|
13651
13651
|
byPage: (settings) => {
|
|
13652
|
-
if (settings === null || settings ===
|
|
13652
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13653
13653
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13654
13654
|
}
|
|
13655
13655
|
return this.listBySubscriptionIdPagingPage(options, settings);
|
|
@@ -13698,7 +13698,7 @@ class ActionGroupsImpl {
|
|
|
13698
13698
|
return this;
|
|
13699
13699
|
},
|
|
13700
13700
|
byPage: (settings) => {
|
|
13701
|
-
if (settings === null || settings ===
|
|
13701
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
13702
13702
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
13703
13703
|
}
|
|
13704
13704
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -13778,17 +13778,17 @@ class ActionGroupsImpl {
|
|
|
13778
13778
|
* @param options The options parameters.
|
|
13779
13779
|
*/
|
|
13780
13780
|
beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options) {
|
|
13781
|
-
return tslib.__awaiter(this,
|
|
13782
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
13781
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13782
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13783
13783
|
return this.client.sendOperationRequest(args, spec);
|
|
13784
13784
|
});
|
|
13785
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
13785
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13786
13786
|
var _a;
|
|
13787
13787
|
let currentRawResponse = undefined;
|
|
13788
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
13788
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
13789
13789
|
const callback = (rawResponse, flatResponse) => {
|
|
13790
13790
|
currentRawResponse = rawResponse;
|
|
13791
|
-
providedCallback === null || providedCallback ===
|
|
13791
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
13792
13792
|
};
|
|
13793
13793
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
13794
13794
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -13812,8 +13812,8 @@ class ActionGroupsImpl {
|
|
|
13812
13812
|
spec: createNotificationsAtActionGroupResourceLevelOperationSpec,
|
|
13813
13813
|
});
|
|
13814
13814
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
13815
|
-
restoreFrom: options === null || options ===
|
|
13816
|
-
intervalInMs: options === null || options ===
|
|
13815
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
13816
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
13817
13817
|
resourceLocationConfig: "location",
|
|
13818
13818
|
});
|
|
13819
13819
|
yield poller.poll();
|
|
@@ -13828,7 +13828,7 @@ class ActionGroupsImpl {
|
|
|
13828
13828
|
* @param options The options parameters.
|
|
13829
13829
|
*/
|
|
13830
13830
|
beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName, actionGroupName, notificationRequest, options) {
|
|
13831
|
-
return tslib.__awaiter(this,
|
|
13831
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
13832
13832
|
const poller = yield this.beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName, actionGroupName, notificationRequest, options);
|
|
13833
13833
|
return poller.pollUntilDone();
|
|
13834
13834
|
});
|
|
@@ -14110,7 +14110,7 @@ class TenantActionGroupsImpl {
|
|
|
14110
14110
|
return this;
|
|
14111
14111
|
},
|
|
14112
14112
|
byPage: (settings) => {
|
|
14113
|
-
if (settings === null || settings ===
|
|
14113
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14114
14114
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14115
14115
|
}
|
|
14116
14116
|
return this.listByManagementGroupIdPagingPage(managementGroupId, xMsClientTenantId, options, settings);
|
|
@@ -14366,7 +14366,7 @@ class ActivityLogsImpl {
|
|
|
14366
14366
|
return this;
|
|
14367
14367
|
},
|
|
14368
14368
|
byPage: (settings) => {
|
|
14369
|
-
if (settings === null || settings ===
|
|
14369
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14370
14370
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14371
14371
|
}
|
|
14372
14372
|
return this.listPagingPage(filter, options, settings);
|
|
@@ -14376,7 +14376,7 @@ class ActivityLogsImpl {
|
|
|
14376
14376
|
listPagingPage(filter, options, settings) {
|
|
14377
14377
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
14378
14378
|
let result;
|
|
14379
|
-
let continuationToken = settings === null || settings ===
|
|
14379
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
14380
14380
|
if (!continuationToken) {
|
|
14381
14381
|
result = yield tslib.__await(this._list(filter, options));
|
|
14382
14382
|
let page = result.value || [];
|
|
@@ -14516,7 +14516,7 @@ class EventCategoriesImpl {
|
|
|
14516
14516
|
return this;
|
|
14517
14517
|
},
|
|
14518
14518
|
byPage: (settings) => {
|
|
14519
|
-
if (settings === null || settings ===
|
|
14519
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14520
14520
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14521
14521
|
}
|
|
14522
14522
|
return this.listPagingPage(options, settings);
|
|
@@ -14612,7 +14612,7 @@ class TenantActivityLogsImpl {
|
|
|
14612
14612
|
return this;
|
|
14613
14613
|
},
|
|
14614
14614
|
byPage: (settings) => {
|
|
14615
|
-
if (settings === null || settings ===
|
|
14615
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14616
14616
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14617
14617
|
}
|
|
14618
14618
|
return this.listPagingPage(options, settings);
|
|
@@ -14622,7 +14622,7 @@ class TenantActivityLogsImpl {
|
|
|
14622
14622
|
listPagingPage(options, settings) {
|
|
14623
14623
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
14624
14624
|
let result;
|
|
14625
|
-
let continuationToken = settings === null || settings ===
|
|
14625
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
14626
14626
|
if (!continuationToken) {
|
|
14627
14627
|
result = yield tslib.__await(this._list(options));
|
|
14628
14628
|
let page = result.value || [];
|
|
@@ -14748,7 +14748,7 @@ class BaselinesImpl {
|
|
|
14748
14748
|
return this;
|
|
14749
14749
|
},
|
|
14750
14750
|
byPage: (settings) => {
|
|
14751
|
-
if (settings === null || settings ===
|
|
14751
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14752
14752
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14753
14753
|
}
|
|
14754
14754
|
return this.listPagingPage(resourceUri, options, settings);
|
|
@@ -14851,7 +14851,7 @@ class MetricAlertsImpl {
|
|
|
14851
14851
|
return this;
|
|
14852
14852
|
},
|
|
14853
14853
|
byPage: (settings) => {
|
|
14854
|
-
if (settings === null || settings ===
|
|
14854
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14855
14855
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14856
14856
|
}
|
|
14857
14857
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -14900,7 +14900,7 @@ class MetricAlertsImpl {
|
|
|
14900
14900
|
return this;
|
|
14901
14901
|
},
|
|
14902
14902
|
byPage: (settings) => {
|
|
14903
|
-
if (settings === null || settings ===
|
|
14903
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
14904
14904
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
14905
14905
|
}
|
|
14906
14906
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -15227,7 +15227,7 @@ class ScheduledQueryRulesImpl {
|
|
|
15227
15227
|
return this;
|
|
15228
15228
|
},
|
|
15229
15229
|
byPage: (settings) => {
|
|
15230
|
-
if (settings === null || settings ===
|
|
15230
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
15231
15231
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15232
15232
|
}
|
|
15233
15233
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -15237,7 +15237,7 @@ class ScheduledQueryRulesImpl {
|
|
|
15237
15237
|
listBySubscriptionPagingPage(options, settings) {
|
|
15238
15238
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
15239
15239
|
let result;
|
|
15240
|
-
let continuationToken = settings === null || settings ===
|
|
15240
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
15241
15241
|
if (!continuationToken) {
|
|
15242
15242
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
15243
15243
|
let page = result.value || [];
|
|
@@ -15289,7 +15289,7 @@ class ScheduledQueryRulesImpl {
|
|
|
15289
15289
|
return this;
|
|
15290
15290
|
},
|
|
15291
15291
|
byPage: (settings) => {
|
|
15292
|
-
if (settings === null || settings ===
|
|
15292
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
15293
15293
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15294
15294
|
}
|
|
15295
15295
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -15299,7 +15299,7 @@ class ScheduledQueryRulesImpl {
|
|
|
15299
15299
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
15300
15300
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
15301
15301
|
let result;
|
|
15302
|
-
let continuationToken = settings === null || settings ===
|
|
15302
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
15303
15303
|
if (!continuationToken) {
|
|
15304
15304
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
15305
15305
|
let page = result.value || [];
|
|
@@ -15651,7 +15651,7 @@ class PrivateLinkScopesImpl {
|
|
|
15651
15651
|
return this;
|
|
15652
15652
|
},
|
|
15653
15653
|
byPage: (settings) => {
|
|
15654
|
-
if (settings === null || settings ===
|
|
15654
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
15655
15655
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15656
15656
|
}
|
|
15657
15657
|
return this.listPagingPage(options, settings);
|
|
@@ -15661,7 +15661,7 @@ class PrivateLinkScopesImpl {
|
|
|
15661
15661
|
listPagingPage(options, settings) {
|
|
15662
15662
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
15663
15663
|
let result;
|
|
15664
|
-
let continuationToken = settings === null || settings ===
|
|
15664
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
15665
15665
|
if (!continuationToken) {
|
|
15666
15666
|
result = yield tslib.__await(this._list(options));
|
|
15667
15667
|
let page = result.value || [];
|
|
@@ -15713,7 +15713,7 @@ class PrivateLinkScopesImpl {
|
|
|
15713
15713
|
return this;
|
|
15714
15714
|
},
|
|
15715
15715
|
byPage: (settings) => {
|
|
15716
|
-
if (settings === null || settings ===
|
|
15716
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
15717
15717
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
15718
15718
|
}
|
|
15719
15719
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -15723,7 +15723,7 @@ class PrivateLinkScopesImpl {
|
|
|
15723
15723
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
15724
15724
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
15725
15725
|
let result;
|
|
15726
|
-
let continuationToken = settings === null || settings ===
|
|
15726
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
15727
15727
|
if (!continuationToken) {
|
|
15728
15728
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
15729
15729
|
let page = result.value || [];
|
|
@@ -15782,17 +15782,17 @@ class PrivateLinkScopesImpl {
|
|
|
15782
15782
|
* @param options The options parameters.
|
|
15783
15783
|
*/
|
|
15784
15784
|
beginDelete(resourceGroupName, scopeName, options) {
|
|
15785
|
-
return tslib.__awaiter(this,
|
|
15786
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
15785
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15786
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15787
15787
|
return this.client.sendOperationRequest(args, spec);
|
|
15788
15788
|
});
|
|
15789
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
15789
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15790
15790
|
var _a;
|
|
15791
15791
|
let currentRawResponse = undefined;
|
|
15792
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
15792
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
15793
15793
|
const callback = (rawResponse, flatResponse) => {
|
|
15794
15794
|
currentRawResponse = rawResponse;
|
|
15795
|
-
providedCallback === null || providedCallback ===
|
|
15795
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
15796
15796
|
};
|
|
15797
15797
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
15798
15798
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -15811,8 +15811,8 @@ class PrivateLinkScopesImpl {
|
|
|
15811
15811
|
spec: deleteOperationSpec$6,
|
|
15812
15812
|
});
|
|
15813
15813
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
15814
|
-
restoreFrom: options === null || options ===
|
|
15815
|
-
intervalInMs: options === null || options ===
|
|
15814
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
15815
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
15816
15816
|
});
|
|
15817
15817
|
yield poller.poll();
|
|
15818
15818
|
return poller;
|
|
@@ -15825,7 +15825,7 @@ class PrivateLinkScopesImpl {
|
|
|
15825
15825
|
* @param options The options parameters.
|
|
15826
15826
|
*/
|
|
15827
15827
|
beginDeleteAndWait(resourceGroupName, scopeName, options) {
|
|
15828
|
-
return tslib.__awaiter(this,
|
|
15828
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
15829
15829
|
const poller = yield this.beginDelete(resourceGroupName, scopeName, options);
|
|
15830
15830
|
return poller.pollUntilDone();
|
|
15831
15831
|
});
|
|
@@ -16221,17 +16221,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
16221
16221
|
* @param options The options parameters.
|
|
16222
16222
|
*/
|
|
16223
16223
|
beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
|
|
16224
|
-
return tslib.__awaiter(this,
|
|
16225
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16224
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16225
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16226
16226
|
return this.client.sendOperationRequest(args, spec);
|
|
16227
16227
|
});
|
|
16228
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16228
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16229
16229
|
var _a;
|
|
16230
16230
|
let currentRawResponse = undefined;
|
|
16231
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16231
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
16232
16232
|
const callback = (rawResponse, flatResponse) => {
|
|
16233
16233
|
currentRawResponse = rawResponse;
|
|
16234
|
-
providedCallback === null || providedCallback ===
|
|
16234
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
16235
16235
|
};
|
|
16236
16236
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16237
16237
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16256,8 +16256,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
16256
16256
|
spec: createOrUpdateOperationSpec$2,
|
|
16257
16257
|
});
|
|
16258
16258
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16259
|
-
restoreFrom: options === null || options ===
|
|
16260
|
-
intervalInMs: options === null || options ===
|
|
16259
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
16260
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
16261
16261
|
});
|
|
16262
16262
|
yield poller.poll();
|
|
16263
16263
|
return poller;
|
|
@@ -16272,7 +16272,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
16272
16272
|
* @param options The options parameters.
|
|
16273
16273
|
*/
|
|
16274
16274
|
beginCreateOrUpdateAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options) {
|
|
16275
|
-
return tslib.__awaiter(this,
|
|
16275
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16276
16276
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, privateEndpointConnectionName, parameters, options);
|
|
16277
16277
|
return poller.pollUntilDone();
|
|
16278
16278
|
});
|
|
@@ -16285,17 +16285,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
16285
16285
|
* @param options The options parameters.
|
|
16286
16286
|
*/
|
|
16287
16287
|
beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
16288
|
-
return tslib.__awaiter(this,
|
|
16289
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16288
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16289
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16290
16290
|
return this.client.sendOperationRequest(args, spec);
|
|
16291
16291
|
});
|
|
16292
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16292
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16293
16293
|
var _a;
|
|
16294
16294
|
let currentRawResponse = undefined;
|
|
16295
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16295
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
16296
16296
|
const callback = (rawResponse, flatResponse) => {
|
|
16297
16297
|
currentRawResponse = rawResponse;
|
|
16298
|
-
providedCallback === null || providedCallback ===
|
|
16298
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
16299
16299
|
};
|
|
16300
16300
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16301
16301
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16319,8 +16319,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
16319
16319
|
spec: deleteOperationSpec$5,
|
|
16320
16320
|
});
|
|
16321
16321
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16322
|
-
restoreFrom: options === null || options ===
|
|
16323
|
-
intervalInMs: options === null || options ===
|
|
16322
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
16323
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
16324
16324
|
});
|
|
16325
16325
|
yield poller.poll();
|
|
16326
16326
|
return poller;
|
|
@@ -16334,7 +16334,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
16334
16334
|
* @param options The options parameters.
|
|
16335
16335
|
*/
|
|
16336
16336
|
beginDeleteAndWait(resourceGroupName, scopeName, privateEndpointConnectionName, options) {
|
|
16337
|
-
return tslib.__awaiter(this,
|
|
16337
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16338
16338
|
const poller = yield this.beginDelete(resourceGroupName, scopeName, privateEndpointConnectionName, options);
|
|
16339
16339
|
return poller.pollUntilDone();
|
|
16340
16340
|
});
|
|
@@ -16484,7 +16484,7 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16484
16484
|
return this;
|
|
16485
16485
|
},
|
|
16486
16486
|
byPage: (settings) => {
|
|
16487
|
-
if (settings === null || settings ===
|
|
16487
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
16488
16488
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16489
16489
|
}
|
|
16490
16490
|
return this.listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings);
|
|
@@ -16494,7 +16494,7 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16494
16494
|
listByPrivateLinkScopePagingPage(resourceGroupName, scopeName, options, settings) {
|
|
16495
16495
|
return tslib.__asyncGenerator(this, arguments, function* listByPrivateLinkScopePagingPage_1() {
|
|
16496
16496
|
let result;
|
|
16497
|
-
let continuationToken = settings === null || settings ===
|
|
16497
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
16498
16498
|
if (!continuationToken) {
|
|
16499
16499
|
result = yield tslib.__await(this._listByPrivateLinkScope(resourceGroupName, scopeName, options));
|
|
16500
16500
|
let page = result.value || [];
|
|
@@ -16550,17 +16550,17 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16550
16550
|
* @param options The options parameters.
|
|
16551
16551
|
*/
|
|
16552
16552
|
beginCreateOrUpdate(resourceGroupName, scopeName, name, parameters, options) {
|
|
16553
|
-
return tslib.__awaiter(this,
|
|
16554
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16553
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16554
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16555
16555
|
return this.client.sendOperationRequest(args, spec);
|
|
16556
16556
|
});
|
|
16557
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16557
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16558
16558
|
var _a;
|
|
16559
16559
|
let currentRawResponse = undefined;
|
|
16560
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16560
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
16561
16561
|
const callback = (rawResponse, flatResponse) => {
|
|
16562
16562
|
currentRawResponse = rawResponse;
|
|
16563
|
-
providedCallback === null || providedCallback ===
|
|
16563
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
16564
16564
|
};
|
|
16565
16565
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16566
16566
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16579,8 +16579,8 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16579
16579
|
spec: createOrUpdateOperationSpec$1,
|
|
16580
16580
|
});
|
|
16581
16581
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16582
|
-
restoreFrom: options === null || options ===
|
|
16583
|
-
intervalInMs: options === null || options ===
|
|
16582
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
16583
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
16584
16584
|
});
|
|
16585
16585
|
yield poller.poll();
|
|
16586
16586
|
return poller;
|
|
@@ -16595,7 +16595,7 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16595
16595
|
* @param options The options parameters.
|
|
16596
16596
|
*/
|
|
16597
16597
|
beginCreateOrUpdateAndWait(resourceGroupName, scopeName, name, parameters, options) {
|
|
16598
|
-
return tslib.__awaiter(this,
|
|
16598
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16599
16599
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, scopeName, name, parameters, options);
|
|
16600
16600
|
return poller.pollUntilDone();
|
|
16601
16601
|
});
|
|
@@ -16608,17 +16608,17 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16608
16608
|
* @param options The options parameters.
|
|
16609
16609
|
*/
|
|
16610
16610
|
beginDelete(resourceGroupName, scopeName, name, options) {
|
|
16611
|
-
return tslib.__awaiter(this,
|
|
16612
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
16611
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16612
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16613
16613
|
return this.client.sendOperationRequest(args, spec);
|
|
16614
16614
|
});
|
|
16615
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
16615
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16616
16616
|
var _a;
|
|
16617
16617
|
let currentRawResponse = undefined;
|
|
16618
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
16618
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
16619
16619
|
const callback = (rawResponse, flatResponse) => {
|
|
16620
16620
|
currentRawResponse = rawResponse;
|
|
16621
|
-
providedCallback === null || providedCallback ===
|
|
16621
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
16622
16622
|
};
|
|
16623
16623
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
16624
16624
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -16637,8 +16637,8 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16637
16637
|
spec: deleteOperationSpec$4,
|
|
16638
16638
|
});
|
|
16639
16639
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
16640
|
-
restoreFrom: options === null || options ===
|
|
16641
|
-
intervalInMs: options === null || options ===
|
|
16640
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
16641
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
16642
16642
|
});
|
|
16643
16643
|
yield poller.poll();
|
|
16644
16644
|
return poller;
|
|
@@ -16652,7 +16652,7 @@ class PrivateLinkScopedResourcesImpl {
|
|
|
16652
16652
|
* @param options The options parameters.
|
|
16653
16653
|
*/
|
|
16654
16654
|
beginDeleteAndWait(resourceGroupName, scopeName, name, options) {
|
|
16655
|
-
return tslib.__awaiter(this,
|
|
16655
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
16656
16656
|
const poller = yield this.beginDelete(resourceGroupName, scopeName, name, options);
|
|
16657
16657
|
return poller.pollUntilDone();
|
|
16658
16658
|
});
|
|
@@ -16831,7 +16831,7 @@ class ActivityLogAlertsImpl {
|
|
|
16831
16831
|
return this;
|
|
16832
16832
|
},
|
|
16833
16833
|
byPage: (settings) => {
|
|
16834
|
-
if (settings === null || settings ===
|
|
16834
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
16835
16835
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16836
16836
|
}
|
|
16837
16837
|
return this.listBySubscriptionIdPagingPage(options, settings);
|
|
@@ -16841,7 +16841,7 @@ class ActivityLogAlertsImpl {
|
|
|
16841
16841
|
listBySubscriptionIdPagingPage(options, settings) {
|
|
16842
16842
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionIdPagingPage_1() {
|
|
16843
16843
|
let result;
|
|
16844
|
-
let continuationToken = settings === null || settings ===
|
|
16844
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
16845
16845
|
if (!continuationToken) {
|
|
16846
16846
|
result = yield tslib.__await(this._listBySubscriptionId(options));
|
|
16847
16847
|
let page = result.value || [];
|
|
@@ -16893,7 +16893,7 @@ class ActivityLogAlertsImpl {
|
|
|
16893
16893
|
return this;
|
|
16894
16894
|
},
|
|
16895
16895
|
byPage: (settings) => {
|
|
16896
|
-
if (settings === null || settings ===
|
|
16896
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
16897
16897
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
16898
16898
|
}
|
|
16899
16899
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -16903,7 +16903,7 @@ class ActivityLogAlertsImpl {
|
|
|
16903
16903
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
16904
16904
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
16905
16905
|
let result;
|
|
16906
|
-
let continuationToken = settings === null || settings ===
|
|
16906
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
16907
16907
|
if (!continuationToken) {
|
|
16908
16908
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
16909
16909
|
let page = result.value || [];
|
|
@@ -17223,7 +17223,7 @@ class DataCollectionEndpointsImpl {
|
|
|
17223
17223
|
return this;
|
|
17224
17224
|
},
|
|
17225
17225
|
byPage: (settings) => {
|
|
17226
|
-
if (settings === null || settings ===
|
|
17226
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17227
17227
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17228
17228
|
}
|
|
17229
17229
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -17233,7 +17233,7 @@ class DataCollectionEndpointsImpl {
|
|
|
17233
17233
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
17234
17234
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
17235
17235
|
let result;
|
|
17236
|
-
let continuationToken = settings === null || settings ===
|
|
17236
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17237
17237
|
if (!continuationToken) {
|
|
17238
17238
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
17239
17239
|
let page = result.value || [];
|
|
@@ -17284,7 +17284,7 @@ class DataCollectionEndpointsImpl {
|
|
|
17284
17284
|
return this;
|
|
17285
17285
|
},
|
|
17286
17286
|
byPage: (settings) => {
|
|
17287
|
-
if (settings === null || settings ===
|
|
17287
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17288
17288
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17289
17289
|
}
|
|
17290
17290
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -17294,7 +17294,7 @@ class DataCollectionEndpointsImpl {
|
|
|
17294
17294
|
listBySubscriptionPagingPage(options, settings) {
|
|
17295
17295
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
17296
17296
|
let result;
|
|
17297
|
-
let continuationToken = settings === null || settings ===
|
|
17297
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17298
17298
|
if (!continuationToken) {
|
|
17299
17299
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
17300
17300
|
let page = result.value || [];
|
|
@@ -17604,7 +17604,7 @@ class DataCollectionRuleAssociationsImpl {
|
|
|
17604
17604
|
return this;
|
|
17605
17605
|
},
|
|
17606
17606
|
byPage: (settings) => {
|
|
17607
|
-
if (settings === null || settings ===
|
|
17607
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17608
17608
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17609
17609
|
}
|
|
17610
17610
|
return this.listByResourcePagingPage(resourceUri, options, settings);
|
|
@@ -17614,7 +17614,7 @@ class DataCollectionRuleAssociationsImpl {
|
|
|
17614
17614
|
listByResourcePagingPage(resourceUri, options, settings) {
|
|
17615
17615
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
17616
17616
|
let result;
|
|
17617
|
-
let continuationToken = settings === null || settings ===
|
|
17617
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17618
17618
|
if (!continuationToken) {
|
|
17619
17619
|
result = yield tslib.__await(this._listByResource(resourceUri, options));
|
|
17620
17620
|
let page = result.value || [];
|
|
@@ -17667,7 +17667,7 @@ class DataCollectionRuleAssociationsImpl {
|
|
|
17667
17667
|
return this;
|
|
17668
17668
|
},
|
|
17669
17669
|
byPage: (settings) => {
|
|
17670
|
-
if (settings === null || settings ===
|
|
17670
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17671
17671
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17672
17672
|
}
|
|
17673
17673
|
return this.listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings);
|
|
@@ -17677,7 +17677,7 @@ class DataCollectionRuleAssociationsImpl {
|
|
|
17677
17677
|
listByRulePagingPage(resourceGroupName, dataCollectionRuleName, options, settings) {
|
|
17678
17678
|
return tslib.__asyncGenerator(this, arguments, function* listByRulePagingPage_1() {
|
|
17679
17679
|
let result;
|
|
17680
|
-
let continuationToken = settings === null || settings ===
|
|
17680
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17681
17681
|
if (!continuationToken) {
|
|
17682
17682
|
result = yield tslib.__await(this._listByRule(resourceGroupName, dataCollectionRuleName, options));
|
|
17683
17683
|
let page = result.value || [];
|
|
@@ -17731,7 +17731,7 @@ class DataCollectionRuleAssociationsImpl {
|
|
|
17731
17731
|
return this;
|
|
17732
17732
|
},
|
|
17733
17733
|
byPage: (settings) => {
|
|
17734
|
-
if (settings === null || settings ===
|
|
17734
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
17735
17735
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
17736
17736
|
}
|
|
17737
17737
|
return this.listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings);
|
|
@@ -17741,7 +17741,7 @@ class DataCollectionRuleAssociationsImpl {
|
|
|
17741
17741
|
listByDataCollectionEndpointPagingPage(resourceGroupName, dataCollectionEndpointName, options, settings) {
|
|
17742
17742
|
return tslib.__asyncGenerator(this, arguments, function* listByDataCollectionEndpointPagingPage_1() {
|
|
17743
17743
|
let result;
|
|
17744
|
-
let continuationToken = settings === null || settings ===
|
|
17744
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
17745
17745
|
if (!continuationToken) {
|
|
17746
17746
|
result = yield tslib.__await(this._listByDataCollectionEndpoint(resourceGroupName, dataCollectionEndpointName, options));
|
|
17747
17747
|
let page = result.value || [];
|
|
@@ -18082,7 +18082,7 @@ class DataCollectionRulesImpl {
|
|
|
18082
18082
|
return this;
|
|
18083
18083
|
},
|
|
18084
18084
|
byPage: (settings) => {
|
|
18085
|
-
if (settings === null || settings ===
|
|
18085
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
18086
18086
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18087
18087
|
}
|
|
18088
18088
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -18092,7 +18092,7 @@ class DataCollectionRulesImpl {
|
|
|
18092
18092
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
18093
18093
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
18094
18094
|
let result;
|
|
18095
|
-
let continuationToken = settings === null || settings ===
|
|
18095
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
18096
18096
|
if (!continuationToken) {
|
|
18097
18097
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
18098
18098
|
let page = result.value || [];
|
|
@@ -18143,7 +18143,7 @@ class DataCollectionRulesImpl {
|
|
|
18143
18143
|
return this;
|
|
18144
18144
|
},
|
|
18145
18145
|
byPage: (settings) => {
|
|
18146
|
-
if (settings === null || settings ===
|
|
18146
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
18147
18147
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
18148
18148
|
}
|
|
18149
18149
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -18153,7 +18153,7 @@ class DataCollectionRulesImpl {
|
|
|
18153
18153
|
listBySubscriptionPagingPage(options, settings) {
|
|
18154
18154
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
18155
18155
|
let result;
|
|
18156
|
-
let continuationToken = settings === null || settings ===
|
|
18156
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
18157
18157
|
if (!continuationToken) {
|
|
18158
18158
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
18159
18159
|
let page = result.value || [];
|
|
@@ -18461,10 +18461,10 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
|
|
|
18461
18461
|
: `${packageDetails}`;
|
|
18462
18462
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
18463
18463
|
userAgentPrefix,
|
|
18464
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
18464
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
18465
18465
|
super(optionsWithDefaults);
|
|
18466
18466
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
18467
|
-
if ((options === null || options ===
|
|
18467
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
18468
18468
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
18469
18469
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
18470
18470
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -18478,7 +18478,7 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
|
|
|
18478
18478
|
});
|
|
18479
18479
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
18480
18480
|
credential: credentials,
|
|
18481
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
18481
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
18482
18482
|
challengeCallbacks: {
|
|
18483
18483
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
18484
18484
|
},
|
|
@@ -18532,17 +18532,17 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
|
|
|
18532
18532
|
* @param options The options parameters.
|
|
18533
18533
|
*/
|
|
18534
18534
|
beginCreateNotificationsAtTenantActionGroupResourceLevel(managementGroupId, tenantActionGroupName, xMsClientTenantId, notificationRequest, options) {
|
|
18535
|
-
return tslib.__awaiter(this,
|
|
18536
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
18535
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
18536
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
18537
18537
|
return this.sendOperationRequest(args, spec);
|
|
18538
18538
|
});
|
|
18539
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
18539
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
18540
18540
|
var _a;
|
|
18541
18541
|
let currentRawResponse = undefined;
|
|
18542
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
18542
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
18543
18543
|
const callback = (rawResponse, flatResponse) => {
|
|
18544
18544
|
currentRawResponse = rawResponse;
|
|
18545
|
-
providedCallback === null || providedCallback ===
|
|
18545
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
18546
18546
|
};
|
|
18547
18547
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
18548
18548
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -18567,8 +18567,8 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
|
|
|
18567
18567
|
spec: createNotificationsAtTenantActionGroupResourceLevelOperationSpec,
|
|
18568
18568
|
});
|
|
18569
18569
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
18570
|
-
restoreFrom: options === null || options ===
|
|
18571
|
-
intervalInMs: options === null || options ===
|
|
18570
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
18571
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
18572
18572
|
resourceLocationConfig: "location",
|
|
18573
18573
|
});
|
|
18574
18574
|
yield poller.poll();
|
|
@@ -18584,7 +18584,7 @@ class MonitorClient extends coreClient__namespace.ServiceClient {
|
|
|
18584
18584
|
* @param options The options parameters.
|
|
18585
18585
|
*/
|
|
18586
18586
|
beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait(managementGroupId, tenantActionGroupName, xMsClientTenantId, notificationRequest, options) {
|
|
18587
|
-
return tslib.__awaiter(this,
|
|
18587
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
18588
18588
|
const poller = yield this.beginCreateNotificationsAtTenantActionGroupResourceLevel(managementGroupId, tenantActionGroupName, xMsClientTenantId, notificationRequest, options);
|
|
18589
18589
|
return poller.pollUntilDone();
|
|
18590
18590
|
});
|