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