@azure/arm-batch 10.0.1-alpha.20250718.1 → 10.0.1-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/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/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
|
@@ -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 BatchAccountOperations operations. */
|
|
17
16
|
export class BatchAccountOperationsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class BatchAccountOperations class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class BatchAccountOperationsImpl {
|
|
|
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.listPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(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._listNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(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 *listPagingAll(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Gets information about the Batch accounts associated with the specified resource group.
|
|
@@ -98,52 +81,35 @@ export class BatchAccountOperationsImpl {
|
|
|
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
|
* Gets information about the detectors available for a given Batch account.
|
|
@@ -161,52 +127,35 @@ export class BatchAccountOperationsImpl {
|
|
|
161
127
|
return this;
|
|
162
128
|
},
|
|
163
129
|
byPage: (settings) => {
|
|
164
|
-
if (settings
|
|
130
|
+
if (settings?.maxPageSize) {
|
|
165
131
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
166
132
|
}
|
|
167
133
|
return this.listDetectorsPagingPage(resourceGroupName, accountName, options, settings);
|
|
168
134
|
},
|
|
169
135
|
};
|
|
170
136
|
}
|
|
171
|
-
listDetectorsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
});
|
|
137
|
+
async *listDetectorsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
138
|
+
let result;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listDetectors(resourceGroupName, accountName, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = await this._listDetectorsNext(resourceGroupName, accountName, continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
190
154
|
}
|
|
191
|
-
listDetectorsPagingAll(resourceGroupName, accountName, options) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
for (var _d = true, _e = __asyncValues(this.listDetectorsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
196
|
-
_c = _f.value;
|
|
197
|
-
_d = false;
|
|
198
|
-
const page = _c;
|
|
199
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
203
|
-
finally {
|
|
204
|
-
try {
|
|
205
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
206
|
-
}
|
|
207
|
-
finally { if (e_3) throw e_3.error; }
|
|
208
|
-
}
|
|
209
|
-
});
|
|
155
|
+
async *listDetectorsPagingAll(resourceGroupName, accountName, options) {
|
|
156
|
+
for await (const page of this.listDetectorsPagingPage(resourceGroupName, accountName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
210
159
|
}
|
|
211
160
|
/**
|
|
212
161
|
* Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch
|
|
@@ -229,52 +178,35 @@ export class BatchAccountOperationsImpl {
|
|
|
229
178
|
return this;
|
|
230
179
|
},
|
|
231
180
|
byPage: (settings) => {
|
|
232
|
-
if (settings
|
|
181
|
+
if (settings?.maxPageSize) {
|
|
233
182
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
234
183
|
}
|
|
235
184
|
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options, settings);
|
|
236
185
|
},
|
|
237
186
|
};
|
|
238
187
|
}
|
|
239
|
-
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
});
|
|
188
|
+
async *listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options, settings) {
|
|
189
|
+
let result;
|
|
190
|
+
let continuationToken = settings?.continuationToken;
|
|
191
|
+
if (!continuationToken) {
|
|
192
|
+
result = await this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, accountName, options);
|
|
193
|
+
let page = result.value || [];
|
|
194
|
+
continuationToken = result.nextLink;
|
|
195
|
+
setContinuationToken(page, continuationToken);
|
|
196
|
+
yield page;
|
|
197
|
+
}
|
|
198
|
+
while (continuationToken) {
|
|
199
|
+
result = await this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, accountName, continuationToken, options);
|
|
200
|
+
continuationToken = result.nextLink;
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
setContinuationToken(page, continuationToken);
|
|
203
|
+
yield page;
|
|
204
|
+
}
|
|
258
205
|
}
|
|
259
|
-
listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, accountName, options) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
for (var _d = true, _e = __asyncValues(this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
264
|
-
_c = _f.value;
|
|
265
|
-
_d = false;
|
|
266
|
-
const page = _c;
|
|
267
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
271
|
-
finally {
|
|
272
|
-
try {
|
|
273
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
274
|
-
}
|
|
275
|
-
finally { if (e_4) throw e_4.error; }
|
|
276
|
-
}
|
|
277
|
-
});
|
|
206
|
+
async *listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, accountName, options) {
|
|
207
|
+
for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, accountName, options)) {
|
|
208
|
+
yield* page;
|
|
209
|
+
}
|
|
278
210
|
}
|
|
279
211
|
/**
|
|
280
212
|
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
|
|
@@ -292,14 +224,19 @@ export class BatchAccountOperationsImpl {
|
|
|
292
224
|
return this.client.sendOperationRequest(args, spec);
|
|
293
225
|
};
|
|
294
226
|
const sendOperationFn = async (args, spec) => {
|
|
295
|
-
var _a;
|
|
296
227
|
let currentRawResponse = undefined;
|
|
297
|
-
const providedCallback =
|
|
228
|
+
const providedCallback = args.options?.onResponse;
|
|
298
229
|
const callback = (rawResponse, flatResponse) => {
|
|
299
230
|
currentRawResponse = rawResponse;
|
|
300
|
-
providedCallback
|
|
231
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
232
|
+
};
|
|
233
|
+
const updatedArgs = {
|
|
234
|
+
...args,
|
|
235
|
+
options: {
|
|
236
|
+
...args.options,
|
|
237
|
+
onResponse: callback,
|
|
238
|
+
},
|
|
301
239
|
};
|
|
302
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
303
240
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
304
241
|
return {
|
|
305
242
|
flatResponse,
|
|
@@ -316,8 +253,8 @@ export class BatchAccountOperationsImpl {
|
|
|
316
253
|
spec: createOperationSpec,
|
|
317
254
|
});
|
|
318
255
|
const poller = await createHttpPoller(lro, {
|
|
319
|
-
restoreFrom: options
|
|
320
|
-
intervalInMs: options
|
|
256
|
+
restoreFrom: options?.resumeFrom,
|
|
257
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
321
258
|
resourceLocationConfig: "location",
|
|
322
259
|
});
|
|
323
260
|
await poller.poll();
|
|
@@ -359,14 +296,19 @@ export class BatchAccountOperationsImpl {
|
|
|
359
296
|
return this.client.sendOperationRequest(args, spec);
|
|
360
297
|
};
|
|
361
298
|
const sendOperationFn = async (args, spec) => {
|
|
362
|
-
var _a;
|
|
363
299
|
let currentRawResponse = undefined;
|
|
364
|
-
const providedCallback =
|
|
300
|
+
const providedCallback = args.options?.onResponse;
|
|
365
301
|
const callback = (rawResponse, flatResponse) => {
|
|
366
302
|
currentRawResponse = rawResponse;
|
|
367
|
-
providedCallback
|
|
303
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
304
|
+
};
|
|
305
|
+
const updatedArgs = {
|
|
306
|
+
...args,
|
|
307
|
+
options: {
|
|
308
|
+
...args.options,
|
|
309
|
+
onResponse: callback,
|
|
310
|
+
},
|
|
368
311
|
};
|
|
369
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
370
312
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
371
313
|
return {
|
|
372
314
|
flatResponse,
|
|
@@ -383,8 +325,8 @@ export class BatchAccountOperationsImpl {
|
|
|
383
325
|
spec: deleteOperationSpec,
|
|
384
326
|
});
|
|
385
327
|
const poller = await createHttpPoller(lro, {
|
|
386
|
-
restoreFrom: options
|
|
387
|
-
intervalInMs: options
|
|
328
|
+
restoreFrom: options?.resumeFrom,
|
|
329
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
388
330
|
resourceLocationConfig: "location",
|
|
389
331
|
});
|
|
390
332
|
await poller.poll();
|