@azure/arm-cdn 9.1.1-alpha.20250718.1 → 9.1.1-alpha.20250730.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/cdnManagementClient.js +34 -5
- package/dist/browser/cdnManagementClient.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 +663 -294
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/afdCustomDomains.js +67 -64
- package/dist/browser/operations/afdCustomDomains.js.map +1 -1
- package/dist/browser/operations/afdEndpoints.js +89 -103
- package/dist/browser/operations/afdEndpoints.js.map +1 -1
- package/dist/browser/operations/afdOriginGroups.js +78 -97
- package/dist/browser/operations/afdOriginGroups.js.map +1 -1
- package/dist/browser/operations/afdOrigins.js +56 -58
- package/dist/browser/operations/afdOrigins.js.map +1 -1
- package/dist/browser/operations/afdProfiles.js +34 -46
- package/dist/browser/operations/afdProfiles.js.map +1 -1
- package/dist/browser/operations/customDomains.js +67 -64
- package/dist/browser/operations/customDomains.js.map +1 -1
- package/dist/browser/operations/edgeNodes.js +23 -40
- package/dist/browser/operations/edgeNodes.js.map +1 -1
- package/dist/browser/operations/endpoints.js +122 -121
- package/dist/browser/operations/endpoints.js.map +1 -1
- package/dist/browser/operations/logAnalytics.js +1 -0
- package/dist/browser/operations/logAnalytics.js.map +1 -1
- package/dist/browser/operations/managedRuleSets.js +23 -40
- package/dist/browser/operations/managedRuleSets.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/originGroups.js +56 -58
- package/dist/browser/operations/originGroups.js.map +1 -1
- package/dist/browser/operations/origins.js +56 -58
- package/dist/browser/operations/origins.js.map +1 -1
- package/dist/browser/operations/policies.js +45 -52
- package/dist/browser/operations/policies.js.map +1 -1
- package/dist/browser/operations/profiles.js +133 -154
- package/dist/browser/operations/profiles.js.map +1 -1
- package/dist/browser/operations/resourceUsageOperations.js +23 -40
- package/dist/browser/operations/resourceUsageOperations.js.map +1 -1
- package/dist/browser/operations/routes.js +56 -58
- package/dist/browser/operations/routes.js.map +1 -1
- package/dist/browser/operations/ruleSets.js +56 -85
- package/dist/browser/operations/ruleSets.js.map +1 -1
- package/dist/browser/operations/rules.js +56 -58
- package/dist/browser/operations/rules.js.map +1 -1
- package/dist/browser/operations/secrets.js +45 -52
- package/dist/browser/operations/secrets.js.map +1 -1
- package/dist/browser/operations/securityPolicies.js +56 -58
- package/dist/browser/operations/securityPolicies.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/cdnManagementClient.js +34 -5
- package/dist/commonjs/cdnManagementClient.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 +663 -294
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/afdCustomDomains.js +67 -63
- package/dist/commonjs/operations/afdCustomDomains.js.map +1 -1
- package/dist/commonjs/operations/afdEndpoints.js +89 -102
- package/dist/commonjs/operations/afdEndpoints.js.map +1 -1
- package/dist/commonjs/operations/afdOriginGroups.js +78 -96
- package/dist/commonjs/operations/afdOriginGroups.js.map +1 -1
- package/dist/commonjs/operations/afdOrigins.js +56 -57
- package/dist/commonjs/operations/afdOrigins.js.map +1 -1
- package/dist/commonjs/operations/afdProfiles.js +34 -45
- package/dist/commonjs/operations/afdProfiles.js.map +1 -1
- package/dist/commonjs/operations/customDomains.js +67 -63
- package/dist/commonjs/operations/customDomains.js.map +1 -1
- package/dist/commonjs/operations/edgeNodes.js +23 -39
- package/dist/commonjs/operations/edgeNodes.js.map +1 -1
- package/dist/commonjs/operations/endpoints.js +122 -120
- package/dist/commonjs/operations/endpoints.js.map +1 -1
- package/dist/commonjs/operations/logAnalytics.js +1 -0
- package/dist/commonjs/operations/logAnalytics.js.map +1 -1
- package/dist/commonjs/operations/managedRuleSets.js +23 -39
- package/dist/commonjs/operations/managedRuleSets.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/originGroups.js +56 -57
- package/dist/commonjs/operations/originGroups.js.map +1 -1
- package/dist/commonjs/operations/origins.js +56 -57
- package/dist/commonjs/operations/origins.js.map +1 -1
- package/dist/commonjs/operations/policies.js +45 -51
- package/dist/commonjs/operations/policies.js.map +1 -1
- package/dist/commonjs/operations/profiles.js +133 -153
- package/dist/commonjs/operations/profiles.js.map +1 -1
- package/dist/commonjs/operations/resourceUsageOperations.js +23 -39
- package/dist/commonjs/operations/resourceUsageOperations.js.map +1 -1
- package/dist/commonjs/operations/routes.js +56 -57
- package/dist/commonjs/operations/routes.js.map +1 -1
- package/dist/commonjs/operations/ruleSets.js +56 -84
- package/dist/commonjs/operations/ruleSets.js.map +1 -1
- package/dist/commonjs/operations/rules.js +56 -57
- package/dist/commonjs/operations/rules.js.map +1 -1
- package/dist/commonjs/operations/secrets.js +45 -51
- package/dist/commonjs/operations/secrets.js.map +1 -1
- package/dist/commonjs/operations/securityPolicies.js +56 -57
- package/dist/commonjs/operations/securityPolicies.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 +1 -1
- package/dist/esm/cdnManagementClient.js +34 -5
- package/dist/esm/cdnManagementClient.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 +663 -294
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/afdCustomDomains.js +67 -64
- package/dist/esm/operations/afdCustomDomains.js.map +1 -1
- package/dist/esm/operations/afdEndpoints.js +89 -103
- package/dist/esm/operations/afdEndpoints.js.map +1 -1
- package/dist/esm/operations/afdOriginGroups.js +78 -97
- package/dist/esm/operations/afdOriginGroups.js.map +1 -1
- package/dist/esm/operations/afdOrigins.js +56 -58
- package/dist/esm/operations/afdOrigins.js.map +1 -1
- package/dist/esm/operations/afdProfiles.js +34 -46
- package/dist/esm/operations/afdProfiles.js.map +1 -1
- package/dist/esm/operations/customDomains.js +67 -64
- package/dist/esm/operations/customDomains.js.map +1 -1
- package/dist/esm/operations/edgeNodes.js +23 -40
- package/dist/esm/operations/edgeNodes.js.map +1 -1
- package/dist/esm/operations/endpoints.js +122 -121
- package/dist/esm/operations/endpoints.js.map +1 -1
- package/dist/esm/operations/logAnalytics.js +1 -0
- package/dist/esm/operations/logAnalytics.js.map +1 -1
- package/dist/esm/operations/managedRuleSets.js +23 -40
- package/dist/esm/operations/managedRuleSets.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/originGroups.js +56 -58
- package/dist/esm/operations/originGroups.js.map +1 -1
- package/dist/esm/operations/origins.js +56 -58
- package/dist/esm/operations/origins.js.map +1 -1
- package/dist/esm/operations/policies.js +45 -52
- package/dist/esm/operations/policies.js.map +1 -1
- package/dist/esm/operations/profiles.js +133 -154
- package/dist/esm/operations/profiles.js.map +1 -1
- package/dist/esm/operations/resourceUsageOperations.js +23 -40
- package/dist/esm/operations/resourceUsageOperations.js.map +1 -1
- package/dist/esm/operations/routes.js +56 -58
- package/dist/esm/operations/routes.js.map +1 -1
- package/dist/esm/operations/ruleSets.js +56 -85
- package/dist/esm/operations/ruleSets.js.map +1 -1
- package/dist/esm/operations/rules.js +56 -58
- package/dist/esm/operations/rules.js.map +1 -1
- package/dist/esm/operations/secrets.js +45 -52
- package/dist/esm/operations/secrets.js.map +1 -1
- package/dist/esm/operations/securityPolicies.js +56 -58
- package/dist/esm/operations/securityPolicies.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/cdnManagementClient.js +34 -5
- package/dist/react-native/cdnManagementClient.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 +663 -294
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/afdCustomDomains.js +67 -64
- package/dist/react-native/operations/afdCustomDomains.js.map +1 -1
- package/dist/react-native/operations/afdEndpoints.js +89 -103
- package/dist/react-native/operations/afdEndpoints.js.map +1 -1
- package/dist/react-native/operations/afdOriginGroups.js +78 -97
- package/dist/react-native/operations/afdOriginGroups.js.map +1 -1
- package/dist/react-native/operations/afdOrigins.js +56 -58
- package/dist/react-native/operations/afdOrigins.js.map +1 -1
- package/dist/react-native/operations/afdProfiles.js +34 -46
- package/dist/react-native/operations/afdProfiles.js.map +1 -1
- package/dist/react-native/operations/customDomains.js +67 -64
- package/dist/react-native/operations/customDomains.js.map +1 -1
- package/dist/react-native/operations/edgeNodes.js +23 -40
- package/dist/react-native/operations/edgeNodes.js.map +1 -1
- package/dist/react-native/operations/endpoints.js +122 -121
- package/dist/react-native/operations/endpoints.js.map +1 -1
- package/dist/react-native/operations/logAnalytics.js +1 -0
- package/dist/react-native/operations/logAnalytics.js.map +1 -1
- package/dist/react-native/operations/managedRuleSets.js +23 -40
- package/dist/react-native/operations/managedRuleSets.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/originGroups.js +56 -58
- package/dist/react-native/operations/originGroups.js.map +1 -1
- package/dist/react-native/operations/origins.js +56 -58
- package/dist/react-native/operations/origins.js.map +1 -1
- package/dist/react-native/operations/policies.js +45 -52
- package/dist/react-native/operations/policies.js.map +1 -1
- package/dist/react-native/operations/profiles.js +133 -154
- package/dist/react-native/operations/profiles.js.map +1 -1
- package/dist/react-native/operations/resourceUsageOperations.js +23 -40
- package/dist/react-native/operations/resourceUsageOperations.js.map +1 -1
- package/dist/react-native/operations/routes.js +56 -58
- package/dist/react-native/operations/routes.js.map +1 -1
- package/dist/react-native/operations/ruleSets.js +56 -85
- package/dist/react-native/operations/ruleSets.js.map +1 -1
- package/dist/react-native/operations/rules.js +56 -58
- package/dist/react-native/operations/rules.js.map +1 -1
- package/dist/react-native/operations/secrets.js +45 -52
- package/dist/react-native/operations/secrets.js.map +1 -1
- package/dist/react-native/operations/securityPolicies.js +56 -58
- package/dist/react-native/operations/securityPolicies.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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Endpoints operations. */
|
|
20
20
|
class EndpointsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Endpoints class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class EndpointsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByProfilePagingPage(resourceGroupName, profileName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByProfile(resourceGroupName, profileName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByProfileNext(resourceGroupName, profileName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByProfilePagingAll(resourceGroupName, profileName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByProfilePagingPage(resourceGroupName, profileName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByProfilePagingAll(resourceGroupName, profileName, options) {
|
|
71
|
+
for await (const page of this.listByProfilePagingPage(resourceGroupName, profileName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Checks the quota and usage of geo filters and custom domains under the given endpoint.
|
|
@@ -105,52 +89,35 @@ class EndpointsImpl {
|
|
|
105
89
|
return this;
|
|
106
90
|
},
|
|
107
91
|
byPage: (settings) => {
|
|
108
|
-
if (settings
|
|
92
|
+
if (settings?.maxPageSize) {
|
|
109
93
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
110
94
|
}
|
|
111
95
|
return this.listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options, settings);
|
|
112
96
|
},
|
|
113
97
|
};
|
|
114
98
|
}
|
|
115
|
-
listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options, settings) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
});
|
|
99
|
+
async *listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options, settings) {
|
|
100
|
+
let result;
|
|
101
|
+
let continuationToken = settings?.continuationToken;
|
|
102
|
+
if (!continuationToken) {
|
|
103
|
+
result = await this._listResourceUsage(resourceGroupName, profileName, endpointName, options);
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
107
|
+
yield page;
|
|
108
|
+
}
|
|
109
|
+
while (continuationToken) {
|
|
110
|
+
result = await this._listResourceUsageNext(resourceGroupName, profileName, endpointName, continuationToken, options);
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
114
|
+
yield page;
|
|
115
|
+
}
|
|
134
116
|
}
|
|
135
|
-
listResourceUsagePagingAll(resourceGroupName, profileName, endpointName, options) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
140
|
-
_c = _f.value;
|
|
141
|
-
_d = false;
|
|
142
|
-
const page = _c;
|
|
143
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
147
|
-
finally {
|
|
148
|
-
try {
|
|
149
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
150
|
-
}
|
|
151
|
-
finally { if (e_2) throw e_2.error; }
|
|
152
|
-
}
|
|
153
|
-
});
|
|
117
|
+
async *listResourceUsagePagingAll(resourceGroupName, profileName, endpointName, options) {
|
|
118
|
+
for await (const page of this.listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options)) {
|
|
119
|
+
yield* page;
|
|
120
|
+
}
|
|
154
121
|
}
|
|
155
122
|
/**
|
|
156
123
|
* Lists existing CDN endpoints.
|
|
@@ -186,14 +153,19 @@ class EndpointsImpl {
|
|
|
186
153
|
return this.client.sendOperationRequest(args, spec);
|
|
187
154
|
};
|
|
188
155
|
const sendOperationFn = async (args, spec) => {
|
|
189
|
-
var _a;
|
|
190
156
|
let currentRawResponse = undefined;
|
|
191
|
-
const providedCallback =
|
|
157
|
+
const providedCallback = args.options?.onResponse;
|
|
192
158
|
const callback = (rawResponse, flatResponse) => {
|
|
193
159
|
currentRawResponse = rawResponse;
|
|
194
|
-
providedCallback
|
|
160
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
161
|
+
};
|
|
162
|
+
const updatedArgs = {
|
|
163
|
+
...args,
|
|
164
|
+
options: {
|
|
165
|
+
...args.options,
|
|
166
|
+
onResponse: callback,
|
|
167
|
+
},
|
|
195
168
|
};
|
|
196
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
197
169
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
198
170
|
return {
|
|
199
171
|
flatResponse,
|
|
@@ -210,8 +182,8 @@ class EndpointsImpl {
|
|
|
210
182
|
spec: createOperationSpec,
|
|
211
183
|
});
|
|
212
184
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
213
|
-
restoreFrom: options
|
|
214
|
-
intervalInMs: options
|
|
185
|
+
restoreFrom: options?.resumeFrom,
|
|
186
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
215
187
|
});
|
|
216
188
|
await poller.poll();
|
|
217
189
|
return poller;
|
|
@@ -245,14 +217,19 @@ class EndpointsImpl {
|
|
|
245
217
|
return this.client.sendOperationRequest(args, spec);
|
|
246
218
|
};
|
|
247
219
|
const sendOperationFn = async (args, spec) => {
|
|
248
|
-
var _a;
|
|
249
220
|
let currentRawResponse = undefined;
|
|
250
|
-
const providedCallback =
|
|
221
|
+
const providedCallback = args.options?.onResponse;
|
|
251
222
|
const callback = (rawResponse, flatResponse) => {
|
|
252
223
|
currentRawResponse = rawResponse;
|
|
253
|
-
providedCallback
|
|
224
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
225
|
+
};
|
|
226
|
+
const updatedArgs = {
|
|
227
|
+
...args,
|
|
228
|
+
options: {
|
|
229
|
+
...args.options,
|
|
230
|
+
onResponse: callback,
|
|
231
|
+
},
|
|
254
232
|
};
|
|
255
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
256
233
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
257
234
|
return {
|
|
258
235
|
flatResponse,
|
|
@@ -275,8 +252,8 @@ class EndpointsImpl {
|
|
|
275
252
|
spec: updateOperationSpec,
|
|
276
253
|
});
|
|
277
254
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
278
|
-
restoreFrom: options
|
|
279
|
-
intervalInMs: options
|
|
255
|
+
restoreFrom: options?.resumeFrom,
|
|
256
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
280
257
|
});
|
|
281
258
|
await poller.poll();
|
|
282
259
|
return poller;
|
|
@@ -309,14 +286,19 @@ class EndpointsImpl {
|
|
|
309
286
|
return this.client.sendOperationRequest(args, spec);
|
|
310
287
|
};
|
|
311
288
|
const sendOperationFn = async (args, spec) => {
|
|
312
|
-
var _a;
|
|
313
289
|
let currentRawResponse = undefined;
|
|
314
|
-
const providedCallback =
|
|
290
|
+
const providedCallback = args.options?.onResponse;
|
|
315
291
|
const callback = (rawResponse, flatResponse) => {
|
|
316
292
|
currentRawResponse = rawResponse;
|
|
317
|
-
providedCallback
|
|
293
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
294
|
+
};
|
|
295
|
+
const updatedArgs = {
|
|
296
|
+
...args,
|
|
297
|
+
options: {
|
|
298
|
+
...args.options,
|
|
299
|
+
onResponse: callback,
|
|
300
|
+
},
|
|
318
301
|
};
|
|
319
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
320
302
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
321
303
|
return {
|
|
322
304
|
flatResponse,
|
|
@@ -333,8 +315,8 @@ class EndpointsImpl {
|
|
|
333
315
|
spec: deleteOperationSpec,
|
|
334
316
|
});
|
|
335
317
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
336
|
-
restoreFrom: options
|
|
337
|
-
intervalInMs: options
|
|
318
|
+
restoreFrom: options?.resumeFrom,
|
|
319
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
338
320
|
});
|
|
339
321
|
await poller.poll();
|
|
340
322
|
return poller;
|
|
@@ -363,14 +345,19 @@ class EndpointsImpl {
|
|
|
363
345
|
return this.client.sendOperationRequest(args, spec);
|
|
364
346
|
};
|
|
365
347
|
const sendOperationFn = async (args, spec) => {
|
|
366
|
-
var _a;
|
|
367
348
|
let currentRawResponse = undefined;
|
|
368
|
-
const providedCallback =
|
|
349
|
+
const providedCallback = args.options?.onResponse;
|
|
369
350
|
const callback = (rawResponse, flatResponse) => {
|
|
370
351
|
currentRawResponse = rawResponse;
|
|
371
|
-
providedCallback
|
|
352
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
353
|
+
};
|
|
354
|
+
const updatedArgs = {
|
|
355
|
+
...args,
|
|
356
|
+
options: {
|
|
357
|
+
...args.options,
|
|
358
|
+
onResponse: callback,
|
|
359
|
+
},
|
|
372
360
|
};
|
|
373
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
374
361
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
375
362
|
return {
|
|
376
363
|
flatResponse,
|
|
@@ -387,8 +374,8 @@ class EndpointsImpl {
|
|
|
387
374
|
spec: startOperationSpec,
|
|
388
375
|
});
|
|
389
376
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
390
|
-
restoreFrom: options
|
|
391
|
-
intervalInMs: options
|
|
377
|
+
restoreFrom: options?.resumeFrom,
|
|
378
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
392
379
|
});
|
|
393
380
|
await poller.poll();
|
|
394
381
|
return poller;
|
|
@@ -416,14 +403,19 @@ class EndpointsImpl {
|
|
|
416
403
|
return this.client.sendOperationRequest(args, spec);
|
|
417
404
|
};
|
|
418
405
|
const sendOperationFn = async (args, spec) => {
|
|
419
|
-
var _a;
|
|
420
406
|
let currentRawResponse = undefined;
|
|
421
|
-
const providedCallback =
|
|
407
|
+
const providedCallback = args.options?.onResponse;
|
|
422
408
|
const callback = (rawResponse, flatResponse) => {
|
|
423
409
|
currentRawResponse = rawResponse;
|
|
424
|
-
providedCallback
|
|
410
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
411
|
+
};
|
|
412
|
+
const updatedArgs = {
|
|
413
|
+
...args,
|
|
414
|
+
options: {
|
|
415
|
+
...args.options,
|
|
416
|
+
onResponse: callback,
|
|
417
|
+
},
|
|
425
418
|
};
|
|
426
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
427
419
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
428
420
|
return {
|
|
429
421
|
flatResponse,
|
|
@@ -440,8 +432,8 @@ class EndpointsImpl {
|
|
|
440
432
|
spec: stopOperationSpec,
|
|
441
433
|
});
|
|
442
434
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
443
|
-
restoreFrom: options
|
|
444
|
-
intervalInMs: options
|
|
435
|
+
restoreFrom: options?.resumeFrom,
|
|
436
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
445
437
|
});
|
|
446
438
|
await poller.poll();
|
|
447
439
|
return poller;
|
|
@@ -472,14 +464,19 @@ class EndpointsImpl {
|
|
|
472
464
|
return this.client.sendOperationRequest(args, spec);
|
|
473
465
|
};
|
|
474
466
|
const sendOperationFn = async (args, spec) => {
|
|
475
|
-
var _a;
|
|
476
467
|
let currentRawResponse = undefined;
|
|
477
|
-
const providedCallback =
|
|
468
|
+
const providedCallback = args.options?.onResponse;
|
|
478
469
|
const callback = (rawResponse, flatResponse) => {
|
|
479
470
|
currentRawResponse = rawResponse;
|
|
480
|
-
providedCallback
|
|
471
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
472
|
+
};
|
|
473
|
+
const updatedArgs = {
|
|
474
|
+
...args,
|
|
475
|
+
options: {
|
|
476
|
+
...args.options,
|
|
477
|
+
onResponse: callback,
|
|
478
|
+
},
|
|
481
479
|
};
|
|
482
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
483
480
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
484
481
|
return {
|
|
485
482
|
flatResponse,
|
|
@@ -502,8 +499,8 @@ class EndpointsImpl {
|
|
|
502
499
|
spec: purgeContentOperationSpec,
|
|
503
500
|
});
|
|
504
501
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
505
|
-
restoreFrom: options
|
|
506
|
-
intervalInMs: options
|
|
502
|
+
restoreFrom: options?.resumeFrom,
|
|
503
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
507
504
|
});
|
|
508
505
|
await poller.poll();
|
|
509
506
|
return poller;
|
|
@@ -536,14 +533,19 @@ class EndpointsImpl {
|
|
|
536
533
|
return this.client.sendOperationRequest(args, spec);
|
|
537
534
|
};
|
|
538
535
|
const sendOperationFn = async (args, spec) => {
|
|
539
|
-
var _a;
|
|
540
536
|
let currentRawResponse = undefined;
|
|
541
|
-
const providedCallback =
|
|
537
|
+
const providedCallback = args.options?.onResponse;
|
|
542
538
|
const callback = (rawResponse, flatResponse) => {
|
|
543
539
|
currentRawResponse = rawResponse;
|
|
544
|
-
providedCallback
|
|
540
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
541
|
+
};
|
|
542
|
+
const updatedArgs = {
|
|
543
|
+
...args,
|
|
544
|
+
options: {
|
|
545
|
+
...args.options,
|
|
546
|
+
onResponse: callback,
|
|
547
|
+
},
|
|
545
548
|
};
|
|
546
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
547
549
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
548
550
|
return {
|
|
549
551
|
flatResponse,
|
|
@@ -566,8 +568,8 @@ class EndpointsImpl {
|
|
|
566
568
|
spec: loadContentOperationSpec,
|
|
567
569
|
});
|
|
568
570
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
569
|
-
restoreFrom: options
|
|
570
|
-
intervalInMs: options
|
|
571
|
+
restoreFrom: options?.resumeFrom,
|
|
572
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
571
573
|
});
|
|
572
574
|
await poller.poll();
|
|
573
575
|
return poller;
|