@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
|
@@ -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 Endpoints operations. */
|
|
17
16
|
export class EndpointsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Endpoints class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class EndpointsImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByProfilePagingPage(resourceGroupName, profileName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByProfile(resourceGroupName, profileName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByProfileNext(resourceGroupName, profileName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByProfilePagingAll(resourceGroupName, profileName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByProfilePagingPage(resourceGroupName, profileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByProfilePagingAll(resourceGroupName, profileName, options) {
|
|
67
|
+
for await (const page of this.listByProfilePagingPage(resourceGroupName, profileName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Checks the quota and usage of geo filters and custom domains under the given endpoint.
|
|
@@ -102,52 +85,35 @@ export class EndpointsImpl {
|
|
|
102
85
|
return this;
|
|
103
86
|
},
|
|
104
87
|
byPage: (settings) => {
|
|
105
|
-
if (settings
|
|
88
|
+
if (settings?.maxPageSize) {
|
|
106
89
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
107
90
|
}
|
|
108
91
|
return this.listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options, settings);
|
|
109
92
|
},
|
|
110
93
|
};
|
|
111
94
|
}
|
|
112
|
-
listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options, settings) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
});
|
|
95
|
+
async *listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options, settings) {
|
|
96
|
+
let result;
|
|
97
|
+
let continuationToken = settings?.continuationToken;
|
|
98
|
+
if (!continuationToken) {
|
|
99
|
+
result = await this._listResourceUsage(resourceGroupName, profileName, endpointName, options);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listResourceUsageNext(resourceGroupName, profileName, endpointName, continuationToken, options);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
131
112
|
}
|
|
132
|
-
listResourceUsagePagingAll(resourceGroupName, profileName, endpointName, options) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
for (var _d = true, _e = __asyncValues(this.listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
137
|
-
_c = _f.value;
|
|
138
|
-
_d = false;
|
|
139
|
-
const page = _c;
|
|
140
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
144
|
-
finally {
|
|
145
|
-
try {
|
|
146
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
147
|
-
}
|
|
148
|
-
finally { if (e_2) throw e_2.error; }
|
|
149
|
-
}
|
|
150
|
-
});
|
|
113
|
+
async *listResourceUsagePagingAll(resourceGroupName, profileName, endpointName, options) {
|
|
114
|
+
for await (const page of this.listResourceUsagePagingPage(resourceGroupName, profileName, endpointName, options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
151
117
|
}
|
|
152
118
|
/**
|
|
153
119
|
* Lists existing CDN endpoints.
|
|
@@ -183,14 +149,19 @@ export class EndpointsImpl {
|
|
|
183
149
|
return this.client.sendOperationRequest(args, spec);
|
|
184
150
|
};
|
|
185
151
|
const sendOperationFn = async (args, spec) => {
|
|
186
|
-
var _a;
|
|
187
152
|
let currentRawResponse = undefined;
|
|
188
|
-
const providedCallback =
|
|
153
|
+
const providedCallback = args.options?.onResponse;
|
|
189
154
|
const callback = (rawResponse, flatResponse) => {
|
|
190
155
|
currentRawResponse = rawResponse;
|
|
191
|
-
providedCallback
|
|
156
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
157
|
+
};
|
|
158
|
+
const updatedArgs = {
|
|
159
|
+
...args,
|
|
160
|
+
options: {
|
|
161
|
+
...args.options,
|
|
162
|
+
onResponse: callback,
|
|
163
|
+
},
|
|
192
164
|
};
|
|
193
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
194
165
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
195
166
|
return {
|
|
196
167
|
flatResponse,
|
|
@@ -207,8 +178,8 @@ export class EndpointsImpl {
|
|
|
207
178
|
spec: createOperationSpec,
|
|
208
179
|
});
|
|
209
180
|
const poller = await createHttpPoller(lro, {
|
|
210
|
-
restoreFrom: options
|
|
211
|
-
intervalInMs: options
|
|
181
|
+
restoreFrom: options?.resumeFrom,
|
|
182
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
212
183
|
});
|
|
213
184
|
await poller.poll();
|
|
214
185
|
return poller;
|
|
@@ -242,14 +213,19 @@ export class EndpointsImpl {
|
|
|
242
213
|
return this.client.sendOperationRequest(args, spec);
|
|
243
214
|
};
|
|
244
215
|
const sendOperationFn = async (args, spec) => {
|
|
245
|
-
var _a;
|
|
246
216
|
let currentRawResponse = undefined;
|
|
247
|
-
const providedCallback =
|
|
217
|
+
const providedCallback = args.options?.onResponse;
|
|
248
218
|
const callback = (rawResponse, flatResponse) => {
|
|
249
219
|
currentRawResponse = rawResponse;
|
|
250
|
-
providedCallback
|
|
220
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
221
|
+
};
|
|
222
|
+
const updatedArgs = {
|
|
223
|
+
...args,
|
|
224
|
+
options: {
|
|
225
|
+
...args.options,
|
|
226
|
+
onResponse: callback,
|
|
227
|
+
},
|
|
251
228
|
};
|
|
252
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
253
229
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
254
230
|
return {
|
|
255
231
|
flatResponse,
|
|
@@ -272,8 +248,8 @@ export class EndpointsImpl {
|
|
|
272
248
|
spec: updateOperationSpec,
|
|
273
249
|
});
|
|
274
250
|
const poller = await createHttpPoller(lro, {
|
|
275
|
-
restoreFrom: options
|
|
276
|
-
intervalInMs: options
|
|
251
|
+
restoreFrom: options?.resumeFrom,
|
|
252
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
277
253
|
});
|
|
278
254
|
await poller.poll();
|
|
279
255
|
return poller;
|
|
@@ -306,14 +282,19 @@ export class EndpointsImpl {
|
|
|
306
282
|
return this.client.sendOperationRequest(args, spec);
|
|
307
283
|
};
|
|
308
284
|
const sendOperationFn = async (args, spec) => {
|
|
309
|
-
var _a;
|
|
310
285
|
let currentRawResponse = undefined;
|
|
311
|
-
const providedCallback =
|
|
286
|
+
const providedCallback = args.options?.onResponse;
|
|
312
287
|
const callback = (rawResponse, flatResponse) => {
|
|
313
288
|
currentRawResponse = rawResponse;
|
|
314
|
-
providedCallback
|
|
289
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
290
|
+
};
|
|
291
|
+
const updatedArgs = {
|
|
292
|
+
...args,
|
|
293
|
+
options: {
|
|
294
|
+
...args.options,
|
|
295
|
+
onResponse: callback,
|
|
296
|
+
},
|
|
315
297
|
};
|
|
316
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
317
298
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
318
299
|
return {
|
|
319
300
|
flatResponse,
|
|
@@ -330,8 +311,8 @@ export class EndpointsImpl {
|
|
|
330
311
|
spec: deleteOperationSpec,
|
|
331
312
|
});
|
|
332
313
|
const poller = await createHttpPoller(lro, {
|
|
333
|
-
restoreFrom: options
|
|
334
|
-
intervalInMs: options
|
|
314
|
+
restoreFrom: options?.resumeFrom,
|
|
315
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
335
316
|
});
|
|
336
317
|
await poller.poll();
|
|
337
318
|
return poller;
|
|
@@ -360,14 +341,19 @@ export class EndpointsImpl {
|
|
|
360
341
|
return this.client.sendOperationRequest(args, spec);
|
|
361
342
|
};
|
|
362
343
|
const sendOperationFn = async (args, spec) => {
|
|
363
|
-
var _a;
|
|
364
344
|
let currentRawResponse = undefined;
|
|
365
|
-
const providedCallback =
|
|
345
|
+
const providedCallback = args.options?.onResponse;
|
|
366
346
|
const callback = (rawResponse, flatResponse) => {
|
|
367
347
|
currentRawResponse = rawResponse;
|
|
368
|
-
providedCallback
|
|
348
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
349
|
+
};
|
|
350
|
+
const updatedArgs = {
|
|
351
|
+
...args,
|
|
352
|
+
options: {
|
|
353
|
+
...args.options,
|
|
354
|
+
onResponse: callback,
|
|
355
|
+
},
|
|
369
356
|
};
|
|
370
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
371
357
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
372
358
|
return {
|
|
373
359
|
flatResponse,
|
|
@@ -384,8 +370,8 @@ export class EndpointsImpl {
|
|
|
384
370
|
spec: startOperationSpec,
|
|
385
371
|
});
|
|
386
372
|
const poller = await createHttpPoller(lro, {
|
|
387
|
-
restoreFrom: options
|
|
388
|
-
intervalInMs: options
|
|
373
|
+
restoreFrom: options?.resumeFrom,
|
|
374
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
389
375
|
});
|
|
390
376
|
await poller.poll();
|
|
391
377
|
return poller;
|
|
@@ -413,14 +399,19 @@ export class EndpointsImpl {
|
|
|
413
399
|
return this.client.sendOperationRequest(args, spec);
|
|
414
400
|
};
|
|
415
401
|
const sendOperationFn = async (args, spec) => {
|
|
416
|
-
var _a;
|
|
417
402
|
let currentRawResponse = undefined;
|
|
418
|
-
const providedCallback =
|
|
403
|
+
const providedCallback = args.options?.onResponse;
|
|
419
404
|
const callback = (rawResponse, flatResponse) => {
|
|
420
405
|
currentRawResponse = rawResponse;
|
|
421
|
-
providedCallback
|
|
406
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
407
|
+
};
|
|
408
|
+
const updatedArgs = {
|
|
409
|
+
...args,
|
|
410
|
+
options: {
|
|
411
|
+
...args.options,
|
|
412
|
+
onResponse: callback,
|
|
413
|
+
},
|
|
422
414
|
};
|
|
423
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
424
415
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
425
416
|
return {
|
|
426
417
|
flatResponse,
|
|
@@ -437,8 +428,8 @@ export class EndpointsImpl {
|
|
|
437
428
|
spec: stopOperationSpec,
|
|
438
429
|
});
|
|
439
430
|
const poller = await createHttpPoller(lro, {
|
|
440
|
-
restoreFrom: options
|
|
441
|
-
intervalInMs: options
|
|
431
|
+
restoreFrom: options?.resumeFrom,
|
|
432
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
442
433
|
});
|
|
443
434
|
await poller.poll();
|
|
444
435
|
return poller;
|
|
@@ -469,14 +460,19 @@ export class EndpointsImpl {
|
|
|
469
460
|
return this.client.sendOperationRequest(args, spec);
|
|
470
461
|
};
|
|
471
462
|
const sendOperationFn = async (args, spec) => {
|
|
472
|
-
var _a;
|
|
473
463
|
let currentRawResponse = undefined;
|
|
474
|
-
const providedCallback =
|
|
464
|
+
const providedCallback = args.options?.onResponse;
|
|
475
465
|
const callback = (rawResponse, flatResponse) => {
|
|
476
466
|
currentRawResponse = rawResponse;
|
|
477
|
-
providedCallback
|
|
467
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
468
|
+
};
|
|
469
|
+
const updatedArgs = {
|
|
470
|
+
...args,
|
|
471
|
+
options: {
|
|
472
|
+
...args.options,
|
|
473
|
+
onResponse: callback,
|
|
474
|
+
},
|
|
478
475
|
};
|
|
479
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
480
476
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
481
477
|
return {
|
|
482
478
|
flatResponse,
|
|
@@ -499,8 +495,8 @@ export class EndpointsImpl {
|
|
|
499
495
|
spec: purgeContentOperationSpec,
|
|
500
496
|
});
|
|
501
497
|
const poller = await createHttpPoller(lro, {
|
|
502
|
-
restoreFrom: options
|
|
503
|
-
intervalInMs: options
|
|
498
|
+
restoreFrom: options?.resumeFrom,
|
|
499
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
504
500
|
});
|
|
505
501
|
await poller.poll();
|
|
506
502
|
return poller;
|
|
@@ -533,14 +529,19 @@ export class EndpointsImpl {
|
|
|
533
529
|
return this.client.sendOperationRequest(args, spec);
|
|
534
530
|
};
|
|
535
531
|
const sendOperationFn = async (args, spec) => {
|
|
536
|
-
var _a;
|
|
537
532
|
let currentRawResponse = undefined;
|
|
538
|
-
const providedCallback =
|
|
533
|
+
const providedCallback = args.options?.onResponse;
|
|
539
534
|
const callback = (rawResponse, flatResponse) => {
|
|
540
535
|
currentRawResponse = rawResponse;
|
|
541
|
-
providedCallback
|
|
536
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
537
|
+
};
|
|
538
|
+
const updatedArgs = {
|
|
539
|
+
...args,
|
|
540
|
+
options: {
|
|
541
|
+
...args.options,
|
|
542
|
+
onResponse: callback,
|
|
543
|
+
},
|
|
542
544
|
};
|
|
543
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
544
545
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
545
546
|
return {
|
|
546
547
|
flatResponse,
|
|
@@ -563,8 +564,8 @@ export class EndpointsImpl {
|
|
|
563
564
|
spec: loadContentOperationSpec,
|
|
564
565
|
});
|
|
565
566
|
const poller = await createHttpPoller(lro, {
|
|
566
|
-
restoreFrom: options
|
|
567
|
-
intervalInMs: options
|
|
567
|
+
restoreFrom: options?.resumeFrom,
|
|
568
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
568
569
|
});
|
|
569
570
|
await poller.poll();
|
|
570
571
|
return poller;
|