@azure/arm-confluent 3.1.1-alpha.20250619.1 → 3.1.1-alpha.20250729.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/confluentManagementClient.js +18 -5
- package/dist/browser/confluentManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/operations/access.js +1 -0
- package/dist/browser/operations/access.js.map +1 -1
- package/dist/browser/operations/marketplaceAgreements.js +23 -40
- package/dist/browser/operations/marketplaceAgreements.js.map +1 -1
- package/dist/browser/operations/organization.js +133 -208
- package/dist/browser/operations/organization.js.map +1 -1
- package/dist/browser/operations/organizationOperations.js +23 -40
- package/dist/browser/operations/organizationOperations.js.map +1 -1
- package/dist/browser/operations/validations.js +1 -0
- package/dist/browser/operations/validations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/confluentManagementClient.js +18 -5
- package/dist/commonjs/confluentManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/operations/access.js +1 -0
- package/dist/commonjs/operations/access.js.map +1 -1
- package/dist/commonjs/operations/marketplaceAgreements.js +23 -39
- package/dist/commonjs/operations/marketplaceAgreements.js.map +1 -1
- package/dist/commonjs/operations/organization.js +133 -207
- package/dist/commonjs/operations/organization.js.map +1 -1
- package/dist/commonjs/operations/organizationOperations.js +23 -39
- package/dist/commonjs/operations/organizationOperations.js.map +1 -1
- package/dist/commonjs/operations/validations.js +1 -0
- package/dist/commonjs/operations/validations.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/confluentManagementClient.js +18 -5
- package/dist/esm/confluentManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/operations/access.js +1 -0
- package/dist/esm/operations/access.js.map +1 -1
- package/dist/esm/operations/marketplaceAgreements.js +23 -40
- package/dist/esm/operations/marketplaceAgreements.js.map +1 -1
- package/dist/esm/operations/organization.js +133 -208
- package/dist/esm/operations/organization.js.map +1 -1
- package/dist/esm/operations/organizationOperations.js +23 -40
- package/dist/esm/operations/organizationOperations.js.map +1 -1
- package/dist/esm/operations/validations.js +1 -0
- package/dist/esm/operations/validations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/confluentManagementClient.js +18 -5
- package/dist/react-native/confluentManagementClient.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/operations/access.js +1 -0
- package/dist/react-native/operations/access.js.map +1 -1
- package/dist/react-native/operations/marketplaceAgreements.js +23 -40
- package/dist/react-native/operations/marketplaceAgreements.js.map +1 -1
- package/dist/react-native/operations/organization.js +133 -208
- package/dist/react-native/operations/organization.js.map +1 -1
- package/dist/react-native/operations/organizationOperations.js +23 -40
- package/dist/react-native/operations/organizationOperations.js.map +1 -1
- package/dist/react-native/operations/validations.js +1 -0
- package/dist/react-native/operations/validations.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-confluent.api.md → arm-confluent-node.api.md} +0 -0
|
@@ -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 Organization operations. */
|
|
17
16
|
export class OrganizationImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Organization class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class OrganizationImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listBySubscription(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listBySubscriptionPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listBySubscriptionPagingAll(options) {
|
|
65
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List all Organizations under the specified resource group.
|
|
@@ -98,52 +81,35 @@ export class OrganizationImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Lists of all the environments in a organization
|
|
@@ -161,52 +127,35 @@ export class OrganizationImpl {
|
|
|
161
127
|
return this;
|
|
162
128
|
},
|
|
163
129
|
byPage: (settings) => {
|
|
164
|
-
if (settings
|
|
130
|
+
if (settings?.maxPageSize) {
|
|
165
131
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
166
132
|
}
|
|
167
133
|
return this.listEnvironmentsPagingPage(resourceGroupName, organizationName, options, settings);
|
|
168
134
|
},
|
|
169
135
|
};
|
|
170
136
|
}
|
|
171
|
-
listEnvironmentsPagingPage(resourceGroupName, organizationName, options, settings) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
});
|
|
137
|
+
async *listEnvironmentsPagingPage(resourceGroupName, organizationName, options, settings) {
|
|
138
|
+
let result;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listEnvironments(resourceGroupName, organizationName, options);
|
|
142
|
+
let page = result.value || [];
|
|
143
|
+
continuationToken = result.nextLink;
|
|
144
|
+
setContinuationToken(page, continuationToken);
|
|
145
|
+
yield page;
|
|
146
|
+
}
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = await this._listEnvironmentsNext(resourceGroupName, organizationName, continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
190
154
|
}
|
|
191
|
-
listEnvironmentsPagingAll(resourceGroupName, organizationName, options) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
for (var _d = true, _e = __asyncValues(this.listEnvironmentsPagingPage(resourceGroupName, organizationName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
196
|
-
_c = _f.value;
|
|
197
|
-
_d = false;
|
|
198
|
-
const page = _c;
|
|
199
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
203
|
-
finally {
|
|
204
|
-
try {
|
|
205
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
206
|
-
}
|
|
207
|
-
finally { if (e_3) throw e_3.error; }
|
|
208
|
-
}
|
|
209
|
-
});
|
|
155
|
+
async *listEnvironmentsPagingAll(resourceGroupName, organizationName, options) {
|
|
156
|
+
for await (const page of this.listEnvironmentsPagingPage(resourceGroupName, organizationName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
210
159
|
}
|
|
211
160
|
/**
|
|
212
161
|
* Lists of all the clusters in a environment
|
|
@@ -225,52 +174,35 @@ export class OrganizationImpl {
|
|
|
225
174
|
return this;
|
|
226
175
|
},
|
|
227
176
|
byPage: (settings) => {
|
|
228
|
-
if (settings
|
|
177
|
+
if (settings?.maxPageSize) {
|
|
229
178
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
230
179
|
}
|
|
231
180
|
return this.listClustersPagingPage(resourceGroupName, organizationName, environmentId, options, settings);
|
|
232
181
|
},
|
|
233
182
|
};
|
|
234
183
|
}
|
|
235
|
-
listClustersPagingPage(resourceGroupName, organizationName, environmentId, options, settings) {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
});
|
|
184
|
+
async *listClustersPagingPage(resourceGroupName, organizationName, environmentId, options, settings) {
|
|
185
|
+
let result;
|
|
186
|
+
let continuationToken = settings?.continuationToken;
|
|
187
|
+
if (!continuationToken) {
|
|
188
|
+
result = await this._listClusters(resourceGroupName, organizationName, environmentId, options);
|
|
189
|
+
let page = result.value || [];
|
|
190
|
+
continuationToken = result.nextLink;
|
|
191
|
+
setContinuationToken(page, continuationToken);
|
|
192
|
+
yield page;
|
|
193
|
+
}
|
|
194
|
+
while (continuationToken) {
|
|
195
|
+
result = await this._listClustersNext(resourceGroupName, organizationName, environmentId, continuationToken, options);
|
|
196
|
+
continuationToken = result.nextLink;
|
|
197
|
+
let page = result.value || [];
|
|
198
|
+
setContinuationToken(page, continuationToken);
|
|
199
|
+
yield page;
|
|
200
|
+
}
|
|
254
201
|
}
|
|
255
|
-
listClustersPagingAll(resourceGroupName, organizationName, environmentId, options) {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
for (var _d = true, _e = __asyncValues(this.listClustersPagingPage(resourceGroupName, organizationName, environmentId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
260
|
-
_c = _f.value;
|
|
261
|
-
_d = false;
|
|
262
|
-
const page = _c;
|
|
263
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
267
|
-
finally {
|
|
268
|
-
try {
|
|
269
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
270
|
-
}
|
|
271
|
-
finally { if (e_4) throw e_4.error; }
|
|
272
|
-
}
|
|
273
|
-
});
|
|
202
|
+
async *listClustersPagingAll(resourceGroupName, organizationName, environmentId, options) {
|
|
203
|
+
for await (const page of this.listClustersPagingPage(resourceGroupName, organizationName, environmentId, options)) {
|
|
204
|
+
yield* page;
|
|
205
|
+
}
|
|
274
206
|
}
|
|
275
207
|
/**
|
|
276
208
|
* Get schema registry clusters
|
|
@@ -289,52 +221,35 @@ export class OrganizationImpl {
|
|
|
289
221
|
return this;
|
|
290
222
|
},
|
|
291
223
|
byPage: (settings) => {
|
|
292
|
-
if (settings
|
|
224
|
+
if (settings?.maxPageSize) {
|
|
293
225
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
294
226
|
}
|
|
295
227
|
return this.listSchemaRegistryClustersPagingPage(resourceGroupName, organizationName, environmentId, options, settings);
|
|
296
228
|
},
|
|
297
229
|
};
|
|
298
230
|
}
|
|
299
|
-
listSchemaRegistryClustersPagingPage(resourceGroupName, organizationName, environmentId, options, settings) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
});
|
|
231
|
+
async *listSchemaRegistryClustersPagingPage(resourceGroupName, organizationName, environmentId, options, settings) {
|
|
232
|
+
let result;
|
|
233
|
+
let continuationToken = settings?.continuationToken;
|
|
234
|
+
if (!continuationToken) {
|
|
235
|
+
result = await this._listSchemaRegistryClusters(resourceGroupName, organizationName, environmentId, options);
|
|
236
|
+
let page = result.value || [];
|
|
237
|
+
continuationToken = result.nextLink;
|
|
238
|
+
setContinuationToken(page, continuationToken);
|
|
239
|
+
yield page;
|
|
240
|
+
}
|
|
241
|
+
while (continuationToken) {
|
|
242
|
+
result = await this._listSchemaRegistryClustersNext(resourceGroupName, organizationName, environmentId, continuationToken, options);
|
|
243
|
+
continuationToken = result.nextLink;
|
|
244
|
+
let page = result.value || [];
|
|
245
|
+
setContinuationToken(page, continuationToken);
|
|
246
|
+
yield page;
|
|
247
|
+
}
|
|
318
248
|
}
|
|
319
|
-
listSchemaRegistryClustersPagingAll(resourceGroupName, organizationName, environmentId, options) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
for (var _d = true, _e = __asyncValues(this.listSchemaRegistryClustersPagingPage(resourceGroupName, organizationName, environmentId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
324
|
-
_c = _f.value;
|
|
325
|
-
_d = false;
|
|
326
|
-
const page = _c;
|
|
327
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
331
|
-
finally {
|
|
332
|
-
try {
|
|
333
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
334
|
-
}
|
|
335
|
-
finally { if (e_5) throw e_5.error; }
|
|
336
|
-
}
|
|
337
|
-
});
|
|
249
|
+
async *listSchemaRegistryClustersPagingAll(resourceGroupName, organizationName, environmentId, options) {
|
|
250
|
+
for await (const page of this.listSchemaRegistryClustersPagingPage(resourceGroupName, organizationName, environmentId, options)) {
|
|
251
|
+
yield* page;
|
|
252
|
+
}
|
|
338
253
|
}
|
|
339
254
|
/**
|
|
340
255
|
* List all organizations under the specified subscription.
|
|
@@ -371,14 +286,19 @@ export class OrganizationImpl {
|
|
|
371
286
|
return this.client.sendOperationRequest(args, spec);
|
|
372
287
|
};
|
|
373
288
|
const sendOperationFn = async (args, spec) => {
|
|
374
|
-
var _a;
|
|
375
289
|
let currentRawResponse = undefined;
|
|
376
|
-
const providedCallback =
|
|
290
|
+
const providedCallback = args.options?.onResponse;
|
|
377
291
|
const callback = (rawResponse, flatResponse) => {
|
|
378
292
|
currentRawResponse = rawResponse;
|
|
379
|
-
providedCallback
|
|
293
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
294
|
+
};
|
|
295
|
+
const updatedArgs = {
|
|
296
|
+
...args,
|
|
297
|
+
options: {
|
|
298
|
+
...args.options,
|
|
299
|
+
onResponse: callback,
|
|
300
|
+
},
|
|
380
301
|
};
|
|
381
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
382
302
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
383
303
|
return {
|
|
384
304
|
flatResponse,
|
|
@@ -395,8 +315,8 @@ export class OrganizationImpl {
|
|
|
395
315
|
spec: createOperationSpec,
|
|
396
316
|
});
|
|
397
317
|
const poller = await createHttpPoller(lro, {
|
|
398
|
-
restoreFrom: options
|
|
399
|
-
intervalInMs: options
|
|
318
|
+
restoreFrom: options?.resumeFrom,
|
|
319
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
400
320
|
resourceLocationConfig: "azure-async-operation",
|
|
401
321
|
});
|
|
402
322
|
await poller.poll();
|
|
@@ -432,14 +352,19 @@ export class OrganizationImpl {
|
|
|
432
352
|
return this.client.sendOperationRequest(args, spec);
|
|
433
353
|
};
|
|
434
354
|
const sendOperationFn = async (args, spec) => {
|
|
435
|
-
var _a;
|
|
436
355
|
let currentRawResponse = undefined;
|
|
437
|
-
const providedCallback =
|
|
356
|
+
const providedCallback = args.options?.onResponse;
|
|
438
357
|
const callback = (rawResponse, flatResponse) => {
|
|
439
358
|
currentRawResponse = rawResponse;
|
|
440
|
-
providedCallback
|
|
359
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
360
|
+
};
|
|
361
|
+
const updatedArgs = {
|
|
362
|
+
...args,
|
|
363
|
+
options: {
|
|
364
|
+
...args.options,
|
|
365
|
+
onResponse: callback,
|
|
366
|
+
},
|
|
441
367
|
};
|
|
442
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
443
368
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
444
369
|
return {
|
|
445
370
|
flatResponse,
|
|
@@ -456,8 +381,8 @@ export class OrganizationImpl {
|
|
|
456
381
|
spec: deleteOperationSpec,
|
|
457
382
|
});
|
|
458
383
|
const poller = await createHttpPoller(lro, {
|
|
459
|
-
restoreFrom: options
|
|
460
|
-
intervalInMs: options
|
|
384
|
+
restoreFrom: options?.resumeFrom,
|
|
385
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
461
386
|
resourceLocationConfig: "location",
|
|
462
387
|
});
|
|
463
388
|
await poller.poll();
|