@azure/arm-signalr 6.0.0-alpha.20250103.1 → 6.0.0-alpha.20250107.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +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 === undefined ? undefined : _a.continuationToken;
|
|
51
51
|
}
|
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
|
53
53
|
var _a;
|
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _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 === undefined ? undefined : 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 === undefined ? undefined : settings.continuationToken;
|
|
2490
2490
|
if (!continuationToken) {
|
|
2491
2491
|
result = yield tslib.__await(this._list(options));
|
|
2492
2492
|
let page = result.value || [];
|
|
@@ -2588,7 +2588,7 @@ function createLroSpec(inputs) {
|
|
|
2588
2588
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2589
2589
|
sendPollRequest: (path, options) => {
|
|
2590
2590
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2591
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
2591
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
|
2592
2592
|
}
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
@@ -2624,7 +2624,7 @@ class SignalRImpl {
|
|
|
2624
2624
|
return this;
|
|
2625
2625
|
},
|
|
2626
2626
|
byPage: (settings) => {
|
|
2627
|
-
if (settings === null || settings ===
|
|
2627
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2628
2628
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2629
2629
|
}
|
|
2630
2630
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
@@ -2634,7 +2634,7 @@ class SignalRImpl {
|
|
|
2634
2634
|
listBySubscriptionPagingPage(options, settings) {
|
|
2635
2635
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2636
2636
|
let result;
|
|
2637
|
-
let continuationToken = settings === null || settings ===
|
|
2637
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2638
2638
|
if (!continuationToken) {
|
|
2639
2639
|
result = yield tslib.__await(this._listBySubscription(options));
|
|
2640
2640
|
let page = result.value || [];
|
|
@@ -2686,7 +2686,7 @@ class SignalRImpl {
|
|
|
2686
2686
|
return this;
|
|
2687
2687
|
},
|
|
2688
2688
|
byPage: (settings) => {
|
|
2689
|
-
if (settings === null || settings ===
|
|
2689
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
2690
2690
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2691
2691
|
}
|
|
2692
2692
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2696,7 +2696,7 @@ class SignalRImpl {
|
|
|
2696
2696
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2697
2697
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2698
2698
|
let result;
|
|
2699
|
-
let continuationToken = settings === null || settings ===
|
|
2699
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
2700
2700
|
if (!continuationToken) {
|
|
2701
2701
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2702
2702
|
let page = result.value || [];
|
|
@@ -2774,17 +2774,17 @@ class SignalRImpl {
|
|
|
2774
2774
|
* @param options The options parameters.
|
|
2775
2775
|
*/
|
|
2776
2776
|
beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
2777
|
-
return tslib.__awaiter(this,
|
|
2778
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2777
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2778
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2779
2779
|
return this.client.sendOperationRequest(args, spec);
|
|
2780
2780
|
});
|
|
2781
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2781
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2782
2782
|
var _a;
|
|
2783
2783
|
let currentRawResponse = undefined;
|
|
2784
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2784
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2785
2785
|
const callback = (rawResponse, flatResponse) => {
|
|
2786
2786
|
currentRawResponse = rawResponse;
|
|
2787
|
-
providedCallback === null || providedCallback ===
|
|
2787
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2788
2788
|
};
|
|
2789
2789
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2790
2790
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2803,8 +2803,8 @@ class SignalRImpl {
|
|
|
2803
2803
|
spec: createOrUpdateOperationSpec$4
|
|
2804
2804
|
});
|
|
2805
2805
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2806
|
-
restoreFrom: options === null || options ===
|
|
2807
|
-
intervalInMs: options === null || options ===
|
|
2806
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2807
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2808
2808
|
resourceLocationConfig: "azure-async-operation"
|
|
2809
2809
|
});
|
|
2810
2810
|
yield poller.poll();
|
|
@@ -2819,7 +2819,7 @@ class SignalRImpl {
|
|
|
2819
2819
|
* @param options The options parameters.
|
|
2820
2820
|
*/
|
|
2821
2821
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
2822
|
-
return tslib.__awaiter(this,
|
|
2822
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2823
2823
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
|
|
2824
2824
|
return poller.pollUntilDone();
|
|
2825
2825
|
});
|
|
@@ -2831,17 +2831,17 @@ class SignalRImpl {
|
|
|
2831
2831
|
* @param options The options parameters.
|
|
2832
2832
|
*/
|
|
2833
2833
|
beginDelete(resourceGroupName, resourceName, options) {
|
|
2834
|
-
return tslib.__awaiter(this,
|
|
2835
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2834
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2835
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2836
2836
|
return this.client.sendOperationRequest(args, spec);
|
|
2837
2837
|
});
|
|
2838
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2838
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2839
2839
|
var _a;
|
|
2840
2840
|
let currentRawResponse = undefined;
|
|
2841
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2841
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2842
2842
|
const callback = (rawResponse, flatResponse) => {
|
|
2843
2843
|
currentRawResponse = rawResponse;
|
|
2844
|
-
providedCallback === null || providedCallback ===
|
|
2844
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2845
2845
|
};
|
|
2846
2846
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2847
2847
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2860,8 +2860,8 @@ class SignalRImpl {
|
|
|
2860
2860
|
spec: deleteOperationSpec$5
|
|
2861
2861
|
});
|
|
2862
2862
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2863
|
-
restoreFrom: options === null || options ===
|
|
2864
|
-
intervalInMs: options === null || options ===
|
|
2863
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2864
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2865
2865
|
resourceLocationConfig: "location"
|
|
2866
2866
|
});
|
|
2867
2867
|
yield poller.poll();
|
|
@@ -2875,7 +2875,7 @@ class SignalRImpl {
|
|
|
2875
2875
|
* @param options The options parameters.
|
|
2876
2876
|
*/
|
|
2877
2877
|
beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
2878
|
-
return tslib.__awaiter(this,
|
|
2878
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2879
2879
|
const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
|
|
2880
2880
|
return poller.pollUntilDone();
|
|
2881
2881
|
});
|
|
@@ -2888,17 +2888,17 @@ class SignalRImpl {
|
|
|
2888
2888
|
* @param options The options parameters.
|
|
2889
2889
|
*/
|
|
2890
2890
|
beginUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
2891
|
-
return tslib.__awaiter(this,
|
|
2892
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2891
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2892
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2893
2893
|
return this.client.sendOperationRequest(args, spec);
|
|
2894
2894
|
});
|
|
2895
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2895
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2896
2896
|
var _a;
|
|
2897
2897
|
let currentRawResponse = undefined;
|
|
2898
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2898
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2899
2899
|
const callback = (rawResponse, flatResponse) => {
|
|
2900
2900
|
currentRawResponse = rawResponse;
|
|
2901
|
-
providedCallback === null || providedCallback ===
|
|
2901
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2902
2902
|
};
|
|
2903
2903
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2904
2904
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2917,8 +2917,8 @@ class SignalRImpl {
|
|
|
2917
2917
|
spec: updateOperationSpec$2
|
|
2918
2918
|
});
|
|
2919
2919
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2920
|
-
restoreFrom: options === null || options ===
|
|
2921
|
-
intervalInMs: options === null || options ===
|
|
2920
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2921
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2922
2922
|
resourceLocationConfig: "location"
|
|
2923
2923
|
});
|
|
2924
2924
|
yield poller.poll();
|
|
@@ -2933,7 +2933,7 @@ class SignalRImpl {
|
|
|
2933
2933
|
* @param options The options parameters.
|
|
2934
2934
|
*/
|
|
2935
2935
|
beginUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
2936
|
-
return tslib.__awaiter(this,
|
|
2936
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2937
2937
|
const poller = yield this.beginUpdate(resourceGroupName, resourceName, parameters, options);
|
|
2938
2938
|
return poller.pollUntilDone();
|
|
2939
2939
|
});
|
|
@@ -2956,17 +2956,17 @@ class SignalRImpl {
|
|
|
2956
2956
|
* @param options The options parameters.
|
|
2957
2957
|
*/
|
|
2958
2958
|
beginRegenerateKey(resourceGroupName, resourceName, parameters, options) {
|
|
2959
|
-
return tslib.__awaiter(this,
|
|
2960
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2959
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2960
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2961
2961
|
return this.client.sendOperationRequest(args, spec);
|
|
2962
2962
|
});
|
|
2963
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2963
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
2964
2964
|
var _a;
|
|
2965
2965
|
let currentRawResponse = undefined;
|
|
2966
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2966
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
2967
2967
|
const callback = (rawResponse, flatResponse) => {
|
|
2968
2968
|
currentRawResponse = rawResponse;
|
|
2969
|
-
providedCallback === null || providedCallback ===
|
|
2969
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
2970
2970
|
};
|
|
2971
2971
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2972
2972
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2985,8 +2985,8 @@ class SignalRImpl {
|
|
|
2985
2985
|
spec: regenerateKeyOperationSpec
|
|
2986
2986
|
});
|
|
2987
2987
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2988
|
-
restoreFrom: options === null || options ===
|
|
2989
|
-
intervalInMs: options === null || options ===
|
|
2988
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
2989
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
2990
2990
|
resourceLocationConfig: "location"
|
|
2991
2991
|
});
|
|
2992
2992
|
yield poller.poll();
|
|
@@ -3002,7 +3002,7 @@ class SignalRImpl {
|
|
|
3002
3002
|
* @param options The options parameters.
|
|
3003
3003
|
*/
|
|
3004
3004
|
beginRegenerateKeyAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
3005
|
-
return tslib.__awaiter(this,
|
|
3005
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3006
3006
|
const poller = yield this.beginRegenerateKey(resourceGroupName, resourceName, parameters, options);
|
|
3007
3007
|
return poller.pollUntilDone();
|
|
3008
3008
|
});
|
|
@@ -3024,17 +3024,17 @@ class SignalRImpl {
|
|
|
3024
3024
|
* @param options The options parameters.
|
|
3025
3025
|
*/
|
|
3026
3026
|
beginRestart(resourceGroupName, resourceName, options) {
|
|
3027
|
-
return tslib.__awaiter(this,
|
|
3028
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3027
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3028
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3029
3029
|
return this.client.sendOperationRequest(args, spec);
|
|
3030
3030
|
});
|
|
3031
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3031
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3032
3032
|
var _a;
|
|
3033
3033
|
let currentRawResponse = undefined;
|
|
3034
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3034
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3035
3035
|
const callback = (rawResponse, flatResponse) => {
|
|
3036
3036
|
currentRawResponse = rawResponse;
|
|
3037
|
-
providedCallback === null || providedCallback ===
|
|
3037
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3038
3038
|
};
|
|
3039
3039
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3040
3040
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3053,8 +3053,8 @@ class SignalRImpl {
|
|
|
3053
3053
|
spec: restartOperationSpec$1
|
|
3054
3054
|
});
|
|
3055
3055
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3056
|
-
restoreFrom: options === null || options ===
|
|
3057
|
-
intervalInMs: options === null || options ===
|
|
3056
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3057
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3058
3058
|
resourceLocationConfig: "location"
|
|
3059
3059
|
});
|
|
3060
3060
|
yield poller.poll();
|
|
@@ -3068,7 +3068,7 @@ class SignalRImpl {
|
|
|
3068
3068
|
* @param options The options parameters.
|
|
3069
3069
|
*/
|
|
3070
3070
|
beginRestartAndWait(resourceGroupName, resourceName, options) {
|
|
3071
|
-
return tslib.__awaiter(this,
|
|
3071
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3072
3072
|
const poller = yield this.beginRestart(resourceGroupName, resourceName, options);
|
|
3073
3073
|
return poller.pollUntilDone();
|
|
3074
3074
|
});
|
|
@@ -3465,7 +3465,7 @@ class UsagesImpl {
|
|
|
3465
3465
|
return this;
|
|
3466
3466
|
},
|
|
3467
3467
|
byPage: (settings) => {
|
|
3468
|
-
if (settings === null || settings ===
|
|
3468
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3469
3469
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3470
3470
|
}
|
|
3471
3471
|
return this.listPagingPage(location, options, settings);
|
|
@@ -3475,7 +3475,7 @@ class UsagesImpl {
|
|
|
3475
3475
|
listPagingPage(location, options, settings) {
|
|
3476
3476
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3477
3477
|
let result;
|
|
3478
|
-
let continuationToken = settings === null || settings ===
|
|
3478
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3479
3479
|
if (!continuationToken) {
|
|
3480
3480
|
result = yield tslib.__await(this._list(location, options));
|
|
3481
3481
|
let page = result.value || [];
|
|
@@ -3606,7 +3606,7 @@ class SignalRCustomCertificatesImpl {
|
|
|
3606
3606
|
return this;
|
|
3607
3607
|
},
|
|
3608
3608
|
byPage: (settings) => {
|
|
3609
|
-
if (settings === null || settings ===
|
|
3609
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3610
3610
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3611
3611
|
}
|
|
3612
3612
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -3616,7 +3616,7 @@ class SignalRCustomCertificatesImpl {
|
|
|
3616
3616
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
3617
3617
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3618
3618
|
let result;
|
|
3619
|
-
let continuationToken = settings === null || settings ===
|
|
3619
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3620
3620
|
if (!continuationToken) {
|
|
3621
3621
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
3622
3622
|
let page = result.value || [];
|
|
@@ -3681,17 +3681,17 @@ class SignalRCustomCertificatesImpl {
|
|
|
3681
3681
|
* @param options The options parameters.
|
|
3682
3682
|
*/
|
|
3683
3683
|
beginCreateOrUpdate(resourceGroupName, resourceName, certificateName, parameters, options) {
|
|
3684
|
-
return tslib.__awaiter(this,
|
|
3685
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3684
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3685
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3686
3686
|
return this.client.sendOperationRequest(args, spec);
|
|
3687
3687
|
});
|
|
3688
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3688
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3689
3689
|
var _a;
|
|
3690
3690
|
let currentRawResponse = undefined;
|
|
3691
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3691
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3692
3692
|
const callback = (rawResponse, flatResponse) => {
|
|
3693
3693
|
currentRawResponse = rawResponse;
|
|
3694
|
-
providedCallback === null || providedCallback ===
|
|
3694
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
3695
3695
|
};
|
|
3696
3696
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3697
3697
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3716,8 +3716,8 @@ class SignalRCustomCertificatesImpl {
|
|
|
3716
3716
|
spec: createOrUpdateOperationSpec$3
|
|
3717
3717
|
});
|
|
3718
3718
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3719
|
-
restoreFrom: options === null || options ===
|
|
3720
|
-
intervalInMs: options === null || options ===
|
|
3719
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
3720
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
3721
3721
|
resourceLocationConfig: "azure-async-operation"
|
|
3722
3722
|
});
|
|
3723
3723
|
yield poller.poll();
|
|
@@ -3733,7 +3733,7 @@ class SignalRCustomCertificatesImpl {
|
|
|
3733
3733
|
* @param options The options parameters.
|
|
3734
3734
|
*/
|
|
3735
3735
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, certificateName, parameters, options) {
|
|
3736
|
-
return tslib.__awaiter(this,
|
|
3736
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3737
3737
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, certificateName, parameters, options);
|
|
3738
3738
|
return poller.pollUntilDone();
|
|
3739
3739
|
});
|
|
@@ -3913,7 +3913,7 @@ class SignalRCustomDomainsImpl {
|
|
|
3913
3913
|
return this;
|
|
3914
3914
|
},
|
|
3915
3915
|
byPage: (settings) => {
|
|
3916
|
-
if (settings === null || settings ===
|
|
3916
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
3917
3917
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3918
3918
|
}
|
|
3919
3919
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -3923,7 +3923,7 @@ class SignalRCustomDomainsImpl {
|
|
|
3923
3923
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
3924
3924
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3925
3925
|
let result;
|
|
3926
|
-
let continuationToken = settings === null || settings ===
|
|
3926
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
3927
3927
|
if (!continuationToken) {
|
|
3928
3928
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
3929
3929
|
let page = result.value || [];
|
|
@@ -3988,17 +3988,17 @@ class SignalRCustomDomainsImpl {
|
|
|
3988
3988
|
* @param options The options parameters.
|
|
3989
3989
|
*/
|
|
3990
3990
|
beginCreateOrUpdate(resourceGroupName, resourceName, name, parameters, options) {
|
|
3991
|
-
return tslib.__awaiter(this,
|
|
3992
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3991
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3992
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3993
3993
|
return this.client.sendOperationRequest(args, spec);
|
|
3994
3994
|
});
|
|
3995
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3995
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
3996
3996
|
var _a;
|
|
3997
3997
|
let currentRawResponse = undefined;
|
|
3998
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3998
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
3999
3999
|
const callback = (rawResponse, flatResponse) => {
|
|
4000
4000
|
currentRawResponse = rawResponse;
|
|
4001
|
-
providedCallback === null || providedCallback ===
|
|
4001
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4002
4002
|
};
|
|
4003
4003
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4004
4004
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4017,8 +4017,8 @@ class SignalRCustomDomainsImpl {
|
|
|
4017
4017
|
spec: createOrUpdateOperationSpec$2
|
|
4018
4018
|
});
|
|
4019
4019
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4020
|
-
restoreFrom: options === null || options ===
|
|
4021
|
-
intervalInMs: options === null || options ===
|
|
4020
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4021
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4022
4022
|
resourceLocationConfig: "azure-async-operation"
|
|
4023
4023
|
});
|
|
4024
4024
|
yield poller.poll();
|
|
@@ -4034,7 +4034,7 @@ class SignalRCustomDomainsImpl {
|
|
|
4034
4034
|
* @param options The options parameters.
|
|
4035
4035
|
*/
|
|
4036
4036
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, name, parameters, options) {
|
|
4037
|
-
return tslib.__awaiter(this,
|
|
4037
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4038
4038
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, name, parameters, options);
|
|
4039
4039
|
return poller.pollUntilDone();
|
|
4040
4040
|
});
|
|
@@ -4047,17 +4047,17 @@ class SignalRCustomDomainsImpl {
|
|
|
4047
4047
|
* @param options The options parameters.
|
|
4048
4048
|
*/
|
|
4049
4049
|
beginDelete(resourceGroupName, resourceName, name, options) {
|
|
4050
|
-
return tslib.__awaiter(this,
|
|
4051
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4050
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4051
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4052
4052
|
return this.client.sendOperationRequest(args, spec);
|
|
4053
4053
|
});
|
|
4054
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4054
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4055
4055
|
var _a;
|
|
4056
4056
|
let currentRawResponse = undefined;
|
|
4057
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4057
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4058
4058
|
const callback = (rawResponse, flatResponse) => {
|
|
4059
4059
|
currentRawResponse = rawResponse;
|
|
4060
|
-
providedCallback === null || providedCallback ===
|
|
4060
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4061
4061
|
};
|
|
4062
4062
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4063
4063
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4076,8 +4076,8 @@ class SignalRCustomDomainsImpl {
|
|
|
4076
4076
|
spec: deleteOperationSpec$3
|
|
4077
4077
|
});
|
|
4078
4078
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4079
|
-
restoreFrom: options === null || options ===
|
|
4080
|
-
intervalInMs: options === null || options ===
|
|
4079
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4080
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4081
4081
|
resourceLocationConfig: "location"
|
|
4082
4082
|
});
|
|
4083
4083
|
yield poller.poll();
|
|
@@ -4092,7 +4092,7 @@ class SignalRCustomDomainsImpl {
|
|
|
4092
4092
|
* @param options The options parameters.
|
|
4093
4093
|
*/
|
|
4094
4094
|
beginDeleteAndWait(resourceGroupName, resourceName, name, options) {
|
|
4095
|
-
return tslib.__awaiter(this,
|
|
4095
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4096
4096
|
const poller = yield this.beginDelete(resourceGroupName, resourceName, name, options);
|
|
4097
4097
|
return poller.pollUntilDone();
|
|
4098
4098
|
});
|
|
@@ -4264,7 +4264,7 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4264
4264
|
return this;
|
|
4265
4265
|
},
|
|
4266
4266
|
byPage: (settings) => {
|
|
4267
|
-
if (settings === null || settings ===
|
|
4267
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4268
4268
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4269
4269
|
}
|
|
4270
4270
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -4274,7 +4274,7 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4274
4274
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
4275
4275
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4276
4276
|
let result;
|
|
4277
|
-
let continuationToken = settings === null || settings ===
|
|
4277
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4278
4278
|
if (!continuationToken) {
|
|
4279
4279
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
4280
4280
|
let page = result.value || [];
|
|
@@ -4363,17 +4363,17 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4363
4363
|
* @param options The options parameters.
|
|
4364
4364
|
*/
|
|
4365
4365
|
beginDelete(privateEndpointConnectionName, resourceGroupName, resourceName, options) {
|
|
4366
|
-
return tslib.__awaiter(this,
|
|
4367
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4366
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4367
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4368
4368
|
return this.client.sendOperationRequest(args, spec);
|
|
4369
4369
|
});
|
|
4370
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4370
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4371
4371
|
var _a;
|
|
4372
4372
|
let currentRawResponse = undefined;
|
|
4373
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4373
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4374
4374
|
const callback = (rawResponse, flatResponse) => {
|
|
4375
4375
|
currentRawResponse = rawResponse;
|
|
4376
|
-
providedCallback === null || providedCallback ===
|
|
4376
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4377
4377
|
};
|
|
4378
4378
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4379
4379
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4397,8 +4397,8 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4397
4397
|
spec: deleteOperationSpec$2
|
|
4398
4398
|
});
|
|
4399
4399
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4400
|
-
restoreFrom: options === null || options ===
|
|
4401
|
-
intervalInMs: options === null || options ===
|
|
4400
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4401
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4402
4402
|
resourceLocationConfig: "location"
|
|
4403
4403
|
});
|
|
4404
4404
|
yield poller.poll();
|
|
@@ -4414,7 +4414,7 @@ class SignalRPrivateEndpointConnectionsImpl {
|
|
|
4414
4414
|
* @param options The options parameters.
|
|
4415
4415
|
*/
|
|
4416
4416
|
beginDeleteAndWait(privateEndpointConnectionName, resourceGroupName, resourceName, options) {
|
|
4417
|
-
return tslib.__awaiter(this,
|
|
4417
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4418
4418
|
const poller = yield this.beginDelete(privateEndpointConnectionName, resourceGroupName, resourceName, options);
|
|
4419
4419
|
return poller.pollUntilDone();
|
|
4420
4420
|
});
|
|
@@ -4577,7 +4577,7 @@ class SignalRPrivateLinkResourcesImpl {
|
|
|
4577
4577
|
return this;
|
|
4578
4578
|
},
|
|
4579
4579
|
byPage: (settings) => {
|
|
4580
|
-
if (settings === null || settings ===
|
|
4580
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4581
4581
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4582
4582
|
}
|
|
4583
4583
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -4587,7 +4587,7 @@ class SignalRPrivateLinkResourcesImpl {
|
|
|
4587
4587
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
4588
4588
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4589
4589
|
let result;
|
|
4590
|
-
let continuationToken = settings === null || settings ===
|
|
4590
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4591
4591
|
if (!continuationToken) {
|
|
4592
4592
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
4593
4593
|
let page = result.value || [];
|
|
@@ -4722,7 +4722,7 @@ class SignalRReplicasImpl {
|
|
|
4722
4722
|
return this;
|
|
4723
4723
|
},
|
|
4724
4724
|
byPage: (settings) => {
|
|
4725
|
-
if (settings === null || settings ===
|
|
4725
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
4726
4726
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4727
4727
|
}
|
|
4728
4728
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -4732,7 +4732,7 @@ class SignalRReplicasImpl {
|
|
|
4732
4732
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
4733
4733
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4734
4734
|
let result;
|
|
4735
|
-
let continuationToken = settings === null || settings ===
|
|
4735
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
4736
4736
|
if (!continuationToken) {
|
|
4737
4737
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
4738
4738
|
let page = result.value || [];
|
|
@@ -4797,17 +4797,17 @@ class SignalRReplicasImpl {
|
|
|
4797
4797
|
* @param options The options parameters.
|
|
4798
4798
|
*/
|
|
4799
4799
|
beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4800
|
-
return tslib.__awaiter(this,
|
|
4801
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4800
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4801
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4802
4802
|
return this.client.sendOperationRequest(args, spec);
|
|
4803
4803
|
});
|
|
4804
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4804
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4805
4805
|
var _a;
|
|
4806
4806
|
let currentRawResponse = undefined;
|
|
4807
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4807
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4808
4808
|
const callback = (rawResponse, flatResponse) => {
|
|
4809
4809
|
currentRawResponse = rawResponse;
|
|
4810
|
-
providedCallback === null || providedCallback ===
|
|
4810
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4811
4811
|
};
|
|
4812
4812
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4813
4813
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4832,8 +4832,8 @@ class SignalRReplicasImpl {
|
|
|
4832
4832
|
spec: createOrUpdateOperationSpec$1
|
|
4833
4833
|
});
|
|
4834
4834
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4835
|
-
restoreFrom: options === null || options ===
|
|
4836
|
-
intervalInMs: options === null || options ===
|
|
4835
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4836
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4837
4837
|
resourceLocationConfig: "azure-async-operation"
|
|
4838
4838
|
});
|
|
4839
4839
|
yield poller.poll();
|
|
@@ -4849,7 +4849,7 @@ class SignalRReplicasImpl {
|
|
|
4849
4849
|
* @param options The options parameters.
|
|
4850
4850
|
*/
|
|
4851
4851
|
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4852
|
-
return tslib.__awaiter(this,
|
|
4852
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4853
4853
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
|
|
4854
4854
|
return poller.pollUntilDone();
|
|
4855
4855
|
});
|
|
@@ -4873,17 +4873,17 @@ class SignalRReplicasImpl {
|
|
|
4873
4873
|
* @param options The options parameters.
|
|
4874
4874
|
*/
|
|
4875
4875
|
beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4876
|
-
return tslib.__awaiter(this,
|
|
4877
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4876
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4877
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4878
4878
|
return this.client.sendOperationRequest(args, spec);
|
|
4879
4879
|
});
|
|
4880
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4880
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4881
4881
|
var _a;
|
|
4882
4882
|
let currentRawResponse = undefined;
|
|
4883
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4883
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4884
4884
|
const callback = (rawResponse, flatResponse) => {
|
|
4885
4885
|
currentRawResponse = rawResponse;
|
|
4886
|
-
providedCallback === null || providedCallback ===
|
|
4886
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4887
4887
|
};
|
|
4888
4888
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4889
4889
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4908,8 +4908,8 @@ class SignalRReplicasImpl {
|
|
|
4908
4908
|
spec: updateOperationSpec
|
|
4909
4909
|
});
|
|
4910
4910
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4911
|
-
restoreFrom: options === null || options ===
|
|
4912
|
-
intervalInMs: options === null || options ===
|
|
4911
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4912
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4913
4913
|
resourceLocationConfig: "location"
|
|
4914
4914
|
});
|
|
4915
4915
|
yield poller.poll();
|
|
@@ -4925,7 +4925,7 @@ class SignalRReplicasImpl {
|
|
|
4925
4925
|
* @param options The options parameters.
|
|
4926
4926
|
*/
|
|
4927
4927
|
beginUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
|
|
4928
|
-
return tslib.__awaiter(this,
|
|
4928
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4929
4929
|
const poller = yield this.beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
|
|
4930
4930
|
return poller.pollUntilDone();
|
|
4931
4931
|
});
|
|
@@ -4938,17 +4938,17 @@ class SignalRReplicasImpl {
|
|
|
4938
4938
|
* @param options The options parameters.
|
|
4939
4939
|
*/
|
|
4940
4940
|
beginRestart(resourceGroupName, resourceName, replicaName, options) {
|
|
4941
|
-
return tslib.__awaiter(this,
|
|
4942
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4941
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4942
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4943
4943
|
return this.client.sendOperationRequest(args, spec);
|
|
4944
4944
|
});
|
|
4945
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4945
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4946
4946
|
var _a;
|
|
4947
4947
|
let currentRawResponse = undefined;
|
|
4948
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4948
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
4949
4949
|
const callback = (rawResponse, flatResponse) => {
|
|
4950
4950
|
currentRawResponse = rawResponse;
|
|
4951
|
-
providedCallback === null || providedCallback ===
|
|
4951
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
4952
4952
|
};
|
|
4953
4953
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4954
4954
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4967,8 +4967,8 @@ class SignalRReplicasImpl {
|
|
|
4967
4967
|
spec: restartOperationSpec
|
|
4968
4968
|
});
|
|
4969
4969
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4970
|
-
restoreFrom: options === null || options ===
|
|
4971
|
-
intervalInMs: options === null || options ===
|
|
4970
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
4971
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
4972
4972
|
resourceLocationConfig: "location"
|
|
4973
4973
|
});
|
|
4974
4974
|
yield poller.poll();
|
|
@@ -4983,7 +4983,7 @@ class SignalRReplicasImpl {
|
|
|
4983
4983
|
* @param options The options parameters.
|
|
4984
4984
|
*/
|
|
4985
4985
|
beginRestartAndWait(resourceGroupName, resourceName, replicaName, options) {
|
|
4986
|
-
return tslib.__awaiter(this,
|
|
4986
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
4987
4987
|
const poller = yield this.beginRestart(resourceGroupName, resourceName, replicaName, options);
|
|
4988
4988
|
return poller.pollUntilDone();
|
|
4989
4989
|
});
|
|
@@ -5217,7 +5217,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5217
5217
|
return this;
|
|
5218
5218
|
},
|
|
5219
5219
|
byPage: (settings) => {
|
|
5220
|
-
if (settings === null || settings ===
|
|
5220
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
|
5221
5221
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5222
5222
|
}
|
|
5223
5223
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
@@ -5227,7 +5227,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5227
5227
|
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
5228
5228
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5229
5229
|
let result;
|
|
5230
|
-
let continuationToken = settings === null || settings ===
|
|
5230
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
|
5231
5231
|
if (!continuationToken) {
|
|
5232
5232
|
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
|
5233
5233
|
let page = result.value || [];
|
|
@@ -5297,17 +5297,17 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5297
5297
|
* @param options The options parameters.
|
|
5298
5298
|
*/
|
|
5299
5299
|
beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
|
|
5300
|
-
return tslib.__awaiter(this,
|
|
5301
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5300
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5301
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5302
5302
|
return this.client.sendOperationRequest(args, spec);
|
|
5303
5303
|
});
|
|
5304
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5304
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5305
5305
|
var _a;
|
|
5306
5306
|
let currentRawResponse = undefined;
|
|
5307
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5307
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5308
5308
|
const callback = (rawResponse, flatResponse) => {
|
|
5309
5309
|
currentRawResponse = rawResponse;
|
|
5310
|
-
providedCallback === null || providedCallback ===
|
|
5310
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5311
5311
|
};
|
|
5312
5312
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5313
5313
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5332,8 +5332,8 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5332
5332
|
spec: createOrUpdateOperationSpec
|
|
5333
5333
|
});
|
|
5334
5334
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5335
|
-
restoreFrom: options === null || options ===
|
|
5336
|
-
intervalInMs: options === null || options ===
|
|
5335
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5336
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5337
5337
|
resourceLocationConfig: "azure-async-operation"
|
|
5338
5338
|
});
|
|
5339
5339
|
yield poller.poll();
|
|
@@ -5349,7 +5349,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5349
5349
|
* @param options The options parameters.
|
|
5350
5350
|
*/
|
|
5351
5351
|
beginCreateOrUpdateAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
|
|
5352
|
-
return tslib.__awaiter(this,
|
|
5352
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5353
5353
|
const poller = yield this.beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options);
|
|
5354
5354
|
return poller.pollUntilDone();
|
|
5355
5355
|
});
|
|
@@ -5362,17 +5362,17 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5362
5362
|
* @param options The options parameters.
|
|
5363
5363
|
*/
|
|
5364
5364
|
beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
|
|
5365
|
-
return tslib.__awaiter(this,
|
|
5366
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
5365
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5366
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5367
5367
|
return this.client.sendOperationRequest(args, spec);
|
|
5368
5368
|
});
|
|
5369
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
5369
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5370
5370
|
var _a;
|
|
5371
5371
|
let currentRawResponse = undefined;
|
|
5372
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
5372
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
|
5373
5373
|
const callback = (rawResponse, flatResponse) => {
|
|
5374
5374
|
currentRawResponse = rawResponse;
|
|
5375
|
-
providedCallback === null || providedCallback ===
|
|
5375
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
|
5376
5376
|
};
|
|
5377
5377
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
5378
5378
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -5396,8 +5396,8 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5396
5396
|
spec: deleteOperationSpec
|
|
5397
5397
|
});
|
|
5398
5398
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
5399
|
-
restoreFrom: options === null || options ===
|
|
5400
|
-
intervalInMs: options === null || options ===
|
|
5399
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
|
5400
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
|
5401
5401
|
resourceLocationConfig: "location"
|
|
5402
5402
|
});
|
|
5403
5403
|
yield poller.poll();
|
|
@@ -5412,7 +5412,7 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
5412
5412
|
* @param options The options parameters.
|
|
5413
5413
|
*/
|
|
5414
5414
|
beginDeleteAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
|
|
5415
|
-
return tslib.__awaiter(this,
|
|
5415
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5416
5416
|
const poller = yield this.beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options);
|
|
5417
5417
|
return poller.pollUntilDone();
|
|
5418
5418
|
});
|
|
@@ -5587,10 +5587,10 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5587
5587
|
: `${packageDetails}`;
|
|
5588
5588
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5589
5589
|
userAgentPrefix
|
|
5590
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
5590
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
|
5591
5591
|
super(optionsWithDefaults);
|
|
5592
5592
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5593
|
-
if ((options === null || options ===
|
|
5593
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5594
5594
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5595
5595
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5596
5596
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -5604,7 +5604,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5604
5604
|
});
|
|
5605
5605
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5606
5606
|
credential: credentials,
|
|
5607
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
5607
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5608
5608
|
challengeCallbacks: {
|
|
5609
5609
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5610
5610
|
}
|
|
@@ -5634,7 +5634,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5634
5634
|
const apiVersionPolicy = {
|
|
5635
5635
|
name: "CustomApiVersionPolicy",
|
|
5636
5636
|
sendRequest(request, next) {
|
|
5637
|
-
return tslib.__awaiter(this,
|
|
5637
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
|
5638
5638
|
const param = request.url.split("?");
|
|
5639
5639
|
if (param.length > 1) {
|
|
5640
5640
|
const newParams = param[1].split("&").map((item) => {
|