@azure/arm-azurestackhci 4.0.0-alpha.20250718.1 → 4.0.0-alpha.20250730.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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Clusters operations. */
|
|
17
16
|
export class ClustersImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Clusters class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class ClustersImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listBySubscription(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listBySubscriptionPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listBySubscriptionPagingAll(options) {
|
|
65
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List all HCI clusters in a resource group.
|
|
@@ -98,52 +81,35 @@ export class ClustersImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* List all HCI clusters in a subscription.
|
|
@@ -200,14 +166,19 @@ export class ClustersImpl {
|
|
|
200
166
|
return this.client.sendOperationRequest(args, spec);
|
|
201
167
|
};
|
|
202
168
|
const sendOperationFn = async (args, spec) => {
|
|
203
|
-
var _a;
|
|
204
169
|
let currentRawResponse = undefined;
|
|
205
|
-
const providedCallback =
|
|
170
|
+
const providedCallback = args.options?.onResponse;
|
|
206
171
|
const callback = (rawResponse, flatResponse) => {
|
|
207
172
|
currentRawResponse = rawResponse;
|
|
208
|
-
providedCallback
|
|
173
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
174
|
+
};
|
|
175
|
+
const updatedArgs = {
|
|
176
|
+
...args,
|
|
177
|
+
options: {
|
|
178
|
+
...args.options,
|
|
179
|
+
onResponse: callback,
|
|
180
|
+
},
|
|
209
181
|
};
|
|
210
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
211
182
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
212
183
|
return {
|
|
213
184
|
flatResponse,
|
|
@@ -224,8 +195,8 @@ export class ClustersImpl {
|
|
|
224
195
|
spec: deleteOperationSpec,
|
|
225
196
|
});
|
|
226
197
|
const poller = await createHttpPoller(lro, {
|
|
227
|
-
restoreFrom: options
|
|
228
|
-
intervalInMs: options
|
|
198
|
+
restoreFrom: options?.resumeFrom,
|
|
199
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
229
200
|
});
|
|
230
201
|
await poller.poll();
|
|
231
202
|
return poller;
|
|
@@ -252,14 +223,19 @@ export class ClustersImpl {
|
|
|
252
223
|
return this.client.sendOperationRequest(args, spec);
|
|
253
224
|
};
|
|
254
225
|
const sendOperationFn = async (args, spec) => {
|
|
255
|
-
var _a;
|
|
256
226
|
let currentRawResponse = undefined;
|
|
257
|
-
const providedCallback =
|
|
227
|
+
const providedCallback = args.options?.onResponse;
|
|
258
228
|
const callback = (rawResponse, flatResponse) => {
|
|
259
229
|
currentRawResponse = rawResponse;
|
|
260
|
-
providedCallback
|
|
230
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
231
|
+
};
|
|
232
|
+
const updatedArgs = {
|
|
233
|
+
...args,
|
|
234
|
+
options: {
|
|
235
|
+
...args.options,
|
|
236
|
+
onResponse: callback,
|
|
237
|
+
},
|
|
261
238
|
};
|
|
262
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
263
239
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
264
240
|
return {
|
|
265
241
|
flatResponse,
|
|
@@ -281,8 +257,8 @@ export class ClustersImpl {
|
|
|
281
257
|
spec: uploadCertificateOperationSpec,
|
|
282
258
|
});
|
|
283
259
|
const poller = await createHttpPoller(lro, {
|
|
284
|
-
restoreFrom: options
|
|
285
|
-
intervalInMs: options
|
|
260
|
+
restoreFrom: options?.resumeFrom,
|
|
261
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
286
262
|
resourceLocationConfig: "azure-async-operation",
|
|
287
263
|
});
|
|
288
264
|
await poller.poll();
|
|
@@ -310,14 +286,19 @@ export class ClustersImpl {
|
|
|
310
286
|
return this.client.sendOperationRequest(args, spec);
|
|
311
287
|
};
|
|
312
288
|
const sendOperationFn = async (args, spec) => {
|
|
313
|
-
var _a;
|
|
314
289
|
let currentRawResponse = undefined;
|
|
315
|
-
const providedCallback =
|
|
290
|
+
const providedCallback = args.options?.onResponse;
|
|
316
291
|
const callback = (rawResponse, flatResponse) => {
|
|
317
292
|
currentRawResponse = rawResponse;
|
|
318
|
-
providedCallback
|
|
293
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
294
|
+
};
|
|
295
|
+
const updatedArgs = {
|
|
296
|
+
...args,
|
|
297
|
+
options: {
|
|
298
|
+
...args.options,
|
|
299
|
+
onResponse: callback,
|
|
300
|
+
},
|
|
319
301
|
};
|
|
320
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
321
302
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
322
303
|
return {
|
|
323
304
|
flatResponse,
|
|
@@ -334,8 +315,8 @@ export class ClustersImpl {
|
|
|
334
315
|
spec: createIdentityOperationSpec,
|
|
335
316
|
});
|
|
336
317
|
const poller = await createHttpPoller(lro, {
|
|
337
|
-
restoreFrom: options
|
|
338
|
-
intervalInMs: options
|
|
318
|
+
restoreFrom: options?.resumeFrom,
|
|
319
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
339
320
|
resourceLocationConfig: "azure-async-operation",
|
|
340
321
|
});
|
|
341
322
|
await poller.poll();
|
|
@@ -363,14 +344,19 @@ export class ClustersImpl {
|
|
|
363
344
|
return this.client.sendOperationRequest(args, spec);
|
|
364
345
|
};
|
|
365
346
|
const sendOperationFn = async (args, spec) => {
|
|
366
|
-
var _a;
|
|
367
347
|
let currentRawResponse = undefined;
|
|
368
|
-
const providedCallback =
|
|
348
|
+
const providedCallback = args.options?.onResponse;
|
|
369
349
|
const callback = (rawResponse, flatResponse) => {
|
|
370
350
|
currentRawResponse = rawResponse;
|
|
371
|
-
providedCallback
|
|
351
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
352
|
+
};
|
|
353
|
+
const updatedArgs = {
|
|
354
|
+
...args,
|
|
355
|
+
options: {
|
|
356
|
+
...args.options,
|
|
357
|
+
onResponse: callback,
|
|
358
|
+
},
|
|
372
359
|
};
|
|
373
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
374
360
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
375
361
|
return {
|
|
376
362
|
flatResponse,
|
|
@@ -392,8 +378,8 @@ export class ClustersImpl {
|
|
|
392
378
|
spec: extendSoftwareAssuranceBenefitOperationSpec,
|
|
393
379
|
});
|
|
394
380
|
const poller = await createHttpPoller(lro, {
|
|
395
|
-
restoreFrom: options
|
|
396
|
-
intervalInMs: options
|
|
381
|
+
restoreFrom: options?.resumeFrom,
|
|
382
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
397
383
|
resourceLocationConfig: "location",
|
|
398
384
|
});
|
|
399
385
|
await poller.poll();
|
|
@@ -422,14 +408,19 @@ export class ClustersImpl {
|
|
|
422
408
|
return this.client.sendOperationRequest(args, spec);
|
|
423
409
|
};
|
|
424
410
|
const sendOperationFn = async (args, spec) => {
|
|
425
|
-
var _a;
|
|
426
411
|
let currentRawResponse = undefined;
|
|
427
|
-
const providedCallback =
|
|
412
|
+
const providedCallback = args.options?.onResponse;
|
|
428
413
|
const callback = (rawResponse, flatResponse) => {
|
|
429
414
|
currentRawResponse = rawResponse;
|
|
430
|
-
providedCallback
|
|
415
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
416
|
+
};
|
|
417
|
+
const updatedArgs = {
|
|
418
|
+
...args,
|
|
419
|
+
options: {
|
|
420
|
+
...args.options,
|
|
421
|
+
onResponse: callback,
|
|
422
|
+
},
|
|
431
423
|
};
|
|
432
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
433
424
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
434
425
|
return {
|
|
435
426
|
flatResponse,
|
|
@@ -446,8 +437,8 @@ export class ClustersImpl {
|
|
|
446
437
|
spec: triggerLogCollectionOperationSpec,
|
|
447
438
|
});
|
|
448
439
|
const poller = await createHttpPoller(lro, {
|
|
449
|
-
restoreFrom: options
|
|
450
|
-
intervalInMs: options
|
|
440
|
+
restoreFrom: options?.resumeFrom,
|
|
441
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
451
442
|
resourceLocationConfig: "location",
|
|
452
443
|
});
|
|
453
444
|
await poller.poll();
|
|
@@ -476,14 +467,19 @@ export class ClustersImpl {
|
|
|
476
467
|
return this.client.sendOperationRequest(args, spec);
|
|
477
468
|
};
|
|
478
469
|
const sendOperationFn = async (args, spec) => {
|
|
479
|
-
var _a;
|
|
480
470
|
let currentRawResponse = undefined;
|
|
481
|
-
const providedCallback =
|
|
471
|
+
const providedCallback = args.options?.onResponse;
|
|
482
472
|
const callback = (rawResponse, flatResponse) => {
|
|
483
473
|
currentRawResponse = rawResponse;
|
|
484
|
-
providedCallback
|
|
474
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
475
|
+
};
|
|
476
|
+
const updatedArgs = {
|
|
477
|
+
...args,
|
|
478
|
+
options: {
|
|
479
|
+
...args.options,
|
|
480
|
+
onResponse: callback,
|
|
481
|
+
},
|
|
485
482
|
};
|
|
486
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
487
483
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
488
484
|
return {
|
|
489
485
|
flatResponse,
|
|
@@ -500,8 +496,8 @@ export class ClustersImpl {
|
|
|
500
496
|
spec: configureRemoteSupportOperationSpec,
|
|
501
497
|
});
|
|
502
498
|
const poller = await createHttpPoller(lro, {
|
|
503
|
-
restoreFrom: options
|
|
504
|
-
intervalInMs: options
|
|
499
|
+
restoreFrom: options?.resumeFrom,
|
|
500
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
505
501
|
resourceLocationConfig: "location",
|
|
506
502
|
});
|
|
507
503
|
await poller.poll();
|