@azure/arm-signalr 6.0.0-alpha.20250207.1 → 6.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 +139 -139
- 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
|
}
|
|
@@ -2476,7 +2476,7 @@ class OperationsImpl {
|
|
|
2476
2476
|
return this;
|
|
2477
2477
|
},
|
|
2478
2478
|
byPage: (settings) => {
|
|
2479
|
-
if (settings === null || settings ===
|
|
2479
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2480
2480
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2481
2481
|
}
|
|
2482
2482
|
return this.listPagingPage(options, settings);
|
|
@@ -2486,7 +2486,7 @@ class OperationsImpl {
|
|
|
2486
2486
|
listPagingPage(options, settings) {
|
|
2487
2487
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2488
2488
|
let result;
|
|
2489
|
-
let continuationToken = settings === null || settings ===
|
|
2489
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2490
2490
|
if (!continuationToken) {
|
|
2491
2491
|
result = yield tslib.__await(this._list(options));
|
|
2492
2492
|
let page = result.value || [];
|
|
@@ -2581,7 +2581,7 @@ function createLroSpec(inputs) {
|
|
|
2581
2581
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2582
2582
|
sendPollRequest: (path, options) => {
|
|
2583
2583
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2584
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
2584
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
2587
|
}
|
|
@@ -2617,7 +2617,7 @@ class SignalRImpl {
|
|
|
2617
2617
|
return this;
|
|
2618
2618
|
},
|
|
2619
2619
|
byPage: (settings) => {
|
|
2620
|
-
if (settings === null || settings ===
|
|
2620
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2621
2621
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2622
2622
|
}
|
|
2623
2623
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -2627,7 +2627,7 @@ class SignalRImpl {
|
|
|
2627
2627
|
listBySubscriptionPagingPage(options, settings) {
|
|
2628
2628
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2629
2629
|
let result;
|
|
2630
|
-
let continuationToken = settings === null || settings ===
|
|
2630
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2631
2631
|
if (!continuationToken) {
|
|
2632
2632
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
2633
2633
|
let page = result.value || [];
|
|
@@ -2679,7 +2679,7 @@ class SignalRImpl {
|
|
|
2679
2679
|
return this;
|
|
2680
2680
|
},
|
|
2681
2681
|
byPage: (settings) => {
|
|
2682
|
-
if (settings === null || settings ===
|
|
2682
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2683
2683
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2684
2684
|
}
|
|
2685
2685
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2689,7 +2689,7 @@ class SignalRImpl {
|
|
|
2689
2689
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2690
2690
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2691
2691
|
let result;
|
|
2692
|
-
let continuationToken = settings === null || settings ===
|
|
2692
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2693
2693
|
if (!continuationToken) {
|
|
2694
2694
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2695
2695
|
let page = result.value || [];
|
|
@@ -2767,17 +2767,17 @@ class SignalRImpl {
|
|
|
2767
2767
|
* @param options The options parameters.
|
|
2768
2768
|
*/
|
|
2769
2769
|
beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
2770
|
-
return tslib.__awaiter(this,
|
|
2771
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2770
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2771
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2772
2772
|
return this.client.sendOperationRequest(args, spec);
|
|
2773
2773
|
});
|
|
2774
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2774
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2775
2775
|
var _a;
|
|
2776
2776
|
let currentRawResponse = undefined;
|
|
2777
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2777
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2778
2778
|
const callback = (rawResponse, flatResponse) => {
|
|
2779
2779
|
currentRawResponse = rawResponse;
|
|
2780
|
-
providedCallback === null || providedCallback ===
|
|
2780
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2781
2781
|
};
|
|
2782
2782
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2783
2783
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2796,8 +2796,8 @@ class SignalRImpl {
|
|
|
2796
2796
|
spec: createOrUpdateOperationSpec$4
|
|
2797
2797
|
});
|
|
2798
2798
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2799
|
-
restoreFrom: options === null || options ===
|
|
2800
|
-
intervalInMs: options === null || options ===
|
|
2799
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2800
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2801
2801
|
resourceLocationConfig: "azure-async-operation"
|
|
2802
2802
|
});
|
|
2803
2803
|
yield poller.poll();
|
|
@@ -2812,7 +2812,7 @@ class SignalRImpl {
|
|
|
2812
2812
|
* @param options The options parameters.
|
|
2813
2813
|
*/
|
|
2814
2814
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
2815
|
-
return tslib.__awaiter(this,
|
|
2815
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2816
2816
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
|
|
2817
2817
|
return poller.pollUntilDone();
|
|
2818
2818
|
});
|
|
@@ -2824,17 +2824,17 @@ class SignalRImpl {
|
|
|
2824
2824
|
* @param options The options parameters.
|
|
2825
2825
|
*/
|
|
2826
2826
|
beginDelete(resourceGroupName, resourceName, options) {
|
|
2827
|
-
return tslib.__awaiter(this,
|
|
2828
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2827
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2828
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2829
2829
|
return this.client.sendOperationRequest(args, spec);
|
|
2830
2830
|
});
|
|
2831
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2831
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2832
2832
|
var _a;
|
|
2833
2833
|
let currentRawResponse = undefined;
|
|
2834
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2834
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2835
2835
|
const callback = (rawResponse, flatResponse) => {
|
|
2836
2836
|
currentRawResponse = rawResponse;
|
|
2837
|
-
providedCallback === null || providedCallback ===
|
|
2837
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2838
2838
|
};
|
|
2839
2839
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2840
2840
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2853,8 +2853,8 @@ class SignalRImpl {
|
|
|
2853
2853
|
spec: deleteOperationSpec$5
|
|
2854
2854
|
});
|
|
2855
2855
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2856
|
-
restoreFrom: options === null || options ===
|
|
2857
|
-
intervalInMs: options === null || options ===
|
|
2856
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2857
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2858
2858
|
resourceLocationConfig: "location"
|
|
2859
2859
|
});
|
|
2860
2860
|
yield poller.poll();
|
|
@@ -2868,7 +2868,7 @@ class SignalRImpl {
|
|
|
2868
2868
|
* @param options The options parameters.
|
|
2869
2869
|
*/
|
|
2870
2870
|
beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
2871
|
-
return tslib.__awaiter(this,
|
|
2871
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2872
2872
|
const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
|
|
2873
2873
|
return poller.pollUntilDone();
|
|
2874
2874
|
});
|
|
@@ -2881,17 +2881,17 @@ class SignalRImpl {
|
|
|
2881
2881
|
* @param options The options parameters.
|
|
2882
2882
|
*/
|
|
2883
2883
|
beginUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
2884
|
-
return tslib.__awaiter(this,
|
|
2885
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2884
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2885
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2886
2886
|
return this.client.sendOperationRequest(args, spec);
|
|
2887
2887
|
});
|
|
2888
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2888
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2889
2889
|
var _a;
|
|
2890
2890
|
let currentRawResponse = undefined;
|
|
2891
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2891
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2892
2892
|
const callback = (rawResponse, flatResponse) => {
|
|
2893
2893
|
currentRawResponse = rawResponse;
|
|
2894
|
-
providedCallback === null || providedCallback ===
|
|
2894
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2895
2895
|
};
|
|
2896
2896
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2897
2897
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2910,8 +2910,8 @@ class SignalRImpl {
|
|
|
2910
2910
|
spec: updateOperationSpec$2
|
|
2911
2911
|
});
|
|
2912
2912
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2913
|
-
restoreFrom: options === null || options ===
|
|
2914
|
-
intervalInMs: options === null || options ===
|
|
2913
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2914
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2915
2915
|
resourceLocationConfig: "location"
|
|
2916
2916
|
});
|
|
2917
2917
|
yield poller.poll();
|
|
@@ -2926,7 +2926,7 @@ class SignalRImpl {
|
|
|
2926
2926
|
* @param options The options parameters.
|
|
2927
2927
|
*/
|
|
2928
2928
|
beginUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
2929
|
-
return tslib.__awaiter(this,
|
|
2929
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2930
2930
|
const poller = yield this.beginUpdate(resourceGroupName, resourceName, parameters, options);
|
|
2931
2931
|
return poller.pollUntilDone();
|
|
2932
2932
|
});
|
|
@@ -2949,17 +2949,17 @@ class SignalRImpl {
|
|
|
2949
2949
|
* @param options The options parameters.
|
|
2950
2950
|
*/
|
|
2951
2951
|
beginRegenerateKey(resourceGroupName, resourceName, parameters, options) {
|
|
2952
|
-
return tslib.__awaiter(this,
|
|
2953
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2952
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2953
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2954
2954
|
return this.client.sendOperationRequest(args, spec);
|
|
2955
2955
|
});
|
|
2956
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2956
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2957
2957
|
var _a;
|
|
2958
2958
|
let currentRawResponse = undefined;
|
|
2959
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2959
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2960
2960
|
const callback = (rawResponse, flatResponse) => {
|
|
2961
2961
|
currentRawResponse = rawResponse;
|
|
2962
|
-
providedCallback === null || providedCallback ===
|
|
2962
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2963
2963
|
};
|
|
2964
2964
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2965
2965
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2978,8 +2978,8 @@ class SignalRImpl {
|
|
|
2978
2978
|
spec: regenerateKeyOperationSpec
|
|
2979
2979
|
});
|
|
2980
2980
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2981
|
-
restoreFrom: options === null || options ===
|
|
2982
|
-
intervalInMs: options === null || options ===
|
|
2981
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2982
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2983
2983
|
resourceLocationConfig: "location"
|
|
2984
2984
|
});
|
|
2985
2985
|
yield poller.poll();
|
|
@@ -2995,7 +2995,7 @@ class SignalRImpl {
|
|
|
2995
2995
|
* @param options The options parameters.
|
|
2996
2996
|
*/
|
|
2997
2997
|
beginRegenerateKeyAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
2998
|
-
return tslib.__awaiter(this,
|
|
2998
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2999
2999
|
const poller = yield this.beginRegenerateKey(resourceGroupName, resourceName, parameters, options);
|
|
3000
3000
|
return poller.pollUntilDone();
|
|
3001
3001
|
});
|
|
@@ -3017,17 +3017,17 @@ class SignalRImpl {
|
|
|
3017
3017
|
* @param options The options parameters.
|
|
3018
3018
|
*/
|
|
3019
3019
|
beginRestart(resourceGroupName, resourceName, options) {
|
|
3020
|
-
return tslib.__awaiter(this,
|
|
3021
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3020
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3021
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3022
3022
|
return this.client.sendOperationRequest(args, spec);
|
|
3023
3023
|
});
|
|
3024
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3024
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3025
3025
|
var _a;
|
|
3026
3026
|
let currentRawResponse = undefined;
|
|
3027
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3027
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3028
3028
|
const callback = (rawResponse, flatResponse) => {
|
|
3029
3029
|
currentRawResponse = rawResponse;
|
|
3030
|
-
providedCallback === null || providedCallback ===
|
|
3030
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3031
3031
|
};
|
|
3032
3032
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3033
3033
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3046,8 +3046,8 @@ class SignalRImpl {
|
|
|
3046
3046
|
spec: restartOperationSpec$1
|
|
3047
3047
|
});
|
|
3048
3048
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3049
|
-
restoreFrom: options === null || options ===
|
|
3050
|
-
intervalInMs: options === null || options ===
|
|
3049
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3050
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3051
3051
|
resourceLocationConfig: "location"
|
|
3052
3052
|
});
|
|
3053
3053
|
yield poller.poll();
|
|
@@ -3061,7 +3061,7 @@ class SignalRImpl {
|
|
|
3061
3061
|
* @param options The options parameters.
|
|
3062
3062
|
*/
|
|
3063
3063
|
beginRestartAndWait(resourceGroupName, resourceName, options) {
|
|
3064
|
-
return tslib.__awaiter(this,
|
|
3064
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3065
3065
|
const poller = yield this.beginRestart(resourceGroupName, resourceName, options);
|
|
3066
3066
|
return poller.pollUntilDone();
|
|
3067
3067
|
});
|
|
@@ -3458,7 +3458,7 @@ class UsagesImpl {
|
|
|
3458
3458
|
return this;
|
|
3459
3459
|
},
|
|
3460
3460
|
byPage: (settings) => {
|
|
3461
|
-
if (settings === null || settings ===
|
|
3461
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3462
3462
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3463
3463
|
}
|
|
3464
3464
|
return this.listPagingPage(location, options, settings);
|
|
@@ -3468,7 +3468,7 @@ class UsagesImpl {
|
|
|
3468
3468
|
listPagingPage(location, options, settings) {
|
|
3469
3469
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3470
3470
|
let result;
|
|
3471
|
-
let continuationToken = settings === null || settings ===
|
|
3471
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3472
3472
|
if (!continuationToken) {
|
|
3473
3473
|
result = yield tslib.__await(this._list(location, options));
|
|
3474
3474
|
let page = result.value || [];
|
|
@@ -3599,7 +3599,7 @@ class SignalRCustomCertificatesImpl {
|
|
|
3599
3599
|
return this;
|
|
3600
3600
|
},
|
|
3601
3601
|
byPage: (settings) => {
|
|
3602
|
-
if (settings === null || settings ===
|
|
3602
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3603
3603
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3604
3604
|
}
|
|
3605
3605
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -3609,7 +3609,7 @@ class SignalRCustomCertificatesImpl {
|
|
|
3609
3609
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
3610
3610
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3611
3611
|
let result;
|
|
3612
|
-
let continuationToken = settings === null || settings ===
|
|
3612
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3613
3613
|
if (!continuationToken) {
|
|
3614
3614
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
3615
3615
|
let page = result.value || [];
|
|
@@ -3674,17 +3674,17 @@ class SignalRCustomCertificatesImpl {
|
|
|
3674
3674
|
* @param options The options parameters.
|
|
3675
3675
|
*/
|
|
3676
3676
|
beginCreateOrUpdate(resourceGroupName, resourceName, certificateName, parameters, options) {
|
|
3677
|
-
return tslib.__awaiter(this,
|
|
3678
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3677
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3678
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3679
3679
|
return this.client.sendOperationRequest(args, spec);
|
|
3680
3680
|
});
|
|
3681
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3681
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3682
3682
|
var _a;
|
|
3683
3683
|
let currentRawResponse = undefined;
|
|
3684
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3684
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3685
3685
|
const callback = (rawResponse, flatResponse) => {
|
|
3686
3686
|
currentRawResponse = rawResponse;
|
|
3687
|
-
providedCallback === null || providedCallback ===
|
|
3687
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3688
3688
|
};
|
|
3689
3689
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3690
3690
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3709,8 +3709,8 @@ class SignalRCustomCertificatesImpl {
|
|
|
3709
3709
|
spec: createOrUpdateOperationSpec$3
|
|
3710
3710
|
});
|
|
3711
3711
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3712
|
-
restoreFrom: options === null || options ===
|
|
3713
|
-
intervalInMs: options === null || options ===
|
|
3712
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3713
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3714
3714
|
resourceLocationConfig: "azure-async-operation"
|
|
3715
3715
|
});
|
|
3716
3716
|
yield poller.poll();
|
|
@@ -3726,7 +3726,7 @@ class SignalRCustomCertificatesImpl {
|
|
|
3726
3726
|
* @param options The options parameters.
|
|
3727
3727
|
*/
|
|
3728
3728
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, certificateName, parameters, options) {
|
|
3729
|
-
return tslib.__awaiter(this,
|
|
3729
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3730
3730
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, certificateName, parameters, options);
|
|
3731
3731
|
return poller.pollUntilDone();
|
|
3732
3732
|
});
|
|
@@ -3906,7 +3906,7 @@ class SignalRCustomDomainsImpl {
|
|
|
3906
3906
|
return this;
|
|
3907
3907
|
},
|
|
3908
3908
|
byPage: (settings) => {
|
|
3909
|
-
if (settings === null || settings ===
|
|
3909
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3910
3910
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3911
3911
|
}
|
|
3912
3912
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -3916,7 +3916,7 @@ class SignalRCustomDomainsImpl {
|
|
|
3916
3916
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
3917
3917
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3918
3918
|
let result;
|
|
3919
|
-
let continuationToken = settings === null || settings ===
|
|
3919
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3920
3920
|
if (!continuationToken) {
|
|
3921
3921
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
3922
3922
|
let page = result.value || [];
|
|
@@ -3981,17 +3981,17 @@ class SignalRCustomDomainsImpl {
|
|
|
3981
3981
|
* @param options The options parameters.
|
|
3982
3982
|
*/
|
|
3983
3983
|
beginCreateOrUpdate(resourceGroupName, resourceName, name, parameters, options) {
|
|
3984
|
-
return tslib.__awaiter(this,
|
|
3985
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3984
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3985
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3986
3986
|
return this.client.sendOperationRequest(args, spec);
|
|
3987
3987
|
});
|
|
3988
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3988
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3989
3989
|
var _a;
|
|
3990
3990
|
let currentRawResponse = undefined;
|
|
3991
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3991
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3992
3992
|
const callback = (rawResponse, flatResponse) => {
|
|
3993
3993
|
currentRawResponse = rawResponse;
|
|
3994
|
-
providedCallback === null || providedCallback ===
|
|
3994
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3995
3995
|
};
|
|
3996
3996
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3997
3997
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4010,8 +4010,8 @@ class SignalRCustomDomainsImpl {
|
|
|
4010
4010
|
spec: createOrUpdateOperationSpec$2
|
|
4011
4011
|
});
|
|
4012
4012
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4013
|
-
restoreFrom: options === null || options ===
|
|
4014
|
-
intervalInMs: options === null || options ===
|
|
4013
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4014
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4015
4015
|
resourceLocationConfig: "azure-async-operation"
|
|
4016
4016
|
});
|
|
4017
4017
|
yield poller.poll();
|
|
@@ -4027,7 +4027,7 @@ class SignalRCustomDomainsImpl {
|
|
|
4027
4027
|
* @param options The options parameters.
|
|
4028
4028
|
*/
|
|
4029
4029
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, name, parameters, options) {
|
|
4030
|
-
return tslib.__awaiter(this,
|
|
4030
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4031
4031
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, name, parameters, options);
|
|
4032
4032
|
return poller.pollUntilDone();
|
|
4033
4033
|
});
|
|
@@ -4040,17 +4040,17 @@ class SignalRCustomDomainsImpl {
|
|
|
4040
4040
|
* @param options The options parameters.
|
|
4041
4041
|
*/
|
|
4042
4042
|
beginDelete(resourceGroupName, resourceName, name, options) {
|
|
4043
|
-
return tslib.__awaiter(this,
|
|
4044
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4043
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4044
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4045
4045
|
return this.client.sendOperationRequest(args, spec);
|
|
4046
4046
|
});
|
|
4047
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4047
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4048
4048
|
var _a;
|
|
4049
4049
|
let currentRawResponse = undefined;
|
|
4050
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4050
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4051
4051
|
const callback = (rawResponse, flatResponse) => {
|
|
4052
4052
|
currentRawResponse = rawResponse;
|
|
4053
|
-
providedCallback === null || providedCallback ===
|
|
4053
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4054
4054
|
};
|
|
4055
4055
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4056
4056
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4069,8 +4069,8 @@ class SignalRCustomDomainsImpl {
|
|
|
4069
4069
|
spec: deleteOperationSpec$3
|
|
4070
4070
|
});
|
|
4071
4071
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4072
|
-
restoreFrom: options === null || options ===
|
|
4073
|
-
intervalInMs: options === null || options ===
|
|
4072
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4073
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4074
4074
|
resourceLocationConfig: "location"
|
|
4075
4075
|
});
|
|
4076
4076
|
yield poller.poll();
|
|
@@ -4085,7 +4085,7 @@ class SignalRCustomDomainsImpl {
|
|
|
4085
4085
|
* @param options The options parameters.
|
|
4086
4086
|
*/
|
|
4087
4087
|
beginDeleteAndWait(resourceGroupName, resourceName, name, options) {
|
|
4088
|
-
return tslib.__awaiter(this,
|
|
4088
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4089
4089
|
const poller = yield this.beginDelete(resourceGroupName, resourceName, name, options);
|
|
4090
4090
|
return poller.pollUntilDone();
|
|
4091
4091
|
});
|
|
@@ -4257,7 +4257,7 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4257
4257
|
return this;
|
|
4258
4258
|
},
|
|
4259
4259
|
byPage: (settings) => {
|
|
4260
|
-
if (settings === null || settings ===
|
|
4260
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4261
4261
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4262
4262
|
}
|
|
4263
4263
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -4267,7 +4267,7 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4267
4267
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
4268
4268
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4269
4269
|
let result;
|
|
4270
|
-
let continuationToken = settings === null || settings ===
|
|
4270
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4271
4271
|
if (!continuationToken) {
|
|
4272
4272
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
4273
4273
|
let page = result.value || [];
|
|
@@ -4356,17 +4356,17 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4356
4356
|
* @param options The options parameters.
|
|
4357
4357
|
*/
|
|
4358
4358
|
beginDelete(privateEndpointConnectionName, resourceGroupName, resourceName, options) {
|
|
4359
|
-
return tslib.__awaiter(this,
|
|
4360
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4359
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4360
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4361
4361
|
return this.client.sendOperationRequest(args, spec);
|
|
4362
4362
|
});
|
|
4363
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4363
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4364
4364
|
var _a;
|
|
4365
4365
|
let currentRawResponse = undefined;
|
|
4366
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4366
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4367
4367
|
const callback = (rawResponse, flatResponse) => {
|
|
4368
4368
|
currentRawResponse = rawResponse;
|
|
4369
|
-
providedCallback === null || providedCallback ===
|
|
4369
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4370
4370
|
};
|
|
4371
4371
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4372
4372
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4390,8 +4390,8 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4390
4390
|
spec: deleteOperationSpec$2
|
|
4391
4391
|
});
|
|
4392
4392
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4393
|
-
restoreFrom: options === null || options ===
|
|
4394
|
-
intervalInMs: options === null || options ===
|
|
4393
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4394
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4395
4395
|
resourceLocationConfig: "location"
|
|
4396
4396
|
});
|
|
4397
4397
|
yield poller.poll();
|
|
@@ -4407,7 +4407,7 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4407
4407
|
* @param options The options parameters.
|
|
4408
4408
|
*/
|
|
4409
4409
|
beginDeleteAndWait(privateEndpointConnectionName, resourceGroupName, resourceName, options) {
|
|
4410
|
-
return tslib.__awaiter(this,
|
|
4410
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4411
4411
|
const poller = yield this.beginDelete(privateEndpointConnectionName, resourceGroupName, resourceName, options);
|
|
4412
4412
|
return poller.pollUntilDone();
|
|
4413
4413
|
});
|
|
@@ -4570,7 +4570,7 @@ class SignalRPrivateLinkResourcesImpl {
|
|
|
4570
4570
|
return this;
|
|
4571
4571
|
},
|
|
4572
4572
|
byPage: (settings) => {
|
|
4573
|
-
if (settings === null || settings ===
|
|
4573
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4574
4574
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4575
4575
|
}
|
|
4576
4576
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -4580,7 +4580,7 @@ class SignalRPrivateLinkResourcesImpl {
|
|
|
4580
4580
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
4581
4581
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4582
4582
|
let result;
|
|
4583
|
-
let continuationToken = settings === null || settings ===
|
|
4583
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4584
4584
|
if (!continuationToken) {
|
|
4585
4585
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
4586
4586
|
let page = result.value || [];
|
|
@@ -4715,7 +4715,7 @@ class SignalRReplicasImpl {
|
|
|
4715
4715
|
return this;
|
|
4716
4716
|
},
|
|
4717
4717
|
byPage: (settings) => {
|
|
4718
|
-
if (settings === null || settings ===
|
|
4718
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4719
4719
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4720
4720
|
}
|
|
4721
4721
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -4725,7 +4725,7 @@ class SignalRReplicasImpl {
|
|
|
4725
4725
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
4726
4726
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4727
4727
|
let result;
|
|
4728
|
-
let continuationToken = settings === null || settings ===
|
|
4728
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4729
4729
|
if (!continuationToken) {
|
|
4730
4730
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
4731
4731
|
let page = result.value || [];
|
|
@@ -4790,17 +4790,17 @@ class SignalRReplicasImpl {
|
|
|
4790
4790
|
* @param options The options parameters.
|
|
4791
4791
|
*/
|
|
4792
4792
|
beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4793
|
-
return tslib.__awaiter(this,
|
|
4794
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4793
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4794
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4795
4795
|
return this.client.sendOperationRequest(args, spec);
|
|
4796
4796
|
});
|
|
4797
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4797
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4798
4798
|
var _a;
|
|
4799
4799
|
let currentRawResponse = undefined;
|
|
4800
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4800
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4801
4801
|
const callback = (rawResponse, flatResponse) => {
|
|
4802
4802
|
currentRawResponse = rawResponse;
|
|
4803
|
-
providedCallback === null || providedCallback ===
|
|
4803
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4804
4804
|
};
|
|
4805
4805
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4806
4806
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4825,8 +4825,8 @@ class SignalRReplicasImpl {
|
|
|
4825
4825
|
spec: createOrUpdateOperationSpec$1
|
|
4826
4826
|
});
|
|
4827
4827
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4828
|
-
restoreFrom: options === null || options ===
|
|
4829
|
-
intervalInMs: options === null || options ===
|
|
4828
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4829
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4830
4830
|
resourceLocationConfig: "azure-async-operation"
|
|
4831
4831
|
});
|
|
4832
4832
|
yield poller.poll();
|
|
@@ -4842,7 +4842,7 @@ class SignalRReplicasImpl {
|
|
|
4842
4842
|
* @param options The options parameters.
|
|
4843
4843
|
*/
|
|
4844
4844
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4845
|
-
return tslib.__awaiter(this,
|
|
4845
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4846
4846
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
|
|
4847
4847
|
return poller.pollUntilDone();
|
|
4848
4848
|
});
|
|
@@ -4866,17 +4866,17 @@ class SignalRReplicasImpl {
|
|
|
4866
4866
|
* @param options The options parameters.
|
|
4867
4867
|
*/
|
|
4868
4868
|
beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4869
|
-
return tslib.__awaiter(this,
|
|
4870
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4869
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4870
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4871
4871
|
return this.client.sendOperationRequest(args, spec);
|
|
4872
4872
|
});
|
|
4873
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4873
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4874
4874
|
var _a;
|
|
4875
4875
|
let currentRawResponse = undefined;
|
|
4876
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4876
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4877
4877
|
const callback = (rawResponse, flatResponse) => {
|
|
4878
4878
|
currentRawResponse = rawResponse;
|
|
4879
|
-
providedCallback === null || providedCallback ===
|
|
4879
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4880
4880
|
};
|
|
4881
4881
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4882
4882
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4901,8 +4901,8 @@ class SignalRReplicasImpl {
|
|
|
4901
4901
|
spec: updateOperationSpec
|
|
4902
4902
|
});
|
|
4903
4903
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4904
|
-
restoreFrom: options === null || options ===
|
|
4905
|
-
intervalInMs: options === null || options ===
|
|
4904
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4905
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4906
4906
|
resourceLocationConfig: "location"
|
|
4907
4907
|
});
|
|
4908
4908
|
yield poller.poll();
|
|
@@ -4918,7 +4918,7 @@ class SignalRReplicasImpl {
|
|
|
4918
4918
|
* @param options The options parameters.
|
|
4919
4919
|
*/
|
|
4920
4920
|
beginUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4921
|
-
return tslib.__awaiter(this,
|
|
4921
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4922
4922
|
const poller = yield this.beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
|
|
4923
4923
|
return poller.pollUntilDone();
|
|
4924
4924
|
});
|
|
@@ -4931,17 +4931,17 @@ class SignalRReplicasImpl {
|
|
|
4931
4931
|
* @param options The options parameters.
|
|
4932
4932
|
*/
|
|
4933
4933
|
beginRestart(resourceGroupName, resourceName, replicaName, options) {
|
|
4934
|
-
return tslib.__awaiter(this,
|
|
4935
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4934
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4935
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4936
4936
|
return this.client.sendOperationRequest(args, spec);
|
|
4937
4937
|
});
|
|
4938
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4938
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4939
4939
|
var _a;
|
|
4940
4940
|
let currentRawResponse = undefined;
|
|
4941
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4941
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4942
4942
|
const callback = (rawResponse, flatResponse) => {
|
|
4943
4943
|
currentRawResponse = rawResponse;
|
|
4944
|
-
providedCallback === null || providedCallback ===
|
|
4944
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4945
4945
|
};
|
|
4946
4946
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4947
4947
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4960,8 +4960,8 @@ class SignalRReplicasImpl {
|
|
|
4960
4960
|
spec: restartOperationSpec
|
|
4961
4961
|
});
|
|
4962
4962
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4963
|
-
restoreFrom: options === null || options ===
|
|
4964
|
-
intervalInMs: options === null || options ===
|
|
4963
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4964
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4965
4965
|
resourceLocationConfig: "location"
|
|
4966
4966
|
});
|
|
4967
4967
|
yield poller.poll();
|
|
@@ -4976,7 +4976,7 @@ class SignalRReplicasImpl {
|
|
|
4976
4976
|
* @param options The options parameters.
|
|
4977
4977
|
*/
|
|
4978
4978
|
beginRestartAndWait(resourceGroupName, resourceName, replicaName, options) {
|
|
4979
|
-
return tslib.__awaiter(this,
|
|
4979
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4980
4980
|
const poller = yield this.beginRestart(resourceGroupName, resourceName, replicaName, options);
|
|
4981
4981
|
return poller.pollUntilDone();
|
|
4982
4982
|
});
|
|
@@ -5210,7 +5210,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5210
5210
|
return this;
|
|
5211
5211
|
},
|
|
5212
5212
|
byPage: (settings) => {
|
|
5213
|
-
if (settings === null || settings ===
|
|
5213
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5214
5214
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5215
5215
|
}
|
|
5216
5216
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -5220,7 +5220,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5220
5220
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
5221
5221
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5222
5222
|
let result;
|
|
5223
|
-
let continuationToken = settings === null || settings ===
|
|
5223
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5224
5224
|
if (!continuationToken) {
|
|
5225
5225
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
5226
5226
|
let page = result.value || [];
|
|
@@ -5290,17 +5290,17 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5290
5290
|
* @param options The options parameters.
|
|
5291
5291
|
*/
|
|
5292
5292
|
beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
|
|
5293
|
-
return tslib.__awaiter(this,
|
|
5294
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5293
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5294
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5295
5295
|
return this.client.sendOperationRequest(args, spec);
|
|
5296
5296
|
});
|
|
5297
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5297
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5298
5298
|
var _a;
|
|
5299
5299
|
let currentRawResponse = undefined;
|
|
5300
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5300
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5301
5301
|
const callback = (rawResponse, flatResponse) => {
|
|
5302
5302
|
currentRawResponse = rawResponse;
|
|
5303
|
-
providedCallback === null || providedCallback ===
|
|
5303
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5304
5304
|
};
|
|
5305
5305
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5306
5306
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5325,8 +5325,8 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5325
5325
|
spec: createOrUpdateOperationSpec
|
|
5326
5326
|
});
|
|
5327
5327
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5328
|
-
restoreFrom: options === null || options ===
|
|
5329
|
-
intervalInMs: options === null || options ===
|
|
5328
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5329
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5330
5330
|
resourceLocationConfig: "azure-async-operation"
|
|
5331
5331
|
});
|
|
5332
5332
|
yield poller.poll();
|
|
@@ -5342,7 +5342,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5342
5342
|
* @param options The options parameters.
|
|
5343
5343
|
*/
|
|
5344
5344
|
beginCreateOrUpdateAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
|
|
5345
|
-
return tslib.__awaiter(this,
|
|
5345
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5346
5346
|
const poller = yield this.beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options);
|
|
5347
5347
|
return poller.pollUntilDone();
|
|
5348
5348
|
});
|
|
@@ -5355,17 +5355,17 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5355
5355
|
* @param options The options parameters.
|
|
5356
5356
|
*/
|
|
5357
5357
|
beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
|
|
5358
|
-
return tslib.__awaiter(this,
|
|
5359
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5358
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5359
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5360
5360
|
return this.client.sendOperationRequest(args, spec);
|
|
5361
5361
|
});
|
|
5362
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5362
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5363
5363
|
var _a;
|
|
5364
5364
|
let currentRawResponse = undefined;
|
|
5365
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5365
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
5366
5366
|
const callback = (rawResponse, flatResponse) => {
|
|
5367
5367
|
currentRawResponse = rawResponse;
|
|
5368
|
-
providedCallback === null || providedCallback ===
|
|
5368
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
5369
5369
|
};
|
|
5370
5370
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5371
5371
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5389,8 +5389,8 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5389
5389
|
spec: deleteOperationSpec
|
|
5390
5390
|
});
|
|
5391
5391
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5392
|
-
restoreFrom: options === null || options ===
|
|
5393
|
-
intervalInMs: options === null || options ===
|
|
5392
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
5393
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
5394
5394
|
resourceLocationConfig: "location"
|
|
5395
5395
|
});
|
|
5396
5396
|
yield poller.poll();
|
|
@@ -5405,7 +5405,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5405
5405
|
* @param options The options parameters.
|
|
5406
5406
|
*/
|
|
5407
5407
|
beginDeleteAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
|
|
5408
|
-
return tslib.__awaiter(this,
|
|
5408
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5409
5409
|
const poller = yield this.beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options);
|
|
5410
5410
|
return poller.pollUntilDone();
|
|
5411
5411
|
});
|
|
@@ -5580,10 +5580,10 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5580
5580
|
: `${packageDetails}`;
|
|
5581
5581
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5582
5582
|
userAgentPrefix
|
|
5583
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
5583
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5584
5584
|
super(optionsWithDefaults);
|
|
5585
5585
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5586
|
-
if ((options === null || options ===
|
|
5586
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5587
5587
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5588
5588
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5589
5589
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -5597,7 +5597,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5597
5597
|
});
|
|
5598
5598
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5599
5599
|
credential: credentials,
|
|
5600
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
5600
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5601
5601
|
challengeCallbacks: {
|
|
5602
5602
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5603
5603
|
}
|
|
@@ -5627,7 +5627,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5627
5627
|
const apiVersionPolicy = {
|
|
5628
5628
|
name: "CustomApiVersionPolicy",
|
|
5629
5629
|
sendRequest(request, next) {
|
|
5630
|
-
return tslib.__awaiter(this,
|
|
5630
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5631
5631
|
const param = request.url.split("?");
|
|
5632
5632
|
if (param.length > 1) {
|
|
5633
5633
|
const newParams = param[1].split("&").map((item) => {
|