@azure/arm-storagecache 8.0.1-alpha.20250717.1 → 8.0.1-alpha.20250718.2
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 +88 -42
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/amlFilesystems.js +78 -97
- package/dist/browser/operations/amlFilesystems.js.map +1 -1
- package/dist/browser/operations/ascOperations.js +1 -0
- package/dist/browser/operations/ascOperations.js.map +1 -1
- package/dist/browser/operations/ascUsages.js +23 -40
- package/dist/browser/operations/ascUsages.js.map +1 -1
- package/dist/browser/operations/caches.js +188 -157
- package/dist/browser/operations/caches.js.map +1 -1
- package/dist/browser/operations/importJobs.js +56 -58
- package/dist/browser/operations/importJobs.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/skus.js +23 -40
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/storageTargetOperations.js +45 -24
- package/dist/browser/operations/storageTargetOperations.js.map +1 -1
- package/dist/browser/operations/storageTargets.js +67 -64
- package/dist/browser/operations/storageTargets.js.map +1 -1
- package/dist/browser/operations/usageModels.js +23 -40
- package/dist/browser/operations/usageModels.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storageCacheManagementClient.js +23 -5
- package/dist/browser/storageCacheManagementClient.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 +88 -42
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/amlFilesystems.js +78 -96
- package/dist/commonjs/operations/amlFilesystems.js.map +1 -1
- package/dist/commonjs/operations/ascOperations.js +1 -0
- package/dist/commonjs/operations/ascOperations.js.map +1 -1
- package/dist/commonjs/operations/ascUsages.js +23 -39
- package/dist/commonjs/operations/ascUsages.js.map +1 -1
- package/dist/commonjs/operations/caches.js +188 -156
- package/dist/commonjs/operations/caches.js.map +1 -1
- package/dist/commonjs/operations/importJobs.js +56 -57
- package/dist/commonjs/operations/importJobs.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/skus.js +23 -39
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/storageTargetOperations.js +45 -24
- package/dist/commonjs/operations/storageTargetOperations.js.map +1 -1
- package/dist/commonjs/operations/storageTargets.js +67 -63
- package/dist/commonjs/operations/storageTargets.js.map +1 -1
- package/dist/commonjs/operations/usageModels.js +23 -39
- package/dist/commonjs/operations/usageModels.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storageCacheManagementClient.js +23 -5
- package/dist/commonjs/storageCacheManagementClient.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 +88 -42
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/amlFilesystems.js +78 -97
- package/dist/esm/operations/amlFilesystems.js.map +1 -1
- package/dist/esm/operations/ascOperations.js +1 -0
- package/dist/esm/operations/ascOperations.js.map +1 -1
- package/dist/esm/operations/ascUsages.js +23 -40
- package/dist/esm/operations/ascUsages.js.map +1 -1
- package/dist/esm/operations/caches.js +188 -157
- package/dist/esm/operations/caches.js.map +1 -1
- package/dist/esm/operations/importJobs.js +56 -58
- package/dist/esm/operations/importJobs.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/skus.js +23 -40
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/storageTargetOperations.js +45 -24
- package/dist/esm/operations/storageTargetOperations.js.map +1 -1
- package/dist/esm/operations/storageTargets.js +67 -64
- package/dist/esm/operations/storageTargets.js.map +1 -1
- package/dist/esm/operations/usageModels.js +23 -40
- package/dist/esm/operations/usageModels.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storageCacheManagementClient.js +23 -5
- package/dist/esm/storageCacheManagementClient.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 +88 -42
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/amlFilesystems.js +78 -97
- package/dist/react-native/operations/amlFilesystems.js.map +1 -1
- package/dist/react-native/operations/ascOperations.js +1 -0
- package/dist/react-native/operations/ascOperations.js.map +1 -1
- package/dist/react-native/operations/ascUsages.js +23 -40
- package/dist/react-native/operations/ascUsages.js.map +1 -1
- package/dist/react-native/operations/caches.js +188 -157
- package/dist/react-native/operations/caches.js.map +1 -1
- package/dist/react-native/operations/importJobs.js +56 -58
- package/dist/react-native/operations/importJobs.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/skus.js +23 -40
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/storageTargetOperations.js +45 -24
- package/dist/react-native/operations/storageTargetOperations.js.map +1 -1
- package/dist/react-native/operations/storageTargets.js +67 -64
- package/dist/react-native/operations/storageTargets.js.map +1 -1
- package/dist/react-native/operations/usageModels.js +23 -40
- package/dist/react-native/operations/usageModels.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/storageCacheManagementClient.js +23 -5
- package/dist/react-native/storageCacheManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-storagecache-node.api.md +1647 -1647
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Caches operations. */
|
|
20
20
|
class CachesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Caches class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class CachesImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listPagingPage(options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listNext(continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listPagingAll(options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listPagingAll(options) {
|
|
69
|
+
for await (const page of this.listPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Returns all caches the user has access to under a resource group.
|
|
@@ -101,52 +85,35 @@ class CachesImpl {
|
|
|
101
85
|
return this;
|
|
102
86
|
},
|
|
103
87
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
105
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
90
|
}
|
|
107
91
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
108
92
|
},
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
130
112
|
}
|
|
131
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
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) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
113
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
114
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Returns all caches the user has access to under a subscription.
|
|
@@ -175,14 +142,19 @@ class CachesImpl {
|
|
|
175
142
|
return this.client.sendOperationRequest(args, spec);
|
|
176
143
|
};
|
|
177
144
|
const sendOperationFn = async (args, spec) => {
|
|
178
|
-
var _a;
|
|
179
145
|
let currentRawResponse = undefined;
|
|
180
|
-
const providedCallback =
|
|
146
|
+
const providedCallback = args.options?.onResponse;
|
|
181
147
|
const callback = (rawResponse, flatResponse) => {
|
|
182
148
|
currentRawResponse = rawResponse;
|
|
183
|
-
providedCallback
|
|
149
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
150
|
+
};
|
|
151
|
+
const updatedArgs = {
|
|
152
|
+
...args,
|
|
153
|
+
options: {
|
|
154
|
+
...args.options,
|
|
155
|
+
onResponse: callback,
|
|
156
|
+
},
|
|
184
157
|
};
|
|
185
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
186
158
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
187
159
|
return {
|
|
188
160
|
flatResponse,
|
|
@@ -199,8 +171,8 @@ class CachesImpl {
|
|
|
199
171
|
spec: deleteOperationSpec,
|
|
200
172
|
});
|
|
201
173
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
202
|
-
restoreFrom: options
|
|
203
|
-
intervalInMs: options
|
|
174
|
+
restoreFrom: options?.resumeFrom,
|
|
175
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
204
176
|
});
|
|
205
177
|
await poller.poll();
|
|
206
178
|
return poller;
|
|
@@ -240,14 +212,19 @@ class CachesImpl {
|
|
|
240
212
|
return this.client.sendOperationRequest(args, spec);
|
|
241
213
|
};
|
|
242
214
|
const sendOperationFn = async (args, spec) => {
|
|
243
|
-
var _a;
|
|
244
215
|
let currentRawResponse = undefined;
|
|
245
|
-
const providedCallback =
|
|
216
|
+
const providedCallback = args.options?.onResponse;
|
|
246
217
|
const callback = (rawResponse, flatResponse) => {
|
|
247
218
|
currentRawResponse = rawResponse;
|
|
248
|
-
providedCallback
|
|
219
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
220
|
+
};
|
|
221
|
+
const updatedArgs = {
|
|
222
|
+
...args,
|
|
223
|
+
options: {
|
|
224
|
+
...args.options,
|
|
225
|
+
onResponse: callback,
|
|
226
|
+
},
|
|
249
227
|
};
|
|
250
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
251
228
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
252
229
|
return {
|
|
253
230
|
flatResponse,
|
|
@@ -264,8 +241,8 @@ class CachesImpl {
|
|
|
264
241
|
spec: createOrUpdateOperationSpec,
|
|
265
242
|
});
|
|
266
243
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
267
|
-
restoreFrom: options
|
|
268
|
-
intervalInMs: options
|
|
244
|
+
restoreFrom: options?.resumeFrom,
|
|
245
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
269
246
|
});
|
|
270
247
|
await poller.poll();
|
|
271
248
|
return poller;
|
|
@@ -295,14 +272,19 @@ class CachesImpl {
|
|
|
295
272
|
return this.client.sendOperationRequest(args, spec);
|
|
296
273
|
};
|
|
297
274
|
const sendOperationFn = async (args, spec) => {
|
|
298
|
-
var _a;
|
|
299
275
|
let currentRawResponse = undefined;
|
|
300
|
-
const providedCallback =
|
|
276
|
+
const providedCallback = args.options?.onResponse;
|
|
301
277
|
const callback = (rawResponse, flatResponse) => {
|
|
302
278
|
currentRawResponse = rawResponse;
|
|
303
|
-
providedCallback
|
|
279
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
280
|
+
};
|
|
281
|
+
const updatedArgs = {
|
|
282
|
+
...args,
|
|
283
|
+
options: {
|
|
284
|
+
...args.options,
|
|
285
|
+
onResponse: callback,
|
|
286
|
+
},
|
|
304
287
|
};
|
|
305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
306
288
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
289
|
return {
|
|
308
290
|
flatResponse,
|
|
@@ -319,8 +301,8 @@ class CachesImpl {
|
|
|
319
301
|
spec: updateOperationSpec,
|
|
320
302
|
});
|
|
321
303
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
322
|
-
restoreFrom: options
|
|
323
|
-
intervalInMs: options
|
|
304
|
+
restoreFrom: options?.resumeFrom,
|
|
305
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
324
306
|
resourceLocationConfig: "azure-async-operation",
|
|
325
307
|
});
|
|
326
308
|
await poller.poll();
|
|
@@ -349,14 +331,19 @@ class CachesImpl {
|
|
|
349
331
|
return this.client.sendOperationRequest(args, spec);
|
|
350
332
|
};
|
|
351
333
|
const sendOperationFn = async (args, spec) => {
|
|
352
|
-
var _a;
|
|
353
334
|
let currentRawResponse = undefined;
|
|
354
|
-
const providedCallback =
|
|
335
|
+
const providedCallback = args.options?.onResponse;
|
|
355
336
|
const callback = (rawResponse, flatResponse) => {
|
|
356
337
|
currentRawResponse = rawResponse;
|
|
357
|
-
providedCallback
|
|
338
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
339
|
+
};
|
|
340
|
+
const updatedArgs = {
|
|
341
|
+
...args,
|
|
342
|
+
options: {
|
|
343
|
+
...args.options,
|
|
344
|
+
onResponse: callback,
|
|
345
|
+
},
|
|
358
346
|
};
|
|
359
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
347
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
361
348
|
return {
|
|
362
349
|
flatResponse,
|
|
@@ -373,8 +360,8 @@ class CachesImpl {
|
|
|
373
360
|
spec: debugInfoOperationSpec,
|
|
374
361
|
});
|
|
375
362
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
376
|
-
restoreFrom: options
|
|
377
|
-
intervalInMs: options
|
|
363
|
+
restoreFrom: options?.resumeFrom,
|
|
364
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
378
365
|
resourceLocationConfig: "azure-async-operation",
|
|
379
366
|
});
|
|
380
367
|
await poller.poll();
|
|
@@ -404,14 +391,19 @@ class CachesImpl {
|
|
|
404
391
|
return this.client.sendOperationRequest(args, spec);
|
|
405
392
|
};
|
|
406
393
|
const sendOperationFn = async (args, spec) => {
|
|
407
|
-
var _a;
|
|
408
394
|
let currentRawResponse = undefined;
|
|
409
|
-
const providedCallback =
|
|
395
|
+
const providedCallback = args.options?.onResponse;
|
|
410
396
|
const callback = (rawResponse, flatResponse) => {
|
|
411
397
|
currentRawResponse = rawResponse;
|
|
412
|
-
providedCallback
|
|
398
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
399
|
+
};
|
|
400
|
+
const updatedArgs = {
|
|
401
|
+
...args,
|
|
402
|
+
options: {
|
|
403
|
+
...args.options,
|
|
404
|
+
onResponse: callback,
|
|
405
|
+
},
|
|
413
406
|
};
|
|
414
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
415
407
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
416
408
|
return {
|
|
417
409
|
flatResponse,
|
|
@@ -428,8 +420,8 @@ class CachesImpl {
|
|
|
428
420
|
spec: flushOperationSpec,
|
|
429
421
|
});
|
|
430
422
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
431
|
-
restoreFrom: options
|
|
432
|
-
intervalInMs: options
|
|
423
|
+
restoreFrom: options?.resumeFrom,
|
|
424
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
433
425
|
resourceLocationConfig: "azure-async-operation",
|
|
434
426
|
});
|
|
435
427
|
await poller.poll();
|
|
@@ -459,14 +451,19 @@ class CachesImpl {
|
|
|
459
451
|
return this.client.sendOperationRequest(args, spec);
|
|
460
452
|
};
|
|
461
453
|
const sendOperationFn = async (args, spec) => {
|
|
462
|
-
var _a;
|
|
463
454
|
let currentRawResponse = undefined;
|
|
464
|
-
const providedCallback =
|
|
455
|
+
const providedCallback = args.options?.onResponse;
|
|
465
456
|
const callback = (rawResponse, flatResponse) => {
|
|
466
457
|
currentRawResponse = rawResponse;
|
|
467
|
-
providedCallback
|
|
458
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
459
|
+
};
|
|
460
|
+
const updatedArgs = {
|
|
461
|
+
...args,
|
|
462
|
+
options: {
|
|
463
|
+
...args.options,
|
|
464
|
+
onResponse: callback,
|
|
465
|
+
},
|
|
468
466
|
};
|
|
469
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
470
467
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
471
468
|
return {
|
|
472
469
|
flatResponse,
|
|
@@ -483,8 +480,8 @@ class CachesImpl {
|
|
|
483
480
|
spec: startOperationSpec,
|
|
484
481
|
});
|
|
485
482
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
486
|
-
restoreFrom: options
|
|
487
|
-
intervalInMs: options
|
|
483
|
+
restoreFrom: options?.resumeFrom,
|
|
484
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
488
485
|
resourceLocationConfig: "azure-async-operation",
|
|
489
486
|
});
|
|
490
487
|
await poller.poll();
|
|
@@ -513,14 +510,19 @@ class CachesImpl {
|
|
|
513
510
|
return this.client.sendOperationRequest(args, spec);
|
|
514
511
|
};
|
|
515
512
|
const sendOperationFn = async (args, spec) => {
|
|
516
|
-
var _a;
|
|
517
513
|
let currentRawResponse = undefined;
|
|
518
|
-
const providedCallback =
|
|
514
|
+
const providedCallback = args.options?.onResponse;
|
|
519
515
|
const callback = (rawResponse, flatResponse) => {
|
|
520
516
|
currentRawResponse = rawResponse;
|
|
521
|
-
providedCallback
|
|
517
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
518
|
+
};
|
|
519
|
+
const updatedArgs = {
|
|
520
|
+
...args,
|
|
521
|
+
options: {
|
|
522
|
+
...args.options,
|
|
523
|
+
onResponse: callback,
|
|
524
|
+
},
|
|
522
525
|
};
|
|
523
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
524
526
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
525
527
|
return {
|
|
526
528
|
flatResponse,
|
|
@@ -537,8 +539,8 @@ class CachesImpl {
|
|
|
537
539
|
spec: stopOperationSpec,
|
|
538
540
|
});
|
|
539
541
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
540
|
-
restoreFrom: options
|
|
541
|
-
intervalInMs: options
|
|
542
|
+
restoreFrom: options?.resumeFrom,
|
|
543
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
542
544
|
resourceLocationConfig: "azure-async-operation",
|
|
543
545
|
});
|
|
544
546
|
await poller.poll();
|
|
@@ -567,14 +569,19 @@ class CachesImpl {
|
|
|
567
569
|
return this.client.sendOperationRequest(args, spec);
|
|
568
570
|
};
|
|
569
571
|
const sendOperationFn = async (args, spec) => {
|
|
570
|
-
var _a;
|
|
571
572
|
let currentRawResponse = undefined;
|
|
572
|
-
const providedCallback =
|
|
573
|
+
const providedCallback = args.options?.onResponse;
|
|
573
574
|
const callback = (rawResponse, flatResponse) => {
|
|
574
575
|
currentRawResponse = rawResponse;
|
|
575
|
-
providedCallback
|
|
576
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
577
|
+
};
|
|
578
|
+
const updatedArgs = {
|
|
579
|
+
...args,
|
|
580
|
+
options: {
|
|
581
|
+
...args.options,
|
|
582
|
+
onResponse: callback,
|
|
583
|
+
},
|
|
576
584
|
};
|
|
577
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
578
585
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
579
586
|
return {
|
|
580
587
|
flatResponse,
|
|
@@ -591,8 +598,8 @@ class CachesImpl {
|
|
|
591
598
|
spec: startPrimingJobOperationSpec,
|
|
592
599
|
});
|
|
593
600
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
594
|
-
restoreFrom: options
|
|
595
|
-
intervalInMs: options
|
|
601
|
+
restoreFrom: options?.resumeFrom,
|
|
602
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
596
603
|
resourceLocationConfig: "azure-async-operation",
|
|
597
604
|
});
|
|
598
605
|
await poller.poll();
|
|
@@ -621,14 +628,19 @@ class CachesImpl {
|
|
|
621
628
|
return this.client.sendOperationRequest(args, spec);
|
|
622
629
|
};
|
|
623
630
|
const sendOperationFn = async (args, spec) => {
|
|
624
|
-
var _a;
|
|
625
631
|
let currentRawResponse = undefined;
|
|
626
|
-
const providedCallback =
|
|
632
|
+
const providedCallback = args.options?.onResponse;
|
|
627
633
|
const callback = (rawResponse, flatResponse) => {
|
|
628
634
|
currentRawResponse = rawResponse;
|
|
629
|
-
providedCallback
|
|
635
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
636
|
+
};
|
|
637
|
+
const updatedArgs = {
|
|
638
|
+
...args,
|
|
639
|
+
options: {
|
|
640
|
+
...args.options,
|
|
641
|
+
onResponse: callback,
|
|
642
|
+
},
|
|
630
643
|
};
|
|
631
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
632
644
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
633
645
|
return {
|
|
634
646
|
flatResponse,
|
|
@@ -645,8 +657,8 @@ class CachesImpl {
|
|
|
645
657
|
spec: stopPrimingJobOperationSpec,
|
|
646
658
|
});
|
|
647
659
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
648
|
-
restoreFrom: options
|
|
649
|
-
intervalInMs: options
|
|
660
|
+
restoreFrom: options?.resumeFrom,
|
|
661
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
650
662
|
resourceLocationConfig: "azure-async-operation",
|
|
651
663
|
});
|
|
652
664
|
await poller.poll();
|
|
@@ -675,14 +687,19 @@ class CachesImpl {
|
|
|
675
687
|
return this.client.sendOperationRequest(args, spec);
|
|
676
688
|
};
|
|
677
689
|
const sendOperationFn = async (args, spec) => {
|
|
678
|
-
var _a;
|
|
679
690
|
let currentRawResponse = undefined;
|
|
680
|
-
const providedCallback =
|
|
691
|
+
const providedCallback = args.options?.onResponse;
|
|
681
692
|
const callback = (rawResponse, flatResponse) => {
|
|
682
693
|
currentRawResponse = rawResponse;
|
|
683
|
-
providedCallback
|
|
694
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
695
|
+
};
|
|
696
|
+
const updatedArgs = {
|
|
697
|
+
...args,
|
|
698
|
+
options: {
|
|
699
|
+
...args.options,
|
|
700
|
+
onResponse: callback,
|
|
701
|
+
},
|
|
684
702
|
};
|
|
685
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
686
703
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
687
704
|
return {
|
|
688
705
|
flatResponse,
|
|
@@ -699,8 +716,8 @@ class CachesImpl {
|
|
|
699
716
|
spec: pausePrimingJobOperationSpec,
|
|
700
717
|
});
|
|
701
718
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
702
|
-
restoreFrom: options
|
|
703
|
-
intervalInMs: options
|
|
719
|
+
restoreFrom: options?.resumeFrom,
|
|
720
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
704
721
|
resourceLocationConfig: "azure-async-operation",
|
|
705
722
|
});
|
|
706
723
|
await poller.poll();
|
|
@@ -729,14 +746,19 @@ class CachesImpl {
|
|
|
729
746
|
return this.client.sendOperationRequest(args, spec);
|
|
730
747
|
};
|
|
731
748
|
const sendOperationFn = async (args, spec) => {
|
|
732
|
-
var _a;
|
|
733
749
|
let currentRawResponse = undefined;
|
|
734
|
-
const providedCallback =
|
|
750
|
+
const providedCallback = args.options?.onResponse;
|
|
735
751
|
const callback = (rawResponse, flatResponse) => {
|
|
736
752
|
currentRawResponse = rawResponse;
|
|
737
|
-
providedCallback
|
|
753
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
754
|
+
};
|
|
755
|
+
const updatedArgs = {
|
|
756
|
+
...args,
|
|
757
|
+
options: {
|
|
758
|
+
...args.options,
|
|
759
|
+
onResponse: callback,
|
|
760
|
+
},
|
|
738
761
|
};
|
|
739
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
740
762
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
741
763
|
return {
|
|
742
764
|
flatResponse,
|
|
@@ -753,8 +775,8 @@ class CachesImpl {
|
|
|
753
775
|
spec: resumePrimingJobOperationSpec,
|
|
754
776
|
});
|
|
755
777
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
756
|
-
restoreFrom: options
|
|
757
|
-
intervalInMs: options
|
|
778
|
+
restoreFrom: options?.resumeFrom,
|
|
779
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
758
780
|
resourceLocationConfig: "azure-async-operation",
|
|
759
781
|
});
|
|
760
782
|
await poller.poll();
|
|
@@ -783,14 +805,19 @@ class CachesImpl {
|
|
|
783
805
|
return this.client.sendOperationRequest(args, spec);
|
|
784
806
|
};
|
|
785
807
|
const sendOperationFn = async (args, spec) => {
|
|
786
|
-
var _a;
|
|
787
808
|
let currentRawResponse = undefined;
|
|
788
|
-
const providedCallback =
|
|
809
|
+
const providedCallback = args.options?.onResponse;
|
|
789
810
|
const callback = (rawResponse, flatResponse) => {
|
|
790
811
|
currentRawResponse = rawResponse;
|
|
791
|
-
providedCallback
|
|
812
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
813
|
+
};
|
|
814
|
+
const updatedArgs = {
|
|
815
|
+
...args,
|
|
816
|
+
options: {
|
|
817
|
+
...args.options,
|
|
818
|
+
onResponse: callback,
|
|
819
|
+
},
|
|
792
820
|
};
|
|
793
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
794
821
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
795
822
|
return {
|
|
796
823
|
flatResponse,
|
|
@@ -807,8 +834,8 @@ class CachesImpl {
|
|
|
807
834
|
spec: upgradeFirmwareOperationSpec,
|
|
808
835
|
});
|
|
809
836
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
810
|
-
restoreFrom: options
|
|
811
|
-
intervalInMs: options
|
|
837
|
+
restoreFrom: options?.resumeFrom,
|
|
838
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
812
839
|
resourceLocationConfig: "azure-async-operation",
|
|
813
840
|
});
|
|
814
841
|
await poller.poll();
|
|
@@ -837,14 +864,19 @@ class CachesImpl {
|
|
|
837
864
|
return this.client.sendOperationRequest(args, spec);
|
|
838
865
|
};
|
|
839
866
|
const sendOperationFn = async (args, spec) => {
|
|
840
|
-
var _a;
|
|
841
867
|
let currentRawResponse = undefined;
|
|
842
|
-
const providedCallback =
|
|
868
|
+
const providedCallback = args.options?.onResponse;
|
|
843
869
|
const callback = (rawResponse, flatResponse) => {
|
|
844
870
|
currentRawResponse = rawResponse;
|
|
845
|
-
providedCallback
|
|
871
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
872
|
+
};
|
|
873
|
+
const updatedArgs = {
|
|
874
|
+
...args,
|
|
875
|
+
options: {
|
|
876
|
+
...args.options,
|
|
877
|
+
onResponse: callback,
|
|
878
|
+
},
|
|
846
879
|
};
|
|
847
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
848
880
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
849
881
|
return {
|
|
850
882
|
flatResponse,
|
|
@@ -861,8 +893,8 @@ class CachesImpl {
|
|
|
861
893
|
spec: spaceAllocationOperationSpec,
|
|
862
894
|
});
|
|
863
895
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
864
|
-
restoreFrom: options
|
|
865
|
-
intervalInMs: options
|
|
896
|
+
restoreFrom: options?.resumeFrom,
|
|
897
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
866
898
|
resourceLocationConfig: "azure-async-operation",
|
|
867
899
|
});
|
|
868
900
|
await poller.poll();
|