@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 Routes operations. */
|
|
17
16
|
export class RoutesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Routes class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -40,52 +40,35 @@ export class RoutesImpl {
|
|
|
40
40
|
return this;
|
|
41
41
|
},
|
|
42
42
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options, settings);
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options, settings) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
});
|
|
50
|
+
async *listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByEndpoint(resourceGroupName, profileName, endpointName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByEndpointNext(resourceGroupName, profileName, endpointName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
69
67
|
}
|
|
70
|
-
listByEndpointPagingAll(resourceGroupName, profileName, endpointName, options) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var _d = true, _e = __asyncValues(this.listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
-
_c = _f.value;
|
|
76
|
-
_d = false;
|
|
77
|
-
const page = _c;
|
|
78
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
-
finally {
|
|
83
|
-
try {
|
|
84
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
-
}
|
|
86
|
-
finally { if (e_1) throw e_1.error; }
|
|
87
|
-
}
|
|
88
|
-
});
|
|
68
|
+
async *listByEndpointPagingAll(resourceGroupName, profileName, endpointName, options) {
|
|
69
|
+
for await (const page of this.listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
89
72
|
}
|
|
90
73
|
/**
|
|
91
74
|
* Lists all of the existing origins within a profile.
|
|
@@ -127,14 +110,19 @@ export class RoutesImpl {
|
|
|
127
110
|
return this.client.sendOperationRequest(args, spec);
|
|
128
111
|
};
|
|
129
112
|
const sendOperationFn = async (args, spec) => {
|
|
130
|
-
var _a;
|
|
131
113
|
let currentRawResponse = undefined;
|
|
132
|
-
const providedCallback =
|
|
114
|
+
const providedCallback = args.options?.onResponse;
|
|
133
115
|
const callback = (rawResponse, flatResponse) => {
|
|
134
116
|
currentRawResponse = rawResponse;
|
|
135
|
-
providedCallback
|
|
117
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
118
|
+
};
|
|
119
|
+
const updatedArgs = {
|
|
120
|
+
...args,
|
|
121
|
+
options: {
|
|
122
|
+
...args.options,
|
|
123
|
+
onResponse: callback,
|
|
124
|
+
},
|
|
136
125
|
};
|
|
137
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
138
126
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
139
127
|
return {
|
|
140
128
|
flatResponse,
|
|
@@ -158,8 +146,8 @@ export class RoutesImpl {
|
|
|
158
146
|
spec: createOperationSpec,
|
|
159
147
|
});
|
|
160
148
|
const poller = await createHttpPoller(lro, {
|
|
161
|
-
restoreFrom: options
|
|
162
|
-
intervalInMs: options
|
|
149
|
+
restoreFrom: options?.resumeFrom,
|
|
150
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
163
151
|
resourceLocationConfig: "azure-async-operation",
|
|
164
152
|
});
|
|
165
153
|
await poller.poll();
|
|
@@ -196,14 +184,19 @@ export class RoutesImpl {
|
|
|
196
184
|
return this.client.sendOperationRequest(args, spec);
|
|
197
185
|
};
|
|
198
186
|
const sendOperationFn = async (args, spec) => {
|
|
199
|
-
var _a;
|
|
200
187
|
let currentRawResponse = undefined;
|
|
201
|
-
const providedCallback =
|
|
188
|
+
const providedCallback = args.options?.onResponse;
|
|
202
189
|
const callback = (rawResponse, flatResponse) => {
|
|
203
190
|
currentRawResponse = rawResponse;
|
|
204
|
-
providedCallback
|
|
191
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
192
|
+
};
|
|
193
|
+
const updatedArgs = {
|
|
194
|
+
...args,
|
|
195
|
+
options: {
|
|
196
|
+
...args.options,
|
|
197
|
+
onResponse: callback,
|
|
198
|
+
},
|
|
205
199
|
};
|
|
206
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
207
200
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
208
201
|
return {
|
|
209
202
|
flatResponse,
|
|
@@ -227,8 +220,8 @@ export class RoutesImpl {
|
|
|
227
220
|
spec: updateOperationSpec,
|
|
228
221
|
});
|
|
229
222
|
const poller = await createHttpPoller(lro, {
|
|
230
|
-
restoreFrom: options
|
|
231
|
-
intervalInMs: options
|
|
223
|
+
restoreFrom: options?.resumeFrom,
|
|
224
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
232
225
|
resourceLocationConfig: "azure-async-operation",
|
|
233
226
|
});
|
|
234
227
|
await poller.poll();
|
|
@@ -264,14 +257,19 @@ export class RoutesImpl {
|
|
|
264
257
|
return this.client.sendOperationRequest(args, spec);
|
|
265
258
|
};
|
|
266
259
|
const sendOperationFn = async (args, spec) => {
|
|
267
|
-
var _a;
|
|
268
260
|
let currentRawResponse = undefined;
|
|
269
|
-
const providedCallback =
|
|
261
|
+
const providedCallback = args.options?.onResponse;
|
|
270
262
|
const callback = (rawResponse, flatResponse) => {
|
|
271
263
|
currentRawResponse = rawResponse;
|
|
272
|
-
providedCallback
|
|
264
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
265
|
+
};
|
|
266
|
+
const updatedArgs = {
|
|
267
|
+
...args,
|
|
268
|
+
options: {
|
|
269
|
+
...args.options,
|
|
270
|
+
onResponse: callback,
|
|
271
|
+
},
|
|
273
272
|
};
|
|
274
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
275
273
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
276
274
|
return {
|
|
277
275
|
flatResponse,
|
|
@@ -294,8 +292,8 @@ export class RoutesImpl {
|
|
|
294
292
|
spec: deleteOperationSpec,
|
|
295
293
|
});
|
|
296
294
|
const poller = await createHttpPoller(lro, {
|
|
297
|
-
restoreFrom: options
|
|
298
|
-
intervalInMs: options
|
|
295
|
+
restoreFrom: options?.resumeFrom,
|
|
296
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
299
297
|
resourceLocationConfig: "azure-async-operation",
|
|
300
298
|
});
|
|
301
299
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/operations/routes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;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AAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Routes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Route,\n RoutesListByEndpointNextOptionalParams,\n RoutesListByEndpointOptionalParams,\n RoutesListByEndpointResponse,\n RoutesGetOptionalParams,\n RoutesGetResponse,\n RoutesCreateOptionalParams,\n RoutesCreateResponse,\n RouteUpdateParameters,\n RoutesUpdateOptionalParams,\n RoutesUpdateResponse,\n RoutesDeleteOptionalParams,\n RoutesListByEndpointNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Routes operations. */\nexport class RoutesImpl implements Routes {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class Routes class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the existing origins within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n public listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n ): PagedAsyncIterableIterator<Route> {\n const iter = this.listByEndpointPagingAll(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByEndpointPagingPage(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Route[]> {\n let result: RoutesListByEndpointResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByEndpoint(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByEndpointNext(\n resourceGroupName,\n profileName,\n endpointName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByEndpointPagingAll(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n ): AsyncIterableIterator<Route> {\n for await (const page of this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing origins within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n private _listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n ): Promise<RoutesListByEndpointResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, options },\n listByEndpointOperationSpec,\n );\n }\n\n /**\n * Gets an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n options?: RoutesGetOptionalParams,\n ): Promise<RoutesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, routeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new route with the specified route name under the specified subscription, resource group,\n * profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param route Route properties\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n route: Route,\n options?: RoutesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RoutesCreateResponse>, RoutesCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RoutesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n route,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n RoutesCreateResponse,\n OperationState<RoutesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new route with the specified route name under the specified subscription, resource group,\n * profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param route Route properties\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n route: Route,\n options?: RoutesCreateOptionalParams,\n ): Promise<RoutesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n route,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param routeUpdateProperties Route update properties\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n routeUpdateProperties: RouteUpdateParameters,\n options?: RoutesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RoutesUpdateResponse>, RoutesUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RoutesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n routeUpdateProperties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n RoutesUpdateResponse,\n OperationState<RoutesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param routeUpdateProperties Route update properties\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n routeUpdateProperties: RouteUpdateParameters,\n options?: RoutesUpdateOptionalParams,\n ): Promise<RoutesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n routeUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n options?: RoutesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n options?: RoutesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByEndpointNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param nextLink The nextLink from the previous successful call to the ListByEndpoint method.\n * @param options The options parameters.\n */\n private _listByEndpointNext(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n nextLink: string,\n options?: RoutesListByEndpointNextOptionalParams,\n ): Promise<RoutesListByEndpointNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, nextLink, options },\n listByEndpointNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByEndpointOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RouteListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Route,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Route,\n },\n 201: {\n bodyMapper: Mappers.Route,\n },\n 202: {\n bodyMapper: Mappers.Route,\n },\n 204: {\n bodyMapper: Mappers.Route,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.route,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Route,\n },\n 201: {\n bodyMapper: Mappers.Route,\n },\n 202: {\n bodyMapper: Mappers.Route,\n },\n 204: {\n bodyMapper: Mappers.Route,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.routeUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByEndpointNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RouteListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/operations/routes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IACJ,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,cAAc,CACnB,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,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E,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Routes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CdnManagementClient } from \"../cdnManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Route,\n RoutesListByEndpointNextOptionalParams,\n RoutesListByEndpointOptionalParams,\n RoutesListByEndpointResponse,\n RoutesGetOptionalParams,\n RoutesGetResponse,\n RoutesCreateOptionalParams,\n RoutesCreateResponse,\n RouteUpdateParameters,\n RoutesUpdateOptionalParams,\n RoutesUpdateResponse,\n RoutesDeleteOptionalParams,\n RoutesListByEndpointNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Routes operations. */\nexport class RoutesImpl implements Routes {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class Routes class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the existing origins within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n public listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n ): PagedAsyncIterableIterator<Route> {\n const iter = this.listByEndpointPagingAll(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByEndpointPagingPage(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Route[]> {\n let result: RoutesListByEndpointResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByEndpoint(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByEndpointNext(\n resourceGroupName,\n profileName,\n endpointName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByEndpointPagingAll(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n ): AsyncIterableIterator<Route> {\n for await (const page of this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing origins within a profile.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n private _listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: RoutesListByEndpointOptionalParams,\n ): Promise<RoutesListByEndpointResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, options },\n listByEndpointOperationSpec,\n );\n }\n\n /**\n * Gets an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n options?: RoutesGetOptionalParams,\n ): Promise<RoutesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, routeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new route with the specified route name under the specified subscription, resource group,\n * profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param route Route properties\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n route: Route,\n options?: RoutesCreateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RoutesCreateResponse>, RoutesCreateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RoutesCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n route,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n RoutesCreateResponse,\n OperationState<RoutesCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new route with the specified route name under the specified subscription, resource group,\n * profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param route Route properties\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n route: Route,\n options?: RoutesCreateOptionalParams,\n ): Promise<RoutesCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n route,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param routeUpdateProperties Route update properties\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n routeUpdateProperties: RouteUpdateParameters,\n options?: RoutesUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RoutesUpdateResponse>, RoutesUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RoutesUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n routeUpdateProperties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n RoutesUpdateResponse,\n OperationState<RoutesUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param routeUpdateProperties Route update properties\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n routeUpdateProperties: RouteUpdateParameters,\n options?: RoutesUpdateOptionalParams,\n ): Promise<RoutesUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n routeUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n options?: RoutesDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing route with the specified route name under the specified subscription, resource\n * group, profile, and AzureFrontDoor endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param routeName Name of the routing rule.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n routeName: string,\n options?: RoutesDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n endpointName,\n routeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByEndpointNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the Azure Front Door Standard or Azure Front Door Premium profile which\n * is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param nextLink The nextLink from the previous successful call to the ListByEndpoint method.\n * @param options The options parameters.\n */\n private _listByEndpointNext(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n nextLink: string,\n options?: RoutesListByEndpointNextOptionalParams,\n ): Promise<RoutesListByEndpointNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, nextLink, options },\n listByEndpointNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByEndpointOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RouteListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Route,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Route,\n },\n 201: {\n bodyMapper: Mappers.Route,\n },\n 202: {\n bodyMapper: Mappers.Route,\n },\n 204: {\n bodyMapper: Mappers.Route,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.route,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Route,\n },\n 201: {\n bodyMapper: Mappers.Route,\n },\n 202: {\n bodyMapper: Mappers.Route,\n },\n 204: {\n bodyMapper: Mappers.Route,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.routeUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n Parameters.routeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByEndpointNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RouteListResult,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -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 RuleSets operations. */
|
|
17
16
|
export class RuleSetsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class RuleSets class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class RuleSetsImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listByProfilePagingPage(resourceGroupName, profileName, options, settings);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listByProfilePagingPage(resourceGroupName, profileName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listByProfile(resourceGroupName, profileName, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listByProfileNext(resourceGroupName, profileName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listByProfilePagingAll(resourceGroupName, profileName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listByProfilePagingPage(resourceGroupName, profileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield __await(yield* __asyncDelegator(__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 __await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
67
|
+
async *listByProfilePagingAll(resourceGroupName, profileName, options) {
|
|
68
|
+
for await (const page of this.listByProfilePagingPage(resourceGroupName, profileName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Checks the quota and actual usage of endpoints under the given Azure Front Door profile..
|
|
@@ -104,52 +87,35 @@ export class RuleSetsImpl {
|
|
|
104
87
|
return this;
|
|
105
88
|
},
|
|
106
89
|
byPage: (settings) => {
|
|
107
|
-
if (settings
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
108
91
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
109
92
|
}
|
|
110
93
|
return this.listResourceUsagePagingPage(resourceGroupName, profileName, ruleSetName, options, settings);
|
|
111
94
|
},
|
|
112
95
|
};
|
|
113
96
|
}
|
|
114
|
-
listResourceUsagePagingPage(resourceGroupName, profileName, ruleSetName, options, settings) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
});
|
|
97
|
+
async *listResourceUsagePagingPage(resourceGroupName, profileName, ruleSetName, options, settings) {
|
|
98
|
+
let result;
|
|
99
|
+
let continuationToken = settings?.continuationToken;
|
|
100
|
+
if (!continuationToken) {
|
|
101
|
+
result = await this._listResourceUsage(resourceGroupName, profileName, ruleSetName, options);
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
setContinuationToken(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
107
|
+
while (continuationToken) {
|
|
108
|
+
result = await this._listResourceUsageNext(resourceGroupName, profileName, ruleSetName, continuationToken, options);
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
setContinuationToken(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
133
114
|
}
|
|
134
|
-
listResourceUsagePagingAll(resourceGroupName, profileName, ruleSetName, options) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
for (var _d = true, _e = __asyncValues(this.listResourceUsagePagingPage(resourceGroupName, profileName, ruleSetName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
139
|
-
_c = _f.value;
|
|
140
|
-
_d = false;
|
|
141
|
-
const page = _c;
|
|
142
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
146
|
-
finally {
|
|
147
|
-
try {
|
|
148
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
149
|
-
}
|
|
150
|
-
finally { if (e_2) throw e_2.error; }
|
|
151
|
-
}
|
|
152
|
-
});
|
|
115
|
+
async *listResourceUsagePagingAll(resourceGroupName, profileName, ruleSetName, options) {
|
|
116
|
+
for await (const page of this.listResourceUsagePagingPage(resourceGroupName, profileName, ruleSetName, options)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
153
119
|
}
|
|
154
120
|
/**
|
|
155
121
|
* Lists existing AzureFrontDoor rule sets within a profile.
|
|
@@ -198,14 +164,19 @@ export class RuleSetsImpl {
|
|
|
198
164
|
return this.client.sendOperationRequest(args, spec);
|
|
199
165
|
};
|
|
200
166
|
const sendOperationFn = async (args, spec) => {
|
|
201
|
-
var _a;
|
|
202
167
|
let currentRawResponse = undefined;
|
|
203
|
-
const providedCallback =
|
|
168
|
+
const providedCallback = args.options?.onResponse;
|
|
204
169
|
const callback = (rawResponse, flatResponse) => {
|
|
205
170
|
currentRawResponse = rawResponse;
|
|
206
|
-
providedCallback
|
|
171
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
172
|
+
};
|
|
173
|
+
const updatedArgs = {
|
|
174
|
+
...args,
|
|
175
|
+
options: {
|
|
176
|
+
...args.options,
|
|
177
|
+
onResponse: callback,
|
|
178
|
+
},
|
|
207
179
|
};
|
|
208
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
209
180
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
210
181
|
return {
|
|
211
182
|
flatResponse,
|
|
@@ -222,8 +193,8 @@ export class RuleSetsImpl {
|
|
|
222
193
|
spec: deleteOperationSpec,
|
|
223
194
|
});
|
|
224
195
|
const poller = await createHttpPoller(lro, {
|
|
225
|
-
restoreFrom: options
|
|
226
|
-
intervalInMs: options
|
|
196
|
+
restoreFrom: options?.resumeFrom,
|
|
197
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
227
198
|
resourceLocationConfig: "azure-async-operation",
|
|
228
199
|
});
|
|
229
200
|
await poller.poll();
|