@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.
Files changed (115) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +288 -137
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/disasterRecoveryConfigs.js +45 -79
  6. package/dist/browser/operations/disasterRecoveryConfigs.js.map +1 -1
  7. package/dist/browser/operations/migrationConfigs.js +34 -46
  8. package/dist/browser/operations/migrationConfigs.js.map +1 -1
  9. package/dist/browser/operations/namespaces.js +111 -169
  10. package/dist/browser/operations/namespaces.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/privateEndpointConnections.js +34 -46
  14. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  15. package/dist/browser/operations/privateLinkResources.js +1 -0
  16. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  17. package/dist/browser/operations/queues.js +45 -79
  18. package/dist/browser/operations/queues.js.map +1 -1
  19. package/dist/browser/operations/rules.js +23 -40
  20. package/dist/browser/operations/rules.js.map +1 -1
  21. package/dist/browser/operations/subscriptions.js +23 -40
  22. package/dist/browser/operations/subscriptions.js.map +1 -1
  23. package/dist/browser/operations/topics.js +45 -79
  24. package/dist/browser/operations/topics.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/browser/serviceBusManagementClient.js +23 -5
  28. package/dist/browser/serviceBusManagementClient.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +11 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/models/mappers.js +288 -137
  32. package/dist/commonjs/models/mappers.js.map +1 -1
  33. package/dist/commonjs/operations/disasterRecoveryConfigs.js +45 -78
  34. package/dist/commonjs/operations/disasterRecoveryConfigs.js.map +1 -1
  35. package/dist/commonjs/operations/migrationConfigs.js +34 -45
  36. package/dist/commonjs/operations/migrationConfigs.js.map +1 -1
  37. package/dist/commonjs/operations/namespaces.js +111 -168
  38. package/dist/commonjs/operations/namespaces.js.map +1 -1
  39. package/dist/commonjs/operations/operations.js +23 -39
  40. package/dist/commonjs/operations/operations.js.map +1 -1
  41. package/dist/commonjs/operations/privateEndpointConnections.js +34 -45
  42. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  43. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  44. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  45. package/dist/commonjs/operations/queues.js +45 -78
  46. package/dist/commonjs/operations/queues.js.map +1 -1
  47. package/dist/commonjs/operations/rules.js +23 -39
  48. package/dist/commonjs/operations/rules.js.map +1 -1
  49. package/dist/commonjs/operations/subscriptions.js +23 -39
  50. package/dist/commonjs/operations/subscriptions.js.map +1 -1
  51. package/dist/commonjs/operations/topics.js +45 -78
  52. package/dist/commonjs/operations/topics.js.map +1 -1
  53. package/dist/commonjs/pagingHelper.js +2 -4
  54. package/dist/commonjs/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/serviceBusManagementClient.js +23 -5
  56. package/dist/commonjs/serviceBusManagementClient.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/lroImpl.js +11 -3
  59. package/dist/esm/lroImpl.js.map +1 -1
  60. package/dist/esm/models/mappers.js +288 -137
  61. package/dist/esm/models/mappers.js.map +1 -1
  62. package/dist/esm/operations/disasterRecoveryConfigs.js +45 -79
  63. package/dist/esm/operations/disasterRecoveryConfigs.js.map +1 -1
  64. package/dist/esm/operations/migrationConfigs.js +34 -46
  65. package/dist/esm/operations/migrationConfigs.js.map +1 -1
  66. package/dist/esm/operations/namespaces.js +111 -169
  67. package/dist/esm/operations/namespaces.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/privateEndpointConnections.js +34 -46
  71. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  72. package/dist/esm/operations/privateLinkResources.js +1 -0
  73. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  74. package/dist/esm/operations/queues.js +45 -79
  75. package/dist/esm/operations/queues.js.map +1 -1
  76. package/dist/esm/operations/rules.js +23 -40
  77. package/dist/esm/operations/rules.js.map +1 -1
  78. package/dist/esm/operations/subscriptions.js +23 -40
  79. package/dist/esm/operations/subscriptions.js.map +1 -1
  80. package/dist/esm/operations/topics.js +45 -79
  81. package/dist/esm/operations/topics.js.map +1 -1
  82. package/dist/esm/pagingHelper.js +2 -4
  83. package/dist/esm/pagingHelper.js.map +1 -1
  84. package/dist/esm/serviceBusManagementClient.js +23 -5
  85. package/dist/esm/serviceBusManagementClient.js.map +1 -1
  86. package/dist/react-native/lroImpl.js +11 -3
  87. package/dist/react-native/lroImpl.js.map +1 -1
  88. package/dist/react-native/models/mappers.js +288 -137
  89. package/dist/react-native/models/mappers.js.map +1 -1
  90. package/dist/react-native/operations/disasterRecoveryConfigs.js +45 -79
  91. package/dist/react-native/operations/disasterRecoveryConfigs.js.map +1 -1
  92. package/dist/react-native/operations/migrationConfigs.js +34 -46
  93. package/dist/react-native/operations/migrationConfigs.js.map +1 -1
  94. package/dist/react-native/operations/namespaces.js +111 -169
  95. package/dist/react-native/operations/namespaces.js.map +1 -1
  96. package/dist/react-native/operations/operations.js +23 -40
  97. package/dist/react-native/operations/operations.js.map +1 -1
  98. package/dist/react-native/operations/privateEndpointConnections.js +34 -46
  99. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  100. package/dist/react-native/operations/privateLinkResources.js +1 -0
  101. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  102. package/dist/react-native/operations/queues.js +45 -79
  103. package/dist/react-native/operations/queues.js.map +1 -1
  104. package/dist/react-native/operations/rules.js +23 -40
  105. package/dist/react-native/operations/rules.js.map +1 -1
  106. package/dist/react-native/operations/subscriptions.js +23 -40
  107. package/dist/react-native/operations/subscriptions.js.map +1 -1
  108. package/dist/react-native/operations/topics.js +45 -79
  109. package/dist/react-native/operations/topics.js.map +1 -1
  110. package/dist/react-native/pagingHelper.js +2 -4
  111. package/dist/react-native/pagingHelper.js.map +1 -1
  112. package/dist/react-native/serviceBusManagementClient.js +23 -5
  113. package/dist/react-native/serviceBusManagementClient.js.map +1 -1
  114. package/package.json +2 -2
  115. /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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listNetworkRuleSetsPagingPage_1() {
173
- let result;
174
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
175
- if (!continuationToken) {
176
- result = yield __await(this._listNetworkRuleSets(resourceGroupName, namespaceName, options));
177
- let page = result.value || [];
178
- continuationToken = result.nextLink;
179
- setContinuationToken(page, continuationToken);
180
- yield yield __await(page);
181
- }
182
- while (continuationToken) {
183
- result = yield __await(this._listNetworkRuleSetsNext(resourceGroupName, namespaceName, continuationToken, options));
184
- continuationToken = result.nextLink;
185
- let page = result.value || [];
186
- setContinuationToken(page, continuationToken);
187
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listNetworkRuleSetsPagingAll_1() {
193
- var _a, e_3, _b, _c;
194
- try {
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 === null || settings === void 0 ? void 0 : settings.maxPageSize) {
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
- return __asyncGenerator(this, arguments, function* listAuthorizationRulesPagingPage_1() {
236
- let result;
237
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
238
- if (!continuationToken) {
239
- result = yield __await(this._listAuthorizationRules(resourceGroupName, namespaceName, options));
240
- let page = result.value || [];
241
- continuationToken = result.nextLink;
242
- setContinuationToken(page, continuationToken);
243
- yield yield __await(page);
244
- }
245
- while (continuationToken) {
246
- result = yield __await(this._listAuthorizationRulesNext(resourceGroupName, namespaceName, continuationToken, options));
247
- continuationToken = result.nextLink;
248
- let page = result.value || [];
249
- setContinuationToken(page, continuationToken);
250
- yield yield __await(page);
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
- return __asyncGenerator(this, arguments, function* listAuthorizationRulesPagingAll_1() {
256
- var _a, e_4, _b, _c;
257
- try {
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
235
+ const providedCallback = args.options?.onResponse;
305
236
  const callback = (rawResponse, flatResponse) => {
306
237
  currentRawResponse = rawResponse;
307
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
323
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
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 = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
290
+ const providedCallback = args.options?.onResponse;
355
291
  const callback = (rawResponse, flatResponse) => {
356
292
  currentRawResponse = rawResponse;
357
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
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 === null || options === void 0 ? void 0 : options.resumeFrom,
373
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
314
+ resumeFrom: options?.resumeFrom,
315
+ intervalInMs: options?.updateIntervalInMs
374
316
  });
375
317
  await poller.poll();
376
318
  return poller;