@azure/arm-frontdoor 3.1.0 → 5.0.0

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 (292) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +75 -73
  5. package/dist/index.js +6728 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/src/frontDoorManagementClient.d.ts +29 -0
  10. package/dist-esm/src/frontDoorManagementClient.d.ts.map +1 -0
  11. package/dist-esm/src/frontDoorManagementClient.js +62 -0
  12. package/dist-esm/src/frontDoorManagementClient.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +5 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/dist-esm/src/index.js +12 -0
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/lroImpl.d.ts +16 -0
  18. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  19. package/dist-esm/src/lroImpl.js +29 -0
  20. package/dist-esm/src/lroImpl.js.map +1 -0
  21. package/dist-esm/src/models/index.d.ts +2380 -0
  22. package/dist-esm/src/models/index.d.ts.map +1 -0
  23. package/dist-esm/src/models/index.js +399 -0
  24. package/dist-esm/src/models/index.js.map +1 -0
  25. package/dist-esm/src/models/mappers.d.ts +93 -0
  26. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  27. package/dist-esm/src/models/mappers.js +3048 -0
  28. package/dist-esm/src/models/mappers.js.map +1 -0
  29. package/dist-esm/src/models/parameters.d.ts +36 -0
  30. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  31. package/dist-esm/src/models/parameters.js +316 -0
  32. package/dist-esm/src/models/parameters.js.map +1 -0
  33. package/dist-esm/src/operations/endpoints.d.ts +34 -0
  34. package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
  35. package/dist-esm/src/operations/endpoints.js +106 -0
  36. package/dist-esm/src/operations/endpoints.js.map +1 -0
  37. package/dist-esm/src/operations/experiments.d.ts +99 -0
  38. package/dist-esm/src/operations/experiments.d.ts.map +1 -0
  39. package/dist-esm/src/operations/experiments.js +417 -0
  40. package/dist-esm/src/operations/experiments.js.map +1 -0
  41. package/dist-esm/src/operations/frontDoorNameAvailability.d.ts +19 -0
  42. package/dist-esm/src/operations/frontDoorNameAvailability.d.ts.map +1 -0
  43. package/dist-esm/src/operations/frontDoorNameAvailability.js +49 -0
  44. package/dist-esm/src/operations/frontDoorNameAvailability.js.map +1 -0
  45. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts +19 -0
  46. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -0
  47. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js +49 -0
  48. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -0
  49. package/dist-esm/src/operations/frontDoors.d.ts +100 -0
  50. package/dist-esm/src/operations/frontDoors.d.ts.map +1 -0
  51. package/dist-esm/src/operations/frontDoors.js +453 -0
  52. package/dist-esm/src/operations/frontDoors.js.map +1 -0
  53. package/dist-esm/src/operations/frontendEndpoints.d.ts +81 -0
  54. package/dist-esm/src/operations/frontendEndpoints.d.ts.map +1 -0
  55. package/dist-esm/src/operations/frontendEndpoints.js +331 -0
  56. package/dist-esm/src/operations/frontendEndpoints.js.map +1 -0
  57. package/dist-esm/src/operations/index.d.ts +13 -0
  58. package/dist-esm/src/operations/index.d.ts.map +1 -0
  59. package/dist-esm/src/operations/index.js +20 -0
  60. package/dist-esm/src/operations/index.js.map +1 -0
  61. package/dist-esm/src/operations/managedRuleSets.d.ts +32 -0
  62. package/dist-esm/src/operations/managedRuleSets.d.ts.map +1 -0
  63. package/dist-esm/src/operations/managedRuleSets.js +124 -0
  64. package/dist-esm/src/operations/managedRuleSets.js.map +1 -0
  65. package/dist-esm/src/operations/networkExperimentProfiles.d.ts +107 -0
  66. package/dist-esm/src/operations/networkExperimentProfiles.d.ts.map +1 -0
  67. package/dist-esm/src/operations/networkExperimentProfiles.js +500 -0
  68. package/dist-esm/src/operations/networkExperimentProfiles.js.map +1 -0
  69. package/dist-esm/src/operations/policies.d.ts +73 -0
  70. package/dist-esm/src/operations/policies.d.ts.map +1 -0
  71. package/dist-esm/src/operations/policies.js +309 -0
  72. package/dist-esm/src/operations/policies.js.map +1 -0
  73. package/dist-esm/src/operations/preconfiguredEndpoints.d.ts +38 -0
  74. package/dist-esm/src/operations/preconfiguredEndpoints.d.ts.map +1 -0
  75. package/dist-esm/src/operations/preconfiguredEndpoints.js +137 -0
  76. package/dist-esm/src/operations/preconfiguredEndpoints.js.map +1 -0
  77. package/dist-esm/src/operations/reports.d.ts +34 -0
  78. package/dist-esm/src/operations/reports.d.ts.map +1 -0
  79. package/dist-esm/src/operations/reports.js +120 -0
  80. package/dist-esm/src/operations/reports.js.map +1 -0
  81. package/dist-esm/src/operations/rulesEngines.d.ts +83 -0
  82. package/dist-esm/src/operations/rulesEngines.d.ts.map +1 -0
  83. package/dist-esm/src/operations/rulesEngines.js +341 -0
  84. package/dist-esm/src/operations/rulesEngines.js.map +1 -0
  85. package/dist-esm/src/operationsInterfaces/endpoints.d.ts +26 -0
  86. package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
  87. package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
  88. package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/experiments.d.ts +74 -0
  90. package/dist-esm/src/operationsInterfaces/experiments.d.ts.map +1 -0
  91. package/dist-esm/src/operationsInterfaces/experiments.js +9 -0
  92. package/dist-esm/src/operationsInterfaces/experiments.js.map +1 -0
  93. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.d.ts +11 -0
  94. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.d.ts.map +1 -0
  95. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.js +9 -0
  96. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.js.map +1 -0
  97. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.d.ts +11 -0
  98. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -0
  99. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.js +9 -0
  100. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.js.map +1 -0
  101. package/dist-esm/src/operationsInterfaces/frontDoors.d.ts +64 -0
  102. package/dist-esm/src/operationsInterfaces/frontDoors.d.ts.map +1 -0
  103. package/dist-esm/src/operationsInterfaces/frontDoors.js +9 -0
  104. package/dist-esm/src/operationsInterfaces/frontDoors.js.map +1 -0
  105. package/dist-esm/src/operationsInterfaces/frontendEndpoints.d.ts +56 -0
  106. package/dist-esm/src/operationsInterfaces/frontendEndpoints.d.ts.map +1 -0
  107. package/dist-esm/src/operationsInterfaces/frontendEndpoints.js +9 -0
  108. package/dist-esm/src/operationsInterfaces/frontendEndpoints.js.map +1 -0
  109. package/dist-esm/src/operationsInterfaces/index.d.ts +13 -0
  110. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  111. package/dist-esm/src/operationsInterfaces/index.js +20 -0
  112. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  113. package/dist-esm/src/operationsInterfaces/managedRuleSets.d.ts +11 -0
  114. package/dist-esm/src/operationsInterfaces/managedRuleSets.d.ts.map +1 -0
  115. package/dist-esm/src/operationsInterfaces/managedRuleSets.js +9 -0
  116. package/dist-esm/src/operationsInterfaces/managedRuleSets.js.map +1 -0
  117. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.d.ts +71 -0
  118. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.d.ts.map +1 -0
  119. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.js +9 -0
  120. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.js.map +1 -0
  121. package/dist-esm/src/operationsInterfaces/policies.d.ts +50 -0
  122. package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
  123. package/dist-esm/src/operationsInterfaces/policies.js +9 -0
  124. package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
  125. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.d.ts +13 -0
  126. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.d.ts.map +1 -0
  127. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.js +9 -0
  128. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.js.map +1 -0
  129. package/dist-esm/src/operationsInterfaces/reports.d.ts +26 -0
  130. package/dist-esm/src/operationsInterfaces/reports.d.ts.map +1 -0
  131. package/dist-esm/src/operationsInterfaces/reports.js +9 -0
  132. package/dist-esm/src/operationsInterfaces/reports.js.map +1 -0
  133. package/dist-esm/src/operationsInterfaces/rulesEngines.d.ts +58 -0
  134. package/dist-esm/src/operationsInterfaces/rulesEngines.d.ts.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/rulesEngines.js +9 -0
  136. package/dist-esm/src/operationsInterfaces/rulesEngines.js.map +1 -0
  137. package/dist-esm/test/sampleTest.d.ts +2 -0
  138. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  139. package/dist-esm/test/sampleTest.js +40 -0
  140. package/dist-esm/test/sampleTest.js.map +1 -0
  141. package/package.json +70 -34
  142. package/review/arm-frontdoor.api.md +1910 -0
  143. package/rollup.config.js +184 -27
  144. package/src/frontDoorManagementClient.ts +124 -0
  145. package/src/index.ts +12 -0
  146. package/src/lroImpl.ts +34 -0
  147. package/src/models/index.ts +2676 -0
  148. package/src/models/mappers.ts +3311 -0
  149. package/src/models/parameters.ts +367 -0
  150. package/src/operations/endpoints.ts +150 -0
  151. package/src/operations/experiments.ts +608 -0
  152. package/src/operations/frontDoorNameAvailability.ts +68 -0
  153. package/src/operations/frontDoorNameAvailabilityWithSubscription.ts +69 -0
  154. package/src/operations/frontDoors.ts +594 -0
  155. package/src/operations/frontendEndpoints.ts +471 -0
  156. package/src/operations/index.ts +20 -0
  157. package/src/operations/managedRuleSets.ts +142 -0
  158. package/src/operations/networkExperimentProfiles.ts +672 -0
  159. package/src/operations/policies.ts +425 -0
  160. package/src/operations/preconfiguredEndpoints.ts +177 -0
  161. package/src/operations/reports.ts +160 -0
  162. package/src/operations/rulesEngines.ts +486 -0
  163. package/src/operationsInterfaces/endpoints.ts +47 -0
  164. package/src/operationsInterfaces/experiments.ts +147 -0
  165. package/src/operationsInterfaces/frontDoorNameAvailability.ts +26 -0
  166. package/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.ts +26 -0
  167. package/src/operationsInterfaces/frontDoors.ts +122 -0
  168. package/src/operationsInterfaces/frontendEndpoints.ts +104 -0
  169. package/src/operationsInterfaces/index.ts +20 -0
  170. package/src/operationsInterfaces/managedRuleSets.ts +25 -0
  171. package/src/operationsInterfaces/networkExperimentProfiles.ts +139 -0
  172. package/src/operationsInterfaces/policies.ts +97 -0
  173. package/src/operationsInterfaces/preconfiguredEndpoints.ts +29 -0
  174. package/src/operationsInterfaces/reports.ts +57 -0
  175. package/src/operationsInterfaces/rulesEngines.ts +111 -0
  176. package/tsconfig.json +4 -4
  177. package/types/arm-frontdoor.d.ts +3127 -0
  178. package/types/tsdoc-metadata.json +11 -0
  179. package/dist/arm-frontdoor.js +0 -4289
  180. package/dist/arm-frontdoor.js.map +0 -1
  181. package/dist/arm-frontdoor.min.js +0 -1
  182. package/dist/arm-frontdoor.min.js.map +0 -1
  183. package/esm/frontDoorManagementClient.d.ts +0 -62
  184. package/esm/frontDoorManagementClient.d.ts.map +0 -1
  185. package/esm/frontDoorManagementClient.js +0 -105
  186. package/esm/frontDoorManagementClient.js.map +0 -1
  187. package/esm/frontDoorManagementClientContext.d.ts +0 -16
  188. package/esm/frontDoorManagementClientContext.d.ts.map +0 -1
  189. package/esm/frontDoorManagementClientContext.js +0 -56
  190. package/esm/frontDoorManagementClientContext.js.map +0 -1
  191. package/esm/models/backendPoolsMappers.d.ts +0 -2
  192. package/esm/models/backendPoolsMappers.d.ts.map +0 -1
  193. package/esm/models/backendPoolsMappers.js +0 -11
  194. package/esm/models/backendPoolsMappers.js.map +0 -1
  195. package/esm/models/endpointsMappers.d.ts +0 -2
  196. package/esm/models/endpointsMappers.d.ts.map +0 -1
  197. package/esm/models/endpointsMappers.js +0 -11
  198. package/esm/models/endpointsMappers.js.map +0 -1
  199. package/esm/models/frontDoorsMappers.d.ts +0 -2
  200. package/esm/models/frontDoorsMappers.d.ts.map +0 -1
  201. package/esm/models/frontDoorsMappers.js +0 -11
  202. package/esm/models/frontDoorsMappers.js.map +0 -1
  203. package/esm/models/frontendEndpointsMappers.d.ts +0 -2
  204. package/esm/models/frontendEndpointsMappers.d.ts.map +0 -1
  205. package/esm/models/frontendEndpointsMappers.js +0 -11
  206. package/esm/models/frontendEndpointsMappers.js.map +0 -1
  207. package/esm/models/healthProbeSettingsMappers.d.ts +0 -2
  208. package/esm/models/healthProbeSettingsMappers.d.ts.map +0 -1
  209. package/esm/models/healthProbeSettingsMappers.js +0 -11
  210. package/esm/models/healthProbeSettingsMappers.js.map +0 -1
  211. package/esm/models/index.d.ts +0 -2143
  212. package/esm/models/index.d.ts.map +0 -1
  213. package/esm/models/index.js +0 -10
  214. package/esm/models/index.js.map +0 -1
  215. package/esm/models/loadBalancingSettingsMappers.d.ts +0 -2
  216. package/esm/models/loadBalancingSettingsMappers.d.ts.map +0 -1
  217. package/esm/models/loadBalancingSettingsMappers.js +0 -11
  218. package/esm/models/loadBalancingSettingsMappers.js.map +0 -1
  219. package/esm/models/mappers.d.ts +0 -53
  220. package/esm/models/mappers.d.ts.map +0 -1
  221. package/esm/models/mappers.js +0 -1653
  222. package/esm/models/mappers.js.map +0 -1
  223. package/esm/models/parameters.d.ts +0 -15
  224. package/esm/models/parameters.d.ts.map +0 -1
  225. package/esm/models/parameters.js +0 -181
  226. package/esm/models/parameters.js.map +0 -1
  227. package/esm/models/policiesMappers.d.ts +0 -2
  228. package/esm/models/policiesMappers.d.ts.map +0 -1
  229. package/esm/models/policiesMappers.js +0 -11
  230. package/esm/models/policiesMappers.js.map +0 -1
  231. package/esm/models/routingRulesMappers.d.ts +0 -2
  232. package/esm/models/routingRulesMappers.d.ts.map +0 -1
  233. package/esm/models/routingRulesMappers.js +0 -11
  234. package/esm/models/routingRulesMappers.js.map +0 -1
  235. package/esm/operations/backendPools.d.ts +0 -115
  236. package/esm/operations/backendPools.d.ts.map +0 -1
  237. package/esm/operations/backendPools.js +0 -236
  238. package/esm/operations/backendPools.js.map +0 -1
  239. package/esm/operations/endpoints.d.ts +0 -36
  240. package/esm/operations/endpoints.d.ts.map +0 -1
  241. package/esm/operations/endpoints.js +0 -87
  242. package/esm/operations/endpoints.js.map +0 -1
  243. package/esm/operations/frontDoors.d.ts +0 -165
  244. package/esm/operations/frontDoors.d.ts.map +0 -1
  245. package/esm/operations/frontDoors.js +0 -315
  246. package/esm/operations/frontDoors.js.map +0 -1
  247. package/esm/operations/frontendEndpoints.d.ts +0 -153
  248. package/esm/operations/frontendEndpoints.d.ts.map +0 -1
  249. package/esm/operations/frontendEndpoints.js +0 -347
  250. package/esm/operations/frontendEndpoints.js.map +0 -1
  251. package/esm/operations/healthProbeSettings.d.ts +0 -124
  252. package/esm/operations/healthProbeSettings.d.ts.map +0 -1
  253. package/esm/operations/healthProbeSettings.js +0 -242
  254. package/esm/operations/healthProbeSettings.js.map +0 -1
  255. package/esm/operations/index.d.ts +0 -9
  256. package/esm/operations/index.d.ts.map +0 -1
  257. package/esm/operations/index.js +0 -18
  258. package/esm/operations/index.js.map +0 -1
  259. package/esm/operations/loadBalancingSettings.d.ts +0 -126
  260. package/esm/operations/loadBalancingSettings.d.ts.map +0 -1
  261. package/esm/operations/loadBalancingSettings.js +0 -244
  262. package/esm/operations/loadBalancingSettings.js.map +0 -1
  263. package/esm/operations/policies.d.ts +0 -111
  264. package/esm/operations/policies.d.ts.map +0 -1
  265. package/esm/operations/policies.js +0 -202
  266. package/esm/operations/policies.js.map +0 -1
  267. package/esm/operations/routingRules.d.ts +0 -115
  268. package/esm/operations/routingRules.d.ts.map +0 -1
  269. package/esm/operations/routingRules.js +0 -236
  270. package/esm/operations/routingRules.js.map +0 -1
  271. package/lib/frontDoorManagementClient.ts +0 -171
  272. package/lib/frontDoorManagementClientContext.ts +0 -61
  273. package/lib/models/backendPoolsMappers.ts +0 -39
  274. package/lib/models/endpointsMappers.ts +0 -16
  275. package/lib/models/frontDoorsMappers.ts +0 -41
  276. package/lib/models/frontendEndpointsMappers.ts +0 -39
  277. package/lib/models/healthProbeSettingsMappers.ts +0 -39
  278. package/lib/models/index.ts +0 -2261
  279. package/lib/models/loadBalancingSettingsMappers.ts +0 -39
  280. package/lib/models/mappers.ts +0 -1772
  281. package/lib/models/parameters.ts +0 -183
  282. package/lib/models/policiesMappers.ts +0 -40
  283. package/lib/models/routingRulesMappers.ts +0 -39
  284. package/lib/operations/backendPools.ts +0 -332
  285. package/lib/operations/endpoints.ts +0 -99
  286. package/lib/operations/frontDoors.ts +0 -481
  287. package/lib/operations/frontendEndpoints.ts +0 -458
  288. package/lib/operations/healthProbeSettings.ts +0 -341
  289. package/lib/operations/index.ts +0 -18
  290. package/lib/operations/loadBalancingSettings.ts +0 -343
  291. package/lib/operations/policies.ts +0 -315
  292. package/lib/operations/routingRules.ts +0 -332
@@ -1,4289 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
5
- *
6
- * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
9
- */
10
- (function (global, factory) {
11
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
12
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
13
- (factory((global.Azure = global.Azure || {}, global.Azure.ArmFrontdoor = {}),global.msRestAzure,global.msRest));
14
- }(this, (function (exports,msRestAzure,msRest) { 'use strict';
15
-
16
- /*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation. All rights reserved.
18
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
19
- this file except in compliance with the License. You may obtain a copy of the
20
- License at http://www.apache.org/licenses/LICENSE-2.0
21
-
22
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
24
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
25
- MERCHANTABLITY OR NON-INFRINGEMENT.
26
-
27
- See the Apache Version 2.0 License for specific language governing permissions
28
- and limitations under the License.
29
- ***************************************************************************** */
30
- /* global Reflect, Promise */
31
-
32
- var extendStatics = function(d, b) {
33
- extendStatics = Object.setPrototypeOf ||
34
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
35
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36
- return extendStatics(d, b);
37
- };
38
-
39
- function __extends(d, b) {
40
- extendStatics(d, b);
41
- function __() { this.constructor = d; }
42
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
43
- }
44
-
45
- var __assign = function() {
46
- __assign = Object.assign || function __assign(t) {
47
- for (var s, i = 1, n = arguments.length; i < n; i++) {
48
- s = arguments[i];
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
50
- }
51
- return t;
52
- };
53
- return __assign.apply(this, arguments);
54
- };
55
-
56
- /*
57
- * Copyright (c) Microsoft Corporation. All rights reserved.
58
- * Licensed under the MIT License. See License.txt in the project root for
59
- * license information.
60
- *
61
- * Code generated by Microsoft (R) AutoRest Code Generator.
62
- * Changes may cause incorrect behavior and will be lost if the code is
63
- * regenerated.
64
- */
65
-
66
- var index = /*#__PURE__*/Object.freeze({
67
-
68
- });
69
-
70
- /*
71
- * Copyright (c) Microsoft Corporation. All rights reserved.
72
- * Licensed under the MIT License. See License.txt in the project root for
73
- * license information.
74
- *
75
- * Code generated by Microsoft (R) AutoRest Code Generator.
76
- * Changes may cause incorrect behavior and will be lost if the code is
77
- * regenerated.
78
- */
79
- var CloudError = msRestAzure.CloudErrorMapper;
80
- var BaseResource = msRestAzure.BaseResourceMapper;
81
- var Resource = {
82
- serializedName: "Resource",
83
- type: {
84
- name: "Composite",
85
- className: "Resource",
86
- modelProperties: {
87
- id: {
88
- readOnly: true,
89
- serializedName: "id",
90
- type: {
91
- name: "String"
92
- }
93
- },
94
- name: {
95
- readOnly: true,
96
- serializedName: "name",
97
- type: {
98
- name: "String"
99
- }
100
- },
101
- type: {
102
- readOnly: true,
103
- serializedName: "type",
104
- type: {
105
- name: "String"
106
- }
107
- },
108
- location: {
109
- serializedName: "location",
110
- type: {
111
- name: "String"
112
- }
113
- },
114
- tags: {
115
- serializedName: "tags",
116
- type: {
117
- name: "Dictionary",
118
- value: {
119
- type: {
120
- name: "String"
121
- }
122
- }
123
- }
124
- }
125
- }
126
- }
127
- };
128
- var FrontDoor = {
129
- serializedName: "FrontDoor",
130
- type: {
131
- name: "Composite",
132
- className: "FrontDoor",
133
- modelProperties: __assign({}, Resource.type.modelProperties, { friendlyName: {
134
- serializedName: "properties.friendlyName",
135
- type: {
136
- name: "String"
137
- }
138
- }, routingRules: {
139
- serializedName: "properties.routingRules",
140
- type: {
141
- name: "Sequence",
142
- element: {
143
- type: {
144
- name: "Composite",
145
- className: "RoutingRule"
146
- }
147
- }
148
- }
149
- }, loadBalancingSettings: {
150
- serializedName: "properties.loadBalancingSettings",
151
- type: {
152
- name: "Sequence",
153
- element: {
154
- type: {
155
- name: "Composite",
156
- className: "LoadBalancingSettingsModel"
157
- }
158
- }
159
- }
160
- }, healthProbeSettings: {
161
- serializedName: "properties.healthProbeSettings",
162
- type: {
163
- name: "Sequence",
164
- element: {
165
- type: {
166
- name: "Composite",
167
- className: "HealthProbeSettingsModel"
168
- }
169
- }
170
- }
171
- }, backendPools: {
172
- serializedName: "properties.backendPools",
173
- type: {
174
- name: "Sequence",
175
- element: {
176
- type: {
177
- name: "Composite",
178
- className: "BackendPool"
179
- }
180
- }
181
- }
182
- }, frontendEndpoints: {
183
- serializedName: "properties.frontendEndpoints",
184
- type: {
185
- name: "Sequence",
186
- element: {
187
- type: {
188
- name: "Composite",
189
- className: "FrontendEndpoint"
190
- }
191
- }
192
- }
193
- }, enabledState: {
194
- serializedName: "properties.enabledState",
195
- type: {
196
- name: "String"
197
- }
198
- }, resourceState: {
199
- serializedName: "properties.resourceState",
200
- type: {
201
- name: "String"
202
- }
203
- }, provisioningState: {
204
- readOnly: true,
205
- serializedName: "properties.provisioningState",
206
- type: {
207
- name: "String"
208
- }
209
- }, cname: {
210
- readOnly: true,
211
- serializedName: "properties.cname",
212
- type: {
213
- name: "String"
214
- }
215
- } })
216
- }
217
- };
218
- var SubResource = {
219
- serializedName: "SubResource",
220
- type: {
221
- name: "Composite",
222
- className: "SubResource",
223
- modelProperties: {
224
- id: {
225
- serializedName: "id",
226
- type: {
227
- name: "String"
228
- }
229
- }
230
- }
231
- }
232
- };
233
- var RoutingRule = {
234
- serializedName: "RoutingRule",
235
- type: {
236
- name: "Composite",
237
- className: "RoutingRule",
238
- modelProperties: __assign({}, SubResource.type.modelProperties, { frontendEndpoints: {
239
- serializedName: "properties.frontendEndpoints",
240
- type: {
241
- name: "Sequence",
242
- element: {
243
- type: {
244
- name: "Composite",
245
- className: "SubResource"
246
- }
247
- }
248
- }
249
- }, acceptedProtocols: {
250
- serializedName: "properties.acceptedProtocols",
251
- type: {
252
- name: "Sequence",
253
- element: {
254
- type: {
255
- name: "String"
256
- }
257
- }
258
- }
259
- }, patternsToMatch: {
260
- serializedName: "properties.patternsToMatch",
261
- type: {
262
- name: "Sequence",
263
- element: {
264
- type: {
265
- name: "String"
266
- }
267
- }
268
- }
269
- }, customForwardingPath: {
270
- serializedName: "properties.customForwardingPath",
271
- type: {
272
- name: "String"
273
- }
274
- }, forwardingProtocol: {
275
- serializedName: "properties.forwardingProtocol",
276
- type: {
277
- name: "String"
278
- }
279
- }, cacheConfiguration: {
280
- serializedName: "properties.cacheConfiguration",
281
- type: {
282
- name: "Composite",
283
- className: "CacheConfiguration"
284
- }
285
- }, backendPool: {
286
- serializedName: "properties.backendPool",
287
- type: {
288
- name: "Composite",
289
- className: "SubResource"
290
- }
291
- }, enabledState: {
292
- serializedName: "properties.enabledState",
293
- type: {
294
- name: "String"
295
- }
296
- }, resourceState: {
297
- serializedName: "properties.resourceState",
298
- type: {
299
- name: "String"
300
- }
301
- }, name: {
302
- serializedName: "name",
303
- type: {
304
- name: "String"
305
- }
306
- }, type: {
307
- readOnly: true,
308
- serializedName: "type",
309
- type: {
310
- name: "String"
311
- }
312
- } })
313
- }
314
- };
315
- var LoadBalancingSettingsModel = {
316
- serializedName: "LoadBalancingSettingsModel",
317
- type: {
318
- name: "Composite",
319
- className: "LoadBalancingSettingsModel",
320
- modelProperties: __assign({}, SubResource.type.modelProperties, { sampleSize: {
321
- serializedName: "properties.sampleSize",
322
- type: {
323
- name: "Number"
324
- }
325
- }, successfulSamplesRequired: {
326
- serializedName: "properties.successfulSamplesRequired",
327
- type: {
328
- name: "Number"
329
- }
330
- }, additionalLatencyMilliseconds: {
331
- serializedName: "properties.additionalLatencyMilliseconds",
332
- type: {
333
- name: "Number"
334
- }
335
- }, resourceState: {
336
- serializedName: "properties.resourceState",
337
- type: {
338
- name: "String"
339
- }
340
- }, name: {
341
- serializedName: "name",
342
- type: {
343
- name: "String"
344
- }
345
- }, type: {
346
- readOnly: true,
347
- serializedName: "type",
348
- type: {
349
- name: "String"
350
- }
351
- } })
352
- }
353
- };
354
- var HealthProbeSettingsModel = {
355
- serializedName: "HealthProbeSettingsModel",
356
- type: {
357
- name: "Composite",
358
- className: "HealthProbeSettingsModel",
359
- modelProperties: __assign({}, SubResource.type.modelProperties, { path: {
360
- serializedName: "properties.path",
361
- type: {
362
- name: "String"
363
- }
364
- }, protocol: {
365
- serializedName: "properties.protocol",
366
- type: {
367
- name: "String"
368
- }
369
- }, intervalInSeconds: {
370
- serializedName: "properties.intervalInSeconds",
371
- type: {
372
- name: "Number"
373
- }
374
- }, resourceState: {
375
- serializedName: "properties.resourceState",
376
- type: {
377
- name: "String"
378
- }
379
- }, name: {
380
- serializedName: "name",
381
- type: {
382
- name: "String"
383
- }
384
- }, type: {
385
- readOnly: true,
386
- serializedName: "type",
387
- type: {
388
- name: "String"
389
- }
390
- } })
391
- }
392
- };
393
- var BackendPool = {
394
- serializedName: "BackendPool",
395
- type: {
396
- name: "Composite",
397
- className: "BackendPool",
398
- modelProperties: __assign({}, SubResource.type.modelProperties, { backends: {
399
- serializedName: "properties.backends",
400
- type: {
401
- name: "Sequence",
402
- element: {
403
- type: {
404
- name: "Composite",
405
- className: "Backend"
406
- }
407
- }
408
- }
409
- }, loadBalancingSettings: {
410
- serializedName: "properties.loadBalancingSettings",
411
- type: {
412
- name: "Composite",
413
- className: "SubResource"
414
- }
415
- }, healthProbeSettings: {
416
- serializedName: "properties.healthProbeSettings",
417
- type: {
418
- name: "Composite",
419
- className: "SubResource"
420
- }
421
- }, resourceState: {
422
- serializedName: "properties.resourceState",
423
- type: {
424
- name: "String"
425
- }
426
- }, name: {
427
- serializedName: "name",
428
- type: {
429
- name: "String"
430
- }
431
- }, type: {
432
- readOnly: true,
433
- serializedName: "type",
434
- type: {
435
- name: "String"
436
- }
437
- } })
438
- }
439
- };
440
- var KeyVaultCertificateSourceParametersVault = {
441
- serializedName: "KeyVaultCertificateSourceParameters_vault",
442
- type: {
443
- name: "Composite",
444
- className: "KeyVaultCertificateSourceParametersVault",
445
- modelProperties: {
446
- id: {
447
- serializedName: "id",
448
- type: {
449
- name: "String"
450
- }
451
- }
452
- }
453
- }
454
- };
455
- var CustomHttpsConfiguration = {
456
- serializedName: "CustomHttpsConfiguration",
457
- type: {
458
- name: "Composite",
459
- className: "CustomHttpsConfiguration",
460
- modelProperties: {
461
- certificateSource: {
462
- serializedName: "certificateSource",
463
- type: {
464
- name: "String"
465
- }
466
- },
467
- protocolType: {
468
- serializedName: "protocolType",
469
- type: {
470
- name: "String"
471
- }
472
- },
473
- vault: {
474
- serializedName: "keyVaultCertificateSourceParameters.vault",
475
- type: {
476
- name: "Composite",
477
- className: "KeyVaultCertificateSourceParametersVault"
478
- }
479
- },
480
- secretName: {
481
- serializedName: "keyVaultCertificateSourceParameters.secretName",
482
- type: {
483
- name: "String"
484
- }
485
- },
486
- secretVersion: {
487
- serializedName: "keyVaultCertificateSourceParameters.secretVersion",
488
- type: {
489
- name: "String"
490
- }
491
- },
492
- certificateType: {
493
- serializedName: "frontDoorCertificateSourceParameters.certificateType",
494
- type: {
495
- name: "String"
496
- }
497
- }
498
- }
499
- }
500
- };
501
- var FrontendEndpoint = {
502
- serializedName: "FrontendEndpoint",
503
- type: {
504
- name: "Composite",
505
- className: "FrontendEndpoint",
506
- modelProperties: __assign({}, SubResource.type.modelProperties, { hostName: {
507
- serializedName: "properties.hostName",
508
- type: {
509
- name: "String"
510
- }
511
- }, sessionAffinityEnabledState: {
512
- serializedName: "properties.sessionAffinityEnabledState",
513
- type: {
514
- name: "String"
515
- }
516
- }, sessionAffinityTtlSeconds: {
517
- serializedName: "properties.sessionAffinityTtlSeconds",
518
- type: {
519
- name: "Number"
520
- }
521
- }, webApplicationFirewallPolicyLink: {
522
- serializedName: "properties.webApplicationFirewallPolicyLink",
523
- type: {
524
- name: "Composite",
525
- className: "FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink"
526
- }
527
- }, resourceState: {
528
- serializedName: "properties.resourceState",
529
- type: {
530
- name: "String"
531
- }
532
- }, customHttpsProvisioningState: {
533
- readOnly: true,
534
- serializedName: "properties.customHttpsProvisioningState",
535
- type: {
536
- name: "String"
537
- }
538
- }, customHttpsProvisioningSubstate: {
539
- readOnly: true,
540
- serializedName: "properties.customHttpsProvisioningSubstate",
541
- type: {
542
- name: "String"
543
- }
544
- }, customHttpsConfiguration: {
545
- readOnly: true,
546
- serializedName: "properties.customHttpsConfiguration",
547
- type: {
548
- name: "Composite",
549
- className: "CustomHttpsConfiguration"
550
- }
551
- }, name: {
552
- serializedName: "name",
553
- type: {
554
- name: "String"
555
- }
556
- }, type: {
557
- readOnly: true,
558
- serializedName: "type",
559
- type: {
560
- name: "String"
561
- }
562
- } })
563
- }
564
- };
565
- var FrontDoorUpdateParameters = {
566
- serializedName: "FrontDoorUpdateParameters",
567
- type: {
568
- name: "Composite",
569
- className: "FrontDoorUpdateParameters",
570
- modelProperties: {
571
- friendlyName: {
572
- serializedName: "friendlyName",
573
- type: {
574
- name: "String"
575
- }
576
- },
577
- routingRules: {
578
- serializedName: "routingRules",
579
- type: {
580
- name: "Sequence",
581
- element: {
582
- type: {
583
- name: "Composite",
584
- className: "RoutingRule"
585
- }
586
- }
587
- }
588
- },
589
- loadBalancingSettings: {
590
- serializedName: "loadBalancingSettings",
591
- type: {
592
- name: "Sequence",
593
- element: {
594
- type: {
595
- name: "Composite",
596
- className: "LoadBalancingSettingsModel"
597
- }
598
- }
599
- }
600
- },
601
- healthProbeSettings: {
602
- serializedName: "healthProbeSettings",
603
- type: {
604
- name: "Sequence",
605
- element: {
606
- type: {
607
- name: "Composite",
608
- className: "HealthProbeSettingsModel"
609
- }
610
- }
611
- }
612
- },
613
- backendPools: {
614
- serializedName: "backendPools",
615
- type: {
616
- name: "Sequence",
617
- element: {
618
- type: {
619
- name: "Composite",
620
- className: "BackendPool"
621
- }
622
- }
623
- }
624
- },
625
- frontendEndpoints: {
626
- serializedName: "frontendEndpoints",
627
- type: {
628
- name: "Sequence",
629
- element: {
630
- type: {
631
- name: "Composite",
632
- className: "FrontendEndpoint"
633
- }
634
- }
635
- }
636
- },
637
- enabledState: {
638
- serializedName: "enabledState",
639
- type: {
640
- name: "String"
641
- }
642
- }
643
- }
644
- }
645
- };
646
- var PurgeParameters = {
647
- serializedName: "PurgeParameters",
648
- type: {
649
- name: "Composite",
650
- className: "PurgeParameters",
651
- modelProperties: {
652
- contentPaths: {
653
- required: true,
654
- serializedName: "contentPaths",
655
- type: {
656
- name: "Sequence",
657
- element: {
658
- type: {
659
- name: "String"
660
- }
661
- }
662
- }
663
- }
664
- }
665
- }
666
- };
667
- var CacheConfiguration = {
668
- serializedName: "CacheConfiguration",
669
- type: {
670
- name: "Composite",
671
- className: "CacheConfiguration",
672
- modelProperties: {
673
- queryParameterStripDirective: {
674
- serializedName: "queryParameterStripDirective",
675
- type: {
676
- name: "String"
677
- }
678
- },
679
- dynamicCompression: {
680
- serializedName: "dynamicCompression",
681
- type: {
682
- name: "String"
683
- }
684
- }
685
- }
686
- }
687
- };
688
- var RoutingRuleUpdateParameters = {
689
- serializedName: "RoutingRuleUpdateParameters",
690
- type: {
691
- name: "Composite",
692
- className: "RoutingRuleUpdateParameters",
693
- modelProperties: {
694
- frontendEndpoints: {
695
- serializedName: "frontendEndpoints",
696
- type: {
697
- name: "Sequence",
698
- element: {
699
- type: {
700
- name: "Composite",
701
- className: "SubResource"
702
- }
703
- }
704
- }
705
- },
706
- acceptedProtocols: {
707
- serializedName: "acceptedProtocols",
708
- type: {
709
- name: "Sequence",
710
- element: {
711
- type: {
712
- name: "String"
713
- }
714
- }
715
- }
716
- },
717
- patternsToMatch: {
718
- serializedName: "patternsToMatch",
719
- type: {
720
- name: "Sequence",
721
- element: {
722
- type: {
723
- name: "String"
724
- }
725
- }
726
- }
727
- },
728
- customForwardingPath: {
729
- serializedName: "customForwardingPath",
730
- type: {
731
- name: "String"
732
- }
733
- },
734
- forwardingProtocol: {
735
- serializedName: "forwardingProtocol",
736
- type: {
737
- name: "String"
738
- }
739
- },
740
- cacheConfiguration: {
741
- serializedName: "cacheConfiguration",
742
- type: {
743
- name: "Composite",
744
- className: "CacheConfiguration"
745
- }
746
- },
747
- backendPool: {
748
- serializedName: "backendPool",
749
- type: {
750
- name: "Composite",
751
- className: "SubResource"
752
- }
753
- },
754
- enabledState: {
755
- serializedName: "enabledState",
756
- type: {
757
- name: "String"
758
- }
759
- }
760
- }
761
- }
762
- };
763
- var Backend = {
764
- serializedName: "Backend",
765
- type: {
766
- name: "Composite",
767
- className: "Backend",
768
- modelProperties: {
769
- address: {
770
- serializedName: "address",
771
- type: {
772
- name: "String"
773
- }
774
- },
775
- httpPort: {
776
- serializedName: "httpPort",
777
- constraints: {
778
- InclusiveMaximum: 65535,
779
- InclusiveMinimum: 1
780
- },
781
- type: {
782
- name: "Number"
783
- }
784
- },
785
- httpsPort: {
786
- serializedName: "httpsPort",
787
- constraints: {
788
- InclusiveMaximum: 65535,
789
- InclusiveMinimum: 1
790
- },
791
- type: {
792
- name: "Number"
793
- }
794
- },
795
- enabledState: {
796
- serializedName: "enabledState",
797
- type: {
798
- name: "String"
799
- }
800
- },
801
- priority: {
802
- serializedName: "priority",
803
- constraints: {
804
- InclusiveMaximum: 5,
805
- InclusiveMinimum: 1
806
- },
807
- type: {
808
- name: "Number"
809
- }
810
- },
811
- weight: {
812
- serializedName: "weight",
813
- constraints: {
814
- InclusiveMaximum: 1000,
815
- InclusiveMinimum: 1
816
- },
817
- type: {
818
- name: "Number"
819
- }
820
- },
821
- backendHostHeader: {
822
- serializedName: "backendHostHeader",
823
- type: {
824
- name: "String"
825
- }
826
- }
827
- }
828
- }
829
- };
830
- var LoadBalancingSettingsUpdateParameters = {
831
- serializedName: "LoadBalancingSettingsUpdateParameters",
832
- type: {
833
- name: "Composite",
834
- className: "LoadBalancingSettingsUpdateParameters",
835
- modelProperties: {
836
- sampleSize: {
837
- serializedName: "sampleSize",
838
- type: {
839
- name: "Number"
840
- }
841
- },
842
- successfulSamplesRequired: {
843
- serializedName: "successfulSamplesRequired",
844
- type: {
845
- name: "Number"
846
- }
847
- },
848
- additionalLatencyMilliseconds: {
849
- serializedName: "additionalLatencyMilliseconds",
850
- type: {
851
- name: "Number"
852
- }
853
- }
854
- }
855
- }
856
- };
857
- var HealthProbeSettingsUpdateParameters = {
858
- serializedName: "HealthProbeSettingsUpdateParameters",
859
- type: {
860
- name: "Composite",
861
- className: "HealthProbeSettingsUpdateParameters",
862
- modelProperties: {
863
- path: {
864
- serializedName: "path",
865
- type: {
866
- name: "String"
867
- }
868
- },
869
- protocol: {
870
- serializedName: "protocol",
871
- type: {
872
- name: "String"
873
- }
874
- },
875
- intervalInSeconds: {
876
- serializedName: "intervalInSeconds",
877
- type: {
878
- name: "Number"
879
- }
880
- }
881
- }
882
- }
883
- };
884
- var BackendPoolUpdateParameters = {
885
- serializedName: "BackendPoolUpdateParameters",
886
- type: {
887
- name: "Composite",
888
- className: "BackendPoolUpdateParameters",
889
- modelProperties: {
890
- backends: {
891
- serializedName: "backends",
892
- type: {
893
- name: "Sequence",
894
- element: {
895
- type: {
896
- name: "Composite",
897
- className: "Backend"
898
- }
899
- }
900
- }
901
- },
902
- loadBalancingSettings: {
903
- serializedName: "loadBalancingSettings",
904
- type: {
905
- name: "Composite",
906
- className: "SubResource"
907
- }
908
- },
909
- healthProbeSettings: {
910
- serializedName: "healthProbeSettings",
911
- type: {
912
- name: "Composite",
913
- className: "SubResource"
914
- }
915
- }
916
- }
917
- }
918
- };
919
- var FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink = {
920
- serializedName: "FrontendEndpointUpdateParameters_webApplicationFirewallPolicyLink",
921
- type: {
922
- name: "Composite",
923
- className: "FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink",
924
- modelProperties: {
925
- id: {
926
- serializedName: "id",
927
- type: {
928
- name: "String"
929
- }
930
- }
931
- }
932
- }
933
- };
934
- var FrontendEndpointUpdateParameters = {
935
- serializedName: "FrontendEndpointUpdateParameters",
936
- type: {
937
- name: "Composite",
938
- className: "FrontendEndpointUpdateParameters",
939
- modelProperties: {
940
- hostName: {
941
- serializedName: "hostName",
942
- type: {
943
- name: "String"
944
- }
945
- },
946
- sessionAffinityEnabledState: {
947
- serializedName: "sessionAffinityEnabledState",
948
- type: {
949
- name: "String"
950
- }
951
- },
952
- sessionAffinityTtlSeconds: {
953
- serializedName: "sessionAffinityTtlSeconds",
954
- type: {
955
- name: "Number"
956
- }
957
- },
958
- webApplicationFirewallPolicyLink: {
959
- serializedName: "webApplicationFirewallPolicyLink",
960
- type: {
961
- name: "Composite",
962
- className: "FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink"
963
- }
964
- }
965
- }
966
- }
967
- };
968
- var ValidateCustomDomainInput = {
969
- serializedName: "ValidateCustomDomainInput",
970
- type: {
971
- name: "Composite",
972
- className: "ValidateCustomDomainInput",
973
- modelProperties: {
974
- hostName: {
975
- required: true,
976
- serializedName: "hostName",
977
- type: {
978
- name: "String"
979
- }
980
- }
981
- }
982
- }
983
- };
984
- var ValidateCustomDomainOutput = {
985
- serializedName: "ValidateCustomDomainOutput",
986
- type: {
987
- name: "Composite",
988
- className: "ValidateCustomDomainOutput",
989
- modelProperties: {
990
- customDomainValidated: {
991
- readOnly: true,
992
- serializedName: "customDomainValidated",
993
- type: {
994
- name: "Boolean"
995
- }
996
- },
997
- reason: {
998
- readOnly: true,
999
- serializedName: "reason",
1000
- type: {
1001
- name: "String"
1002
- }
1003
- },
1004
- message: {
1005
- readOnly: true,
1006
- serializedName: "message",
1007
- type: {
1008
- name: "String"
1009
- }
1010
- }
1011
- }
1012
- }
1013
- };
1014
- var ErrorResponse = {
1015
- serializedName: "ErrorResponse",
1016
- type: {
1017
- name: "Composite",
1018
- className: "ErrorResponse",
1019
- modelProperties: {
1020
- code: {
1021
- readOnly: true,
1022
- serializedName: "code",
1023
- type: {
1024
- name: "String"
1025
- }
1026
- },
1027
- message: {
1028
- readOnly: true,
1029
- serializedName: "message",
1030
- type: {
1031
- name: "String"
1032
- }
1033
- }
1034
- }
1035
- }
1036
- };
1037
- var CheckNameAvailabilityInput = {
1038
- serializedName: "CheckNameAvailabilityInput",
1039
- type: {
1040
- name: "Composite",
1041
- className: "CheckNameAvailabilityInput",
1042
- modelProperties: {
1043
- name: {
1044
- required: true,
1045
- serializedName: "name",
1046
- type: {
1047
- name: "String"
1048
- }
1049
- },
1050
- type: {
1051
- required: true,
1052
- serializedName: "type",
1053
- type: {
1054
- name: "Enum",
1055
- allowedValues: [
1056
- "Microsoft.Network/frontDoors",
1057
- "Microsoft.Network/frontDoors/frontendEndpoints"
1058
- ]
1059
- }
1060
- }
1061
- }
1062
- }
1063
- };
1064
- var CheckNameAvailabilityOutput = {
1065
- serializedName: "CheckNameAvailabilityOutput",
1066
- type: {
1067
- name: "Composite",
1068
- className: "CheckNameAvailabilityOutput",
1069
- modelProperties: {
1070
- nameAvailability: {
1071
- readOnly: true,
1072
- serializedName: "nameAvailability",
1073
- type: {
1074
- name: "String"
1075
- }
1076
- },
1077
- reason: {
1078
- readOnly: true,
1079
- serializedName: "reason",
1080
- type: {
1081
- name: "String"
1082
- }
1083
- },
1084
- message: {
1085
- readOnly: true,
1086
- serializedName: "message",
1087
- type: {
1088
- name: "String"
1089
- }
1090
- }
1091
- }
1092
- }
1093
- };
1094
- var ErrorDetails = {
1095
- serializedName: "ErrorDetails",
1096
- type: {
1097
- name: "Composite",
1098
- className: "ErrorDetails",
1099
- modelProperties: {
1100
- code: {
1101
- serializedName: "code",
1102
- type: {
1103
- name: "String"
1104
- }
1105
- },
1106
- target: {
1107
- serializedName: "target",
1108
- type: {
1109
- name: "String"
1110
- }
1111
- },
1112
- message: {
1113
- serializedName: "message",
1114
- type: {
1115
- name: "String"
1116
- }
1117
- }
1118
- }
1119
- }
1120
- };
1121
- var ErrorModel = {
1122
- serializedName: "Error",
1123
- type: {
1124
- name: "Composite",
1125
- className: "ErrorModel",
1126
- modelProperties: {
1127
- code: {
1128
- serializedName: "code",
1129
- type: {
1130
- name: "String"
1131
- }
1132
- },
1133
- message: {
1134
- serializedName: "message",
1135
- type: {
1136
- name: "String"
1137
- }
1138
- },
1139
- target: {
1140
- serializedName: "target",
1141
- type: {
1142
- name: "String"
1143
- }
1144
- },
1145
- details: {
1146
- serializedName: "details",
1147
- type: {
1148
- name: "Sequence",
1149
- element: {
1150
- type: {
1151
- name: "Composite",
1152
- className: "ErrorDetails"
1153
- }
1154
- }
1155
- }
1156
- },
1157
- innerError: {
1158
- serializedName: "innerError",
1159
- type: {
1160
- name: "String"
1161
- }
1162
- }
1163
- }
1164
- }
1165
- };
1166
- var AzureAsyncOperationResult = {
1167
- serializedName: "AzureAsyncOperationResult",
1168
- type: {
1169
- name: "Composite",
1170
- className: "AzureAsyncOperationResult",
1171
- modelProperties: {
1172
- status: {
1173
- serializedName: "status",
1174
- type: {
1175
- name: "String"
1176
- }
1177
- },
1178
- error: {
1179
- serializedName: "error",
1180
- type: {
1181
- name: "Composite",
1182
- className: "ErrorModel"
1183
- }
1184
- }
1185
- }
1186
- }
1187
- };
1188
- var TagsObject = {
1189
- serializedName: "TagsObject",
1190
- type: {
1191
- name: "Composite",
1192
- className: "TagsObject",
1193
- modelProperties: {
1194
- tags: {
1195
- serializedName: "tags",
1196
- type: {
1197
- name: "Dictionary",
1198
- value: {
1199
- type: {
1200
- name: "String"
1201
- }
1202
- }
1203
- }
1204
- }
1205
- }
1206
- }
1207
- };
1208
- var PolicySettings = {
1209
- serializedName: "policySettings",
1210
- type: {
1211
- name: "Composite",
1212
- className: "PolicySettings",
1213
- modelProperties: {
1214
- enabledState: {
1215
- serializedName: "enabledState",
1216
- type: {
1217
- name: "String"
1218
- }
1219
- },
1220
- mode: {
1221
- serializedName: "mode",
1222
- type: {
1223
- name: "String"
1224
- }
1225
- }
1226
- }
1227
- }
1228
- };
1229
- var MatchCondition1 = {
1230
- serializedName: "MatchCondition",
1231
- type: {
1232
- name: "Composite",
1233
- className: "MatchCondition1",
1234
- modelProperties: {
1235
- matchVariable: {
1236
- required: true,
1237
- serializedName: "matchVariable",
1238
- type: {
1239
- name: "String"
1240
- }
1241
- },
1242
- selector: {
1243
- serializedName: "selector",
1244
- type: {
1245
- name: "String"
1246
- }
1247
- },
1248
- operator: {
1249
- required: true,
1250
- serializedName: "operator",
1251
- type: {
1252
- name: "String"
1253
- }
1254
- },
1255
- negateCondition: {
1256
- serializedName: "negateCondition",
1257
- type: {
1258
- name: "Boolean"
1259
- }
1260
- },
1261
- matchValue: {
1262
- required: true,
1263
- serializedName: "matchValue",
1264
- type: {
1265
- name: "Sequence",
1266
- element: {
1267
- type: {
1268
- name: "String"
1269
- }
1270
- }
1271
- }
1272
- }
1273
- }
1274
- }
1275
- };
1276
- var CustomRule = {
1277
- serializedName: "CustomRule",
1278
- type: {
1279
- name: "Composite",
1280
- className: "CustomRule",
1281
- modelProperties: {
1282
- name: {
1283
- serializedName: "name",
1284
- constraints: {
1285
- MaxLength: 128
1286
- },
1287
- type: {
1288
- name: "String"
1289
- }
1290
- },
1291
- etag: {
1292
- readOnly: true,
1293
- serializedName: "etag",
1294
- type: {
1295
- name: "String"
1296
- }
1297
- },
1298
- priority: {
1299
- required: true,
1300
- serializedName: "priority",
1301
- type: {
1302
- name: "Number"
1303
- }
1304
- },
1305
- ruleType: {
1306
- required: true,
1307
- serializedName: "ruleType",
1308
- type: {
1309
- name: "String"
1310
- }
1311
- },
1312
- rateLimitDurationInMinutes: {
1313
- serializedName: "rateLimitDurationInMinutes",
1314
- type: {
1315
- name: "Number"
1316
- }
1317
- },
1318
- rateLimitThreshold: {
1319
- serializedName: "rateLimitThreshold",
1320
- type: {
1321
- name: "Number"
1322
- }
1323
- },
1324
- matchConditions: {
1325
- required: true,
1326
- serializedName: "matchConditions",
1327
- type: {
1328
- name: "Sequence",
1329
- element: {
1330
- type: {
1331
- name: "Composite",
1332
- className: "MatchCondition1"
1333
- }
1334
- }
1335
- }
1336
- },
1337
- action: {
1338
- required: true,
1339
- serializedName: "action",
1340
- type: {
1341
- name: "String"
1342
- }
1343
- },
1344
- transforms: {
1345
- serializedName: "transforms",
1346
- type: {
1347
- name: "Sequence",
1348
- element: {
1349
- type: {
1350
- name: "String"
1351
- }
1352
- }
1353
- }
1354
- }
1355
- }
1356
- }
1357
- };
1358
- var CustomRules = {
1359
- serializedName: "CustomRules",
1360
- type: {
1361
- name: "Composite",
1362
- className: "CustomRules",
1363
- modelProperties: {
1364
- rules: {
1365
- serializedName: "rules",
1366
- type: {
1367
- name: "Sequence",
1368
- element: {
1369
- type: {
1370
- name: "Composite",
1371
- className: "CustomRule"
1372
- }
1373
- }
1374
- }
1375
- }
1376
- }
1377
- }
1378
- };
1379
- var ManagedRuleSet = {
1380
- serializedName: "Unknown",
1381
- type: {
1382
- name: "Composite",
1383
- polymorphicDiscriminator: {
1384
- serializedName: "ruleSetType",
1385
- clientName: "ruleSetType"
1386
- },
1387
- uberParent: "ManagedRuleSet",
1388
- className: "ManagedRuleSet",
1389
- modelProperties: {
1390
- priority: {
1391
- serializedName: "priority",
1392
- type: {
1393
- name: "Number"
1394
- }
1395
- },
1396
- version: {
1397
- serializedName: "version",
1398
- type: {
1399
- name: "Number"
1400
- }
1401
- },
1402
- ruleSetType: {
1403
- required: true,
1404
- serializedName: "ruleSetType",
1405
- type: {
1406
- name: "String"
1407
- }
1408
- }
1409
- }
1410
- }
1411
- };
1412
- var ManagedRuleSets = {
1413
- serializedName: "ManagedRuleSets",
1414
- type: {
1415
- name: "Composite",
1416
- className: "ManagedRuleSets",
1417
- modelProperties: {
1418
- ruleSets: {
1419
- serializedName: "ruleSets",
1420
- type: {
1421
- name: "Sequence",
1422
- element: {
1423
- type: {
1424
- name: "Composite",
1425
- className: "ManagedRuleSet"
1426
- }
1427
- }
1428
- }
1429
- }
1430
- }
1431
- }
1432
- };
1433
- var WebApplicationFirewallPolicy1 = {
1434
- serializedName: "WebApplicationFirewallPolicy",
1435
- type: {
1436
- name: "Composite",
1437
- className: "WebApplicationFirewallPolicy1",
1438
- modelProperties: __assign({}, Resource.type.modelProperties, { policySettings: {
1439
- serializedName: "properties.policySettings",
1440
- type: {
1441
- name: "Composite",
1442
- className: "PolicySettings"
1443
- }
1444
- }, customRules: {
1445
- serializedName: "properties.customRules",
1446
- type: {
1447
- name: "Composite",
1448
- className: "CustomRules"
1449
- }
1450
- }, managedRules: {
1451
- serializedName: "properties.managedRules",
1452
- type: {
1453
- name: "Composite",
1454
- className: "ManagedRuleSets"
1455
- }
1456
- }, provisioningState: {
1457
- readOnly: true,
1458
- serializedName: "properties.provisioningState",
1459
- type: {
1460
- name: "String"
1461
- }
1462
- }, resourceState: {
1463
- readOnly: true,
1464
- serializedName: "properties.resourceState",
1465
- type: {
1466
- name: "String"
1467
- }
1468
- }, etag: {
1469
- serializedName: "etag",
1470
- type: {
1471
- name: "String"
1472
- }
1473
- } })
1474
- }
1475
- };
1476
- var AzureManagedOverrideRuleGroup = {
1477
- serializedName: "AzureManagedOverrideRuleGroup",
1478
- type: {
1479
- name: "Composite",
1480
- className: "AzureManagedOverrideRuleGroup",
1481
- modelProperties: {
1482
- ruleGroupOverride: {
1483
- required: true,
1484
- serializedName: "ruleGroupOverride",
1485
- type: {
1486
- name: "String"
1487
- }
1488
- },
1489
- action: {
1490
- required: true,
1491
- serializedName: "action",
1492
- type: {
1493
- name: "String"
1494
- }
1495
- }
1496
- }
1497
- }
1498
- };
1499
- var AzureManagedRuleSet = {
1500
- serializedName: "AzureManagedRuleSet",
1501
- type: {
1502
- name: "Composite",
1503
- polymorphicDiscriminator: ManagedRuleSet.type.polymorphicDiscriminator,
1504
- uberParent: "ManagedRuleSet",
1505
- className: "AzureManagedRuleSet",
1506
- modelProperties: __assign({}, ManagedRuleSet.type.modelProperties, { ruleGroupOverrides: {
1507
- serializedName: "ruleGroupOverrides",
1508
- type: {
1509
- name: "Sequence",
1510
- element: {
1511
- type: {
1512
- name: "Composite",
1513
- className: "AzureManagedOverrideRuleGroup"
1514
- }
1515
- }
1516
- }
1517
- } })
1518
- }
1519
- };
1520
- var FrontDoorListResult = {
1521
- serializedName: "FrontDoorListResult",
1522
- type: {
1523
- name: "Composite",
1524
- className: "FrontDoorListResult",
1525
- modelProperties: {
1526
- value: {
1527
- readOnly: true,
1528
- serializedName: "",
1529
- type: {
1530
- name: "Sequence",
1531
- element: {
1532
- type: {
1533
- name: "Composite",
1534
- className: "FrontDoor"
1535
- }
1536
- }
1537
- }
1538
- },
1539
- nextLink: {
1540
- serializedName: "nextLink",
1541
- type: {
1542
- name: "String"
1543
- }
1544
- }
1545
- }
1546
- }
1547
- };
1548
- var RoutingRuleListResult = {
1549
- serializedName: "RoutingRuleListResult",
1550
- type: {
1551
- name: "Composite",
1552
- className: "RoutingRuleListResult",
1553
- modelProperties: {
1554
- value: {
1555
- readOnly: true,
1556
- serializedName: "",
1557
- type: {
1558
- name: "Sequence",
1559
- element: {
1560
- type: {
1561
- name: "Composite",
1562
- className: "RoutingRule"
1563
- }
1564
- }
1565
- }
1566
- },
1567
- nextLink: {
1568
- serializedName: "nextLink",
1569
- type: {
1570
- name: "String"
1571
- }
1572
- }
1573
- }
1574
- }
1575
- };
1576
- var HealthProbeSettingsListResult = {
1577
- serializedName: "HealthProbeSettingsListResult",
1578
- type: {
1579
- name: "Composite",
1580
- className: "HealthProbeSettingsListResult",
1581
- modelProperties: {
1582
- value: {
1583
- readOnly: true,
1584
- serializedName: "",
1585
- type: {
1586
- name: "Sequence",
1587
- element: {
1588
- type: {
1589
- name: "Composite",
1590
- className: "HealthProbeSettingsModel"
1591
- }
1592
- }
1593
- }
1594
- },
1595
- nextLink: {
1596
- serializedName: "nextLink",
1597
- type: {
1598
- name: "String"
1599
- }
1600
- }
1601
- }
1602
- }
1603
- };
1604
- var LoadBalancingSettingsListResult = {
1605
- serializedName: "LoadBalancingSettingsListResult",
1606
- type: {
1607
- name: "Composite",
1608
- className: "LoadBalancingSettingsListResult",
1609
- modelProperties: {
1610
- value: {
1611
- readOnly: true,
1612
- serializedName: "",
1613
- type: {
1614
- name: "Sequence",
1615
- element: {
1616
- type: {
1617
- name: "Composite",
1618
- className: "LoadBalancingSettingsModel"
1619
- }
1620
- }
1621
- }
1622
- },
1623
- nextLink: {
1624
- serializedName: "nextLink",
1625
- type: {
1626
- name: "String"
1627
- }
1628
- }
1629
- }
1630
- }
1631
- };
1632
- var BackendPoolListResult = {
1633
- serializedName: "BackendPoolListResult",
1634
- type: {
1635
- name: "Composite",
1636
- className: "BackendPoolListResult",
1637
- modelProperties: {
1638
- value: {
1639
- readOnly: true,
1640
- serializedName: "",
1641
- type: {
1642
- name: "Sequence",
1643
- element: {
1644
- type: {
1645
- name: "Composite",
1646
- className: "BackendPool"
1647
- }
1648
- }
1649
- }
1650
- },
1651
- nextLink: {
1652
- serializedName: "nextLink",
1653
- type: {
1654
- name: "String"
1655
- }
1656
- }
1657
- }
1658
- }
1659
- };
1660
- var FrontendEndpointsListResult = {
1661
- serializedName: "FrontendEndpointsListResult",
1662
- type: {
1663
- name: "Composite",
1664
- className: "FrontendEndpointsListResult",
1665
- modelProperties: {
1666
- value: {
1667
- readOnly: true,
1668
- serializedName: "",
1669
- type: {
1670
- name: "Sequence",
1671
- element: {
1672
- type: {
1673
- name: "Composite",
1674
- className: "FrontendEndpoint"
1675
- }
1676
- }
1677
- }
1678
- },
1679
- nextLink: {
1680
- serializedName: "nextLink",
1681
- type: {
1682
- name: "String"
1683
- }
1684
- }
1685
- }
1686
- }
1687
- };
1688
- var WebApplicationFirewallPolicyListResult = {
1689
- serializedName: "WebApplicationFirewallPolicyListResult",
1690
- type: {
1691
- name: "Composite",
1692
- className: "WebApplicationFirewallPolicyListResult",
1693
- modelProperties: {
1694
- value: {
1695
- readOnly: true,
1696
- serializedName: "",
1697
- type: {
1698
- name: "Sequence",
1699
- element: {
1700
- type: {
1701
- name: "Composite",
1702
- className: "WebApplicationFirewallPolicy1"
1703
- }
1704
- }
1705
- }
1706
- },
1707
- nextLink: {
1708
- serializedName: "nextLink",
1709
- type: {
1710
- name: "String"
1711
- }
1712
- }
1713
- }
1714
- }
1715
- };
1716
- var discriminators = {
1717
- 'Unknown': ManagedRuleSet,
1718
- 'ManagedRuleSet.AzureManagedRuleSet': AzureManagedRuleSet
1719
- };
1720
-
1721
- var Mappers = /*#__PURE__*/Object.freeze({
1722
- CloudError: CloudError,
1723
- BaseResource: BaseResource,
1724
- Resource: Resource,
1725
- FrontDoor: FrontDoor,
1726
- SubResource: SubResource,
1727
- RoutingRule: RoutingRule,
1728
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
1729
- HealthProbeSettingsModel: HealthProbeSettingsModel,
1730
- BackendPool: BackendPool,
1731
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
1732
- CustomHttpsConfiguration: CustomHttpsConfiguration,
1733
- FrontendEndpoint: FrontendEndpoint,
1734
- FrontDoorUpdateParameters: FrontDoorUpdateParameters,
1735
- PurgeParameters: PurgeParameters,
1736
- CacheConfiguration: CacheConfiguration,
1737
- RoutingRuleUpdateParameters: RoutingRuleUpdateParameters,
1738
- Backend: Backend,
1739
- LoadBalancingSettingsUpdateParameters: LoadBalancingSettingsUpdateParameters,
1740
- HealthProbeSettingsUpdateParameters: HealthProbeSettingsUpdateParameters,
1741
- BackendPoolUpdateParameters: BackendPoolUpdateParameters,
1742
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
1743
- FrontendEndpointUpdateParameters: FrontendEndpointUpdateParameters,
1744
- ValidateCustomDomainInput: ValidateCustomDomainInput,
1745
- ValidateCustomDomainOutput: ValidateCustomDomainOutput,
1746
- ErrorResponse: ErrorResponse,
1747
- CheckNameAvailabilityInput: CheckNameAvailabilityInput,
1748
- CheckNameAvailabilityOutput: CheckNameAvailabilityOutput,
1749
- ErrorDetails: ErrorDetails,
1750
- ErrorModel: ErrorModel,
1751
- AzureAsyncOperationResult: AzureAsyncOperationResult,
1752
- TagsObject: TagsObject,
1753
- PolicySettings: PolicySettings,
1754
- MatchCondition1: MatchCondition1,
1755
- CustomRule: CustomRule,
1756
- CustomRules: CustomRules,
1757
- ManagedRuleSet: ManagedRuleSet,
1758
- ManagedRuleSets: ManagedRuleSets,
1759
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
1760
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup,
1761
- AzureManagedRuleSet: AzureManagedRuleSet,
1762
- FrontDoorListResult: FrontDoorListResult,
1763
- RoutingRuleListResult: RoutingRuleListResult,
1764
- HealthProbeSettingsListResult: HealthProbeSettingsListResult,
1765
- LoadBalancingSettingsListResult: LoadBalancingSettingsListResult,
1766
- BackendPoolListResult: BackendPoolListResult,
1767
- FrontendEndpointsListResult: FrontendEndpointsListResult,
1768
- WebApplicationFirewallPolicyListResult: WebApplicationFirewallPolicyListResult,
1769
- discriminators: discriminators
1770
- });
1771
-
1772
- /*
1773
- * Copyright (c) Microsoft Corporation. All rights reserved.
1774
- * Licensed under the MIT License. See License.txt in the project root for
1775
- * license information.
1776
- *
1777
- * Code generated by Microsoft (R) AutoRest Code Generator.
1778
- * Changes may cause incorrect behavior and will be lost if the code is
1779
- * regenerated.
1780
- */
1781
- var acceptLanguage = {
1782
- parameterPath: "acceptLanguage",
1783
- mapper: {
1784
- serializedName: "accept-language",
1785
- defaultValue: 'en-US',
1786
- type: {
1787
- name: "String"
1788
- }
1789
- }
1790
- };
1791
- var apiVersion = {
1792
- parameterPath: "apiVersion",
1793
- mapper: {
1794
- required: true,
1795
- isConstant: true,
1796
- serializedName: "api-version",
1797
- defaultValue: '2018-08-01',
1798
- type: {
1799
- name: "String"
1800
- }
1801
- }
1802
- };
1803
- var backendPoolName = {
1804
- parameterPath: "backendPoolName",
1805
- mapper: {
1806
- required: true,
1807
- serializedName: "backendPoolName",
1808
- constraints: {
1809
- MaxLength: 90,
1810
- MinLength: 1,
1811
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
1812
- },
1813
- type: {
1814
- name: "String"
1815
- }
1816
- }
1817
- };
1818
- var frontDoorName = {
1819
- parameterPath: "frontDoorName",
1820
- mapper: {
1821
- required: true,
1822
- serializedName: "frontDoorName",
1823
- constraints: {
1824
- MaxLength: 64,
1825
- MinLength: 5,
1826
- Pattern: /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/
1827
- },
1828
- type: {
1829
- name: "String"
1830
- }
1831
- }
1832
- };
1833
- var frontendEndpointName = {
1834
- parameterPath: "frontendEndpointName",
1835
- mapper: {
1836
- required: true,
1837
- serializedName: "frontendEndpointName",
1838
- constraints: {
1839
- MaxLength: 255,
1840
- MinLength: 1,
1841
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
1842
- },
1843
- type: {
1844
- name: "String"
1845
- }
1846
- }
1847
- };
1848
- var healthProbeSettingsName = {
1849
- parameterPath: "healthProbeSettingsName",
1850
- mapper: {
1851
- required: true,
1852
- serializedName: "healthProbeSettingsName",
1853
- constraints: {
1854
- MaxLength: 90,
1855
- MinLength: 1,
1856
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
1857
- },
1858
- type: {
1859
- name: "String"
1860
- }
1861
- }
1862
- };
1863
- var loadBalancingSettingsName = {
1864
- parameterPath: "loadBalancingSettingsName",
1865
- mapper: {
1866
- required: true,
1867
- serializedName: "loadBalancingSettingsName",
1868
- constraints: {
1869
- MaxLength: 90,
1870
- MinLength: 1,
1871
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
1872
- },
1873
- type: {
1874
- name: "String"
1875
- }
1876
- }
1877
- };
1878
- var nextPageLink = {
1879
- parameterPath: "nextPageLink",
1880
- mapper: {
1881
- required: true,
1882
- serializedName: "nextLink",
1883
- type: {
1884
- name: "String"
1885
- }
1886
- },
1887
- skipEncoding: true
1888
- };
1889
- var policyName = {
1890
- parameterPath: "policyName",
1891
- mapper: {
1892
- required: true,
1893
- serializedName: "policyName",
1894
- constraints: {
1895
- MaxLength: 128
1896
- },
1897
- type: {
1898
- name: "String"
1899
- }
1900
- }
1901
- };
1902
- var resourceGroupName0 = {
1903
- parameterPath: "resourceGroupName",
1904
- mapper: {
1905
- required: true,
1906
- serializedName: "resourceGroupName",
1907
- constraints: {
1908
- MaxLength: 80,
1909
- MinLength: 1,
1910
- Pattern: /^[a-zA-Z0-9_\-\(\)\.]*[^\.]$/
1911
- },
1912
- type: {
1913
- name: "String"
1914
- }
1915
- }
1916
- };
1917
- var resourceGroupName1 = {
1918
- parameterPath: "resourceGroupName",
1919
- mapper: {
1920
- required: true,
1921
- serializedName: "resourceGroupName",
1922
- type: {
1923
- name: "String"
1924
- }
1925
- }
1926
- };
1927
- var routingRuleName = {
1928
- parameterPath: "routingRuleName",
1929
- mapper: {
1930
- required: true,
1931
- serializedName: "routingRuleName",
1932
- constraints: {
1933
- MaxLength: 90,
1934
- MinLength: 1,
1935
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
1936
- },
1937
- type: {
1938
- name: "String"
1939
- }
1940
- }
1941
- };
1942
- var subscriptionId = {
1943
- parameterPath: "subscriptionId",
1944
- mapper: {
1945
- required: true,
1946
- serializedName: "subscriptionId",
1947
- type: {
1948
- name: "String"
1949
- }
1950
- }
1951
- };
1952
-
1953
- /*
1954
- * Copyright (c) Microsoft Corporation. All rights reserved.
1955
- * Licensed under the MIT License. See License.txt in the project root for
1956
- * license information.
1957
- *
1958
- * Code generated by Microsoft (R) AutoRest Code Generator.
1959
- * Changes may cause incorrect behavior and will be lost if the code is
1960
- * regenerated.
1961
- */
1962
-
1963
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1964
- discriminators: discriminators,
1965
- FrontDoorListResult: FrontDoorListResult,
1966
- FrontDoor: FrontDoor,
1967
- Resource: Resource,
1968
- BaseResource: BaseResource,
1969
- RoutingRule: RoutingRule,
1970
- SubResource: SubResource,
1971
- CacheConfiguration: CacheConfiguration,
1972
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
1973
- HealthProbeSettingsModel: HealthProbeSettingsModel,
1974
- BackendPool: BackendPool,
1975
- Backend: Backend,
1976
- FrontendEndpoint: FrontendEndpoint,
1977
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
1978
- CustomHttpsConfiguration: CustomHttpsConfiguration,
1979
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
1980
- ErrorResponse: ErrorResponse,
1981
- ValidateCustomDomainInput: ValidateCustomDomainInput,
1982
- ValidateCustomDomainOutput: ValidateCustomDomainOutput,
1983
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
1984
- PolicySettings: PolicySettings,
1985
- CustomRules: CustomRules,
1986
- CustomRule: CustomRule,
1987
- MatchCondition1: MatchCondition1,
1988
- ManagedRuleSets: ManagedRuleSets,
1989
- ManagedRuleSet: ManagedRuleSet,
1990
- AzureManagedRuleSet: AzureManagedRuleSet,
1991
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup
1992
- });
1993
-
1994
- /*
1995
- * Copyright (c) Microsoft Corporation. All rights reserved.
1996
- * Licensed under the MIT License. See License.txt in the project root for
1997
- * license information.
1998
- *
1999
- * Code generated by Microsoft (R) AutoRest Code Generator.
2000
- * Changes may cause incorrect behavior and will be lost if the code is
2001
- * regenerated.
2002
- */
2003
- /** Class representing a FrontDoors. */
2004
- var FrontDoors = /** @class */ (function () {
2005
- /**
2006
- * Create a FrontDoors.
2007
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
2008
- */
2009
- function FrontDoors(client) {
2010
- this.client = client;
2011
- }
2012
- FrontDoors.prototype.list = function (options, callback) {
2013
- return this.client.sendOperationRequest({
2014
- options: options
2015
- }, listOperationSpec, callback);
2016
- };
2017
- FrontDoors.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
2018
- return this.client.sendOperationRequest({
2019
- resourceGroupName: resourceGroupName,
2020
- options: options
2021
- }, listByResourceGroupOperationSpec, callback);
2022
- };
2023
- FrontDoors.prototype.get = function (resourceGroupName, frontDoorName$$1, options, callback) {
2024
- return this.client.sendOperationRequest({
2025
- resourceGroupName: resourceGroupName,
2026
- frontDoorName: frontDoorName$$1,
2027
- options: options
2028
- }, getOperationSpec, callback);
2029
- };
2030
- /**
2031
- * Creates a new Front Door with a Front Door name under the specified subscription and resource
2032
- * group.
2033
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2034
- * @param frontDoorName Name of the Front Door which is globally unique.
2035
- * @param frontDoorParameters Front Door properties needed to create a new Front Door.
2036
- * @param [options] The optional parameters
2037
- * @returns Promise<Models.FrontDoorsCreateOrUpdateResponse>
2038
- */
2039
- FrontDoors.prototype.createOrUpdate = function (resourceGroupName, frontDoorName$$1, frontDoorParameters, options) {
2040
- return this.beginCreateOrUpdate(resourceGroupName, frontDoorName$$1, frontDoorParameters, options)
2041
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2042
- };
2043
- /**
2044
- * Deletes an existing Front Door with the specified parameters.
2045
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2046
- * @param frontDoorName Name of the Front Door which is globally unique.
2047
- * @param [options] The optional parameters
2048
- * @returns Promise<msRest.RestResponse>
2049
- */
2050
- FrontDoors.prototype.deleteMethod = function (resourceGroupName, frontDoorName$$1, options) {
2051
- return this.beginDeleteMethod(resourceGroupName, frontDoorName$$1, options)
2052
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2053
- };
2054
- FrontDoors.prototype.validateCustomDomain = function (resourceGroupName, frontDoorName$$1, customDomainProperties, options, callback) {
2055
- return this.client.sendOperationRequest({
2056
- resourceGroupName: resourceGroupName,
2057
- frontDoorName: frontDoorName$$1,
2058
- customDomainProperties: customDomainProperties,
2059
- options: options
2060
- }, validateCustomDomainOperationSpec, callback);
2061
- };
2062
- /**
2063
- * Creates a new Front Door with a Front Door name under the specified subscription and resource
2064
- * group.
2065
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2066
- * @param frontDoorName Name of the Front Door which is globally unique.
2067
- * @param frontDoorParameters Front Door properties needed to create a new Front Door.
2068
- * @param [options] The optional parameters
2069
- * @returns Promise<msRestAzure.LROPoller>
2070
- */
2071
- FrontDoors.prototype.beginCreateOrUpdate = function (resourceGroupName, frontDoorName$$1, frontDoorParameters, options) {
2072
- return this.client.sendLRORequest({
2073
- resourceGroupName: resourceGroupName,
2074
- frontDoorName: frontDoorName$$1,
2075
- frontDoorParameters: frontDoorParameters,
2076
- options: options
2077
- }, beginCreateOrUpdateOperationSpec, options);
2078
- };
2079
- /**
2080
- * Deletes an existing Front Door with the specified parameters.
2081
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2082
- * @param frontDoorName Name of the Front Door which is globally unique.
2083
- * @param [options] The optional parameters
2084
- * @returns Promise<msRestAzure.LROPoller>
2085
- */
2086
- FrontDoors.prototype.beginDeleteMethod = function (resourceGroupName, frontDoorName$$1, options) {
2087
- return this.client.sendLRORequest({
2088
- resourceGroupName: resourceGroupName,
2089
- frontDoorName: frontDoorName$$1,
2090
- options: options
2091
- }, beginDeleteMethodOperationSpec, options);
2092
- };
2093
- FrontDoors.prototype.listNext = function (nextPageLink$$1, options, callback) {
2094
- return this.client.sendOperationRequest({
2095
- nextPageLink: nextPageLink$$1,
2096
- options: options
2097
- }, listNextOperationSpec, callback);
2098
- };
2099
- FrontDoors.prototype.listByResourceGroupNext = function (nextPageLink$$1, options, callback) {
2100
- return this.client.sendOperationRequest({
2101
- nextPageLink: nextPageLink$$1,
2102
- options: options
2103
- }, listByResourceGroupNextOperationSpec, callback);
2104
- };
2105
- return FrontDoors;
2106
- }());
2107
- // Operation Specifications
2108
- var serializer = new msRest.Serializer(Mappers$1);
2109
- var listOperationSpec = {
2110
- httpMethod: "GET",
2111
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors",
2112
- urlParameters: [
2113
- subscriptionId
2114
- ],
2115
- queryParameters: [
2116
- apiVersion
2117
- ],
2118
- headerParameters: [
2119
- acceptLanguage
2120
- ],
2121
- responses: {
2122
- 200: {
2123
- bodyMapper: FrontDoorListResult
2124
- },
2125
- default: {
2126
- bodyMapper: ErrorResponse
2127
- }
2128
- },
2129
- serializer: serializer
2130
- };
2131
- var listByResourceGroupOperationSpec = {
2132
- httpMethod: "GET",
2133
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors",
2134
- urlParameters: [
2135
- subscriptionId,
2136
- resourceGroupName0
2137
- ],
2138
- queryParameters: [
2139
- apiVersion
2140
- ],
2141
- headerParameters: [
2142
- acceptLanguage
2143
- ],
2144
- responses: {
2145
- 200: {
2146
- bodyMapper: FrontDoorListResult
2147
- },
2148
- default: {
2149
- bodyMapper: ErrorResponse
2150
- }
2151
- },
2152
- serializer: serializer
2153
- };
2154
- var getOperationSpec = {
2155
- httpMethod: "GET",
2156
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
2157
- urlParameters: [
2158
- subscriptionId,
2159
- resourceGroupName0,
2160
- frontDoorName
2161
- ],
2162
- queryParameters: [
2163
- apiVersion
2164
- ],
2165
- headerParameters: [
2166
- acceptLanguage
2167
- ],
2168
- responses: {
2169
- 200: {
2170
- bodyMapper: FrontDoor
2171
- },
2172
- default: {
2173
- bodyMapper: ErrorResponse
2174
- }
2175
- },
2176
- serializer: serializer
2177
- };
2178
- var validateCustomDomainOperationSpec = {
2179
- httpMethod: "POST",
2180
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain",
2181
- urlParameters: [
2182
- subscriptionId,
2183
- resourceGroupName0,
2184
- frontDoorName
2185
- ],
2186
- queryParameters: [
2187
- apiVersion
2188
- ],
2189
- headerParameters: [
2190
- acceptLanguage
2191
- ],
2192
- requestBody: {
2193
- parameterPath: "customDomainProperties",
2194
- mapper: __assign({}, ValidateCustomDomainInput, { required: true })
2195
- },
2196
- responses: {
2197
- 200: {
2198
- bodyMapper: ValidateCustomDomainOutput
2199
- },
2200
- default: {
2201
- bodyMapper: ErrorResponse
2202
- }
2203
- },
2204
- serializer: serializer
2205
- };
2206
- var beginCreateOrUpdateOperationSpec = {
2207
- httpMethod: "PUT",
2208
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
2209
- urlParameters: [
2210
- subscriptionId,
2211
- resourceGroupName0,
2212
- frontDoorName
2213
- ],
2214
- queryParameters: [
2215
- apiVersion
2216
- ],
2217
- headerParameters: [
2218
- acceptLanguage
2219
- ],
2220
- requestBody: {
2221
- parameterPath: "frontDoorParameters",
2222
- mapper: __assign({}, FrontDoor, { required: true })
2223
- },
2224
- responses: {
2225
- 200: {
2226
- bodyMapper: FrontDoor
2227
- },
2228
- 201: {
2229
- bodyMapper: FrontDoor
2230
- },
2231
- 202: {
2232
- bodyMapper: FrontDoor
2233
- },
2234
- default: {
2235
- bodyMapper: ErrorResponse
2236
- }
2237
- },
2238
- serializer: serializer
2239
- };
2240
- var beginDeleteMethodOperationSpec = {
2241
- httpMethod: "DELETE",
2242
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
2243
- urlParameters: [
2244
- subscriptionId,
2245
- resourceGroupName0,
2246
- frontDoorName
2247
- ],
2248
- queryParameters: [
2249
- apiVersion
2250
- ],
2251
- headerParameters: [
2252
- acceptLanguage
2253
- ],
2254
- responses: {
2255
- 202: {},
2256
- 204: {},
2257
- default: {
2258
- bodyMapper: ErrorResponse
2259
- }
2260
- },
2261
- serializer: serializer
2262
- };
2263
- var listNextOperationSpec = {
2264
- httpMethod: "GET",
2265
- baseUrl: "https://management.azure.com",
2266
- path: "{nextLink}",
2267
- urlParameters: [
2268
- nextPageLink
2269
- ],
2270
- headerParameters: [
2271
- acceptLanguage
2272
- ],
2273
- responses: {
2274
- 200: {
2275
- bodyMapper: FrontDoorListResult
2276
- },
2277
- default: {
2278
- bodyMapper: ErrorResponse
2279
- }
2280
- },
2281
- serializer: serializer
2282
- };
2283
- var listByResourceGroupNextOperationSpec = {
2284
- httpMethod: "GET",
2285
- baseUrl: "https://management.azure.com",
2286
- path: "{nextLink}",
2287
- urlParameters: [
2288
- nextPageLink
2289
- ],
2290
- headerParameters: [
2291
- acceptLanguage
2292
- ],
2293
- responses: {
2294
- 200: {
2295
- bodyMapper: FrontDoorListResult
2296
- },
2297
- default: {
2298
- bodyMapper: ErrorResponse
2299
- }
2300
- },
2301
- serializer: serializer
2302
- };
2303
-
2304
- /*
2305
- * Copyright (c) Microsoft Corporation. All rights reserved.
2306
- * Licensed under the MIT License. See License.txt in the project root for
2307
- * license information.
2308
- *
2309
- * Code generated by Microsoft (R) AutoRest Code Generator.
2310
- * Changes may cause incorrect behavior and will be lost if the code is
2311
- * regenerated.
2312
- */
2313
-
2314
- var Mappers$2 = /*#__PURE__*/Object.freeze({
2315
- discriminators: discriminators,
2316
- RoutingRuleListResult: RoutingRuleListResult,
2317
- RoutingRule: RoutingRule,
2318
- SubResource: SubResource,
2319
- BaseResource: BaseResource,
2320
- CacheConfiguration: CacheConfiguration,
2321
- ErrorResponse: ErrorResponse,
2322
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
2323
- HealthProbeSettingsModel: HealthProbeSettingsModel,
2324
- BackendPool: BackendPool,
2325
- Backend: Backend,
2326
- FrontendEndpoint: FrontendEndpoint,
2327
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
2328
- CustomHttpsConfiguration: CustomHttpsConfiguration,
2329
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
2330
- Resource: Resource,
2331
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
2332
- PolicySettings: PolicySettings,
2333
- CustomRules: CustomRules,
2334
- CustomRule: CustomRule,
2335
- MatchCondition1: MatchCondition1,
2336
- ManagedRuleSets: ManagedRuleSets,
2337
- ManagedRuleSet: ManagedRuleSet,
2338
- AzureManagedRuleSet: AzureManagedRuleSet,
2339
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup,
2340
- FrontDoor: FrontDoor
2341
- });
2342
-
2343
- /*
2344
- * Copyright (c) Microsoft Corporation. All rights reserved.
2345
- * Licensed under the MIT License. See License.txt in the project root for
2346
- * license information.
2347
- *
2348
- * Code generated by Microsoft (R) AutoRest Code Generator.
2349
- * Changes may cause incorrect behavior and will be lost if the code is
2350
- * regenerated.
2351
- */
2352
- /** Class representing a RoutingRules. */
2353
- var RoutingRules = /** @class */ (function () {
2354
- /**
2355
- * Create a RoutingRules.
2356
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
2357
- */
2358
- function RoutingRules(client) {
2359
- this.client = client;
2360
- }
2361
- RoutingRules.prototype.listByFrontDoor = function (resourceGroupName, frontDoorName$$1, options, callback) {
2362
- return this.client.sendOperationRequest({
2363
- resourceGroupName: resourceGroupName,
2364
- frontDoorName: frontDoorName$$1,
2365
- options: options
2366
- }, listByFrontDoorOperationSpec, callback);
2367
- };
2368
- RoutingRules.prototype.get = function (resourceGroupName, frontDoorName$$1, routingRuleName$$1, options, callback) {
2369
- return this.client.sendOperationRequest({
2370
- resourceGroupName: resourceGroupName,
2371
- frontDoorName: frontDoorName$$1,
2372
- routingRuleName: routingRuleName$$1,
2373
- options: options
2374
- }, getOperationSpec$1, callback);
2375
- };
2376
- /**
2377
- * Creates a new Routing Rule with the specified Rule name within the specified Front Door.
2378
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2379
- * @param frontDoorName Name of the Front Door which is globally unique.
2380
- * @param routingRuleName Name of the Routing Rule which is unique within the Front Door.
2381
- * @param routingRuleParameters Routing Rule properties needed to create a new Front Door.
2382
- * @param [options] The optional parameters
2383
- * @returns Promise<Models.RoutingRulesCreateOrUpdateResponse>
2384
- */
2385
- RoutingRules.prototype.createOrUpdate = function (resourceGroupName, frontDoorName$$1, routingRuleName$$1, routingRuleParameters, options) {
2386
- return this.beginCreateOrUpdate(resourceGroupName, frontDoorName$$1, routingRuleName$$1, routingRuleParameters, options)
2387
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2388
- };
2389
- /**
2390
- * Deletes an existing Routing Rule with the specified parameters.
2391
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2392
- * @param frontDoorName Name of the Front Door which is globally unique.
2393
- * @param routingRuleName Name of the Routing Rule which is unique within the Front Door.
2394
- * @param [options] The optional parameters
2395
- * @returns Promise<msRest.RestResponse>
2396
- */
2397
- RoutingRules.prototype.deleteMethod = function (resourceGroupName, frontDoorName$$1, routingRuleName$$1, options) {
2398
- return this.beginDeleteMethod(resourceGroupName, frontDoorName$$1, routingRuleName$$1, options)
2399
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2400
- };
2401
- /**
2402
- * Creates a new Routing Rule with the specified Rule name within the specified Front Door.
2403
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2404
- * @param frontDoorName Name of the Front Door which is globally unique.
2405
- * @param routingRuleName Name of the Routing Rule which is unique within the Front Door.
2406
- * @param routingRuleParameters Routing Rule properties needed to create a new Front Door.
2407
- * @param [options] The optional parameters
2408
- * @returns Promise<msRestAzure.LROPoller>
2409
- */
2410
- RoutingRules.prototype.beginCreateOrUpdate = function (resourceGroupName, frontDoorName$$1, routingRuleName$$1, routingRuleParameters, options) {
2411
- return this.client.sendLRORequest({
2412
- resourceGroupName: resourceGroupName,
2413
- frontDoorName: frontDoorName$$1,
2414
- routingRuleName: routingRuleName$$1,
2415
- routingRuleParameters: routingRuleParameters,
2416
- options: options
2417
- }, beginCreateOrUpdateOperationSpec$1, options);
2418
- };
2419
- /**
2420
- * Deletes an existing Routing Rule with the specified parameters.
2421
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2422
- * @param frontDoorName Name of the Front Door which is globally unique.
2423
- * @param routingRuleName Name of the Routing Rule which is unique within the Front Door.
2424
- * @param [options] The optional parameters
2425
- * @returns Promise<msRestAzure.LROPoller>
2426
- */
2427
- RoutingRules.prototype.beginDeleteMethod = function (resourceGroupName, frontDoorName$$1, routingRuleName$$1, options) {
2428
- return this.client.sendLRORequest({
2429
- resourceGroupName: resourceGroupName,
2430
- frontDoorName: frontDoorName$$1,
2431
- routingRuleName: routingRuleName$$1,
2432
- options: options
2433
- }, beginDeleteMethodOperationSpec$1, options);
2434
- };
2435
- RoutingRules.prototype.listByFrontDoorNext = function (nextPageLink$$1, options, callback) {
2436
- return this.client.sendOperationRequest({
2437
- nextPageLink: nextPageLink$$1,
2438
- options: options
2439
- }, listByFrontDoorNextOperationSpec, callback);
2440
- };
2441
- return RoutingRules;
2442
- }());
2443
- // Operation Specifications
2444
- var serializer$1 = new msRest.Serializer(Mappers$2);
2445
- var listByFrontDoorOperationSpec = {
2446
- httpMethod: "GET",
2447
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules",
2448
- urlParameters: [
2449
- subscriptionId,
2450
- resourceGroupName0,
2451
- frontDoorName
2452
- ],
2453
- queryParameters: [
2454
- apiVersion
2455
- ],
2456
- headerParameters: [
2457
- acceptLanguage
2458
- ],
2459
- responses: {
2460
- 200: {
2461
- bodyMapper: RoutingRuleListResult
2462
- },
2463
- default: {
2464
- bodyMapper: ErrorResponse
2465
- }
2466
- },
2467
- serializer: serializer$1
2468
- };
2469
- var getOperationSpec$1 = {
2470
- httpMethod: "GET",
2471
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}",
2472
- urlParameters: [
2473
- subscriptionId,
2474
- resourceGroupName0,
2475
- frontDoorName,
2476
- routingRuleName
2477
- ],
2478
- queryParameters: [
2479
- apiVersion
2480
- ],
2481
- headerParameters: [
2482
- acceptLanguage
2483
- ],
2484
- responses: {
2485
- 200: {
2486
- bodyMapper: RoutingRule
2487
- },
2488
- default: {
2489
- bodyMapper: ErrorResponse
2490
- }
2491
- },
2492
- serializer: serializer$1
2493
- };
2494
- var beginCreateOrUpdateOperationSpec$1 = {
2495
- httpMethod: "PUT",
2496
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}",
2497
- urlParameters: [
2498
- subscriptionId,
2499
- resourceGroupName0,
2500
- frontDoorName,
2501
- routingRuleName
2502
- ],
2503
- queryParameters: [
2504
- apiVersion
2505
- ],
2506
- headerParameters: [
2507
- acceptLanguage
2508
- ],
2509
- requestBody: {
2510
- parameterPath: "routingRuleParameters",
2511
- mapper: __assign({}, RoutingRule, { required: true })
2512
- },
2513
- responses: {
2514
- 200: {
2515
- bodyMapper: RoutingRule
2516
- },
2517
- 201: {
2518
- bodyMapper: RoutingRule
2519
- },
2520
- 202: {
2521
- bodyMapper: RoutingRule
2522
- },
2523
- default: {
2524
- bodyMapper: ErrorResponse
2525
- }
2526
- },
2527
- serializer: serializer$1
2528
- };
2529
- var beginDeleteMethodOperationSpec$1 = {
2530
- httpMethod: "DELETE",
2531
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}",
2532
- urlParameters: [
2533
- subscriptionId,
2534
- resourceGroupName0,
2535
- frontDoorName,
2536
- routingRuleName
2537
- ],
2538
- queryParameters: [
2539
- apiVersion
2540
- ],
2541
- headerParameters: [
2542
- acceptLanguage
2543
- ],
2544
- responses: {
2545
- 202: {},
2546
- 204: {},
2547
- default: {
2548
- bodyMapper: ErrorResponse
2549
- }
2550
- },
2551
- serializer: serializer$1
2552
- };
2553
- var listByFrontDoorNextOperationSpec = {
2554
- httpMethod: "GET",
2555
- baseUrl: "https://management.azure.com",
2556
- path: "{nextLink}",
2557
- urlParameters: [
2558
- nextPageLink
2559
- ],
2560
- headerParameters: [
2561
- acceptLanguage
2562
- ],
2563
- responses: {
2564
- 200: {
2565
- bodyMapper: RoutingRuleListResult
2566
- },
2567
- default: {
2568
- bodyMapper: ErrorResponse
2569
- }
2570
- },
2571
- serializer: serializer$1
2572
- };
2573
-
2574
- /*
2575
- * Copyright (c) Microsoft Corporation. All rights reserved.
2576
- * Licensed under the MIT License. See License.txt in the project root for
2577
- * license information.
2578
- *
2579
- * Code generated by Microsoft (R) AutoRest Code Generator.
2580
- * Changes may cause incorrect behavior and will be lost if the code is
2581
- * regenerated.
2582
- */
2583
-
2584
- var Mappers$3 = /*#__PURE__*/Object.freeze({
2585
- discriminators: discriminators,
2586
- HealthProbeSettingsListResult: HealthProbeSettingsListResult,
2587
- HealthProbeSettingsModel: HealthProbeSettingsModel,
2588
- SubResource: SubResource,
2589
- BaseResource: BaseResource,
2590
- ErrorResponse: ErrorResponse,
2591
- RoutingRule: RoutingRule,
2592
- CacheConfiguration: CacheConfiguration,
2593
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
2594
- BackendPool: BackendPool,
2595
- Backend: Backend,
2596
- FrontendEndpoint: FrontendEndpoint,
2597
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
2598
- CustomHttpsConfiguration: CustomHttpsConfiguration,
2599
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
2600
- Resource: Resource,
2601
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
2602
- PolicySettings: PolicySettings,
2603
- CustomRules: CustomRules,
2604
- CustomRule: CustomRule,
2605
- MatchCondition1: MatchCondition1,
2606
- ManagedRuleSets: ManagedRuleSets,
2607
- ManagedRuleSet: ManagedRuleSet,
2608
- AzureManagedRuleSet: AzureManagedRuleSet,
2609
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup,
2610
- FrontDoor: FrontDoor
2611
- });
2612
-
2613
- /*
2614
- * Copyright (c) Microsoft Corporation. All rights reserved.
2615
- * Licensed under the MIT License. See License.txt in the project root for
2616
- * license information.
2617
- *
2618
- * Code generated by Microsoft (R) AutoRest Code Generator.
2619
- * Changes may cause incorrect behavior and will be lost if the code is
2620
- * regenerated.
2621
- */
2622
- /** Class representing a HealthProbeSettings. */
2623
- var HealthProbeSettings = /** @class */ (function () {
2624
- /**
2625
- * Create a HealthProbeSettings.
2626
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
2627
- */
2628
- function HealthProbeSettings(client) {
2629
- this.client = client;
2630
- }
2631
- HealthProbeSettings.prototype.listByFrontDoor = function (resourceGroupName, frontDoorName$$1, options, callback) {
2632
- return this.client.sendOperationRequest({
2633
- resourceGroupName: resourceGroupName,
2634
- frontDoorName: frontDoorName$$1,
2635
- options: options
2636
- }, listByFrontDoorOperationSpec$1, callback);
2637
- };
2638
- HealthProbeSettings.prototype.get = function (resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, options, callback) {
2639
- return this.client.sendOperationRequest({
2640
- resourceGroupName: resourceGroupName,
2641
- frontDoorName: frontDoorName$$1,
2642
- healthProbeSettingsName: healthProbeSettingsName$$1,
2643
- options: options
2644
- }, getOperationSpec$2, callback);
2645
- };
2646
- /**
2647
- * Creates a new HealthProbeSettings with the specified Rule name within the specified Front Door.
2648
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2649
- * @param frontDoorName Name of the Front Door which is globally unique.
2650
- * @param healthProbeSettingsName Name of the health probe settings which is unique within the
2651
- * Front Door.
2652
- * @param healthProbeSettingsParameters HealthProbeSettings properties needed to create a new Front
2653
- * Door.
2654
- * @param [options] The optional parameters
2655
- * @returns Promise<Models.HealthProbeSettingsCreateOrUpdateResponse>
2656
- */
2657
- HealthProbeSettings.prototype.createOrUpdate = function (resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, healthProbeSettingsParameters, options) {
2658
- return this.beginCreateOrUpdate(resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, healthProbeSettingsParameters, options)
2659
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2660
- };
2661
- /**
2662
- * Deletes an existing HealthProbeSettings with the specified parameters.
2663
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2664
- * @param frontDoorName Name of the Front Door which is globally unique.
2665
- * @param healthProbeSettingsName Name of the health probe settings which is unique within the
2666
- * Front Door.
2667
- * @param [options] The optional parameters
2668
- * @returns Promise<msRest.RestResponse>
2669
- */
2670
- HealthProbeSettings.prototype.deleteMethod = function (resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, options) {
2671
- return this.beginDeleteMethod(resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, options)
2672
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2673
- };
2674
- /**
2675
- * Creates a new HealthProbeSettings with the specified Rule name within the specified Front Door.
2676
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2677
- * @param frontDoorName Name of the Front Door which is globally unique.
2678
- * @param healthProbeSettingsName Name of the health probe settings which is unique within the
2679
- * Front Door.
2680
- * @param healthProbeSettingsParameters HealthProbeSettings properties needed to create a new Front
2681
- * Door.
2682
- * @param [options] The optional parameters
2683
- * @returns Promise<msRestAzure.LROPoller>
2684
- */
2685
- HealthProbeSettings.prototype.beginCreateOrUpdate = function (resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, healthProbeSettingsParameters, options) {
2686
- return this.client.sendLRORequest({
2687
- resourceGroupName: resourceGroupName,
2688
- frontDoorName: frontDoorName$$1,
2689
- healthProbeSettingsName: healthProbeSettingsName$$1,
2690
- healthProbeSettingsParameters: healthProbeSettingsParameters,
2691
- options: options
2692
- }, beginCreateOrUpdateOperationSpec$2, options);
2693
- };
2694
- /**
2695
- * Deletes an existing HealthProbeSettings with the specified parameters.
2696
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2697
- * @param frontDoorName Name of the Front Door which is globally unique.
2698
- * @param healthProbeSettingsName Name of the health probe settings which is unique within the
2699
- * Front Door.
2700
- * @param [options] The optional parameters
2701
- * @returns Promise<msRestAzure.LROPoller>
2702
- */
2703
- HealthProbeSettings.prototype.beginDeleteMethod = function (resourceGroupName, frontDoorName$$1, healthProbeSettingsName$$1, options) {
2704
- return this.client.sendLRORequest({
2705
- resourceGroupName: resourceGroupName,
2706
- frontDoorName: frontDoorName$$1,
2707
- healthProbeSettingsName: healthProbeSettingsName$$1,
2708
- options: options
2709
- }, beginDeleteMethodOperationSpec$2, options);
2710
- };
2711
- HealthProbeSettings.prototype.listByFrontDoorNext = function (nextPageLink$$1, options, callback) {
2712
- return this.client.sendOperationRequest({
2713
- nextPageLink: nextPageLink$$1,
2714
- options: options
2715
- }, listByFrontDoorNextOperationSpec$1, callback);
2716
- };
2717
- return HealthProbeSettings;
2718
- }());
2719
- // Operation Specifications
2720
- var serializer$2 = new msRest.Serializer(Mappers$3);
2721
- var listByFrontDoorOperationSpec$1 = {
2722
- httpMethod: "GET",
2723
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings",
2724
- urlParameters: [
2725
- subscriptionId,
2726
- resourceGroupName0,
2727
- frontDoorName
2728
- ],
2729
- queryParameters: [
2730
- apiVersion
2731
- ],
2732
- headerParameters: [
2733
- acceptLanguage
2734
- ],
2735
- responses: {
2736
- 200: {
2737
- bodyMapper: HealthProbeSettingsListResult
2738
- },
2739
- default: {
2740
- bodyMapper: ErrorResponse
2741
- }
2742
- },
2743
- serializer: serializer$2
2744
- };
2745
- var getOperationSpec$2 = {
2746
- httpMethod: "GET",
2747
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}",
2748
- urlParameters: [
2749
- subscriptionId,
2750
- resourceGroupName0,
2751
- frontDoorName,
2752
- healthProbeSettingsName
2753
- ],
2754
- queryParameters: [
2755
- apiVersion
2756
- ],
2757
- headerParameters: [
2758
- acceptLanguage
2759
- ],
2760
- responses: {
2761
- 200: {
2762
- bodyMapper: HealthProbeSettingsModel
2763
- },
2764
- default: {
2765
- bodyMapper: ErrorResponse
2766
- }
2767
- },
2768
- serializer: serializer$2
2769
- };
2770
- var beginCreateOrUpdateOperationSpec$2 = {
2771
- httpMethod: "PUT",
2772
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}",
2773
- urlParameters: [
2774
- subscriptionId,
2775
- resourceGroupName0,
2776
- frontDoorName,
2777
- healthProbeSettingsName
2778
- ],
2779
- queryParameters: [
2780
- apiVersion
2781
- ],
2782
- headerParameters: [
2783
- acceptLanguage
2784
- ],
2785
- requestBody: {
2786
- parameterPath: "healthProbeSettingsParameters",
2787
- mapper: __assign({}, HealthProbeSettingsModel, { required: true })
2788
- },
2789
- responses: {
2790
- 200: {
2791
- bodyMapper: HealthProbeSettingsModel
2792
- },
2793
- 201: {
2794
- bodyMapper: HealthProbeSettingsModel
2795
- },
2796
- 202: {
2797
- bodyMapper: HealthProbeSettingsModel
2798
- },
2799
- default: {
2800
- bodyMapper: ErrorResponse
2801
- }
2802
- },
2803
- serializer: serializer$2
2804
- };
2805
- var beginDeleteMethodOperationSpec$2 = {
2806
- httpMethod: "DELETE",
2807
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}",
2808
- urlParameters: [
2809
- subscriptionId,
2810
- resourceGroupName0,
2811
- frontDoorName,
2812
- healthProbeSettingsName
2813
- ],
2814
- queryParameters: [
2815
- apiVersion
2816
- ],
2817
- headerParameters: [
2818
- acceptLanguage
2819
- ],
2820
- responses: {
2821
- 202: {},
2822
- 204: {},
2823
- default: {
2824
- bodyMapper: ErrorResponse
2825
- }
2826
- },
2827
- serializer: serializer$2
2828
- };
2829
- var listByFrontDoorNextOperationSpec$1 = {
2830
- httpMethod: "GET",
2831
- baseUrl: "https://management.azure.com",
2832
- path: "{nextLink}",
2833
- urlParameters: [
2834
- nextPageLink
2835
- ],
2836
- headerParameters: [
2837
- acceptLanguage
2838
- ],
2839
- responses: {
2840
- 200: {
2841
- bodyMapper: HealthProbeSettingsListResult
2842
- },
2843
- default: {
2844
- bodyMapper: ErrorResponse
2845
- }
2846
- },
2847
- serializer: serializer$2
2848
- };
2849
-
2850
- /*
2851
- * Copyright (c) Microsoft Corporation. All rights reserved.
2852
- * Licensed under the MIT License. See License.txt in the project root for
2853
- * license information.
2854
- *
2855
- * Code generated by Microsoft (R) AutoRest Code Generator.
2856
- * Changes may cause incorrect behavior and will be lost if the code is
2857
- * regenerated.
2858
- */
2859
-
2860
- var Mappers$4 = /*#__PURE__*/Object.freeze({
2861
- discriminators: discriminators,
2862
- LoadBalancingSettingsListResult: LoadBalancingSettingsListResult,
2863
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
2864
- SubResource: SubResource,
2865
- BaseResource: BaseResource,
2866
- ErrorResponse: ErrorResponse,
2867
- RoutingRule: RoutingRule,
2868
- CacheConfiguration: CacheConfiguration,
2869
- HealthProbeSettingsModel: HealthProbeSettingsModel,
2870
- BackendPool: BackendPool,
2871
- Backend: Backend,
2872
- FrontendEndpoint: FrontendEndpoint,
2873
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
2874
- CustomHttpsConfiguration: CustomHttpsConfiguration,
2875
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
2876
- Resource: Resource,
2877
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
2878
- PolicySettings: PolicySettings,
2879
- CustomRules: CustomRules,
2880
- CustomRule: CustomRule,
2881
- MatchCondition1: MatchCondition1,
2882
- ManagedRuleSets: ManagedRuleSets,
2883
- ManagedRuleSet: ManagedRuleSet,
2884
- AzureManagedRuleSet: AzureManagedRuleSet,
2885
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup,
2886
- FrontDoor: FrontDoor
2887
- });
2888
-
2889
- /*
2890
- * Copyright (c) Microsoft Corporation. All rights reserved.
2891
- * Licensed under the MIT License. See License.txt in the project root for
2892
- * license information.
2893
- *
2894
- * Code generated by Microsoft (R) AutoRest Code Generator.
2895
- * Changes may cause incorrect behavior and will be lost if the code is
2896
- * regenerated.
2897
- */
2898
- /** Class representing a LoadBalancingSettings. */
2899
- var LoadBalancingSettings = /** @class */ (function () {
2900
- /**
2901
- * Create a LoadBalancingSettings.
2902
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
2903
- */
2904
- function LoadBalancingSettings(client) {
2905
- this.client = client;
2906
- }
2907
- LoadBalancingSettings.prototype.listByFrontDoor = function (resourceGroupName, frontDoorName$$1, options, callback) {
2908
- return this.client.sendOperationRequest({
2909
- resourceGroupName: resourceGroupName,
2910
- frontDoorName: frontDoorName$$1,
2911
- options: options
2912
- }, listByFrontDoorOperationSpec$2, callback);
2913
- };
2914
- LoadBalancingSettings.prototype.get = function (resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, options, callback) {
2915
- return this.client.sendOperationRequest({
2916
- resourceGroupName: resourceGroupName,
2917
- frontDoorName: frontDoorName$$1,
2918
- loadBalancingSettingsName: loadBalancingSettingsName$$1,
2919
- options: options
2920
- }, getOperationSpec$3, callback);
2921
- };
2922
- /**
2923
- * Creates a new LoadBalancingSettings with the specified Rule name within the specified Front
2924
- * Door.
2925
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2926
- * @param frontDoorName Name of the Front Door which is globally unique.
2927
- * @param loadBalancingSettingsName Name of the load balancing settings which is unique within the
2928
- * Front Door.
2929
- * @param loadBalancingSettingsParameters LoadBalancingSettings properties needed to create a new
2930
- * Front Door.
2931
- * @param [options] The optional parameters
2932
- * @returns Promise<Models.LoadBalancingSettingsCreateOrUpdateResponse>
2933
- */
2934
- LoadBalancingSettings.prototype.createOrUpdate = function (resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, loadBalancingSettingsParameters, options) {
2935
- return this.beginCreateOrUpdate(resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, loadBalancingSettingsParameters, options)
2936
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2937
- };
2938
- /**
2939
- * Deletes an existing LoadBalancingSettings with the specified parameters.
2940
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2941
- * @param frontDoorName Name of the Front Door which is globally unique.
2942
- * @param loadBalancingSettingsName Name of the load balancing settings which is unique within the
2943
- * Front Door.
2944
- * @param [options] The optional parameters
2945
- * @returns Promise<msRest.RestResponse>
2946
- */
2947
- LoadBalancingSettings.prototype.deleteMethod = function (resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, options) {
2948
- return this.beginDeleteMethod(resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, options)
2949
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
2950
- };
2951
- /**
2952
- * Creates a new LoadBalancingSettings with the specified Rule name within the specified Front
2953
- * Door.
2954
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2955
- * @param frontDoorName Name of the Front Door which is globally unique.
2956
- * @param loadBalancingSettingsName Name of the load balancing settings which is unique within the
2957
- * Front Door.
2958
- * @param loadBalancingSettingsParameters LoadBalancingSettings properties needed to create a new
2959
- * Front Door.
2960
- * @param [options] The optional parameters
2961
- * @returns Promise<msRestAzure.LROPoller>
2962
- */
2963
- LoadBalancingSettings.prototype.beginCreateOrUpdate = function (resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, loadBalancingSettingsParameters, options) {
2964
- return this.client.sendLRORequest({
2965
- resourceGroupName: resourceGroupName,
2966
- frontDoorName: frontDoorName$$1,
2967
- loadBalancingSettingsName: loadBalancingSettingsName$$1,
2968
- loadBalancingSettingsParameters: loadBalancingSettingsParameters,
2969
- options: options
2970
- }, beginCreateOrUpdateOperationSpec$3, options);
2971
- };
2972
- /**
2973
- * Deletes an existing LoadBalancingSettings with the specified parameters.
2974
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
2975
- * @param frontDoorName Name of the Front Door which is globally unique.
2976
- * @param loadBalancingSettingsName Name of the load balancing settings which is unique within the
2977
- * Front Door.
2978
- * @param [options] The optional parameters
2979
- * @returns Promise<msRestAzure.LROPoller>
2980
- */
2981
- LoadBalancingSettings.prototype.beginDeleteMethod = function (resourceGroupName, frontDoorName$$1, loadBalancingSettingsName$$1, options) {
2982
- return this.client.sendLRORequest({
2983
- resourceGroupName: resourceGroupName,
2984
- frontDoorName: frontDoorName$$1,
2985
- loadBalancingSettingsName: loadBalancingSettingsName$$1,
2986
- options: options
2987
- }, beginDeleteMethodOperationSpec$3, options);
2988
- };
2989
- LoadBalancingSettings.prototype.listByFrontDoorNext = function (nextPageLink$$1, options, callback) {
2990
- return this.client.sendOperationRequest({
2991
- nextPageLink: nextPageLink$$1,
2992
- options: options
2993
- }, listByFrontDoorNextOperationSpec$2, callback);
2994
- };
2995
- return LoadBalancingSettings;
2996
- }());
2997
- // Operation Specifications
2998
- var serializer$3 = new msRest.Serializer(Mappers$4);
2999
- var listByFrontDoorOperationSpec$2 = {
3000
- httpMethod: "GET",
3001
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings",
3002
- urlParameters: [
3003
- subscriptionId,
3004
- resourceGroupName0,
3005
- frontDoorName
3006
- ],
3007
- queryParameters: [
3008
- apiVersion
3009
- ],
3010
- headerParameters: [
3011
- acceptLanguage
3012
- ],
3013
- responses: {
3014
- 200: {
3015
- bodyMapper: LoadBalancingSettingsListResult
3016
- },
3017
- default: {
3018
- bodyMapper: ErrorResponse
3019
- }
3020
- },
3021
- serializer: serializer$3
3022
- };
3023
- var getOperationSpec$3 = {
3024
- httpMethod: "GET",
3025
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}",
3026
- urlParameters: [
3027
- subscriptionId,
3028
- resourceGroupName0,
3029
- frontDoorName,
3030
- loadBalancingSettingsName
3031
- ],
3032
- queryParameters: [
3033
- apiVersion
3034
- ],
3035
- headerParameters: [
3036
- acceptLanguage
3037
- ],
3038
- responses: {
3039
- 200: {
3040
- bodyMapper: LoadBalancingSettingsModel
3041
- },
3042
- default: {
3043
- bodyMapper: ErrorResponse
3044
- }
3045
- },
3046
- serializer: serializer$3
3047
- };
3048
- var beginCreateOrUpdateOperationSpec$3 = {
3049
- httpMethod: "PUT",
3050
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}",
3051
- urlParameters: [
3052
- subscriptionId,
3053
- resourceGroupName0,
3054
- frontDoorName,
3055
- loadBalancingSettingsName
3056
- ],
3057
- queryParameters: [
3058
- apiVersion
3059
- ],
3060
- headerParameters: [
3061
- acceptLanguage
3062
- ],
3063
- requestBody: {
3064
- parameterPath: "loadBalancingSettingsParameters",
3065
- mapper: __assign({}, LoadBalancingSettingsModel, { required: true })
3066
- },
3067
- responses: {
3068
- 200: {
3069
- bodyMapper: LoadBalancingSettingsModel
3070
- },
3071
- 201: {
3072
- bodyMapper: LoadBalancingSettingsModel
3073
- },
3074
- 202: {
3075
- bodyMapper: LoadBalancingSettingsModel
3076
- },
3077
- default: {
3078
- bodyMapper: ErrorResponse
3079
- }
3080
- },
3081
- serializer: serializer$3
3082
- };
3083
- var beginDeleteMethodOperationSpec$3 = {
3084
- httpMethod: "DELETE",
3085
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}",
3086
- urlParameters: [
3087
- subscriptionId,
3088
- resourceGroupName0,
3089
- frontDoorName,
3090
- loadBalancingSettingsName
3091
- ],
3092
- queryParameters: [
3093
- apiVersion
3094
- ],
3095
- headerParameters: [
3096
- acceptLanguage
3097
- ],
3098
- responses: {
3099
- 202: {},
3100
- 204: {},
3101
- default: {
3102
- bodyMapper: ErrorResponse
3103
- }
3104
- },
3105
- serializer: serializer$3
3106
- };
3107
- var listByFrontDoorNextOperationSpec$2 = {
3108
- httpMethod: "GET",
3109
- baseUrl: "https://management.azure.com",
3110
- path: "{nextLink}",
3111
- urlParameters: [
3112
- nextPageLink
3113
- ],
3114
- headerParameters: [
3115
- acceptLanguage
3116
- ],
3117
- responses: {
3118
- 200: {
3119
- bodyMapper: LoadBalancingSettingsListResult
3120
- },
3121
- default: {
3122
- bodyMapper: ErrorResponse
3123
- }
3124
- },
3125
- serializer: serializer$3
3126
- };
3127
-
3128
- /*
3129
- * Copyright (c) Microsoft Corporation. All rights reserved.
3130
- * Licensed under the MIT License. See License.txt in the project root for
3131
- * license information.
3132
- *
3133
- * Code generated by Microsoft (R) AutoRest Code Generator.
3134
- * Changes may cause incorrect behavior and will be lost if the code is
3135
- * regenerated.
3136
- */
3137
-
3138
- var Mappers$5 = /*#__PURE__*/Object.freeze({
3139
- discriminators: discriminators,
3140
- BackendPoolListResult: BackendPoolListResult,
3141
- BackendPool: BackendPool,
3142
- SubResource: SubResource,
3143
- BaseResource: BaseResource,
3144
- Backend: Backend,
3145
- ErrorResponse: ErrorResponse,
3146
- RoutingRule: RoutingRule,
3147
- CacheConfiguration: CacheConfiguration,
3148
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
3149
- HealthProbeSettingsModel: HealthProbeSettingsModel,
3150
- FrontendEndpoint: FrontendEndpoint,
3151
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
3152
- CustomHttpsConfiguration: CustomHttpsConfiguration,
3153
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
3154
- Resource: Resource,
3155
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
3156
- PolicySettings: PolicySettings,
3157
- CustomRules: CustomRules,
3158
- CustomRule: CustomRule,
3159
- MatchCondition1: MatchCondition1,
3160
- ManagedRuleSets: ManagedRuleSets,
3161
- ManagedRuleSet: ManagedRuleSet,
3162
- AzureManagedRuleSet: AzureManagedRuleSet,
3163
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup,
3164
- FrontDoor: FrontDoor
3165
- });
3166
-
3167
- /*
3168
- * Copyright (c) Microsoft Corporation. All rights reserved.
3169
- * Licensed under the MIT License. See License.txt in the project root for
3170
- * license information.
3171
- *
3172
- * Code generated by Microsoft (R) AutoRest Code Generator.
3173
- * Changes may cause incorrect behavior and will be lost if the code is
3174
- * regenerated.
3175
- */
3176
- /** Class representing a BackendPools. */
3177
- var BackendPools = /** @class */ (function () {
3178
- /**
3179
- * Create a BackendPools.
3180
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
3181
- */
3182
- function BackendPools(client) {
3183
- this.client = client;
3184
- }
3185
- BackendPools.prototype.listByFrontDoor = function (resourceGroupName, frontDoorName$$1, options, callback) {
3186
- return this.client.sendOperationRequest({
3187
- resourceGroupName: resourceGroupName,
3188
- frontDoorName: frontDoorName$$1,
3189
- options: options
3190
- }, listByFrontDoorOperationSpec$3, callback);
3191
- };
3192
- BackendPools.prototype.get = function (resourceGroupName, frontDoorName$$1, backendPoolName$$1, options, callback) {
3193
- return this.client.sendOperationRequest({
3194
- resourceGroupName: resourceGroupName,
3195
- frontDoorName: frontDoorName$$1,
3196
- backendPoolName: backendPoolName$$1,
3197
- options: options
3198
- }, getOperationSpec$4, callback);
3199
- };
3200
- /**
3201
- * Creates a new Backend Pool with the specified Pool name within the specified Front Door.
3202
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3203
- * @param frontDoorName Name of the Front Door which is globally unique.
3204
- * @param backendPoolName Name of the Backend Pool which is unique within the Front Door.
3205
- * @param backendPoolParameters Backend Pool properties needed to create a new Pool.
3206
- * @param [options] The optional parameters
3207
- * @returns Promise<Models.BackendPoolsCreateOrUpdateResponse>
3208
- */
3209
- BackendPools.prototype.createOrUpdate = function (resourceGroupName, frontDoorName$$1, backendPoolName$$1, backendPoolParameters, options) {
3210
- return this.beginCreateOrUpdate(resourceGroupName, frontDoorName$$1, backendPoolName$$1, backendPoolParameters, options)
3211
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3212
- };
3213
- /**
3214
- * Deletes an existing Backend Pool with the specified parameters.
3215
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3216
- * @param frontDoorName Name of the Front Door which is globally unique.
3217
- * @param backendPoolName Name of the Backend Pool which is unique within the Front Door.
3218
- * @param [options] The optional parameters
3219
- * @returns Promise<msRest.RestResponse>
3220
- */
3221
- BackendPools.prototype.deleteMethod = function (resourceGroupName, frontDoorName$$1, backendPoolName$$1, options) {
3222
- return this.beginDeleteMethod(resourceGroupName, frontDoorName$$1, backendPoolName$$1, options)
3223
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3224
- };
3225
- /**
3226
- * Creates a new Backend Pool with the specified Pool name within the specified Front Door.
3227
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3228
- * @param frontDoorName Name of the Front Door which is globally unique.
3229
- * @param backendPoolName Name of the Backend Pool which is unique within the Front Door.
3230
- * @param backendPoolParameters Backend Pool properties needed to create a new Pool.
3231
- * @param [options] The optional parameters
3232
- * @returns Promise<msRestAzure.LROPoller>
3233
- */
3234
- BackendPools.prototype.beginCreateOrUpdate = function (resourceGroupName, frontDoorName$$1, backendPoolName$$1, backendPoolParameters, options) {
3235
- return this.client.sendLRORequest({
3236
- resourceGroupName: resourceGroupName,
3237
- frontDoorName: frontDoorName$$1,
3238
- backendPoolName: backendPoolName$$1,
3239
- backendPoolParameters: backendPoolParameters,
3240
- options: options
3241
- }, beginCreateOrUpdateOperationSpec$4, options);
3242
- };
3243
- /**
3244
- * Deletes an existing Backend Pool with the specified parameters.
3245
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3246
- * @param frontDoorName Name of the Front Door which is globally unique.
3247
- * @param backendPoolName Name of the Backend Pool which is unique within the Front Door.
3248
- * @param [options] The optional parameters
3249
- * @returns Promise<msRestAzure.LROPoller>
3250
- */
3251
- BackendPools.prototype.beginDeleteMethod = function (resourceGroupName, frontDoorName$$1, backendPoolName$$1, options) {
3252
- return this.client.sendLRORequest({
3253
- resourceGroupName: resourceGroupName,
3254
- frontDoorName: frontDoorName$$1,
3255
- backendPoolName: backendPoolName$$1,
3256
- options: options
3257
- }, beginDeleteMethodOperationSpec$4, options);
3258
- };
3259
- BackendPools.prototype.listByFrontDoorNext = function (nextPageLink$$1, options, callback) {
3260
- return this.client.sendOperationRequest({
3261
- nextPageLink: nextPageLink$$1,
3262
- options: options
3263
- }, listByFrontDoorNextOperationSpec$3, callback);
3264
- };
3265
- return BackendPools;
3266
- }());
3267
- // Operation Specifications
3268
- var serializer$4 = new msRest.Serializer(Mappers$5);
3269
- var listByFrontDoorOperationSpec$3 = {
3270
- httpMethod: "GET",
3271
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools",
3272
- urlParameters: [
3273
- subscriptionId,
3274
- resourceGroupName0,
3275
- frontDoorName
3276
- ],
3277
- queryParameters: [
3278
- apiVersion
3279
- ],
3280
- headerParameters: [
3281
- acceptLanguage
3282
- ],
3283
- responses: {
3284
- 200: {
3285
- bodyMapper: BackendPoolListResult
3286
- },
3287
- default: {
3288
- bodyMapper: ErrorResponse
3289
- }
3290
- },
3291
- serializer: serializer$4
3292
- };
3293
- var getOperationSpec$4 = {
3294
- httpMethod: "GET",
3295
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}",
3296
- urlParameters: [
3297
- subscriptionId,
3298
- resourceGroupName0,
3299
- frontDoorName,
3300
- backendPoolName
3301
- ],
3302
- queryParameters: [
3303
- apiVersion
3304
- ],
3305
- headerParameters: [
3306
- acceptLanguage
3307
- ],
3308
- responses: {
3309
- 200: {
3310
- bodyMapper: BackendPool
3311
- },
3312
- default: {
3313
- bodyMapper: ErrorResponse
3314
- }
3315
- },
3316
- serializer: serializer$4
3317
- };
3318
- var beginCreateOrUpdateOperationSpec$4 = {
3319
- httpMethod: "PUT",
3320
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}",
3321
- urlParameters: [
3322
- subscriptionId,
3323
- resourceGroupName0,
3324
- frontDoorName,
3325
- backendPoolName
3326
- ],
3327
- queryParameters: [
3328
- apiVersion
3329
- ],
3330
- headerParameters: [
3331
- acceptLanguage
3332
- ],
3333
- requestBody: {
3334
- parameterPath: "backendPoolParameters",
3335
- mapper: __assign({}, BackendPool, { required: true })
3336
- },
3337
- responses: {
3338
- 200: {
3339
- bodyMapper: BackendPool
3340
- },
3341
- 201: {
3342
- bodyMapper: BackendPool
3343
- },
3344
- 202: {
3345
- bodyMapper: BackendPool
3346
- },
3347
- default: {
3348
- bodyMapper: ErrorResponse
3349
- }
3350
- },
3351
- serializer: serializer$4
3352
- };
3353
- var beginDeleteMethodOperationSpec$4 = {
3354
- httpMethod: "DELETE",
3355
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}",
3356
- urlParameters: [
3357
- subscriptionId,
3358
- resourceGroupName0,
3359
- frontDoorName,
3360
- backendPoolName
3361
- ],
3362
- queryParameters: [
3363
- apiVersion
3364
- ],
3365
- headerParameters: [
3366
- acceptLanguage
3367
- ],
3368
- responses: {
3369
- 202: {},
3370
- 204: {},
3371
- default: {
3372
- bodyMapper: ErrorResponse
3373
- }
3374
- },
3375
- serializer: serializer$4
3376
- };
3377
- var listByFrontDoorNextOperationSpec$3 = {
3378
- httpMethod: "GET",
3379
- baseUrl: "https://management.azure.com",
3380
- path: "{nextLink}",
3381
- urlParameters: [
3382
- nextPageLink
3383
- ],
3384
- headerParameters: [
3385
- acceptLanguage
3386
- ],
3387
- responses: {
3388
- 200: {
3389
- bodyMapper: BackendPoolListResult
3390
- },
3391
- default: {
3392
- bodyMapper: ErrorResponse
3393
- }
3394
- },
3395
- serializer: serializer$4
3396
- };
3397
-
3398
- /*
3399
- * Copyright (c) Microsoft Corporation. All rights reserved.
3400
- * Licensed under the MIT License. See License.txt in the project root for
3401
- * license information.
3402
- *
3403
- * Code generated by Microsoft (R) AutoRest Code Generator.
3404
- * Changes may cause incorrect behavior and will be lost if the code is
3405
- * regenerated.
3406
- */
3407
-
3408
- var Mappers$6 = /*#__PURE__*/Object.freeze({
3409
- discriminators: discriminators,
3410
- FrontendEndpointsListResult: FrontendEndpointsListResult,
3411
- FrontendEndpoint: FrontendEndpoint,
3412
- SubResource: SubResource,
3413
- BaseResource: BaseResource,
3414
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
3415
- CustomHttpsConfiguration: CustomHttpsConfiguration,
3416
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
3417
- ErrorResponse: ErrorResponse,
3418
- RoutingRule: RoutingRule,
3419
- CacheConfiguration: CacheConfiguration,
3420
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
3421
- HealthProbeSettingsModel: HealthProbeSettingsModel,
3422
- BackendPool: BackendPool,
3423
- Backend: Backend,
3424
- Resource: Resource,
3425
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
3426
- PolicySettings: PolicySettings,
3427
- CustomRules: CustomRules,
3428
- CustomRule: CustomRule,
3429
- MatchCondition1: MatchCondition1,
3430
- ManagedRuleSets: ManagedRuleSets,
3431
- ManagedRuleSet: ManagedRuleSet,
3432
- AzureManagedRuleSet: AzureManagedRuleSet,
3433
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup,
3434
- FrontDoor: FrontDoor
3435
- });
3436
-
3437
- /*
3438
- * Copyright (c) Microsoft Corporation. All rights reserved.
3439
- * Licensed under the MIT License. See License.txt in the project root for
3440
- * license information.
3441
- *
3442
- * Code generated by Microsoft (R) AutoRest Code Generator.
3443
- * Changes may cause incorrect behavior and will be lost if the code is
3444
- * regenerated.
3445
- */
3446
- /** Class representing a FrontendEndpoints. */
3447
- var FrontendEndpoints = /** @class */ (function () {
3448
- /**
3449
- * Create a FrontendEndpoints.
3450
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
3451
- */
3452
- function FrontendEndpoints(client) {
3453
- this.client = client;
3454
- }
3455
- FrontendEndpoints.prototype.listByFrontDoor = function (resourceGroupName, frontDoorName$$1, options, callback) {
3456
- return this.client.sendOperationRequest({
3457
- resourceGroupName: resourceGroupName,
3458
- frontDoorName: frontDoorName$$1,
3459
- options: options
3460
- }, listByFrontDoorOperationSpec$4, callback);
3461
- };
3462
- FrontendEndpoints.prototype.get = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options, callback) {
3463
- return this.client.sendOperationRequest({
3464
- resourceGroupName: resourceGroupName,
3465
- frontDoorName: frontDoorName$$1,
3466
- frontendEndpointName: frontendEndpointName$$1,
3467
- options: options
3468
- }, getOperationSpec$5, callback);
3469
- };
3470
- /**
3471
- * Creates a new frontend endpoint with the specified host name within the specified Front Door.
3472
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3473
- * @param frontDoorName Name of the Front Door which is globally unique.
3474
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3475
- * @param frontendEndpointParameters Frontend endpoint properties needed to create a new endpoint.
3476
- * @param [options] The optional parameters
3477
- * @returns Promise<Models.FrontendEndpointsCreateOrUpdateResponse>
3478
- */
3479
- FrontendEndpoints.prototype.createOrUpdate = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, frontendEndpointParameters, options) {
3480
- return this.beginCreateOrUpdate(resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, frontendEndpointParameters, options)
3481
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3482
- };
3483
- /**
3484
- * Deletes an existing frontend endpoint with the specified parameters.
3485
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3486
- * @param frontDoorName Name of the Front Door which is globally unique.
3487
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3488
- * @param [options] The optional parameters
3489
- * @returns Promise<msRest.RestResponse>
3490
- */
3491
- FrontendEndpoints.prototype.deleteMethod = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options) {
3492
- return this.beginDeleteMethod(resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options)
3493
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3494
- };
3495
- /**
3496
- * Enables a frontendEndpoint for HTTPS traffic
3497
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3498
- * @param frontDoorName Name of the Front Door which is globally unique.
3499
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3500
- * @param customHttpsConfiguration The configuration specifying how to enable HTTPS
3501
- * @param [options] The optional parameters
3502
- * @returns Promise<msRest.RestResponse>
3503
- */
3504
- FrontendEndpoints.prototype.enableHttps = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, customHttpsConfiguration, options) {
3505
- return this.beginEnableHttps(resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, customHttpsConfiguration, options)
3506
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3507
- };
3508
- /**
3509
- * Disables a frontendEndpoint for HTTPS traffic
3510
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3511
- * @param frontDoorName Name of the Front Door which is globally unique.
3512
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3513
- * @param [options] The optional parameters
3514
- * @returns Promise<msRest.RestResponse>
3515
- */
3516
- FrontendEndpoints.prototype.disableHttps = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options) {
3517
- return this.beginDisableHttps(resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options)
3518
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3519
- };
3520
- /**
3521
- * Creates a new frontend endpoint with the specified host name within the specified Front Door.
3522
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3523
- * @param frontDoorName Name of the Front Door which is globally unique.
3524
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3525
- * @param frontendEndpointParameters Frontend endpoint properties needed to create a new endpoint.
3526
- * @param [options] The optional parameters
3527
- * @returns Promise<msRestAzure.LROPoller>
3528
- */
3529
- FrontendEndpoints.prototype.beginCreateOrUpdate = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, frontendEndpointParameters, options) {
3530
- return this.client.sendLRORequest({
3531
- resourceGroupName: resourceGroupName,
3532
- frontDoorName: frontDoorName$$1,
3533
- frontendEndpointName: frontendEndpointName$$1,
3534
- frontendEndpointParameters: frontendEndpointParameters,
3535
- options: options
3536
- }, beginCreateOrUpdateOperationSpec$5, options);
3537
- };
3538
- /**
3539
- * Deletes an existing frontend endpoint with the specified parameters.
3540
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3541
- * @param frontDoorName Name of the Front Door which is globally unique.
3542
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3543
- * @param [options] The optional parameters
3544
- * @returns Promise<msRestAzure.LROPoller>
3545
- */
3546
- FrontendEndpoints.prototype.beginDeleteMethod = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options) {
3547
- return this.client.sendLRORequest({
3548
- resourceGroupName: resourceGroupName,
3549
- frontDoorName: frontDoorName$$1,
3550
- frontendEndpointName: frontendEndpointName$$1,
3551
- options: options
3552
- }, beginDeleteMethodOperationSpec$5, options);
3553
- };
3554
- /**
3555
- * Enables a frontendEndpoint for HTTPS traffic
3556
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3557
- * @param frontDoorName Name of the Front Door which is globally unique.
3558
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3559
- * @param customHttpsConfiguration The configuration specifying how to enable HTTPS
3560
- * @param [options] The optional parameters
3561
- * @returns Promise<msRestAzure.LROPoller>
3562
- */
3563
- FrontendEndpoints.prototype.beginEnableHttps = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, customHttpsConfiguration, options) {
3564
- return this.client.sendLRORequest({
3565
- resourceGroupName: resourceGroupName,
3566
- frontDoorName: frontDoorName$$1,
3567
- frontendEndpointName: frontendEndpointName$$1,
3568
- customHttpsConfiguration: customHttpsConfiguration,
3569
- options: options
3570
- }, beginEnableHttpsOperationSpec, options);
3571
- };
3572
- /**
3573
- * Disables a frontendEndpoint for HTTPS traffic
3574
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3575
- * @param frontDoorName Name of the Front Door which is globally unique.
3576
- * @param frontendEndpointName Name of the Frontend endpoint which is unique within the Front Door.
3577
- * @param [options] The optional parameters
3578
- * @returns Promise<msRestAzure.LROPoller>
3579
- */
3580
- FrontendEndpoints.prototype.beginDisableHttps = function (resourceGroupName, frontDoorName$$1, frontendEndpointName$$1, options) {
3581
- return this.client.sendLRORequest({
3582
- resourceGroupName: resourceGroupName,
3583
- frontDoorName: frontDoorName$$1,
3584
- frontendEndpointName: frontendEndpointName$$1,
3585
- options: options
3586
- }, beginDisableHttpsOperationSpec, options);
3587
- };
3588
- FrontendEndpoints.prototype.listByFrontDoorNext = function (nextPageLink$$1, options, callback) {
3589
- return this.client.sendOperationRequest({
3590
- nextPageLink: nextPageLink$$1,
3591
- options: options
3592
- }, listByFrontDoorNextOperationSpec$4, callback);
3593
- };
3594
- return FrontendEndpoints;
3595
- }());
3596
- // Operation Specifications
3597
- var serializer$5 = new msRest.Serializer(Mappers$6);
3598
- var listByFrontDoorOperationSpec$4 = {
3599
- httpMethod: "GET",
3600
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints",
3601
- urlParameters: [
3602
- subscriptionId,
3603
- resourceGroupName0,
3604
- frontDoorName
3605
- ],
3606
- queryParameters: [
3607
- apiVersion
3608
- ],
3609
- headerParameters: [
3610
- acceptLanguage
3611
- ],
3612
- responses: {
3613
- 200: {
3614
- bodyMapper: FrontendEndpointsListResult
3615
- },
3616
- default: {
3617
- bodyMapper: ErrorResponse
3618
- }
3619
- },
3620
- serializer: serializer$5
3621
- };
3622
- var getOperationSpec$5 = {
3623
- httpMethod: "GET",
3624
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}",
3625
- urlParameters: [
3626
- subscriptionId,
3627
- resourceGroupName0,
3628
- frontDoorName,
3629
- frontendEndpointName
3630
- ],
3631
- queryParameters: [
3632
- apiVersion
3633
- ],
3634
- headerParameters: [
3635
- acceptLanguage
3636
- ],
3637
- responses: {
3638
- 200: {
3639
- bodyMapper: FrontendEndpoint
3640
- },
3641
- default: {
3642
- bodyMapper: ErrorResponse
3643
- }
3644
- },
3645
- serializer: serializer$5
3646
- };
3647
- var beginCreateOrUpdateOperationSpec$5 = {
3648
- httpMethod: "PUT",
3649
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}",
3650
- urlParameters: [
3651
- subscriptionId,
3652
- resourceGroupName0,
3653
- frontDoorName,
3654
- frontendEndpointName
3655
- ],
3656
- queryParameters: [
3657
- apiVersion
3658
- ],
3659
- headerParameters: [
3660
- acceptLanguage
3661
- ],
3662
- requestBody: {
3663
- parameterPath: "frontendEndpointParameters",
3664
- mapper: __assign({}, FrontendEndpoint, { required: true })
3665
- },
3666
- responses: {
3667
- 200: {
3668
- bodyMapper: FrontendEndpoint
3669
- },
3670
- 201: {
3671
- bodyMapper: FrontendEndpoint
3672
- },
3673
- 202: {
3674
- bodyMapper: FrontendEndpoint
3675
- },
3676
- default: {
3677
- bodyMapper: ErrorResponse
3678
- }
3679
- },
3680
- serializer: serializer$5
3681
- };
3682
- var beginDeleteMethodOperationSpec$5 = {
3683
- httpMethod: "DELETE",
3684
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}",
3685
- urlParameters: [
3686
- subscriptionId,
3687
- resourceGroupName0,
3688
- frontDoorName,
3689
- frontendEndpointName
3690
- ],
3691
- queryParameters: [
3692
- apiVersion
3693
- ],
3694
- headerParameters: [
3695
- acceptLanguage
3696
- ],
3697
- responses: {
3698
- 202: {},
3699
- 204: {},
3700
- default: {
3701
- bodyMapper: ErrorResponse
3702
- }
3703
- },
3704
- serializer: serializer$5
3705
- };
3706
- var beginEnableHttpsOperationSpec = {
3707
- httpMethod: "POST",
3708
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps",
3709
- urlParameters: [
3710
- subscriptionId,
3711
- resourceGroupName0,
3712
- frontDoorName,
3713
- frontendEndpointName
3714
- ],
3715
- queryParameters: [
3716
- apiVersion
3717
- ],
3718
- headerParameters: [
3719
- acceptLanguage
3720
- ],
3721
- requestBody: {
3722
- parameterPath: "customHttpsConfiguration",
3723
- mapper: __assign({}, CustomHttpsConfiguration, { required: true })
3724
- },
3725
- responses: {
3726
- 200: {},
3727
- 202: {},
3728
- default: {
3729
- bodyMapper: ErrorResponse
3730
- }
3731
- },
3732
- serializer: serializer$5
3733
- };
3734
- var beginDisableHttpsOperationSpec = {
3735
- httpMethod: "POST",
3736
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps",
3737
- urlParameters: [
3738
- subscriptionId,
3739
- resourceGroupName0,
3740
- frontDoorName,
3741
- frontendEndpointName
3742
- ],
3743
- queryParameters: [
3744
- apiVersion
3745
- ],
3746
- headerParameters: [
3747
- acceptLanguage
3748
- ],
3749
- responses: {
3750
- 200: {},
3751
- 202: {},
3752
- default: {
3753
- bodyMapper: ErrorResponse
3754
- }
3755
- },
3756
- serializer: serializer$5
3757
- };
3758
- var listByFrontDoorNextOperationSpec$4 = {
3759
- httpMethod: "GET",
3760
- baseUrl: "https://management.azure.com",
3761
- path: "{nextLink}",
3762
- urlParameters: [
3763
- nextPageLink
3764
- ],
3765
- headerParameters: [
3766
- acceptLanguage
3767
- ],
3768
- responses: {
3769
- 200: {
3770
- bodyMapper: FrontendEndpointsListResult
3771
- },
3772
- default: {
3773
- bodyMapper: ErrorResponse
3774
- }
3775
- },
3776
- serializer: serializer$5
3777
- };
3778
-
3779
- /*
3780
- * Copyright (c) Microsoft Corporation. All rights reserved.
3781
- * Licensed under the MIT License. See License.txt in the project root for
3782
- * license information.
3783
- *
3784
- * Code generated by Microsoft (R) AutoRest Code Generator.
3785
- * Changes may cause incorrect behavior and will be lost if the code is
3786
- * regenerated.
3787
- */
3788
-
3789
- var Mappers$7 = /*#__PURE__*/Object.freeze({
3790
- discriminators: discriminators,
3791
- PurgeParameters: PurgeParameters,
3792
- ErrorResponse: ErrorResponse
3793
- });
3794
-
3795
- /*
3796
- * Copyright (c) Microsoft Corporation. All rights reserved.
3797
- * Licensed under the MIT License. See License.txt in the project root for
3798
- * license information.
3799
- *
3800
- * Code generated by Microsoft (R) AutoRest Code Generator.
3801
- * Changes may cause incorrect behavior and will be lost if the code is
3802
- * regenerated.
3803
- */
3804
- /** Class representing a Endpoints. */
3805
- var Endpoints = /** @class */ (function () {
3806
- /**
3807
- * Create a Endpoints.
3808
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
3809
- */
3810
- function Endpoints(client) {
3811
- this.client = client;
3812
- }
3813
- /**
3814
- * Removes a content from Front Door.
3815
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3816
- * @param frontDoorName Name of the Front Door which is globally unique.
3817
- * @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
3818
- * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g.
3819
- * '/pictures/*' which removes all folders and files in the directory.
3820
- * @param [options] The optional parameters
3821
- * @returns Promise<msRest.RestResponse>
3822
- */
3823
- Endpoints.prototype.purgeContent = function (resourceGroupName, frontDoorName$$1, contentFilePaths, options) {
3824
- return this.beginPurgeContent(resourceGroupName, frontDoorName$$1, contentFilePaths, options)
3825
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3826
- };
3827
- /**
3828
- * Removes a content from Front Door.
3829
- * @param resourceGroupName Name of the Resource group within the Azure subscription.
3830
- * @param frontDoorName Name of the Front Door which is globally unique.
3831
- * @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
3832
- * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g.
3833
- * '/pictures/*' which removes all folders and files in the directory.
3834
- * @param [options] The optional parameters
3835
- * @returns Promise<msRestAzure.LROPoller>
3836
- */
3837
- Endpoints.prototype.beginPurgeContent = function (resourceGroupName, frontDoorName$$1, contentFilePaths, options) {
3838
- return this.client.sendLRORequest({
3839
- resourceGroupName: resourceGroupName,
3840
- frontDoorName: frontDoorName$$1,
3841
- contentFilePaths: contentFilePaths,
3842
- options: options
3843
- }, beginPurgeContentOperationSpec, options);
3844
- };
3845
- return Endpoints;
3846
- }());
3847
- // Operation Specifications
3848
- var serializer$6 = new msRest.Serializer(Mappers$7);
3849
- var beginPurgeContentOperationSpec = {
3850
- httpMethod: "POST",
3851
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge",
3852
- urlParameters: [
3853
- subscriptionId,
3854
- resourceGroupName0,
3855
- frontDoorName
3856
- ],
3857
- queryParameters: [
3858
- apiVersion
3859
- ],
3860
- headerParameters: [
3861
- acceptLanguage
3862
- ],
3863
- requestBody: {
3864
- parameterPath: "contentFilePaths",
3865
- mapper: __assign({}, PurgeParameters, { required: true })
3866
- },
3867
- responses: {
3868
- 200: {},
3869
- 202: {},
3870
- default: {
3871
- bodyMapper: ErrorResponse
3872
- }
3873
- },
3874
- serializer: serializer$6
3875
- };
3876
-
3877
- /*
3878
- * Copyright (c) Microsoft Corporation. All rights reserved.
3879
- * Licensed under the MIT License. See License.txt in the project root for
3880
- * license information.
3881
- *
3882
- * Code generated by Microsoft (R) AutoRest Code Generator.
3883
- * Changes may cause incorrect behavior and will be lost if the code is
3884
- * regenerated.
3885
- */
3886
-
3887
- var Mappers$8 = /*#__PURE__*/Object.freeze({
3888
- discriminators: discriminators,
3889
- WebApplicationFirewallPolicyListResult: WebApplicationFirewallPolicyListResult,
3890
- WebApplicationFirewallPolicy1: WebApplicationFirewallPolicy1,
3891
- Resource: Resource,
3892
- BaseResource: BaseResource,
3893
- PolicySettings: PolicySettings,
3894
- CustomRules: CustomRules,
3895
- CustomRule: CustomRule,
3896
- MatchCondition1: MatchCondition1,
3897
- ManagedRuleSets: ManagedRuleSets,
3898
- ManagedRuleSet: ManagedRuleSet,
3899
- ErrorResponse: ErrorResponse,
3900
- CloudError: CloudError,
3901
- FrontDoor: FrontDoor,
3902
- RoutingRule: RoutingRule,
3903
- SubResource: SubResource,
3904
- CacheConfiguration: CacheConfiguration,
3905
- LoadBalancingSettingsModel: LoadBalancingSettingsModel,
3906
- HealthProbeSettingsModel: HealthProbeSettingsModel,
3907
- BackendPool: BackendPool,
3908
- Backend: Backend,
3909
- FrontendEndpoint: FrontendEndpoint,
3910
- FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink: FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink,
3911
- CustomHttpsConfiguration: CustomHttpsConfiguration,
3912
- KeyVaultCertificateSourceParametersVault: KeyVaultCertificateSourceParametersVault,
3913
- AzureManagedRuleSet: AzureManagedRuleSet,
3914
- AzureManagedOverrideRuleGroup: AzureManagedOverrideRuleGroup
3915
- });
3916
-
3917
- /*
3918
- * Copyright (c) Microsoft Corporation. All rights reserved.
3919
- * Licensed under the MIT License. See License.txt in the project root for
3920
- * license information.
3921
- *
3922
- * Code generated by Microsoft (R) AutoRest Code Generator.
3923
- * Changes may cause incorrect behavior and will be lost if the code is
3924
- * regenerated.
3925
- */
3926
- /** Class representing a Policies. */
3927
- var Policies = /** @class */ (function () {
3928
- /**
3929
- * Create a Policies.
3930
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
3931
- */
3932
- function Policies(client) {
3933
- this.client = client;
3934
- }
3935
- Policies.prototype.list = function (resourceGroupName, options, callback) {
3936
- return this.client.sendOperationRequest({
3937
- resourceGroupName: resourceGroupName,
3938
- options: options
3939
- }, listOperationSpec$1, callback);
3940
- };
3941
- Policies.prototype.get = function (resourceGroupName, policyName$$1, options, callback) {
3942
- return this.client.sendOperationRequest({
3943
- resourceGroupName: resourceGroupName,
3944
- policyName: policyName$$1,
3945
- options: options
3946
- }, getOperationSpec$6, callback);
3947
- };
3948
- Policies.prototype.createOrUpdate = function (resourceGroupName, policyName$$1, parameters, options, callback) {
3949
- return this.client.sendOperationRequest({
3950
- resourceGroupName: resourceGroupName,
3951
- policyName: policyName$$1,
3952
- parameters: parameters,
3953
- options: options
3954
- }, createOrUpdateOperationSpec, callback);
3955
- };
3956
- /**
3957
- * Deletes Policy
3958
- * @param resourceGroupName The name of the resource group.
3959
- * @param policyName The name of the resource group.
3960
- * @param [options] The optional parameters
3961
- * @returns Promise<msRest.RestResponse>
3962
- */
3963
- Policies.prototype.deleteMethod = function (resourceGroupName, policyName$$1, options) {
3964
- return this.beginDeleteMethod(resourceGroupName, policyName$$1, options)
3965
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
3966
- };
3967
- /**
3968
- * Deletes Policy
3969
- * @param resourceGroupName The name of the resource group.
3970
- * @param policyName The name of the resource group.
3971
- * @param [options] The optional parameters
3972
- * @returns Promise<msRestAzure.LROPoller>
3973
- */
3974
- Policies.prototype.beginDeleteMethod = function (resourceGroupName, policyName$$1, options) {
3975
- return this.client.sendLRORequest({
3976
- resourceGroupName: resourceGroupName,
3977
- policyName: policyName$$1,
3978
- options: options
3979
- }, beginDeleteMethodOperationSpec$6, options);
3980
- };
3981
- Policies.prototype.listNext = function (nextPageLink$$1, options, callback) {
3982
- return this.client.sendOperationRequest({
3983
- nextPageLink: nextPageLink$$1,
3984
- options: options
3985
- }, listNextOperationSpec$1, callback);
3986
- };
3987
- return Policies;
3988
- }());
3989
- // Operation Specifications
3990
- var serializer$7 = new msRest.Serializer(Mappers$8);
3991
- var listOperationSpec$1 = {
3992
- httpMethod: "GET",
3993
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies",
3994
- urlParameters: [
3995
- resourceGroupName1,
3996
- subscriptionId
3997
- ],
3998
- queryParameters: [
3999
- apiVersion
4000
- ],
4001
- headerParameters: [
4002
- acceptLanguage
4003
- ],
4004
- responses: {
4005
- 200: {
4006
- bodyMapper: WebApplicationFirewallPolicyListResult
4007
- },
4008
- default: {
4009
- bodyMapper: ErrorResponse
4010
- }
4011
- },
4012
- serializer: serializer$7
4013
- };
4014
- var getOperationSpec$6 = {
4015
- httpMethod: "GET",
4016
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
4017
- urlParameters: [
4018
- resourceGroupName1,
4019
- policyName,
4020
- subscriptionId
4021
- ],
4022
- queryParameters: [
4023
- apiVersion
4024
- ],
4025
- headerParameters: [
4026
- acceptLanguage
4027
- ],
4028
- responses: {
4029
- 200: {
4030
- bodyMapper: WebApplicationFirewallPolicy1
4031
- },
4032
- default: {
4033
- bodyMapper: ErrorResponse
4034
- }
4035
- },
4036
- serializer: serializer$7
4037
- };
4038
- var createOrUpdateOperationSpec = {
4039
- httpMethod: "PUT",
4040
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
4041
- urlParameters: [
4042
- resourceGroupName1,
4043
- policyName,
4044
- subscriptionId
4045
- ],
4046
- queryParameters: [
4047
- apiVersion
4048
- ],
4049
- headerParameters: [
4050
- acceptLanguage
4051
- ],
4052
- requestBody: {
4053
- parameterPath: "parameters",
4054
- mapper: __assign({}, WebApplicationFirewallPolicy1, { required: true })
4055
- },
4056
- responses: {
4057
- 200: {
4058
- bodyMapper: WebApplicationFirewallPolicy1
4059
- },
4060
- 201: {
4061
- bodyMapper: WebApplicationFirewallPolicy1
4062
- },
4063
- default: {
4064
- bodyMapper: ErrorResponse
4065
- }
4066
- },
4067
- serializer: serializer$7
4068
- };
4069
- var beginDeleteMethodOperationSpec$6 = {
4070
- httpMethod: "DELETE",
4071
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
4072
- urlParameters: [
4073
- resourceGroupName1,
4074
- policyName,
4075
- subscriptionId
4076
- ],
4077
- queryParameters: [
4078
- apiVersion
4079
- ],
4080
- headerParameters: [
4081
- acceptLanguage
4082
- ],
4083
- responses: {
4084
- 200: {},
4085
- 202: {},
4086
- 204: {},
4087
- default: {
4088
- bodyMapper: CloudError
4089
- }
4090
- },
4091
- serializer: serializer$7
4092
- };
4093
- var listNextOperationSpec$1 = {
4094
- httpMethod: "GET",
4095
- baseUrl: "https://management.azure.com",
4096
- path: "{nextLink}",
4097
- urlParameters: [
4098
- nextPageLink
4099
- ],
4100
- headerParameters: [
4101
- acceptLanguage
4102
- ],
4103
- responses: {
4104
- 200: {
4105
- bodyMapper: WebApplicationFirewallPolicyListResult
4106
- },
4107
- default: {
4108
- bodyMapper: ErrorResponse
4109
- }
4110
- },
4111
- serializer: serializer$7
4112
- };
4113
-
4114
- /*
4115
- * Copyright (c) Microsoft Corporation. All rights reserved.
4116
- * Licensed under the MIT License. See License.txt in the project root for
4117
- * license information.
4118
- *
4119
- * Code generated by Microsoft (R) AutoRest Code Generator.
4120
- * Changes may cause incorrect behavior and will be lost if the code is
4121
- * regenerated.
4122
- */
4123
-
4124
- /*
4125
- * Copyright (c) Microsoft Corporation. All rights reserved.
4126
- * Licensed under the MIT License. See License.txt in the project root for
4127
- * license information.
4128
- *
4129
- * Code generated by Microsoft (R) AutoRest Code Generator.
4130
- * Changes may cause incorrect behavior and will be lost if the code is
4131
- * regenerated.
4132
- */
4133
- var packageName = "@azure/arm-frontdoor";
4134
- var packageVersion = "0.1.0";
4135
- var FrontDoorManagementClientContext = /** @class */ (function (_super) {
4136
- __extends(FrontDoorManagementClientContext, _super);
4137
- /**
4138
- * Initializes a new instance of the FrontDoorManagementClient class.
4139
- * @param credentials Credentials needed for the client to connect to Azure.
4140
- * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure
4141
- * subscription. The subscription ID forms part of the URI for every service call.
4142
- * @param [options] The parameter options
4143
- */
4144
- function FrontDoorManagementClientContext(credentials, subscriptionId, options) {
4145
- var _this = this;
4146
- if (credentials == undefined) {
4147
- throw new Error('\'credentials\' cannot be null.');
4148
- }
4149
- if (subscriptionId == undefined) {
4150
- throw new Error('\'subscriptionId\' cannot be null.');
4151
- }
4152
- if (!options) {
4153
- options = {};
4154
- }
4155
- if (!options.userAgent) {
4156
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4157
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
4158
- }
4159
- _this = _super.call(this, credentials, options) || this;
4160
- _this.acceptLanguage = 'en-US';
4161
- _this.longRunningOperationRetryTimeout = 30;
4162
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
4163
- _this.requestContentType = "application/json; charset=utf-8";
4164
- _this.credentials = credentials;
4165
- _this.subscriptionId = subscriptionId;
4166
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
4167
- _this.acceptLanguage = options.acceptLanguage;
4168
- }
4169
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
4170
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
4171
- }
4172
- return _this;
4173
- }
4174
- return FrontDoorManagementClientContext;
4175
- }(msRestAzure.AzureServiceClient));
4176
-
4177
- /*
4178
- * Copyright (c) Microsoft Corporation. All rights reserved.
4179
- * Licensed under the MIT License. See License.txt in the project root for
4180
- * license information.
4181
- *
4182
- * Code generated by Microsoft (R) AutoRest Code Generator.
4183
- * Changes may cause incorrect behavior and will be lost if the code is
4184
- * regenerated.
4185
- */
4186
- var FrontDoorManagementClient = /** @class */ (function (_super) {
4187
- __extends(FrontDoorManagementClient, _super);
4188
- /**
4189
- * Initializes a new instance of the FrontDoorManagementClient class.
4190
- * @param credentials Credentials needed for the client to connect to Azure.
4191
- * @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure
4192
- * subscription. The subscription ID forms part of the URI for every service call.
4193
- * @param [options] The parameter options
4194
- */
4195
- function FrontDoorManagementClient(credentials, subscriptionId$$1, options) {
4196
- var _this = _super.call(this, credentials, subscriptionId$$1, options) || this;
4197
- _this.frontDoors = new FrontDoors(_this);
4198
- _this.routingRules = new RoutingRules(_this);
4199
- _this.healthProbeSettings = new HealthProbeSettings(_this);
4200
- _this.loadBalancingSettings = new LoadBalancingSettings(_this);
4201
- _this.backendPools = new BackendPools(_this);
4202
- _this.frontendEndpoints = new FrontendEndpoints(_this);
4203
- _this.endpoints = new Endpoints(_this);
4204
- _this.policies = new Policies(_this);
4205
- return _this;
4206
- }
4207
- FrontDoorManagementClient.prototype.checkFrontDoorNameAvailability = function (checkFrontDoorNameAvailabilityInput, options, callback) {
4208
- return this.sendOperationRequest({
4209
- checkFrontDoorNameAvailabilityInput: checkFrontDoorNameAvailabilityInput,
4210
- options: options
4211
- }, checkFrontDoorNameAvailabilityOperationSpec, callback);
4212
- };
4213
- FrontDoorManagementClient.prototype.checkFrontDoorNameAvailabilityWithSubscription = function (checkFrontDoorNameAvailabilityInput, options, callback) {
4214
- return this.sendOperationRequest({
4215
- checkFrontDoorNameAvailabilityInput: checkFrontDoorNameAvailabilityInput,
4216
- options: options
4217
- }, checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec, callback);
4218
- };
4219
- return FrontDoorManagementClient;
4220
- }(FrontDoorManagementClientContext));
4221
- // Operation Specifications
4222
- var serializer$8 = new msRest.Serializer(Mappers);
4223
- var checkFrontDoorNameAvailabilityOperationSpec = {
4224
- httpMethod: "POST",
4225
- path: "providers/Microsoft.Network/checkFrontDoorNameAvailability",
4226
- queryParameters: [
4227
- apiVersion
4228
- ],
4229
- headerParameters: [
4230
- acceptLanguage
4231
- ],
4232
- requestBody: {
4233
- parameterPath: "checkFrontDoorNameAvailabilityInput",
4234
- mapper: __assign({}, CheckNameAvailabilityInput, { required: true })
4235
- },
4236
- responses: {
4237
- 200: {
4238
- bodyMapper: CheckNameAvailabilityOutput
4239
- },
4240
- default: {
4241
- bodyMapper: ErrorResponse
4242
- }
4243
- },
4244
- serializer: serializer$8
4245
- };
4246
- var checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec = {
4247
- httpMethod: "POST",
4248
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability",
4249
- urlParameters: [
4250
- subscriptionId
4251
- ],
4252
- queryParameters: [
4253
- apiVersion
4254
- ],
4255
- headerParameters: [
4256
- acceptLanguage
4257
- ],
4258
- requestBody: {
4259
- parameterPath: "checkFrontDoorNameAvailabilityInput",
4260
- mapper: __assign({}, CheckNameAvailabilityInput, { required: true })
4261
- },
4262
- responses: {
4263
- 200: {
4264
- bodyMapper: CheckNameAvailabilityOutput
4265
- },
4266
- default: {
4267
- bodyMapper: ErrorResponse
4268
- }
4269
- },
4270
- serializer: serializer$8
4271
- };
4272
-
4273
- exports.FrontDoorManagementClient = FrontDoorManagementClient;
4274
- exports.FrontDoorManagementClientContext = FrontDoorManagementClientContext;
4275
- exports.FrontDoorManagementModels = index;
4276
- exports.FrontDoorManagementMappers = Mappers;
4277
- exports.FrontDoors = FrontDoors;
4278
- exports.RoutingRules = RoutingRules;
4279
- exports.HealthProbeSettings = HealthProbeSettings;
4280
- exports.LoadBalancingSettings = LoadBalancingSettings;
4281
- exports.BackendPools = BackendPools;
4282
- exports.FrontendEndpoints = FrontendEndpoints;
4283
- exports.Endpoints = Endpoints;
4284
- exports.Policies = Policies;
4285
-
4286
- Object.defineProperty(exports, '__esModule', { value: true });
4287
-
4288
- })));
4289
- //# sourceMappingURL=arm-frontdoor.js.map