@azure/arm-cdn 9.1.1-alpha.20250718.1 → 9.1.1-alpha.20250721.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.
Files changed (201) hide show
  1. package/dist/browser/cdnManagementClient.js +34 -5
  2. package/dist/browser/cdnManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +663 -294
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/afdCustomDomains.js +67 -64
  8. package/dist/browser/operations/afdCustomDomains.js.map +1 -1
  9. package/dist/browser/operations/afdEndpoints.js +89 -103
  10. package/dist/browser/operations/afdEndpoints.js.map +1 -1
  11. package/dist/browser/operations/afdOriginGroups.js +78 -97
  12. package/dist/browser/operations/afdOriginGroups.js.map +1 -1
  13. package/dist/browser/operations/afdOrigins.js +56 -58
  14. package/dist/browser/operations/afdOrigins.js.map +1 -1
  15. package/dist/browser/operations/afdProfiles.js +34 -46
  16. package/dist/browser/operations/afdProfiles.js.map +1 -1
  17. package/dist/browser/operations/customDomains.js +67 -64
  18. package/dist/browser/operations/customDomains.js.map +1 -1
  19. package/dist/browser/operations/edgeNodes.js +23 -40
  20. package/dist/browser/operations/edgeNodes.js.map +1 -1
  21. package/dist/browser/operations/endpoints.js +122 -121
  22. package/dist/browser/operations/endpoints.js.map +1 -1
  23. package/dist/browser/operations/logAnalytics.js +1 -0
  24. package/dist/browser/operations/logAnalytics.js.map +1 -1
  25. package/dist/browser/operations/managedRuleSets.js +23 -40
  26. package/dist/browser/operations/managedRuleSets.js.map +1 -1
  27. package/dist/browser/operations/operations.js +23 -40
  28. package/dist/browser/operations/operations.js.map +1 -1
  29. package/dist/browser/operations/originGroups.js +56 -58
  30. package/dist/browser/operations/originGroups.js.map +1 -1
  31. package/dist/browser/operations/origins.js +56 -58
  32. package/dist/browser/operations/origins.js.map +1 -1
  33. package/dist/browser/operations/policies.js +45 -52
  34. package/dist/browser/operations/policies.js.map +1 -1
  35. package/dist/browser/operations/profiles.js +133 -154
  36. package/dist/browser/operations/profiles.js.map +1 -1
  37. package/dist/browser/operations/resourceUsageOperations.js +23 -40
  38. package/dist/browser/operations/resourceUsageOperations.js.map +1 -1
  39. package/dist/browser/operations/routes.js +56 -58
  40. package/dist/browser/operations/routes.js.map +1 -1
  41. package/dist/browser/operations/ruleSets.js +56 -85
  42. package/dist/browser/operations/ruleSets.js.map +1 -1
  43. package/dist/browser/operations/rules.js +56 -58
  44. package/dist/browser/operations/rules.js.map +1 -1
  45. package/dist/browser/operations/secrets.js +45 -52
  46. package/dist/browser/operations/secrets.js.map +1 -1
  47. package/dist/browser/operations/securityPolicies.js +56 -58
  48. package/dist/browser/operations/securityPolicies.js.map +1 -1
  49. package/dist/browser/pagingHelper.js +2 -4
  50. package/dist/browser/pagingHelper.js.map +1 -1
  51. package/dist/commonjs/cdnManagementClient.js +34 -5
  52. package/dist/commonjs/cdnManagementClient.js.map +1 -1
  53. package/dist/commonjs/lroImpl.js +7 -3
  54. package/dist/commonjs/lroImpl.js.map +1 -1
  55. package/dist/commonjs/models/mappers.js +663 -294
  56. package/dist/commonjs/models/mappers.js.map +1 -1
  57. package/dist/commonjs/operations/afdCustomDomains.js +67 -63
  58. package/dist/commonjs/operations/afdCustomDomains.js.map +1 -1
  59. package/dist/commonjs/operations/afdEndpoints.js +89 -102
  60. package/dist/commonjs/operations/afdEndpoints.js.map +1 -1
  61. package/dist/commonjs/operations/afdOriginGroups.js +78 -96
  62. package/dist/commonjs/operations/afdOriginGroups.js.map +1 -1
  63. package/dist/commonjs/operations/afdOrigins.js +56 -57
  64. package/dist/commonjs/operations/afdOrigins.js.map +1 -1
  65. package/dist/commonjs/operations/afdProfiles.js +34 -45
  66. package/dist/commonjs/operations/afdProfiles.js.map +1 -1
  67. package/dist/commonjs/operations/customDomains.js +67 -63
  68. package/dist/commonjs/operations/customDomains.js.map +1 -1
  69. package/dist/commonjs/operations/edgeNodes.js +23 -39
  70. package/dist/commonjs/operations/edgeNodes.js.map +1 -1
  71. package/dist/commonjs/operations/endpoints.js +122 -120
  72. package/dist/commonjs/operations/endpoints.js.map +1 -1
  73. package/dist/commonjs/operations/logAnalytics.js +1 -0
  74. package/dist/commonjs/operations/logAnalytics.js.map +1 -1
  75. package/dist/commonjs/operations/managedRuleSets.js +23 -39
  76. package/dist/commonjs/operations/managedRuleSets.js.map +1 -1
  77. package/dist/commonjs/operations/operations.js +23 -39
  78. package/dist/commonjs/operations/operations.js.map +1 -1
  79. package/dist/commonjs/operations/originGroups.js +56 -57
  80. package/dist/commonjs/operations/originGroups.js.map +1 -1
  81. package/dist/commonjs/operations/origins.js +56 -57
  82. package/dist/commonjs/operations/origins.js.map +1 -1
  83. package/dist/commonjs/operations/policies.js +45 -51
  84. package/dist/commonjs/operations/policies.js.map +1 -1
  85. package/dist/commonjs/operations/profiles.js +133 -153
  86. package/dist/commonjs/operations/profiles.js.map +1 -1
  87. package/dist/commonjs/operations/resourceUsageOperations.js +23 -39
  88. package/dist/commonjs/operations/resourceUsageOperations.js.map +1 -1
  89. package/dist/commonjs/operations/routes.js +56 -57
  90. package/dist/commonjs/operations/routes.js.map +1 -1
  91. package/dist/commonjs/operations/ruleSets.js +56 -84
  92. package/dist/commonjs/operations/ruleSets.js.map +1 -1
  93. package/dist/commonjs/operations/rules.js +56 -57
  94. package/dist/commonjs/operations/rules.js.map +1 -1
  95. package/dist/commonjs/operations/secrets.js +45 -51
  96. package/dist/commonjs/operations/secrets.js.map +1 -1
  97. package/dist/commonjs/operations/securityPolicies.js +56 -57
  98. package/dist/commonjs/operations/securityPolicies.js.map +1 -1
  99. package/dist/commonjs/pagingHelper.js +2 -4
  100. package/dist/commonjs/pagingHelper.js.map +1 -1
  101. package/dist/esm/cdnManagementClient.js +34 -5
  102. package/dist/esm/cdnManagementClient.js.map +1 -1
  103. package/dist/esm/lroImpl.js +7 -3
  104. package/dist/esm/lroImpl.js.map +1 -1
  105. package/dist/esm/models/mappers.js +663 -294
  106. package/dist/esm/models/mappers.js.map +1 -1
  107. package/dist/esm/operations/afdCustomDomains.js +67 -64
  108. package/dist/esm/operations/afdCustomDomains.js.map +1 -1
  109. package/dist/esm/operations/afdEndpoints.js +89 -103
  110. package/dist/esm/operations/afdEndpoints.js.map +1 -1
  111. package/dist/esm/operations/afdOriginGroups.js +78 -97
  112. package/dist/esm/operations/afdOriginGroups.js.map +1 -1
  113. package/dist/esm/operations/afdOrigins.js +56 -58
  114. package/dist/esm/operations/afdOrigins.js.map +1 -1
  115. package/dist/esm/operations/afdProfiles.js +34 -46
  116. package/dist/esm/operations/afdProfiles.js.map +1 -1
  117. package/dist/esm/operations/customDomains.js +67 -64
  118. package/dist/esm/operations/customDomains.js.map +1 -1
  119. package/dist/esm/operations/edgeNodes.js +23 -40
  120. package/dist/esm/operations/edgeNodes.js.map +1 -1
  121. package/dist/esm/operations/endpoints.js +122 -121
  122. package/dist/esm/operations/endpoints.js.map +1 -1
  123. package/dist/esm/operations/logAnalytics.js +1 -0
  124. package/dist/esm/operations/logAnalytics.js.map +1 -1
  125. package/dist/esm/operations/managedRuleSets.js +23 -40
  126. package/dist/esm/operations/managedRuleSets.js.map +1 -1
  127. package/dist/esm/operations/operations.js +23 -40
  128. package/dist/esm/operations/operations.js.map +1 -1
  129. package/dist/esm/operations/originGroups.js +56 -58
  130. package/dist/esm/operations/originGroups.js.map +1 -1
  131. package/dist/esm/operations/origins.js +56 -58
  132. package/dist/esm/operations/origins.js.map +1 -1
  133. package/dist/esm/operations/policies.js +45 -52
  134. package/dist/esm/operations/policies.js.map +1 -1
  135. package/dist/esm/operations/profiles.js +133 -154
  136. package/dist/esm/operations/profiles.js.map +1 -1
  137. package/dist/esm/operations/resourceUsageOperations.js +23 -40
  138. package/dist/esm/operations/resourceUsageOperations.js.map +1 -1
  139. package/dist/esm/operations/routes.js +56 -58
  140. package/dist/esm/operations/routes.js.map +1 -1
  141. package/dist/esm/operations/ruleSets.js +56 -85
  142. package/dist/esm/operations/ruleSets.js.map +1 -1
  143. package/dist/esm/operations/rules.js +56 -58
  144. package/dist/esm/operations/rules.js.map +1 -1
  145. package/dist/esm/operations/secrets.js +45 -52
  146. package/dist/esm/operations/secrets.js.map +1 -1
  147. package/dist/esm/operations/securityPolicies.js +56 -58
  148. package/dist/esm/operations/securityPolicies.js.map +1 -1
  149. package/dist/esm/pagingHelper.js +2 -4
  150. package/dist/esm/pagingHelper.js.map +1 -1
  151. package/dist/react-native/cdnManagementClient.js +34 -5
  152. package/dist/react-native/cdnManagementClient.js.map +1 -1
  153. package/dist/react-native/lroImpl.js +7 -3
  154. package/dist/react-native/lroImpl.js.map +1 -1
  155. package/dist/react-native/models/mappers.js +663 -294
  156. package/dist/react-native/models/mappers.js.map +1 -1
  157. package/dist/react-native/operations/afdCustomDomains.js +67 -64
  158. package/dist/react-native/operations/afdCustomDomains.js.map +1 -1
  159. package/dist/react-native/operations/afdEndpoints.js +89 -103
  160. package/dist/react-native/operations/afdEndpoints.js.map +1 -1
  161. package/dist/react-native/operations/afdOriginGroups.js +78 -97
  162. package/dist/react-native/operations/afdOriginGroups.js.map +1 -1
  163. package/dist/react-native/operations/afdOrigins.js +56 -58
  164. package/dist/react-native/operations/afdOrigins.js.map +1 -1
  165. package/dist/react-native/operations/afdProfiles.js +34 -46
  166. package/dist/react-native/operations/afdProfiles.js.map +1 -1
  167. package/dist/react-native/operations/customDomains.js +67 -64
  168. package/dist/react-native/operations/customDomains.js.map +1 -1
  169. package/dist/react-native/operations/edgeNodes.js +23 -40
  170. package/dist/react-native/operations/edgeNodes.js.map +1 -1
  171. package/dist/react-native/operations/endpoints.js +122 -121
  172. package/dist/react-native/operations/endpoints.js.map +1 -1
  173. package/dist/react-native/operations/logAnalytics.js +1 -0
  174. package/dist/react-native/operations/logAnalytics.js.map +1 -1
  175. package/dist/react-native/operations/managedRuleSets.js +23 -40
  176. package/dist/react-native/operations/managedRuleSets.js.map +1 -1
  177. package/dist/react-native/operations/operations.js +23 -40
  178. package/dist/react-native/operations/operations.js.map +1 -1
  179. package/dist/react-native/operations/originGroups.js +56 -58
  180. package/dist/react-native/operations/originGroups.js.map +1 -1
  181. package/dist/react-native/operations/origins.js +56 -58
  182. package/dist/react-native/operations/origins.js.map +1 -1
  183. package/dist/react-native/operations/policies.js +45 -52
  184. package/dist/react-native/operations/policies.js.map +1 -1
  185. package/dist/react-native/operations/profiles.js +133 -154
  186. package/dist/react-native/operations/profiles.js.map +1 -1
  187. package/dist/react-native/operations/resourceUsageOperations.js +23 -40
  188. package/dist/react-native/operations/resourceUsageOperations.js.map +1 -1
  189. package/dist/react-native/operations/routes.js +56 -58
  190. package/dist/react-native/operations/routes.js.map +1 -1
  191. package/dist/react-native/operations/ruleSets.js +56 -85
  192. package/dist/react-native/operations/ruleSets.js.map +1 -1
  193. package/dist/react-native/operations/rules.js +56 -58
  194. package/dist/react-native/operations/rules.js.map +1 -1
  195. package/dist/react-native/operations/secrets.js +45 -52
  196. package/dist/react-native/operations/secrets.js.map +1 -1
  197. package/dist/react-native/operations/securityPolicies.js +56 -58
  198. package/dist/react-native/operations/securityPolicies.js.map +1 -1
  199. package/dist/react-native/pagingHelper.js +2 -4
  200. package/dist/react-native/pagingHelper.js.map +1 -1
  201. 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 AfdOrigins operations. */
17
16
  export class AfdOriginsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class AfdOrigins class.
20
20
  * @param client Reference to the service client
@@ -40,52 +40,35 @@ export class AfdOriginsImpl {
40
40
  return this;
41
41
  },
42
42
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
44
44
  throw new Error("maxPageSize is not supported by this operation.");
45
45
  }
46
46
  return this.listByOriginGroupPagingPage(resourceGroupName, profileName, originGroupName, options, settings);
47
47
  },
48
48
  };
49
49
  }
50
- listByOriginGroupPagingPage(resourceGroupName, profileName, originGroupName, options, settings) {
51
- return __asyncGenerator(this, arguments, function* listByOriginGroupPagingPage_1() {
52
- let result;
53
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
- if (!continuationToken) {
55
- result = yield __await(this._listByOriginGroup(resourceGroupName, profileName, originGroupName, options));
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- setContinuationToken(page, continuationToken);
59
- yield yield __await(page);
60
- }
61
- while (continuationToken) {
62
- result = yield __await(this._listByOriginGroupNext(resourceGroupName, profileName, originGroupName, continuationToken, options));
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- setContinuationToken(page, continuationToken);
66
- yield yield __await(page);
67
- }
68
- });
50
+ async *listByOriginGroupPagingPage(resourceGroupName, profileName, originGroupName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listByOriginGroup(resourceGroupName, profileName, originGroupName, 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._listByOriginGroupNext(resourceGroupName, profileName, originGroupName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield page;
66
+ }
69
67
  }
70
- listByOriginGroupPagingAll(resourceGroupName, profileName, originGroupName, options) {
71
- return __asyncGenerator(this, arguments, function* listByOriginGroupPagingAll_1() {
72
- var _a, e_1, _b, _c;
73
- try {
74
- for (var _d = true, _e = __asyncValues(this.listByOriginGroupPagingPage(resourceGroupName, profileName, originGroupName, 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 *listByOriginGroupPagingAll(resourceGroupName, profileName, originGroupName, options) {
69
+ for await (const page of this.listByOriginGroupPagingPage(resourceGroupName, profileName, originGroupName, options)) {
70
+ yield* page;
71
+ }
89
72
  }
90
73
  /**
91
74
  * Lists all of the existing origins within an origin group.
@@ -125,14 +108,19 @@ export class AfdOriginsImpl {
125
108
  return this.client.sendOperationRequest(args, spec);
126
109
  };
127
110
  const sendOperationFn = async (args, spec) => {
128
- var _a;
129
111
  let currentRawResponse = undefined;
130
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
112
+ const providedCallback = args.options?.onResponse;
131
113
  const callback = (rawResponse, flatResponse) => {
132
114
  currentRawResponse = rawResponse;
133
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
115
+ providedCallback?.(rawResponse, flatResponse);
116
+ };
117
+ const updatedArgs = {
118
+ ...args,
119
+ options: {
120
+ ...args.options,
121
+ onResponse: callback,
122
+ },
134
123
  };
135
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
136
124
  const flatResponse = await directSendOperation(updatedArgs, spec);
137
125
  return {
138
126
  flatResponse,
@@ -156,8 +144,8 @@ export class AfdOriginsImpl {
156
144
  spec: createOperationSpec,
157
145
  });
158
146
  const poller = await createHttpPoller(lro, {
159
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
160
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
147
+ restoreFrom: options?.resumeFrom,
148
+ intervalInMs: options?.updateIntervalInMs,
161
149
  resourceLocationConfig: "azure-async-operation",
162
150
  });
163
151
  await poller.poll();
@@ -192,14 +180,19 @@ export class AfdOriginsImpl {
192
180
  return this.client.sendOperationRequest(args, spec);
193
181
  };
194
182
  const sendOperationFn = async (args, spec) => {
195
- var _a;
196
183
  let currentRawResponse = undefined;
197
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
184
+ const providedCallback = args.options?.onResponse;
198
185
  const callback = (rawResponse, flatResponse) => {
199
186
  currentRawResponse = rawResponse;
200
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
187
+ providedCallback?.(rawResponse, flatResponse);
188
+ };
189
+ const updatedArgs = {
190
+ ...args,
191
+ options: {
192
+ ...args.options,
193
+ onResponse: callback,
194
+ },
201
195
  };
202
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
203
196
  const flatResponse = await directSendOperation(updatedArgs, spec);
204
197
  return {
205
198
  flatResponse,
@@ -223,8 +216,8 @@ export class AfdOriginsImpl {
223
216
  spec: updateOperationSpec,
224
217
  });
225
218
  const poller = await createHttpPoller(lro, {
226
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
227
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
219
+ restoreFrom: options?.resumeFrom,
220
+ intervalInMs: options?.updateIntervalInMs,
228
221
  resourceLocationConfig: "azure-async-operation",
229
222
  });
230
223
  await poller.poll();
@@ -258,14 +251,19 @@ export class AfdOriginsImpl {
258
251
  return this.client.sendOperationRequest(args, spec);
259
252
  };
260
253
  const sendOperationFn = async (args, spec) => {
261
- var _a;
262
254
  let currentRawResponse = undefined;
263
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
255
+ const providedCallback = args.options?.onResponse;
264
256
  const callback = (rawResponse, flatResponse) => {
265
257
  currentRawResponse = rawResponse;
266
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
258
+ providedCallback?.(rawResponse, flatResponse);
259
+ };
260
+ const updatedArgs = {
261
+ ...args,
262
+ options: {
263
+ ...args.options,
264
+ onResponse: callback,
265
+ },
267
266
  };
268
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
269
267
  const flatResponse = await directSendOperation(updatedArgs, spec);
270
268
  return {
271
269
  flatResponse,
@@ -288,8 +286,8 @@ export class AfdOriginsImpl {
288
286
  spec: deleteOperationSpec,
289
287
  });
290
288
  const poller = await createHttpPoller(lro, {
291
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
292
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
289
+ restoreFrom: options?.resumeFrom,
290
+ intervalInMs: options?.updateIntervalInMs,
293
291
  resourceLocationConfig: "azure-async-operation",
294
292
  });
295
293
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"afdOrigins.js","sourceRoot":"","sources":["../../../src/operations/afdOrigins.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,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI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AG,EAAE,EAAE;QACP,GAAG,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,eAAe;QAC1B,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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,eAAe;KAC3B;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 { AfdOrigins } 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 AFDOrigin,\n AfdOriginsListByOriginGroupNextOptionalParams,\n AfdOriginsListByOriginGroupOptionalParams,\n AfdOriginsListByOriginGroupResponse,\n AfdOriginsGetOptionalParams,\n AfdOriginsGetResponse,\n AfdOriginsCreateOptionalParams,\n AfdOriginsCreateResponse,\n AFDOriginUpdateParameters,\n AfdOriginsUpdateOptionalParams,\n AfdOriginsUpdateResponse,\n AfdOriginsDeleteOptionalParams,\n AfdOriginsListByOriginGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AfdOrigins operations. */\nexport class AfdOriginsImpl implements AfdOrigins {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class AfdOrigins 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 an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param options The options parameters.\n */\n public listByOriginGroup(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n ): PagedAsyncIterableIterator<AFDOrigin> {\n const iter = this.listByOriginGroupPagingAll(\n resourceGroupName,\n profileName,\n originGroupName,\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.listByOriginGroupPagingPage(\n resourceGroupName,\n profileName,\n originGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByOriginGroupPagingPage(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AFDOrigin[]> {\n let result: AfdOriginsListByOriginGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByOriginGroup(\n resourceGroupName,\n profileName,\n originGroupName,\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._listByOriginGroupNext(\n resourceGroupName,\n profileName,\n originGroupName,\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 *listByOriginGroupPagingAll(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n ): AsyncIterableIterator<AFDOrigin> {\n for await (const page of this.listByOriginGroupPagingPage(\n resourceGroupName,\n profileName,\n originGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing origins within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param options The options parameters.\n */\n private _listByOriginGroup(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n ): Promise<AfdOriginsListByOriginGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, originGroupName, options },\n listByOriginGroupOperationSpec,\n );\n }\n\n /**\n * Gets an existing origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n options?: AfdOriginsGetOptionalParams,\n ): Promise<AfdOriginsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, originGroupName, originName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new origin within the specified origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin that is unique within the profile.\n * @param origin Origin properties\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n origin: AFDOrigin,\n options?: AfdOriginsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AfdOriginsCreateResponse>,\n AfdOriginsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AfdOriginsCreateResponse> => {\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 originGroupName,\n originName,\n origin,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AfdOriginsCreateResponse,\n OperationState<AfdOriginsCreateResponse>\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 origin within the specified origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin that is unique within the profile.\n * @param origin Origin properties\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n origin: AFDOrigin,\n options?: AfdOriginsCreateOptionalParams,\n ): Promise<AfdOriginsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n originGroupName,\n originName,\n origin,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param originUpdateProperties Origin properties\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n originUpdateProperties: AFDOriginUpdateParameters,\n options?: AfdOriginsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AfdOriginsUpdateResponse>,\n AfdOriginsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AfdOriginsUpdateResponse> => {\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 originGroupName,\n originName,\n originUpdateProperties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AfdOriginsUpdateResponse,\n OperationState<AfdOriginsUpdateResponse>\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 origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param originUpdateProperties Origin properties\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n originUpdateProperties: AFDOriginUpdateParameters,\n options?: AfdOriginsUpdateOptionalParams,\n ): Promise<AfdOriginsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n profileName,\n originGroupName,\n originName,\n originUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n options?: AfdOriginsDeleteOptionalParams,\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 originGroupName,\n originName,\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 origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n options?: AfdOriginsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n originGroupName,\n originName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByOriginGroupNext\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 originGroupName Name of the origin group which is unique within the profile.\n * @param nextLink The nextLink from the previous successful call to the ListByOriginGroup method.\n * @param options The options parameters.\n */\n private _listByOriginGroupNext(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n nextLink: string,\n options?: AfdOriginsListByOriginGroupNextOptionalParams,\n ): Promise<AfdOriginsListByOriginGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, originGroupName, nextLink, options },\n listByOriginGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByOriginGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOriginListResult,\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.originGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOrigin,\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.originGroupName,\n Parameters.originName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 201: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 202: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 204: {\n bodyMapper: Mappers.AFDOrigin,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.origin,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.originGroupName,\n Parameters.originName,\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}/originGroups/{originGroupName}/origins/{originName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 201: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 202: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 204: {\n bodyMapper: Mappers.AFDOrigin,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.originUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.originGroupName,\n Parameters.originName,\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}/originGroups/{originGroupName}/origins/{originName}\",\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.originGroupName,\n Parameters.originName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByOriginGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOriginListResult,\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.originGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"afdOrigins.js","sourceRoot":"","sources":["../../../src/operations/afdOrigins.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,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAA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,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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,eAAe;KAC3B;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 { AfdOrigins } 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 AFDOrigin,\n AfdOriginsListByOriginGroupNextOptionalParams,\n AfdOriginsListByOriginGroupOptionalParams,\n AfdOriginsListByOriginGroupResponse,\n AfdOriginsGetOptionalParams,\n AfdOriginsGetResponse,\n AfdOriginsCreateOptionalParams,\n AfdOriginsCreateResponse,\n AFDOriginUpdateParameters,\n AfdOriginsUpdateOptionalParams,\n AfdOriginsUpdateResponse,\n AfdOriginsDeleteOptionalParams,\n AfdOriginsListByOriginGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AfdOrigins operations. */\nexport class AfdOriginsImpl implements AfdOrigins {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class AfdOrigins 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 an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param options The options parameters.\n */\n public listByOriginGroup(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n ): PagedAsyncIterableIterator<AFDOrigin> {\n const iter = this.listByOriginGroupPagingAll(\n resourceGroupName,\n profileName,\n originGroupName,\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.listByOriginGroupPagingPage(\n resourceGroupName,\n profileName,\n originGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByOriginGroupPagingPage(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AFDOrigin[]> {\n let result: AfdOriginsListByOriginGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByOriginGroup(\n resourceGroupName,\n profileName,\n originGroupName,\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._listByOriginGroupNext(\n resourceGroupName,\n profileName,\n originGroupName,\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 *listByOriginGroupPagingAll(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n ): AsyncIterableIterator<AFDOrigin> {\n for await (const page of this.listByOriginGroupPagingPage(\n resourceGroupName,\n profileName,\n originGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing origins within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param options The options parameters.\n */\n private _listByOriginGroup(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n options?: AfdOriginsListByOriginGroupOptionalParams,\n ): Promise<AfdOriginsListByOriginGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, originGroupName, options },\n listByOriginGroupOperationSpec,\n );\n }\n\n /**\n * Gets an existing origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n options?: AfdOriginsGetOptionalParams,\n ): Promise<AfdOriginsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, originGroupName, originName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new origin within the specified origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin that is unique within the profile.\n * @param origin Origin properties\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n origin: AFDOrigin,\n options?: AfdOriginsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AfdOriginsCreateResponse>,\n AfdOriginsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AfdOriginsCreateResponse> => {\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 originGroupName,\n originName,\n origin,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AfdOriginsCreateResponse,\n OperationState<AfdOriginsCreateResponse>\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 origin within the specified origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin that is unique within the profile.\n * @param origin Origin properties\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n origin: AFDOrigin,\n options?: AfdOriginsCreateOptionalParams,\n ): Promise<AfdOriginsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n originGroupName,\n originName,\n origin,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an existing origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param originUpdateProperties Origin properties\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n originUpdateProperties: AFDOriginUpdateParameters,\n options?: AfdOriginsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AfdOriginsUpdateResponse>,\n AfdOriginsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AfdOriginsUpdateResponse> => {\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 originGroupName,\n originName,\n originUpdateProperties,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AfdOriginsUpdateResponse,\n OperationState<AfdOriginsUpdateResponse>\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 origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param originUpdateProperties Origin properties\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n originUpdateProperties: AFDOriginUpdateParameters,\n options?: AfdOriginsUpdateOptionalParams,\n ): Promise<AfdOriginsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n profileName,\n originGroupName,\n originName,\n originUpdateProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n options?: AfdOriginsDeleteOptionalParams,\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 originGroupName,\n originName,\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 origin within an origin group.\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 originGroupName Name of the origin group which is unique within the profile.\n * @param originName Name of the origin which is unique within the profile.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n originName: string,\n options?: AfdOriginsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n originGroupName,\n originName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByOriginGroupNext\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 originGroupName Name of the origin group which is unique within the profile.\n * @param nextLink The nextLink from the previous successful call to the ListByOriginGroup method.\n * @param options The options parameters.\n */\n private _listByOriginGroupNext(\n resourceGroupName: string,\n profileName: string,\n originGroupName: string,\n nextLink: string,\n options?: AfdOriginsListByOriginGroupNextOptionalParams,\n ): Promise<AfdOriginsListByOriginGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, originGroupName, nextLink, options },\n listByOriginGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByOriginGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOriginListResult,\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.originGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOrigin,\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.originGroupName,\n Parameters.originName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 201: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 202: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 204: {\n bodyMapper: Mappers.AFDOrigin,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.origin,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.originGroupName,\n Parameters.originName,\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}/originGroups/{originGroupName}/origins/{originName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 201: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 202: {\n bodyMapper: Mappers.AFDOrigin,\n },\n 204: {\n bodyMapper: Mappers.AFDOrigin,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.originUpdateProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.originGroupName,\n Parameters.originName,\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}/originGroups/{originGroupName}/origins/{originName}\",\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.originGroupName,\n Parameters.originName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByOriginGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AFDOriginListResult,\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.originGroupName,\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 AfdProfiles operations. */
17
16
  export class AfdProfilesImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class AfdProfiles class.
20
20
  * @param client Reference to the service client
@@ -39,52 +39,35 @@ export class AfdProfilesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listResourceUsagePagingPage(resourceGroupName, profileName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- listResourceUsagePagingPage(resourceGroupName, profileName, options, settings) {
50
- return __asyncGenerator(this, arguments, function* listResourceUsagePagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield __await(this._listResourceUsage(resourceGroupName, profileName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- setContinuationToken(page, continuationToken);
58
- yield yield __await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield __await(this._listResourceUsageNext(resourceGroupName, profileName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- setContinuationToken(page, continuationToken);
65
- yield yield __await(page);
66
- }
67
- });
49
+ async *listResourceUsagePagingPage(resourceGroupName, profileName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listResourceUsage(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._listResourceUsageNext(resourceGroupName, profileName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield page;
65
+ }
68
66
  }
69
- listResourceUsagePagingAll(resourceGroupName, profileName, options) {
70
- return __asyncGenerator(this, arguments, function* listResourceUsagePagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = __asyncValues(this.listResourceUsagePagingPage(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 *listResourceUsagePagingAll(resourceGroupName, profileName, options) {
68
+ for await (const page of this.listResourceUsagePagingPage(resourceGroupName, profileName, options)) {
69
+ yield* page;
70
+ }
88
71
  }
89
72
  /**
90
73
  * Check the availability of an afdx endpoint name, and return the globally unique endpoint host name.
@@ -153,14 +136,19 @@ export class AfdProfilesImpl {
153
136
  return this.client.sendOperationRequest(args, spec);
154
137
  };
155
138
  const sendOperationFn = async (args, spec) => {
156
- var _a;
157
139
  let currentRawResponse = undefined;
158
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
140
+ const providedCallback = args.options?.onResponse;
159
141
  const callback = (rawResponse, flatResponse) => {
160
142
  currentRawResponse = rawResponse;
161
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
143
+ providedCallback?.(rawResponse, flatResponse);
144
+ };
145
+ const updatedArgs = {
146
+ ...args,
147
+ options: {
148
+ ...args.options,
149
+ onResponse: callback,
150
+ },
162
151
  };
163
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
164
152
  const flatResponse = await directSendOperation(updatedArgs, spec);
165
153
  return {
166
154
  flatResponse,
@@ -182,8 +170,8 @@ export class AfdProfilesImpl {
182
170
  spec: upgradeOperationSpec,
183
171
  });
184
172
  const poller = await createHttpPoller(lro, {
185
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
186
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
173
+ restoreFrom: options?.resumeFrom,
174
+ intervalInMs: options?.updateIntervalInMs,
187
175
  resourceLocationConfig: "location",
188
176
  });
189
177
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"afdProfiles.js","sourceRoot":"","sources":["../../../src/operations/afdProfiles.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,E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C,OAAO;SAC5B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wBAAwB;IAChD,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,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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;KACpB;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 { AfdProfiles } 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 Usage,\n AfdProfilesListResourceUsageNextOptionalParams,\n AfdProfilesListResourceUsageOptionalParams,\n AfdProfilesListResourceUsageResponse,\n CheckEndpointNameAvailabilityInput,\n AfdProfilesCheckEndpointNameAvailabilityOptionalParams,\n AfdProfilesCheckEndpointNameAvailabilityResponse,\n CheckHostNameAvailabilityInput,\n AfdProfilesCheckHostNameAvailabilityOptionalParams,\n AfdProfilesCheckHostNameAvailabilityResponse,\n ValidateSecretInput,\n AfdProfilesValidateSecretOptionalParams,\n AfdProfilesValidateSecretResponse,\n ProfileUpgradeParameters,\n AfdProfilesUpgradeOptionalParams,\n AfdProfilesUpgradeResponse,\n AfdProfilesListResourceUsageNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AfdProfiles operations. */\nexport class AfdProfilesImpl implements AfdProfiles {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class AfdProfiles class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door 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 options The options parameters.\n */\n public listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listResourceUsagePagingAll(\n resourceGroupName,\n profileName,\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.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listResourceUsagePagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: AfdProfilesListResourceUsageResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listResourceUsage(\n resourceGroupName,\n profileName,\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._listResourceUsageNext(\n resourceGroupName,\n profileName,\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 *listResourceUsagePagingAll(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Check the availability of an afdx endpoint name, and return the globally unique endpoint host name.\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 which is unique\n * within the resource group.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n profileName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: AfdProfilesCheckEndpointNameAvailabilityOptionalParams,\n ): Promise<AfdProfilesCheckEndpointNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n checkEndpointNameAvailabilityInput,\n options,\n },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door 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 options The options parameters.\n */\n private _listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n ): Promise<AfdProfilesListResourceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listResourceUsageOperationSpec,\n );\n }\n\n /**\n * Validates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in\n * DNS.\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 checkHostNameAvailabilityInput Custom domain to be validated.\n * @param options The options parameters.\n */\n checkHostNameAvailability(\n resourceGroupName: string,\n profileName: string,\n checkHostNameAvailabilityInput: CheckHostNameAvailabilityInput,\n options?: AfdProfilesCheckHostNameAvailabilityOptionalParams,\n ): Promise<AfdProfilesCheckHostNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n checkHostNameAvailabilityInput,\n options,\n },\n checkHostNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Validate a Secret in the 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 which is unique\n * within the resource group.\n * @param validateSecretInput The Secret source.\n * @param options The options parameters.\n */\n validateSecret(\n resourceGroupName: string,\n profileName: string,\n validateSecretInput: ValidateSecretInput,\n options?: AfdProfilesValidateSecretOptionalParams,\n ): Promise<AfdProfilesValidateSecretResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, validateSecretInput, options },\n validateSecretOperationSpec,\n );\n }\n\n /**\n * Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.\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 which is unique\n * within the resource group.\n * @param profileUpgradeParameters Profile upgrade input parameter.\n * @param options The options parameters.\n */\n async beginUpgrade(\n resourceGroupName: string,\n profileName: string,\n profileUpgradeParameters: ProfileUpgradeParameters,\n options?: AfdProfilesUpgradeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AfdProfilesUpgradeResponse>,\n AfdProfilesUpgradeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AfdProfilesUpgradeResponse> => {\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 profileUpgradeParameters,\n options,\n },\n spec: upgradeOperationSpec,\n });\n const poller = await createHttpPoller<\n AfdProfilesUpgradeResponse,\n OperationState<AfdProfilesUpgradeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.\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 which is unique\n * within the resource group.\n * @param profileUpgradeParameters Profile upgrade input parameter.\n * @param options The options parameters.\n */\n async beginUpgradeAndWait(\n resourceGroupName: string,\n profileName: string,\n profileUpgradeParameters: ProfileUpgradeParameters,\n options?: AfdProfilesUpgradeOptionalParams,\n ): Promise<AfdProfilesUpgradeResponse> {\n const poller = await this.beginUpgrade(\n resourceGroupName,\n profileName,\n profileUpgradeParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListResourceUsageNext\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 nextLink The nextLink from the previous successful call to the ListResourceUsage method.\n * @param options The options parameters.\n */\n private _listResourceUsageNext(\n resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: AfdProfilesListResourceUsageNextOptionalParams,\n ): Promise<AfdProfilesListResourceUsageNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listResourceUsageNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listResourceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/usages\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst checkHostNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkHostNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkHostNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst validateSecretOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/validateSecret\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateSecretOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.validateSecretInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst upgradeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/upgrade\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Profile,\n },\n 201: {\n bodyMapper: Mappers.Profile,\n },\n 202: {\n bodyMapper: Mappers.Profile,\n },\n 204: {\n bodyMapper: Mappers.Profile,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.profileUpgradeParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listResourceUsageNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"afdProfiles.js","sourceRoot":"","sources":["../../../src/operations/afdProfiles.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;AAqB9C,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CACtB,iBAAyB,EACz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AAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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;KACpB;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 { AfdProfiles } 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 Usage,\n AfdProfilesListResourceUsageNextOptionalParams,\n AfdProfilesListResourceUsageOptionalParams,\n AfdProfilesListResourceUsageResponse,\n CheckEndpointNameAvailabilityInput,\n AfdProfilesCheckEndpointNameAvailabilityOptionalParams,\n AfdProfilesCheckEndpointNameAvailabilityResponse,\n CheckHostNameAvailabilityInput,\n AfdProfilesCheckHostNameAvailabilityOptionalParams,\n AfdProfilesCheckHostNameAvailabilityResponse,\n ValidateSecretInput,\n AfdProfilesValidateSecretOptionalParams,\n AfdProfilesValidateSecretResponse,\n ProfileUpgradeParameters,\n AfdProfilesUpgradeOptionalParams,\n AfdProfilesUpgradeResponse,\n AfdProfilesListResourceUsageNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AfdProfiles operations. */\nexport class AfdProfilesImpl implements AfdProfiles {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class AfdProfiles class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door 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 options The options parameters.\n */\n public listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listResourceUsagePagingAll(\n resourceGroupName,\n profileName,\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.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listResourceUsagePagingPage(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: AfdProfilesListResourceUsageResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listResourceUsage(\n resourceGroupName,\n profileName,\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._listResourceUsageNext(\n resourceGroupName,\n profileName,\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 *listResourceUsagePagingAll(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listResourceUsagePagingPage(\n resourceGroupName,\n profileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Check the availability of an afdx endpoint name, and return the globally unique endpoint host name.\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 which is unique\n * within the resource group.\n * @param checkEndpointNameAvailabilityInput Input to check.\n * @param options The options parameters.\n */\n checkEndpointNameAvailability(\n resourceGroupName: string,\n profileName: string,\n checkEndpointNameAvailabilityInput: CheckEndpointNameAvailabilityInput,\n options?: AfdProfilesCheckEndpointNameAvailabilityOptionalParams,\n ): Promise<AfdProfilesCheckEndpointNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n checkEndpointNameAvailabilityInput,\n options,\n },\n checkEndpointNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Checks the quota and actual usage of endpoints under the given Azure Front Door 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 options The options parameters.\n */\n private _listResourceUsage(\n resourceGroupName: string,\n profileName: string,\n options?: AfdProfilesListResourceUsageOptionalParams,\n ): Promise<AfdProfilesListResourceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, options },\n listResourceUsageOperationSpec,\n );\n }\n\n /**\n * Validates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in\n * DNS.\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 checkHostNameAvailabilityInput Custom domain to be validated.\n * @param options The options parameters.\n */\n checkHostNameAvailability(\n resourceGroupName: string,\n profileName: string,\n checkHostNameAvailabilityInput: CheckHostNameAvailabilityInput,\n options?: AfdProfilesCheckHostNameAvailabilityOptionalParams,\n ): Promise<AfdProfilesCheckHostNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n checkHostNameAvailabilityInput,\n options,\n },\n checkHostNameAvailabilityOperationSpec,\n );\n }\n\n /**\n * Validate a Secret in the 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 which is unique\n * within the resource group.\n * @param validateSecretInput The Secret source.\n * @param options The options parameters.\n */\n validateSecret(\n resourceGroupName: string,\n profileName: string,\n validateSecretInput: ValidateSecretInput,\n options?: AfdProfilesValidateSecretOptionalParams,\n ): Promise<AfdProfilesValidateSecretResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, validateSecretInput, options },\n validateSecretOperationSpec,\n );\n }\n\n /**\n * Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.\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 which is unique\n * within the resource group.\n * @param profileUpgradeParameters Profile upgrade input parameter.\n * @param options The options parameters.\n */\n async beginUpgrade(\n resourceGroupName: string,\n profileName: string,\n profileUpgradeParameters: ProfileUpgradeParameters,\n options?: AfdProfilesUpgradeOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AfdProfilesUpgradeResponse>,\n AfdProfilesUpgradeResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AfdProfilesUpgradeResponse> => {\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 profileUpgradeParameters,\n options,\n },\n spec: upgradeOperationSpec,\n });\n const poller = await createHttpPoller<\n AfdProfilesUpgradeResponse,\n OperationState<AfdProfilesUpgradeResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.\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 which is unique\n * within the resource group.\n * @param profileUpgradeParameters Profile upgrade input parameter.\n * @param options The options parameters.\n */\n async beginUpgradeAndWait(\n resourceGroupName: string,\n profileName: string,\n profileUpgradeParameters: ProfileUpgradeParameters,\n options?: AfdProfilesUpgradeOptionalParams,\n ): Promise<AfdProfilesUpgradeResponse> {\n const poller = await this.beginUpgrade(\n resourceGroupName,\n profileName,\n profileUpgradeParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListResourceUsageNext\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 nextLink The nextLink from the previous successful call to the ListResourceUsage method.\n * @param options The options parameters.\n */\n private _listResourceUsageNext(\n resourceGroupName: string,\n profileName: string,\n nextLink: string,\n options?: AfdProfilesListResourceUsageNextOptionalParams,\n ): Promise<AfdProfilesListResourceUsageNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, nextLink, options },\n listResourceUsageNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkEndpointNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkEndpointNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckEndpointNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkEndpointNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listResourceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/usages\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst checkHostNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/checkHostNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.checkHostNameAvailabilityInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst validateSecretOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/validateSecret\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ValidateSecretOutput,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.validateSecretInput,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst upgradeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/upgrade\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Profile,\n },\n 201: {\n bodyMapper: Mappers.Profile,\n },\n 202: {\n bodyMapper: Mappers.Profile,\n },\n 204: {\n bodyMapper: Mappers.Profile,\n },\n default: {\n bodyMapper: Mappers.AfdErrorResponse,\n },\n },\n requestBody: Parameters.profileUpgradeParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listResourceUsageNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsagesListResult,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}