@azure/arm-mariadb 2.1.1-alpha.20250207.1 → 2.1.1-alpha.20250211.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +188 -188
- 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
|
}
|
|
@@ -229,12 +229,12 @@ class LroImpl {
|
|
|
229
229
|
this.requestMethod = requestMethod;
|
|
230
230
|
}
|
|
231
231
|
sendInitialRequest() {
|
|
232
|
-
return tslib.__awaiter(this,
|
|
232
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
233
233
|
return this.sendOperationFn(this.args, this.spec);
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
sendPollRequest(path) {
|
|
237
|
-
return tslib.__awaiter(this,
|
|
237
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
238
238
|
const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
239
239
|
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
240
240
|
});
|
|
@@ -2633,7 +2633,7 @@ class ServersImpl {
|
|
|
2633
2633
|
return this;
|
|
2634
2634
|
},
|
|
2635
2635
|
byPage: (settings) => {
|
|
2636
|
-
if (settings === null || settings ===
|
|
2636
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2637
2637
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2638
2638
|
}
|
|
2639
2639
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2681,7 +2681,7 @@ class ServersImpl {
|
|
|
2681
2681
|
return this;
|
|
2682
2682
|
},
|
|
2683
2683
|
byPage: (settings) => {
|
|
2684
|
-
if (settings === null || settings ===
|
|
2684
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2685
2685
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2686
2686
|
}
|
|
2687
2687
|
return this.listPagingPage(options, settings);
|
|
@@ -2724,17 +2724,17 @@ class ServersImpl {
|
|
|
2724
2724
|
* @param options The options parameters.
|
|
2725
2725
|
*/
|
|
2726
2726
|
beginCreate(resourceGroupName, serverName, parameters, options) {
|
|
2727
|
-
return tslib.__awaiter(this,
|
|
2728
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2727
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2728
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2729
2729
|
return this.client.sendOperationRequest(args, spec);
|
|
2730
2730
|
});
|
|
2731
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2731
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2732
2732
|
var _a;
|
|
2733
2733
|
let currentRawResponse = undefined;
|
|
2734
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2734
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2735
2735
|
const callback = (rawResponse, flatResponse) => {
|
|
2736
2736
|
currentRawResponse = rawResponse;
|
|
2737
|
-
providedCallback === null || providedCallback ===
|
|
2737
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2738
2738
|
};
|
|
2739
2739
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2740
2740
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2749,8 +2749,8 @@ class ServersImpl {
|
|
|
2749
2749
|
});
|
|
2750
2750
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, createOperationSpec);
|
|
2751
2751
|
const poller = new coreLro.LroEngine(lro, {
|
|
2752
|
-
resumeFrom: options === null || options ===
|
|
2753
|
-
intervalInMs: options === null || options ===
|
|
2752
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2753
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2754
2754
|
});
|
|
2755
2755
|
yield poller.poll();
|
|
2756
2756
|
return poller;
|
|
@@ -2765,7 +2765,7 @@ class ServersImpl {
|
|
|
2765
2765
|
* @param options The options parameters.
|
|
2766
2766
|
*/
|
|
2767
2767
|
beginCreateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
2768
|
-
return tslib.__awaiter(this,
|
|
2768
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2769
2769
|
const poller = yield this.beginCreate(resourceGroupName, serverName, parameters, options);
|
|
2770
2770
|
return poller.pollUntilDone();
|
|
2771
2771
|
});
|
|
@@ -2779,17 +2779,17 @@ class ServersImpl {
|
|
|
2779
2779
|
* @param options The options parameters.
|
|
2780
2780
|
*/
|
|
2781
2781
|
beginUpdate(resourceGroupName, serverName, parameters, options) {
|
|
2782
|
-
return tslib.__awaiter(this,
|
|
2783
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2782
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2783
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2784
2784
|
return this.client.sendOperationRequest(args, spec);
|
|
2785
2785
|
});
|
|
2786
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2786
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2787
2787
|
var _a;
|
|
2788
2788
|
let currentRawResponse = undefined;
|
|
2789
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2789
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2790
2790
|
const callback = (rawResponse, flatResponse) => {
|
|
2791
2791
|
currentRawResponse = rawResponse;
|
|
2792
|
-
providedCallback === null || providedCallback ===
|
|
2792
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2793
2793
|
};
|
|
2794
2794
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2795
2795
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2804,8 +2804,8 @@ class ServersImpl {
|
|
|
2804
2804
|
});
|
|
2805
2805
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, parameters, options }, updateOperationSpec);
|
|
2806
2806
|
const poller = new coreLro.LroEngine(lro, {
|
|
2807
|
-
resumeFrom: options === null || options ===
|
|
2808
|
-
intervalInMs: options === null || options ===
|
|
2807
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2808
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2809
2809
|
});
|
|
2810
2810
|
yield poller.poll();
|
|
2811
2811
|
return poller;
|
|
@@ -2820,7 +2820,7 @@ class ServersImpl {
|
|
|
2820
2820
|
* @param options The options parameters.
|
|
2821
2821
|
*/
|
|
2822
2822
|
beginUpdateAndWait(resourceGroupName, serverName, parameters, options) {
|
|
2823
|
-
return tslib.__awaiter(this,
|
|
2823
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2824
2824
|
const poller = yield this.beginUpdate(resourceGroupName, serverName, parameters, options);
|
|
2825
2825
|
return poller.pollUntilDone();
|
|
2826
2826
|
});
|
|
@@ -2832,17 +2832,17 @@ class ServersImpl {
|
|
|
2832
2832
|
* @param options The options parameters.
|
|
2833
2833
|
*/
|
|
2834
2834
|
beginDelete(resourceGroupName, serverName, options) {
|
|
2835
|
-
return tslib.__awaiter(this,
|
|
2836
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2835
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2836
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2837
2837
|
return this.client.sendOperationRequest(args, spec);
|
|
2838
2838
|
});
|
|
2839
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2839
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2840
2840
|
var _a;
|
|
2841
2841
|
let currentRawResponse = undefined;
|
|
2842
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2842
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2843
2843
|
const callback = (rawResponse, flatResponse) => {
|
|
2844
2844
|
currentRawResponse = rawResponse;
|
|
2845
|
-
providedCallback === null || providedCallback ===
|
|
2845
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2846
2846
|
};
|
|
2847
2847
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2848
2848
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2857,8 +2857,8 @@ class ServersImpl {
|
|
|
2857
2857
|
});
|
|
2858
2858
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, deleteOperationSpec$4);
|
|
2859
2859
|
const poller = new coreLro.LroEngine(lro, {
|
|
2860
|
-
resumeFrom: options === null || options ===
|
|
2861
|
-
intervalInMs: options === null || options ===
|
|
2860
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2861
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2862
2862
|
});
|
|
2863
2863
|
yield poller.poll();
|
|
2864
2864
|
return poller;
|
|
@@ -2871,7 +2871,7 @@ class ServersImpl {
|
|
|
2871
2871
|
* @param options The options parameters.
|
|
2872
2872
|
*/
|
|
2873
2873
|
beginDeleteAndWait(resourceGroupName, serverName, options) {
|
|
2874
|
-
return tslib.__awaiter(this,
|
|
2874
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2875
2875
|
const poller = yield this.beginDelete(resourceGroupName, serverName, options);
|
|
2876
2876
|
return poller.pollUntilDone();
|
|
2877
2877
|
});
|
|
@@ -2907,17 +2907,17 @@ class ServersImpl {
|
|
|
2907
2907
|
* @param options The options parameters.
|
|
2908
2908
|
*/
|
|
2909
2909
|
beginRestart(resourceGroupName, serverName, options) {
|
|
2910
|
-
return tslib.__awaiter(this,
|
|
2911
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2910
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2911
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2912
2912
|
return this.client.sendOperationRequest(args, spec);
|
|
2913
2913
|
});
|
|
2914
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2914
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2915
2915
|
var _a;
|
|
2916
2916
|
let currentRawResponse = undefined;
|
|
2917
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2917
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2918
2918
|
const callback = (rawResponse, flatResponse) => {
|
|
2919
2919
|
currentRawResponse = rawResponse;
|
|
2920
|
-
providedCallback === null || providedCallback ===
|
|
2920
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2921
2921
|
};
|
|
2922
2922
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2923
2923
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2932,8 +2932,8 @@ class ServersImpl {
|
|
|
2932
2932
|
});
|
|
2933
2933
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, restartOperationSpec);
|
|
2934
2934
|
const poller = new coreLro.LroEngine(lro, {
|
|
2935
|
-
resumeFrom: options === null || options ===
|
|
2936
|
-
intervalInMs: options === null || options ===
|
|
2935
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2936
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2937
2937
|
});
|
|
2938
2938
|
yield poller.poll();
|
|
2939
2939
|
return poller;
|
|
@@ -2946,7 +2946,7 @@ class ServersImpl {
|
|
|
2946
2946
|
* @param options The options parameters.
|
|
2947
2947
|
*/
|
|
2948
2948
|
beginRestartAndWait(resourceGroupName, serverName, options) {
|
|
2949
|
-
return tslib.__awaiter(this,
|
|
2949
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2950
2950
|
const poller = yield this.beginRestart(resourceGroupName, serverName, options);
|
|
2951
2951
|
return poller.pollUntilDone();
|
|
2952
2952
|
});
|
|
@@ -2958,17 +2958,17 @@ class ServersImpl {
|
|
|
2958
2958
|
* @param options The options parameters.
|
|
2959
2959
|
*/
|
|
2960
2960
|
beginStart(resourceGroupName, serverName, options) {
|
|
2961
|
-
return tslib.__awaiter(this,
|
|
2962
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2961
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2962
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2963
2963
|
return this.client.sendOperationRequest(args, spec);
|
|
2964
2964
|
});
|
|
2965
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2965
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2966
2966
|
var _a;
|
|
2967
2967
|
let currentRawResponse = undefined;
|
|
2968
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2968
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2969
2969
|
const callback = (rawResponse, flatResponse) => {
|
|
2970
2970
|
currentRawResponse = rawResponse;
|
|
2971
|
-
providedCallback === null || providedCallback ===
|
|
2971
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2972
2972
|
};
|
|
2973
2973
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2974
2974
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2983,8 +2983,8 @@ class ServersImpl {
|
|
|
2983
2983
|
});
|
|
2984
2984
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, startOperationSpec);
|
|
2985
2985
|
const poller = new coreLro.LroEngine(lro, {
|
|
2986
|
-
resumeFrom: options === null || options ===
|
|
2987
|
-
intervalInMs: options === null || options ===
|
|
2986
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2987
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2988
2988
|
});
|
|
2989
2989
|
yield poller.poll();
|
|
2990
2990
|
return poller;
|
|
@@ -2997,7 +2997,7 @@ class ServersImpl {
|
|
|
2997
2997
|
* @param options The options parameters.
|
|
2998
2998
|
*/
|
|
2999
2999
|
beginStartAndWait(resourceGroupName, serverName, options) {
|
|
3000
|
-
return tslib.__awaiter(this,
|
|
3000
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3001
3001
|
const poller = yield this.beginStart(resourceGroupName, serverName, options);
|
|
3002
3002
|
return poller.pollUntilDone();
|
|
3003
3003
|
});
|
|
@@ -3009,17 +3009,17 @@ class ServersImpl {
|
|
|
3009
3009
|
* @param options The options parameters.
|
|
3010
3010
|
*/
|
|
3011
3011
|
beginStop(resourceGroupName, serverName, options) {
|
|
3012
|
-
return tslib.__awaiter(this,
|
|
3013
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3012
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3013
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3014
3014
|
return this.client.sendOperationRequest(args, spec);
|
|
3015
3015
|
});
|
|
3016
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3016
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3017
3017
|
var _a;
|
|
3018
3018
|
let currentRawResponse = undefined;
|
|
3019
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3019
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3020
3020
|
const callback = (rawResponse, flatResponse) => {
|
|
3021
3021
|
currentRawResponse = rawResponse;
|
|
3022
|
-
providedCallback === null || providedCallback ===
|
|
3022
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3023
3023
|
};
|
|
3024
3024
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3025
3025
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3034,8 +3034,8 @@ class ServersImpl {
|
|
|
3034
3034
|
});
|
|
3035
3035
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, options }, stopOperationSpec);
|
|
3036
3036
|
const poller = new coreLro.LroEngine(lro, {
|
|
3037
|
-
resumeFrom: options === null || options ===
|
|
3038
|
-
intervalInMs: options === null || options ===
|
|
3037
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3038
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3039
3039
|
});
|
|
3040
3040
|
yield poller.poll();
|
|
3041
3041
|
return poller;
|
|
@@ -3048,7 +3048,7 @@ class ServersImpl {
|
|
|
3048
3048
|
* @param options The options parameters.
|
|
3049
3049
|
*/
|
|
3050
3050
|
beginStopAndWait(resourceGroupName, serverName, options) {
|
|
3051
|
-
return tslib.__awaiter(this,
|
|
3051
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3052
3052
|
const poller = yield this.beginStop(resourceGroupName, serverName, options);
|
|
3053
3053
|
return poller.pollUntilDone();
|
|
3054
3054
|
});
|
|
@@ -3299,7 +3299,7 @@ class ReplicasImpl {
|
|
|
3299
3299
|
return this;
|
|
3300
3300
|
},
|
|
3301
3301
|
byPage: (settings) => {
|
|
3302
|
-
if (settings === null || settings ===
|
|
3302
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3303
3303
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3304
3304
|
}
|
|
3305
3305
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -3400,7 +3400,7 @@ class FirewallRulesImpl {
|
|
|
3400
3400
|
return this;
|
|
3401
3401
|
},
|
|
3402
3402
|
byPage: (settings) => {
|
|
3403
|
-
if (settings === null || settings ===
|
|
3403
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3404
3404
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3405
3405
|
}
|
|
3406
3406
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -3443,17 +3443,17 @@ class FirewallRulesImpl {
|
|
|
3443
3443
|
* @param options The options parameters.
|
|
3444
3444
|
*/
|
|
3445
3445
|
beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
3446
|
-
return tslib.__awaiter(this,
|
|
3447
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3446
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3447
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3448
3448
|
return this.client.sendOperationRequest(args, spec);
|
|
3449
3449
|
});
|
|
3450
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3450
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3451
3451
|
var _a;
|
|
3452
3452
|
let currentRawResponse = undefined;
|
|
3453
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3453
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3454
3454
|
const callback = (rawResponse, flatResponse) => {
|
|
3455
3455
|
currentRawResponse = rawResponse;
|
|
3456
|
-
providedCallback === null || providedCallback ===
|
|
3456
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3457
3457
|
};
|
|
3458
3458
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3459
3459
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3468,8 +3468,8 @@ class FirewallRulesImpl {
|
|
|
3468
3468
|
});
|
|
3469
3469
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, parameters, options }, createOrUpdateOperationSpec$5);
|
|
3470
3470
|
const poller = new coreLro.LroEngine(lro, {
|
|
3471
|
-
resumeFrom: options === null || options ===
|
|
3472
|
-
intervalInMs: options === null || options ===
|
|
3471
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3472
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3473
3473
|
});
|
|
3474
3474
|
yield poller.poll();
|
|
3475
3475
|
return poller;
|
|
@@ -3484,7 +3484,7 @@ class FirewallRulesImpl {
|
|
|
3484
3484
|
* @param options The options parameters.
|
|
3485
3485
|
*/
|
|
3486
3486
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, firewallRuleName, parameters, options) {
|
|
3487
|
-
return tslib.__awaiter(this,
|
|
3487
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3488
3488
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, firewallRuleName, parameters, options);
|
|
3489
3489
|
return poller.pollUntilDone();
|
|
3490
3490
|
});
|
|
@@ -3497,17 +3497,17 @@ class FirewallRulesImpl {
|
|
|
3497
3497
|
* @param options The options parameters.
|
|
3498
3498
|
*/
|
|
3499
3499
|
beginDelete(resourceGroupName, serverName, firewallRuleName, options) {
|
|
3500
|
-
return tslib.__awaiter(this,
|
|
3501
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3500
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3501
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3502
3502
|
return this.client.sendOperationRequest(args, spec);
|
|
3503
3503
|
});
|
|
3504
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3504
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3505
3505
|
var _a;
|
|
3506
3506
|
let currentRawResponse = undefined;
|
|
3507
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3507
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3508
3508
|
const callback = (rawResponse, flatResponse) => {
|
|
3509
3509
|
currentRawResponse = rawResponse;
|
|
3510
|
-
providedCallback === null || providedCallback ===
|
|
3510
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3511
3511
|
};
|
|
3512
3512
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3513
3513
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3522,8 +3522,8 @@ class FirewallRulesImpl {
|
|
|
3522
3522
|
});
|
|
3523
3523
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, firewallRuleName, options }, deleteOperationSpec$3);
|
|
3524
3524
|
const poller = new coreLro.LroEngine(lro, {
|
|
3525
|
-
resumeFrom: options === null || options ===
|
|
3526
|
-
intervalInMs: options === null || options ===
|
|
3525
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3526
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3527
3527
|
});
|
|
3528
3528
|
yield poller.poll();
|
|
3529
3529
|
return poller;
|
|
@@ -3537,7 +3537,7 @@ class FirewallRulesImpl {
|
|
|
3537
3537
|
* @param options The options parameters.
|
|
3538
3538
|
*/
|
|
3539
3539
|
beginDeleteAndWait(resourceGroupName, serverName, firewallRuleName, options) {
|
|
3540
|
-
return tslib.__awaiter(this,
|
|
3540
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3541
3541
|
const poller = yield this.beginDelete(resourceGroupName, serverName, firewallRuleName, options);
|
|
3542
3542
|
return poller.pollUntilDone();
|
|
3543
3543
|
});
|
|
@@ -3697,7 +3697,7 @@ class VirtualNetworkRulesImpl {
|
|
|
3697
3697
|
return this;
|
|
3698
3698
|
},
|
|
3699
3699
|
byPage: (settings) => {
|
|
3700
|
-
if (settings === null || settings ===
|
|
3700
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3701
3701
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3702
3702
|
}
|
|
3703
3703
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -3707,7 +3707,7 @@ class VirtualNetworkRulesImpl {
|
|
|
3707
3707
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
3708
3708
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
3709
3709
|
let result;
|
|
3710
|
-
let continuationToken = settings === null || settings ===
|
|
3710
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3711
3711
|
if (!continuationToken) {
|
|
3712
3712
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
3713
3713
|
let page = result.value || [];
|
|
@@ -3763,17 +3763,17 @@ class VirtualNetworkRulesImpl {
|
|
|
3763
3763
|
* @param options The options parameters.
|
|
3764
3764
|
*/
|
|
3765
3765
|
beginCreateOrUpdate(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options) {
|
|
3766
|
-
return tslib.__awaiter(this,
|
|
3767
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3766
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3767
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3768
3768
|
return this.client.sendOperationRequest(args, spec);
|
|
3769
3769
|
});
|
|
3770
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3770
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3771
3771
|
var _a;
|
|
3772
3772
|
let currentRawResponse = undefined;
|
|
3773
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3773
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3774
3774
|
const callback = (rawResponse, flatResponse) => {
|
|
3775
3775
|
currentRawResponse = rawResponse;
|
|
3776
|
-
providedCallback === null || providedCallback ===
|
|
3776
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3777
3777
|
};
|
|
3778
3778
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3779
3779
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3794,8 +3794,8 @@ class VirtualNetworkRulesImpl {
|
|
|
3794
3794
|
options
|
|
3795
3795
|
}, createOrUpdateOperationSpec$4);
|
|
3796
3796
|
const poller = new coreLro.LroEngine(lro, {
|
|
3797
|
-
resumeFrom: options === null || options ===
|
|
3798
|
-
intervalInMs: options === null || options ===
|
|
3797
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3798
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3799
3799
|
});
|
|
3800
3800
|
yield poller.poll();
|
|
3801
3801
|
return poller;
|
|
@@ -3810,7 +3810,7 @@ class VirtualNetworkRulesImpl {
|
|
|
3810
3810
|
* @param options The options parameters.
|
|
3811
3811
|
*/
|
|
3812
3812
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options) {
|
|
3813
|
-
return tslib.__awaiter(this,
|
|
3813
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3814
3814
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, virtualNetworkRuleName, parameters, options);
|
|
3815
3815
|
return poller.pollUntilDone();
|
|
3816
3816
|
});
|
|
@@ -3823,17 +3823,17 @@ class VirtualNetworkRulesImpl {
|
|
|
3823
3823
|
* @param options The options parameters.
|
|
3824
3824
|
*/
|
|
3825
3825
|
beginDelete(resourceGroupName, serverName, virtualNetworkRuleName, options) {
|
|
3826
|
-
return tslib.__awaiter(this,
|
|
3827
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3826
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3827
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3828
3828
|
return this.client.sendOperationRequest(args, spec);
|
|
3829
3829
|
});
|
|
3830
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3830
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3831
3831
|
var _a;
|
|
3832
3832
|
let currentRawResponse = undefined;
|
|
3833
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3833
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3834
3834
|
const callback = (rawResponse, flatResponse) => {
|
|
3835
3835
|
currentRawResponse = rawResponse;
|
|
3836
|
-
providedCallback === null || providedCallback ===
|
|
3836
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3837
3837
|
};
|
|
3838
3838
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3839
3839
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3848,8 +3848,8 @@ class VirtualNetworkRulesImpl {
|
|
|
3848
3848
|
});
|
|
3849
3849
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, virtualNetworkRuleName, options }, deleteOperationSpec$2);
|
|
3850
3850
|
const poller = new coreLro.LroEngine(lro, {
|
|
3851
|
-
resumeFrom: options === null || options ===
|
|
3852
|
-
intervalInMs: options === null || options ===
|
|
3851
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3852
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3853
3853
|
});
|
|
3854
3854
|
yield poller.poll();
|
|
3855
3855
|
return poller;
|
|
@@ -3863,7 +3863,7 @@ class VirtualNetworkRulesImpl {
|
|
|
3863
3863
|
* @param options The options parameters.
|
|
3864
3864
|
*/
|
|
3865
3865
|
beginDeleteAndWait(resourceGroupName, serverName, virtualNetworkRuleName, options) {
|
|
3866
|
-
return tslib.__awaiter(this,
|
|
3866
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3867
3867
|
const poller = yield this.beginDelete(resourceGroupName, serverName, virtualNetworkRuleName, options);
|
|
3868
3868
|
return poller.pollUntilDone();
|
|
3869
3869
|
});
|
|
@@ -4028,7 +4028,7 @@ class DatabasesImpl {
|
|
|
4028
4028
|
return this;
|
|
4029
4029
|
},
|
|
4030
4030
|
byPage: (settings) => {
|
|
4031
|
-
if (settings === null || settings ===
|
|
4031
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4032
4032
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4033
4033
|
}
|
|
4034
4034
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -4071,17 +4071,17 @@ class DatabasesImpl {
|
|
|
4071
4071
|
* @param options The options parameters.
|
|
4072
4072
|
*/
|
|
4073
4073
|
beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options) {
|
|
4074
|
-
return tslib.__awaiter(this,
|
|
4075
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4074
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4075
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4076
4076
|
return this.client.sendOperationRequest(args, spec);
|
|
4077
4077
|
});
|
|
4078
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4078
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4079
4079
|
var _a;
|
|
4080
4080
|
let currentRawResponse = undefined;
|
|
4081
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4081
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4082
4082
|
const callback = (rawResponse, flatResponse) => {
|
|
4083
4083
|
currentRawResponse = rawResponse;
|
|
4084
|
-
providedCallback === null || providedCallback ===
|
|
4084
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4085
4085
|
};
|
|
4086
4086
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4087
4087
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4096,8 +4096,8 @@ class DatabasesImpl {
|
|
|
4096
4096
|
});
|
|
4097
4097
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, parameters, options }, createOrUpdateOperationSpec$3);
|
|
4098
4098
|
const poller = new coreLro.LroEngine(lro, {
|
|
4099
|
-
resumeFrom: options === null || options ===
|
|
4100
|
-
intervalInMs: options === null || options ===
|
|
4099
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4100
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4101
4101
|
});
|
|
4102
4102
|
yield poller.poll();
|
|
4103
4103
|
return poller;
|
|
@@ -4112,7 +4112,7 @@ class DatabasesImpl {
|
|
|
4112
4112
|
* @param options The options parameters.
|
|
4113
4113
|
*/
|
|
4114
4114
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, databaseName, parameters, options) {
|
|
4115
|
-
return tslib.__awaiter(this,
|
|
4115
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4116
4116
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, databaseName, parameters, options);
|
|
4117
4117
|
return poller.pollUntilDone();
|
|
4118
4118
|
});
|
|
@@ -4125,17 +4125,17 @@ class DatabasesImpl {
|
|
|
4125
4125
|
* @param options The options parameters.
|
|
4126
4126
|
*/
|
|
4127
4127
|
beginDelete(resourceGroupName, serverName, databaseName, options) {
|
|
4128
|
-
return tslib.__awaiter(this,
|
|
4129
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4128
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4129
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4130
4130
|
return this.client.sendOperationRequest(args, spec);
|
|
4131
4131
|
});
|
|
4132
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4132
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4133
4133
|
var _a;
|
|
4134
4134
|
let currentRawResponse = undefined;
|
|
4135
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4135
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4136
4136
|
const callback = (rawResponse, flatResponse) => {
|
|
4137
4137
|
currentRawResponse = rawResponse;
|
|
4138
|
-
providedCallback === null || providedCallback ===
|
|
4138
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4139
4139
|
};
|
|
4140
4140
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4141
4141
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4150,8 +4150,8 @@ class DatabasesImpl {
|
|
|
4150
4150
|
});
|
|
4151
4151
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, databaseName, options }, deleteOperationSpec$1);
|
|
4152
4152
|
const poller = new coreLro.LroEngine(lro, {
|
|
4153
|
-
resumeFrom: options === null || options ===
|
|
4154
|
-
intervalInMs: options === null || options ===
|
|
4153
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4154
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4155
4155
|
});
|
|
4156
4156
|
yield poller.poll();
|
|
4157
4157
|
return poller;
|
|
@@ -4165,7 +4165,7 @@ class DatabasesImpl {
|
|
|
4165
4165
|
* @param options The options parameters.
|
|
4166
4166
|
*/
|
|
4167
4167
|
beginDeleteAndWait(resourceGroupName, serverName, databaseName, options) {
|
|
4168
|
-
return tslib.__awaiter(this,
|
|
4168
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4169
4169
|
const poller = yield this.beginDelete(resourceGroupName, serverName, databaseName, options);
|
|
4170
4170
|
return poller.pollUntilDone();
|
|
4171
4171
|
});
|
|
@@ -4325,7 +4325,7 @@ class ConfigurationsImpl {
|
|
|
4325
4325
|
return this;
|
|
4326
4326
|
},
|
|
4327
4327
|
byPage: (settings) => {
|
|
4328
|
-
if (settings === null || settings ===
|
|
4328
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4329
4329
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4330
4330
|
}
|
|
4331
4331
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -4368,17 +4368,17 @@ class ConfigurationsImpl {
|
|
|
4368
4368
|
* @param options The options parameters.
|
|
4369
4369
|
*/
|
|
4370
4370
|
beginCreateOrUpdate(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
4371
|
-
return tslib.__awaiter(this,
|
|
4372
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4371
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4372
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4373
4373
|
return this.client.sendOperationRequest(args, spec);
|
|
4374
4374
|
});
|
|
4375
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4375
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4376
4376
|
var _a;
|
|
4377
4377
|
let currentRawResponse = undefined;
|
|
4378
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4378
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4379
4379
|
const callback = (rawResponse, flatResponse) => {
|
|
4380
4380
|
currentRawResponse = rawResponse;
|
|
4381
|
-
providedCallback === null || providedCallback ===
|
|
4381
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4382
4382
|
};
|
|
4383
4383
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4384
4384
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4393,8 +4393,8 @@ class ConfigurationsImpl {
|
|
|
4393
4393
|
});
|
|
4394
4394
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, configurationName, parameters, options }, createOrUpdateOperationSpec$2);
|
|
4395
4395
|
const poller = new coreLro.LroEngine(lro, {
|
|
4396
|
-
resumeFrom: options === null || options ===
|
|
4397
|
-
intervalInMs: options === null || options ===
|
|
4396
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4397
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
4398
4398
|
});
|
|
4399
4399
|
yield poller.poll();
|
|
4400
4400
|
return poller;
|
|
@@ -4409,7 +4409,7 @@ class ConfigurationsImpl {
|
|
|
4409
4409
|
* @param options The options parameters.
|
|
4410
4410
|
*/
|
|
4411
4411
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, configurationName, parameters, options) {
|
|
4412
|
-
return tslib.__awaiter(this,
|
|
4412
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4413
4413
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, configurationName, parameters, options);
|
|
4414
4414
|
return poller.pollUntilDone();
|
|
4415
4415
|
});
|
|
@@ -4537,17 +4537,17 @@ class ServerParametersImpl {
|
|
|
4537
4537
|
* @param options The options parameters.
|
|
4538
4538
|
*/
|
|
4539
4539
|
beginListUpdateConfigurations(resourceGroupName, serverName, value, options) {
|
|
4540
|
-
return tslib.__awaiter(this,
|
|
4541
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4540
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4541
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4542
4542
|
return this.client.sendOperationRequest(args, spec);
|
|
4543
4543
|
});
|
|
4544
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4544
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4545
4545
|
var _a;
|
|
4546
4546
|
let currentRawResponse = undefined;
|
|
4547
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4547
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4548
4548
|
const callback = (rawResponse, flatResponse) => {
|
|
4549
4549
|
currentRawResponse = rawResponse;
|
|
4550
|
-
providedCallback === null || providedCallback ===
|
|
4550
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4551
4551
|
};
|
|
4552
4552
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4553
4553
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4562,8 +4562,8 @@ class ServerParametersImpl {
|
|
|
4562
4562
|
});
|
|
4563
4563
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, value, options }, listUpdateConfigurationsOperationSpec);
|
|
4564
4564
|
const poller = new coreLro.LroEngine(lro, {
|
|
4565
|
-
resumeFrom: options === null || options ===
|
|
4566
|
-
intervalInMs: options === null || options ===
|
|
4565
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4566
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4567
4567
|
lroResourceLocationConfig: "azure-async-operation"
|
|
4568
4568
|
});
|
|
4569
4569
|
yield poller.poll();
|
|
@@ -4578,7 +4578,7 @@ class ServerParametersImpl {
|
|
|
4578
4578
|
* @param options The options parameters.
|
|
4579
4579
|
*/
|
|
4580
4580
|
beginListUpdateConfigurationsAndWait(resourceGroupName, serverName, value, options) {
|
|
4581
|
-
return tslib.__awaiter(this,
|
|
4581
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4582
4582
|
const poller = yield this.beginListUpdateConfigurations(resourceGroupName, serverName, value, options);
|
|
4583
4583
|
return poller.pollUntilDone();
|
|
4584
4584
|
});
|
|
@@ -4652,7 +4652,7 @@ class LogFilesImpl {
|
|
|
4652
4652
|
return this;
|
|
4653
4653
|
},
|
|
4654
4654
|
byPage: (settings) => {
|
|
4655
|
-
if (settings === null || settings ===
|
|
4655
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4656
4656
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4657
4657
|
}
|
|
4658
4658
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -4803,7 +4803,7 @@ class ServerBasedPerformanceTierImpl {
|
|
|
4803
4803
|
return this;
|
|
4804
4804
|
},
|
|
4805
4805
|
byPage: (settings) => {
|
|
4806
|
-
if (settings === null || settings ===
|
|
4806
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4807
4807
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4808
4808
|
}
|
|
4809
4809
|
return this.listPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -4903,7 +4903,7 @@ class LocationBasedPerformanceTierImpl {
|
|
|
4903
4903
|
return this;
|
|
4904
4904
|
},
|
|
4905
4905
|
byPage: (settings) => {
|
|
4906
|
-
if (settings === null || settings ===
|
|
4906
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4907
4907
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4908
4908
|
}
|
|
4909
4909
|
return this.listPagingPage(locationName, options, settings);
|
|
@@ -5092,7 +5092,7 @@ class QueryTextsImpl {
|
|
|
5092
5092
|
return this;
|
|
5093
5093
|
},
|
|
5094
5094
|
byPage: (settings) => {
|
|
5095
|
-
if (settings === null || settings ===
|
|
5095
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5096
5096
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5097
5097
|
}
|
|
5098
5098
|
return this.listByServerPagingPage(resourceGroupName, serverName, queryIds, options, settings);
|
|
@@ -5102,7 +5102,7 @@ class QueryTextsImpl {
|
|
|
5102
5102
|
listByServerPagingPage(resourceGroupName, serverName, queryIds, options, settings) {
|
|
5103
5103
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5104
5104
|
let result;
|
|
5105
|
-
let continuationToken = settings === null || settings ===
|
|
5105
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5106
5106
|
if (!continuationToken) {
|
|
5107
5107
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, queryIds, options));
|
|
5108
5108
|
let page = result.value || [];
|
|
@@ -5273,7 +5273,7 @@ class TopQueryStatisticsImpl {
|
|
|
5273
5273
|
return this;
|
|
5274
5274
|
},
|
|
5275
5275
|
byPage: (settings) => {
|
|
5276
|
-
if (settings === null || settings ===
|
|
5276
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5277
5277
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5278
5278
|
}
|
|
5279
5279
|
return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
|
|
@@ -5283,7 +5283,7 @@ class TopQueryStatisticsImpl {
|
|
|
5283
5283
|
listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
|
|
5284
5284
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5285
5285
|
let result;
|
|
5286
|
-
let continuationToken = settings === null || settings ===
|
|
5286
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5287
5287
|
if (!continuationToken) {
|
|
5288
5288
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
|
|
5289
5289
|
let page = result.value || [];
|
|
@@ -5456,7 +5456,7 @@ class WaitStatisticsImpl {
|
|
|
5456
5456
|
return this;
|
|
5457
5457
|
},
|
|
5458
5458
|
byPage: (settings) => {
|
|
5459
|
-
if (settings === null || settings ===
|
|
5459
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5460
5460
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5461
5461
|
}
|
|
5462
5462
|
return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
|
|
@@ -5466,7 +5466,7 @@ class WaitStatisticsImpl {
|
|
|
5466
5466
|
listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
|
|
5467
5467
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5468
5468
|
let result;
|
|
5469
|
-
let continuationToken = settings === null || settings ===
|
|
5469
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5470
5470
|
if (!continuationToken) {
|
|
5471
5471
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
|
|
5472
5472
|
let page = result.value || [];
|
|
@@ -5638,7 +5638,7 @@ class AdvisorsImpl {
|
|
|
5638
5638
|
return this;
|
|
5639
5639
|
},
|
|
5640
5640
|
byPage: (settings) => {
|
|
5641
|
-
if (settings === null || settings ===
|
|
5641
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5642
5642
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5643
5643
|
}
|
|
5644
5644
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -5648,7 +5648,7 @@ class AdvisorsImpl {
|
|
|
5648
5648
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
5649
5649
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5650
5650
|
let result;
|
|
5651
|
-
let continuationToken = settings === null || settings ===
|
|
5651
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5652
5652
|
if (!continuationToken) {
|
|
5653
5653
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
5654
5654
|
let page = result.value || [];
|
|
@@ -5808,7 +5808,7 @@ class RecommendedActionsImpl {
|
|
|
5808
5808
|
return this;
|
|
5809
5809
|
},
|
|
5810
5810
|
byPage: (settings) => {
|
|
5811
|
-
if (settings === null || settings ===
|
|
5811
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5812
5812
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
5813
5813
|
}
|
|
5814
5814
|
return this.listByServerPagingPage(resourceGroupName, serverName, advisorName, options, settings);
|
|
@@ -5818,7 +5818,7 @@ class RecommendedActionsImpl {
|
|
|
5818
5818
|
listByServerPagingPage(resourceGroupName, serverName, advisorName, options, settings) {
|
|
5819
5819
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
5820
5820
|
let result;
|
|
5821
|
-
let continuationToken = settings === null || settings ===
|
|
5821
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5822
5822
|
if (!continuationToken) {
|
|
5823
5823
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, advisorName, options));
|
|
5824
5824
|
let page = result.value || [];
|
|
@@ -6036,7 +6036,7 @@ class LocationBasedRecommendedActionSessionsResultImpl {
|
|
|
6036
6036
|
return this;
|
|
6037
6037
|
},
|
|
6038
6038
|
byPage: (settings) => {
|
|
6039
|
-
if (settings === null || settings ===
|
|
6039
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6040
6040
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6041
6041
|
}
|
|
6042
6042
|
return this.listPagingPage(locationName, operationId, options, settings);
|
|
@@ -6046,7 +6046,7 @@ class LocationBasedRecommendedActionSessionsResultImpl {
|
|
|
6046
6046
|
listPagingPage(locationName, operationId, options, settings) {
|
|
6047
6047
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
6048
6048
|
let result;
|
|
6049
|
-
let continuationToken = settings === null || settings ===
|
|
6049
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6050
6050
|
if (!continuationToken) {
|
|
6051
6051
|
result = yield tslib.__await(this._list(locationName, operationId, options));
|
|
6052
6052
|
let page = result.value || [];
|
|
@@ -6182,7 +6182,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6182
6182
|
return this;
|
|
6183
6183
|
},
|
|
6184
6184
|
byPage: (settings) => {
|
|
6185
|
-
if (settings === null || settings ===
|
|
6185
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6186
6186
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6187
6187
|
}
|
|
6188
6188
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -6192,7 +6192,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6192
6192
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
6193
6193
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
6194
6194
|
let result;
|
|
6195
|
-
let continuationToken = settings === null || settings ===
|
|
6195
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6196
6196
|
if (!continuationToken) {
|
|
6197
6197
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
6198
6198
|
let page = result.value || [];
|
|
@@ -6248,17 +6248,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6248
6248
|
* @param options The options parameters.
|
|
6249
6249
|
*/
|
|
6250
6250
|
beginCreateOrUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
|
|
6251
|
-
return tslib.__awaiter(this,
|
|
6252
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6251
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6252
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6253
6253
|
return this.client.sendOperationRequest(args, spec);
|
|
6254
6254
|
});
|
|
6255
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6255
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6256
6256
|
var _a;
|
|
6257
6257
|
let currentRawResponse = undefined;
|
|
6258
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6258
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6259
6259
|
const callback = (rawResponse, flatResponse) => {
|
|
6260
6260
|
currentRawResponse = rawResponse;
|
|
6261
|
-
providedCallback === null || providedCallback ===
|
|
6261
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6262
6262
|
};
|
|
6263
6263
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6264
6264
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6279,8 +6279,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6279
6279
|
options
|
|
6280
6280
|
}, createOrUpdateOperationSpec$1);
|
|
6281
6281
|
const poller = new coreLro.LroEngine(lro, {
|
|
6282
|
-
resumeFrom: options === null || options ===
|
|
6283
|
-
intervalInMs: options === null || options ===
|
|
6282
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6283
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6284
6284
|
});
|
|
6285
6285
|
yield poller.poll();
|
|
6286
6286
|
return poller;
|
|
@@ -6295,7 +6295,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6295
6295
|
* @param options The options parameters.
|
|
6296
6296
|
*/
|
|
6297
6297
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
|
|
6298
|
-
return tslib.__awaiter(this,
|
|
6298
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6299
6299
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
|
|
6300
6300
|
return poller.pollUntilDone();
|
|
6301
6301
|
});
|
|
@@ -6308,17 +6308,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6308
6308
|
* @param options The options parameters.
|
|
6309
6309
|
*/
|
|
6310
6310
|
beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options) {
|
|
6311
|
-
return tslib.__awaiter(this,
|
|
6312
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6311
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6312
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6313
6313
|
return this.client.sendOperationRequest(args, spec);
|
|
6314
6314
|
});
|
|
6315
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6315
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6316
6316
|
var _a;
|
|
6317
6317
|
let currentRawResponse = undefined;
|
|
6318
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6318
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6319
6319
|
const callback = (rawResponse, flatResponse) => {
|
|
6320
6320
|
currentRawResponse = rawResponse;
|
|
6321
|
-
providedCallback === null || providedCallback ===
|
|
6321
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6322
6322
|
};
|
|
6323
6323
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6324
6324
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6333,8 +6333,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6333
6333
|
});
|
|
6334
6334
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, privateEndpointConnectionName, options }, deleteOperationSpec);
|
|
6335
6335
|
const poller = new coreLro.LroEngine(lro, {
|
|
6336
|
-
resumeFrom: options === null || options ===
|
|
6337
|
-
intervalInMs: options === null || options ===
|
|
6336
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6337
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6338
6338
|
});
|
|
6339
6339
|
yield poller.poll();
|
|
6340
6340
|
return poller;
|
|
@@ -6348,7 +6348,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6348
6348
|
* @param options The options parameters.
|
|
6349
6349
|
*/
|
|
6350
6350
|
beginDeleteAndWait(resourceGroupName, serverName, privateEndpointConnectionName, options) {
|
|
6351
|
-
return tslib.__awaiter(this,
|
|
6351
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6352
6352
|
const poller = yield this.beginDelete(resourceGroupName, serverName, privateEndpointConnectionName, options);
|
|
6353
6353
|
return poller.pollUntilDone();
|
|
6354
6354
|
});
|
|
@@ -6362,17 +6362,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6362
6362
|
* @param options The options parameters.
|
|
6363
6363
|
*/
|
|
6364
6364
|
beginUpdateTags(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
|
|
6365
|
-
return tslib.__awaiter(this,
|
|
6366
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6365
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6366
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6367
6367
|
return this.client.sendOperationRequest(args, spec);
|
|
6368
6368
|
});
|
|
6369
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6369
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6370
6370
|
var _a;
|
|
6371
6371
|
let currentRawResponse = undefined;
|
|
6372
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6372
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6373
6373
|
const callback = (rawResponse, flatResponse) => {
|
|
6374
6374
|
currentRawResponse = rawResponse;
|
|
6375
|
-
providedCallback === null || providedCallback ===
|
|
6375
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6376
6376
|
};
|
|
6377
6377
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6378
6378
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6393,8 +6393,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6393
6393
|
options
|
|
6394
6394
|
}, updateTagsOperationSpec);
|
|
6395
6395
|
const poller = new coreLro.LroEngine(lro, {
|
|
6396
|
-
resumeFrom: options === null || options ===
|
|
6397
|
-
intervalInMs: options === null || options ===
|
|
6396
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6397
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6398
6398
|
});
|
|
6399
6399
|
yield poller.poll();
|
|
6400
6400
|
return poller;
|
|
@@ -6409,7 +6409,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
6409
6409
|
* @param options The options parameters.
|
|
6410
6410
|
*/
|
|
6411
6411
|
beginUpdateTagsAndWait(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options) {
|
|
6412
|
-
return tslib.__awaiter(this,
|
|
6412
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6413
6413
|
const poller = yield this.beginUpdateTags(resourceGroupName, serverName, privateEndpointConnectionName, parameters, options);
|
|
6414
6414
|
return poller.pollUntilDone();
|
|
6415
6415
|
});
|
|
@@ -6624,7 +6624,7 @@ class PrivateLinkResourcesImpl {
|
|
|
6624
6624
|
return this;
|
|
6625
6625
|
},
|
|
6626
6626
|
byPage: (settings) => {
|
|
6627
|
-
if (settings === null || settings ===
|
|
6627
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6628
6628
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6629
6629
|
}
|
|
6630
6630
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -6634,7 +6634,7 @@ class PrivateLinkResourcesImpl {
|
|
|
6634
6634
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
6635
6635
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
6636
6636
|
let result;
|
|
6637
|
-
let continuationToken = settings === null || settings ===
|
|
6637
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6638
6638
|
if (!continuationToken) {
|
|
6639
6639
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
6640
6640
|
let page = result.value || [];
|
|
@@ -6802,7 +6802,7 @@ class ServerSecurityAlertPoliciesImpl {
|
|
|
6802
6802
|
return this;
|
|
6803
6803
|
},
|
|
6804
6804
|
byPage: (settings) => {
|
|
6805
|
-
if (settings === null || settings ===
|
|
6805
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
6806
6806
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
6807
6807
|
}
|
|
6808
6808
|
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
@@ -6812,7 +6812,7 @@ class ServerSecurityAlertPoliciesImpl {
|
|
|
6812
6812
|
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
6813
6813
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
6814
6814
|
let result;
|
|
6815
|
-
let continuationToken = settings === null || settings ===
|
|
6815
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
6816
6816
|
if (!continuationToken) {
|
|
6817
6817
|
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
6818
6818
|
let page = result.value || [];
|
|
@@ -6868,17 +6868,17 @@ class ServerSecurityAlertPoliciesImpl {
|
|
|
6868
6868
|
* @param options The options parameters.
|
|
6869
6869
|
*/
|
|
6870
6870
|
beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, parameters, options) {
|
|
6871
|
-
return tslib.__awaiter(this,
|
|
6872
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6871
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6872
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6873
6873
|
return this.client.sendOperationRequest(args, spec);
|
|
6874
6874
|
});
|
|
6875
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
6875
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6876
6876
|
var _a;
|
|
6877
6877
|
let currentRawResponse = undefined;
|
|
6878
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
6878
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
6879
6879
|
const callback = (rawResponse, flatResponse) => {
|
|
6880
6880
|
currentRawResponse = rawResponse;
|
|
6881
|
-
providedCallback === null || providedCallback ===
|
|
6881
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
6882
6882
|
};
|
|
6883
6883
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
6884
6884
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -6899,8 +6899,8 @@ class ServerSecurityAlertPoliciesImpl {
|
|
|
6899
6899
|
options
|
|
6900
6900
|
}, createOrUpdateOperationSpec);
|
|
6901
6901
|
const poller = new coreLro.LroEngine(lro, {
|
|
6902
|
-
resumeFrom: options === null || options ===
|
|
6903
|
-
intervalInMs: options === null || options ===
|
|
6902
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
6903
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
6904
6904
|
});
|
|
6905
6905
|
yield poller.poll();
|
|
6906
6906
|
return poller;
|
|
@@ -6915,7 +6915,7 @@ class ServerSecurityAlertPoliciesImpl {
|
|
|
6915
6915
|
* @param options The options parameters.
|
|
6916
6916
|
*/
|
|
6917
6917
|
beginCreateOrUpdateAndWait(resourceGroupName, serverName, securityAlertPolicyName, parameters, options) {
|
|
6918
|
-
return tslib.__awaiter(this,
|
|
6918
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
6919
6919
|
const poller = yield this.beginCreateOrUpdate(resourceGroupName, serverName, securityAlertPolicyName, parameters, options);
|
|
6920
6920
|
return poller.pollUntilDone();
|
|
6921
6921
|
});
|
|
@@ -7069,10 +7069,10 @@ class MariaDBManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7069
7069
|
: `${packageDetails}`;
|
|
7070
7070
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
7071
7071
|
userAgentPrefix
|
|
7072
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
7072
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
7073
7073
|
super(optionsWithDefaults);
|
|
7074
7074
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
7075
|
-
if ((options === null || options ===
|
|
7075
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
7076
7076
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
7077
7077
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
7078
7078
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -7086,7 +7086,7 @@ class MariaDBManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7086
7086
|
});
|
|
7087
7087
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
7088
7088
|
credential: credentials,
|
|
7089
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
7089
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
7090
7090
|
challengeCallbacks: {
|
|
7091
7091
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
7092
7092
|
}
|
|
@@ -7138,17 +7138,17 @@ class MariaDBManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7138
7138
|
* @param options The options parameters.
|
|
7139
7139
|
*/
|
|
7140
7140
|
beginCreateRecommendedActionSession(resourceGroupName, serverName, advisorName, databaseName, options) {
|
|
7141
|
-
return tslib.__awaiter(this,
|
|
7142
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7141
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7142
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7143
7143
|
return this.sendOperationRequest(args, spec);
|
|
7144
7144
|
});
|
|
7145
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this,
|
|
7145
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7146
7146
|
var _a;
|
|
7147
7147
|
let currentRawResponse = undefined;
|
|
7148
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
7148
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
7149
7149
|
const callback = (rawResponse, flatResponse) => {
|
|
7150
7150
|
currentRawResponse = rawResponse;
|
|
7151
|
-
providedCallback === null || providedCallback ===
|
|
7151
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
7152
7152
|
};
|
|
7153
7153
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
7154
7154
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -7163,8 +7163,8 @@ class MariaDBManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7163
7163
|
});
|
|
7164
7164
|
const lro = new LroImpl(sendOperation, { resourceGroupName, serverName, advisorName, databaseName, options }, createRecommendedActionSessionOperationSpec);
|
|
7165
7165
|
const poller = new coreLro.LroEngine(lro, {
|
|
7166
|
-
resumeFrom: options === null || options ===
|
|
7167
|
-
intervalInMs: options === null || options ===
|
|
7166
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
7167
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
7168
7168
|
});
|
|
7169
7169
|
yield poller.poll();
|
|
7170
7170
|
return poller;
|
|
@@ -7179,7 +7179,7 @@ class MariaDBManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
7179
7179
|
* @param options The options parameters.
|
|
7180
7180
|
*/
|
|
7181
7181
|
beginCreateRecommendedActionSessionAndWait(resourceGroupName, serverName, advisorName, databaseName, options) {
|
|
7182
|
-
return tslib.__awaiter(this,
|
|
7182
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
7183
7183
|
const poller = yield this.beginCreateRecommendedActionSession(resourceGroupName, serverName, advisorName, databaseName, options);
|
|
7184
7184
|
return poller.pollUntilDone();
|
|
7185
7185
|
});
|