@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
|
@@ -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 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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
});
|
|
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
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async *listPagingAll(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Lists 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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
});
|
|
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
|
+
}
|
|
108
|
+
}
|
|
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 a list of authorization rules 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.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings);
|
|
168
134
|
},
|
|
169
135
|
};
|
|
170
136
|
}
|
|
171
|
-
listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
var _a, e_3, _b, _c;
|
|
194
|
-
try {
|
|
195
|
-
for (var _d = true, _e = __asyncValues(this.listAuthorizationRulesPagingPage(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
|
-
});
|
|
137
|
+
async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
138
|
+
let result;
|
|
139
|
+
let continuationToken = settings?.continuationToken;
|
|
140
|
+
if (!continuationToken) {
|
|
141
|
+
result = await this._listAuthorizationRules(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._listAuthorizationRulesNext(resourceGroupName, namespaceName, continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
let page = result.value || [];
|
|
151
|
+
setContinuationToken(page, continuationToken);
|
|
152
|
+
yield page;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, options) {
|
|
156
|
+
for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options)) {
|
|
157
|
+
yield* page;
|
|
158
|
+
}
|
|
210
159
|
}
|
|
211
160
|
/**
|
|
212
161
|
* Lists all the available Namespaces within a subscription, irrespective of the resource groups.
|
|
@@ -236,14 +185,19 @@ export class NamespacesImpl {
|
|
|
236
185
|
return this.client.sendOperationRequest(args, spec);
|
|
237
186
|
};
|
|
238
187
|
const sendOperationFn = async (args, spec) => {
|
|
239
|
-
var _a;
|
|
240
188
|
let currentRawResponse = undefined;
|
|
241
|
-
const providedCallback =
|
|
189
|
+
const providedCallback = args.options?.onResponse;
|
|
242
190
|
const callback = (rawResponse, flatResponse) => {
|
|
243
191
|
currentRawResponse = rawResponse;
|
|
244
|
-
providedCallback
|
|
192
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
193
|
+
};
|
|
194
|
+
const updatedArgs = {
|
|
195
|
+
...args,
|
|
196
|
+
options: {
|
|
197
|
+
...args.options,
|
|
198
|
+
onResponse: callback,
|
|
199
|
+
},
|
|
245
200
|
};
|
|
246
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
247
201
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
248
202
|
return {
|
|
249
203
|
flatResponse,
|
|
@@ -260,8 +214,8 @@ export class NamespacesImpl {
|
|
|
260
214
|
spec: createOrUpdateOperationSpec,
|
|
261
215
|
});
|
|
262
216
|
const poller = await createHttpPoller(lro, {
|
|
263
|
-
restoreFrom: options
|
|
264
|
-
intervalInMs: options
|
|
217
|
+
restoreFrom: options?.resumeFrom,
|
|
218
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
265
219
|
resourceLocationConfig: "azure-async-operation",
|
|
266
220
|
});
|
|
267
221
|
await poller.poll();
|
|
@@ -291,14 +245,19 @@ export class NamespacesImpl {
|
|
|
291
245
|
return this.client.sendOperationRequest(args, spec);
|
|
292
246
|
};
|
|
293
247
|
const sendOperationFn = async (args, spec) => {
|
|
294
|
-
var _a;
|
|
295
248
|
let currentRawResponse = undefined;
|
|
296
|
-
const providedCallback =
|
|
249
|
+
const providedCallback = args.options?.onResponse;
|
|
297
250
|
const callback = (rawResponse, flatResponse) => {
|
|
298
251
|
currentRawResponse = rawResponse;
|
|
299
|
-
providedCallback
|
|
252
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
253
|
+
};
|
|
254
|
+
const updatedArgs = {
|
|
255
|
+
...args,
|
|
256
|
+
options: {
|
|
257
|
+
...args.options,
|
|
258
|
+
onResponse: callback,
|
|
259
|
+
},
|
|
300
260
|
};
|
|
301
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
302
261
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
303
262
|
return {
|
|
304
263
|
flatResponse,
|
|
@@ -315,8 +274,8 @@ export class NamespacesImpl {
|
|
|
315
274
|
spec: deleteOperationSpec,
|
|
316
275
|
});
|
|
317
276
|
const poller = await createHttpPoller(lro, {
|
|
318
|
-
restoreFrom: options
|
|
319
|
-
intervalInMs: options
|
|
277
|
+
restoreFrom: options?.resumeFrom,
|
|
278
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
320
279
|
resourceLocationConfig: "azure-async-operation",
|
|
321
280
|
});
|
|
322
281
|
await poller.poll();
|
|
@@ -365,14 +324,19 @@ export class NamespacesImpl {
|
|
|
365
324
|
return this.client.sendOperationRequest(args, spec);
|
|
366
325
|
};
|
|
367
326
|
const sendOperationFn = async (args, spec) => {
|
|
368
|
-
var _a;
|
|
369
327
|
let currentRawResponse = undefined;
|
|
370
|
-
const providedCallback =
|
|
328
|
+
const providedCallback = args.options?.onResponse;
|
|
371
329
|
const callback = (rawResponse, flatResponse) => {
|
|
372
330
|
currentRawResponse = rawResponse;
|
|
373
|
-
providedCallback
|
|
331
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
332
|
+
};
|
|
333
|
+
const updatedArgs = {
|
|
334
|
+
...args,
|
|
335
|
+
options: {
|
|
336
|
+
...args.options,
|
|
337
|
+
onResponse: callback,
|
|
338
|
+
},
|
|
374
339
|
};
|
|
375
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
376
340
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
377
341
|
return {
|
|
378
342
|
flatResponse,
|
|
@@ -389,8 +353,8 @@ export class NamespacesImpl {
|
|
|
389
353
|
spec: failoverOperationSpec,
|
|
390
354
|
});
|
|
391
355
|
const poller = await createHttpPoller(lro, {
|
|
392
|
-
restoreFrom: options
|
|
393
|
-
intervalInMs: options
|
|
356
|
+
restoreFrom: options?.resumeFrom,
|
|
357
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
394
358
|
resourceLocationConfig: "azure-async-operation",
|
|
395
359
|
});
|
|
396
360
|
await poller.poll();
|