@azure/arm-resourcesdeployments 1.0.0-alpha.20250718.1 → 1.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/deploymentsClient.js +15 -5
- package/dist/browser/deploymentsClient.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 +5 -2
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/deploymentOperations.js +111 -196
- package/dist/browser/operations/deploymentOperations.js.map +1 -1
- package/dist/browser/operations/deployments.js +325 -315
- package/dist/browser/operations/deployments.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/deploymentsClient.js +15 -5
- package/dist/commonjs/deploymentsClient.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 +5 -2
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/deploymentOperations.js +111 -195
- package/dist/commonjs/operations/deploymentOperations.js.map +1 -1
- package/dist/commonjs/operations/deployments.js +325 -314
- package/dist/commonjs/operations/deployments.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/deploymentsClient.js +15 -5
- package/dist/esm/deploymentsClient.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 +5 -2
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/deploymentOperations.js +111 -196
- package/dist/esm/operations/deploymentOperations.js.map +1 -1
- package/dist/esm/operations/deployments.js +325 -315
- package/dist/esm/operations/deployments.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/deploymentsClient.js +15 -5
- package/dist/react-native/deploymentsClient.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 +5 -2
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/deploymentOperations.js +111 -196
- package/dist/react-native/operations/deploymentOperations.js.map +1 -1
- package/dist/react-native/operations/deployments.js +325 -315
- package/dist/react-native/operations/deployments.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-resourcesdeployments-node.api.md +1226 -1226
|
@@ -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 Deployments operations. */
|
|
17
16
|
export class DeploymentsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Deployments class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class DeploymentsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listAtScopePagingPage(scope, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listAtScopePagingPage(scope, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var _a, e_1, _b, _c;
|
|
70
|
-
try {
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listAtScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
47
|
+
async *listAtScopePagingPage(scope, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listAtScope(scope, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listAtScopeNext(scope, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async *listAtScopePagingAll(scope, options) {
|
|
66
|
+
for await (const page of this.listAtScopePagingPage(scope, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Get all the deployments at the tenant scope.
|
|
@@ -98,52 +81,35 @@ export class DeploymentsImpl {
|
|
|
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.listAtTenantScopePagingPage(options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listAtTenantScopePagingPage(options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var _a, e_2, _b, _c;
|
|
131
|
-
try {
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listAtTenantScopePagingPage(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
|
-
});
|
|
91
|
+
async *listAtTenantScopePagingPage(options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listAtTenantScope(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._listAtTenantScopeNext(continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
async *listAtTenantScopePagingAll(options) {
|
|
110
|
+
for await (const page of this.listAtTenantScopePagingPage(options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Get all the deployments for a management group.
|
|
@@ -160,52 +126,35 @@ export class DeploymentsImpl {
|
|
|
160
126
|
return this;
|
|
161
127
|
},
|
|
162
128
|
byPage: (settings) => {
|
|
163
|
-
if (settings
|
|
129
|
+
if (settings?.maxPageSize) {
|
|
164
130
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
165
131
|
}
|
|
166
132
|
return this.listAtManagementGroupScopePagingPage(groupId, options, settings);
|
|
167
133
|
},
|
|
168
134
|
};
|
|
169
135
|
}
|
|
170
|
-
listAtManagementGroupScopePagingPage(groupId, options, settings) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
var _a, e_3, _b, _c;
|
|
193
|
-
try {
|
|
194
|
-
for (var _d = true, _e = __asyncValues(this.listAtManagementGroupScopePagingPage(groupId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
195
|
-
_c = _f.value;
|
|
196
|
-
_d = false;
|
|
197
|
-
const page = _c;
|
|
198
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
202
|
-
finally {
|
|
203
|
-
try {
|
|
204
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
205
|
-
}
|
|
206
|
-
finally { if (e_3) throw e_3.error; }
|
|
207
|
-
}
|
|
208
|
-
});
|
|
136
|
+
async *listAtManagementGroupScopePagingPage(groupId, options, settings) {
|
|
137
|
+
let result;
|
|
138
|
+
let continuationToken = settings?.continuationToken;
|
|
139
|
+
if (!continuationToken) {
|
|
140
|
+
result = await this._listAtManagementGroupScope(groupId, options);
|
|
141
|
+
let page = result.value || [];
|
|
142
|
+
continuationToken = result.nextLink;
|
|
143
|
+
setContinuationToken(page, continuationToken);
|
|
144
|
+
yield page;
|
|
145
|
+
}
|
|
146
|
+
while (continuationToken) {
|
|
147
|
+
result = await this._listAtManagementGroupScopeNext(groupId, continuationToken, options);
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
let page = result.value || [];
|
|
150
|
+
setContinuationToken(page, continuationToken);
|
|
151
|
+
yield page;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
async *listAtManagementGroupScopePagingAll(groupId, options) {
|
|
155
|
+
for await (const page of this.listAtManagementGroupScopePagingPage(groupId, options)) {
|
|
156
|
+
yield* page;
|
|
157
|
+
}
|
|
209
158
|
}
|
|
210
159
|
/**
|
|
211
160
|
* Get all the deployments for a subscription.
|
|
@@ -221,52 +170,35 @@ export class DeploymentsImpl {
|
|
|
221
170
|
return this;
|
|
222
171
|
},
|
|
223
172
|
byPage: (settings) => {
|
|
224
|
-
if (settings
|
|
173
|
+
if (settings?.maxPageSize) {
|
|
225
174
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
226
175
|
}
|
|
227
176
|
return this.listAtSubscriptionScopePagingPage(options, settings);
|
|
228
177
|
},
|
|
229
178
|
};
|
|
230
179
|
}
|
|
231
|
-
listAtSubscriptionScopePagingPage(options, settings) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
var _a, e_4, _b, _c;
|
|
254
|
-
try {
|
|
255
|
-
for (var _d = true, _e = __asyncValues(this.listAtSubscriptionScopePagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
256
|
-
_c = _f.value;
|
|
257
|
-
_d = false;
|
|
258
|
-
const page = _c;
|
|
259
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
263
|
-
finally {
|
|
264
|
-
try {
|
|
265
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
266
|
-
}
|
|
267
|
-
finally { if (e_4) throw e_4.error; }
|
|
268
|
-
}
|
|
269
|
-
});
|
|
180
|
+
async *listAtSubscriptionScopePagingPage(options, settings) {
|
|
181
|
+
let result;
|
|
182
|
+
let continuationToken = settings?.continuationToken;
|
|
183
|
+
if (!continuationToken) {
|
|
184
|
+
result = await this._listAtSubscriptionScope(options);
|
|
185
|
+
let page = result.value || [];
|
|
186
|
+
continuationToken = result.nextLink;
|
|
187
|
+
setContinuationToken(page, continuationToken);
|
|
188
|
+
yield page;
|
|
189
|
+
}
|
|
190
|
+
while (continuationToken) {
|
|
191
|
+
result = await this._listAtSubscriptionScopeNext(continuationToken, options);
|
|
192
|
+
continuationToken = result.nextLink;
|
|
193
|
+
let page = result.value || [];
|
|
194
|
+
setContinuationToken(page, continuationToken);
|
|
195
|
+
yield page;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
async *listAtSubscriptionScopePagingAll(options) {
|
|
199
|
+
for await (const page of this.listAtSubscriptionScopePagingPage(options)) {
|
|
200
|
+
yield* page;
|
|
201
|
+
}
|
|
270
202
|
}
|
|
271
203
|
/**
|
|
272
204
|
* Get all the deployments for a resource group.
|
|
@@ -284,52 +216,35 @@ export class DeploymentsImpl {
|
|
|
284
216
|
return this;
|
|
285
217
|
},
|
|
286
218
|
byPage: (settings) => {
|
|
287
|
-
if (settings
|
|
219
|
+
if (settings?.maxPageSize) {
|
|
288
220
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
289
221
|
}
|
|
290
222
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
291
223
|
},
|
|
292
224
|
};
|
|
293
225
|
}
|
|
294
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
var _a, e_5, _b, _c;
|
|
317
|
-
try {
|
|
318
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
319
|
-
_c = _f.value;
|
|
320
|
-
_d = false;
|
|
321
|
-
const page = _c;
|
|
322
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
326
|
-
finally {
|
|
327
|
-
try {
|
|
328
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
329
|
-
}
|
|
330
|
-
finally { if (e_5) throw e_5.error; }
|
|
331
|
-
}
|
|
332
|
-
});
|
|
226
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
227
|
+
let result;
|
|
228
|
+
let continuationToken = settings?.continuationToken;
|
|
229
|
+
if (!continuationToken) {
|
|
230
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
231
|
+
let page = result.value || [];
|
|
232
|
+
continuationToken = result.nextLink;
|
|
233
|
+
setContinuationToken(page, continuationToken);
|
|
234
|
+
yield page;
|
|
235
|
+
}
|
|
236
|
+
while (continuationToken) {
|
|
237
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
238
|
+
continuationToken = result.nextLink;
|
|
239
|
+
let page = result.value || [];
|
|
240
|
+
setContinuationToken(page, continuationToken);
|
|
241
|
+
yield page;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
245
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
246
|
+
yield* page;
|
|
247
|
+
}
|
|
333
248
|
}
|
|
334
249
|
/**
|
|
335
250
|
* A template deployment that is currently running cannot be deleted. Deleting a template deployment
|
|
@@ -348,14 +263,19 @@ export class DeploymentsImpl {
|
|
|
348
263
|
return this.client.sendOperationRequest(args, spec);
|
|
349
264
|
};
|
|
350
265
|
const sendOperationFn = async (args, spec) => {
|
|
351
|
-
var _a;
|
|
352
266
|
let currentRawResponse = undefined;
|
|
353
|
-
const providedCallback =
|
|
267
|
+
const providedCallback = args.options?.onResponse;
|
|
354
268
|
const callback = (rawResponse, flatResponse) => {
|
|
355
269
|
currentRawResponse = rawResponse;
|
|
356
|
-
providedCallback
|
|
270
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
271
|
+
};
|
|
272
|
+
const updatedArgs = {
|
|
273
|
+
...args,
|
|
274
|
+
options: {
|
|
275
|
+
...args.options,
|
|
276
|
+
onResponse: callback,
|
|
277
|
+
},
|
|
357
278
|
};
|
|
358
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
359
279
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
360
280
|
return {
|
|
361
281
|
flatResponse,
|
|
@@ -372,8 +292,8 @@ export class DeploymentsImpl {
|
|
|
372
292
|
spec: deleteAtScopeOperationSpec,
|
|
373
293
|
});
|
|
374
294
|
const poller = await createHttpPoller(lro, {
|
|
375
|
-
restoreFrom: options
|
|
376
|
-
intervalInMs: options
|
|
295
|
+
restoreFrom: options?.resumeFrom,
|
|
296
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
377
297
|
});
|
|
378
298
|
await poller.poll();
|
|
379
299
|
return poller;
|
|
@@ -415,14 +335,19 @@ export class DeploymentsImpl {
|
|
|
415
335
|
return this.client.sendOperationRequest(args, spec);
|
|
416
336
|
};
|
|
417
337
|
const sendOperationFn = async (args, spec) => {
|
|
418
|
-
var _a;
|
|
419
338
|
let currentRawResponse = undefined;
|
|
420
|
-
const providedCallback =
|
|
339
|
+
const providedCallback = args.options?.onResponse;
|
|
421
340
|
const callback = (rawResponse, flatResponse) => {
|
|
422
341
|
currentRawResponse = rawResponse;
|
|
423
|
-
providedCallback
|
|
342
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
343
|
+
};
|
|
344
|
+
const updatedArgs = {
|
|
345
|
+
...args,
|
|
346
|
+
options: {
|
|
347
|
+
...args.options,
|
|
348
|
+
onResponse: callback,
|
|
349
|
+
},
|
|
424
350
|
};
|
|
425
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
426
351
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
427
352
|
return {
|
|
428
353
|
flatResponse,
|
|
@@ -439,8 +364,8 @@ export class DeploymentsImpl {
|
|
|
439
364
|
spec: createOrUpdateAtScopeOperationSpec,
|
|
440
365
|
});
|
|
441
366
|
const poller = await createHttpPoller(lro, {
|
|
442
|
-
restoreFrom: options
|
|
443
|
-
intervalInMs: options
|
|
367
|
+
restoreFrom: options?.resumeFrom,
|
|
368
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
444
369
|
});
|
|
445
370
|
await poller.poll();
|
|
446
371
|
return poller;
|
|
@@ -489,14 +414,19 @@ export class DeploymentsImpl {
|
|
|
489
414
|
return this.client.sendOperationRequest(args, spec);
|
|
490
415
|
};
|
|
491
416
|
const sendOperationFn = async (args, spec) => {
|
|
492
|
-
var _a;
|
|
493
417
|
let currentRawResponse = undefined;
|
|
494
|
-
const providedCallback =
|
|
418
|
+
const providedCallback = args.options?.onResponse;
|
|
495
419
|
const callback = (rawResponse, flatResponse) => {
|
|
496
420
|
currentRawResponse = rawResponse;
|
|
497
|
-
providedCallback
|
|
421
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
422
|
+
};
|
|
423
|
+
const updatedArgs = {
|
|
424
|
+
...args,
|
|
425
|
+
options: {
|
|
426
|
+
...args.options,
|
|
427
|
+
onResponse: callback,
|
|
428
|
+
},
|
|
498
429
|
};
|
|
499
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
500
430
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
501
431
|
return {
|
|
502
432
|
flatResponse,
|
|
@@ -513,8 +443,8 @@ export class DeploymentsImpl {
|
|
|
513
443
|
spec: validateAtScopeOperationSpec,
|
|
514
444
|
});
|
|
515
445
|
const poller = await createHttpPoller(lro, {
|
|
516
|
-
restoreFrom: options
|
|
517
|
-
intervalInMs: options
|
|
446
|
+
restoreFrom: options?.resumeFrom,
|
|
447
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
518
448
|
});
|
|
519
449
|
await poller.poll();
|
|
520
450
|
return poller;
|
|
@@ -564,14 +494,19 @@ export class DeploymentsImpl {
|
|
|
564
494
|
return this.client.sendOperationRequest(args, spec);
|
|
565
495
|
};
|
|
566
496
|
const sendOperationFn = async (args, spec) => {
|
|
567
|
-
var _a;
|
|
568
497
|
let currentRawResponse = undefined;
|
|
569
|
-
const providedCallback =
|
|
498
|
+
const providedCallback = args.options?.onResponse;
|
|
570
499
|
const callback = (rawResponse, flatResponse) => {
|
|
571
500
|
currentRawResponse = rawResponse;
|
|
572
|
-
providedCallback
|
|
501
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
502
|
+
};
|
|
503
|
+
const updatedArgs = {
|
|
504
|
+
...args,
|
|
505
|
+
options: {
|
|
506
|
+
...args.options,
|
|
507
|
+
onResponse: callback,
|
|
508
|
+
},
|
|
573
509
|
};
|
|
574
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
575
510
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
576
511
|
return {
|
|
577
512
|
flatResponse,
|
|
@@ -588,8 +523,8 @@ export class DeploymentsImpl {
|
|
|
588
523
|
spec: deleteAtTenantScopeOperationSpec,
|
|
589
524
|
});
|
|
590
525
|
const poller = await createHttpPoller(lro, {
|
|
591
|
-
restoreFrom: options
|
|
592
|
-
intervalInMs: options
|
|
526
|
+
restoreFrom: options?.resumeFrom,
|
|
527
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
593
528
|
});
|
|
594
529
|
await poller.poll();
|
|
595
530
|
return poller;
|
|
@@ -628,14 +563,19 @@ export class DeploymentsImpl {
|
|
|
628
563
|
return this.client.sendOperationRequest(args, spec);
|
|
629
564
|
};
|
|
630
565
|
const sendOperationFn = async (args, spec) => {
|
|
631
|
-
var _a;
|
|
632
566
|
let currentRawResponse = undefined;
|
|
633
|
-
const providedCallback =
|
|
567
|
+
const providedCallback = args.options?.onResponse;
|
|
634
568
|
const callback = (rawResponse, flatResponse) => {
|
|
635
569
|
currentRawResponse = rawResponse;
|
|
636
|
-
providedCallback
|
|
570
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
571
|
+
};
|
|
572
|
+
const updatedArgs = {
|
|
573
|
+
...args,
|
|
574
|
+
options: {
|
|
575
|
+
...args.options,
|
|
576
|
+
onResponse: callback,
|
|
577
|
+
},
|
|
637
578
|
};
|
|
638
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
639
579
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
640
580
|
return {
|
|
641
581
|
flatResponse,
|
|
@@ -652,8 +592,8 @@ export class DeploymentsImpl {
|
|
|
652
592
|
spec: createOrUpdateAtTenantScopeOperationSpec,
|
|
653
593
|
});
|
|
654
594
|
const poller = await createHttpPoller(lro, {
|
|
655
|
-
restoreFrom: options
|
|
656
|
-
intervalInMs: options
|
|
595
|
+
restoreFrom: options?.resumeFrom,
|
|
596
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
657
597
|
});
|
|
658
598
|
await poller.poll();
|
|
659
599
|
return poller;
|
|
@@ -698,14 +638,19 @@ export class DeploymentsImpl {
|
|
|
698
638
|
return this.client.sendOperationRequest(args, spec);
|
|
699
639
|
};
|
|
700
640
|
const sendOperationFn = async (args, spec) => {
|
|
701
|
-
var _a;
|
|
702
641
|
let currentRawResponse = undefined;
|
|
703
|
-
const providedCallback =
|
|
642
|
+
const providedCallback = args.options?.onResponse;
|
|
704
643
|
const callback = (rawResponse, flatResponse) => {
|
|
705
644
|
currentRawResponse = rawResponse;
|
|
706
|
-
providedCallback
|
|
645
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
646
|
+
};
|
|
647
|
+
const updatedArgs = {
|
|
648
|
+
...args,
|
|
649
|
+
options: {
|
|
650
|
+
...args.options,
|
|
651
|
+
onResponse: callback,
|
|
652
|
+
},
|
|
707
653
|
};
|
|
708
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
709
654
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
710
655
|
return {
|
|
711
656
|
flatResponse,
|
|
@@ -722,8 +667,8 @@ export class DeploymentsImpl {
|
|
|
722
667
|
spec: validateAtTenantScopeOperationSpec,
|
|
723
668
|
});
|
|
724
669
|
const poller = await createHttpPoller(lro, {
|
|
725
|
-
restoreFrom: options
|
|
726
|
-
intervalInMs: options
|
|
670
|
+
restoreFrom: options?.resumeFrom,
|
|
671
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
727
672
|
});
|
|
728
673
|
await poller.poll();
|
|
729
674
|
return poller;
|
|
@@ -750,14 +695,19 @@ export class DeploymentsImpl {
|
|
|
750
695
|
return this.client.sendOperationRequest(args, spec);
|
|
751
696
|
};
|
|
752
697
|
const sendOperationFn = async (args, spec) => {
|
|
753
|
-
var _a;
|
|
754
698
|
let currentRawResponse = undefined;
|
|
755
|
-
const providedCallback =
|
|
699
|
+
const providedCallback = args.options?.onResponse;
|
|
756
700
|
const callback = (rawResponse, flatResponse) => {
|
|
757
701
|
currentRawResponse = rawResponse;
|
|
758
|
-
providedCallback
|
|
702
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
703
|
+
};
|
|
704
|
+
const updatedArgs = {
|
|
705
|
+
...args,
|
|
706
|
+
options: {
|
|
707
|
+
...args.options,
|
|
708
|
+
onResponse: callback,
|
|
709
|
+
},
|
|
759
710
|
};
|
|
760
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
761
711
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
762
712
|
return {
|
|
763
713
|
flatResponse,
|
|
@@ -774,8 +724,8 @@ export class DeploymentsImpl {
|
|
|
774
724
|
spec: whatIfAtTenantScopeOperationSpec,
|
|
775
725
|
});
|
|
776
726
|
const poller = await createHttpPoller(lro, {
|
|
777
|
-
restoreFrom: options
|
|
778
|
-
intervalInMs: options
|
|
727
|
+
restoreFrom: options?.resumeFrom,
|
|
728
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
779
729
|
resourceLocationConfig: "location",
|
|
780
730
|
});
|
|
781
731
|
await poller.poll();
|
|
@@ -823,14 +773,19 @@ export class DeploymentsImpl {
|
|
|
823
773
|
return this.client.sendOperationRequest(args, spec);
|
|
824
774
|
};
|
|
825
775
|
const sendOperationFn = async (args, spec) => {
|
|
826
|
-
var _a;
|
|
827
776
|
let currentRawResponse = undefined;
|
|
828
|
-
const providedCallback =
|
|
777
|
+
const providedCallback = args.options?.onResponse;
|
|
829
778
|
const callback = (rawResponse, flatResponse) => {
|
|
830
779
|
currentRawResponse = rawResponse;
|
|
831
|
-
providedCallback
|
|
780
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
781
|
+
};
|
|
782
|
+
const updatedArgs = {
|
|
783
|
+
...args,
|
|
784
|
+
options: {
|
|
785
|
+
...args.options,
|
|
786
|
+
onResponse: callback,
|
|
787
|
+
},
|
|
832
788
|
};
|
|
833
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
834
789
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
835
790
|
return {
|
|
836
791
|
flatResponse,
|
|
@@ -847,8 +802,8 @@ export class DeploymentsImpl {
|
|
|
847
802
|
spec: deleteAtManagementGroupScopeOperationSpec,
|
|
848
803
|
});
|
|
849
804
|
const poller = await createHttpPoller(lro, {
|
|
850
|
-
restoreFrom: options
|
|
851
|
-
intervalInMs: options
|
|
805
|
+
restoreFrom: options?.resumeFrom,
|
|
806
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
852
807
|
});
|
|
853
808
|
await poller.poll();
|
|
854
809
|
return poller;
|
|
@@ -890,14 +845,19 @@ export class DeploymentsImpl {
|
|
|
890
845
|
return this.client.sendOperationRequest(args, spec);
|
|
891
846
|
};
|
|
892
847
|
const sendOperationFn = async (args, spec) => {
|
|
893
|
-
var _a;
|
|
894
848
|
let currentRawResponse = undefined;
|
|
895
|
-
const providedCallback =
|
|
849
|
+
const providedCallback = args.options?.onResponse;
|
|
896
850
|
const callback = (rawResponse, flatResponse) => {
|
|
897
851
|
currentRawResponse = rawResponse;
|
|
898
|
-
providedCallback
|
|
852
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
853
|
+
};
|
|
854
|
+
const updatedArgs = {
|
|
855
|
+
...args,
|
|
856
|
+
options: {
|
|
857
|
+
...args.options,
|
|
858
|
+
onResponse: callback,
|
|
859
|
+
},
|
|
899
860
|
};
|
|
900
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
901
861
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
902
862
|
return {
|
|
903
863
|
flatResponse,
|
|
@@ -914,8 +874,8 @@ export class DeploymentsImpl {
|
|
|
914
874
|
spec: createOrUpdateAtManagementGroupScopeOperationSpec,
|
|
915
875
|
});
|
|
916
876
|
const poller = await createHttpPoller(lro, {
|
|
917
|
-
restoreFrom: options
|
|
918
|
-
intervalInMs: options
|
|
877
|
+
restoreFrom: options?.resumeFrom,
|
|
878
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
919
879
|
});
|
|
920
880
|
await poller.poll();
|
|
921
881
|
return poller;
|
|
@@ -964,14 +924,19 @@ export class DeploymentsImpl {
|
|
|
964
924
|
return this.client.sendOperationRequest(args, spec);
|
|
965
925
|
};
|
|
966
926
|
const sendOperationFn = async (args, spec) => {
|
|
967
|
-
var _a;
|
|
968
927
|
let currentRawResponse = undefined;
|
|
969
|
-
const providedCallback =
|
|
928
|
+
const providedCallback = args.options?.onResponse;
|
|
970
929
|
const callback = (rawResponse, flatResponse) => {
|
|
971
930
|
currentRawResponse = rawResponse;
|
|
972
|
-
providedCallback
|
|
931
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
932
|
+
};
|
|
933
|
+
const updatedArgs = {
|
|
934
|
+
...args,
|
|
935
|
+
options: {
|
|
936
|
+
...args.options,
|
|
937
|
+
onResponse: callback,
|
|
938
|
+
},
|
|
973
939
|
};
|
|
974
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
975
940
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
976
941
|
return {
|
|
977
942
|
flatResponse,
|
|
@@ -988,8 +953,8 @@ export class DeploymentsImpl {
|
|
|
988
953
|
spec: validateAtManagementGroupScopeOperationSpec,
|
|
989
954
|
});
|
|
990
955
|
const poller = await createHttpPoller(lro, {
|
|
991
|
-
restoreFrom: options
|
|
992
|
-
intervalInMs: options
|
|
956
|
+
restoreFrom: options?.resumeFrom,
|
|
957
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
993
958
|
});
|
|
994
959
|
await poller.poll();
|
|
995
960
|
return poller;
|
|
@@ -1019,14 +984,19 @@ export class DeploymentsImpl {
|
|
|
1019
984
|
return this.client.sendOperationRequest(args, spec);
|
|
1020
985
|
};
|
|
1021
986
|
const sendOperationFn = async (args, spec) => {
|
|
1022
|
-
var _a;
|
|
1023
987
|
let currentRawResponse = undefined;
|
|
1024
|
-
const providedCallback =
|
|
988
|
+
const providedCallback = args.options?.onResponse;
|
|
1025
989
|
const callback = (rawResponse, flatResponse) => {
|
|
1026
990
|
currentRawResponse = rawResponse;
|
|
1027
|
-
providedCallback
|
|
991
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
992
|
+
};
|
|
993
|
+
const updatedArgs = {
|
|
994
|
+
...args,
|
|
995
|
+
options: {
|
|
996
|
+
...args.options,
|
|
997
|
+
onResponse: callback,
|
|
998
|
+
},
|
|
1028
999
|
};
|
|
1029
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1030
1000
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1031
1001
|
return {
|
|
1032
1002
|
flatResponse,
|
|
@@ -1043,8 +1013,8 @@ export class DeploymentsImpl {
|
|
|
1043
1013
|
spec: whatIfAtManagementGroupScopeOperationSpec,
|
|
1044
1014
|
});
|
|
1045
1015
|
const poller = await createHttpPoller(lro, {
|
|
1046
|
-
restoreFrom: options
|
|
1047
|
-
intervalInMs: options
|
|
1016
|
+
restoreFrom: options?.resumeFrom,
|
|
1017
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1048
1018
|
resourceLocationConfig: "location",
|
|
1049
1019
|
});
|
|
1050
1020
|
await poller.poll();
|
|
@@ -1095,14 +1065,19 @@ export class DeploymentsImpl {
|
|
|
1095
1065
|
return this.client.sendOperationRequest(args, spec);
|
|
1096
1066
|
};
|
|
1097
1067
|
const sendOperationFn = async (args, spec) => {
|
|
1098
|
-
var _a;
|
|
1099
1068
|
let currentRawResponse = undefined;
|
|
1100
|
-
const providedCallback =
|
|
1069
|
+
const providedCallback = args.options?.onResponse;
|
|
1101
1070
|
const callback = (rawResponse, flatResponse) => {
|
|
1102
1071
|
currentRawResponse = rawResponse;
|
|
1103
|
-
providedCallback
|
|
1072
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1073
|
+
};
|
|
1074
|
+
const updatedArgs = {
|
|
1075
|
+
...args,
|
|
1076
|
+
options: {
|
|
1077
|
+
...args.options,
|
|
1078
|
+
onResponse: callback,
|
|
1079
|
+
},
|
|
1104
1080
|
};
|
|
1105
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1106
1081
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1107
1082
|
return {
|
|
1108
1083
|
flatResponse,
|
|
@@ -1119,8 +1094,8 @@ export class DeploymentsImpl {
|
|
|
1119
1094
|
spec: deleteAtSubscriptionScopeOperationSpec,
|
|
1120
1095
|
});
|
|
1121
1096
|
const poller = await createHttpPoller(lro, {
|
|
1122
|
-
restoreFrom: options
|
|
1123
|
-
intervalInMs: options
|
|
1097
|
+
restoreFrom: options?.resumeFrom,
|
|
1098
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1124
1099
|
});
|
|
1125
1100
|
await poller.poll();
|
|
1126
1101
|
return poller;
|
|
@@ -1159,14 +1134,19 @@ export class DeploymentsImpl {
|
|
|
1159
1134
|
return this.client.sendOperationRequest(args, spec);
|
|
1160
1135
|
};
|
|
1161
1136
|
const sendOperationFn = async (args, spec) => {
|
|
1162
|
-
var _a;
|
|
1163
1137
|
let currentRawResponse = undefined;
|
|
1164
|
-
const providedCallback =
|
|
1138
|
+
const providedCallback = args.options?.onResponse;
|
|
1165
1139
|
const callback = (rawResponse, flatResponse) => {
|
|
1166
1140
|
currentRawResponse = rawResponse;
|
|
1167
|
-
providedCallback
|
|
1141
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1142
|
+
};
|
|
1143
|
+
const updatedArgs = {
|
|
1144
|
+
...args,
|
|
1145
|
+
options: {
|
|
1146
|
+
...args.options,
|
|
1147
|
+
onResponse: callback,
|
|
1148
|
+
},
|
|
1168
1149
|
};
|
|
1169
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1170
1150
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1171
1151
|
return {
|
|
1172
1152
|
flatResponse,
|
|
@@ -1183,8 +1163,8 @@ export class DeploymentsImpl {
|
|
|
1183
1163
|
spec: createOrUpdateAtSubscriptionScopeOperationSpec,
|
|
1184
1164
|
});
|
|
1185
1165
|
const poller = await createHttpPoller(lro, {
|
|
1186
|
-
restoreFrom: options
|
|
1187
|
-
intervalInMs: options
|
|
1166
|
+
restoreFrom: options?.resumeFrom,
|
|
1167
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1188
1168
|
});
|
|
1189
1169
|
await poller.poll();
|
|
1190
1170
|
return poller;
|
|
@@ -1229,14 +1209,19 @@ export class DeploymentsImpl {
|
|
|
1229
1209
|
return this.client.sendOperationRequest(args, spec);
|
|
1230
1210
|
};
|
|
1231
1211
|
const sendOperationFn = async (args, spec) => {
|
|
1232
|
-
var _a;
|
|
1233
1212
|
let currentRawResponse = undefined;
|
|
1234
|
-
const providedCallback =
|
|
1213
|
+
const providedCallback = args.options?.onResponse;
|
|
1235
1214
|
const callback = (rawResponse, flatResponse) => {
|
|
1236
1215
|
currentRawResponse = rawResponse;
|
|
1237
|
-
providedCallback
|
|
1216
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1217
|
+
};
|
|
1218
|
+
const updatedArgs = {
|
|
1219
|
+
...args,
|
|
1220
|
+
options: {
|
|
1221
|
+
...args.options,
|
|
1222
|
+
onResponse: callback,
|
|
1223
|
+
},
|
|
1238
1224
|
};
|
|
1239
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1240
1225
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1241
1226
|
return {
|
|
1242
1227
|
flatResponse,
|
|
@@ -1253,8 +1238,8 @@ export class DeploymentsImpl {
|
|
|
1253
1238
|
spec: validateAtSubscriptionScopeOperationSpec,
|
|
1254
1239
|
});
|
|
1255
1240
|
const poller = await createHttpPoller(lro, {
|
|
1256
|
-
restoreFrom: options
|
|
1257
|
-
intervalInMs: options
|
|
1241
|
+
restoreFrom: options?.resumeFrom,
|
|
1242
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1258
1243
|
});
|
|
1259
1244
|
await poller.poll();
|
|
1260
1245
|
return poller;
|
|
@@ -1281,14 +1266,19 @@ export class DeploymentsImpl {
|
|
|
1281
1266
|
return this.client.sendOperationRequest(args, spec);
|
|
1282
1267
|
};
|
|
1283
1268
|
const sendOperationFn = async (args, spec) => {
|
|
1284
|
-
var _a;
|
|
1285
1269
|
let currentRawResponse = undefined;
|
|
1286
|
-
const providedCallback =
|
|
1270
|
+
const providedCallback = args.options?.onResponse;
|
|
1287
1271
|
const callback = (rawResponse, flatResponse) => {
|
|
1288
1272
|
currentRawResponse = rawResponse;
|
|
1289
|
-
providedCallback
|
|
1273
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1274
|
+
};
|
|
1275
|
+
const updatedArgs = {
|
|
1276
|
+
...args,
|
|
1277
|
+
options: {
|
|
1278
|
+
...args.options,
|
|
1279
|
+
onResponse: callback,
|
|
1280
|
+
},
|
|
1290
1281
|
};
|
|
1291
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1292
1282
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1293
1283
|
return {
|
|
1294
1284
|
flatResponse,
|
|
@@ -1305,8 +1295,8 @@ export class DeploymentsImpl {
|
|
|
1305
1295
|
spec: whatIfAtSubscriptionScopeOperationSpec,
|
|
1306
1296
|
});
|
|
1307
1297
|
const poller = await createHttpPoller(lro, {
|
|
1308
|
-
restoreFrom: options
|
|
1309
|
-
intervalInMs: options
|
|
1298
|
+
restoreFrom: options?.resumeFrom,
|
|
1299
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1310
1300
|
resourceLocationConfig: "location",
|
|
1311
1301
|
});
|
|
1312
1302
|
await poller.poll();
|
|
@@ -1356,14 +1346,19 @@ export class DeploymentsImpl {
|
|
|
1356
1346
|
return this.client.sendOperationRequest(args, spec);
|
|
1357
1347
|
};
|
|
1358
1348
|
const sendOperationFn = async (args, spec) => {
|
|
1359
|
-
var _a;
|
|
1360
1349
|
let currentRawResponse = undefined;
|
|
1361
|
-
const providedCallback =
|
|
1350
|
+
const providedCallback = args.options?.onResponse;
|
|
1362
1351
|
const callback = (rawResponse, flatResponse) => {
|
|
1363
1352
|
currentRawResponse = rawResponse;
|
|
1364
|
-
providedCallback
|
|
1353
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1354
|
+
};
|
|
1355
|
+
const updatedArgs = {
|
|
1356
|
+
...args,
|
|
1357
|
+
options: {
|
|
1358
|
+
...args.options,
|
|
1359
|
+
onResponse: callback,
|
|
1360
|
+
},
|
|
1365
1361
|
};
|
|
1366
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1367
1362
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1368
1363
|
return {
|
|
1369
1364
|
flatResponse,
|
|
@@ -1380,8 +1375,8 @@ export class DeploymentsImpl {
|
|
|
1380
1375
|
spec: deleteOperationSpec,
|
|
1381
1376
|
});
|
|
1382
1377
|
const poller = await createHttpPoller(lro, {
|
|
1383
|
-
restoreFrom: options
|
|
1384
|
-
intervalInMs: options
|
|
1378
|
+
restoreFrom: options?.resumeFrom,
|
|
1379
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1385
1380
|
});
|
|
1386
1381
|
await poller.poll();
|
|
1387
1382
|
return poller;
|
|
@@ -1427,14 +1422,19 @@ export class DeploymentsImpl {
|
|
|
1427
1422
|
return this.client.sendOperationRequest(args, spec);
|
|
1428
1423
|
};
|
|
1429
1424
|
const sendOperationFn = async (args, spec) => {
|
|
1430
|
-
var _a;
|
|
1431
1425
|
let currentRawResponse = undefined;
|
|
1432
|
-
const providedCallback =
|
|
1426
|
+
const providedCallback = args.options?.onResponse;
|
|
1433
1427
|
const callback = (rawResponse, flatResponse) => {
|
|
1434
1428
|
currentRawResponse = rawResponse;
|
|
1435
|
-
providedCallback
|
|
1429
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1430
|
+
};
|
|
1431
|
+
const updatedArgs = {
|
|
1432
|
+
...args,
|
|
1433
|
+
options: {
|
|
1434
|
+
...args.options,
|
|
1435
|
+
onResponse: callback,
|
|
1436
|
+
},
|
|
1436
1437
|
};
|
|
1437
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1438
1438
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1439
1439
|
return {
|
|
1440
1440
|
flatResponse,
|
|
@@ -1451,8 +1451,8 @@ export class DeploymentsImpl {
|
|
|
1451
1451
|
spec: createOrUpdateOperationSpec,
|
|
1452
1452
|
});
|
|
1453
1453
|
const poller = await createHttpPoller(lro, {
|
|
1454
|
-
restoreFrom: options
|
|
1455
|
-
intervalInMs: options
|
|
1454
|
+
restoreFrom: options?.resumeFrom,
|
|
1455
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1456
1456
|
});
|
|
1457
1457
|
await poller.poll();
|
|
1458
1458
|
return poller;
|
|
@@ -1503,14 +1503,19 @@ export class DeploymentsImpl {
|
|
|
1503
1503
|
return this.client.sendOperationRequest(args, spec);
|
|
1504
1504
|
};
|
|
1505
1505
|
const sendOperationFn = async (args, spec) => {
|
|
1506
|
-
var _a;
|
|
1507
1506
|
let currentRawResponse = undefined;
|
|
1508
|
-
const providedCallback =
|
|
1507
|
+
const providedCallback = args.options?.onResponse;
|
|
1509
1508
|
const callback = (rawResponse, flatResponse) => {
|
|
1510
1509
|
currentRawResponse = rawResponse;
|
|
1511
|
-
providedCallback
|
|
1510
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1511
|
+
};
|
|
1512
|
+
const updatedArgs = {
|
|
1513
|
+
...args,
|
|
1514
|
+
options: {
|
|
1515
|
+
...args.options,
|
|
1516
|
+
onResponse: callback,
|
|
1517
|
+
},
|
|
1512
1518
|
};
|
|
1513
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1514
1519
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1515
1520
|
return {
|
|
1516
1521
|
flatResponse,
|
|
@@ -1527,8 +1532,8 @@ export class DeploymentsImpl {
|
|
|
1527
1532
|
spec: validateOperationSpec,
|
|
1528
1533
|
});
|
|
1529
1534
|
const poller = await createHttpPoller(lro, {
|
|
1530
|
-
restoreFrom: options
|
|
1531
|
-
intervalInMs: options
|
|
1535
|
+
restoreFrom: options?.resumeFrom,
|
|
1536
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1532
1537
|
});
|
|
1533
1538
|
await poller.poll();
|
|
1534
1539
|
return poller;
|
|
@@ -1559,14 +1564,19 @@ export class DeploymentsImpl {
|
|
|
1559
1564
|
return this.client.sendOperationRequest(args, spec);
|
|
1560
1565
|
};
|
|
1561
1566
|
const sendOperationFn = async (args, spec) => {
|
|
1562
|
-
var _a;
|
|
1563
1567
|
let currentRawResponse = undefined;
|
|
1564
|
-
const providedCallback =
|
|
1568
|
+
const providedCallback = args.options?.onResponse;
|
|
1565
1569
|
const callback = (rawResponse, flatResponse) => {
|
|
1566
1570
|
currentRawResponse = rawResponse;
|
|
1567
|
-
providedCallback
|
|
1571
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1572
|
+
};
|
|
1573
|
+
const updatedArgs = {
|
|
1574
|
+
...args,
|
|
1575
|
+
options: {
|
|
1576
|
+
...args.options,
|
|
1577
|
+
onResponse: callback,
|
|
1578
|
+
},
|
|
1568
1579
|
};
|
|
1569
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1570
1580
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1571
1581
|
return {
|
|
1572
1582
|
flatResponse,
|
|
@@ -1583,8 +1593,8 @@ export class DeploymentsImpl {
|
|
|
1583
1593
|
spec: whatIfOperationSpec,
|
|
1584
1594
|
});
|
|
1585
1595
|
const poller = await createHttpPoller(lro, {
|
|
1586
|
-
restoreFrom: options
|
|
1587
|
-
intervalInMs: options
|
|
1596
|
+
restoreFrom: options?.resumeFrom,
|
|
1597
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1588
1598
|
resourceLocationConfig: "location",
|
|
1589
1599
|
});
|
|
1590
1600
|
await poller.poll();
|