@azure/arm-resources-profile-2020-09-01-hybrid 2.1.1-alpha.20250718.1 → 2.1.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/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +29 -13
- 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 +320 -310
- package/dist/browser/operations/deployments.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/providers.js +45 -79
- package/dist/browser/operations/providers.js.map +1 -1
- package/dist/browser/operations/resourceGroups.js +45 -52
- package/dist/browser/operations/resourceGroups.js.map +1 -1
- package/dist/browser/operations/resources.js +133 -127
- package/dist/browser/operations/resources.js.map +1 -1
- package/dist/browser/operations/tagsOperations.js +23 -40
- package/dist/browser/operations/tagsOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/resourceManagementClient.js +20 -5
- package/dist/browser/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +29 -13
- 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 +320 -309
- package/dist/commonjs/operations/deployments.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/providers.js +45 -78
- package/dist/commonjs/operations/providers.js.map +1 -1
- package/dist/commonjs/operations/resourceGroups.js +45 -51
- package/dist/commonjs/operations/resourceGroups.js.map +1 -1
- package/dist/commonjs/operations/resources.js +133 -126
- package/dist/commonjs/operations/resources.js.map +1 -1
- package/dist/commonjs/operations/tagsOperations.js +23 -39
- package/dist/commonjs/operations/tagsOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/resourceManagementClient.js +20 -5
- package/dist/commonjs/resourceManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +29 -13
- 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 +320 -310
- package/dist/esm/operations/deployments.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/providers.js +45 -79
- package/dist/esm/operations/providers.js.map +1 -1
- package/dist/esm/operations/resourceGroups.js +45 -52
- package/dist/esm/operations/resourceGroups.js.map +1 -1
- package/dist/esm/operations/resources.js +133 -127
- package/dist/esm/operations/resources.js.map +1 -1
- package/dist/esm/operations/tagsOperations.js +23 -40
- package/dist/esm/operations/tagsOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/resourceManagementClient.js +20 -5
- package/dist/esm/resourceManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +29 -13
- 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 +320 -310
- package/dist/react-native/operations/deployments.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/providers.js +45 -79
- package/dist/react-native/operations/providers.js.map +1 -1
- package/dist/react-native/operations/resourceGroups.js +45 -52
- package/dist/react-native/operations/resourceGroups.js.map +1 -1
- package/dist/react-native/operations/resources.js +133 -127
- package/dist/react-native/operations/resources.js.map +1 -1
- package/dist/react-native/operations/tagsOperations.js +23 -40
- package/dist/react-native/operations/tagsOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/resourceManagementClient.js +20 -5
- package/dist/react-native/resourceManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-resources-profile-2020-09-01-hybrid-node.api.md +1593 -1593
|
@@ -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 { LroImpl } 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
|
-
});
|
|
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
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listAtScopePagingAll(scope, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
});
|
|
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
|
-
});
|
|
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
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listAtTenantScopePagingAll(options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
});
|
|
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
|
-
});
|
|
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
|
+
}
|
|
189
153
|
}
|
|
190
|
-
listAtManagementGroupScopePagingAll(groupId, options) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
});
|
|
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
|
-
});
|
|
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
|
+
}
|
|
250
197
|
}
|
|
251
|
-
listAtSubscriptionScopePagingAll(options) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
});
|
|
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
|
-
});
|
|
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
|
+
}
|
|
313
243
|
}
|
|
314
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
-
});
|
|
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 sendOperation = 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,
|
|
@@ -368,8 +288,8 @@ export class DeploymentsImpl {
|
|
|
368
288
|
};
|
|
369
289
|
const lro = new LroImpl(sendOperation, { scope, deploymentName, options }, deleteAtScopeOperationSpec);
|
|
370
290
|
const poller = new LroEngine(lro, {
|
|
371
|
-
resumeFrom: options
|
|
372
|
-
intervalInMs: options
|
|
291
|
+
resumeFrom: options?.resumeFrom,
|
|
292
|
+
intervalInMs: options?.updateIntervalInMs
|
|
373
293
|
});
|
|
374
294
|
await poller.poll();
|
|
375
295
|
return poller;
|
|
@@ -411,14 +331,19 @@ export class DeploymentsImpl {
|
|
|
411
331
|
return this.client.sendOperationRequest(args, spec);
|
|
412
332
|
};
|
|
413
333
|
const sendOperation = async (args, spec) => {
|
|
414
|
-
var _a;
|
|
415
334
|
let currentRawResponse = undefined;
|
|
416
|
-
const providedCallback =
|
|
335
|
+
const providedCallback = args.options?.onResponse;
|
|
417
336
|
const callback = (rawResponse, flatResponse) => {
|
|
418
337
|
currentRawResponse = rawResponse;
|
|
419
|
-
providedCallback
|
|
338
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
339
|
+
};
|
|
340
|
+
const updatedArgs = {
|
|
341
|
+
...args,
|
|
342
|
+
options: {
|
|
343
|
+
...args.options,
|
|
344
|
+
onResponse: callback
|
|
345
|
+
}
|
|
420
346
|
};
|
|
421
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
422
347
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
423
348
|
return {
|
|
424
349
|
flatResponse,
|
|
@@ -431,8 +356,8 @@ export class DeploymentsImpl {
|
|
|
431
356
|
};
|
|
432
357
|
const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, createOrUpdateAtScopeOperationSpec);
|
|
433
358
|
const poller = new LroEngine(lro, {
|
|
434
|
-
resumeFrom: options
|
|
435
|
-
intervalInMs: options
|
|
359
|
+
resumeFrom: options?.resumeFrom,
|
|
360
|
+
intervalInMs: options?.updateIntervalInMs
|
|
436
361
|
});
|
|
437
362
|
await poller.poll();
|
|
438
363
|
return poller;
|
|
@@ -481,14 +406,19 @@ export class DeploymentsImpl {
|
|
|
481
406
|
return this.client.sendOperationRequest(args, spec);
|
|
482
407
|
};
|
|
483
408
|
const sendOperation = async (args, spec) => {
|
|
484
|
-
var _a;
|
|
485
409
|
let currentRawResponse = undefined;
|
|
486
|
-
const providedCallback =
|
|
410
|
+
const providedCallback = args.options?.onResponse;
|
|
487
411
|
const callback = (rawResponse, flatResponse) => {
|
|
488
412
|
currentRawResponse = rawResponse;
|
|
489
|
-
providedCallback
|
|
413
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
414
|
+
};
|
|
415
|
+
const updatedArgs = {
|
|
416
|
+
...args,
|
|
417
|
+
options: {
|
|
418
|
+
...args.options,
|
|
419
|
+
onResponse: callback
|
|
420
|
+
}
|
|
490
421
|
};
|
|
491
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
492
422
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
493
423
|
return {
|
|
494
424
|
flatResponse,
|
|
@@ -501,8 +431,8 @@ export class DeploymentsImpl {
|
|
|
501
431
|
};
|
|
502
432
|
const lro = new LroImpl(sendOperation, { scope, deploymentName, parameters, options }, validateAtScopeOperationSpec);
|
|
503
433
|
const poller = new LroEngine(lro, {
|
|
504
|
-
resumeFrom: options
|
|
505
|
-
intervalInMs: options
|
|
434
|
+
resumeFrom: options?.resumeFrom,
|
|
435
|
+
intervalInMs: options?.updateIntervalInMs
|
|
506
436
|
});
|
|
507
437
|
await poller.poll();
|
|
508
438
|
return poller;
|
|
@@ -552,14 +482,19 @@ export class DeploymentsImpl {
|
|
|
552
482
|
return this.client.sendOperationRequest(args, spec);
|
|
553
483
|
};
|
|
554
484
|
const sendOperation = async (args, spec) => {
|
|
555
|
-
var _a;
|
|
556
485
|
let currentRawResponse = undefined;
|
|
557
|
-
const providedCallback =
|
|
486
|
+
const providedCallback = args.options?.onResponse;
|
|
558
487
|
const callback = (rawResponse, flatResponse) => {
|
|
559
488
|
currentRawResponse = rawResponse;
|
|
560
|
-
providedCallback
|
|
489
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
490
|
+
};
|
|
491
|
+
const updatedArgs = {
|
|
492
|
+
...args,
|
|
493
|
+
options: {
|
|
494
|
+
...args.options,
|
|
495
|
+
onResponse: callback
|
|
496
|
+
}
|
|
561
497
|
};
|
|
562
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
563
498
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
564
499
|
return {
|
|
565
500
|
flatResponse,
|
|
@@ -572,8 +507,8 @@ export class DeploymentsImpl {
|
|
|
572
507
|
};
|
|
573
508
|
const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtTenantScopeOperationSpec);
|
|
574
509
|
const poller = new LroEngine(lro, {
|
|
575
|
-
resumeFrom: options
|
|
576
|
-
intervalInMs: options
|
|
510
|
+
resumeFrom: options?.resumeFrom,
|
|
511
|
+
intervalInMs: options?.updateIntervalInMs
|
|
577
512
|
});
|
|
578
513
|
await poller.poll();
|
|
579
514
|
return poller;
|
|
@@ -612,14 +547,19 @@ export class DeploymentsImpl {
|
|
|
612
547
|
return this.client.sendOperationRequest(args, spec);
|
|
613
548
|
};
|
|
614
549
|
const sendOperation = async (args, spec) => {
|
|
615
|
-
var _a;
|
|
616
550
|
let currentRawResponse = undefined;
|
|
617
|
-
const providedCallback =
|
|
551
|
+
const providedCallback = args.options?.onResponse;
|
|
618
552
|
const callback = (rawResponse, flatResponse) => {
|
|
619
553
|
currentRawResponse = rawResponse;
|
|
620
|
-
providedCallback
|
|
554
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
555
|
+
};
|
|
556
|
+
const updatedArgs = {
|
|
557
|
+
...args,
|
|
558
|
+
options: {
|
|
559
|
+
...args.options,
|
|
560
|
+
onResponse: callback
|
|
561
|
+
}
|
|
621
562
|
};
|
|
622
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
623
563
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
624
564
|
return {
|
|
625
565
|
flatResponse,
|
|
@@ -632,8 +572,8 @@ export class DeploymentsImpl {
|
|
|
632
572
|
};
|
|
633
573
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtTenantScopeOperationSpec);
|
|
634
574
|
const poller = new LroEngine(lro, {
|
|
635
|
-
resumeFrom: options
|
|
636
|
-
intervalInMs: options
|
|
575
|
+
resumeFrom: options?.resumeFrom,
|
|
576
|
+
intervalInMs: options?.updateIntervalInMs
|
|
637
577
|
});
|
|
638
578
|
await poller.poll();
|
|
639
579
|
return poller;
|
|
@@ -678,14 +618,19 @@ export class DeploymentsImpl {
|
|
|
678
618
|
return this.client.sendOperationRequest(args, spec);
|
|
679
619
|
};
|
|
680
620
|
const sendOperation = async (args, spec) => {
|
|
681
|
-
var _a;
|
|
682
621
|
let currentRawResponse = undefined;
|
|
683
|
-
const providedCallback =
|
|
622
|
+
const providedCallback = args.options?.onResponse;
|
|
684
623
|
const callback = (rawResponse, flatResponse) => {
|
|
685
624
|
currentRawResponse = rawResponse;
|
|
686
|
-
providedCallback
|
|
625
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
626
|
+
};
|
|
627
|
+
const updatedArgs = {
|
|
628
|
+
...args,
|
|
629
|
+
options: {
|
|
630
|
+
...args.options,
|
|
631
|
+
onResponse: callback
|
|
632
|
+
}
|
|
687
633
|
};
|
|
688
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
689
634
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
690
635
|
return {
|
|
691
636
|
flatResponse,
|
|
@@ -698,8 +643,8 @@ export class DeploymentsImpl {
|
|
|
698
643
|
};
|
|
699
644
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtTenantScopeOperationSpec);
|
|
700
645
|
const poller = new LroEngine(lro, {
|
|
701
|
-
resumeFrom: options
|
|
702
|
-
intervalInMs: options
|
|
646
|
+
resumeFrom: options?.resumeFrom,
|
|
647
|
+
intervalInMs: options?.updateIntervalInMs
|
|
703
648
|
});
|
|
704
649
|
await poller.poll();
|
|
705
650
|
return poller;
|
|
@@ -726,14 +671,19 @@ export class DeploymentsImpl {
|
|
|
726
671
|
return this.client.sendOperationRequest(args, spec);
|
|
727
672
|
};
|
|
728
673
|
const sendOperation = async (args, spec) => {
|
|
729
|
-
var _a;
|
|
730
674
|
let currentRawResponse = undefined;
|
|
731
|
-
const providedCallback =
|
|
675
|
+
const providedCallback = args.options?.onResponse;
|
|
732
676
|
const callback = (rawResponse, flatResponse) => {
|
|
733
677
|
currentRawResponse = rawResponse;
|
|
734
|
-
providedCallback
|
|
678
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
679
|
+
};
|
|
680
|
+
const updatedArgs = {
|
|
681
|
+
...args,
|
|
682
|
+
options: {
|
|
683
|
+
...args.options,
|
|
684
|
+
onResponse: callback
|
|
685
|
+
}
|
|
735
686
|
};
|
|
736
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
737
687
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
738
688
|
return {
|
|
739
689
|
flatResponse,
|
|
@@ -746,8 +696,8 @@ export class DeploymentsImpl {
|
|
|
746
696
|
};
|
|
747
697
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtTenantScopeOperationSpec);
|
|
748
698
|
const poller = new LroEngine(lro, {
|
|
749
|
-
resumeFrom: options
|
|
750
|
-
intervalInMs: options
|
|
699
|
+
resumeFrom: options?.resumeFrom,
|
|
700
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
751
701
|
lroResourceLocationConfig: "location"
|
|
752
702
|
});
|
|
753
703
|
await poller.poll();
|
|
@@ -795,14 +745,19 @@ export class DeploymentsImpl {
|
|
|
795
745
|
return this.client.sendOperationRequest(args, spec);
|
|
796
746
|
};
|
|
797
747
|
const sendOperation = async (args, spec) => {
|
|
798
|
-
var _a;
|
|
799
748
|
let currentRawResponse = undefined;
|
|
800
|
-
const providedCallback =
|
|
749
|
+
const providedCallback = args.options?.onResponse;
|
|
801
750
|
const callback = (rawResponse, flatResponse) => {
|
|
802
751
|
currentRawResponse = rawResponse;
|
|
803
|
-
providedCallback
|
|
752
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
753
|
+
};
|
|
754
|
+
const updatedArgs = {
|
|
755
|
+
...args,
|
|
756
|
+
options: {
|
|
757
|
+
...args.options,
|
|
758
|
+
onResponse: callback
|
|
759
|
+
}
|
|
804
760
|
};
|
|
805
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
806
761
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
807
762
|
return {
|
|
808
763
|
flatResponse,
|
|
@@ -815,8 +770,8 @@ export class DeploymentsImpl {
|
|
|
815
770
|
};
|
|
816
771
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, options }, deleteAtManagementGroupScopeOperationSpec);
|
|
817
772
|
const poller = new LroEngine(lro, {
|
|
818
|
-
resumeFrom: options
|
|
819
|
-
intervalInMs: options
|
|
773
|
+
resumeFrom: options?.resumeFrom,
|
|
774
|
+
intervalInMs: options?.updateIntervalInMs
|
|
820
775
|
});
|
|
821
776
|
await poller.poll();
|
|
822
777
|
return poller;
|
|
@@ -858,14 +813,19 @@ export class DeploymentsImpl {
|
|
|
858
813
|
return this.client.sendOperationRequest(args, spec);
|
|
859
814
|
};
|
|
860
815
|
const sendOperation = async (args, spec) => {
|
|
861
|
-
var _a;
|
|
862
816
|
let currentRawResponse = undefined;
|
|
863
|
-
const providedCallback =
|
|
817
|
+
const providedCallback = args.options?.onResponse;
|
|
864
818
|
const callback = (rawResponse, flatResponse) => {
|
|
865
819
|
currentRawResponse = rawResponse;
|
|
866
|
-
providedCallback
|
|
820
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
821
|
+
};
|
|
822
|
+
const updatedArgs = {
|
|
823
|
+
...args,
|
|
824
|
+
options: {
|
|
825
|
+
...args.options,
|
|
826
|
+
onResponse: callback
|
|
827
|
+
}
|
|
867
828
|
};
|
|
868
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
869
829
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
870
830
|
return {
|
|
871
831
|
flatResponse,
|
|
@@ -878,8 +838,8 @@ export class DeploymentsImpl {
|
|
|
878
838
|
};
|
|
879
839
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, createOrUpdateAtManagementGroupScopeOperationSpec);
|
|
880
840
|
const poller = new LroEngine(lro, {
|
|
881
|
-
resumeFrom: options
|
|
882
|
-
intervalInMs: options
|
|
841
|
+
resumeFrom: options?.resumeFrom,
|
|
842
|
+
intervalInMs: options?.updateIntervalInMs
|
|
883
843
|
});
|
|
884
844
|
await poller.poll();
|
|
885
845
|
return poller;
|
|
@@ -928,14 +888,19 @@ export class DeploymentsImpl {
|
|
|
928
888
|
return this.client.sendOperationRequest(args, spec);
|
|
929
889
|
};
|
|
930
890
|
const sendOperation = async (args, spec) => {
|
|
931
|
-
var _a;
|
|
932
891
|
let currentRawResponse = undefined;
|
|
933
|
-
const providedCallback =
|
|
892
|
+
const providedCallback = args.options?.onResponse;
|
|
934
893
|
const callback = (rawResponse, flatResponse) => {
|
|
935
894
|
currentRawResponse = rawResponse;
|
|
936
|
-
providedCallback
|
|
895
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
896
|
+
};
|
|
897
|
+
const updatedArgs = {
|
|
898
|
+
...args,
|
|
899
|
+
options: {
|
|
900
|
+
...args.options,
|
|
901
|
+
onResponse: callback
|
|
902
|
+
}
|
|
937
903
|
};
|
|
938
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
939
904
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
940
905
|
return {
|
|
941
906
|
flatResponse,
|
|
@@ -948,8 +913,8 @@ export class DeploymentsImpl {
|
|
|
948
913
|
};
|
|
949
914
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, validateAtManagementGroupScopeOperationSpec);
|
|
950
915
|
const poller = new LroEngine(lro, {
|
|
951
|
-
resumeFrom: options
|
|
952
|
-
intervalInMs: options
|
|
916
|
+
resumeFrom: options?.resumeFrom,
|
|
917
|
+
intervalInMs: options?.updateIntervalInMs
|
|
953
918
|
});
|
|
954
919
|
await poller.poll();
|
|
955
920
|
return poller;
|
|
@@ -979,14 +944,19 @@ export class DeploymentsImpl {
|
|
|
979
944
|
return this.client.sendOperationRequest(args, spec);
|
|
980
945
|
};
|
|
981
946
|
const sendOperation = async (args, spec) => {
|
|
982
|
-
var _a;
|
|
983
947
|
let currentRawResponse = undefined;
|
|
984
|
-
const providedCallback =
|
|
948
|
+
const providedCallback = args.options?.onResponse;
|
|
985
949
|
const callback = (rawResponse, flatResponse) => {
|
|
986
950
|
currentRawResponse = rawResponse;
|
|
987
|
-
providedCallback
|
|
951
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
952
|
+
};
|
|
953
|
+
const updatedArgs = {
|
|
954
|
+
...args,
|
|
955
|
+
options: {
|
|
956
|
+
...args.options,
|
|
957
|
+
onResponse: callback
|
|
958
|
+
}
|
|
988
959
|
};
|
|
989
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
990
960
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
991
961
|
return {
|
|
992
962
|
flatResponse,
|
|
@@ -999,8 +969,8 @@ export class DeploymentsImpl {
|
|
|
999
969
|
};
|
|
1000
970
|
const lro = new LroImpl(sendOperation, { groupId, deploymentName, parameters, options }, whatIfAtManagementGroupScopeOperationSpec);
|
|
1001
971
|
const poller = new LroEngine(lro, {
|
|
1002
|
-
resumeFrom: options
|
|
1003
|
-
intervalInMs: options
|
|
972
|
+
resumeFrom: options?.resumeFrom,
|
|
973
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1004
974
|
lroResourceLocationConfig: "location"
|
|
1005
975
|
});
|
|
1006
976
|
await poller.poll();
|
|
@@ -1051,14 +1021,19 @@ export class DeploymentsImpl {
|
|
|
1051
1021
|
return this.client.sendOperationRequest(args, spec);
|
|
1052
1022
|
};
|
|
1053
1023
|
const sendOperation = async (args, spec) => {
|
|
1054
|
-
var _a;
|
|
1055
1024
|
let currentRawResponse = undefined;
|
|
1056
|
-
const providedCallback =
|
|
1025
|
+
const providedCallback = args.options?.onResponse;
|
|
1057
1026
|
const callback = (rawResponse, flatResponse) => {
|
|
1058
1027
|
currentRawResponse = rawResponse;
|
|
1059
|
-
providedCallback
|
|
1028
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1029
|
+
};
|
|
1030
|
+
const updatedArgs = {
|
|
1031
|
+
...args,
|
|
1032
|
+
options: {
|
|
1033
|
+
...args.options,
|
|
1034
|
+
onResponse: callback
|
|
1035
|
+
}
|
|
1060
1036
|
};
|
|
1061
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1062
1037
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1063
1038
|
return {
|
|
1064
1039
|
flatResponse,
|
|
@@ -1071,8 +1046,8 @@ export class DeploymentsImpl {
|
|
|
1071
1046
|
};
|
|
1072
1047
|
const lro = new LroImpl(sendOperation, { deploymentName, options }, deleteAtSubscriptionScopeOperationSpec);
|
|
1073
1048
|
const poller = new LroEngine(lro, {
|
|
1074
|
-
resumeFrom: options
|
|
1075
|
-
intervalInMs: options
|
|
1049
|
+
resumeFrom: options?.resumeFrom,
|
|
1050
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1076
1051
|
});
|
|
1077
1052
|
await poller.poll();
|
|
1078
1053
|
return poller;
|
|
@@ -1111,14 +1086,19 @@ export class DeploymentsImpl {
|
|
|
1111
1086
|
return this.client.sendOperationRequest(args, spec);
|
|
1112
1087
|
};
|
|
1113
1088
|
const sendOperation = async (args, spec) => {
|
|
1114
|
-
var _a;
|
|
1115
1089
|
let currentRawResponse = undefined;
|
|
1116
|
-
const providedCallback =
|
|
1090
|
+
const providedCallback = args.options?.onResponse;
|
|
1117
1091
|
const callback = (rawResponse, flatResponse) => {
|
|
1118
1092
|
currentRawResponse = rawResponse;
|
|
1119
|
-
providedCallback
|
|
1093
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1094
|
+
};
|
|
1095
|
+
const updatedArgs = {
|
|
1096
|
+
...args,
|
|
1097
|
+
options: {
|
|
1098
|
+
...args.options,
|
|
1099
|
+
onResponse: callback
|
|
1100
|
+
}
|
|
1120
1101
|
};
|
|
1121
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1122
1102
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1123
1103
|
return {
|
|
1124
1104
|
flatResponse,
|
|
@@ -1131,8 +1111,8 @@ export class DeploymentsImpl {
|
|
|
1131
1111
|
};
|
|
1132
1112
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, createOrUpdateAtSubscriptionScopeOperationSpec);
|
|
1133
1113
|
const poller = new LroEngine(lro, {
|
|
1134
|
-
resumeFrom: options
|
|
1135
|
-
intervalInMs: options
|
|
1114
|
+
resumeFrom: options?.resumeFrom,
|
|
1115
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1136
1116
|
});
|
|
1137
1117
|
await poller.poll();
|
|
1138
1118
|
return poller;
|
|
@@ -1177,14 +1157,19 @@ export class DeploymentsImpl {
|
|
|
1177
1157
|
return this.client.sendOperationRequest(args, spec);
|
|
1178
1158
|
};
|
|
1179
1159
|
const sendOperation = async (args, spec) => {
|
|
1180
|
-
var _a;
|
|
1181
1160
|
let currentRawResponse = undefined;
|
|
1182
|
-
const providedCallback =
|
|
1161
|
+
const providedCallback = args.options?.onResponse;
|
|
1183
1162
|
const callback = (rawResponse, flatResponse) => {
|
|
1184
1163
|
currentRawResponse = rawResponse;
|
|
1185
|
-
providedCallback
|
|
1164
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1165
|
+
};
|
|
1166
|
+
const updatedArgs = {
|
|
1167
|
+
...args,
|
|
1168
|
+
options: {
|
|
1169
|
+
...args.options,
|
|
1170
|
+
onResponse: callback
|
|
1171
|
+
}
|
|
1186
1172
|
};
|
|
1187
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1188
1173
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1189
1174
|
return {
|
|
1190
1175
|
flatResponse,
|
|
@@ -1197,8 +1182,8 @@ export class DeploymentsImpl {
|
|
|
1197
1182
|
};
|
|
1198
1183
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, validateAtSubscriptionScopeOperationSpec);
|
|
1199
1184
|
const poller = new LroEngine(lro, {
|
|
1200
|
-
resumeFrom: options
|
|
1201
|
-
intervalInMs: options
|
|
1185
|
+
resumeFrom: options?.resumeFrom,
|
|
1186
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1202
1187
|
});
|
|
1203
1188
|
await poller.poll();
|
|
1204
1189
|
return poller;
|
|
@@ -1225,14 +1210,19 @@ export class DeploymentsImpl {
|
|
|
1225
1210
|
return this.client.sendOperationRequest(args, spec);
|
|
1226
1211
|
};
|
|
1227
1212
|
const sendOperation = async (args, spec) => {
|
|
1228
|
-
var _a;
|
|
1229
1213
|
let currentRawResponse = undefined;
|
|
1230
|
-
const providedCallback =
|
|
1214
|
+
const providedCallback = args.options?.onResponse;
|
|
1231
1215
|
const callback = (rawResponse, flatResponse) => {
|
|
1232
1216
|
currentRawResponse = rawResponse;
|
|
1233
|
-
providedCallback
|
|
1217
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1218
|
+
};
|
|
1219
|
+
const updatedArgs = {
|
|
1220
|
+
...args,
|
|
1221
|
+
options: {
|
|
1222
|
+
...args.options,
|
|
1223
|
+
onResponse: callback
|
|
1224
|
+
}
|
|
1234
1225
|
};
|
|
1235
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1236
1226
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1237
1227
|
return {
|
|
1238
1228
|
flatResponse,
|
|
@@ -1245,8 +1235,8 @@ export class DeploymentsImpl {
|
|
|
1245
1235
|
};
|
|
1246
1236
|
const lro = new LroImpl(sendOperation, { deploymentName, parameters, options }, whatIfAtSubscriptionScopeOperationSpec);
|
|
1247
1237
|
const poller = new LroEngine(lro, {
|
|
1248
|
-
resumeFrom: options
|
|
1249
|
-
intervalInMs: options
|
|
1238
|
+
resumeFrom: options?.resumeFrom,
|
|
1239
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1250
1240
|
lroResourceLocationConfig: "location"
|
|
1251
1241
|
});
|
|
1252
1242
|
await poller.poll();
|
|
@@ -1296,14 +1286,19 @@ export class DeploymentsImpl {
|
|
|
1296
1286
|
return this.client.sendOperationRequest(args, spec);
|
|
1297
1287
|
};
|
|
1298
1288
|
const sendOperation = async (args, spec) => {
|
|
1299
|
-
var _a;
|
|
1300
1289
|
let currentRawResponse = undefined;
|
|
1301
|
-
const providedCallback =
|
|
1290
|
+
const providedCallback = args.options?.onResponse;
|
|
1302
1291
|
const callback = (rawResponse, flatResponse) => {
|
|
1303
1292
|
currentRawResponse = rawResponse;
|
|
1304
|
-
providedCallback
|
|
1293
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1294
|
+
};
|
|
1295
|
+
const updatedArgs = {
|
|
1296
|
+
...args,
|
|
1297
|
+
options: {
|
|
1298
|
+
...args.options,
|
|
1299
|
+
onResponse: callback
|
|
1300
|
+
}
|
|
1305
1301
|
};
|
|
1306
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1307
1302
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1308
1303
|
return {
|
|
1309
1304
|
flatResponse,
|
|
@@ -1316,8 +1311,8 @@ export class DeploymentsImpl {
|
|
|
1316
1311
|
};
|
|
1317
1312
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, options }, deleteOperationSpec);
|
|
1318
1313
|
const poller = new LroEngine(lro, {
|
|
1319
|
-
resumeFrom: options
|
|
1320
|
-
intervalInMs: options
|
|
1314
|
+
resumeFrom: options?.resumeFrom,
|
|
1315
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1321
1316
|
});
|
|
1322
1317
|
await poller.poll();
|
|
1323
1318
|
return poller;
|
|
@@ -1363,14 +1358,19 @@ export class DeploymentsImpl {
|
|
|
1363
1358
|
return this.client.sendOperationRequest(args, spec);
|
|
1364
1359
|
};
|
|
1365
1360
|
const sendOperation = async (args, spec) => {
|
|
1366
|
-
var _a;
|
|
1367
1361
|
let currentRawResponse = undefined;
|
|
1368
|
-
const providedCallback =
|
|
1362
|
+
const providedCallback = args.options?.onResponse;
|
|
1369
1363
|
const callback = (rawResponse, flatResponse) => {
|
|
1370
1364
|
currentRawResponse = rawResponse;
|
|
1371
|
-
providedCallback
|
|
1365
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1366
|
+
};
|
|
1367
|
+
const updatedArgs = {
|
|
1368
|
+
...args,
|
|
1369
|
+
options: {
|
|
1370
|
+
...args.options,
|
|
1371
|
+
onResponse: callback
|
|
1372
|
+
}
|
|
1372
1373
|
};
|
|
1373
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1374
1374
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1375
1375
|
return {
|
|
1376
1376
|
flatResponse,
|
|
@@ -1383,8 +1383,8 @@ export class DeploymentsImpl {
|
|
|
1383
1383
|
};
|
|
1384
1384
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, createOrUpdateOperationSpec);
|
|
1385
1385
|
const poller = new LroEngine(lro, {
|
|
1386
|
-
resumeFrom: options
|
|
1387
|
-
intervalInMs: options
|
|
1386
|
+
resumeFrom: options?.resumeFrom,
|
|
1387
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1388
1388
|
});
|
|
1389
1389
|
await poller.poll();
|
|
1390
1390
|
return poller;
|
|
@@ -1435,14 +1435,19 @@ export class DeploymentsImpl {
|
|
|
1435
1435
|
return this.client.sendOperationRequest(args, spec);
|
|
1436
1436
|
};
|
|
1437
1437
|
const sendOperation = async (args, spec) => {
|
|
1438
|
-
var _a;
|
|
1439
1438
|
let currentRawResponse = undefined;
|
|
1440
|
-
const providedCallback =
|
|
1439
|
+
const providedCallback = args.options?.onResponse;
|
|
1441
1440
|
const callback = (rawResponse, flatResponse) => {
|
|
1442
1441
|
currentRawResponse = rawResponse;
|
|
1443
|
-
providedCallback
|
|
1442
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1443
|
+
};
|
|
1444
|
+
const updatedArgs = {
|
|
1445
|
+
...args,
|
|
1446
|
+
options: {
|
|
1447
|
+
...args.options,
|
|
1448
|
+
onResponse: callback
|
|
1449
|
+
}
|
|
1444
1450
|
};
|
|
1445
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1446
1451
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1447
1452
|
return {
|
|
1448
1453
|
flatResponse,
|
|
@@ -1455,8 +1460,8 @@ export class DeploymentsImpl {
|
|
|
1455
1460
|
};
|
|
1456
1461
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, validateOperationSpec);
|
|
1457
1462
|
const poller = new LroEngine(lro, {
|
|
1458
|
-
resumeFrom: options
|
|
1459
|
-
intervalInMs: options
|
|
1463
|
+
resumeFrom: options?.resumeFrom,
|
|
1464
|
+
intervalInMs: options?.updateIntervalInMs
|
|
1460
1465
|
});
|
|
1461
1466
|
await poller.poll();
|
|
1462
1467
|
return poller;
|
|
@@ -1487,14 +1492,19 @@ export class DeploymentsImpl {
|
|
|
1487
1492
|
return this.client.sendOperationRequest(args, spec);
|
|
1488
1493
|
};
|
|
1489
1494
|
const sendOperation = async (args, spec) => {
|
|
1490
|
-
var _a;
|
|
1491
1495
|
let currentRawResponse = undefined;
|
|
1492
|
-
const providedCallback =
|
|
1496
|
+
const providedCallback = args.options?.onResponse;
|
|
1493
1497
|
const callback = (rawResponse, flatResponse) => {
|
|
1494
1498
|
currentRawResponse = rawResponse;
|
|
1495
|
-
providedCallback
|
|
1499
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
1500
|
+
};
|
|
1501
|
+
const updatedArgs = {
|
|
1502
|
+
...args,
|
|
1503
|
+
options: {
|
|
1504
|
+
...args.options,
|
|
1505
|
+
onResponse: callback
|
|
1506
|
+
}
|
|
1496
1507
|
};
|
|
1497
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1498
1508
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
1499
1509
|
return {
|
|
1500
1510
|
flatResponse,
|
|
@@ -1507,8 +1517,8 @@ export class DeploymentsImpl {
|
|
|
1507
1517
|
};
|
|
1508
1518
|
const lro = new LroImpl(sendOperation, { resourceGroupName, deploymentName, parameters, options }, whatIfOperationSpec);
|
|
1509
1519
|
const poller = new LroEngine(lro, {
|
|
1510
|
-
resumeFrom: options
|
|
1511
|
-
intervalInMs: options
|
|
1520
|
+
resumeFrom: options?.resumeFrom,
|
|
1521
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
1512
1522
|
lroResourceLocationConfig: "location"
|
|
1513
1523
|
});
|
|
1514
1524
|
await poller.poll();
|