@azure/arm-redisenterprisecache 3.1.0-alpha.20250207.1 → 3.1.0-alpha.20250211.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +155 -155
- 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
|
}
|
|
@@ -2370,7 +2370,7 @@ class OperationsImpl {
|
|
|
2370
2370
|
return this;
|
|
2371
2371
|
},
|
|
2372
2372
|
byPage: (settings) => {
|
|
2373
|
-
if (settings === null || settings ===
|
|
2373
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2374
2374
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2375
2375
|
}
|
|
2376
2376
|
return this.listPagingPage(options, settings);
|
|
@@ -2380,7 +2380,7 @@ class OperationsImpl {
|
|
|
2380
2380
|
listPagingPage(options, settings) {
|
|
2381
2381
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2382
2382
|
let result;
|
|
2383
|
-
let continuationToken = settings === null || settings ===
|
|
2383
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2384
2384
|
if (!continuationToken) {
|
|
2385
2385
|
result = yield tslib.__await(this._list(options));
|
|
2386
2386
|
let page = result.value || [];
|
|
@@ -2525,7 +2525,7 @@ function createLroSpec(inputs) {
|
|
|
2525
2525
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2526
2526
|
sendPollRequest: (path, options) => {
|
|
2527
2527
|
const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2528
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
|
2528
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2529
2529
|
},
|
|
2530
2530
|
};
|
|
2531
2531
|
}
|
|
@@ -2562,7 +2562,7 @@ class RedisEnterpriseImpl {
|
|
|
2562
2562
|
return this;
|
|
2563
2563
|
},
|
|
2564
2564
|
byPage: (settings) => {
|
|
2565
|
-
if (settings === null || settings ===
|
|
2565
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2566
2566
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2567
2567
|
}
|
|
2568
2568
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
@@ -2572,7 +2572,7 @@ class RedisEnterpriseImpl {
|
|
|
2572
2572
|
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2573
2573
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2574
2574
|
let result;
|
|
2575
|
-
let continuationToken = settings === null || settings ===
|
|
2575
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2576
2576
|
if (!continuationToken) {
|
|
2577
2577
|
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2578
2578
|
let page = result.value || [];
|
|
@@ -2623,7 +2623,7 @@ class RedisEnterpriseImpl {
|
|
|
2623
2623
|
return this;
|
|
2624
2624
|
},
|
|
2625
2625
|
byPage: (settings) => {
|
|
2626
|
-
if (settings === null || settings ===
|
|
2626
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2627
2627
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
2628
2628
|
}
|
|
2629
2629
|
return this.listPagingPage(options, settings);
|
|
@@ -2633,7 +2633,7 @@ class RedisEnterpriseImpl {
|
|
|
2633
2633
|
listPagingPage(options, settings) {
|
|
2634
2634
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2635
2635
|
let result;
|
|
2636
|
-
let continuationToken = settings === null || settings ===
|
|
2636
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2637
2637
|
if (!continuationToken) {
|
|
2638
2638
|
result = yield tslib.__await(this._list(options));
|
|
2639
2639
|
let page = result.value || [];
|
|
@@ -2678,17 +2678,17 @@ class RedisEnterpriseImpl {
|
|
|
2678
2678
|
* @param options The options parameters.
|
|
2679
2679
|
*/
|
|
2680
2680
|
beginCreate(resourceGroupName, clusterName, parameters, options) {
|
|
2681
|
-
return tslib.__awaiter(this,
|
|
2682
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2681
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2682
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2683
2683
|
return this.client.sendOperationRequest(args, spec);
|
|
2684
2684
|
});
|
|
2685
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2685
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2686
2686
|
var _a;
|
|
2687
2687
|
let currentRawResponse = undefined;
|
|
2688
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2688
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2689
2689
|
const callback = (rawResponse, flatResponse) => {
|
|
2690
2690
|
currentRawResponse = rawResponse;
|
|
2691
|
-
providedCallback === null || providedCallback ===
|
|
2691
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2692
2692
|
};
|
|
2693
2693
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2694
2694
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2707,8 +2707,8 @@ class RedisEnterpriseImpl {
|
|
|
2707
2707
|
spec: createOperationSpec$1,
|
|
2708
2708
|
});
|
|
2709
2709
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2710
|
-
restoreFrom: options === null || options ===
|
|
2711
|
-
intervalInMs: options === null || options ===
|
|
2710
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2711
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2712
2712
|
resourceLocationConfig: "original-uri",
|
|
2713
2713
|
});
|
|
2714
2714
|
yield poller.poll();
|
|
@@ -2723,7 +2723,7 @@ class RedisEnterpriseImpl {
|
|
|
2723
2723
|
* @param options The options parameters.
|
|
2724
2724
|
*/
|
|
2725
2725
|
beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
2726
|
-
return tslib.__awaiter(this,
|
|
2726
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2727
2727
|
const poller = yield this.beginCreate(resourceGroupName, clusterName, parameters, options);
|
|
2728
2728
|
return poller.pollUntilDone();
|
|
2729
2729
|
});
|
|
@@ -2736,17 +2736,17 @@ class RedisEnterpriseImpl {
|
|
|
2736
2736
|
* @param options The options parameters.
|
|
2737
2737
|
*/
|
|
2738
2738
|
beginUpdate(resourceGroupName, clusterName, parameters, options) {
|
|
2739
|
-
return tslib.__awaiter(this,
|
|
2740
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2739
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2740
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2741
2741
|
return this.client.sendOperationRequest(args, spec);
|
|
2742
2742
|
});
|
|
2743
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2743
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2744
2744
|
var _a;
|
|
2745
2745
|
let currentRawResponse = undefined;
|
|
2746
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2746
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2747
2747
|
const callback = (rawResponse, flatResponse) => {
|
|
2748
2748
|
currentRawResponse = rawResponse;
|
|
2749
|
-
providedCallback === null || providedCallback ===
|
|
2749
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2750
2750
|
};
|
|
2751
2751
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2752
2752
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2765,8 +2765,8 @@ class RedisEnterpriseImpl {
|
|
|
2765
2765
|
spec: updateOperationSpec$1,
|
|
2766
2766
|
});
|
|
2767
2767
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2768
|
-
restoreFrom: options === null || options ===
|
|
2769
|
-
intervalInMs: options === null || options ===
|
|
2768
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2769
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2770
2770
|
resourceLocationConfig: "azure-async-operation",
|
|
2771
2771
|
});
|
|
2772
2772
|
yield poller.poll();
|
|
@@ -2781,7 +2781,7 @@ class RedisEnterpriseImpl {
|
|
|
2781
2781
|
* @param options The options parameters.
|
|
2782
2782
|
*/
|
|
2783
2783
|
beginUpdateAndWait(resourceGroupName, clusterName, parameters, options) {
|
|
2784
|
-
return tslib.__awaiter(this,
|
|
2784
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2785
2785
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, parameters, options);
|
|
2786
2786
|
return poller.pollUntilDone();
|
|
2787
2787
|
});
|
|
@@ -2793,17 +2793,17 @@ class RedisEnterpriseImpl {
|
|
|
2793
2793
|
* @param options The options parameters.
|
|
2794
2794
|
*/
|
|
2795
2795
|
beginDelete(resourceGroupName, clusterName, options) {
|
|
2796
|
-
return tslib.__awaiter(this,
|
|
2797
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
2796
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2797
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2798
2798
|
return this.client.sendOperationRequest(args, spec);
|
|
2799
2799
|
});
|
|
2800
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
2800
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2801
2801
|
var _a;
|
|
2802
2802
|
let currentRawResponse = undefined;
|
|
2803
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
2803
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2804
2804
|
const callback = (rawResponse, flatResponse) => {
|
|
2805
2805
|
currentRawResponse = rawResponse;
|
|
2806
|
-
providedCallback === null || providedCallback ===
|
|
2806
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2807
2807
|
};
|
|
2808
2808
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2809
2809
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -2822,8 +2822,8 @@ class RedisEnterpriseImpl {
|
|
|
2822
2822
|
spec: deleteOperationSpec$3,
|
|
2823
2823
|
});
|
|
2824
2824
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2825
|
-
restoreFrom: options === null || options ===
|
|
2826
|
-
intervalInMs: options === null || options ===
|
|
2825
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2826
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2827
2827
|
resourceLocationConfig: "azure-async-operation",
|
|
2828
2828
|
});
|
|
2829
2829
|
yield poller.poll();
|
|
@@ -2837,7 +2837,7 @@ class RedisEnterpriseImpl {
|
|
|
2837
2837
|
* @param options The options parameters.
|
|
2838
2838
|
*/
|
|
2839
2839
|
beginDeleteAndWait(resourceGroupName, clusterName, options) {
|
|
2840
|
-
return tslib.__awaiter(this,
|
|
2840
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2841
2841
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
|
|
2842
2842
|
return poller.pollUntilDone();
|
|
2843
2843
|
});
|
|
@@ -3102,7 +3102,7 @@ class DatabasesImpl {
|
|
|
3102
3102
|
return this;
|
|
3103
3103
|
},
|
|
3104
3104
|
byPage: (settings) => {
|
|
3105
|
-
if (settings === null || settings ===
|
|
3105
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3106
3106
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
3107
3107
|
}
|
|
3108
3108
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -3112,7 +3112,7 @@ class DatabasesImpl {
|
|
|
3112
3112
|
listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
|
|
3113
3113
|
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
3114
3114
|
let result;
|
|
3115
|
-
let continuationToken = settings === null || settings ===
|
|
3115
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3116
3116
|
if (!continuationToken) {
|
|
3117
3117
|
result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
3118
3118
|
let page = result.value || [];
|
|
@@ -3167,17 +3167,17 @@ class DatabasesImpl {
|
|
|
3167
3167
|
* @param options The options parameters.
|
|
3168
3168
|
*/
|
|
3169
3169
|
beginCreate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3170
|
-
return tslib.__awaiter(this,
|
|
3171
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3170
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3171
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3172
3172
|
return this.client.sendOperationRequest(args, spec);
|
|
3173
3173
|
});
|
|
3174
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3174
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3175
3175
|
var _a;
|
|
3176
3176
|
let currentRawResponse = undefined;
|
|
3177
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3177
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3178
3178
|
const callback = (rawResponse, flatResponse) => {
|
|
3179
3179
|
currentRawResponse = rawResponse;
|
|
3180
|
-
providedCallback === null || providedCallback ===
|
|
3180
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3181
3181
|
};
|
|
3182
3182
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3183
3183
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3202,8 +3202,8 @@ class DatabasesImpl {
|
|
|
3202
3202
|
spec: createOperationSpec,
|
|
3203
3203
|
});
|
|
3204
3204
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3205
|
-
restoreFrom: options === null || options ===
|
|
3206
|
-
intervalInMs: options === null || options ===
|
|
3205
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3206
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3207
3207
|
resourceLocationConfig: "original-uri",
|
|
3208
3208
|
});
|
|
3209
3209
|
yield poller.poll();
|
|
@@ -3219,7 +3219,7 @@ class DatabasesImpl {
|
|
|
3219
3219
|
* @param options The options parameters.
|
|
3220
3220
|
*/
|
|
3221
3221
|
beginCreateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3222
|
-
return tslib.__awaiter(this,
|
|
3222
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3223
3223
|
const poller = yield this.beginCreate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3224
3224
|
return poller.pollUntilDone();
|
|
3225
3225
|
});
|
|
@@ -3233,17 +3233,17 @@ class DatabasesImpl {
|
|
|
3233
3233
|
* @param options The options parameters.
|
|
3234
3234
|
*/
|
|
3235
3235
|
beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3236
|
-
return tslib.__awaiter(this,
|
|
3237
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3236
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3237
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3238
3238
|
return this.client.sendOperationRequest(args, spec);
|
|
3239
3239
|
});
|
|
3240
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3240
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3241
3241
|
var _a;
|
|
3242
3242
|
let currentRawResponse = undefined;
|
|
3243
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3243
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3244
3244
|
const callback = (rawResponse, flatResponse) => {
|
|
3245
3245
|
currentRawResponse = rawResponse;
|
|
3246
|
-
providedCallback === null || providedCallback ===
|
|
3246
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3247
3247
|
};
|
|
3248
3248
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3249
3249
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3268,8 +3268,8 @@ class DatabasesImpl {
|
|
|
3268
3268
|
spec: updateOperationSpec,
|
|
3269
3269
|
});
|
|
3270
3270
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3271
|
-
restoreFrom: options === null || options ===
|
|
3272
|
-
intervalInMs: options === null || options ===
|
|
3271
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3272
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3273
3273
|
resourceLocationConfig: "azure-async-operation",
|
|
3274
3274
|
});
|
|
3275
3275
|
yield poller.poll();
|
|
@@ -3285,7 +3285,7 @@ class DatabasesImpl {
|
|
|
3285
3285
|
* @param options The options parameters.
|
|
3286
3286
|
*/
|
|
3287
3287
|
beginUpdateAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3288
|
-
return tslib.__awaiter(this,
|
|
3288
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3289
3289
|
const poller = yield this.beginUpdate(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3290
3290
|
return poller.pollUntilDone();
|
|
3291
3291
|
});
|
|
@@ -3308,17 +3308,17 @@ class DatabasesImpl {
|
|
|
3308
3308
|
* @param options The options parameters.
|
|
3309
3309
|
*/
|
|
3310
3310
|
beginDelete(resourceGroupName, clusterName, databaseName, options) {
|
|
3311
|
-
return tslib.__awaiter(this,
|
|
3312
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3311
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3312
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3313
3313
|
return this.client.sendOperationRequest(args, spec);
|
|
3314
3314
|
});
|
|
3315
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3315
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3316
3316
|
var _a;
|
|
3317
3317
|
let currentRawResponse = undefined;
|
|
3318
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3318
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3319
3319
|
const callback = (rawResponse, flatResponse) => {
|
|
3320
3320
|
currentRawResponse = rawResponse;
|
|
3321
|
-
providedCallback === null || providedCallback ===
|
|
3321
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3322
3322
|
};
|
|
3323
3323
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3324
3324
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3337,8 +3337,8 @@ class DatabasesImpl {
|
|
|
3337
3337
|
spec: deleteOperationSpec$2,
|
|
3338
3338
|
});
|
|
3339
3339
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3340
|
-
restoreFrom: options === null || options ===
|
|
3341
|
-
intervalInMs: options === null || options ===
|
|
3340
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3341
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3342
3342
|
resourceLocationConfig: "azure-async-operation",
|
|
3343
3343
|
});
|
|
3344
3344
|
yield poller.poll();
|
|
@@ -3353,7 +3353,7 @@ class DatabasesImpl {
|
|
|
3353
3353
|
* @param options The options parameters.
|
|
3354
3354
|
*/
|
|
3355
3355
|
beginDeleteAndWait(resourceGroupName, clusterName, databaseName, options) {
|
|
3356
|
-
return tslib.__awaiter(this,
|
|
3356
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3357
3357
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, options);
|
|
3358
3358
|
return poller.pollUntilDone();
|
|
3359
3359
|
});
|
|
@@ -3377,17 +3377,17 @@ class DatabasesImpl {
|
|
|
3377
3377
|
* @param options The options parameters.
|
|
3378
3378
|
*/
|
|
3379
3379
|
beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3380
|
-
return tslib.__awaiter(this,
|
|
3381
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3380
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3381
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3382
3382
|
return this.client.sendOperationRequest(args, spec);
|
|
3383
3383
|
});
|
|
3384
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3384
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3385
3385
|
var _a;
|
|
3386
3386
|
let currentRawResponse = undefined;
|
|
3387
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3387
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3388
3388
|
const callback = (rawResponse, flatResponse) => {
|
|
3389
3389
|
currentRawResponse = rawResponse;
|
|
3390
|
-
providedCallback === null || providedCallback ===
|
|
3390
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3391
3391
|
};
|
|
3392
3392
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3393
3393
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3412,8 +3412,8 @@ class DatabasesImpl {
|
|
|
3412
3412
|
spec: regenerateKeyOperationSpec,
|
|
3413
3413
|
});
|
|
3414
3414
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3415
|
-
restoreFrom: options === null || options ===
|
|
3416
|
-
intervalInMs: options === null || options ===
|
|
3415
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3416
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3417
3417
|
resourceLocationConfig: "azure-async-operation",
|
|
3418
3418
|
});
|
|
3419
3419
|
yield poller.poll();
|
|
@@ -3429,7 +3429,7 @@ class DatabasesImpl {
|
|
|
3429
3429
|
* @param options The options parameters.
|
|
3430
3430
|
*/
|
|
3431
3431
|
beginRegenerateKeyAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3432
|
-
return tslib.__awaiter(this,
|
|
3432
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3433
3433
|
const poller = yield this.beginRegenerateKey(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3434
3434
|
return poller.pollUntilDone();
|
|
3435
3435
|
});
|
|
@@ -3443,17 +3443,17 @@ class DatabasesImpl {
|
|
|
3443
3443
|
* @param options The options parameters.
|
|
3444
3444
|
*/
|
|
3445
3445
|
beginImport(resourceGroupName, clusterName, databaseName, 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 sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3450
|
+
const sendOperationFn = (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);
|
|
@@ -3478,8 +3478,8 @@ class DatabasesImpl {
|
|
|
3478
3478
|
spec: importOperationSpec,
|
|
3479
3479
|
});
|
|
3480
3480
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3481
|
-
restoreFrom: options === null || options ===
|
|
3482
|
-
intervalInMs: options === null || options ===
|
|
3481
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3482
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3483
3483
|
resourceLocationConfig: "azure-async-operation",
|
|
3484
3484
|
});
|
|
3485
3485
|
yield poller.poll();
|
|
@@ -3495,7 +3495,7 @@ class DatabasesImpl {
|
|
|
3495
3495
|
* @param options The options parameters.
|
|
3496
3496
|
*/
|
|
3497
3497
|
beginImportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3498
|
-
return tslib.__awaiter(this,
|
|
3498
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3499
3499
|
const poller = yield this.beginImport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3500
3500
|
return poller.pollUntilDone();
|
|
3501
3501
|
});
|
|
@@ -3509,17 +3509,17 @@ class DatabasesImpl {
|
|
|
3509
3509
|
* @param options The options parameters.
|
|
3510
3510
|
*/
|
|
3511
3511
|
beginExport(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3512
|
-
return tslib.__awaiter(this,
|
|
3513
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3512
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3513
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3514
3514
|
return this.client.sendOperationRequest(args, spec);
|
|
3515
3515
|
});
|
|
3516
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3516
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3517
3517
|
var _a;
|
|
3518
3518
|
let currentRawResponse = undefined;
|
|
3519
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3519
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3520
3520
|
const callback = (rawResponse, flatResponse) => {
|
|
3521
3521
|
currentRawResponse = rawResponse;
|
|
3522
|
-
providedCallback === null || providedCallback ===
|
|
3522
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3523
3523
|
};
|
|
3524
3524
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3525
3525
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3544,8 +3544,8 @@ class DatabasesImpl {
|
|
|
3544
3544
|
spec: exportOperationSpec,
|
|
3545
3545
|
});
|
|
3546
3546
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3547
|
-
restoreFrom: options === null || options ===
|
|
3548
|
-
intervalInMs: options === null || options ===
|
|
3547
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3548
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3549
3549
|
resourceLocationConfig: "azure-async-operation",
|
|
3550
3550
|
});
|
|
3551
3551
|
yield poller.poll();
|
|
@@ -3561,7 +3561,7 @@ class DatabasesImpl {
|
|
|
3561
3561
|
* @param options The options parameters.
|
|
3562
3562
|
*/
|
|
3563
3563
|
beginExportAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3564
|
-
return tslib.__awaiter(this,
|
|
3564
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3565
3565
|
const poller = yield this.beginExport(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3566
3566
|
return poller.pollUntilDone();
|
|
3567
3567
|
});
|
|
@@ -3575,17 +3575,17 @@ class DatabasesImpl {
|
|
|
3575
3575
|
* @param options The options parameters.
|
|
3576
3576
|
*/
|
|
3577
3577
|
beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3578
|
-
return tslib.__awaiter(this,
|
|
3579
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3578
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3579
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3580
3580
|
return this.client.sendOperationRequest(args, spec);
|
|
3581
3581
|
});
|
|
3582
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3582
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3583
3583
|
var _a;
|
|
3584
3584
|
let currentRawResponse = undefined;
|
|
3585
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3585
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3586
3586
|
const callback = (rawResponse, flatResponse) => {
|
|
3587
3587
|
currentRawResponse = rawResponse;
|
|
3588
|
-
providedCallback === null || providedCallback ===
|
|
3588
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3589
3589
|
};
|
|
3590
3590
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3591
3591
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3610,8 +3610,8 @@ class DatabasesImpl {
|
|
|
3610
3610
|
spec: forceUnlinkOperationSpec,
|
|
3611
3611
|
});
|
|
3612
3612
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3613
|
-
restoreFrom: options === null || options ===
|
|
3614
|
-
intervalInMs: options === null || options ===
|
|
3613
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3614
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3615
3615
|
resourceLocationConfig: "azure-async-operation",
|
|
3616
3616
|
});
|
|
3617
3617
|
yield poller.poll();
|
|
@@ -3627,7 +3627,7 @@ class DatabasesImpl {
|
|
|
3627
3627
|
* @param options The options parameters.
|
|
3628
3628
|
*/
|
|
3629
3629
|
beginForceUnlinkAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3630
|
-
return tslib.__awaiter(this,
|
|
3630
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3631
3631
|
const poller = yield this.beginForceUnlink(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3632
3632
|
return poller.pollUntilDone();
|
|
3633
3633
|
});
|
|
@@ -3643,17 +3643,17 @@ class DatabasesImpl {
|
|
|
3643
3643
|
* @param options The options parameters.
|
|
3644
3644
|
*/
|
|
3645
3645
|
beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3646
|
-
return tslib.__awaiter(this,
|
|
3647
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3646
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3647
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3648
3648
|
return this.client.sendOperationRequest(args, spec);
|
|
3649
3649
|
});
|
|
3650
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3650
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3651
3651
|
var _a;
|
|
3652
3652
|
let currentRawResponse = undefined;
|
|
3653
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3653
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3654
3654
|
const callback = (rawResponse, flatResponse) => {
|
|
3655
3655
|
currentRawResponse = rawResponse;
|
|
3656
|
-
providedCallback === null || providedCallback ===
|
|
3656
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3657
3657
|
};
|
|
3658
3658
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3659
3659
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3678,8 +3678,8 @@ class DatabasesImpl {
|
|
|
3678
3678
|
spec: forceLinkToReplicationGroupOperationSpec,
|
|
3679
3679
|
});
|
|
3680
3680
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3681
|
-
restoreFrom: options === null || options ===
|
|
3682
|
-
intervalInMs: options === null || options ===
|
|
3681
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3682
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3683
3683
|
resourceLocationConfig: "azure-async-operation",
|
|
3684
3684
|
});
|
|
3685
3685
|
yield poller.poll();
|
|
@@ -3697,7 +3697,7 @@ class DatabasesImpl {
|
|
|
3697
3697
|
* @param options The options parameters.
|
|
3698
3698
|
*/
|
|
3699
3699
|
beginForceLinkToReplicationGroupAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3700
|
-
return tslib.__awaiter(this,
|
|
3700
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3701
3701
|
const poller = yield this.beginForceLinkToReplicationGroup(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3702
3702
|
return poller.pollUntilDone();
|
|
3703
3703
|
});
|
|
@@ -3711,17 +3711,17 @@ class DatabasesImpl {
|
|
|
3711
3711
|
* @param options The options parameters.
|
|
3712
3712
|
*/
|
|
3713
3713
|
beginFlush(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3714
|
-
return tslib.__awaiter(this,
|
|
3715
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3714
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3715
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3716
3716
|
return this.client.sendOperationRequest(args, spec);
|
|
3717
3717
|
});
|
|
3718
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3718
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3719
3719
|
var _a;
|
|
3720
3720
|
let currentRawResponse = undefined;
|
|
3721
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3721
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3722
3722
|
const callback = (rawResponse, flatResponse) => {
|
|
3723
3723
|
currentRawResponse = rawResponse;
|
|
3724
|
-
providedCallback === null || providedCallback ===
|
|
3724
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3725
3725
|
};
|
|
3726
3726
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3727
3727
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3746,8 +3746,8 @@ class DatabasesImpl {
|
|
|
3746
3746
|
spec: flushOperationSpec,
|
|
3747
3747
|
});
|
|
3748
3748
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3749
|
-
restoreFrom: options === null || options ===
|
|
3750
|
-
intervalInMs: options === null || options ===
|
|
3749
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3750
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3751
3751
|
resourceLocationConfig: "location",
|
|
3752
3752
|
});
|
|
3753
3753
|
yield poller.poll();
|
|
@@ -3763,7 +3763,7 @@ class DatabasesImpl {
|
|
|
3763
3763
|
* @param options The options parameters.
|
|
3764
3764
|
*/
|
|
3765
3765
|
beginFlushAndWait(resourceGroupName, clusterName, databaseName, parameters, options) {
|
|
3766
|
-
return tslib.__awaiter(this,
|
|
3766
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3767
3767
|
const poller = yield this.beginFlush(resourceGroupName, clusterName, databaseName, parameters, options);
|
|
3768
3768
|
return poller.pollUntilDone();
|
|
3769
3769
|
});
|
|
@@ -3776,17 +3776,17 @@ class DatabasesImpl {
|
|
|
3776
3776
|
* @param options The options parameters.
|
|
3777
3777
|
*/
|
|
3778
3778
|
beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options) {
|
|
3779
|
-
return tslib.__awaiter(this,
|
|
3780
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
3779
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3780
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3781
3781
|
return this.client.sendOperationRequest(args, spec);
|
|
3782
3782
|
});
|
|
3783
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
3783
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3784
3784
|
var _a;
|
|
3785
3785
|
let currentRawResponse = undefined;
|
|
3786
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
3786
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3787
3787
|
const callback = (rawResponse, flatResponse) => {
|
|
3788
3788
|
currentRawResponse = rawResponse;
|
|
3789
|
-
providedCallback === null || providedCallback ===
|
|
3789
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3790
3790
|
};
|
|
3791
3791
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3792
3792
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -3805,8 +3805,8 @@ class DatabasesImpl {
|
|
|
3805
3805
|
spec: upgradeDBRedisVersionOperationSpec,
|
|
3806
3806
|
});
|
|
3807
3807
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3808
|
-
restoreFrom: options === null || options ===
|
|
3809
|
-
intervalInMs: options === null || options ===
|
|
3808
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3809
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3810
3810
|
resourceLocationConfig: "location",
|
|
3811
3811
|
});
|
|
3812
3812
|
yield poller.poll();
|
|
@@ -3821,7 +3821,7 @@ class DatabasesImpl {
|
|
|
3821
3821
|
* @param options The options parameters.
|
|
3822
3822
|
*/
|
|
3823
3823
|
beginUpgradeDBRedisVersionAndWait(resourceGroupName, clusterName, databaseName, options) {
|
|
3824
|
-
return tslib.__awaiter(this,
|
|
3824
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3825
3825
|
const poller = yield this.beginUpgradeDBRedisVersion(resourceGroupName, clusterName, databaseName, options);
|
|
3826
3826
|
return poller.pollUntilDone();
|
|
3827
3827
|
});
|
|
@@ -4246,7 +4246,7 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4246
4246
|
return this;
|
|
4247
4247
|
},
|
|
4248
4248
|
byPage: (settings) => {
|
|
4249
|
-
if (settings === null || settings ===
|
|
4249
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4250
4250
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4251
4251
|
}
|
|
4252
4252
|
return this.listPagingPage(resourceGroupName, clusterName, databaseName, options, settings);
|
|
@@ -4256,7 +4256,7 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4256
4256
|
listPagingPage(resourceGroupName, clusterName, databaseName, options, settings) {
|
|
4257
4257
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4258
4258
|
let result;
|
|
4259
|
-
let continuationToken = settings === null || settings ===
|
|
4259
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4260
4260
|
if (!continuationToken) {
|
|
4261
4261
|
result = yield tslib.__await(this._list(resourceGroupName, clusterName, databaseName, options));
|
|
4262
4262
|
let page = result.value || [];
|
|
@@ -4304,17 +4304,17 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4304
4304
|
* @param options The options parameters.
|
|
4305
4305
|
*/
|
|
4306
4306
|
beginCreateUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options) {
|
|
4307
|
-
return tslib.__awaiter(this,
|
|
4308
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4307
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4308
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4309
4309
|
return this.client.sendOperationRequest(args, spec);
|
|
4310
4310
|
});
|
|
4311
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4311
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4312
4312
|
var _a;
|
|
4313
4313
|
let currentRawResponse = undefined;
|
|
4314
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4314
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4315
4315
|
const callback = (rawResponse, flatResponse) => {
|
|
4316
4316
|
currentRawResponse = rawResponse;
|
|
4317
|
-
providedCallback === null || providedCallback ===
|
|
4317
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4318
4318
|
};
|
|
4319
4319
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4320
4320
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4340,8 +4340,8 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4340
4340
|
spec: createUpdateOperationSpec,
|
|
4341
4341
|
});
|
|
4342
4342
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4343
|
-
restoreFrom: options === null || options ===
|
|
4344
|
-
intervalInMs: options === null || options ===
|
|
4343
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4344
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4345
4345
|
resourceLocationConfig: "original-uri",
|
|
4346
4346
|
});
|
|
4347
4347
|
yield poller.poll();
|
|
@@ -4359,7 +4359,7 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4359
4359
|
* @param options The options parameters.
|
|
4360
4360
|
*/
|
|
4361
4361
|
beginCreateUpdateAndWait(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options) {
|
|
4362
|
-
return tslib.__awaiter(this,
|
|
4362
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4363
4363
|
const poller = yield this.beginCreateUpdate(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, parameters, options);
|
|
4364
4364
|
return poller.pollUntilDone();
|
|
4365
4365
|
});
|
|
@@ -4392,17 +4392,17 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4392
4392
|
* @param options The options parameters.
|
|
4393
4393
|
*/
|
|
4394
4394
|
beginDelete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
|
|
4395
|
-
return tslib.__awaiter(this,
|
|
4396
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4395
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4396
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4397
4397
|
return this.client.sendOperationRequest(args, spec);
|
|
4398
4398
|
});
|
|
4399
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4399
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4400
4400
|
var _a;
|
|
4401
4401
|
let currentRawResponse = undefined;
|
|
4402
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4402
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4403
4403
|
const callback = (rawResponse, flatResponse) => {
|
|
4404
4404
|
currentRawResponse = rawResponse;
|
|
4405
|
-
providedCallback === null || providedCallback ===
|
|
4405
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4406
4406
|
};
|
|
4407
4407
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4408
4408
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4427,8 +4427,8 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4427
4427
|
spec: deleteOperationSpec$1,
|
|
4428
4428
|
});
|
|
4429
4429
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4430
|
-
restoreFrom: options === null || options ===
|
|
4431
|
-
intervalInMs: options === null || options ===
|
|
4430
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4431
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4432
4432
|
resourceLocationConfig: "azure-async-operation",
|
|
4433
4433
|
});
|
|
4434
4434
|
yield poller.poll();
|
|
@@ -4445,7 +4445,7 @@ class AccessPolicyAssignmentOperationsImpl {
|
|
|
4445
4445
|
* @param options The options parameters.
|
|
4446
4446
|
*/
|
|
4447
4447
|
beginDeleteAndWait(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options) {
|
|
4448
|
-
return tslib.__awaiter(this,
|
|
4448
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4449
4449
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, options);
|
|
4450
4450
|
return poller.pollUntilDone();
|
|
4451
4451
|
});
|
|
@@ -4641,7 +4641,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4641
4641
|
return this;
|
|
4642
4642
|
},
|
|
4643
4643
|
byPage: (settings) => {
|
|
4644
|
-
if (settings === null || settings ===
|
|
4644
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4645
4645
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4646
4646
|
}
|
|
4647
4647
|
return this.listPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -4711,17 +4711,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4711
4711
|
* @param options The options parameters.
|
|
4712
4712
|
*/
|
|
4713
4713
|
beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
4714
|
-
return tslib.__awaiter(this,
|
|
4715
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4714
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4715
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4716
4716
|
return this.client.sendOperationRequest(args, spec);
|
|
4717
4717
|
});
|
|
4718
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4718
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4719
4719
|
var _a;
|
|
4720
4720
|
let currentRawResponse = undefined;
|
|
4721
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4721
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4722
4722
|
const callback = (rawResponse, flatResponse) => {
|
|
4723
4723
|
currentRawResponse = rawResponse;
|
|
4724
|
-
providedCallback === null || providedCallback ===
|
|
4724
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4725
4725
|
};
|
|
4726
4726
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4727
4727
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4746,8 +4746,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4746
4746
|
spec: putOperationSpec,
|
|
4747
4747
|
});
|
|
4748
4748
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4749
|
-
restoreFrom: options === null || options ===
|
|
4750
|
-
intervalInMs: options === null || options ===
|
|
4749
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4750
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4751
4751
|
});
|
|
4752
4752
|
yield poller.poll();
|
|
4753
4753
|
return poller;
|
|
@@ -4764,7 +4764,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4764
4764
|
* @param options The options parameters.
|
|
4765
4765
|
*/
|
|
4766
4766
|
beginPutAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options) {
|
|
4767
|
-
return tslib.__awaiter(this,
|
|
4767
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4768
4768
|
const poller = yield this.beginPut(resourceGroupName, clusterName, privateEndpointConnectionName, properties, options);
|
|
4769
4769
|
return poller.pollUntilDone();
|
|
4770
4770
|
});
|
|
@@ -4778,17 +4778,17 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4778
4778
|
* @param options The options parameters.
|
|
4779
4779
|
*/
|
|
4780
4780
|
beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
4781
|
-
return tslib.__awaiter(this,
|
|
4782
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
|
4781
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4782
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4783
4783
|
return this.client.sendOperationRequest(args, spec);
|
|
4784
4784
|
});
|
|
4785
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
|
4785
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4786
4786
|
var _a;
|
|
4787
4787
|
let currentRawResponse = undefined;
|
|
4788
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
|
4788
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4789
4789
|
const callback = (rawResponse, flatResponse) => {
|
|
4790
4790
|
currentRawResponse = rawResponse;
|
|
4791
|
-
providedCallback === null || providedCallback ===
|
|
4791
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4792
4792
|
};
|
|
4793
4793
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4794
4794
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
@@ -4812,8 +4812,8 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4812
4812
|
spec: deleteOperationSpec,
|
|
4813
4813
|
});
|
|
4814
4814
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4815
|
-
restoreFrom: options === null || options ===
|
|
4816
|
-
intervalInMs: options === null || options ===
|
|
4815
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4816
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4817
4817
|
resourceLocationConfig: "location",
|
|
4818
4818
|
});
|
|
4819
4819
|
yield poller.poll();
|
|
@@ -4829,7 +4829,7 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4829
4829
|
* @param options The options parameters.
|
|
4830
4830
|
*/
|
|
4831
4831
|
beginDeleteAndWait(resourceGroupName, clusterName, privateEndpointConnectionName, options) {
|
|
4832
|
-
return tslib.__awaiter(this,
|
|
4832
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4833
4833
|
const poller = yield this.beginDelete(resourceGroupName, clusterName, privateEndpointConnectionName, options);
|
|
4834
4834
|
return poller.pollUntilDone();
|
|
4835
4835
|
});
|
|
@@ -4970,7 +4970,7 @@ class PrivateLinkResourcesImpl {
|
|
|
4970
4970
|
return this;
|
|
4971
4971
|
},
|
|
4972
4972
|
byPage: (settings) => {
|
|
4973
|
-
if (settings === null || settings ===
|
|
4973
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4974
4974
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
4975
4975
|
}
|
|
4976
4976
|
return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
|
|
@@ -5074,10 +5074,10 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
|
|
|
5074
5074
|
: `${packageDetails}`;
|
|
5075
5075
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5076
5076
|
userAgentPrefix,
|
|
5077
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
|
5077
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5078
5078
|
super(optionsWithDefaults);
|
|
5079
5079
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
5080
|
-
if ((options === null || options ===
|
|
5080
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5081
5081
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5082
5082
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5083
5083
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
@@ -5091,7 +5091,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
|
|
|
5091
5091
|
});
|
|
5092
5092
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5093
5093
|
credential: credentials,
|
|
5094
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
|
5094
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5095
5095
|
challengeCallbacks: {
|
|
5096
5096
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
5097
5097
|
},
|
|
@@ -5120,7 +5120,7 @@ class RedisEnterpriseManagementClient extends coreClient__namespace.ServiceClien
|
|
|
5120
5120
|
const apiVersionPolicy = {
|
|
5121
5121
|
name: "CustomApiVersionPolicy",
|
|
5122
5122
|
sendRequest(request, next) {
|
|
5123
|
-
return tslib.__awaiter(this,
|
|
5123
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5124
5124
|
const param = request.url.split("?");
|
|
5125
5125
|
if (param.length > 1) {
|
|
5126
5126
|
const newParams = param[1].split("&").map((item) => {
|