@azure/arm-rediscache 8.2.1-alpha.20250619.1 → 8.2.1-alpha.20250729.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/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +176 -80
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accessPolicy.js +45 -52
- package/dist/browser/operations/accessPolicy.js.map +1 -1
- package/dist/browser/operations/accessPolicyAssignment.js +45 -52
- package/dist/browser/operations/accessPolicyAssignment.js.map +1 -1
- package/dist/browser/operations/asyncOperationStatus.js +1 -0
- package/dist/browser/operations/asyncOperationStatus.js.map +1 -1
- package/dist/browser/operations/firewallRules.js +23 -40
- package/dist/browser/operations/firewallRules.js.map +1 -1
- package/dist/browser/operations/linkedServer.js +45 -52
- package/dist/browser/operations/linkedServer.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/patchSchedules.js +23 -40
- package/dist/browser/operations/patchSchedules.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +21 -33
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/redis.js +136 -157
- package/dist/browser/operations/redis.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/redisManagementClient.js +23 -5
- package/dist/browser/redisManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +176 -80
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accessPolicy.js +45 -51
- package/dist/commonjs/operations/accessPolicy.js.map +1 -1
- package/dist/commonjs/operations/accessPolicyAssignment.js +45 -51
- package/dist/commonjs/operations/accessPolicyAssignment.js.map +1 -1
- package/dist/commonjs/operations/asyncOperationStatus.js +1 -0
- package/dist/commonjs/operations/asyncOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/firewallRules.js +23 -39
- package/dist/commonjs/operations/firewallRules.js.map +1 -1
- package/dist/commonjs/operations/linkedServer.js +45 -51
- package/dist/commonjs/operations/linkedServer.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/patchSchedules.js +23 -39
- package/dist/commonjs/operations/patchSchedules.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +21 -32
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/redis.js +136 -156
- package/dist/commonjs/operations/redis.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/redisManagementClient.js +23 -5
- package/dist/commonjs/redisManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +176 -80
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accessPolicy.js +45 -52
- package/dist/esm/operations/accessPolicy.js.map +1 -1
- package/dist/esm/operations/accessPolicyAssignment.js +45 -52
- package/dist/esm/operations/accessPolicyAssignment.js.map +1 -1
- package/dist/esm/operations/asyncOperationStatus.js +1 -0
- package/dist/esm/operations/asyncOperationStatus.js.map +1 -1
- package/dist/esm/operations/firewallRules.js +23 -40
- package/dist/esm/operations/firewallRules.js.map +1 -1
- package/dist/esm/operations/linkedServer.js +45 -52
- package/dist/esm/operations/linkedServer.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/patchSchedules.js +23 -40
- package/dist/esm/operations/patchSchedules.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +21 -33
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/redis.js +136 -157
- package/dist/esm/operations/redis.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/redisManagementClient.js +23 -5
- package/dist/esm/redisManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +176 -80
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accessPolicy.js +45 -52
- package/dist/react-native/operations/accessPolicy.js.map +1 -1
- package/dist/react-native/operations/accessPolicyAssignment.js +45 -52
- package/dist/react-native/operations/accessPolicyAssignment.js.map +1 -1
- package/dist/react-native/operations/asyncOperationStatus.js +1 -0
- package/dist/react-native/operations/asyncOperationStatus.js.map +1 -1
- package/dist/react-native/operations/firewallRules.js +23 -40
- package/dist/react-native/operations/firewallRules.js.map +1 -1
- package/dist/react-native/operations/linkedServer.js +45 -52
- package/dist/react-native/operations/linkedServer.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/patchSchedules.js +23 -40
- package/dist/react-native/operations/patchSchedules.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +21 -33
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/redis.js +136 -157
- package/dist/react-native/operations/redis.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/redisManagementClient.js +23 -5
- package/dist/react-native/redisManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-rediscache.api.md → arm-rediscache-node.api.md} +0 -0
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Redis operations. */
|
|
20
20
|
class RedisImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Redis class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -42,52 +43,35 @@ class RedisImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options, settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var _a, e_1, _b, _c;
|
|
75
|
-
try {
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
53
|
+
async *listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options, settings) {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings?.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = await this._listUpgradeNotifications(resourceGroupName, name, history, options);
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listUpgradeNotificationsNext(resourceGroupName, name, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async *listUpgradeNotificationsPagingAll(resourceGroupName, name, history, options) {
|
|
72
|
+
for await (const page of this.listUpgradeNotificationsPagingPage(resourceGroupName, name, history, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Lists all Redis caches in a resource group.
|
|
@@ -104,52 +88,35 @@ class RedisImpl {
|
|
|
104
88
|
return this;
|
|
105
89
|
},
|
|
106
90
|
byPage: (settings) => {
|
|
107
|
-
if (settings
|
|
91
|
+
if (settings?.maxPageSize) {
|
|
108
92
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
109
93
|
}
|
|
110
94
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
111
95
|
},
|
|
112
96
|
};
|
|
113
97
|
}
|
|
114
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var _a, e_2, _b, _c;
|
|
137
|
-
try {
|
|
138
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
139
|
-
_c = _f.value;
|
|
140
|
-
_d = false;
|
|
141
|
-
const page = _c;
|
|
142
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
146
|
-
finally {
|
|
147
|
-
try {
|
|
148
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
149
|
-
}
|
|
150
|
-
finally { if (e_2) throw e_2.error; }
|
|
151
|
-
}
|
|
152
|
-
});
|
|
98
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
99
|
+
let result;
|
|
100
|
+
let continuationToken = settings?.continuationToken;
|
|
101
|
+
if (!continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
103
|
+
let page = result.value || [];
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
108
|
+
while (continuationToken) {
|
|
109
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
let page = result.value || [];
|
|
112
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
113
|
+
yield page;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
117
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
118
|
+
yield* page;
|
|
119
|
+
}
|
|
153
120
|
}
|
|
154
121
|
/**
|
|
155
122
|
* Gets all Redis caches in the specified subscription.
|
|
@@ -165,52 +132,35 @@ class RedisImpl {
|
|
|
165
132
|
return this;
|
|
166
133
|
},
|
|
167
134
|
byPage: (settings) => {
|
|
168
|
-
if (settings
|
|
135
|
+
if (settings?.maxPageSize) {
|
|
169
136
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
170
137
|
}
|
|
171
138
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
172
139
|
},
|
|
173
140
|
};
|
|
174
141
|
}
|
|
175
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var _a, e_3, _b, _c;
|
|
198
|
-
try {
|
|
199
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
200
|
-
_c = _f.value;
|
|
201
|
-
_d = false;
|
|
202
|
-
const page = _c;
|
|
203
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
207
|
-
finally {
|
|
208
|
-
try {
|
|
209
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
210
|
-
}
|
|
211
|
-
finally { if (e_3) throw e_3.error; }
|
|
212
|
-
}
|
|
213
|
-
});
|
|
142
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
143
|
+
let result;
|
|
144
|
+
let continuationToken = settings?.continuationToken;
|
|
145
|
+
if (!continuationToken) {
|
|
146
|
+
result = await this._listBySubscription(options);
|
|
147
|
+
let page = result.value || [];
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
150
|
+
yield page;
|
|
151
|
+
}
|
|
152
|
+
while (continuationToken) {
|
|
153
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
154
|
+
continuationToken = result.nextLink;
|
|
155
|
+
let page = result.value || [];
|
|
156
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
157
|
+
yield page;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
async *listBySubscriptionPagingAll(options) {
|
|
161
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
162
|
+
yield* page;
|
|
163
|
+
}
|
|
214
164
|
}
|
|
215
165
|
/**
|
|
216
166
|
* Checks that the redis cache name is valid and is not already in use.
|
|
@@ -243,14 +193,19 @@ class RedisImpl {
|
|
|
243
193
|
return this.client.sendOperationRequest(args, spec);
|
|
244
194
|
};
|
|
245
195
|
const sendOperationFn = async (args, spec) => {
|
|
246
|
-
var _a;
|
|
247
196
|
let currentRawResponse = undefined;
|
|
248
|
-
const providedCallback =
|
|
197
|
+
const providedCallback = args.options?.onResponse;
|
|
249
198
|
const callback = (rawResponse, flatResponse) => {
|
|
250
199
|
currentRawResponse = rawResponse;
|
|
251
|
-
providedCallback
|
|
200
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
201
|
+
};
|
|
202
|
+
const updatedArgs = {
|
|
203
|
+
...args,
|
|
204
|
+
options: {
|
|
205
|
+
...args.options,
|
|
206
|
+
onResponse: callback,
|
|
207
|
+
},
|
|
252
208
|
};
|
|
253
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
254
209
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
255
210
|
return {
|
|
256
211
|
flatResponse,
|
|
@@ -267,8 +222,8 @@ class RedisImpl {
|
|
|
267
222
|
spec: createOperationSpec,
|
|
268
223
|
});
|
|
269
224
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
270
|
-
restoreFrom: options
|
|
271
|
-
intervalInMs: options
|
|
225
|
+
restoreFrom: options?.resumeFrom,
|
|
226
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
272
227
|
});
|
|
273
228
|
await poller.poll();
|
|
274
229
|
return poller;
|
|
@@ -296,14 +251,19 @@ class RedisImpl {
|
|
|
296
251
|
return this.client.sendOperationRequest(args, spec);
|
|
297
252
|
};
|
|
298
253
|
const sendOperationFn = async (args, spec) => {
|
|
299
|
-
var _a;
|
|
300
254
|
let currentRawResponse = undefined;
|
|
301
|
-
const providedCallback =
|
|
255
|
+
const providedCallback = args.options?.onResponse;
|
|
302
256
|
const callback = (rawResponse, flatResponse) => {
|
|
303
257
|
currentRawResponse = rawResponse;
|
|
304
|
-
providedCallback
|
|
258
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
259
|
+
};
|
|
260
|
+
const updatedArgs = {
|
|
261
|
+
...args,
|
|
262
|
+
options: {
|
|
263
|
+
...args.options,
|
|
264
|
+
onResponse: callback,
|
|
265
|
+
},
|
|
305
266
|
};
|
|
306
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
307
267
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
308
268
|
return {
|
|
309
269
|
flatResponse,
|
|
@@ -320,8 +280,8 @@ class RedisImpl {
|
|
|
320
280
|
spec: updateOperationSpec,
|
|
321
281
|
});
|
|
322
282
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
323
|
-
restoreFrom: options
|
|
324
|
-
intervalInMs: options
|
|
283
|
+
restoreFrom: options?.resumeFrom,
|
|
284
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
325
285
|
});
|
|
326
286
|
await poller.poll();
|
|
327
287
|
return poller;
|
|
@@ -348,14 +308,19 @@ class RedisImpl {
|
|
|
348
308
|
return this.client.sendOperationRequest(args, spec);
|
|
349
309
|
};
|
|
350
310
|
const sendOperationFn = async (args, spec) => {
|
|
351
|
-
var _a;
|
|
352
311
|
let currentRawResponse = undefined;
|
|
353
|
-
const providedCallback =
|
|
312
|
+
const providedCallback = args.options?.onResponse;
|
|
354
313
|
const callback = (rawResponse, flatResponse) => {
|
|
355
314
|
currentRawResponse = rawResponse;
|
|
356
|
-
providedCallback
|
|
315
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
316
|
+
};
|
|
317
|
+
const updatedArgs = {
|
|
318
|
+
...args,
|
|
319
|
+
options: {
|
|
320
|
+
...args.options,
|
|
321
|
+
onResponse: callback,
|
|
322
|
+
},
|
|
357
323
|
};
|
|
358
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
359
324
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
360
325
|
return {
|
|
361
326
|
flatResponse,
|
|
@@ -372,8 +337,8 @@ class RedisImpl {
|
|
|
372
337
|
spec: deleteOperationSpec,
|
|
373
338
|
});
|
|
374
339
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
375
|
-
restoreFrom: options
|
|
376
|
-
intervalInMs: options
|
|
340
|
+
restoreFrom: options?.resumeFrom,
|
|
341
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
377
342
|
});
|
|
378
343
|
await poller.poll();
|
|
379
344
|
return poller;
|
|
@@ -456,14 +421,19 @@ class RedisImpl {
|
|
|
456
421
|
return this.client.sendOperationRequest(args, spec);
|
|
457
422
|
};
|
|
458
423
|
const sendOperationFn = async (args, spec) => {
|
|
459
|
-
var _a;
|
|
460
424
|
let currentRawResponse = undefined;
|
|
461
|
-
const providedCallback =
|
|
425
|
+
const providedCallback = args.options?.onResponse;
|
|
462
426
|
const callback = (rawResponse, flatResponse) => {
|
|
463
427
|
currentRawResponse = rawResponse;
|
|
464
|
-
providedCallback
|
|
428
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
429
|
+
};
|
|
430
|
+
const updatedArgs = {
|
|
431
|
+
...args,
|
|
432
|
+
options: {
|
|
433
|
+
...args.options,
|
|
434
|
+
onResponse: callback,
|
|
435
|
+
},
|
|
465
436
|
};
|
|
466
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
467
437
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
468
438
|
return {
|
|
469
439
|
flatResponse,
|
|
@@ -480,8 +450,8 @@ class RedisImpl {
|
|
|
480
450
|
spec: importDataOperationSpec,
|
|
481
451
|
});
|
|
482
452
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
483
|
-
restoreFrom: options
|
|
484
|
-
intervalInMs: options
|
|
453
|
+
restoreFrom: options?.resumeFrom,
|
|
454
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
485
455
|
});
|
|
486
456
|
await poller.poll();
|
|
487
457
|
return poller;
|
|
@@ -509,14 +479,19 @@ class RedisImpl {
|
|
|
509
479
|
return this.client.sendOperationRequest(args, spec);
|
|
510
480
|
};
|
|
511
481
|
const sendOperationFn = async (args, spec) => {
|
|
512
|
-
var _a;
|
|
513
482
|
let currentRawResponse = undefined;
|
|
514
|
-
const providedCallback =
|
|
483
|
+
const providedCallback = args.options?.onResponse;
|
|
515
484
|
const callback = (rawResponse, flatResponse) => {
|
|
516
485
|
currentRawResponse = rawResponse;
|
|
517
|
-
providedCallback
|
|
486
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
487
|
+
};
|
|
488
|
+
const updatedArgs = {
|
|
489
|
+
...args,
|
|
490
|
+
options: {
|
|
491
|
+
...args.options,
|
|
492
|
+
onResponse: callback,
|
|
493
|
+
},
|
|
518
494
|
};
|
|
519
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
520
495
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
521
496
|
return {
|
|
522
497
|
flatResponse,
|
|
@@ -533,8 +508,8 @@ class RedisImpl {
|
|
|
533
508
|
spec: exportDataOperationSpec,
|
|
534
509
|
});
|
|
535
510
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
536
|
-
restoreFrom: options
|
|
537
|
-
intervalInMs: options
|
|
511
|
+
restoreFrom: options?.resumeFrom,
|
|
512
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
538
513
|
});
|
|
539
514
|
await poller.poll();
|
|
540
515
|
return poller;
|
|
@@ -561,14 +536,19 @@ class RedisImpl {
|
|
|
561
536
|
return this.client.sendOperationRequest(args, spec);
|
|
562
537
|
};
|
|
563
538
|
const sendOperationFn = async (args, spec) => {
|
|
564
|
-
var _a;
|
|
565
539
|
let currentRawResponse = undefined;
|
|
566
|
-
const providedCallback =
|
|
540
|
+
const providedCallback = args.options?.onResponse;
|
|
567
541
|
const callback = (rawResponse, flatResponse) => {
|
|
568
542
|
currentRawResponse = rawResponse;
|
|
569
|
-
providedCallback
|
|
543
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
544
|
+
};
|
|
545
|
+
const updatedArgs = {
|
|
546
|
+
...args,
|
|
547
|
+
options: {
|
|
548
|
+
...args.options,
|
|
549
|
+
onResponse: callback,
|
|
550
|
+
},
|
|
570
551
|
};
|
|
571
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
572
552
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
573
553
|
return {
|
|
574
554
|
flatResponse,
|
|
@@ -585,8 +565,8 @@ class RedisImpl {
|
|
|
585
565
|
spec: flushCacheOperationSpec,
|
|
586
566
|
});
|
|
587
567
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
588
|
-
restoreFrom: options
|
|
589
|
-
intervalInMs: options
|
|
568
|
+
restoreFrom: options?.resumeFrom,
|
|
569
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
590
570
|
resourceLocationConfig: "location",
|
|
591
571
|
});
|
|
592
572
|
await poller.poll();
|