@azure/arm-frontdoor 4.1.1 → 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 (293) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +6728 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/frontDoorManagementClient.d.ts +29 -0
  9. package/dist-esm/src/frontDoorManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/frontDoorManagementClient.js +62 -0
  11. package/dist-esm/src/frontDoorManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +2380 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +399 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +93 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +1812 -1645
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +36 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +316 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/endpoints.d.ts +34 -0
  33. package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
  34. package/dist-esm/src/operations/endpoints.js +106 -0
  35. package/dist-esm/src/operations/endpoints.js.map +1 -0
  36. package/dist-esm/src/operations/experiments.d.ts +99 -0
  37. package/dist-esm/src/operations/experiments.d.ts.map +1 -0
  38. package/dist-esm/src/operations/experiments.js +417 -0
  39. package/dist-esm/src/operations/experiments.js.map +1 -0
  40. package/dist-esm/src/operations/frontDoorNameAvailability.d.ts +19 -0
  41. package/dist-esm/src/operations/frontDoorNameAvailability.d.ts.map +1 -0
  42. package/dist-esm/src/operations/frontDoorNameAvailability.js +49 -0
  43. package/dist-esm/src/operations/frontDoorNameAvailability.js.map +1 -0
  44. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts +19 -0
  45. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -0
  46. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js +49 -0
  47. package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -0
  48. package/dist-esm/src/operations/frontDoors.d.ts +100 -0
  49. package/dist-esm/src/operations/frontDoors.d.ts.map +1 -0
  50. package/dist-esm/src/operations/frontDoors.js +453 -0
  51. package/dist-esm/src/operations/frontDoors.js.map +1 -0
  52. package/dist-esm/src/operations/frontendEndpoints.d.ts +81 -0
  53. package/dist-esm/src/operations/frontendEndpoints.d.ts.map +1 -0
  54. package/dist-esm/src/operations/frontendEndpoints.js +331 -0
  55. package/dist-esm/src/operations/frontendEndpoints.js.map +1 -0
  56. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/dist-esm/src/operations/index.js +20 -0
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/managedRuleSets.d.ts +32 -0
  61. package/dist-esm/src/operations/managedRuleSets.d.ts.map +1 -0
  62. package/dist-esm/src/operations/managedRuleSets.js +124 -0
  63. package/dist-esm/src/operations/managedRuleSets.js.map +1 -0
  64. package/dist-esm/src/operations/networkExperimentProfiles.d.ts +107 -0
  65. package/dist-esm/src/operations/networkExperimentProfiles.d.ts.map +1 -0
  66. package/dist-esm/src/operations/networkExperimentProfiles.js +500 -0
  67. package/dist-esm/src/operations/networkExperimentProfiles.js.map +1 -0
  68. package/dist-esm/src/operations/policies.d.ts +73 -0
  69. package/dist-esm/src/operations/policies.d.ts.map +1 -0
  70. package/dist-esm/src/operations/policies.js +309 -0
  71. package/dist-esm/src/operations/policies.js.map +1 -0
  72. package/dist-esm/src/operations/preconfiguredEndpoints.d.ts +38 -0
  73. package/dist-esm/src/operations/preconfiguredEndpoints.d.ts.map +1 -0
  74. package/dist-esm/src/operations/preconfiguredEndpoints.js +137 -0
  75. package/dist-esm/src/operations/preconfiguredEndpoints.js.map +1 -0
  76. package/dist-esm/src/operations/reports.d.ts +34 -0
  77. package/dist-esm/src/operations/reports.d.ts.map +1 -0
  78. package/dist-esm/src/operations/reports.js +120 -0
  79. package/dist-esm/src/operations/reports.js.map +1 -0
  80. package/dist-esm/src/operations/rulesEngines.d.ts +83 -0
  81. package/dist-esm/src/operations/rulesEngines.d.ts.map +1 -0
  82. package/dist-esm/src/operations/rulesEngines.js +341 -0
  83. package/dist-esm/src/operations/rulesEngines.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/endpoints.d.ts +26 -0
  85. package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/experiments.d.ts +74 -0
  89. package/dist-esm/src/operationsInterfaces/experiments.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/experiments.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/experiments.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.d.ts +11 -0
  93. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.d.ts +11 -0
  97. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/frontDoors.d.ts +64 -0
  101. package/dist-esm/src/operationsInterfaces/frontDoors.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/frontDoors.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/frontDoors.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/frontendEndpoints.d.ts +56 -0
  105. package/dist-esm/src/operationsInterfaces/frontendEndpoints.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/frontendEndpoints.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/frontendEndpoints.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/index.d.ts +13 -0
  109. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/index.js +20 -0
  111. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/managedRuleSets.d.ts +11 -0
  113. package/dist-esm/src/operationsInterfaces/managedRuleSets.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/managedRuleSets.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/managedRuleSets.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.d.ts +71 -0
  117. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/policies.d.ts +50 -0
  121. package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/policies.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.d.ts +13 -0
  125. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/reports.d.ts +26 -0
  129. package/dist-esm/src/operationsInterfaces/reports.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/reports.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/reports.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/rulesEngines.d.ts +58 -0
  133. package/dist-esm/src/operationsInterfaces/rulesEngines.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/rulesEngines.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/rulesEngines.js.map +1 -0
  136. package/dist-esm/test/sampleTest.d.ts +2 -0
  137. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  138. package/dist-esm/test/sampleTest.js +40 -0
  139. package/dist-esm/test/sampleTest.js.map +1 -0
  140. package/package.json +65 -32
  141. package/review/arm-frontdoor.api.md +1910 -0
  142. package/rollup.config.js +181 -30
  143. package/src/frontDoorManagementClient.ts +107 -164
  144. package/src/index.ts +12 -0
  145. package/src/lroImpl.ts +34 -0
  146. package/src/models/index.ts +2184 -2625
  147. package/src/models/mappers.ts +1796 -1578
  148. package/src/models/parameters.ts +228 -115
  149. package/src/operations/endpoints.ts +110 -59
  150. package/src/operations/experiments.ts +439 -238
  151. package/src/operations/frontDoorNameAvailability.ts +68 -0
  152. package/src/operations/frontDoorNameAvailabilityWithSubscription.ts +69 -0
  153. package/src/operations/frontDoors.ts +423 -310
  154. package/src/operations/frontendEndpoints.ts +334 -188
  155. package/src/operations/index.ts +5 -5
  156. package/src/operations/managedRuleSets.ts +92 -76
  157. package/src/operations/networkExperimentProfiles.ts +488 -297
  158. package/src/operations/policies.ts +305 -195
  159. package/src/operations/preconfiguredEndpoints.ts +125 -84
  160. package/src/operations/reports.ts +86 -118
  161. package/src/operations/rulesEngines.ts +343 -193
  162. package/src/operationsInterfaces/endpoints.ts +47 -0
  163. package/src/operationsInterfaces/experiments.ts +147 -0
  164. package/src/operationsInterfaces/frontDoorNameAvailability.ts +26 -0
  165. package/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.ts +26 -0
  166. package/src/operationsInterfaces/frontDoors.ts +122 -0
  167. package/src/operationsInterfaces/frontendEndpoints.ts +104 -0
  168. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -6
  169. package/src/operationsInterfaces/managedRuleSets.ts +25 -0
  170. package/src/operationsInterfaces/networkExperimentProfiles.ts +139 -0
  171. package/src/operationsInterfaces/policies.ts +97 -0
  172. package/src/operationsInterfaces/preconfiguredEndpoints.ts +29 -0
  173. package/src/operationsInterfaces/reports.ts +57 -0
  174. package/src/operationsInterfaces/rulesEngines.ts +111 -0
  175. package/tsconfig.json +3 -3
  176. package/types/arm-frontdoor.d.ts +3127 -0
  177. package/types/tsdoc-metadata.json +11 -0
  178. package/dist/arm-frontdoor.js +0 -5978
  179. package/dist/arm-frontdoor.js.map +0 -1
  180. package/dist/arm-frontdoor.min.js +0 -1
  181. package/dist/arm-frontdoor.min.js.map +0 -1
  182. package/esm/frontDoorManagementClient.d.ts +0 -70
  183. package/esm/frontDoorManagementClient.d.ts.map +0 -1
  184. package/esm/frontDoorManagementClient.js +0 -112
  185. package/esm/frontDoorManagementClient.js.map +0 -1
  186. package/esm/frontDoorManagementClientContext.d.ts +0 -22
  187. package/esm/frontDoorManagementClientContext.d.ts.map +0 -1
  188. package/esm/frontDoorManagementClientContext.js +0 -61
  189. package/esm/frontDoorManagementClientContext.js.map +0 -1
  190. package/esm/models/endpointsMappers.d.ts +0 -2
  191. package/esm/models/endpointsMappers.d.ts.map +0 -1
  192. package/esm/models/endpointsMappers.js +0 -9
  193. package/esm/models/endpointsMappers.js.map +0 -1
  194. package/esm/models/experimentsMappers.d.ts +0 -2
  195. package/esm/models/experimentsMappers.d.ts.map +0 -1
  196. package/esm/models/experimentsMappers.js +0 -9
  197. package/esm/models/experimentsMappers.js.map +0 -1
  198. package/esm/models/frontDoorsMappers.d.ts +0 -2
  199. package/esm/models/frontDoorsMappers.d.ts.map +0 -1
  200. package/esm/models/frontDoorsMappers.js +0 -9
  201. package/esm/models/frontDoorsMappers.js.map +0 -1
  202. package/esm/models/frontendEndpointsMappers.d.ts +0 -2
  203. package/esm/models/frontendEndpointsMappers.d.ts.map +0 -1
  204. package/esm/models/frontendEndpointsMappers.js +0 -9
  205. package/esm/models/frontendEndpointsMappers.js.map +0 -1
  206. package/esm/models/index.d.ts +0 -2901
  207. package/esm/models/index.d.ts.map +0 -1
  208. package/esm/models/index.js +0 -8
  209. package/esm/models/index.js.map +0 -1
  210. package/esm/models/managedRuleSetsMappers.d.ts +0 -2
  211. package/esm/models/managedRuleSetsMappers.d.ts.map +0 -1
  212. package/esm/models/managedRuleSetsMappers.js +0 -9
  213. package/esm/models/managedRuleSetsMappers.js.map +0 -1
  214. package/esm/models/mappers.d.ts +0 -84
  215. package/esm/models/mappers.d.ts.map +0 -1
  216. package/esm/models/mappers.js.map +0 -1
  217. package/esm/models/networkExperimentProfilesMappers.d.ts +0 -2
  218. package/esm/models/networkExperimentProfilesMappers.d.ts.map +0 -1
  219. package/esm/models/networkExperimentProfilesMappers.js +0 -9
  220. package/esm/models/networkExperimentProfilesMappers.js.map +0 -1
  221. package/esm/models/parameters.d.ts +0 -22
  222. package/esm/models/parameters.d.ts.map +0 -1
  223. package/esm/models/parameters.js +0 -252
  224. package/esm/models/parameters.js.map +0 -1
  225. package/esm/models/policiesMappers.d.ts +0 -2
  226. package/esm/models/policiesMappers.d.ts.map +0 -1
  227. package/esm/models/policiesMappers.js +0 -9
  228. package/esm/models/policiesMappers.js.map +0 -1
  229. package/esm/models/preconfiguredEndpointsMappers.d.ts +0 -2
  230. package/esm/models/preconfiguredEndpointsMappers.d.ts.map +0 -1
  231. package/esm/models/preconfiguredEndpointsMappers.js +0 -9
  232. package/esm/models/preconfiguredEndpointsMappers.js.map +0 -1
  233. package/esm/models/reportsMappers.d.ts +0 -2
  234. package/esm/models/reportsMappers.d.ts.map +0 -1
  235. package/esm/models/reportsMappers.js +0 -9
  236. package/esm/models/reportsMappers.js.map +0 -1
  237. package/esm/models/rulesEnginesMappers.d.ts +0 -2
  238. package/esm/models/rulesEnginesMappers.d.ts.map +0 -1
  239. package/esm/models/rulesEnginesMappers.js +0 -9
  240. package/esm/models/rulesEnginesMappers.js.map +0 -1
  241. package/esm/operations/endpoints.d.ts +0 -36
  242. package/esm/operations/endpoints.d.ts.map +0 -1
  243. package/esm/operations/endpoints.js +0 -87
  244. package/esm/operations/endpoints.js.map +0 -1
  245. package/esm/operations/experiments.d.ts +0 -137
  246. package/esm/operations/experiments.d.ts.map +0 -1
  247. package/esm/operations/experiments.js +0 -302
  248. package/esm/operations/experiments.js.map +0 -1
  249. package/esm/operations/frontDoors.d.ts +0 -165
  250. package/esm/operations/frontDoors.d.ts.map +0 -1
  251. package/esm/operations/frontDoors.js +0 -315
  252. package/esm/operations/frontDoors.js.map +0 -1
  253. package/esm/operations/frontendEndpoints.d.ts +0 -115
  254. package/esm/operations/frontendEndpoints.d.ts.map +0 -1
  255. package/esm/operations/frontendEndpoints.js +0 -229
  256. package/esm/operations/frontendEndpoints.js.map +0 -1
  257. package/esm/operations/index.d.ts.map +0 -1
  258. package/esm/operations/index.js.map +0 -1
  259. package/esm/operations/managedRuleSets.d.ts +0 -46
  260. package/esm/operations/managedRuleSets.d.ts.map +0 -1
  261. package/esm/operations/managedRuleSets.js +0 -80
  262. package/esm/operations/managedRuleSets.js.map +0 -1
  263. package/esm/operations/networkExperimentProfiles.d.ts +0 -158
  264. package/esm/operations/networkExperimentProfiles.d.ts.map +0 -1
  265. package/esm/operations/networkExperimentProfiles.js +0 -339
  266. package/esm/operations/networkExperimentProfiles.js.map +0 -1
  267. package/esm/operations/policies.d.ts +0 -105
  268. package/esm/operations/policies.d.ts.map +0 -1
  269. package/esm/operations/policies.js +0 -225
  270. package/esm/operations/policies.js.map +0 -1
  271. package/esm/operations/preconfiguredEndpoints.d.ts +0 -52
  272. package/esm/operations/preconfiguredEndpoints.d.ts.map +0 -1
  273. package/esm/operations/preconfiguredEndpoints.js +0 -84
  274. package/esm/operations/preconfiguredEndpoints.js.map +0 -1
  275. package/esm/operations/reports.d.ts +0 -85
  276. package/esm/operations/reports.d.ts.map +0 -1
  277. package/esm/operations/reports.js +0 -107
  278. package/esm/operations/reports.js.map +0 -1
  279. package/esm/operations/rulesEngines.d.ts +0 -119
  280. package/esm/operations/rulesEngines.d.ts.map +0 -1
  281. package/esm/operations/rulesEngines.js +0 -240
  282. package/esm/operations/rulesEngines.js.map +0 -1
  283. package/src/frontDoorManagementClientContext.ts +0 -67
  284. package/src/models/endpointsMappers.ts +0 -13
  285. package/src/models/experimentsMappers.ts +0 -59
  286. package/src/models/frontDoorsMappers.ts +0 -60
  287. package/src/models/frontendEndpointsMappers.ts +0 -58
  288. package/src/models/managedRuleSetsMappers.ts +0 -58
  289. package/src/models/networkExperimentProfilesMappers.ts +0 -59
  290. package/src/models/policiesMappers.ts +0 -59
  291. package/src/models/preconfiguredEndpointsMappers.ts +0 -58
  292. package/src/models/reportsMappers.ts +0 -57
  293. package/src/models/rulesEnginesMappers.ts +0 -58
@@ -1,254 +1,367 @@
1
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.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
9
+ import {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ Profile as ProfileMapper,
16
+ ProfileUpdateModel as ProfileUpdateModelMapper,
17
+ Experiment as ExperimentMapper,
18
+ ExperimentUpdateModel as ExperimentUpdateModelMapper,
19
+ CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper,
20
+ FrontDoor as FrontDoorMapper,
21
+ ValidateCustomDomainInput as ValidateCustomDomainInputMapper,
22
+ CustomHttpsConfiguration as CustomHttpsConfigurationMapper,
23
+ PurgeParameters as PurgeParametersMapper,
24
+ RulesEngine as RulesEngineMapper,
25
+ WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper
26
+ } from "../models/mappers";
12
27
 
13
- export const acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
28
+ export const accept: OperationParameter = {
29
+ parameterPath: "accept",
15
30
  mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
31
+ defaultValue: "application/json",
32
+ isConstant: true,
33
+ serializedName: "Accept",
18
34
  type: {
19
35
  name: "String"
20
36
  }
21
37
  }
22
38
  };
23
- export const aggregationInterval: msRest.OperationQueryParameter = {
24
- parameterPath: "aggregationInterval",
39
+
40
+ export const $host: OperationURLParameter = {
41
+ parameterPath: "$host",
25
42
  mapper: {
43
+ serializedName: "$host",
26
44
  required: true,
27
- serializedName: "aggregationInterval",
28
45
  type: {
29
46
  name: "String"
30
47
  }
31
- }
48
+ },
49
+ skipEncoding: true
32
50
  };
33
- export const apiVersion0: msRest.OperationQueryParameter = {
34
- parameterPath: "apiVersion",
51
+
52
+ export const subscriptionId: OperationURLParameter = {
53
+ parameterPath: "subscriptionId",
35
54
  mapper: {
55
+ serializedName: "subscriptionId",
36
56
  required: true,
37
- isConstant: true,
38
- serializedName: "api-version",
39
- defaultValue: '2019-11-01',
40
57
  type: {
41
58
  name: "String"
42
59
  }
43
60
  }
44
61
  };
45
- export const apiVersion1: msRest.OperationQueryParameter = {
62
+
63
+ export const apiVersion: OperationQueryParameter = {
46
64
  parameterPath: "apiVersion",
47
65
  mapper: {
48
- required: true,
66
+ defaultValue: "2019-11-01",
49
67
  isConstant: true,
50
68
  serializedName: "api-version",
51
- defaultValue: '2020-01-01',
52
69
  type: {
53
70
  name: "String"
54
71
  }
55
72
  }
56
73
  };
57
- export const apiVersion2: msRest.OperationQueryParameter = {
58
- parameterPath: "apiVersion",
74
+
75
+ export const resourceGroupName: OperationURLParameter = {
76
+ parameterPath: "resourceGroupName",
59
77
  mapper: {
78
+ constraints: {
79
+ Pattern: new RegExp("^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"),
80
+ MaxLength: 80,
81
+ MinLength: 1
82
+ },
83
+ serializedName: "resourceGroupName",
60
84
  required: true,
61
- isConstant: true,
62
- serializedName: "api-version",
63
- defaultValue: '2019-10-01',
64
85
  type: {
65
86
  name: "String"
66
87
  }
67
88
  }
68
89
  };
69
- export const country: msRest.OperationQueryParameter = {
70
- parameterPath: [
71
- "options",
72
- "country"
73
- ],
90
+
91
+ export const profileName: OperationURLParameter = {
92
+ parameterPath: "profileName",
74
93
  mapper: {
75
- serializedName: "country",
94
+ constraints: {
95
+ Pattern: new RegExp("^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")
96
+ },
97
+ serializedName: "profileName",
98
+ required: true,
76
99
  type: {
77
100
  name: "String"
78
101
  }
79
102
  }
80
103
  };
81
- export const endDateTimeUTC0: msRest.OperationQueryParameter = {
82
- parameterPath: [
83
- "options",
84
- "endDateTimeUTC"
85
- ],
104
+
105
+ export const contentType: OperationParameter = {
106
+ parameterPath: ["options", "contentType"],
86
107
  mapper: {
87
- serializedName: "endDateTimeUTC",
108
+ defaultValue: "application/json",
109
+ isConstant: true,
110
+ serializedName: "Content-Type",
88
111
  type: {
89
112
  name: "String"
90
113
  }
91
114
  }
92
115
  };
93
- export const endDateTimeUTC1: msRest.OperationQueryParameter = {
94
- parameterPath: "endDateTimeUTC",
116
+
117
+ export const parameters: OperationParameter = {
118
+ parameterPath: "parameters",
119
+ mapper: ProfileMapper
120
+ };
121
+
122
+ export const parameters1: OperationParameter = {
123
+ parameterPath: "parameters",
124
+ mapper: ProfileUpdateModelMapper
125
+ };
126
+
127
+ export const nextLink: OperationURLParameter = {
128
+ parameterPath: "nextLink",
95
129
  mapper: {
130
+ serializedName: "nextLink",
96
131
  required: true,
132
+ type: {
133
+ name: "String"
134
+ }
135
+ },
136
+ skipEncoding: true
137
+ };
138
+
139
+ export const experimentName: OperationURLParameter = {
140
+ parameterPath: "experimentName",
141
+ mapper: {
142
+ constraints: {
143
+ Pattern: new RegExp("^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")
144
+ },
145
+ serializedName: "experimentName",
146
+ required: true,
147
+ type: {
148
+ name: "String"
149
+ }
150
+ }
151
+ };
152
+
153
+ export const parameters2: OperationParameter = {
154
+ parameterPath: "parameters",
155
+ mapper: ExperimentMapper
156
+ };
157
+
158
+ export const parameters3: OperationParameter = {
159
+ parameterPath: "parameters",
160
+ mapper: ExperimentUpdateModelMapper
161
+ };
162
+
163
+ export const endDateTimeUTC: OperationQueryParameter = {
164
+ parameterPath: ["options", "endDateTimeUTC"],
165
+ mapper: {
97
166
  serializedName: "endDateTimeUTC",
98
167
  type: {
99
- name: "DateTime"
168
+ name: "String"
100
169
  }
101
170
  }
102
171
  };
103
- export const endpoint: msRest.OperationQueryParameter = {
104
- parameterPath: [
105
- "options",
106
- "endpoint"
107
- ],
172
+
173
+ export const country: OperationQueryParameter = {
174
+ parameterPath: ["options", "country"],
108
175
  mapper: {
109
- serializedName: "endpoint",
176
+ serializedName: "country",
110
177
  type: {
111
178
  name: "String"
112
179
  }
113
180
  }
114
181
  };
115
- export const experimentName: msRest.OperationURLParameter = {
116
- parameterPath: "experimentName",
182
+
183
+ export const aggregationInterval: OperationQueryParameter = {
184
+ parameterPath: "aggregationInterval",
117
185
  mapper: {
186
+ serializedName: "aggregationInterval",
118
187
  required: true,
119
- serializedName: "experimentName",
120
- constraints: {
121
- Pattern: /^[a-zA-Z0-9_\-\(\)\.]*[^\.]$/
122
- },
123
188
  type: {
124
189
  name: "String"
125
190
  }
126
191
  }
127
192
  };
128
- export const frontDoorName: msRest.OperationURLParameter = {
129
- parameterPath: "frontDoorName",
193
+
194
+ export const startDateTimeUTC: OperationQueryParameter = {
195
+ parameterPath: "startDateTimeUTC",
130
196
  mapper: {
197
+ serializedName: "startDateTimeUTC",
131
198
  required: true,
132
- serializedName: "frontDoorName",
133
- constraints: {
134
- MaxLength: 64,
135
- MinLength: 5,
136
- Pattern: /^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$/
137
- },
138
199
  type: {
139
- name: "String"
200
+ name: "DateTime"
140
201
  }
141
202
  }
142
203
  };
143
- export const frontendEndpointName: msRest.OperationURLParameter = {
144
- parameterPath: "frontendEndpointName",
204
+
205
+ export const endDateTimeUTC1: OperationQueryParameter = {
206
+ parameterPath: "endDateTimeUTC",
145
207
  mapper: {
208
+ serializedName: "endDateTimeUTC",
146
209
  required: true,
147
- serializedName: "frontendEndpointName",
148
- constraints: {
149
- MaxLength: 255,
150
- MinLength: 1,
151
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
152
- },
153
210
  type: {
154
- name: "String"
211
+ name: "DateTime"
155
212
  }
156
213
  }
157
214
  };
158
- export const nextPageLink: msRest.OperationURLParameter = {
159
- parameterPath: "nextPageLink",
215
+
216
+ export const aggregationInterval1: OperationQueryParameter = {
217
+ parameterPath: "aggregationInterval",
160
218
  mapper: {
219
+ serializedName: "aggregationInterval",
161
220
  required: true,
162
- serializedName: "nextLink",
163
221
  type: {
164
222
  name: "String"
165
223
  }
166
- },
167
- skipEncoding: true
224
+ }
168
225
  };
169
- export const policyName: msRest.OperationURLParameter = {
170
- parameterPath: "policyName",
226
+
227
+ export const timeseriesType: OperationQueryParameter = {
228
+ parameterPath: "timeseriesType",
171
229
  mapper: {
230
+ serializedName: "timeseriesType",
172
231
  required: true,
173
- serializedName: "policyName",
174
- constraints: {
175
- MaxLength: 128
176
- },
177
232
  type: {
178
233
  name: "String"
179
234
  }
180
235
  }
181
236
  };
182
- export const profileName: msRest.OperationURLParameter = {
183
- parameterPath: "profileName",
237
+
238
+ export const endpoint: OperationQueryParameter = {
239
+ parameterPath: ["options", "endpoint"],
184
240
  mapper: {
185
- required: true,
186
- serializedName: "profileName",
187
- constraints: {
188
- Pattern: /^[a-zA-Z0-9_\-\(\)\.]*[^\.]$/
189
- },
241
+ serializedName: "endpoint",
190
242
  type: {
191
243
  name: "String"
192
244
  }
193
245
  }
194
246
  };
195
- export const resourceGroupName: msRest.OperationURLParameter = {
196
- parameterPath: "resourceGroupName",
247
+
248
+ export const checkFrontDoorNameAvailabilityInput: OperationParameter = {
249
+ parameterPath: "checkFrontDoorNameAvailabilityInput",
250
+ mapper: CheckNameAvailabilityInputMapper
251
+ };
252
+
253
+ export const apiVersion1: OperationQueryParameter = {
254
+ parameterPath: "apiVersion",
255
+ mapper: {
256
+ defaultValue: "2020-05-01",
257
+ isConstant: true,
258
+ serializedName: "api-version",
259
+ type: {
260
+ name: "String"
261
+ }
262
+ }
263
+ };
264
+
265
+ export const frontDoorName: OperationURLParameter = {
266
+ parameterPath: "frontDoorName",
197
267
  mapper: {
198
- required: true,
199
- serializedName: "resourceGroupName",
200
268
  constraints: {
201
- MaxLength: 80,
202
- MinLength: 1,
203
- Pattern: /^[a-zA-Z0-9_\-\(\)\.]*[^\.]$/
269
+ Pattern: new RegExp("^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"),
270
+ MaxLength: 64,
271
+ MinLength: 5
204
272
  },
273
+ serializedName: "frontDoorName",
274
+ required: true,
205
275
  type: {
206
276
  name: "String"
207
277
  }
208
278
  }
209
279
  };
210
- export const rulesEngineName: msRest.OperationURLParameter = {
211
- parameterPath: "rulesEngineName",
280
+
281
+ export const frontDoorParameters: OperationParameter = {
282
+ parameterPath: "frontDoorParameters",
283
+ mapper: FrontDoorMapper
284
+ };
285
+
286
+ export const customDomainProperties: OperationParameter = {
287
+ parameterPath: "customDomainProperties",
288
+ mapper: ValidateCustomDomainInputMapper
289
+ };
290
+
291
+ export const frontendEndpointName: OperationURLParameter = {
292
+ parameterPath: "frontendEndpointName",
212
293
  mapper: {
213
- required: true,
214
- serializedName: "rulesEngineName",
215
294
  constraints: {
216
- MaxLength: 90,
217
- MinLength: 1,
218
- Pattern: /^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$/
295
+ Pattern: new RegExp("^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"),
296
+ MaxLength: 255,
297
+ MinLength: 1
219
298
  },
299
+ serializedName: "frontendEndpointName",
300
+ required: true,
220
301
  type: {
221
302
  name: "String"
222
303
  }
223
304
  }
224
305
  };
225
- export const startDateTimeUTC: msRest.OperationQueryParameter = {
226
- parameterPath: "startDateTimeUTC",
306
+
307
+ export const customHttpsConfiguration: OperationParameter = {
308
+ parameterPath: "customHttpsConfiguration",
309
+ mapper: CustomHttpsConfigurationMapper
310
+ };
311
+
312
+ export const contentFilePaths: OperationParameter = {
313
+ parameterPath: "contentFilePaths",
314
+ mapper: PurgeParametersMapper
315
+ };
316
+
317
+ export const rulesEngineName: OperationURLParameter = {
318
+ parameterPath: "rulesEngineName",
227
319
  mapper: {
320
+ constraints: {
321
+ Pattern: new RegExp("^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"),
322
+ MaxLength: 90,
323
+ MinLength: 1
324
+ },
325
+ serializedName: "rulesEngineName",
228
326
  required: true,
229
- serializedName: "startDateTimeUTC",
230
327
  type: {
231
- name: "DateTime"
328
+ name: "String"
232
329
  }
233
330
  }
234
331
  };
235
- export const subscriptionId: msRest.OperationURLParameter = {
236
- parameterPath: "subscriptionId",
332
+
333
+ export const rulesEngineParameters: OperationParameter = {
334
+ parameterPath: "rulesEngineParameters",
335
+ mapper: RulesEngineMapper
336
+ };
337
+
338
+ export const apiVersion2: OperationQueryParameter = {
339
+ parameterPath: "apiVersion",
237
340
  mapper: {
238
- required: true,
239
- serializedName: "subscriptionId",
341
+ defaultValue: "2020-11-01",
342
+ isConstant: true,
343
+ serializedName: "api-version",
240
344
  type: {
241
345
  name: "String"
242
346
  }
243
347
  }
244
348
  };
245
- export const timeseriesType: msRest.OperationQueryParameter = {
246
- parameterPath: "timeseriesType",
349
+
350
+ export const policyName: OperationURLParameter = {
351
+ parameterPath: "policyName",
247
352
  mapper: {
353
+ constraints: {
354
+ MaxLength: 128
355
+ },
356
+ serializedName: "policyName",
248
357
  required: true,
249
- serializedName: "timeseriesType",
250
358
  type: {
251
359
  name: "String"
252
360
  }
253
361
  }
254
362
  };
363
+
364
+ export const parameters4: OperationParameter = {
365
+ parameterPath: "parameters",
366
+ mapper: WebApplicationFirewallPolicyMapper
367
+ };
@@ -1,29 +1,32 @@
1
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.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/endpointsMappers";
9
+ import { Endpoints } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
15
12
  import * as Parameters from "../models/parameters";
16
- import { FrontDoorManagementClientContext } from "../frontDoorManagementClientContext";
13
+ import { FrontDoorManagementClient } from "../frontDoorManagementClient";
14
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
15
+ import { LroImpl } from "../lroImpl";
16
+ import {
17
+ PurgeParameters,
18
+ EndpointsPurgeContentOptionalParams
19
+ } from "../models";
17
20
 
18
- /** Class representing a Endpoints. */
19
- export class Endpoints {
20
- private readonly client: FrontDoorManagementClientContext;
21
+ /** Class containing Endpoints operations. */
22
+ export class EndpointsImpl implements Endpoints {
23
+ private readonly client: FrontDoorManagementClient;
21
24
 
22
25
  /**
23
- * Create a Endpoints.
24
- * @param {FrontDoorManagementClientContext} client Reference to the service client.
26
+ * Initialize a new instance of the class Endpoints class.
27
+ * @param client Reference to the service client
25
28
  */
26
- constructor(client: FrontDoorManagementClientContext) {
29
+ constructor(client: FrontDoorManagementClient) {
27
30
  this.client = client;
28
31
  }
29
32
 
@@ -32,14 +35,65 @@ export class Endpoints {
32
35
  * @param resourceGroupName Name of the Resource group within the Azure subscription.
33
36
  * @param frontDoorName Name of the Front Door which is globally unique.
34
37
  * @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
35
- * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g.
36
- * '/pictures/*' which removes all folders and files in the directory.
37
- * @param [options] The optional parameters
38
- * @returns Promise<msRest.RestResponse>
38
+ * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*'
39
+ * which removes all folders and files in the directory.
40
+ * @param options The options parameters.
39
41
  */
40
- purgeContent(resourceGroupName: string, frontDoorName: string, contentFilePaths: Models.PurgeParameters, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
41
- return this.beginPurgeContent(resourceGroupName,frontDoorName,contentFilePaths,options)
42
- .then(lroPoller => lroPoller.pollUntilFinished());
42
+ async beginPurgeContent(
43
+ resourceGroupName: string,
44
+ frontDoorName: string,
45
+ contentFilePaths: PurgeParameters,
46
+ options?: EndpointsPurgeContentOptionalParams
47
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
48
+ const directSendOperation = async (
49
+ args: coreClient.OperationArguments,
50
+ spec: coreClient.OperationSpec
51
+ ): Promise<void> => {
52
+ return this.client.sendOperationRequest(args, spec);
53
+ };
54
+ const sendOperation = async (
55
+ args: coreClient.OperationArguments,
56
+ spec: coreClient.OperationSpec
57
+ ) => {
58
+ let currentRawResponse:
59
+ | coreClient.FullOperationResponse
60
+ | undefined = undefined;
61
+ const providedCallback = args.options?.onResponse;
62
+ const callback: coreClient.RawResponseCallback = (
63
+ rawResponse: coreClient.FullOperationResponse,
64
+ flatResponse: unknown
65
+ ) => {
66
+ currentRawResponse = rawResponse;
67
+ providedCallback?.(rawResponse, flatResponse);
68
+ };
69
+ const updatedArgs = {
70
+ ...args,
71
+ options: {
72
+ ...args.options,
73
+ onResponse: callback
74
+ }
75
+ };
76
+ const flatResponse = await directSendOperation(updatedArgs, spec);
77
+ return {
78
+ flatResponse,
79
+ rawResponse: {
80
+ statusCode: currentRawResponse!.status,
81
+ body: currentRawResponse!.parsedBody,
82
+ headers: currentRawResponse!.headers.toJSON()
83
+ }
84
+ };
85
+ };
86
+
87
+ const lro = new LroImpl(
88
+ sendOperation,
89
+ { resourceGroupName, frontDoorName, contentFilePaths, options },
90
+ purgeContentOperationSpec
91
+ );
92
+ return new LroEngine(lro, {
93
+ resumeFrom: options?.resumeFrom,
94
+ intervalInMs: options?.updateIntervalInMs,
95
+ lroResourceLocationConfig: "azure-async-operation"
96
+ });
43
97
  }
44
98
 
45
99
  /**
@@ -47,53 +101,50 @@ export class Endpoints {
47
101
  * @param resourceGroupName Name of the Resource group within the Azure subscription.
48
102
  * @param frontDoorName Name of the Front Door which is globally unique.
49
103
  * @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
50
- * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g.
51
- * '/pictures/*' which removes all folders and files in the directory.
52
- * @param [options] The optional parameters
53
- * @returns Promise<msRestAzure.LROPoller>
104
+ * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*'
105
+ * which removes all folders and files in the directory.
106
+ * @param options The options parameters.
54
107
  */
55
- beginPurgeContent(resourceGroupName: string, frontDoorName: string, contentFilePaths: Models.PurgeParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
56
- return this.client.sendLRORequest(
57
- {
58
- resourceGroupName,
59
- frontDoorName,
60
- contentFilePaths,
61
- options
62
- },
63
- beginPurgeContentOperationSpec,
64
- options);
108
+ async beginPurgeContentAndWait(
109
+ resourceGroupName: string,
110
+ frontDoorName: string,
111
+ contentFilePaths: PurgeParameters,
112
+ options?: EndpointsPurgeContentOptionalParams
113
+ ): Promise<void> {
114
+ const poller = await this.beginPurgeContent(
115
+ resourceGroupName,
116
+ frontDoorName,
117
+ contentFilePaths,
118
+ options
119
+ );
120
+ return poller.pollUntilDone();
65
121
  }
66
122
  }
67
-
68
123
  // Operation Specifications
69
- const serializer = new msRest.Serializer(Mappers);
70
- const beginPurgeContentOperationSpec: msRest.OperationSpec = {
124
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
125
+
126
+ const purgeContentOperationSpec: coreClient.OperationSpec = {
127
+ path:
128
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge",
71
129
  httpMethod: "POST",
72
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge",
73
- urlParameters: [
74
- Parameters.subscriptionId,
75
- Parameters.resourceGroupName,
76
- Parameters.frontDoorName
77
- ],
78
- queryParameters: [
79
- Parameters.apiVersion1
80
- ],
81
- headerParameters: [
82
- Parameters.acceptLanguage
83
- ],
84
- requestBody: {
85
- parameterPath: "contentFilePaths",
86
- mapper: {
87
- ...Mappers.PurgeParameters,
88
- required: true
89
- }
90
- },
91
130
  responses: {
92
131
  200: {},
132
+ 201: {},
93
133
  202: {},
134
+ 204: {},
94
135
  default: {
95
136
  bodyMapper: Mappers.ErrorResponse
96
137
  }
97
138
  },
139
+ requestBody: Parameters.contentFilePaths,
140
+ queryParameters: [Parameters.apiVersion1],
141
+ urlParameters: [
142
+ Parameters.$host,
143
+ Parameters.subscriptionId,
144
+ Parameters.resourceGroupName,
145
+ Parameters.frontDoorName
146
+ ],
147
+ headerParameters: [Parameters.accept, Parameters.contentType],
148
+ mediaType: "json",
98
149
  serializer
99
150
  };