@azure/arm-cdn 9.1.1-alpha.20250619.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 (203) 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/commonjs/tsdoc-metadata.json +11 -11
  102. package/dist/esm/cdnManagementClient.js +34 -5
  103. package/dist/esm/cdnManagementClient.js.map +1 -1
  104. package/dist/esm/lroImpl.js +7 -3
  105. package/dist/esm/lroImpl.js.map +1 -1
  106. package/dist/esm/models/mappers.js +663 -294
  107. package/dist/esm/models/mappers.js.map +1 -1
  108. package/dist/esm/operations/afdCustomDomains.js +67 -64
  109. package/dist/esm/operations/afdCustomDomains.js.map +1 -1
  110. package/dist/esm/operations/afdEndpoints.js +89 -103
  111. package/dist/esm/operations/afdEndpoints.js.map +1 -1
  112. package/dist/esm/operations/afdOriginGroups.js +78 -97
  113. package/dist/esm/operations/afdOriginGroups.js.map +1 -1
  114. package/dist/esm/operations/afdOrigins.js +56 -58
  115. package/dist/esm/operations/afdOrigins.js.map +1 -1
  116. package/dist/esm/operations/afdProfiles.js +34 -46
  117. package/dist/esm/operations/afdProfiles.js.map +1 -1
  118. package/dist/esm/operations/customDomains.js +67 -64
  119. package/dist/esm/operations/customDomains.js.map +1 -1
  120. package/dist/esm/operations/edgeNodes.js +23 -40
  121. package/dist/esm/operations/edgeNodes.js.map +1 -1
  122. package/dist/esm/operations/endpoints.js +122 -121
  123. package/dist/esm/operations/endpoints.js.map +1 -1
  124. package/dist/esm/operations/logAnalytics.js +1 -0
  125. package/dist/esm/operations/logAnalytics.js.map +1 -1
  126. package/dist/esm/operations/managedRuleSets.js +23 -40
  127. package/dist/esm/operations/managedRuleSets.js.map +1 -1
  128. package/dist/esm/operations/operations.js +23 -40
  129. package/dist/esm/operations/operations.js.map +1 -1
  130. package/dist/esm/operations/originGroups.js +56 -58
  131. package/dist/esm/operations/originGroups.js.map +1 -1
  132. package/dist/esm/operations/origins.js +56 -58
  133. package/dist/esm/operations/origins.js.map +1 -1
  134. package/dist/esm/operations/policies.js +45 -52
  135. package/dist/esm/operations/policies.js.map +1 -1
  136. package/dist/esm/operations/profiles.js +133 -154
  137. package/dist/esm/operations/profiles.js.map +1 -1
  138. package/dist/esm/operations/resourceUsageOperations.js +23 -40
  139. package/dist/esm/operations/resourceUsageOperations.js.map +1 -1
  140. package/dist/esm/operations/routes.js +56 -58
  141. package/dist/esm/operations/routes.js.map +1 -1
  142. package/dist/esm/operations/ruleSets.js +56 -85
  143. package/dist/esm/operations/ruleSets.js.map +1 -1
  144. package/dist/esm/operations/rules.js +56 -58
  145. package/dist/esm/operations/rules.js.map +1 -1
  146. package/dist/esm/operations/secrets.js +45 -52
  147. package/dist/esm/operations/secrets.js.map +1 -1
  148. package/dist/esm/operations/securityPolicies.js +56 -58
  149. package/dist/esm/operations/securityPolicies.js.map +1 -1
  150. package/dist/esm/pagingHelper.js +2 -4
  151. package/dist/esm/pagingHelper.js.map +1 -1
  152. package/dist/react-native/cdnManagementClient.js +34 -5
  153. package/dist/react-native/cdnManagementClient.js.map +1 -1
  154. package/dist/react-native/lroImpl.js +7 -3
  155. package/dist/react-native/lroImpl.js.map +1 -1
  156. package/dist/react-native/models/mappers.js +663 -294
  157. package/dist/react-native/models/mappers.js.map +1 -1
  158. package/dist/react-native/operations/afdCustomDomains.js +67 -64
  159. package/dist/react-native/operations/afdCustomDomains.js.map +1 -1
  160. package/dist/react-native/operations/afdEndpoints.js +89 -103
  161. package/dist/react-native/operations/afdEndpoints.js.map +1 -1
  162. package/dist/react-native/operations/afdOriginGroups.js +78 -97
  163. package/dist/react-native/operations/afdOriginGroups.js.map +1 -1
  164. package/dist/react-native/operations/afdOrigins.js +56 -58
  165. package/dist/react-native/operations/afdOrigins.js.map +1 -1
  166. package/dist/react-native/operations/afdProfiles.js +34 -46
  167. package/dist/react-native/operations/afdProfiles.js.map +1 -1
  168. package/dist/react-native/operations/customDomains.js +67 -64
  169. package/dist/react-native/operations/customDomains.js.map +1 -1
  170. package/dist/react-native/operations/edgeNodes.js +23 -40
  171. package/dist/react-native/operations/edgeNodes.js.map +1 -1
  172. package/dist/react-native/operations/endpoints.js +122 -121
  173. package/dist/react-native/operations/endpoints.js.map +1 -1
  174. package/dist/react-native/operations/logAnalytics.js +1 -0
  175. package/dist/react-native/operations/logAnalytics.js.map +1 -1
  176. package/dist/react-native/operations/managedRuleSets.js +23 -40
  177. package/dist/react-native/operations/managedRuleSets.js.map +1 -1
  178. package/dist/react-native/operations/operations.js +23 -40
  179. package/dist/react-native/operations/operations.js.map +1 -1
  180. package/dist/react-native/operations/originGroups.js +56 -58
  181. package/dist/react-native/operations/originGroups.js.map +1 -1
  182. package/dist/react-native/operations/origins.js +56 -58
  183. package/dist/react-native/operations/origins.js.map +1 -1
  184. package/dist/react-native/operations/policies.js +45 -52
  185. package/dist/react-native/operations/policies.js.map +1 -1
  186. package/dist/react-native/operations/profiles.js +133 -154
  187. package/dist/react-native/operations/profiles.js.map +1 -1
  188. package/dist/react-native/operations/resourceUsageOperations.js +23 -40
  189. package/dist/react-native/operations/resourceUsageOperations.js.map +1 -1
  190. package/dist/react-native/operations/routes.js +56 -58
  191. package/dist/react-native/operations/routes.js.map +1 -1
  192. package/dist/react-native/operations/ruleSets.js +56 -85
  193. package/dist/react-native/operations/ruleSets.js.map +1 -1
  194. package/dist/react-native/operations/rules.js +56 -58
  195. package/dist/react-native/operations/rules.js.map +1 -1
  196. package/dist/react-native/operations/secrets.js +45 -52
  197. package/dist/react-native/operations/secrets.js.map +1 -1
  198. package/dist/react-native/operations/securityPolicies.js +56 -58
  199. package/dist/react-native/operations/securityPolicies.js.map +1 -1
  200. package/dist/react-native/pagingHelper.js +2 -4
  201. package/dist/react-native/pagingHelper.js.map +1 -1
  202. package/package.json +2 -2
  203. /package/review/{arm-cdn.api.md → arm-cdn-node.api.md} +0 -0
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing CustomDomains operations. */
20
20
  class CustomDomainsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class CustomDomains class.
23
24
  * @param client Reference to the service client
@@ -42,52 +43,35 @@ class CustomDomainsImpl {
42
43
  return this;
43
44
  },
44
45
  byPage: (settings) => {
45
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
+ if (settings?.maxPageSize) {
46
47
  throw new Error("maxPageSize is not supported by this operation.");
47
48
  }
48
49
  return this.listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options, settings);
49
50
  },
50
51
  };
51
52
  }
52
- listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options, settings) {
53
- return tslib_1.__asyncGenerator(this, arguments, function* listByEndpointPagingPage_1() {
54
- let result;
55
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
- if (!continuationToken) {
57
- result = yield tslib_1.__await(this._listByEndpoint(resourceGroupName, profileName, endpointName, options));
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield yield tslib_1.__await(page);
62
- }
63
- while (continuationToken) {
64
- result = yield tslib_1.__await(this._listByEndpointNext(resourceGroupName, profileName, endpointName, continuationToken, options));
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield yield tslib_1.__await(page);
69
- }
70
- });
53
+ async *listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options, settings) {
54
+ let result;
55
+ let continuationToken = settings?.continuationToken;
56
+ if (!continuationToken) {
57
+ result = await this._listByEndpoint(resourceGroupName, profileName, endpointName, options);
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield page;
62
+ }
63
+ while (continuationToken) {
64
+ result = await this._listByEndpointNext(resourceGroupName, profileName, endpointName, continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield page;
69
+ }
71
70
  }
72
- listByEndpointPagingAll(resourceGroupName, profileName, endpointName, options) {
73
- return tslib_1.__asyncGenerator(this, arguments, function* listByEndpointPagingAll_1() {
74
- var _a, e_1, _b, _c;
75
- try {
76
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
- _c = _f.value;
78
- _d = false;
79
- const page = _c;
80
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
- }
82
- }
83
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
- finally {
85
- try {
86
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
- }
88
- finally { if (e_1) throw e_1.error; }
89
- }
90
- });
71
+ async *listByEndpointPagingAll(resourceGroupName, profileName, endpointName, options) {
72
+ for await (const page of this.listByEndpointPagingPage(resourceGroupName, profileName, endpointName, options)) {
73
+ yield* page;
74
+ }
91
75
  }
92
76
  /**
93
77
  * Lists all of the existing custom domains within an endpoint.
@@ -130,14 +114,19 @@ class CustomDomainsImpl {
130
114
  return this.client.sendOperationRequest(args, spec);
131
115
  };
132
116
  const sendOperationFn = async (args, spec) => {
133
- var _a;
134
117
  let currentRawResponse = undefined;
135
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
118
+ const providedCallback = args.options?.onResponse;
136
119
  const callback = (rawResponse, flatResponse) => {
137
120
  currentRawResponse = rawResponse;
138
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
121
+ providedCallback?.(rawResponse, flatResponse);
122
+ };
123
+ const updatedArgs = {
124
+ ...args,
125
+ options: {
126
+ ...args.options,
127
+ onResponse: callback,
128
+ },
139
129
  };
140
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
141
130
  const flatResponse = await directSendOperation(updatedArgs, spec);
142
131
  return {
143
132
  flatResponse,
@@ -161,8 +150,8 @@ class CustomDomainsImpl {
161
150
  spec: createOperationSpec,
162
151
  });
163
152
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
164
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
165
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
153
+ restoreFrom: options?.resumeFrom,
154
+ intervalInMs: options?.updateIntervalInMs,
166
155
  });
167
156
  await poller.poll();
168
157
  return poller;
@@ -193,14 +182,19 @@ class CustomDomainsImpl {
193
182
  return this.client.sendOperationRequest(args, spec);
194
183
  };
195
184
  const sendOperationFn = async (args, spec) => {
196
- var _a;
197
185
  let currentRawResponse = undefined;
198
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
186
+ const providedCallback = args.options?.onResponse;
199
187
  const callback = (rawResponse, flatResponse) => {
200
188
  currentRawResponse = rawResponse;
201
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
189
+ providedCallback?.(rawResponse, flatResponse);
190
+ };
191
+ const updatedArgs = {
192
+ ...args,
193
+ options: {
194
+ ...args.options,
195
+ onResponse: callback,
196
+ },
202
197
  };
203
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
204
198
  const flatResponse = await directSendOperation(updatedArgs, spec);
205
199
  return {
206
200
  flatResponse,
@@ -223,8 +217,8 @@ class CustomDomainsImpl {
223
217
  spec: deleteOperationSpec,
224
218
  });
225
219
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
226
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
227
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
220
+ restoreFrom: options?.resumeFrom,
221
+ intervalInMs: options?.updateIntervalInMs,
228
222
  });
229
223
  await poller.poll();
230
224
  return poller;
@@ -254,14 +248,19 @@ class CustomDomainsImpl {
254
248
  return this.client.sendOperationRequest(args, spec);
255
249
  };
256
250
  const sendOperationFn = async (args, spec) => {
257
- var _a;
258
251
  let currentRawResponse = undefined;
259
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
252
+ const providedCallback = args.options?.onResponse;
260
253
  const callback = (rawResponse, flatResponse) => {
261
254
  currentRawResponse = rawResponse;
262
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
255
+ providedCallback?.(rawResponse, flatResponse);
256
+ };
257
+ const updatedArgs = {
258
+ ...args,
259
+ options: {
260
+ ...args.options,
261
+ onResponse: callback,
262
+ },
263
263
  };
264
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
265
264
  const flatResponse = await directSendOperation(updatedArgs, spec);
266
265
  return {
267
266
  flatResponse,
@@ -284,8 +283,8 @@ class CustomDomainsImpl {
284
283
  spec: disableCustomHttpsOperationSpec,
285
284
  });
286
285
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
287
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
288
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
286
+ restoreFrom: options?.resumeFrom,
287
+ intervalInMs: options?.updateIntervalInMs,
289
288
  });
290
289
  await poller.poll();
291
290
  return poller;
@@ -315,14 +314,19 @@ class CustomDomainsImpl {
315
314
  return this.client.sendOperationRequest(args, spec);
316
315
  };
317
316
  const sendOperationFn = async (args, spec) => {
318
- var _a;
319
317
  let currentRawResponse = undefined;
320
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
318
+ const providedCallback = args.options?.onResponse;
321
319
  const callback = (rawResponse, flatResponse) => {
322
320
  currentRawResponse = rawResponse;
323
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
321
+ providedCallback?.(rawResponse, flatResponse);
322
+ };
323
+ const updatedArgs = {
324
+ ...args,
325
+ options: {
326
+ ...args.options,
327
+ onResponse: callback,
328
+ },
324
329
  };
325
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
326
330
  const flatResponse = await directSendOperation(updatedArgs, spec);
327
331
  return {
328
332
  flatResponse,
@@ -345,8 +349,8 @@ class CustomDomainsImpl {
345
349
  spec: enableCustomHttpsOperationSpec,
346
350
  });
347
351
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
348
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
349
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
352
+ restoreFrom: options?.resumeFrom,
353
+ intervalInMs: options?.updateIntervalInMs,
350
354
  });
351
355
  await poller.poll();
352
356
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"customDomains.js","sourceRoot":"","sources":["../../../src/operations/customDomains.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmB9C,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CACnB,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CACvC,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wBAAwB,CAClC,iBAAiB,EACjB,WAAW,E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ACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CustomDomains } 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 CustomDomain,\n CustomDomainsListByEndpointNextOptionalParams,\n CustomDomainsListByEndpointOptionalParams,\n CustomDomainsListByEndpointResponse,\n CustomDomainsGetOptionalParams,\n CustomDomainsGetResponse,\n CustomDomainParameters,\n CustomDomainsCreateOptionalParams,\n CustomDomainsCreateResponse,\n CustomDomainsDeleteOptionalParams,\n CustomDomainsDisableCustomHttpsOptionalParams,\n CustomDomainsDisableCustomHttpsResponse,\n CustomDomainsEnableCustomHttpsOptionalParams,\n CustomDomainsEnableCustomHttpsResponse,\n CustomDomainsListByEndpointNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CustomDomains operations. */\nexport class CustomDomainsImpl implements CustomDomains {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class CustomDomains 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 custom domains within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n public listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n ): PagedAsyncIterableIterator<CustomDomain> {\n const iter = this.listByEndpointPagingAll(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByEndpointPagingPage(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CustomDomain[]> {\n let result: CustomDomainsListByEndpointResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByEndpoint(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByEndpointNext(\n resourceGroupName,\n profileName,\n endpointName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByEndpointPagingAll(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n ): AsyncIterableIterator<CustomDomain> {\n for await (const page of this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing custom domains within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n private _listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n ): Promise<CustomDomainsListByEndpointResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, options },\n listByEndpointOperationSpec,\n );\n }\n\n /**\n * Gets an existing custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsGetOptionalParams,\n ): Promise<CustomDomainsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param customDomainProperties Properties required to create a new custom domain.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n customDomainProperties: CustomDomainParameters,\n options?: CustomDomainsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CustomDomainsCreateResponse>,\n CustomDomainsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CustomDomainsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n customDomainProperties,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n CustomDomainsCreateResponse,\n OperationState<CustomDomainsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param customDomainProperties Properties required to create a new custom domain.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n customDomainProperties: CustomDomainParameters,\n options?: CustomDomainsCreateOptionalParams,\n ): Promise<CustomDomainsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n customDomainProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\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 });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Disable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDisableCustomHttps(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDisableCustomHttpsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CustomDomainsDisableCustomHttpsResponse>,\n CustomDomainsDisableCustomHttpsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CustomDomainsDisableCustomHttpsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n },\n spec: disableCustomHttpsOperationSpec,\n });\n const poller = await createHttpPoller<\n CustomDomainsDisableCustomHttpsResponse,\n OperationState<CustomDomainsDisableCustomHttpsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Disable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDisableCustomHttpsAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDisableCustomHttpsOptionalParams,\n ): Promise<CustomDomainsDisableCustomHttpsResponse> {\n const poller = await this.beginDisableCustomHttps(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Enable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginEnableCustomHttps(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsEnableCustomHttpsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CustomDomainsEnableCustomHttpsResponse>,\n CustomDomainsEnableCustomHttpsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CustomDomainsEnableCustomHttpsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n },\n spec: enableCustomHttpsOperationSpec,\n });\n const poller = await createHttpPoller<\n CustomDomainsEnableCustomHttpsResponse,\n OperationState<CustomDomainsEnableCustomHttpsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Enable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginEnableCustomHttpsAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsEnableCustomHttpsOptionalParams,\n ): Promise<CustomDomainsEnableCustomHttpsResponse> {\n const poller = await this.beginEnableCustomHttps(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByEndpointNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param nextLink The nextLink from the previous successful call to the ListByEndpoint method.\n * @param options The options parameters.\n */\n private _listByEndpointNext(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n nextLink: string,\n options?: CustomDomainsListByEndpointNextOptionalParams,\n ): Promise<CustomDomainsListByEndpointNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, nextLink, options },\n listByEndpointNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByEndpointOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomainListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n 201: {\n bodyMapper: Mappers.CustomDomain,\n },\n 202: {\n bodyMapper: Mappers.CustomDomain,\n },\n 204: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.customDomainProperties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\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}/endpoints/{endpointName}/customDomains/{customDomainName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst disableCustomHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/disableCustomHttps\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n 201: {\n bodyMapper: Mappers.CustomDomain,\n },\n 202: {\n bodyMapper: Mappers.CustomDomain,\n },\n 204: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst enableCustomHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n 201: {\n bodyMapper: Mappers.CustomDomain,\n },\n 202: {\n bodyMapper: Mappers.CustomDomain,\n },\n 204: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.customDomainHttpsParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByEndpointNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomainListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"customDomains.js","sourceRoot":"","sources":["../../../src/operations/customDomains.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAmB9C,4CAA4C;AAC5C,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CACnB,iBAAyB,EACzB,WAAmB,EACnB,YAAoB,EACpB,OAAm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AAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CustomDomains } 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 CustomDomain,\n CustomDomainsListByEndpointNextOptionalParams,\n CustomDomainsListByEndpointOptionalParams,\n CustomDomainsListByEndpointResponse,\n CustomDomainsGetOptionalParams,\n CustomDomainsGetResponse,\n CustomDomainParameters,\n CustomDomainsCreateOptionalParams,\n CustomDomainsCreateResponse,\n CustomDomainsDeleteOptionalParams,\n CustomDomainsDisableCustomHttpsOptionalParams,\n CustomDomainsDisableCustomHttpsResponse,\n CustomDomainsEnableCustomHttpsOptionalParams,\n CustomDomainsEnableCustomHttpsResponse,\n CustomDomainsListByEndpointNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CustomDomains operations. */\nexport class CustomDomainsImpl implements CustomDomains {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class CustomDomains 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 custom domains within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n public listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n ): PagedAsyncIterableIterator<CustomDomain> {\n const iter = this.listByEndpointPagingAll(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByEndpointPagingPage(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CustomDomain[]> {\n let result: CustomDomainsListByEndpointResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByEndpoint(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByEndpointNext(\n resourceGroupName,\n profileName,\n endpointName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByEndpointPagingAll(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n ): AsyncIterableIterator<CustomDomain> {\n for await (const page of this.listByEndpointPagingPage(\n resourceGroupName,\n profileName,\n endpointName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the existing custom domains within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param options The options parameters.\n */\n private _listByEndpoint(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n options?: CustomDomainsListByEndpointOptionalParams,\n ): Promise<CustomDomainsListByEndpointResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, options },\n listByEndpointOperationSpec,\n );\n }\n\n /**\n * Gets an existing custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsGetOptionalParams,\n ): Promise<CustomDomainsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a new custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param customDomainProperties Properties required to create a new custom domain.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n customDomainProperties: CustomDomainParameters,\n options?: CustomDomainsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CustomDomainsCreateResponse>,\n CustomDomainsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CustomDomainsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n customDomainProperties,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n CustomDomainsCreateResponse,\n OperationState<CustomDomainsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a new custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param customDomainProperties Properties required to create a new custom domain.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n customDomainProperties: CustomDomainParameters,\n options?: CustomDomainsCreateOptionalParams,\n ): Promise<CustomDomainsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n customDomainProperties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes an existing custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\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 });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes an existing custom domain within an endpoint.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Disable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDisableCustomHttps(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDisableCustomHttpsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CustomDomainsDisableCustomHttpsResponse>,\n CustomDomainsDisableCustomHttpsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CustomDomainsDisableCustomHttpsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n },\n spec: disableCustomHttpsOperationSpec,\n });\n const poller = await createHttpPoller<\n CustomDomainsDisableCustomHttpsResponse,\n OperationState<CustomDomainsDisableCustomHttpsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Disable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginDisableCustomHttpsAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsDisableCustomHttpsOptionalParams,\n ): Promise<CustomDomainsDisableCustomHttpsResponse> {\n const poller = await this.beginDisableCustomHttps(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Enable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginEnableCustomHttps(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsEnableCustomHttpsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CustomDomainsEnableCustomHttpsResponse>,\n CustomDomainsEnableCustomHttpsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CustomDomainsEnableCustomHttpsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n },\n spec: enableCustomHttpsOperationSpec,\n });\n const poller = await createHttpPoller<\n CustomDomainsEnableCustomHttpsResponse,\n OperationState<CustomDomainsEnableCustomHttpsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Enable https delivery of the custom domain.\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param customDomainName Name of the custom domain within an endpoint.\n * @param options The options parameters.\n */\n async beginEnableCustomHttpsAndWait(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n customDomainName: string,\n options?: CustomDomainsEnableCustomHttpsOptionalParams,\n ): Promise<CustomDomainsEnableCustomHttpsResponse> {\n const poller = await this.beginEnableCustomHttps(\n resourceGroupName,\n profileName,\n endpointName,\n customDomainName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByEndpointNext\n * @param resourceGroupName Name of the Resource group within the Azure subscription.\n * @param profileName Name of the CDN profile which is unique within the resource group.\n * @param endpointName Name of the endpoint under the profile which is unique globally.\n * @param nextLink The nextLink from the previous successful call to the ListByEndpoint method.\n * @param options The options parameters.\n */\n private _listByEndpointNext(\n resourceGroupName: string,\n profileName: string,\n endpointName: string,\n nextLink: string,\n options?: CustomDomainsListByEndpointNextOptionalParams,\n ): Promise<CustomDomainsListByEndpointNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, profileName, endpointName, nextLink, options },\n listByEndpointNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByEndpointOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomainListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n 201: {\n bodyMapper: Mappers.CustomDomain,\n },\n 202: {\n bodyMapper: Mappers.CustomDomain,\n },\n 204: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.customDomainProperties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\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}/endpoints/{endpointName}/customDomains/{customDomainName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst disableCustomHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/disableCustomHttps\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n 201: {\n bodyMapper: Mappers.CustomDomain,\n },\n 202: {\n bodyMapper: Mappers.CustomDomain,\n },\n 204: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst enableCustomHttpsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}/enableCustomHttps\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomain,\n },\n 201: {\n bodyMapper: Mappers.CustomDomain,\n },\n 202: {\n bodyMapper: Mappers.CustomDomain,\n },\n 204: {\n bodyMapper: Mappers.CustomDomain,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.customDomainHttpsParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.customDomainName,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByEndpointNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomDomainListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.profileName1,\n Parameters.nextLink,\n Parameters.endpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing EdgeNodes operations. */
18
18
  class EdgeNodesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class EdgeNodes class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class EdgeNodesImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listPagingPage(options, settings);
44
45
  },
45
46
  };
46
47
  }
47
- listPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._list(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.
@@ -1 +1 @@
1
- {"version":3,"file":"edgeNodes.js","sourceRoot":"","sources":["../../../src/operations/edgeNodes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAqC,EACrC,QAAuB;;YAEvB,IAAI,MAA6B,CAAC;YAClC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACp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,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AAzFD,sCAyFC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,oCAAoC;IAC1C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { EdgeNodes } 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 EdgeNode,\n EdgeNodesListNextOptionalParams,\n EdgeNodesListOptionalParams,\n EdgeNodesListResponse,\n EdgeNodesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EdgeNodes operations. */\nexport class EdgeNodesImpl implements EdgeNodes {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class EdgeNodes class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.\n * @param options The options parameters.\n */\n public list(\n options?: EdgeNodesListOptionalParams,\n ): PagedAsyncIterableIterator<EdgeNode> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: EdgeNodesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EdgeNode[]> {\n let result: EdgeNodesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EdgeNodesListOptionalParams,\n ): AsyncIterableIterator<EdgeNode> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.\n * @param options The options parameters.\n */\n private _list(\n options?: EdgeNodesListOptionalParams,\n ): Promise<EdgeNodesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: EdgeNodesListNextOptionalParams,\n ): Promise<EdgeNodesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/edgenodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EdgenodeResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EdgenodeResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"edgeNodes.js","sourceRoot":"","sources":["../../../src/operations/edgeNodes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,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AAC,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 { EdgeNodes } 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 EdgeNode,\n EdgeNodesListNextOptionalParams,\n EdgeNodesListOptionalParams,\n EdgeNodesListResponse,\n EdgeNodesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EdgeNodes operations. */\nexport class EdgeNodesImpl implements EdgeNodes {\n private readonly client: CdnManagementClient;\n\n /**\n * Initialize a new instance of the class EdgeNodes class.\n * @param client Reference to the service client\n */\n constructor(client: CdnManagementClient) {\n this.client = client;\n }\n\n /**\n * Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.\n * @param options The options parameters.\n */\n public list(\n options?: EdgeNodesListOptionalParams,\n ): PagedAsyncIterableIterator<EdgeNode> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: EdgeNodesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EdgeNode[]> {\n let result: EdgeNodesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: EdgeNodesListOptionalParams,\n ): AsyncIterableIterator<EdgeNode> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.\n * @param options The options parameters.\n */\n private _list(\n options?: EdgeNodesListOptionalParams,\n ): Promise<EdgeNodesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: EdgeNodesListNextOptionalParams,\n ): Promise<EdgeNodesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Cdn/edgenodes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EdgenodeResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EdgenodeResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}