@azure/arm-hdinsight 1.3.0-alpha.20250718.1 → 1.3.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/hDInsightManagementClient.js +24 -5
- package/dist/browser/hDInsightManagementClient.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 +86 -39
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applications.js +45 -52
- package/dist/browser/operations/applications.js.map +1 -1
- package/dist/browser/operations/clusters.js +133 -127
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/configurations.js +12 -6
- package/dist/browser/operations/configurations.js.map +1 -1
- package/dist/browser/operations/extensions.js +89 -48
- package/dist/browser/operations/extensions.js.map +1 -1
- package/dist/browser/operations/locations.js +1 -0
- package/dist/browser/operations/locations.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/privateEndpointConnections.js +45 -52
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/scriptActions.js +23 -40
- package/dist/browser/operations/scriptActions.js.map +1 -1
- package/dist/browser/operations/scriptExecutionHistory.js +23 -40
- package/dist/browser/operations/scriptExecutionHistory.js.map +1 -1
- package/dist/browser/operations/virtualMachines.js +12 -6
- package/dist/browser/operations/virtualMachines.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/hDInsightManagementClient.js +24 -5
- package/dist/commonjs/hDInsightManagementClient.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 +86 -39
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applications.js +45 -51
- package/dist/commonjs/operations/applications.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +133 -126
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/configurations.js +12 -6
- package/dist/commonjs/operations/configurations.js.map +1 -1
- package/dist/commonjs/operations/extensions.js +89 -48
- package/dist/commonjs/operations/extensions.js.map +1 -1
- package/dist/commonjs/operations/locations.js +1 -0
- package/dist/commonjs/operations/locations.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/privateEndpointConnections.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/scriptActions.js +23 -39
- package/dist/commonjs/operations/scriptActions.js.map +1 -1
- package/dist/commonjs/operations/scriptExecutionHistory.js +23 -39
- package/dist/commonjs/operations/scriptExecutionHistory.js.map +1 -1
- package/dist/commonjs/operations/virtualMachines.js +12 -6
- package/dist/commonjs/operations/virtualMachines.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/hDInsightManagementClient.js +24 -5
- package/dist/esm/hDInsightManagementClient.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 +86 -39
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applications.js +45 -52
- package/dist/esm/operations/applications.js.map +1 -1
- package/dist/esm/operations/clusters.js +133 -127
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/configurations.js +12 -6
- package/dist/esm/operations/configurations.js.map +1 -1
- package/dist/esm/operations/extensions.js +89 -48
- package/dist/esm/operations/extensions.js.map +1 -1
- package/dist/esm/operations/locations.js +1 -0
- package/dist/esm/operations/locations.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/privateEndpointConnections.js +45 -52
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/scriptActions.js +23 -40
- package/dist/esm/operations/scriptActions.js.map +1 -1
- package/dist/esm/operations/scriptExecutionHistory.js +23 -40
- package/dist/esm/operations/scriptExecutionHistory.js.map +1 -1
- package/dist/esm/operations/virtualMachines.js +12 -6
- package/dist/esm/operations/virtualMachines.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/hDInsightManagementClient.js +24 -5
- package/dist/react-native/hDInsightManagementClient.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 +86 -39
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applications.js +45 -52
- package/dist/react-native/operations/applications.js.map +1 -1
- package/dist/react-native/operations/clusters.js +133 -127
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/configurations.js +12 -6
- package/dist/react-native/operations/configurations.js.map +1 -1
- package/dist/react-native/operations/extensions.js +89 -48
- package/dist/react-native/operations/extensions.js.map +1 -1
- package/dist/react-native/operations/locations.js +1 -0
- package/dist/react-native/operations/locations.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/privateEndpointConnections.js +45 -52
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/scriptActions.js +23 -40
- package/dist/react-native/operations/scriptActions.js.map +1 -1
- package/dist/react-native/operations/scriptExecutionHistory.js +23 -40
- package/dist/react-native/operations/scriptExecutionHistory.js.map +1 -1
- package/dist/react-native/operations/virtualMachines.js +12 -6
- package/dist/react-native/operations/virtualMachines.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-hdinsight-node.api.md +1668 -1668
|
@@ -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
|
|
@@ -40,52 +41,35 @@ class ClustersImpl {
|
|
|
40
41
|
return this;
|
|
41
42
|
},
|
|
42
43
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
44
|
+
if (settings?.maxPageSize) {
|
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
46
|
}
|
|
46
47
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
51
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings?.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
66
|
+
yield page;
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
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) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
69
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
70
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
71
|
+
yield* page;
|
|
72
|
+
}
|
|
89
73
|
}
|
|
90
74
|
/**
|
|
91
75
|
* Lists all the HDInsight clusters under the subscription.
|
|
@@ -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.listPagingPage(options, settings);
|
|
108
92
|
},
|
|
109
93
|
};
|
|
110
94
|
}
|
|
111
|
-
listPagingPage(options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
95
|
+
async *listPagingPage(options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._list(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._listNext(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
|
-
listPagingAll(options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
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) {
|
|
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 *listPagingAll(options) {
|
|
114
|
+
for await (const page of this.listPagingPage(options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
150
117
|
}
|
|
151
118
|
/**
|
|
152
119
|
* Creates a new HDInsight cluster with the specified parameters.
|
|
@@ -160,14 +127,19 @@ class ClustersImpl {
|
|
|
160
127
|
return this.client.sendOperationRequest(args, spec);
|
|
161
128
|
};
|
|
162
129
|
const sendOperationFn = async (args, spec) => {
|
|
163
|
-
var _a;
|
|
164
130
|
let currentRawResponse = undefined;
|
|
165
|
-
const providedCallback =
|
|
131
|
+
const providedCallback = args.options?.onResponse;
|
|
166
132
|
const callback = (rawResponse, flatResponse) => {
|
|
167
133
|
currentRawResponse = rawResponse;
|
|
168
|
-
providedCallback
|
|
134
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
135
|
+
};
|
|
136
|
+
const updatedArgs = {
|
|
137
|
+
...args,
|
|
138
|
+
options: {
|
|
139
|
+
...args.options,
|
|
140
|
+
onResponse: callback,
|
|
141
|
+
},
|
|
169
142
|
};
|
|
170
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
171
143
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
172
144
|
return {
|
|
173
145
|
flatResponse,
|
|
@@ -184,8 +156,8 @@ class ClustersImpl {
|
|
|
184
156
|
spec: createOperationSpec,
|
|
185
157
|
});
|
|
186
158
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
187
|
-
restoreFrom: options
|
|
188
|
-
intervalInMs: options
|
|
159
|
+
restoreFrom: options?.resumeFrom,
|
|
160
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
189
161
|
resourceLocationConfig: "location",
|
|
190
162
|
});
|
|
191
163
|
await poller.poll();
|
|
@@ -223,14 +195,19 @@ class ClustersImpl {
|
|
|
223
195
|
return this.client.sendOperationRequest(args, spec);
|
|
224
196
|
};
|
|
225
197
|
const sendOperationFn = async (args, spec) => {
|
|
226
|
-
var _a;
|
|
227
198
|
let currentRawResponse = undefined;
|
|
228
|
-
const providedCallback =
|
|
199
|
+
const providedCallback = args.options?.onResponse;
|
|
229
200
|
const callback = (rawResponse, flatResponse) => {
|
|
230
201
|
currentRawResponse = rawResponse;
|
|
231
|
-
providedCallback
|
|
202
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
203
|
+
};
|
|
204
|
+
const updatedArgs = {
|
|
205
|
+
...args,
|
|
206
|
+
options: {
|
|
207
|
+
...args.options,
|
|
208
|
+
onResponse: callback,
|
|
209
|
+
},
|
|
232
210
|
};
|
|
233
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
234
211
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
235
212
|
return {
|
|
236
213
|
flatResponse,
|
|
@@ -247,8 +224,8 @@ class ClustersImpl {
|
|
|
247
224
|
spec: deleteOperationSpec,
|
|
248
225
|
});
|
|
249
226
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
250
|
-
restoreFrom: options
|
|
251
|
-
intervalInMs: options
|
|
227
|
+
restoreFrom: options?.resumeFrom,
|
|
228
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
252
229
|
resourceLocationConfig: "location",
|
|
253
230
|
});
|
|
254
231
|
await poller.poll();
|
|
@@ -294,14 +271,19 @@ class ClustersImpl {
|
|
|
294
271
|
return this.client.sendOperationRequest(args, spec);
|
|
295
272
|
};
|
|
296
273
|
const sendOperationFn = async (args, spec) => {
|
|
297
|
-
var _a;
|
|
298
274
|
let currentRawResponse = undefined;
|
|
299
|
-
const providedCallback =
|
|
275
|
+
const providedCallback = args.options?.onResponse;
|
|
300
276
|
const callback = (rawResponse, flatResponse) => {
|
|
301
277
|
currentRawResponse = rawResponse;
|
|
302
|
-
providedCallback
|
|
278
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
279
|
+
};
|
|
280
|
+
const updatedArgs = {
|
|
281
|
+
...args,
|
|
282
|
+
options: {
|
|
283
|
+
...args.options,
|
|
284
|
+
onResponse: callback,
|
|
285
|
+
},
|
|
303
286
|
};
|
|
304
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
305
287
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
306
288
|
return {
|
|
307
289
|
flatResponse,
|
|
@@ -318,8 +300,8 @@ class ClustersImpl {
|
|
|
318
300
|
spec: resizeOperationSpec,
|
|
319
301
|
});
|
|
320
302
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
321
|
-
restoreFrom: options
|
|
322
|
-
intervalInMs: options
|
|
303
|
+
restoreFrom: options?.resumeFrom,
|
|
304
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
323
305
|
resourceLocationConfig: "location",
|
|
324
306
|
});
|
|
325
307
|
await poller.poll();
|
|
@@ -350,14 +332,19 @@ class ClustersImpl {
|
|
|
350
332
|
return this.client.sendOperationRequest(args, spec);
|
|
351
333
|
};
|
|
352
334
|
const sendOperationFn = async (args, spec) => {
|
|
353
|
-
var _a;
|
|
354
335
|
let currentRawResponse = undefined;
|
|
355
|
-
const providedCallback =
|
|
336
|
+
const providedCallback = args.options?.onResponse;
|
|
356
337
|
const callback = (rawResponse, flatResponse) => {
|
|
357
338
|
currentRawResponse = rawResponse;
|
|
358
|
-
providedCallback
|
|
339
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
340
|
+
};
|
|
341
|
+
const updatedArgs = {
|
|
342
|
+
...args,
|
|
343
|
+
options: {
|
|
344
|
+
...args.options,
|
|
345
|
+
onResponse: callback,
|
|
346
|
+
},
|
|
359
347
|
};
|
|
360
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
361
348
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
362
349
|
return {
|
|
363
350
|
flatResponse,
|
|
@@ -374,8 +361,8 @@ class ClustersImpl {
|
|
|
374
361
|
spec: updateAutoScaleConfigurationOperationSpec,
|
|
375
362
|
});
|
|
376
363
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
377
|
-
restoreFrom: options
|
|
378
|
-
intervalInMs: options
|
|
364
|
+
restoreFrom: options?.resumeFrom,
|
|
365
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
379
366
|
resourceLocationConfig: "location",
|
|
380
367
|
});
|
|
381
368
|
await poller.poll();
|
|
@@ -412,14 +399,19 @@ class ClustersImpl {
|
|
|
412
399
|
return this.client.sendOperationRequest(args, spec);
|
|
413
400
|
};
|
|
414
401
|
const sendOperationFn = async (args, spec) => {
|
|
415
|
-
var _a;
|
|
416
402
|
let currentRawResponse = undefined;
|
|
417
|
-
const providedCallback =
|
|
403
|
+
const providedCallback = args.options?.onResponse;
|
|
418
404
|
const callback = (rawResponse, flatResponse) => {
|
|
419
405
|
currentRawResponse = rawResponse;
|
|
420
|
-
providedCallback
|
|
406
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
407
|
+
};
|
|
408
|
+
const updatedArgs = {
|
|
409
|
+
...args,
|
|
410
|
+
options: {
|
|
411
|
+
...args.options,
|
|
412
|
+
onResponse: callback,
|
|
413
|
+
},
|
|
421
414
|
};
|
|
422
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
423
415
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
424
416
|
return {
|
|
425
417
|
flatResponse,
|
|
@@ -436,8 +428,8 @@ class ClustersImpl {
|
|
|
436
428
|
spec: rotateDiskEncryptionKeyOperationSpec,
|
|
437
429
|
});
|
|
438
430
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
439
|
-
restoreFrom: options
|
|
440
|
-
intervalInMs: options
|
|
431
|
+
restoreFrom: options?.resumeFrom,
|
|
432
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
441
433
|
resourceLocationConfig: "location",
|
|
442
434
|
});
|
|
443
435
|
await poller.poll();
|
|
@@ -475,14 +467,19 @@ class ClustersImpl {
|
|
|
475
467
|
return this.client.sendOperationRequest(args, spec);
|
|
476
468
|
};
|
|
477
469
|
const sendOperationFn = async (args, spec) => {
|
|
478
|
-
var _a;
|
|
479
470
|
let currentRawResponse = undefined;
|
|
480
|
-
const providedCallback =
|
|
471
|
+
const providedCallback = args.options?.onResponse;
|
|
481
472
|
const callback = (rawResponse, flatResponse) => {
|
|
482
473
|
currentRawResponse = rawResponse;
|
|
483
|
-
providedCallback
|
|
474
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
475
|
+
};
|
|
476
|
+
const updatedArgs = {
|
|
477
|
+
...args,
|
|
478
|
+
options: {
|
|
479
|
+
...args.options,
|
|
480
|
+
onResponse: callback,
|
|
481
|
+
},
|
|
484
482
|
};
|
|
485
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
486
483
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
487
484
|
return {
|
|
488
485
|
flatResponse,
|
|
@@ -499,8 +496,8 @@ class ClustersImpl {
|
|
|
499
496
|
spec: updateGatewaySettingsOperationSpec,
|
|
500
497
|
});
|
|
501
498
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
502
|
-
restoreFrom: options
|
|
503
|
-
intervalInMs: options
|
|
499
|
+
restoreFrom: options?.resumeFrom,
|
|
500
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
504
501
|
resourceLocationConfig: "location",
|
|
505
502
|
});
|
|
506
503
|
await poller.poll();
|
|
@@ -539,14 +536,19 @@ class ClustersImpl {
|
|
|
539
536
|
return this.client.sendOperationRequest(args, spec);
|
|
540
537
|
};
|
|
541
538
|
const sendOperationFn = async (args, spec) => {
|
|
542
|
-
var _a;
|
|
543
539
|
let currentRawResponse = undefined;
|
|
544
|
-
const providedCallback =
|
|
540
|
+
const providedCallback = args.options?.onResponse;
|
|
545
541
|
const callback = (rawResponse, flatResponse) => {
|
|
546
542
|
currentRawResponse = rawResponse;
|
|
547
|
-
providedCallback
|
|
543
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
544
|
+
};
|
|
545
|
+
const updatedArgs = {
|
|
546
|
+
...args,
|
|
547
|
+
options: {
|
|
548
|
+
...args.options,
|
|
549
|
+
onResponse: callback,
|
|
550
|
+
},
|
|
548
551
|
};
|
|
549
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
550
552
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
551
553
|
return {
|
|
552
554
|
flatResponse,
|
|
@@ -563,8 +565,8 @@ class ClustersImpl {
|
|
|
563
565
|
spec: updateIdentityCertificateOperationSpec,
|
|
564
566
|
});
|
|
565
567
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
566
|
-
restoreFrom: options
|
|
567
|
-
intervalInMs: options
|
|
568
|
+
restoreFrom: options?.resumeFrom,
|
|
569
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
568
570
|
resourceLocationConfig: "location",
|
|
569
571
|
});
|
|
570
572
|
await poller.poll();
|
|
@@ -593,14 +595,19 @@ class ClustersImpl {
|
|
|
593
595
|
return this.client.sendOperationRequest(args, spec);
|
|
594
596
|
};
|
|
595
597
|
const sendOperationFn = async (args, spec) => {
|
|
596
|
-
var _a;
|
|
597
598
|
let currentRawResponse = undefined;
|
|
598
|
-
const providedCallback =
|
|
599
|
+
const providedCallback = args.options?.onResponse;
|
|
599
600
|
const callback = (rawResponse, flatResponse) => {
|
|
600
601
|
currentRawResponse = rawResponse;
|
|
601
|
-
providedCallback
|
|
602
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
603
|
+
};
|
|
604
|
+
const updatedArgs = {
|
|
605
|
+
...args,
|
|
606
|
+
options: {
|
|
607
|
+
...args.options,
|
|
608
|
+
onResponse: callback,
|
|
609
|
+
},
|
|
602
610
|
};
|
|
603
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
604
611
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
605
612
|
return {
|
|
606
613
|
flatResponse,
|
|
@@ -617,8 +624,8 @@ class ClustersImpl {
|
|
|
617
624
|
spec: executeScriptActionsOperationSpec,
|
|
618
625
|
});
|
|
619
626
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
620
|
-
restoreFrom: options
|
|
621
|
-
intervalInMs: options
|
|
627
|
+
restoreFrom: options?.resumeFrom,
|
|
628
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
622
629
|
resourceLocationConfig: "location",
|
|
623
630
|
});
|
|
624
631
|
await poller.poll();
|