@azure/arm-batch 10.0.1-alpha.20250718.1 → 10.0.1-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/batchManagementClient.js +23 -5
- package/dist/browser/batchManagementClient.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 +218 -102
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applicationOperations.js +23 -40
- package/dist/browser/operations/applicationOperations.js.map +1 -1
- package/dist/browser/operations/applicationPackageOperations.js +23 -40
- package/dist/browser/operations/applicationPackageOperations.js.map +1 -1
- package/dist/browser/operations/batchAccountOperations.js +111 -169
- package/dist/browser/operations/batchAccountOperations.js.map +1 -1
- package/dist/browser/operations/certificateOperations.js +34 -46
- package/dist/browser/operations/certificateOperations.js.map +1 -1
- package/dist/browser/operations/location.js +23 -40
- package/dist/browser/operations/location.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/browser/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -46
- package/dist/browser/operations/poolOperations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/browser/operations/privateLinkResourceOperations.js +23 -40
- package/dist/browser/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/batchManagementClient.js +23 -5
- package/dist/commonjs/batchManagementClient.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 +218 -102
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applicationOperations.js +23 -39
- package/dist/commonjs/operations/applicationOperations.js.map +1 -1
- package/dist/commonjs/operations/applicationPackageOperations.js +23 -39
- package/dist/commonjs/operations/applicationPackageOperations.js.map +1 -1
- package/dist/commonjs/operations/batchAccountOperations.js +111 -168
- package/dist/commonjs/operations/batchAccountOperations.js.map +1 -1
- package/dist/commonjs/operations/certificateOperations.js +34 -45
- package/dist/commonjs/operations/certificateOperations.js.map +1 -1
- package/dist/commonjs/operations/location.js +23 -39
- package/dist/commonjs/operations/location.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterOperations.js +34 -45
- package/dist/commonjs/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -45
- package/dist/commonjs/operations/poolOperations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResourceOperations.js +23 -39
- package/dist/commonjs/operations/privateLinkResourceOperations.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 +1 -1
- package/dist/esm/batchManagementClient.js +23 -5
- package/dist/esm/batchManagementClient.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 +218 -102
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applicationOperations.js +23 -40
- package/dist/esm/operations/applicationOperations.js.map +1 -1
- package/dist/esm/operations/applicationPackageOperations.js +23 -40
- package/dist/esm/operations/applicationPackageOperations.js.map +1 -1
- package/dist/esm/operations/batchAccountOperations.js +111 -169
- package/dist/esm/operations/batchAccountOperations.js.map +1 -1
- package/dist/esm/operations/certificateOperations.js +34 -46
- package/dist/esm/operations/certificateOperations.js.map +1 -1
- package/dist/esm/operations/location.js +23 -40
- package/dist/esm/operations/location.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/esm/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -46
- package/dist/esm/operations/poolOperations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/esm/operations/privateLinkResourceOperations.js +23 -40
- package/dist/esm/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/batchManagementClient.js +23 -5
- package/dist/react-native/batchManagementClient.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 +218 -102
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applicationOperations.js +23 -40
- package/dist/react-native/operations/applicationOperations.js.map +1 -1
- package/dist/react-native/operations/applicationPackageOperations.js +23 -40
- package/dist/react-native/operations/applicationPackageOperations.js.map +1 -1
- package/dist/react-native/operations/batchAccountOperations.js +111 -169
- package/dist/react-native/operations/batchAccountOperations.js.map +1 -1
- package/dist/react-native/operations/certificateOperations.js +34 -46
- package/dist/react-native/operations/certificateOperations.js.map +1 -1
- package/dist/react-native/operations/location.js +23 -40
- package/dist/react-native/operations/location.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/react-native/operations/networkSecurityPerimeterOperations.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/poolOperations.js +34 -46
- package/dist/react-native/operations/poolOperations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/privateLinkResourceOperations.js +23 -40
- package/dist/react-native/operations/privateLinkResourceOperations.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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing BatchAccountOperations operations. */
|
|
20
20
|
class BatchAccountOperationsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class BatchAccountOperations class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class BatchAccountOperationsImpl {
|
|
|
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
|
* Gets information about the Batch accounts associated with the specified resource group.
|
|
@@ -101,52 +85,35 @@ class BatchAccountOperationsImpl {
|
|
|
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
|
* Gets information about the detectors available for a given Batch account.
|
|
@@ -164,52 +131,35 @@ class BatchAccountOperationsImpl {
|
|
|
164
131
|
return this;
|
|
165
132
|
},
|
|
166
133
|
byPage: (settings) => {
|
|
167
|
-
if (settings
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
168
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
169
136
|
}
|
|
170
137
|
return this.listDetectorsPagingPage(resourceGroupName, accountName, options, settings);
|
|
171
138
|
},
|
|
172
139
|
};
|
|
173
140
|
}
|
|
174
|
-
listDetectorsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
});
|
|
141
|
+
async *listDetectorsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
142
|
+
let result;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listDetectors(resourceGroupName, accountName, options);
|
|
146
|
+
let page = result.value || [];
|
|
147
|
+
continuationToken = result.nextLink;
|
|
148
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
149
|
+
yield page;
|
|
150
|
+
}
|
|
151
|
+
while (continuationToken) {
|
|
152
|
+
result = await this._listDetectorsNext(resourceGroupName, accountName, continuationToken, options);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
193
158
|
}
|
|
194
|
-
listDetectorsPagingAll(resourceGroupName, accountName, options) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listDetectorsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
199
|
-
_c = _f.value;
|
|
200
|
-
_d = false;
|
|
201
|
-
const page = _c;
|
|
202
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
209
|
-
}
|
|
210
|
-
finally { if (e_3) throw e_3.error; }
|
|
211
|
-
}
|
|
212
|
-
});
|
|
159
|
+
async *listDetectorsPagingAll(resourceGroupName, accountName, options) {
|
|
160
|
+
for await (const page of this.listDetectorsPagingPage(resourceGroupName, accountName, options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
213
163
|
}
|
|
214
164
|
/**
|
|
215
165
|
* Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
|
|
@@ -232,52 +182,35 @@ class BatchAccountOperationsImpl {
|
|
|
232
182
|
return this;
|
|
233
183
|
},
|
|
234
184
|
byPage: (settings) => {
|
|
235
|
-
if (settings
|
|
185
|
+
if (settings?.maxPageSize) {
|
|
236
186
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
237
187
|
}
|
|
238
188
|
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options, settings);
|
|
239
189
|
},
|
|
240
190
|
};
|
|
241
191
|
}
|
|
242
|
-
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
});
|
|
192
|
+
async *listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
193
|
+
let result;
|
|
194
|
+
let continuationToken = settings?.continuationToken;
|
|
195
|
+
if (!continuationToken) {
|
|
196
|
+
result = await this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, accountName, options);
|
|
197
|
+
let page = result.value || [];
|
|
198
|
+
continuationToken = result.nextLink;
|
|
199
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
200
|
+
yield page;
|
|
201
|
+
}
|
|
202
|
+
while (continuationToken) {
|
|
203
|
+
result = await this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, accountName, continuationToken, options);
|
|
204
|
+
continuationToken = result.nextLink;
|
|
205
|
+
let page = result.value || [];
|
|
206
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
207
|
+
yield page;
|
|
208
|
+
}
|
|
261
209
|
}
|
|
262
|
-
listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, accountName, options) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
267
|
-
_c = _f.value;
|
|
268
|
-
_d = false;
|
|
269
|
-
const page = _c;
|
|
270
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
274
|
-
finally {
|
|
275
|
-
try {
|
|
276
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
277
|
-
}
|
|
278
|
-
finally { if (e_4) throw e_4.error; }
|
|
279
|
-
}
|
|
280
|
-
});
|
|
210
|
+
async *listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, accountName, options) {
|
|
211
|
+
for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options)) {
|
|
212
|
+
yield* page;
|
|
213
|
+
}
|
|
281
214
|
}
|
|
282
215
|
/**
|
|
283
216
|
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
|
|
@@ -295,14 +228,19 @@ class BatchAccountOperationsImpl {
|
|
|
295
228
|
return this.client.sendOperationRequest(args, spec);
|
|
296
229
|
};
|
|
297
230
|
const sendOperationFn = async (args, spec) => {
|
|
298
|
-
var _a;
|
|
299
231
|
let currentRawResponse = undefined;
|
|
300
|
-
const providedCallback =
|
|
232
|
+
const providedCallback = args.options?.onResponse;
|
|
301
233
|
const callback = (rawResponse, flatResponse) => {
|
|
302
234
|
currentRawResponse = rawResponse;
|
|
303
|
-
providedCallback
|
|
235
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
236
|
+
};
|
|
237
|
+
const updatedArgs = {
|
|
238
|
+
...args,
|
|
239
|
+
options: {
|
|
240
|
+
...args.options,
|
|
241
|
+
onResponse: callback,
|
|
242
|
+
},
|
|
304
243
|
};
|
|
305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
306
244
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
245
|
return {
|
|
308
246
|
flatResponse,
|
|
@@ -319,8 +257,8 @@ class BatchAccountOperationsImpl {
|
|
|
319
257
|
spec: createOperationSpec,
|
|
320
258
|
});
|
|
321
259
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
322
|
-
restoreFrom: options
|
|
323
|
-
intervalInMs: options
|
|
260
|
+
restoreFrom: options?.resumeFrom,
|
|
261
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
324
262
|
resourceLocationConfig: "location",
|
|
325
263
|
});
|
|
326
264
|
await poller.poll();
|
|
@@ -362,14 +300,19 @@ class BatchAccountOperationsImpl {
|
|
|
362
300
|
return this.client.sendOperationRequest(args, spec);
|
|
363
301
|
};
|
|
364
302
|
const sendOperationFn = async (args, spec) => {
|
|
365
|
-
var _a;
|
|
366
303
|
let currentRawResponse = undefined;
|
|
367
|
-
const providedCallback =
|
|
304
|
+
const providedCallback = args.options?.onResponse;
|
|
368
305
|
const callback = (rawResponse, flatResponse) => {
|
|
369
306
|
currentRawResponse = rawResponse;
|
|
370
|
-
providedCallback
|
|
307
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
308
|
+
};
|
|
309
|
+
const updatedArgs = {
|
|
310
|
+
...args,
|
|
311
|
+
options: {
|
|
312
|
+
...args.options,
|
|
313
|
+
onResponse: callback,
|
|
314
|
+
},
|
|
371
315
|
};
|
|
372
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
373
316
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
374
317
|
return {
|
|
375
318
|
flatResponse,
|
|
@@ -386,8 +329,8 @@ class BatchAccountOperationsImpl {
|
|
|
386
329
|
spec: deleteOperationSpec,
|
|
387
330
|
});
|
|
388
331
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
389
|
-
restoreFrom: options
|
|
390
|
-
intervalInMs: options
|
|
332
|
+
restoreFrom: options?.resumeFrom,
|
|
333
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
391
334
|
resourceLocationConfig: "location",
|
|
392
335
|
});
|
|
393
336
|
await poller.poll();
|