@azure/arm-servicebus 6.2.0-alpha.20250619.1 → 6.2.0-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 +288 -137
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/browser/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/browser/operations/migrationConfigs.js +34 -46
- package/dist/browser/operations/migrationConfigs.js.map +1 -1
- package/dist/browser/operations/namespaces.js +111 -169
- package/dist/browser/operations/namespaces.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/privateEndpointConnections.js +34 -46
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/queues.js +45 -79
- package/dist/browser/operations/queues.js.map +1 -1
- package/dist/browser/operations/rules.js +23 -40
- package/dist/browser/operations/rules.js.map +1 -1
- package/dist/browser/operations/subscriptions.js +23 -40
- package/dist/browser/operations/subscriptions.js.map +1 -1
- package/dist/browser/operations/topics.js +45 -79
- package/dist/browser/operations/topics.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/serviceBusManagementClient.js +23 -5
- package/dist/browser/serviceBusManagementClient.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 +288 -137
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/disasterRecoveryConfigs.js +45 -78
- package/dist/commonjs/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/commonjs/operations/migrationConfigs.js +34 -45
- package/dist/commonjs/operations/migrationConfigs.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +111 -168
- package/dist/commonjs/operations/namespaces.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/privateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/queues.js +45 -78
- package/dist/commonjs/operations/queues.js.map +1 -1
- package/dist/commonjs/operations/rules.js +23 -39
- package/dist/commonjs/operations/rules.js.map +1 -1
- package/dist/commonjs/operations/subscriptions.js +23 -39
- package/dist/commonjs/operations/subscriptions.js.map +1 -1
- package/dist/commonjs/operations/topics.js +45 -78
- package/dist/commonjs/operations/topics.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/serviceBusManagementClient.js +23 -5
- package/dist/commonjs/serviceBusManagementClient.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 +288 -137
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/esm/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/esm/operations/migrationConfigs.js +34 -46
- package/dist/esm/operations/migrationConfigs.js.map +1 -1
- package/dist/esm/operations/namespaces.js +111 -169
- package/dist/esm/operations/namespaces.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/privateEndpointConnections.js +34 -46
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/queues.js +45 -79
- package/dist/esm/operations/queues.js.map +1 -1
- package/dist/esm/operations/rules.js +23 -40
- package/dist/esm/operations/rules.js.map +1 -1
- package/dist/esm/operations/subscriptions.js +23 -40
- package/dist/esm/operations/subscriptions.js.map +1 -1
- package/dist/esm/operations/topics.js +45 -79
- package/dist/esm/operations/topics.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/serviceBusManagementClient.js +23 -5
- package/dist/esm/serviceBusManagementClient.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 +288 -137
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/disasterRecoveryConfigs.js +45 -79
- package/dist/react-native/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/react-native/operations/migrationConfigs.js +34 -46
- package/dist/react-native/operations/migrationConfigs.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +111 -169
- package/dist/react-native/operations/namespaces.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/privateEndpointConnections.js +34 -46
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/queues.js +45 -79
- package/dist/react-native/operations/queues.js.map +1 -1
- package/dist/react-native/operations/rules.js +23 -40
- package/dist/react-native/operations/rules.js.map +1 -1
- package/dist/react-native/operations/subscriptions.js +23 -40
- package/dist/react-native/operations/subscriptions.js.map +1 -1
- package/dist/react-native/operations/topics.js +45 -79
- package/dist/react-native/operations/topics.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/serviceBusManagementClient.js +23 -5
- package/dist/react-native/serviceBusManagementClient.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-servicebus.api.md → arm-servicebus-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 { LroImpl } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Namespaces operations. */
|
|
17
16
|
export class NamespacesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Namespaces class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class NamespacesImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Gets the available namespaces within a resource group.
|
|
@@ -98,52 +81,35 @@ export class NamespacesImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
}
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Gets list of NetworkRuleSet for a Namespace.
|
|
@@ -161,52 +127,35 @@ export class NamespacesImpl {
|
|
|
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.listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, options, settings);
|
|
168
134
|
}
|
|
169
135
|
};
|
|
170
136
|
}
|
|
171
|
-
listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
});
|
|
137
|
+
async *listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
138
|
+
let result;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listNetworkRuleSets(resourceGroupName, namespaceName, 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._listNetworkRuleSetsNext(resourceGroupName, namespaceName, continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
190
154
|
}
|
|
191
|
-
listNetworkRuleSetsPagingAll(resourceGroupName, namespaceName, options) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
for (var _d = true, _e = __asyncValues(this.listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, 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 *listNetworkRuleSetsPagingAll(resourceGroupName, namespaceName, options) {
|
|
156
|
+
for await (const page of this.listNetworkRuleSetsPagingPage(resourceGroupName, namespaceName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
210
159
|
}
|
|
211
160
|
/**
|
|
212
161
|
* Gets the authorization rules for a namespace.
|
|
@@ -224,52 +173,35 @@ export class NamespacesImpl {
|
|
|
224
173
|
return this;
|
|
225
174
|
},
|
|
226
175
|
byPage: (settings) => {
|
|
227
|
-
if (settings
|
|
176
|
+
if (settings?.maxPageSize) {
|
|
228
177
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
229
178
|
}
|
|
230
179
|
return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings);
|
|
231
180
|
}
|
|
232
181
|
};
|
|
233
182
|
}
|
|
234
|
-
listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
});
|
|
183
|
+
async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
184
|
+
let result;
|
|
185
|
+
let continuationToken = settings?.continuationToken;
|
|
186
|
+
if (!continuationToken) {
|
|
187
|
+
result = await this._listAuthorizationRules(resourceGroupName, namespaceName, options);
|
|
188
|
+
let page = result.value || [];
|
|
189
|
+
continuationToken = result.nextLink;
|
|
190
|
+
setContinuationToken(page, continuationToken);
|
|
191
|
+
yield page;
|
|
192
|
+
}
|
|
193
|
+
while (continuationToken) {
|
|
194
|
+
result = await this._listAuthorizationRulesNext(resourceGroupName, namespaceName, continuationToken, options);
|
|
195
|
+
continuationToken = result.nextLink;
|
|
196
|
+
let page = result.value || [];
|
|
197
|
+
setContinuationToken(page, continuationToken);
|
|
198
|
+
yield page;
|
|
199
|
+
}
|
|
253
200
|
}
|
|
254
|
-
listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, options) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
for (var _d = true, _e = __asyncValues(this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
259
|
-
_c = _f.value;
|
|
260
|
-
_d = false;
|
|
261
|
-
const page = _c;
|
|
262
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
266
|
-
finally {
|
|
267
|
-
try {
|
|
268
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
269
|
-
}
|
|
270
|
-
finally { if (e_4) throw e_4.error; }
|
|
271
|
-
}
|
|
272
|
-
});
|
|
201
|
+
async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, options) {
|
|
202
|
+
for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options)) {
|
|
203
|
+
yield* page;
|
|
204
|
+
}
|
|
273
205
|
}
|
|
274
206
|
/**
|
|
275
207
|
* Gets all the available namespaces within the subscription, irrespective of the resource groups.
|
|
@@ -299,14 +231,19 @@ export class NamespacesImpl {
|
|
|
299
231
|
return this.client.sendOperationRequest(args, spec);
|
|
300
232
|
};
|
|
301
233
|
const sendOperation = async (args, spec) => {
|
|
302
|
-
var _a;
|
|
303
234
|
let currentRawResponse = undefined;
|
|
304
|
-
const providedCallback =
|
|
235
|
+
const providedCallback = args.options?.onResponse;
|
|
305
236
|
const callback = (rawResponse, flatResponse) => {
|
|
306
237
|
currentRawResponse = rawResponse;
|
|
307
|
-
providedCallback
|
|
238
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
239
|
+
};
|
|
240
|
+
const updatedArgs = {
|
|
241
|
+
...args,
|
|
242
|
+
options: {
|
|
243
|
+
...args.options,
|
|
244
|
+
onResponse: callback
|
|
245
|
+
}
|
|
308
246
|
};
|
|
309
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
310
247
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
311
248
|
return {
|
|
312
249
|
flatResponse,
|
|
@@ -319,8 +256,8 @@ export class NamespacesImpl {
|
|
|
319
256
|
};
|
|
320
257
|
const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, parameters, options }, createOrUpdateOperationSpec);
|
|
321
258
|
const poller = new LroEngine(lro, {
|
|
322
|
-
resumeFrom: options
|
|
323
|
-
intervalInMs: options
|
|
259
|
+
resumeFrom: options?.resumeFrom,
|
|
260
|
+
intervalInMs: options?.updateIntervalInMs
|
|
324
261
|
});
|
|
325
262
|
await poller.poll();
|
|
326
263
|
return poller;
|
|
@@ -349,14 +286,19 @@ export class NamespacesImpl {
|
|
|
349
286
|
return this.client.sendOperationRequest(args, spec);
|
|
350
287
|
};
|
|
351
288
|
const sendOperation = async (args, spec) => {
|
|
352
|
-
var _a;
|
|
353
289
|
let currentRawResponse = undefined;
|
|
354
|
-
const providedCallback =
|
|
290
|
+
const providedCallback = args.options?.onResponse;
|
|
355
291
|
const callback = (rawResponse, flatResponse) => {
|
|
356
292
|
currentRawResponse = rawResponse;
|
|
357
|
-
providedCallback
|
|
293
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
294
|
+
};
|
|
295
|
+
const updatedArgs = {
|
|
296
|
+
...args,
|
|
297
|
+
options: {
|
|
298
|
+
...args.options,
|
|
299
|
+
onResponse: callback
|
|
300
|
+
}
|
|
358
301
|
};
|
|
359
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
302
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
361
303
|
return {
|
|
362
304
|
flatResponse,
|
|
@@ -369,8 +311,8 @@ export class NamespacesImpl {
|
|
|
369
311
|
};
|
|
370
312
|
const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, options }, deleteOperationSpec);
|
|
371
313
|
const poller = new LroEngine(lro, {
|
|
372
|
-
resumeFrom: options
|
|
373
|
-
intervalInMs: options
|
|
314
|
+
resumeFrom: options?.resumeFrom,
|
|
315
|
+
intervalInMs: options?.updateIntervalInMs
|
|
374
316
|
});
|
|
375
317
|
await poller.poll();
|
|
376
318
|
return poller;
|