@azure/arm-eventhub 5.3.0-alpha.20250618.1 → 5.3.0-alpha.20250718.2
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/eventHubManagementClient.js +26 -5
- package/dist/browser/eventHubManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +213 -100
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applicationGroupOperations.js +23 -40
- package/dist/browser/operations/applicationGroupOperations.js.map +1 -1
- package/dist/browser/operations/clusters.js +78 -97
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/configuration.js +1 -0
- package/dist/browser/operations/configuration.js.map +1 -1
- package/dist/browser/operations/consumerGroups.js +23 -40
- package/dist/browser/operations/consumerGroups.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/eventHubs.js +45 -79
- package/dist/browser/operations/eventHubs.js.map +1 -1
- package/dist/browser/operations/namespaces.js +103 -139
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/browser/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.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/schemaRegistry.js +23 -40
- package/dist/browser/operations/schemaRegistry.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/eventHubManagementClient.js +26 -5
- package/dist/commonjs/eventHubManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +213 -100
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applicationGroupOperations.js +23 -39
- package/dist/commonjs/operations/applicationGroupOperations.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +78 -96
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/configuration.js +1 -0
- package/dist/commonjs/operations/configuration.js.map +1 -1
- package/dist/commonjs/operations/consumerGroups.js +23 -39
- package/dist/commonjs/operations/consumerGroups.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/eventHubs.js +45 -78
- package/dist/commonjs/operations/eventHubs.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +103 -138
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.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/schemaRegistry.js +23 -39
- package/dist/commonjs/operations/schemaRegistry.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/eventHubManagementClient.js +26 -5
- package/dist/esm/eventHubManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +213 -100
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applicationGroupOperations.js +23 -40
- package/dist/esm/operations/applicationGroupOperations.js.map +1 -1
- package/dist/esm/operations/clusters.js +78 -97
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/configuration.js +1 -0
- package/dist/esm/operations/configuration.js.map +1 -1
- package/dist/esm/operations/consumerGroups.js +23 -40
- package/dist/esm/operations/consumerGroups.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/eventHubs.js +45 -79
- package/dist/esm/operations/eventHubs.js.map +1 -1
- package/dist/esm/operations/namespaces.js +103 -139
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/esm/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.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/schemaRegistry.js +23 -40
- package/dist/esm/operations/schemaRegistry.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/eventHubManagementClient.js +26 -5
- package/dist/react-native/eventHubManagementClient.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/models/mappers.js +213 -100
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applicationGroupOperations.js +23 -40
- package/dist/react-native/operations/applicationGroupOperations.js.map +1 -1
- package/dist/react-native/operations/clusters.js +78 -97
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/configuration.js +1 -0
- package/dist/react-native/operations/configuration.js.map +1 -1
- package/dist/react-native/operations/consumerGroups.js +23 -40
- package/dist/react-native/operations/consumerGroups.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/eventHubs.js +45 -79
- package/dist/react-native/operations/eventHubs.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +103 -139
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurationOperations.js +1 -0
- package/dist/react-native/operations/networkSecurityPerimeterConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +12 -6
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.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/schemaRegistry.js +23 -40
- package/dist/react-native/operations/schemaRegistry.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-eventhub.api.md → arm-eventhub-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 Namespaces operations. */
|
|
20
20
|
class NamespacesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Namespaces class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class NamespacesImpl {
|
|
|
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.listPagingPage(options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listPagingPage(options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var _a, e_1, _b, _c;
|
|
72
|
-
try {
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(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
|
-
});
|
|
50
|
+
async *listPagingPage(options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._list(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._listNext(continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
async *listPagingAll(options) {
|
|
69
|
+
for await (const page of this.listPagingPage(options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Lists the available Namespaces within a resource group.
|
|
@@ -101,52 +85,35 @@ class NamespacesImpl {
|
|
|
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
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
var _a, e_2, _b, _c;
|
|
134
|
-
try {
|
|
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
|
-
});
|
|
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
|
+
}
|
|
112
|
+
}
|
|
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
|
* Gets a list of authorization rules for a Namespace.
|
|
@@ -164,52 +131,35 @@ class NamespacesImpl {
|
|
|
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.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings);
|
|
171
138
|
},
|
|
172
139
|
};
|
|
173
140
|
}
|
|
174
|
-
listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var _a, e_3, _b, _c;
|
|
197
|
-
try {
|
|
198
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, 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
|
-
});
|
|
141
|
+
async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
142
|
+
let result;
|
|
143
|
+
let continuationToken = settings?.continuationToken;
|
|
144
|
+
if (!continuationToken) {
|
|
145
|
+
result = await this._listAuthorizationRules(resourceGroupName, namespaceName, 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._listAuthorizationRulesNext(resourceGroupName, namespaceName, continuationToken, options);
|
|
153
|
+
continuationToken = result.nextLink;
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
156
|
+
yield page;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, options) {
|
|
160
|
+
for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options)) {
|
|
161
|
+
yield* page;
|
|
162
|
+
}
|
|
213
163
|
}
|
|
214
164
|
/**
|
|
215
165
|
* Lists all the available Namespaces within a subscription, irrespective of the resource groups.
|
|
@@ -239,14 +189,19 @@ class NamespacesImpl {
|
|
|
239
189
|
return this.client.sendOperationRequest(args, spec);
|
|
240
190
|
};
|
|
241
191
|
const sendOperationFn = async (args, spec) => {
|
|
242
|
-
var _a;
|
|
243
192
|
let currentRawResponse = undefined;
|
|
244
|
-
const providedCallback =
|
|
193
|
+
const providedCallback = args.options?.onResponse;
|
|
245
194
|
const callback = (rawResponse, flatResponse) => {
|
|
246
195
|
currentRawResponse = rawResponse;
|
|
247
|
-
providedCallback
|
|
196
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
197
|
+
};
|
|
198
|
+
const updatedArgs = {
|
|
199
|
+
...args,
|
|
200
|
+
options: {
|
|
201
|
+
...args.options,
|
|
202
|
+
onResponse: callback,
|
|
203
|
+
},
|
|
248
204
|
};
|
|
249
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
250
205
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
251
206
|
return {
|
|
252
207
|
flatResponse,
|
|
@@ -263,8 +218,8 @@ class NamespacesImpl {
|
|
|
263
218
|
spec: createOrUpdateOperationSpec,
|
|
264
219
|
});
|
|
265
220
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
266
|
-
restoreFrom: options
|
|
267
|
-
intervalInMs: options
|
|
221
|
+
restoreFrom: options?.resumeFrom,
|
|
222
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
268
223
|
resourceLocationConfig: "azure-async-operation",
|
|
269
224
|
});
|
|
270
225
|
await poller.poll();
|
|
@@ -294,14 +249,19 @@ class NamespacesImpl {
|
|
|
294
249
|
return this.client.sendOperationRequest(args, spec);
|
|
295
250
|
};
|
|
296
251
|
const sendOperationFn = async (args, spec) => {
|
|
297
|
-
var _a;
|
|
298
252
|
let currentRawResponse = undefined;
|
|
299
|
-
const providedCallback =
|
|
253
|
+
const providedCallback = args.options?.onResponse;
|
|
300
254
|
const callback = (rawResponse, flatResponse) => {
|
|
301
255
|
currentRawResponse = rawResponse;
|
|
302
|
-
providedCallback
|
|
256
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
257
|
+
};
|
|
258
|
+
const updatedArgs = {
|
|
259
|
+
...args,
|
|
260
|
+
options: {
|
|
261
|
+
...args.options,
|
|
262
|
+
onResponse: callback,
|
|
263
|
+
},
|
|
303
264
|
};
|
|
304
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
305
265
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
306
266
|
return {
|
|
307
267
|
flatResponse,
|
|
@@ -318,8 +278,8 @@ class NamespacesImpl {
|
|
|
318
278
|
spec: deleteOperationSpec,
|
|
319
279
|
});
|
|
320
280
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
321
|
-
restoreFrom: options
|
|
322
|
-
intervalInMs: options
|
|
281
|
+
restoreFrom: options?.resumeFrom,
|
|
282
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
323
283
|
resourceLocationConfig: "azure-async-operation",
|
|
324
284
|
});
|
|
325
285
|
await poller.poll();
|
|
@@ -368,14 +328,19 @@ class NamespacesImpl {
|
|
|
368
328
|
return this.client.sendOperationRequest(args, spec);
|
|
369
329
|
};
|
|
370
330
|
const sendOperationFn = async (args, spec) => {
|
|
371
|
-
var _a;
|
|
372
331
|
let currentRawResponse = undefined;
|
|
373
|
-
const providedCallback =
|
|
332
|
+
const providedCallback = args.options?.onResponse;
|
|
374
333
|
const callback = (rawResponse, flatResponse) => {
|
|
375
334
|
currentRawResponse = rawResponse;
|
|
376
|
-
providedCallback
|
|
335
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
336
|
+
};
|
|
337
|
+
const updatedArgs = {
|
|
338
|
+
...args,
|
|
339
|
+
options: {
|
|
340
|
+
...args.options,
|
|
341
|
+
onResponse: callback,
|
|
342
|
+
},
|
|
377
343
|
};
|
|
378
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
379
344
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
380
345
|
return {
|
|
381
346
|
flatResponse,
|
|
@@ -392,8 +357,8 @@ class NamespacesImpl {
|
|
|
392
357
|
spec: failoverOperationSpec,
|
|
393
358
|
});
|
|
394
359
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
395
|
-
restoreFrom: options
|
|
396
|
-
intervalInMs: options
|
|
360
|
+
restoreFrom: options?.resumeFrom,
|
|
361
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
397
362
|
resourceLocationConfig: "azure-async-operation",
|
|
398
363
|
});
|
|
399
364
|
await poller.poll();
|