@azure/arm-azurestackhci 4.0.0-alpha.20250718.1 → 4.0.0-alpha.20250721.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/azureStackHCIClient.js +26 -5
- package/dist/browser/azureStackHCIClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +313 -148
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/arcSettings.js +56 -58
- package/dist/browser/operations/arcSettings.js.map +1 -1
- package/dist/browser/operations/clusters.js +111 -115
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/deploymentSettings.js +45 -52
- package/dist/browser/operations/deploymentSettings.js.map +1 -1
- package/dist/browser/operations/edgeDevices.js +56 -58
- package/dist/browser/operations/edgeDevices.js.map +1 -1
- package/dist/browser/operations/extensions.js +67 -64
- package/dist/browser/operations/extensions.js.map +1 -1
- package/dist/browser/operations/offers.js +45 -79
- package/dist/browser/operations/offers.js.map +1 -1
- package/dist/browser/operations/operations.js +1 -0
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/publishers.js +23 -40
- package/dist/browser/operations/publishers.js.map +1 -1
- package/dist/browser/operations/securitySettings.js +45 -52
- package/dist/browser/operations/securitySettings.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/updateRuns.js +34 -46
- package/dist/browser/operations/updateRuns.js.map +1 -1
- package/dist/browser/operations/updateSummariesOperations.js +34 -46
- package/dist/browser/operations/updateSummariesOperations.js.map +1 -1
- package/dist/browser/operations/updates.js +45 -52
- package/dist/browser/operations/updates.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/azureStackHCIClient.js +26 -5
- package/dist/commonjs/azureStackHCIClient.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 +313 -148
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/arcSettings.js +56 -57
- package/dist/commonjs/operations/arcSettings.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +111 -114
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/deploymentSettings.js +45 -51
- package/dist/commonjs/operations/deploymentSettings.js.map +1 -1
- package/dist/commonjs/operations/edgeDevices.js +56 -57
- package/dist/commonjs/operations/edgeDevices.js.map +1 -1
- package/dist/commonjs/operations/extensions.js +67 -63
- package/dist/commonjs/operations/extensions.js.map +1 -1
- package/dist/commonjs/operations/offers.js +45 -78
- package/dist/commonjs/operations/offers.js.map +1 -1
- package/dist/commonjs/operations/operations.js +1 -0
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/publishers.js +23 -39
- package/dist/commonjs/operations/publishers.js.map +1 -1
- package/dist/commonjs/operations/securitySettings.js +45 -51
- package/dist/commonjs/operations/securitySettings.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/updateRuns.js +34 -45
- package/dist/commonjs/operations/updateRuns.js.map +1 -1
- package/dist/commonjs/operations/updateSummariesOperations.js +34 -45
- package/dist/commonjs/operations/updateSummariesOperations.js.map +1 -1
- package/dist/commonjs/operations/updates.js +45 -51
- package/dist/commonjs/operations/updates.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/azureStackHCIClient.js +26 -5
- package/dist/esm/azureStackHCIClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +313 -148
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/arcSettings.js +56 -58
- package/dist/esm/operations/arcSettings.js.map +1 -1
- package/dist/esm/operations/clusters.js +111 -115
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/deploymentSettings.js +45 -52
- package/dist/esm/operations/deploymentSettings.js.map +1 -1
- package/dist/esm/operations/edgeDevices.js +56 -58
- package/dist/esm/operations/edgeDevices.js.map +1 -1
- package/dist/esm/operations/extensions.js +67 -64
- package/dist/esm/operations/extensions.js.map +1 -1
- package/dist/esm/operations/offers.js +45 -79
- package/dist/esm/operations/offers.js.map +1 -1
- package/dist/esm/operations/operations.js +1 -0
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/publishers.js +23 -40
- package/dist/esm/operations/publishers.js.map +1 -1
- package/dist/esm/operations/securitySettings.js +45 -52
- package/dist/esm/operations/securitySettings.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/updateRuns.js +34 -46
- package/dist/esm/operations/updateRuns.js.map +1 -1
- package/dist/esm/operations/updateSummariesOperations.js +34 -46
- package/dist/esm/operations/updateSummariesOperations.js.map +1 -1
- package/dist/esm/operations/updates.js +45 -52
- package/dist/esm/operations/updates.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/azureStackHCIClient.js +26 -5
- package/dist/react-native/azureStackHCIClient.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 +313 -148
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/arcSettings.js +56 -58
- package/dist/react-native/operations/arcSettings.js.map +1 -1
- package/dist/react-native/operations/clusters.js +111 -115
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/deploymentSettings.js +45 -52
- package/dist/react-native/operations/deploymentSettings.js.map +1 -1
- package/dist/react-native/operations/edgeDevices.js +56 -58
- package/dist/react-native/operations/edgeDevices.js.map +1 -1
- package/dist/react-native/operations/extensions.js +67 -64
- package/dist/react-native/operations/extensions.js.map +1 -1
- package/dist/react-native/operations/offers.js +45 -79
- package/dist/react-native/operations/offers.js.map +1 -1
- package/dist/react-native/operations/operations.js +1 -0
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/publishers.js +23 -40
- package/dist/react-native/operations/publishers.js.map +1 -1
- package/dist/react-native/operations/securitySettings.js +45 -52
- package/dist/react-native/operations/securitySettings.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/updateRuns.js +34 -46
- package/dist/react-native/operations/updateRuns.js.map +1 -1
- package/dist/react-native/operations/updateSummariesOperations.js +34 -46
- package/dist/react-native/operations/updateSummariesOperations.js.map +1 -1
- package/dist/react-native/operations/updates.js +45 -52
- package/dist/react-native/operations/updates.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-azurestackhci-node.api.md +2416 -2416
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Clusters operations. */
|
|
20
20
|
class ClustersImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Clusters class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class ClustersImpl {
|
|
|
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.listBySubscriptionPagingPage(options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listBySubscription(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._listBySubscriptionNext(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
|
-
listBySubscriptionPagingAll(options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
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) {
|
|
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 *listBySubscriptionPagingAll(options) {
|
|
69
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* List all HCI clusters in a resource group.
|
|
@@ -101,52 +85,35 @@ class ClustersImpl {
|
|
|
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
|
* List all HCI clusters in a subscription.
|
|
@@ -203,14 +170,19 @@ class ClustersImpl {
|
|
|
203
170
|
return this.client.sendOperationRequest(args, spec);
|
|
204
171
|
};
|
|
205
172
|
const sendOperationFn = async (args, spec) => {
|
|
206
|
-
var _a;
|
|
207
173
|
let currentRawResponse = undefined;
|
|
208
|
-
const providedCallback =
|
|
174
|
+
const providedCallback = args.options?.onResponse;
|
|
209
175
|
const callback = (rawResponse, flatResponse) => {
|
|
210
176
|
currentRawResponse = rawResponse;
|
|
211
|
-
providedCallback
|
|
177
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
178
|
+
};
|
|
179
|
+
const updatedArgs = {
|
|
180
|
+
...args,
|
|
181
|
+
options: {
|
|
182
|
+
...args.options,
|
|
183
|
+
onResponse: callback,
|
|
184
|
+
},
|
|
212
185
|
};
|
|
213
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
214
186
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
215
187
|
return {
|
|
216
188
|
flatResponse,
|
|
@@ -227,8 +199,8 @@ class ClustersImpl {
|
|
|
227
199
|
spec: deleteOperationSpec,
|
|
228
200
|
});
|
|
229
201
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
230
|
-
restoreFrom: options
|
|
231
|
-
intervalInMs: options
|
|
202
|
+
restoreFrom: options?.resumeFrom,
|
|
203
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
232
204
|
});
|
|
233
205
|
await poller.poll();
|
|
234
206
|
return poller;
|
|
@@ -255,14 +227,19 @@ class ClustersImpl {
|
|
|
255
227
|
return this.client.sendOperationRequest(args, spec);
|
|
256
228
|
};
|
|
257
229
|
const sendOperationFn = async (args, spec) => {
|
|
258
|
-
var _a;
|
|
259
230
|
let currentRawResponse = undefined;
|
|
260
|
-
const providedCallback =
|
|
231
|
+
const providedCallback = args.options?.onResponse;
|
|
261
232
|
const callback = (rawResponse, flatResponse) => {
|
|
262
233
|
currentRawResponse = rawResponse;
|
|
263
|
-
providedCallback
|
|
234
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
235
|
+
};
|
|
236
|
+
const updatedArgs = {
|
|
237
|
+
...args,
|
|
238
|
+
options: {
|
|
239
|
+
...args.options,
|
|
240
|
+
onResponse: callback,
|
|
241
|
+
},
|
|
264
242
|
};
|
|
265
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
266
243
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
267
244
|
return {
|
|
268
245
|
flatResponse,
|
|
@@ -284,8 +261,8 @@ class ClustersImpl {
|
|
|
284
261
|
spec: uploadCertificateOperationSpec,
|
|
285
262
|
});
|
|
286
263
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
287
|
-
restoreFrom: options
|
|
288
|
-
intervalInMs: options
|
|
264
|
+
restoreFrom: options?.resumeFrom,
|
|
265
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
289
266
|
resourceLocationConfig: "azure-async-operation",
|
|
290
267
|
});
|
|
291
268
|
await poller.poll();
|
|
@@ -313,14 +290,19 @@ class ClustersImpl {
|
|
|
313
290
|
return this.client.sendOperationRequest(args, spec);
|
|
314
291
|
};
|
|
315
292
|
const sendOperationFn = async (args, spec) => {
|
|
316
|
-
var _a;
|
|
317
293
|
let currentRawResponse = undefined;
|
|
318
|
-
const providedCallback =
|
|
294
|
+
const providedCallback = args.options?.onResponse;
|
|
319
295
|
const callback = (rawResponse, flatResponse) => {
|
|
320
296
|
currentRawResponse = rawResponse;
|
|
321
|
-
providedCallback
|
|
297
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
298
|
+
};
|
|
299
|
+
const updatedArgs = {
|
|
300
|
+
...args,
|
|
301
|
+
options: {
|
|
302
|
+
...args.options,
|
|
303
|
+
onResponse: callback,
|
|
304
|
+
},
|
|
322
305
|
};
|
|
323
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
324
306
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
325
307
|
return {
|
|
326
308
|
flatResponse,
|
|
@@ -337,8 +319,8 @@ class ClustersImpl {
|
|
|
337
319
|
spec: createIdentityOperationSpec,
|
|
338
320
|
});
|
|
339
321
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
340
|
-
restoreFrom: options
|
|
341
|
-
intervalInMs: options
|
|
322
|
+
restoreFrom: options?.resumeFrom,
|
|
323
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
342
324
|
resourceLocationConfig: "azure-async-operation",
|
|
343
325
|
});
|
|
344
326
|
await poller.poll();
|
|
@@ -366,14 +348,19 @@ class ClustersImpl {
|
|
|
366
348
|
return this.client.sendOperationRequest(args, spec);
|
|
367
349
|
};
|
|
368
350
|
const sendOperationFn = async (args, spec) => {
|
|
369
|
-
var _a;
|
|
370
351
|
let currentRawResponse = undefined;
|
|
371
|
-
const providedCallback =
|
|
352
|
+
const providedCallback = args.options?.onResponse;
|
|
372
353
|
const callback = (rawResponse, flatResponse) => {
|
|
373
354
|
currentRawResponse = rawResponse;
|
|
374
|
-
providedCallback
|
|
355
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
356
|
+
};
|
|
357
|
+
const updatedArgs = {
|
|
358
|
+
...args,
|
|
359
|
+
options: {
|
|
360
|
+
...args.options,
|
|
361
|
+
onResponse: callback,
|
|
362
|
+
},
|
|
375
363
|
};
|
|
376
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
377
364
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
378
365
|
return {
|
|
379
366
|
flatResponse,
|
|
@@ -395,8 +382,8 @@ class ClustersImpl {
|
|
|
395
382
|
spec: extendSoftwareAssuranceBenefitOperationSpec,
|
|
396
383
|
});
|
|
397
384
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
398
|
-
restoreFrom: options
|
|
399
|
-
intervalInMs: options
|
|
385
|
+
restoreFrom: options?.resumeFrom,
|
|
386
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
400
387
|
resourceLocationConfig: "location",
|
|
401
388
|
});
|
|
402
389
|
await poller.poll();
|
|
@@ -425,14 +412,19 @@ class ClustersImpl {
|
|
|
425
412
|
return this.client.sendOperationRequest(args, spec);
|
|
426
413
|
};
|
|
427
414
|
const sendOperationFn = async (args, spec) => {
|
|
428
|
-
var _a;
|
|
429
415
|
let currentRawResponse = undefined;
|
|
430
|
-
const providedCallback =
|
|
416
|
+
const providedCallback = args.options?.onResponse;
|
|
431
417
|
const callback = (rawResponse, flatResponse) => {
|
|
432
418
|
currentRawResponse = rawResponse;
|
|
433
|
-
providedCallback
|
|
419
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
420
|
+
};
|
|
421
|
+
const updatedArgs = {
|
|
422
|
+
...args,
|
|
423
|
+
options: {
|
|
424
|
+
...args.options,
|
|
425
|
+
onResponse: callback,
|
|
426
|
+
},
|
|
434
427
|
};
|
|
435
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
436
428
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
437
429
|
return {
|
|
438
430
|
flatResponse,
|
|
@@ -449,8 +441,8 @@ class ClustersImpl {
|
|
|
449
441
|
spec: triggerLogCollectionOperationSpec,
|
|
450
442
|
});
|
|
451
443
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
452
|
-
restoreFrom: options
|
|
453
|
-
intervalInMs: options
|
|
444
|
+
restoreFrom: options?.resumeFrom,
|
|
445
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
454
446
|
resourceLocationConfig: "location",
|
|
455
447
|
});
|
|
456
448
|
await poller.poll();
|
|
@@ -479,14 +471,19 @@ class ClustersImpl {
|
|
|
479
471
|
return this.client.sendOperationRequest(args, spec);
|
|
480
472
|
};
|
|
481
473
|
const sendOperationFn = async (args, spec) => {
|
|
482
|
-
var _a;
|
|
483
474
|
let currentRawResponse = undefined;
|
|
484
|
-
const providedCallback =
|
|
475
|
+
const providedCallback = args.options?.onResponse;
|
|
485
476
|
const callback = (rawResponse, flatResponse) => {
|
|
486
477
|
currentRawResponse = rawResponse;
|
|
487
|
-
providedCallback
|
|
478
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
479
|
+
};
|
|
480
|
+
const updatedArgs = {
|
|
481
|
+
...args,
|
|
482
|
+
options: {
|
|
483
|
+
...args.options,
|
|
484
|
+
onResponse: callback,
|
|
485
|
+
},
|
|
488
486
|
};
|
|
489
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
490
487
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
491
488
|
return {
|
|
492
489
|
flatResponse,
|
|
@@ -503,8 +500,8 @@ class ClustersImpl {
|
|
|
503
500
|
spec: configureRemoteSupportOperationSpec,
|
|
504
501
|
});
|
|
505
502
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
506
|
-
restoreFrom: options
|
|
507
|
-
intervalInMs: options
|
|
503
|
+
restoreFrom: options?.resumeFrom,
|
|
504
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
508
505
|
resourceLocationConfig: "location",
|
|
509
506
|
});
|
|
510
507
|
await poller.poll();
|