@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
@@ -0,0 +1,160 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { Reports } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { FrontDoorManagementClient } from "../frontDoorManagementClient";
14
+ import {
15
+ LatencyScorecardAggregationInterval,
16
+ ReportsGetLatencyScorecardsOptionalParams,
17
+ ReportsGetLatencyScorecardsResponse,
18
+ TimeseriesAggregationInterval,
19
+ TimeseriesType,
20
+ ReportsGetTimeseriesOptionalParams,
21
+ ReportsGetTimeseriesResponse
22
+ } from "../models";
23
+
24
+ /** Class containing Reports operations. */
25
+ export class ReportsImpl implements Reports {
26
+ private readonly client: FrontDoorManagementClient;
27
+
28
+ /**
29
+ * Initialize a new instance of the class Reports class.
30
+ * @param client Reference to the service client
31
+ */
32
+ constructor(client: FrontDoorManagementClient) {
33
+ this.client = client;
34
+ }
35
+
36
+ /**
37
+ * Gets a Latency Scorecard for a given Experiment
38
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
39
+ * @param profileName The Profile identifier associated with the Tenant and Partner
40
+ * @param experimentName The Experiment identifier associated with the Experiment
41
+ * @param aggregationInterval The aggregation interval of the Latency Scorecard
42
+ * @param options The options parameters.
43
+ */
44
+ getLatencyScorecards(
45
+ resourceGroupName: string,
46
+ profileName: string,
47
+ experimentName: string,
48
+ aggregationInterval: LatencyScorecardAggregationInterval,
49
+ options?: ReportsGetLatencyScorecardsOptionalParams
50
+ ): Promise<ReportsGetLatencyScorecardsResponse> {
51
+ return this.client.sendOperationRequest(
52
+ {
53
+ resourceGroupName,
54
+ profileName,
55
+ experimentName,
56
+ aggregationInterval,
57
+ options
58
+ },
59
+ getLatencyScorecardsOperationSpec
60
+ );
61
+ }
62
+
63
+ /**
64
+ * Gets a Timeseries for a given Experiment
65
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
66
+ * @param profileName The Profile identifier associated with the Tenant and Partner
67
+ * @param experimentName The Experiment identifier associated with the Experiment
68
+ * @param startDateTimeUTC The start DateTime of the Timeseries in UTC
69
+ * @param endDateTimeUTC The end DateTime of the Timeseries in UTC
70
+ * @param aggregationInterval The aggregation interval of the Timeseries
71
+ * @param timeseriesType The type of Timeseries
72
+ * @param options The options parameters.
73
+ */
74
+ getTimeseries(
75
+ resourceGroupName: string,
76
+ profileName: string,
77
+ experimentName: string,
78
+ startDateTimeUTC: Date,
79
+ endDateTimeUTC: Date,
80
+ aggregationInterval: TimeseriesAggregationInterval,
81
+ timeseriesType: TimeseriesType,
82
+ options?: ReportsGetTimeseriesOptionalParams
83
+ ): Promise<ReportsGetTimeseriesResponse> {
84
+ return this.client.sendOperationRequest(
85
+ {
86
+ resourceGroupName,
87
+ profileName,
88
+ experimentName,
89
+ startDateTimeUTC,
90
+ endDateTimeUTC,
91
+ aggregationInterval,
92
+ timeseriesType,
93
+ options
94
+ },
95
+ getTimeseriesOperationSpec
96
+ );
97
+ }
98
+ }
99
+ // Operation Specifications
100
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
101
+
102
+ const getLatencyScorecardsOperationSpec: coreClient.OperationSpec = {
103
+ path:
104
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard",
105
+ httpMethod: "GET",
106
+ responses: {
107
+ 200: {
108
+ bodyMapper: Mappers.LatencyScorecard
109
+ },
110
+ default: {
111
+ bodyMapper: Mappers.ErrorResponse
112
+ }
113
+ },
114
+ queryParameters: [
115
+ Parameters.apiVersion,
116
+ Parameters.endDateTimeUTC,
117
+ Parameters.country,
118
+ Parameters.aggregationInterval
119
+ ],
120
+ urlParameters: [
121
+ Parameters.$host,
122
+ Parameters.subscriptionId,
123
+ Parameters.resourceGroupName,
124
+ Parameters.profileName,
125
+ Parameters.experimentName
126
+ ],
127
+ headerParameters: [Parameters.accept],
128
+ serializer
129
+ };
130
+ const getTimeseriesOperationSpec: coreClient.OperationSpec = {
131
+ path:
132
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries",
133
+ httpMethod: "GET",
134
+ responses: {
135
+ 200: {
136
+ bodyMapper: Mappers.Timeseries
137
+ },
138
+ default: {
139
+ bodyMapper: Mappers.ErrorResponse
140
+ }
141
+ },
142
+ queryParameters: [
143
+ Parameters.apiVersion,
144
+ Parameters.country,
145
+ Parameters.startDateTimeUTC,
146
+ Parameters.endDateTimeUTC1,
147
+ Parameters.aggregationInterval1,
148
+ Parameters.timeseriesType,
149
+ Parameters.endpoint
150
+ ],
151
+ urlParameters: [
152
+ Parameters.$host,
153
+ Parameters.subscriptionId,
154
+ Parameters.resourceGroupName,
155
+ Parameters.profileName,
156
+ Parameters.experimentName
157
+ ],
158
+ headerParameters: [Parameters.accept],
159
+ serializer
160
+ };
@@ -0,0 +1,486 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { RulesEngines } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { FrontDoorManagementClient } from "../frontDoorManagementClient";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ RulesEngine,
19
+ RulesEnginesListByFrontDoorNextOptionalParams,
20
+ RulesEnginesListByFrontDoorOptionalParams,
21
+ RulesEnginesListByFrontDoorResponse,
22
+ RulesEnginesGetOptionalParams,
23
+ RulesEnginesGetResponse,
24
+ RulesEnginesCreateOrUpdateOptionalParams,
25
+ RulesEnginesCreateOrUpdateResponse,
26
+ RulesEnginesDeleteOptionalParams,
27
+ RulesEnginesListByFrontDoorNextResponse
28
+ } from "../models";
29
+
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing RulesEngines operations. */
32
+ export class RulesEnginesImpl implements RulesEngines {
33
+ private readonly client: FrontDoorManagementClient;
34
+
35
+ /**
36
+ * Initialize a new instance of the class RulesEngines class.
37
+ * @param client Reference to the service client
38
+ */
39
+ constructor(client: FrontDoorManagementClient) {
40
+ this.client = client;
41
+ }
42
+
43
+ /**
44
+ * Lists all of the Rules Engine Configurations within a Front Door.
45
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
46
+ * @param frontDoorName Name of the Front Door which is globally unique.
47
+ * @param options The options parameters.
48
+ */
49
+ public listByFrontDoor(
50
+ resourceGroupName: string,
51
+ frontDoorName: string,
52
+ options?: RulesEnginesListByFrontDoorOptionalParams
53
+ ): PagedAsyncIterableIterator<RulesEngine> {
54
+ const iter = this.listByFrontDoorPagingAll(
55
+ resourceGroupName,
56
+ frontDoorName,
57
+ options
58
+ );
59
+ return {
60
+ next() {
61
+ return iter.next();
62
+ },
63
+ [Symbol.asyncIterator]() {
64
+ return this;
65
+ },
66
+ byPage: () => {
67
+ return this.listByFrontDoorPagingPage(
68
+ resourceGroupName,
69
+ frontDoorName,
70
+ options
71
+ );
72
+ }
73
+ };
74
+ }
75
+
76
+ private async *listByFrontDoorPagingPage(
77
+ resourceGroupName: string,
78
+ frontDoorName: string,
79
+ options?: RulesEnginesListByFrontDoorOptionalParams
80
+ ): AsyncIterableIterator<RulesEngine[]> {
81
+ let result = await this._listByFrontDoor(
82
+ resourceGroupName,
83
+ frontDoorName,
84
+ options
85
+ );
86
+ yield result.value || [];
87
+ let continuationToken = result.nextLink;
88
+ while (continuationToken) {
89
+ result = await this._listByFrontDoorNext(
90
+ resourceGroupName,
91
+ frontDoorName,
92
+ continuationToken,
93
+ options
94
+ );
95
+ continuationToken = result.nextLink;
96
+ yield result.value || [];
97
+ }
98
+ }
99
+
100
+ private async *listByFrontDoorPagingAll(
101
+ resourceGroupName: string,
102
+ frontDoorName: string,
103
+ options?: RulesEnginesListByFrontDoorOptionalParams
104
+ ): AsyncIterableIterator<RulesEngine> {
105
+ for await (const page of this.listByFrontDoorPagingPage(
106
+ resourceGroupName,
107
+ frontDoorName,
108
+ options
109
+ )) {
110
+ yield* page;
111
+ }
112
+ }
113
+
114
+ /**
115
+ * Lists all of the Rules Engine Configurations within a Front Door.
116
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
117
+ * @param frontDoorName Name of the Front Door which is globally unique.
118
+ * @param options The options parameters.
119
+ */
120
+ private _listByFrontDoor(
121
+ resourceGroupName: string,
122
+ frontDoorName: string,
123
+ options?: RulesEnginesListByFrontDoorOptionalParams
124
+ ): Promise<RulesEnginesListByFrontDoorResponse> {
125
+ return this.client.sendOperationRequest(
126
+ { resourceGroupName, frontDoorName, options },
127
+ listByFrontDoorOperationSpec
128
+ );
129
+ }
130
+
131
+ /**
132
+ * Gets a Rules Engine Configuration with the specified name within the specified Front Door.
133
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
134
+ * @param frontDoorName Name of the Front Door which is globally unique.
135
+ * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
136
+ * @param options The options parameters.
137
+ */
138
+ get(
139
+ resourceGroupName: string,
140
+ frontDoorName: string,
141
+ rulesEngineName: string,
142
+ options?: RulesEnginesGetOptionalParams
143
+ ): Promise<RulesEnginesGetResponse> {
144
+ return this.client.sendOperationRequest(
145
+ { resourceGroupName, frontDoorName, rulesEngineName, options },
146
+ getOperationSpec
147
+ );
148
+ }
149
+
150
+ /**
151
+ * Creates a new Rules Engine Configuration with the specified name within the specified Front Door.
152
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
153
+ * @param frontDoorName Name of the Front Door which is globally unique.
154
+ * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
155
+ * @param rulesEngineParameters Rules Engine Configuration properties needed to create a new Rules
156
+ * Engine Configuration.
157
+ * @param options The options parameters.
158
+ */
159
+ async beginCreateOrUpdate(
160
+ resourceGroupName: string,
161
+ frontDoorName: string,
162
+ rulesEngineName: string,
163
+ rulesEngineParameters: RulesEngine,
164
+ options?: RulesEnginesCreateOrUpdateOptionalParams
165
+ ): Promise<
166
+ PollerLike<
167
+ PollOperationState<RulesEnginesCreateOrUpdateResponse>,
168
+ RulesEnginesCreateOrUpdateResponse
169
+ >
170
+ > {
171
+ const directSendOperation = async (
172
+ args: coreClient.OperationArguments,
173
+ spec: coreClient.OperationSpec
174
+ ): Promise<RulesEnginesCreateOrUpdateResponse> => {
175
+ return this.client.sendOperationRequest(args, spec);
176
+ };
177
+ const sendOperation = async (
178
+ args: coreClient.OperationArguments,
179
+ spec: coreClient.OperationSpec
180
+ ) => {
181
+ let currentRawResponse:
182
+ | coreClient.FullOperationResponse
183
+ | undefined = undefined;
184
+ const providedCallback = args.options?.onResponse;
185
+ const callback: coreClient.RawResponseCallback = (
186
+ rawResponse: coreClient.FullOperationResponse,
187
+ flatResponse: unknown
188
+ ) => {
189
+ currentRawResponse = rawResponse;
190
+ providedCallback?.(rawResponse, flatResponse);
191
+ };
192
+ const updatedArgs = {
193
+ ...args,
194
+ options: {
195
+ ...args.options,
196
+ onResponse: callback
197
+ }
198
+ };
199
+ const flatResponse = await directSendOperation(updatedArgs, spec);
200
+ return {
201
+ flatResponse,
202
+ rawResponse: {
203
+ statusCode: currentRawResponse!.status,
204
+ body: currentRawResponse!.parsedBody,
205
+ headers: currentRawResponse!.headers.toJSON()
206
+ }
207
+ };
208
+ };
209
+
210
+ const lro = new LroImpl(
211
+ sendOperation,
212
+ {
213
+ resourceGroupName,
214
+ frontDoorName,
215
+ rulesEngineName,
216
+ rulesEngineParameters,
217
+ options
218
+ },
219
+ createOrUpdateOperationSpec
220
+ );
221
+ return new LroEngine(lro, {
222
+ resumeFrom: options?.resumeFrom,
223
+ intervalInMs: options?.updateIntervalInMs,
224
+ lroResourceLocationConfig: "azure-async-operation"
225
+ });
226
+ }
227
+
228
+ /**
229
+ * Creates a new Rules Engine Configuration with the specified name within the specified Front Door.
230
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
231
+ * @param frontDoorName Name of the Front Door which is globally unique.
232
+ * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
233
+ * @param rulesEngineParameters Rules Engine Configuration properties needed to create a new Rules
234
+ * Engine Configuration.
235
+ * @param options The options parameters.
236
+ */
237
+ async beginCreateOrUpdateAndWait(
238
+ resourceGroupName: string,
239
+ frontDoorName: string,
240
+ rulesEngineName: string,
241
+ rulesEngineParameters: RulesEngine,
242
+ options?: RulesEnginesCreateOrUpdateOptionalParams
243
+ ): Promise<RulesEnginesCreateOrUpdateResponse> {
244
+ const poller = await this.beginCreateOrUpdate(
245
+ resourceGroupName,
246
+ frontDoorName,
247
+ rulesEngineName,
248
+ rulesEngineParameters,
249
+ options
250
+ );
251
+ return poller.pollUntilDone();
252
+ }
253
+
254
+ /**
255
+ * Deletes an existing Rules Engine Configuration with the specified parameters.
256
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
257
+ * @param frontDoorName Name of the Front Door which is globally unique.
258
+ * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
259
+ * @param options The options parameters.
260
+ */
261
+ async beginDelete(
262
+ resourceGroupName: string,
263
+ frontDoorName: string,
264
+ rulesEngineName: string,
265
+ options?: RulesEnginesDeleteOptionalParams
266
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
267
+ const directSendOperation = async (
268
+ args: coreClient.OperationArguments,
269
+ spec: coreClient.OperationSpec
270
+ ): Promise<void> => {
271
+ return this.client.sendOperationRequest(args, spec);
272
+ };
273
+ const sendOperation = async (
274
+ args: coreClient.OperationArguments,
275
+ spec: coreClient.OperationSpec
276
+ ) => {
277
+ let currentRawResponse:
278
+ | coreClient.FullOperationResponse
279
+ | undefined = undefined;
280
+ const providedCallback = args.options?.onResponse;
281
+ const callback: coreClient.RawResponseCallback = (
282
+ rawResponse: coreClient.FullOperationResponse,
283
+ flatResponse: unknown
284
+ ) => {
285
+ currentRawResponse = rawResponse;
286
+ providedCallback?.(rawResponse, flatResponse);
287
+ };
288
+ const updatedArgs = {
289
+ ...args,
290
+ options: {
291
+ ...args.options,
292
+ onResponse: callback
293
+ }
294
+ };
295
+ const flatResponse = await directSendOperation(updatedArgs, spec);
296
+ return {
297
+ flatResponse,
298
+ rawResponse: {
299
+ statusCode: currentRawResponse!.status,
300
+ body: currentRawResponse!.parsedBody,
301
+ headers: currentRawResponse!.headers.toJSON()
302
+ }
303
+ };
304
+ };
305
+
306
+ const lro = new LroImpl(
307
+ sendOperation,
308
+ { resourceGroupName, frontDoorName, rulesEngineName, options },
309
+ deleteOperationSpec
310
+ );
311
+ return new LroEngine(lro, {
312
+ resumeFrom: options?.resumeFrom,
313
+ intervalInMs: options?.updateIntervalInMs,
314
+ lroResourceLocationConfig: "azure-async-operation"
315
+ });
316
+ }
317
+
318
+ /**
319
+ * Deletes an existing Rules Engine Configuration with the specified parameters.
320
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
321
+ * @param frontDoorName Name of the Front Door which is globally unique.
322
+ * @param rulesEngineName Name of the Rules Engine which is unique within the Front Door.
323
+ * @param options The options parameters.
324
+ */
325
+ async beginDeleteAndWait(
326
+ resourceGroupName: string,
327
+ frontDoorName: string,
328
+ rulesEngineName: string,
329
+ options?: RulesEnginesDeleteOptionalParams
330
+ ): Promise<void> {
331
+ const poller = await this.beginDelete(
332
+ resourceGroupName,
333
+ frontDoorName,
334
+ rulesEngineName,
335
+ options
336
+ );
337
+ return poller.pollUntilDone();
338
+ }
339
+
340
+ /**
341
+ * ListByFrontDoorNext
342
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
343
+ * @param frontDoorName Name of the Front Door which is globally unique.
344
+ * @param nextLink The nextLink from the previous successful call to the ListByFrontDoor method.
345
+ * @param options The options parameters.
346
+ */
347
+ private _listByFrontDoorNext(
348
+ resourceGroupName: string,
349
+ frontDoorName: string,
350
+ nextLink: string,
351
+ options?: RulesEnginesListByFrontDoorNextOptionalParams
352
+ ): Promise<RulesEnginesListByFrontDoorNextResponse> {
353
+ return this.client.sendOperationRequest(
354
+ { resourceGroupName, frontDoorName, nextLink, options },
355
+ listByFrontDoorNextOperationSpec
356
+ );
357
+ }
358
+ }
359
+ // Operation Specifications
360
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
361
+
362
+ const listByFrontDoorOperationSpec: coreClient.OperationSpec = {
363
+ path:
364
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines",
365
+ httpMethod: "GET",
366
+ responses: {
367
+ 200: {
368
+ bodyMapper: Mappers.RulesEngineListResult
369
+ },
370
+ default: {
371
+ bodyMapper: Mappers.ErrorResponse
372
+ }
373
+ },
374
+ queryParameters: [Parameters.apiVersion1],
375
+ urlParameters: [
376
+ Parameters.$host,
377
+ Parameters.subscriptionId,
378
+ Parameters.resourceGroupName,
379
+ Parameters.frontDoorName
380
+ ],
381
+ headerParameters: [Parameters.accept],
382
+ serializer
383
+ };
384
+ const getOperationSpec: coreClient.OperationSpec = {
385
+ path:
386
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}",
387
+ httpMethod: "GET",
388
+ responses: {
389
+ 200: {
390
+ bodyMapper: Mappers.RulesEngine
391
+ },
392
+ default: {
393
+ bodyMapper: Mappers.ErrorResponse
394
+ }
395
+ },
396
+ queryParameters: [Parameters.apiVersion1],
397
+ urlParameters: [
398
+ Parameters.$host,
399
+ Parameters.subscriptionId,
400
+ Parameters.resourceGroupName,
401
+ Parameters.frontDoorName,
402
+ Parameters.rulesEngineName
403
+ ],
404
+ headerParameters: [Parameters.accept],
405
+ serializer
406
+ };
407
+ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
408
+ path:
409
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}",
410
+ httpMethod: "PUT",
411
+ responses: {
412
+ 200: {
413
+ bodyMapper: Mappers.RulesEngine
414
+ },
415
+ 201: {
416
+ bodyMapper: Mappers.RulesEngine
417
+ },
418
+ 202: {
419
+ bodyMapper: Mappers.RulesEngine
420
+ },
421
+ 204: {
422
+ bodyMapper: Mappers.RulesEngine
423
+ },
424
+ default: {
425
+ bodyMapper: Mappers.ErrorResponse
426
+ }
427
+ },
428
+ requestBody: Parameters.rulesEngineParameters,
429
+ queryParameters: [Parameters.apiVersion1],
430
+ urlParameters: [
431
+ Parameters.$host,
432
+ Parameters.subscriptionId,
433
+ Parameters.resourceGroupName,
434
+ Parameters.frontDoorName,
435
+ Parameters.rulesEngineName
436
+ ],
437
+ headerParameters: [Parameters.accept, Parameters.contentType],
438
+ mediaType: "json",
439
+ serializer
440
+ };
441
+ const deleteOperationSpec: coreClient.OperationSpec = {
442
+ path:
443
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}",
444
+ httpMethod: "DELETE",
445
+ responses: {
446
+ 200: {},
447
+ 201: {},
448
+ 202: {},
449
+ 204: {},
450
+ default: {
451
+ bodyMapper: Mappers.ErrorResponse
452
+ }
453
+ },
454
+ queryParameters: [Parameters.apiVersion1],
455
+ urlParameters: [
456
+ Parameters.$host,
457
+ Parameters.subscriptionId,
458
+ Parameters.resourceGroupName,
459
+ Parameters.frontDoorName,
460
+ Parameters.rulesEngineName
461
+ ],
462
+ headerParameters: [Parameters.accept],
463
+ serializer
464
+ };
465
+ const listByFrontDoorNextOperationSpec: coreClient.OperationSpec = {
466
+ path: "{nextLink}",
467
+ httpMethod: "GET",
468
+ responses: {
469
+ 200: {
470
+ bodyMapper: Mappers.RulesEngineListResult
471
+ },
472
+ default: {
473
+ bodyMapper: Mappers.ErrorResponse
474
+ }
475
+ },
476
+ queryParameters: [Parameters.apiVersion1],
477
+ urlParameters: [
478
+ Parameters.$host,
479
+ Parameters.subscriptionId,
480
+ Parameters.resourceGroupName,
481
+ Parameters.nextLink,
482
+ Parameters.frontDoorName
483
+ ],
484
+ headerParameters: [Parameters.accept],
485
+ serializer
486
+ };
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import {
11
+ PurgeParameters,
12
+ EndpointsPurgeContentOptionalParams
13
+ } from "../models";
14
+
15
+ /** Interface representing a Endpoints. */
16
+ export interface Endpoints {
17
+ /**
18
+ * Removes a content from Front Door.
19
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
20
+ * @param frontDoorName Name of the Front Door which is globally unique.
21
+ * @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
22
+ * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*'
23
+ * which removes all folders and files in the directory.
24
+ * @param options The options parameters.
25
+ */
26
+ beginPurgeContent(
27
+ resourceGroupName: string,
28
+ frontDoorName: string,
29
+ contentFilePaths: PurgeParameters,
30
+ options?: EndpointsPurgeContentOptionalParams
31
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
32
+ /**
33
+ * Removes a content from Front Door.
34
+ * @param resourceGroupName Name of the Resource group within the Azure subscription.
35
+ * @param frontDoorName Name of the Front Door which is globally unique.
36
+ * @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
37
+ * '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*'
38
+ * which removes all folders and files in the directory.
39
+ * @param options The options parameters.
40
+ */
41
+ beginPurgeContentAndWait(
42
+ resourceGroupName: string,
43
+ frontDoorName: string,
44
+ contentFilePaths: PurgeParameters,
45
+ options?: EndpointsPurgeContentOptionalParams
46
+ ): Promise<void>;
47
+ }