@azure/arm-advisor 3.2.0 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (724) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +31 -25
  3. package/dist/browser/advisorManagementClient.d.ts +52 -0
  4. package/dist/browser/advisorManagementClient.js +82 -0
  5. package/dist/browser/advisorManagementClient.js.map +1 -0
  6. package/dist/browser/api/advisorManagementContext.d.ts +22 -0
  7. package/dist/browser/api/advisorManagementContext.js +26 -0
  8. package/dist/browser/api/advisorManagementContext.js.map +1 -0
  9. package/dist/browser/api/advisorScores/index.d.ts +3 -0
  10. package/dist/browser/api/advisorScores/index.js +4 -0
  11. package/dist/browser/api/advisorScores/index.js.map +1 -0
  12. package/dist/browser/api/advisorScores/operations.d.ts +14 -0
  13. package/dist/browser/api/advisorScores/operations.js +63 -0
  14. package/dist/browser/api/advisorScores/operations.js.map +1 -0
  15. package/dist/browser/api/advisorScores/options.d.ts +8 -0
  16. package/dist/browser/api/advisorScores/options.js +4 -0
  17. package/dist/browser/api/advisorScores/options.js.map +1 -0
  18. package/dist/browser/api/assessmentTypes/index.d.ts +3 -0
  19. package/dist/browser/api/assessmentTypes/index.js +4 -0
  20. package/dist/browser/api/assessmentTypes/index.js.map +1 -0
  21. package/dist/browser/api/assessmentTypes/operations.d.ts +10 -0
  22. package/dist/browser/api/assessmentTypes/operations.js +38 -0
  23. package/dist/browser/api/assessmentTypes/operations.js.map +1 -0
  24. package/dist/browser/api/assessmentTypes/options.d.ts +5 -0
  25. package/dist/browser/api/assessmentTypes/options.js +4 -0
  26. package/dist/browser/api/assessmentTypes/options.js.map +1 -0
  27. package/dist/browser/api/assessments/index.d.ts +3 -0
  28. package/dist/browser/api/assessments/index.js +4 -0
  29. package/dist/browser/api/assessments/index.js.map +1 -0
  30. package/dist/browser/api/assessments/operations.d.ts +22 -0
  31. package/dist/browser/api/assessments/operations.js +126 -0
  32. package/dist/browser/api/assessments/operations.js.map +1 -0
  33. package/dist/browser/api/assessments/options.d.ts +18 -0
  34. package/dist/browser/api/assessments/options.js +4 -0
  35. package/dist/browser/api/assessments/options.js.map +1 -0
  36. package/dist/browser/api/configurations/index.d.ts +3 -0
  37. package/dist/browser/api/configurations/index.js +4 -0
  38. package/dist/browser/api/configurations/index.js.map +1 -0
  39. package/dist/browser/api/configurations/operations.d.ts +22 -0
  40. package/dist/browser/api/configurations/operations.js +133 -0
  41. package/dist/browser/api/configurations/operations.js.map +1 -0
  42. package/dist/browser/api/configurations/options.d.ts +14 -0
  43. package/dist/browser/api/configurations/options.js +4 -0
  44. package/dist/browser/api/configurations/options.js.map +1 -0
  45. package/dist/browser/api/index.d.ts +5 -0
  46. package/dist/browser/api/index.js +5 -0
  47. package/dist/browser/api/index.js.map +1 -0
  48. package/dist/browser/api/operations/index.d.ts +3 -0
  49. package/dist/browser/api/operations/index.js +4 -0
  50. package/dist/browser/api/operations/index.js.map +1 -0
  51. package/dist/browser/api/operations/operations.d.ts +10 -0
  52. package/dist/browser/api/operations/operations.js +37 -0
  53. package/dist/browser/api/operations/operations.js.map +1 -0
  54. package/dist/browser/api/operations/options.d.ts +5 -0
  55. package/dist/browser/api/operations/options.js +4 -0
  56. package/dist/browser/api/operations/options.js.map +1 -0
  57. package/dist/browser/api/operations.d.ts +9 -0
  58. package/dist/browser/api/operations.js +36 -0
  59. package/dist/browser/api/operations.js.map +1 -0
  60. package/dist/browser/api/options.d.ts +5 -0
  61. package/dist/browser/api/options.js +4 -0
  62. package/dist/browser/api/options.js.map +1 -0
  63. package/dist/browser/api/recommendationMetadata/index.d.ts +3 -0
  64. package/dist/browser/api/recommendationMetadata/index.js +4 -0
  65. package/dist/browser/api/recommendationMetadata/index.js.map +1 -0
  66. package/dist/browser/api/recommendationMetadata/operations.d.ts +14 -0
  67. package/dist/browser/api/recommendationMetadata/operations.js +73 -0
  68. package/dist/browser/api/recommendationMetadata/operations.js.map +1 -0
  69. package/dist/browser/api/recommendationMetadata/options.d.ts +8 -0
  70. package/dist/browser/api/recommendationMetadata/options.js +4 -0
  71. package/dist/browser/api/recommendationMetadata/options.js.map +1 -0
  72. package/dist/browser/api/recommendations/index.d.ts +3 -0
  73. package/dist/browser/api/recommendations/index.js +4 -0
  74. package/dist/browser/api/recommendations/index.js.map +1 -0
  75. package/dist/browser/api/recommendations/operations.d.ts +30 -0
  76. package/dist/browser/api/recommendations/operations.js +186 -0
  77. package/dist/browser/api/recommendations/operations.js.map +1 -0
  78. package/dist/browser/api/recommendations/options.d.ts +38 -0
  79. package/dist/browser/api/recommendations/options.js +4 -0
  80. package/dist/browser/api/recommendations/options.js.map +1 -0
  81. package/dist/browser/api/resiliencyReviews/index.d.ts +3 -0
  82. package/dist/browser/api/resiliencyReviews/index.js +4 -0
  83. package/dist/browser/api/resiliencyReviews/index.js.map +1 -0
  84. package/dist/browser/api/resiliencyReviews/operations.d.ts +14 -0
  85. package/dist/browser/api/resiliencyReviews/operations.js +70 -0
  86. package/dist/browser/api/resiliencyReviews/operations.js.map +1 -0
  87. package/dist/browser/api/resiliencyReviews/options.d.ts +14 -0
  88. package/dist/browser/api/resiliencyReviews/options.js +4 -0
  89. package/dist/browser/api/resiliencyReviews/options.js.map +1 -0
  90. package/dist/browser/api/suppressions/index.d.ts +3 -0
  91. package/dist/browser/api/suppressions/index.js +4 -0
  92. package/dist/browser/api/suppressions/index.js.map +1 -0
  93. package/dist/browser/api/suppressions/operations.d.ts +22 -0
  94. package/dist/browser/api/suppressions/operations.js +145 -0
  95. package/dist/browser/api/suppressions/operations.js.map +1 -0
  96. package/dist/browser/api/suppressions/options.d.ts +18 -0
  97. package/dist/browser/api/suppressions/options.js +4 -0
  98. package/dist/browser/api/suppressions/options.js.map +1 -0
  99. package/dist/browser/api/triageRecommendations/index.d.ts +3 -0
  100. package/dist/browser/api/triageRecommendations/index.js +4 -0
  101. package/dist/browser/api/triageRecommendations/index.js.map +1 -0
  102. package/dist/browser/api/triageRecommendations/operations.d.ts +26 -0
  103. package/dist/browser/api/triageRecommendations/operations.js +156 -0
  104. package/dist/browser/api/triageRecommendations/operations.js.map +1 -0
  105. package/dist/browser/api/triageRecommendations/options.d.ts +21 -0
  106. package/dist/browser/api/triageRecommendations/options.js +4 -0
  107. package/dist/browser/api/triageRecommendations/options.js.map +1 -0
  108. package/dist/browser/api/triageResources/index.d.ts +3 -0
  109. package/dist/browser/api/triageResources/index.js +4 -0
  110. package/dist/browser/api/triageResources/index.js.map +1 -0
  111. package/dist/browser/api/triageResources/operations.d.ts +14 -0
  112. package/dist/browser/api/triageResources/operations.js +71 -0
  113. package/dist/browser/api/triageResources/operations.js.map +1 -0
  114. package/dist/browser/api/triageResources/options.d.ts +8 -0
  115. package/dist/browser/api/triageResources/options.js +4 -0
  116. package/dist/browser/api/triageResources/options.js.map +1 -0
  117. package/dist/browser/api/workloads/index.d.ts +3 -0
  118. package/dist/browser/api/workloads/index.js +4 -0
  119. package/dist/browser/api/workloads/index.js.map +1 -0
  120. package/dist/browser/api/workloads/operations.d.ts +10 -0
  121. package/dist/browser/api/workloads/operations.js +38 -0
  122. package/dist/browser/api/workloads/operations.js.map +1 -0
  123. package/dist/browser/api/workloads/options.d.ts +5 -0
  124. package/dist/browser/api/workloads/options.js +4 -0
  125. package/dist/browser/api/workloads/options.js.map +1 -0
  126. package/dist/browser/classic/advisorScores/index.d.ts +13 -0
  127. package/dist/browser/classic/advisorScores/index.js +15 -0
  128. package/dist/browser/classic/advisorScores/index.js.map +1 -0
  129. package/dist/browser/classic/assessmentTypes/index.d.ts +11 -0
  130. package/dist/browser/classic/assessmentTypes/index.js +14 -0
  131. package/dist/browser/classic/assessmentTypes/index.js.map +1 -0
  132. package/dist/browser/classic/assessments/index.d.ts +17 -0
  133. package/dist/browser/classic/assessments/index.js +17 -0
  134. package/dist/browser/classic/assessments/index.js.map +1 -0
  135. package/dist/browser/classic/configurations/index.d.ts +17 -0
  136. package/dist/browser/classic/configurations/index.js +17 -0
  137. package/dist/browser/classic/configurations/index.js.map +1 -0
  138. package/dist/browser/classic/index.d.ts +13 -0
  139. package/dist/browser/classic/index.js +4 -0
  140. package/dist/browser/classic/index.js.map +1 -0
  141. package/dist/browser/classic/operations/index.d.ts +11 -0
  142. package/dist/browser/classic/operations/index.js +14 -0
  143. package/dist/browser/classic/operations/index.js.map +1 -0
  144. package/dist/browser/classic/recommendationMetadata/index.d.ts +13 -0
  145. package/dist/browser/classic/recommendationMetadata/index.js +15 -0
  146. package/dist/browser/classic/recommendationMetadata/index.js.map +1 -0
  147. package/dist/browser/classic/recommendations/index.d.ts +21 -0
  148. package/dist/browser/classic/recommendations/index.js +19 -0
  149. package/dist/browser/classic/recommendations/index.js.map +1 -0
  150. package/dist/browser/classic/resiliencyReviews/index.d.ts +13 -0
  151. package/dist/browser/classic/resiliencyReviews/index.js +15 -0
  152. package/dist/browser/classic/resiliencyReviews/index.js.map +1 -0
  153. package/dist/browser/classic/suppressions/index.d.ts +17 -0
  154. package/dist/browser/classic/suppressions/index.js +17 -0
  155. package/dist/browser/classic/suppressions/index.js.map +1 -0
  156. package/dist/browser/classic/triageRecommendations/index.d.ts +19 -0
  157. package/dist/browser/classic/triageRecommendations/index.js +18 -0
  158. package/dist/browser/classic/triageRecommendations/index.js.map +1 -0
  159. package/dist/browser/classic/triageResources/index.d.ts +13 -0
  160. package/dist/browser/classic/triageResources/index.js +15 -0
  161. package/dist/browser/classic/triageResources/index.js.map +1 -0
  162. package/dist/browser/classic/workloads/index.d.ts +11 -0
  163. package/dist/browser/classic/workloads/index.js +14 -0
  164. package/dist/browser/classic/workloads/index.js.map +1 -0
  165. package/dist/browser/index.d.ts +25 -0
  166. package/dist/browser/index.js +8 -0
  167. package/dist/browser/index.js.map +1 -0
  168. package/dist/browser/logger.d.ts +2 -0
  169. package/dist/browser/logger.js +5 -0
  170. package/dist/browser/logger.js.map +1 -0
  171. package/dist/browser/models/index.d.ts +3 -0
  172. package/dist/browser/models/index.js +4 -0
  173. package/dist/browser/models/index.js.map +1 -0
  174. package/dist/browser/models/models.d.ts +1310 -0
  175. package/dist/browser/models/models.js +1155 -0
  176. package/dist/browser/models/models.js.map +1 -0
  177. package/dist/browser/package.json +3 -0
  178. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  179. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  180. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  181. package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
  182. package/dist/browser/static-helpers/pagingHelpers.js +143 -0
  183. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  184. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  185. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  186. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  187. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  188. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  189. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  190. package/dist/commonjs/advisorManagementClient.d.ts +52 -0
  191. package/dist/commonjs/advisorManagementClient.js +103 -0
  192. package/dist/commonjs/advisorManagementClient.js.map +7 -0
  193. package/dist/commonjs/api/advisorManagementContext.d.ts +22 -0
  194. package/dist/commonjs/api/advisorManagementContext.js +47 -0
  195. package/dist/commonjs/api/advisorManagementContext.js.map +7 -0
  196. package/dist/commonjs/api/advisorScores/index.d.ts +3 -0
  197. package/dist/commonjs/api/advisorScores/index.js +30 -0
  198. package/dist/commonjs/api/advisorScores/index.js.map +7 -0
  199. package/dist/commonjs/api/advisorScores/operations.d.ts +14 -0
  200. package/dist/commonjs/api/advisorScores/operations.js +109 -0
  201. package/dist/commonjs/api/advisorScores/operations.js.map +7 -0
  202. package/dist/commonjs/api/advisorScores/options.d.ts +8 -0
  203. package/dist/commonjs/api/advisorScores/options.js +16 -0
  204. package/dist/commonjs/api/advisorScores/options.js.map +7 -0
  205. package/dist/commonjs/api/assessmentTypes/index.d.ts +3 -0
  206. package/dist/commonjs/api/assessmentTypes/index.js +28 -0
  207. package/dist/commonjs/api/assessmentTypes/index.js.map +7 -0
  208. package/dist/commonjs/api/assessmentTypes/operations.d.ts +10 -0
  209. package/dist/commonjs/api/assessmentTypes/operations.js +75 -0
  210. package/dist/commonjs/api/assessmentTypes/operations.js.map +7 -0
  211. package/dist/commonjs/api/assessmentTypes/options.d.ts +5 -0
  212. package/dist/commonjs/api/assessmentTypes/options.js +16 -0
  213. package/dist/commonjs/api/assessmentTypes/options.js.map +7 -0
  214. package/dist/commonjs/api/assessments/index.d.ts +3 -0
  215. package/dist/commonjs/api/assessments/index.js +34 -0
  216. package/dist/commonjs/api/assessments/index.js.map +7 -0
  217. package/dist/commonjs/api/assessments/operations.d.ts +22 -0
  218. package/dist/commonjs/api/assessments/operations.js +190 -0
  219. package/dist/commonjs/api/assessments/operations.js.map +7 -0
  220. package/dist/commonjs/api/assessments/options.d.ts +18 -0
  221. package/dist/commonjs/api/assessments/options.js +16 -0
  222. package/dist/commonjs/api/assessments/options.js.map +7 -0
  223. package/dist/commonjs/api/configurations/index.d.ts +3 -0
  224. package/dist/commonjs/api/configurations/index.js +34 -0
  225. package/dist/commonjs/api/configurations/index.js.map +7 -0
  226. package/dist/commonjs/api/configurations/operations.d.ts +22 -0
  227. package/dist/commonjs/api/configurations/operations.js +214 -0
  228. package/dist/commonjs/api/configurations/operations.js.map +7 -0
  229. package/dist/commonjs/api/configurations/options.d.ts +14 -0
  230. package/dist/commonjs/api/configurations/options.js +16 -0
  231. package/dist/commonjs/api/configurations/options.js.map +7 -0
  232. package/dist/commonjs/api/index.d.ts +5 -0
  233. package/dist/commonjs/api/index.js +31 -0
  234. package/dist/commonjs/api/index.js.map +7 -0
  235. package/dist/commonjs/api/operations/index.d.ts +3 -0
  236. package/dist/commonjs/api/operations/index.js +28 -0
  237. package/dist/commonjs/api/operations/index.js.map +7 -0
  238. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  239. package/dist/commonjs/api/operations/operations.js +74 -0
  240. package/dist/commonjs/api/operations/operations.js.map +7 -0
  241. package/dist/commonjs/api/operations/options.d.ts +5 -0
  242. package/dist/commonjs/api/operations/options.js +16 -0
  243. package/dist/commonjs/api/operations/options.js.map +7 -0
  244. package/dist/commonjs/api/operations.d.ts +9 -0
  245. package/dist/commonjs/api/operations.js +67 -0
  246. package/dist/commonjs/api/operations.js.map +7 -0
  247. package/dist/commonjs/api/options.d.ts +5 -0
  248. package/dist/commonjs/api/options.js +16 -0
  249. package/dist/commonjs/api/options.js.map +7 -0
  250. package/dist/commonjs/api/recommendationMetadata/index.d.ts +3 -0
  251. package/dist/commonjs/api/recommendationMetadata/index.js +30 -0
  252. package/dist/commonjs/api/recommendationMetadata/index.js.map +7 -0
  253. package/dist/commonjs/api/recommendationMetadata/operations.d.ts +14 -0
  254. package/dist/commonjs/api/recommendationMetadata/operations.js +118 -0
  255. package/dist/commonjs/api/recommendationMetadata/operations.js.map +7 -0
  256. package/dist/commonjs/api/recommendationMetadata/options.d.ts +8 -0
  257. package/dist/commonjs/api/recommendationMetadata/options.js +16 -0
  258. package/dist/commonjs/api/recommendationMetadata/options.js.map +7 -0
  259. package/dist/commonjs/api/recommendations/index.d.ts +3 -0
  260. package/dist/commonjs/api/recommendations/index.js +38 -0
  261. package/dist/commonjs/api/recommendations/index.js.map +7 -0
  262. package/dist/commonjs/api/recommendations/operations.d.ts +30 -0
  263. package/dist/commonjs/api/recommendations/operations.js +274 -0
  264. package/dist/commonjs/api/recommendations/operations.js.map +7 -0
  265. package/dist/commonjs/api/recommendations/options.d.ts +38 -0
  266. package/dist/commonjs/api/recommendations/options.js +16 -0
  267. package/dist/commonjs/api/recommendations/options.js.map +7 -0
  268. package/dist/commonjs/api/resiliencyReviews/index.d.ts +3 -0
  269. package/dist/commonjs/api/resiliencyReviews/index.js +30 -0
  270. package/dist/commonjs/api/resiliencyReviews/index.js.map +7 -0
  271. package/dist/commonjs/api/resiliencyReviews/operations.d.ts +14 -0
  272. package/dist/commonjs/api/resiliencyReviews/operations.js +116 -0
  273. package/dist/commonjs/api/resiliencyReviews/operations.js.map +7 -0
  274. package/dist/commonjs/api/resiliencyReviews/options.d.ts +14 -0
  275. package/dist/commonjs/api/resiliencyReviews/options.js +16 -0
  276. package/dist/commonjs/api/resiliencyReviews/options.js.map +7 -0
  277. package/dist/commonjs/api/suppressions/index.d.ts +3 -0
  278. package/dist/commonjs/api/suppressions/index.js +34 -0
  279. package/dist/commonjs/api/suppressions/index.js.map +7 -0
  280. package/dist/commonjs/api/suppressions/operations.d.ts +22 -0
  281. package/dist/commonjs/api/suppressions/operations.js +214 -0
  282. package/dist/commonjs/api/suppressions/operations.js.map +7 -0
  283. package/dist/commonjs/api/suppressions/options.d.ts +18 -0
  284. package/dist/commonjs/api/suppressions/options.js +16 -0
  285. package/dist/commonjs/api/suppressions/options.js.map +7 -0
  286. package/dist/commonjs/api/triageRecommendations/index.d.ts +3 -0
  287. package/dist/commonjs/api/triageRecommendations/index.js +36 -0
  288. package/dist/commonjs/api/triageRecommendations/index.js.map +7 -0
  289. package/dist/commonjs/api/triageRecommendations/operations.d.ts +26 -0
  290. package/dist/commonjs/api/triageRecommendations/operations.js +240 -0
  291. package/dist/commonjs/api/triageRecommendations/operations.js.map +7 -0
  292. package/dist/commonjs/api/triageRecommendations/options.d.ts +21 -0
  293. package/dist/commonjs/api/triageRecommendations/options.js +16 -0
  294. package/dist/commonjs/api/triageRecommendations/options.js.map +7 -0
  295. package/dist/commonjs/api/triageResources/index.d.ts +3 -0
  296. package/dist/commonjs/api/triageResources/index.js +30 -0
  297. package/dist/commonjs/api/triageResources/index.js.map +7 -0
  298. package/dist/commonjs/api/triageResources/operations.d.ts +14 -0
  299. package/dist/commonjs/api/triageResources/operations.js +123 -0
  300. package/dist/commonjs/api/triageResources/operations.js.map +7 -0
  301. package/dist/commonjs/api/triageResources/options.d.ts +8 -0
  302. package/dist/commonjs/api/triageResources/options.js +16 -0
  303. package/dist/commonjs/api/triageResources/options.js.map +7 -0
  304. package/dist/commonjs/api/workloads/index.d.ts +3 -0
  305. package/dist/commonjs/api/workloads/index.js +28 -0
  306. package/dist/commonjs/api/workloads/index.js.map +7 -0
  307. package/dist/commonjs/api/workloads/operations.d.ts +10 -0
  308. package/dist/commonjs/api/workloads/operations.js +75 -0
  309. package/dist/commonjs/api/workloads/operations.js.map +7 -0
  310. package/dist/commonjs/api/workloads/options.d.ts +5 -0
  311. package/dist/commonjs/api/workloads/options.js +16 -0
  312. package/dist/commonjs/api/workloads/options.js.map +7 -0
  313. package/dist/commonjs/classic/advisorScores/index.d.ts +13 -0
  314. package/dist/commonjs/classic/advisorScores/index.js +39 -0
  315. package/dist/commonjs/classic/advisorScores/index.js.map +7 -0
  316. package/dist/commonjs/classic/assessmentTypes/index.d.ts +11 -0
  317. package/dist/commonjs/classic/assessmentTypes/index.js +38 -0
  318. package/dist/commonjs/classic/assessmentTypes/index.js.map +7 -0
  319. package/dist/commonjs/classic/assessments/index.d.ts +17 -0
  320. package/dist/commonjs/classic/assessments/index.js +41 -0
  321. package/dist/commonjs/classic/assessments/index.js.map +7 -0
  322. package/dist/commonjs/classic/configurations/index.d.ts +17 -0
  323. package/dist/commonjs/classic/configurations/index.js +41 -0
  324. package/dist/commonjs/classic/configurations/index.js.map +7 -0
  325. package/dist/commonjs/classic/index.d.ts +13 -0
  326. package/dist/commonjs/classic/index.js +16 -0
  327. package/dist/commonjs/classic/index.js.map +7 -0
  328. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  329. package/dist/commonjs/classic/operations/index.js +38 -0
  330. package/dist/commonjs/classic/operations/index.js.map +7 -0
  331. package/dist/commonjs/classic/recommendationMetadata/index.d.ts +13 -0
  332. package/dist/commonjs/classic/recommendationMetadata/index.js +39 -0
  333. package/dist/commonjs/classic/recommendationMetadata/index.js.map +7 -0
  334. package/dist/commonjs/classic/recommendations/index.d.ts +21 -0
  335. package/dist/commonjs/classic/recommendations/index.js +43 -0
  336. package/dist/commonjs/classic/recommendations/index.js.map +7 -0
  337. package/dist/commonjs/classic/resiliencyReviews/index.d.ts +13 -0
  338. package/dist/commonjs/classic/resiliencyReviews/index.js +39 -0
  339. package/dist/commonjs/classic/resiliencyReviews/index.js.map +7 -0
  340. package/dist/commonjs/classic/suppressions/index.d.ts +17 -0
  341. package/dist/commonjs/classic/suppressions/index.js +41 -0
  342. package/dist/commonjs/classic/suppressions/index.js.map +7 -0
  343. package/dist/commonjs/classic/triageRecommendations/index.d.ts +19 -0
  344. package/dist/commonjs/classic/triageRecommendations/index.js +48 -0
  345. package/dist/commonjs/classic/triageRecommendations/index.js.map +7 -0
  346. package/dist/commonjs/classic/triageResources/index.d.ts +13 -0
  347. package/dist/commonjs/classic/triageResources/index.js +39 -0
  348. package/dist/commonjs/classic/triageResources/index.js.map +7 -0
  349. package/dist/commonjs/classic/workloads/index.d.ts +11 -0
  350. package/dist/commonjs/classic/workloads/index.js +38 -0
  351. package/dist/commonjs/classic/workloads/index.js.map +7 -0
  352. package/dist/commonjs/index.d.ts +25 -0
  353. package/dist/commonjs/index.js +77 -0
  354. package/dist/commonjs/index.js.map +7 -0
  355. package/dist/commonjs/logger.d.ts +2 -0
  356. package/dist/commonjs/logger.js +29 -0
  357. package/dist/commonjs/logger.js.map +7 -0
  358. package/dist/commonjs/models/index.d.ts +3 -0
  359. package/dist/commonjs/models/index.js +66 -0
  360. package/dist/commonjs/models/index.js.map +7 -0
  361. package/dist/commonjs/models/models.d.ts +1310 -0
  362. package/dist/commonjs/models/models.js +1203 -0
  363. package/dist/commonjs/models/models.js.map +7 -0
  364. package/dist/commonjs/package.json +3 -0
  365. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  366. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  367. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  368. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
  369. package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
  370. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
  371. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  372. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +35 -0
  373. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +7 -0
  374. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  375. package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
  376. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
  377. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  378. package/dist/esm/advisorManagementClient.d.ts +52 -0
  379. package/dist/esm/advisorManagementClient.js +82 -0
  380. package/dist/esm/advisorManagementClient.js.map +1 -0
  381. package/dist/esm/api/advisorManagementContext.d.ts +22 -0
  382. package/dist/esm/api/advisorManagementContext.js +26 -0
  383. package/dist/esm/api/advisorManagementContext.js.map +1 -0
  384. package/dist/esm/api/advisorScores/index.d.ts +3 -0
  385. package/dist/esm/api/advisorScores/index.js +4 -0
  386. package/dist/esm/api/advisorScores/index.js.map +1 -0
  387. package/dist/esm/api/advisorScores/operations.d.ts +14 -0
  388. package/dist/esm/api/advisorScores/operations.js +63 -0
  389. package/dist/esm/api/advisorScores/operations.js.map +1 -0
  390. package/dist/esm/api/advisorScores/options.d.ts +8 -0
  391. package/dist/esm/api/advisorScores/options.js +4 -0
  392. package/dist/esm/api/advisorScores/options.js.map +1 -0
  393. package/dist/esm/api/assessmentTypes/index.d.ts +3 -0
  394. package/dist/esm/api/assessmentTypes/index.js +4 -0
  395. package/dist/esm/api/assessmentTypes/index.js.map +1 -0
  396. package/dist/esm/api/assessmentTypes/operations.d.ts +10 -0
  397. package/dist/esm/api/assessmentTypes/operations.js +38 -0
  398. package/dist/esm/api/assessmentTypes/operations.js.map +1 -0
  399. package/dist/esm/api/assessmentTypes/options.d.ts +5 -0
  400. package/dist/esm/api/assessmentTypes/options.js +4 -0
  401. package/dist/esm/api/assessmentTypes/options.js.map +1 -0
  402. package/dist/esm/api/assessments/index.d.ts +3 -0
  403. package/dist/esm/api/assessments/index.js +4 -0
  404. package/dist/esm/api/assessments/index.js.map +1 -0
  405. package/dist/esm/api/assessments/operations.d.ts +22 -0
  406. package/dist/esm/api/assessments/operations.js +126 -0
  407. package/dist/esm/api/assessments/operations.js.map +1 -0
  408. package/dist/esm/api/assessments/options.d.ts +18 -0
  409. package/dist/esm/api/assessments/options.js +4 -0
  410. package/dist/esm/api/assessments/options.js.map +1 -0
  411. package/dist/esm/api/configurations/index.d.ts +3 -0
  412. package/dist/esm/api/configurations/index.js +4 -0
  413. package/dist/esm/api/configurations/index.js.map +1 -0
  414. package/dist/esm/api/configurations/operations.d.ts +22 -0
  415. package/dist/esm/api/configurations/operations.js +133 -0
  416. package/dist/esm/api/configurations/operations.js.map +1 -0
  417. package/dist/esm/api/configurations/options.d.ts +14 -0
  418. package/dist/esm/api/configurations/options.js +4 -0
  419. package/dist/esm/api/configurations/options.js.map +1 -0
  420. package/dist/esm/api/index.d.ts +5 -0
  421. package/dist/esm/api/index.js +5 -0
  422. package/dist/esm/api/index.js.map +1 -0
  423. package/dist/esm/api/operations/index.d.ts +3 -0
  424. package/dist/esm/api/operations/index.js +4 -0
  425. package/dist/esm/api/operations/index.js.map +1 -0
  426. package/dist/esm/api/operations/operations.d.ts +10 -0
  427. package/dist/esm/api/operations/operations.js +37 -0
  428. package/dist/esm/api/operations/operations.js.map +1 -0
  429. package/dist/esm/api/operations/options.d.ts +5 -0
  430. package/dist/esm/api/operations/options.js +4 -0
  431. package/dist/esm/api/operations/options.js.map +1 -0
  432. package/dist/esm/api/operations.d.ts +9 -0
  433. package/dist/esm/api/operations.js +36 -0
  434. package/dist/esm/api/operations.js.map +1 -0
  435. package/dist/esm/api/options.d.ts +5 -0
  436. package/dist/esm/api/options.js +4 -0
  437. package/dist/esm/api/options.js.map +1 -0
  438. package/dist/esm/api/recommendationMetadata/index.d.ts +3 -0
  439. package/dist/esm/api/recommendationMetadata/index.js +4 -0
  440. package/dist/esm/api/recommendationMetadata/index.js.map +1 -0
  441. package/dist/esm/api/recommendationMetadata/operations.d.ts +14 -0
  442. package/dist/esm/api/recommendationMetadata/operations.js +73 -0
  443. package/dist/esm/api/recommendationMetadata/operations.js.map +1 -0
  444. package/dist/esm/api/recommendationMetadata/options.d.ts +8 -0
  445. package/dist/esm/api/recommendationMetadata/options.js +4 -0
  446. package/dist/esm/api/recommendationMetadata/options.js.map +1 -0
  447. package/dist/esm/api/recommendations/index.d.ts +3 -0
  448. package/dist/esm/api/recommendations/index.js +4 -0
  449. package/dist/esm/api/recommendations/index.js.map +1 -0
  450. package/dist/esm/api/recommendations/operations.d.ts +30 -0
  451. package/dist/esm/api/recommendations/operations.js +186 -0
  452. package/dist/esm/api/recommendations/operations.js.map +1 -0
  453. package/dist/esm/api/recommendations/options.d.ts +38 -0
  454. package/dist/esm/api/recommendations/options.js +4 -0
  455. package/dist/esm/api/recommendations/options.js.map +1 -0
  456. package/dist/esm/api/resiliencyReviews/index.d.ts +3 -0
  457. package/dist/esm/api/resiliencyReviews/index.js +4 -0
  458. package/dist/esm/api/resiliencyReviews/index.js.map +1 -0
  459. package/dist/esm/api/resiliencyReviews/operations.d.ts +14 -0
  460. package/dist/esm/api/resiliencyReviews/operations.js +70 -0
  461. package/dist/esm/api/resiliencyReviews/operations.js.map +1 -0
  462. package/dist/esm/api/resiliencyReviews/options.d.ts +14 -0
  463. package/dist/esm/api/resiliencyReviews/options.js +4 -0
  464. package/dist/esm/api/resiliencyReviews/options.js.map +1 -0
  465. package/dist/esm/api/suppressions/index.d.ts +3 -0
  466. package/dist/esm/api/suppressions/index.js +4 -0
  467. package/dist/esm/api/suppressions/index.js.map +1 -0
  468. package/dist/esm/api/suppressions/operations.d.ts +22 -0
  469. package/dist/esm/api/suppressions/operations.js +145 -0
  470. package/dist/esm/api/suppressions/operations.js.map +1 -0
  471. package/dist/esm/api/suppressions/options.d.ts +18 -0
  472. package/dist/esm/api/suppressions/options.js +4 -0
  473. package/dist/esm/api/suppressions/options.js.map +1 -0
  474. package/dist/esm/api/triageRecommendations/index.d.ts +3 -0
  475. package/dist/esm/api/triageRecommendations/index.js +4 -0
  476. package/dist/esm/api/triageRecommendations/index.js.map +1 -0
  477. package/dist/esm/api/triageRecommendations/operations.d.ts +26 -0
  478. package/dist/esm/api/triageRecommendations/operations.js +156 -0
  479. package/dist/esm/api/triageRecommendations/operations.js.map +1 -0
  480. package/dist/esm/api/triageRecommendations/options.d.ts +21 -0
  481. package/dist/esm/api/triageRecommendations/options.js +4 -0
  482. package/dist/esm/api/triageRecommendations/options.js.map +1 -0
  483. package/dist/esm/api/triageResources/index.d.ts +3 -0
  484. package/dist/esm/api/triageResources/index.js +4 -0
  485. package/dist/esm/api/triageResources/index.js.map +1 -0
  486. package/dist/esm/api/triageResources/operations.d.ts +14 -0
  487. package/dist/esm/api/triageResources/operations.js +71 -0
  488. package/dist/esm/api/triageResources/operations.js.map +1 -0
  489. package/dist/esm/api/triageResources/options.d.ts +8 -0
  490. package/dist/esm/api/triageResources/options.js +4 -0
  491. package/dist/esm/api/triageResources/options.js.map +1 -0
  492. package/dist/esm/api/workloads/index.d.ts +3 -0
  493. package/dist/esm/api/workloads/index.js +4 -0
  494. package/dist/esm/api/workloads/index.js.map +1 -0
  495. package/dist/esm/api/workloads/operations.d.ts +10 -0
  496. package/dist/esm/api/workloads/operations.js +38 -0
  497. package/dist/esm/api/workloads/operations.js.map +1 -0
  498. package/dist/esm/api/workloads/options.d.ts +5 -0
  499. package/dist/esm/api/workloads/options.js +4 -0
  500. package/dist/esm/api/workloads/options.js.map +1 -0
  501. package/dist/esm/classic/advisorScores/index.d.ts +13 -0
  502. package/dist/esm/classic/advisorScores/index.js +15 -0
  503. package/dist/esm/classic/advisorScores/index.js.map +1 -0
  504. package/dist/esm/classic/assessmentTypes/index.d.ts +11 -0
  505. package/dist/esm/classic/assessmentTypes/index.js +14 -0
  506. package/dist/esm/classic/assessmentTypes/index.js.map +1 -0
  507. package/dist/esm/classic/assessments/index.d.ts +17 -0
  508. package/dist/esm/classic/assessments/index.js +17 -0
  509. package/dist/esm/classic/assessments/index.js.map +1 -0
  510. package/dist/esm/classic/configurations/index.d.ts +17 -0
  511. package/dist/esm/classic/configurations/index.js +17 -0
  512. package/dist/esm/classic/configurations/index.js.map +1 -0
  513. package/dist/esm/classic/index.d.ts +13 -0
  514. package/dist/esm/classic/index.js +4 -0
  515. package/dist/esm/classic/index.js.map +1 -0
  516. package/dist/esm/classic/operations/index.d.ts +11 -0
  517. package/dist/esm/classic/operations/index.js +14 -0
  518. package/dist/esm/classic/operations/index.js.map +1 -0
  519. package/dist/esm/classic/recommendationMetadata/index.d.ts +13 -0
  520. package/dist/esm/classic/recommendationMetadata/index.js +15 -0
  521. package/dist/esm/classic/recommendationMetadata/index.js.map +1 -0
  522. package/dist/esm/classic/recommendations/index.d.ts +21 -0
  523. package/dist/esm/classic/recommendations/index.js +19 -0
  524. package/dist/esm/classic/recommendations/index.js.map +1 -0
  525. package/dist/esm/classic/resiliencyReviews/index.d.ts +13 -0
  526. package/dist/esm/classic/resiliencyReviews/index.js +15 -0
  527. package/dist/esm/classic/resiliencyReviews/index.js.map +1 -0
  528. package/dist/esm/classic/suppressions/index.d.ts +17 -0
  529. package/dist/esm/classic/suppressions/index.js +17 -0
  530. package/dist/esm/classic/suppressions/index.js.map +1 -0
  531. package/dist/esm/classic/triageRecommendations/index.d.ts +19 -0
  532. package/dist/esm/classic/triageRecommendations/index.js +18 -0
  533. package/dist/esm/classic/triageRecommendations/index.js.map +1 -0
  534. package/dist/esm/classic/triageResources/index.d.ts +13 -0
  535. package/dist/esm/classic/triageResources/index.js +15 -0
  536. package/dist/esm/classic/triageResources/index.js.map +1 -0
  537. package/dist/esm/classic/workloads/index.d.ts +11 -0
  538. package/dist/esm/classic/workloads/index.js +14 -0
  539. package/dist/esm/classic/workloads/index.js.map +1 -0
  540. package/dist/esm/index.d.ts +25 -0
  541. package/dist/esm/index.js +8 -0
  542. package/dist/esm/index.js.map +1 -0
  543. package/dist/esm/logger.d.ts +2 -0
  544. package/dist/esm/logger.js +5 -0
  545. package/dist/esm/logger.js.map +1 -0
  546. package/dist/esm/models/index.d.ts +3 -0
  547. package/dist/esm/models/index.js +4 -0
  548. package/dist/esm/models/index.js.map +1 -0
  549. package/dist/esm/models/models.d.ts +1310 -0
  550. package/dist/esm/models/models.js +1155 -0
  551. package/dist/esm/models/models.js.map +1 -0
  552. package/dist/esm/package.json +3 -0
  553. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  554. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  555. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  556. package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
  557. package/dist/esm/static-helpers/pagingHelpers.js +143 -0
  558. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  559. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  560. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  561. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  562. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  563. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  564. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  565. package/package.json +290 -89
  566. package/CHANGELOG.md +0 -48
  567. package/dist/index.js +0 -2133
  568. package/dist/index.js.map +0 -1
  569. package/dist/index.min.js +0 -1
  570. package/dist/index.min.js.map +0 -1
  571. package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.d.ts +0 -2
  572. package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.d.ts.map +0 -1
  573. package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.js +0 -58
  574. package/dist-esm/samples-dev/configurationsCreateInResourceGroupSample.js.map +0 -1
  575. package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.d.ts +0 -2
  576. package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.d.ts.map +0 -1
  577. package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.js +0 -57
  578. package/dist-esm/samples-dev/configurationsCreateInSubscriptionSample.js.map +0 -1
  579. package/dist-esm/samples-dev/configurationsListByResourceGroupSample.d.ts +0 -2
  580. package/dist-esm/samples-dev/configurationsListByResourceGroupSample.d.ts.map +0 -1
  581. package/dist-esm/samples-dev/configurationsListByResourceGroupSample.js +0 -58
  582. package/dist-esm/samples-dev/configurationsListByResourceGroupSample.js.map +0 -1
  583. package/dist-esm/samples-dev/configurationsListBySubscriptionSample.d.ts +0 -2
  584. package/dist-esm/samples-dev/configurationsListBySubscriptionSample.d.ts.map +0 -1
  585. package/dist-esm/samples-dev/configurationsListBySubscriptionSample.js +0 -57
  586. package/dist-esm/samples-dev/configurationsListBySubscriptionSample.js.map +0 -1
  587. package/dist-esm/samples-dev/recommendationMetadataGetSample.d.ts +0 -2
  588. package/dist-esm/samples-dev/recommendationMetadataGetSample.d.ts.map +0 -1
  589. package/dist-esm/samples-dev/recommendationMetadataGetSample.js +0 -36
  590. package/dist-esm/samples-dev/recommendationMetadataGetSample.js.map +0 -1
  591. package/dist-esm/samples-dev/recommendationMetadataListSample.d.ts +0 -2
  592. package/dist-esm/samples-dev/recommendationMetadataListSample.d.ts.map +0 -1
  593. package/dist-esm/samples-dev/recommendationMetadataListSample.js +0 -56
  594. package/dist-esm/samples-dev/recommendationMetadataListSample.js.map +0 -1
  595. package/dist-esm/samples-dev/recommendationsGenerateSample.d.ts +0 -2
  596. package/dist-esm/samples-dev/recommendationsGenerateSample.d.ts.map +0 -1
  597. package/dist-esm/samples-dev/recommendationsGenerateSample.js +0 -36
  598. package/dist-esm/samples-dev/recommendationsGenerateSample.js.map +0 -1
  599. package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.d.ts +0 -2
  600. package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.d.ts.map +0 -1
  601. package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.js +0 -37
  602. package/dist-esm/samples-dev/recommendationsGetGenerateStatusSample.js.map +0 -1
  603. package/dist-esm/samples-dev/recommendationsGetSample.d.ts +0 -2
  604. package/dist-esm/samples-dev/recommendationsGetSample.d.ts.map +0 -1
  605. package/dist-esm/samples-dev/recommendationsGetSample.js +0 -37
  606. package/dist-esm/samples-dev/recommendationsGetSample.js.map +0 -1
  607. package/dist-esm/samples-dev/recommendationsListSample.d.ts +0 -2
  608. package/dist-esm/samples-dev/recommendationsListSample.d.ts.map +0 -1
  609. package/dist-esm/samples-dev/recommendationsListSample.js +0 -59
  610. package/dist-esm/samples-dev/recommendationsListSample.js.map +0 -1
  611. package/dist-esm/samples-dev/suppressionsCreateSample.d.ts +0 -2
  612. package/dist-esm/samples-dev/suppressionsCreateSample.d.ts.map +0 -1
  613. package/dist-esm/samples-dev/suppressionsCreateSample.js +0 -39
  614. package/dist-esm/samples-dev/suppressionsCreateSample.js.map +0 -1
  615. package/dist-esm/samples-dev/suppressionsDeleteSample.d.ts +0 -2
  616. package/dist-esm/samples-dev/suppressionsDeleteSample.d.ts.map +0 -1
  617. package/dist-esm/samples-dev/suppressionsDeleteSample.js +0 -38
  618. package/dist-esm/samples-dev/suppressionsDeleteSample.js.map +0 -1
  619. package/dist-esm/samples-dev/suppressionsGetSample.d.ts +0 -2
  620. package/dist-esm/samples-dev/suppressionsGetSample.d.ts.map +0 -1
  621. package/dist-esm/samples-dev/suppressionsGetSample.js +0 -38
  622. package/dist-esm/samples-dev/suppressionsGetSample.js.map +0 -1
  623. package/dist-esm/samples-dev/suppressionsListSample.d.ts +0 -2
  624. package/dist-esm/samples-dev/suppressionsListSample.d.ts.map +0 -1
  625. package/dist-esm/samples-dev/suppressionsListSample.js +0 -57
  626. package/dist-esm/samples-dev/suppressionsListSample.js.map +0 -1
  627. package/dist-esm/src/advisorManagementClient.d.ts +0 -25
  628. package/dist-esm/src/advisorManagementClient.d.ts.map +0 -1
  629. package/dist-esm/src/advisorManagementClient.js +0 -102
  630. package/dist-esm/src/advisorManagementClient.js.map +0 -1
  631. package/dist-esm/src/index.d.ts +0 -6
  632. package/dist-esm/src/index.d.ts.map +0 -1
  633. package/dist-esm/src/index.js +0 -13
  634. package/dist-esm/src/index.js.map +0 -1
  635. package/dist-esm/src/models/index.d.ts +0 -466
  636. package/dist-esm/src/models/index.d.ts.map +0 -1
  637. package/dist-esm/src/models/index.js +0 -74
  638. package/dist-esm/src/models/index.js.map +0 -1
  639. package/dist-esm/src/models/mappers.d.ts +0 -21
  640. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  641. package/dist-esm/src/models/mappers.js +0 -649
  642. package/dist-esm/src/models/mappers.js.map +0 -1
  643. package/dist-esm/src/models/parameters.d.ts +0 -19
  644. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  645. package/dist-esm/src/models/parameters.js +0 -169
  646. package/dist-esm/src/models/parameters.js.map +0 -1
  647. package/dist-esm/src/operations/configurations.d.ts +0 -62
  648. package/dist-esm/src/operations/configurations.d.ts.map +0 -1
  649. package/dist-esm/src/operations/configurations.js +0 -289
  650. package/dist-esm/src/operations/configurations.js.map +0 -1
  651. package/dist-esm/src/operations/index.d.ts +0 -6
  652. package/dist-esm/src/operations/index.d.ts.map +0 -1
  653. package/dist-esm/src/operations/index.js +0 -13
  654. package/dist-esm/src/operations/index.js.map +0 -1
  655. package/dist-esm/src/operations/operations.d.ts +0 -32
  656. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  657. package/dist-esm/src/operations/operations.js +0 -138
  658. package/dist-esm/src/operations/operations.js.map +0 -1
  659. package/dist-esm/src/operations/recommendationMetadata.d.ts +0 -38
  660. package/dist-esm/src/operations/recommendationMetadata.d.ts.map +0 -1
  661. package/dist-esm/src/operations/recommendationMetadata.js +0 -166
  662. package/dist-esm/src/operations/recommendationMetadata.js.map +0 -1
  663. package/dist-esm/src/operations/recommendations.d.ts +0 -57
  664. package/dist-esm/src/operations/recommendations.d.ts.map +0 -1
  665. package/dist-esm/src/operations/recommendations.js +0 -233
  666. package/dist-esm/src/operations/recommendations.js.map +0 -1
  667. package/dist-esm/src/operations/suppressions.d.ts +0 -65
  668. package/dist-esm/src/operations/suppressions.d.ts.map +0 -1
  669. package/dist-esm/src/operations/suppressions.js +0 -256
  670. package/dist-esm/src/operations/suppressions.js.map +0 -1
  671. package/dist-esm/src/operationsInterfaces/configurations.d.ts +0 -33
  672. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +0 -1
  673. package/dist-esm/src/operationsInterfaces/configurations.js +0 -9
  674. package/dist-esm/src/operationsInterfaces/configurations.js.map +0 -1
  675. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -6
  676. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  677. package/dist-esm/src/operationsInterfaces/index.js +0 -13
  678. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  679. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  680. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  681. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  682. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  683. package/dist-esm/src/operationsInterfaces/recommendationMetadata.d.ts +0 -17
  684. package/dist-esm/src/operationsInterfaces/recommendationMetadata.d.ts.map +0 -1
  685. package/dist-esm/src/operationsInterfaces/recommendationMetadata.js +0 -9
  686. package/dist-esm/src/operationsInterfaces/recommendationMetadata.js.map +0 -1
  687. package/dist-esm/src/operationsInterfaces/recommendations.d.ts +0 -35
  688. package/dist-esm/src/operationsInterfaces/recommendations.d.ts.map +0 -1
  689. package/dist-esm/src/operationsInterfaces/recommendations.js +0 -9
  690. package/dist-esm/src/operationsInterfaces/recommendations.js.map +0 -1
  691. package/dist-esm/src/operationsInterfaces/suppressions.d.ts +0 -43
  692. package/dist-esm/src/operationsInterfaces/suppressions.d.ts.map +0 -1
  693. package/dist-esm/src/operationsInterfaces/suppressions.js +0 -9
  694. package/dist-esm/src/operationsInterfaces/suppressions.js.map +0 -1
  695. package/dist-esm/src/pagingHelper.d.ts +0 -13
  696. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  697. package/dist-esm/src/pagingHelper.js +0 -32
  698. package/dist-esm/src/pagingHelper.js.map +0 -1
  699. package/dist-esm/test/advisor_operations_test.spec.d.ts +0 -4
  700. package/dist-esm/test/advisor_operations_test.spec.d.ts.map +0 -1
  701. package/dist-esm/test/advisor_operations_test.spec.js +0 -78
  702. package/dist-esm/test/advisor_operations_test.spec.js.map +0 -1
  703. package/review/arm-advisor.api.md +0 -446
  704. package/rollup.config.js +0 -122
  705. package/src/advisorManagementClient.ts +0 -174
  706. package/src/index.ts +0 -13
  707. package/src/models/index.ts +0 -538
  708. package/src/models/mappers.ts +0 -700
  709. package/src/models/parameters.ts +0 -194
  710. package/src/operations/configurations.ts +0 -336
  711. package/src/operations/index.ts +0 -13
  712. package/src/operations/operations.ts +0 -149
  713. package/src/operations/recommendationMetadata.ts +0 -186
  714. package/src/operations/recommendations.ts +0 -271
  715. package/src/operations/suppressions.ts +0 -304
  716. package/src/operationsInterfaces/configurations.ts +0 -65
  717. package/src/operationsInterfaces/index.ts +0 -13
  718. package/src/operationsInterfaces/operations.ts +0 -22
  719. package/src/operationsInterfaces/recommendationMetadata.ts +0 -36
  720. package/src/operationsInterfaces/recommendations.ts +0 -63
  721. package/src/operationsInterfaces/suppressions.ts +0 -78
  722. package/src/pagingHelper.ts +0 -39
  723. package/tsconfig.json +0 -33
  724. package/types/arm-advisor.d.ts +0 -700
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAgB/F,MAAM,UAAU,2BAA2B,CAAC,IAAuB;IACjE,OAAO;QACL,UAAU,EAAE,oBAAoB,CAAC,IAAI,EAAE,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BAAiB,CAAC;QACxC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC3F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,IAAS;IACzD,OAAO;QACL,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,eAAe,EAAE,IAAI,CAAC,iBAAiB,CAAC;QACxC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { areAllPropsUndefined } from \"../static-helpers/serialization/check-prop-undefined.js\";\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** Parameters for predict recommendation. */\nexport interface PredictionRequest {\n /** Type of the prediction. */\n predictionType?: PredictionType;\n /** Extended properties are arguments specific for each prediction type. */\n extendedProperties?: Record<string, unknown>;\n}\n\nexport function predictionRequestSerializer(item: PredictionRequest): any {\n return {\n properties: areAllPropsUndefined(item, [\"predictionType\", \"extendedProperties\"])\n ? undefined\n : _predictionRequestPropertiesSerializer(item),\n };\n}\n\n/** Properties given for the predictor. */\nexport interface PredictionRequestProperties {\n /** Type of the prediction. */\n predictionType?: PredictionType;\n /** Extended properties are arguments specific for each prediction type. */\n extendedProperties?: Record<string, unknown>;\n}\n\nexport function predictionRequestPropertiesSerializer(item: PredictionRequestProperties): any {\n return { predictionType: item[\"predictionType\"], extendedProperties: item[\"extendedProperties\"] };\n}\n\n/** Type of the prediction. */\nexport enum KnownPredictionType {\n /** PredictiveRightsizing */\n PredictiveRightsizing = \"PredictiveRightsizing\",\n}\n\n/**\n * Type of the prediction. \\\n * {@link KnownPredictionType} can be used interchangeably with PredictionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **PredictiveRightsizing**\n */\nexport type PredictionType = string;\n\n/** Response used by predictions. */\nexport interface PredictionResponse {\n /** Extended properties */\n extendedProperties?: Record<string, unknown>;\n /** Type of the prediction. */\n predictionType?: PredictionType;\n /** The category of the recommendation. */\n category?: Category;\n /** The business impact of the recommendation. */\n impact?: Impact;\n /** The resource type identified by Advisor. */\n impactedField?: string;\n /** The most recent time that Advisor checked the validity of the recommendation. */\n lastUpdated?: Date;\n /** A summary of the recommendation. */\n shortDescription?: ShortDescription;\n}\n\nexport function predictionResponseDeserializer(item: any): PredictionResponse {\n return {\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _predictionResponsePropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Properties of the prediction */\nexport interface PredictionResponseProperties {\n /** Extended properties */\n extendedProperties?: Record<string, unknown>;\n /** Type of the prediction. */\n predictionType?: PredictionType;\n /** The category of the recommendation. */\n category?: Category;\n /** The business impact of the recommendation. */\n impact?: Impact;\n /** The resource type identified by Advisor. */\n impactedField?: string;\n /** The most recent time that Advisor checked the validity of the recommendation. */\n lastUpdated?: Date;\n /** A summary of the recommendation. */\n shortDescription?: ShortDescription;\n}\n\nexport function predictionResponsePropertiesDeserializer(item: any): PredictionResponseProperties {\n return {\n extendedProperties: item[\"extendedProperties\"],\n predictionType: item[\"predictionType\"],\n category: item[\"category\"],\n impact: item[\"impact\"],\n impactedField: item[\"impactedField\"],\n lastUpdated: !item[\"lastUpdated\"] ? item[\"lastUpdated\"] : new Date(item[\"lastUpdated\"]),\n shortDescription: !item[\"shortDescription\"]\n ? item[\"shortDescription\"]\n : shortDescriptionDeserializer(item[\"shortDescription\"]),\n };\n}\n\n/** The category of the recommendation. */\nexport enum KnownCategory {\n /** HighAvailability */\n HighAvailability = \"HighAvailability\",\n /** Security */\n Security = \"Security\",\n /** Performance */\n Performance = \"Performance\",\n /** Cost */\n Cost = \"Cost\",\n /** OperationalExcellence */\n OperationalExcellence = \"OperationalExcellence\",\n}\n\n/**\n * The category of the recommendation. \\\n * {@link KnownCategory} can be used interchangeably with Category,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **HighAvailability** \\\n * **Security** \\\n * **Performance** \\\n * **Cost** \\\n * **OperationalExcellence**\n */\nexport type Category = string;\n\n/** The business impact of the recommendation. */\nexport enum KnownImpact {\n /** High */\n High = \"High\",\n /** Medium */\n Medium = \"Medium\",\n /** Low */\n Low = \"Low\",\n}\n\n/**\n * The business impact of the recommendation. \\\n * {@link KnownImpact} can be used interchangeably with Impact,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **High** \\\n * **Medium** \\\n * **Low**\n */\nexport type Impact = string;\n\n/** A summary of the recommendation. */\nexport interface ShortDescription {\n /** The issue or opportunity identified by the recommendation and proposed solution. */\n problem?: string;\n /** The issue or opportunity identified by the recommendation and proposed solution. */\n solution?: string;\n}\n\nexport function shortDescriptionDeserializer(item: any): ShortDescription {\n return {\n problem: item[\"problem\"],\n solution: item[\"solution\"],\n };\n}\n\n/** model interface ArmErrorResponse */\nexport interface ArmErrorResponse {\n /** ARM error response body. */\n error?: ARMErrorResponseBody;\n}\n\nexport function armErrorResponseDeserializer(item: any): ArmErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : armErrorResponseBodyDeserializer(item[\"error\"]),\n };\n}\n\n/** ARM error response body. */\nexport interface ARMErrorResponseBody {\n /** Gets or sets the string that describes the error in detail and provides debugging information. */\n message?: string;\n /** Gets or sets the string that can be used to programmatically identify the error. */\n code?: string;\n}\n\nexport function armErrorResponseBodyDeserializer(item: any): ARMErrorResponseBody {\n return {\n message: item[\"message\"],\n code: item[\"code\"],\n };\n}\n\n/** Paged collection of OperationEntity items */\nexport interface _OperationEntityListResult {\n /** The OperationEntity items on this page */\n value: OperationEntity[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationEntityListResultDeserializer(item: any): _OperationEntityListResult {\n return {\n value: operationEntityArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationEntityArrayDeserializer(result: Array<OperationEntity>): any[] {\n return result.map((item) => {\n return operationEntityDeserializer(item);\n });\n}\n\n/** The operation supported by Advisor. */\nexport interface OperationEntity {\n /** Operation name: {provider}/{resource}/{operation}. */\n name?: string;\n /** The operation supported by Advisor. */\n display?: OperationDisplayInfo;\n}\n\nexport function operationEntityDeserializer(item: any): OperationEntity {\n return {\n name: item[\"name\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayInfoDeserializer(item[\"display\"]),\n };\n}\n\n/** The operation supported by Advisor. */\nexport interface OperationDisplayInfo {\n /** The description of the operation. */\n description?: string;\n /** The action that users can perform, based on their permission level. */\n operation?: string;\n /** Service provider: Microsoft Advisor. */\n provider?: string;\n /** Resource on which the operation is performed. */\n resource?: string;\n}\n\nexport function operationDisplayInfoDeserializer(item: any): OperationDisplayInfo {\n return {\n description: item[\"description\"],\n operation: item[\"operation\"],\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n };\n}\n\n/** The metadata entity contract. */\nexport interface MetadataEntity extends ProxyResource {\n /** The display name. */\n displayName?: string;\n /** The list of keys on which this entity depends on. */\n dependsOn?: string[];\n /** The list of scenarios applicable to this metadata entity. */\n applicableScenarios?: Scenario[];\n /** The list of supported values. */\n supportedValues?: MetadataSupportedValueDetail[];\n}\n\nexport function metadataEntityDeserializer(item: any): MetadataEntity {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _metadataEntityPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The metadata entity properties */\nexport interface MetadataEntityProperties {\n /** The display name. */\n displayName?: string;\n /** The list of keys on which this entity depends on. */\n dependsOn?: string[];\n /** The list of scenarios applicable to this metadata entity. */\n applicableScenarios?: Scenario[];\n /** The list of supported values. */\n supportedValues?: MetadataSupportedValueDetail[];\n}\n\nexport function metadataEntityPropertiesDeserializer(item: any): MetadataEntityProperties {\n return {\n displayName: item[\"displayName\"],\n dependsOn: !item[\"dependsOn\"]\n ? item[\"dependsOn\"]\n : item[\"dependsOn\"].map((p: any) => {\n return p;\n }),\n applicableScenarios: !item[\"applicableScenarios\"]\n ? item[\"applicableScenarios\"]\n : item[\"applicableScenarios\"].map((p: any) => {\n return p;\n }),\n supportedValues: !item[\"supportedValues\"]\n ? item[\"supportedValues\"]\n : metadataSupportedValueDetailArrayDeserializer(item[\"supportedValues\"]),\n };\n}\n\n/** The list of scenarios applicable to this metadata entity. */\nexport enum KnownScenario {\n /** Alerts */\n Alerts = \"Alerts\",\n}\n\n/**\n * The list of scenarios applicable to this metadata entity. \\\n * {@link KnownScenario} can be used interchangeably with Scenario,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Alerts**\n */\nexport type Scenario = string;\n\nexport function metadataSupportedValueDetailArrayDeserializer(\n result: Array<MetadataSupportedValueDetail>,\n): any[] {\n return result.map((item) => {\n return metadataSupportedValueDetailDeserializer(item);\n });\n}\n\n/** The metadata supported value detail. */\nexport interface MetadataSupportedValueDetail {\n /** The id. */\n id?: string;\n /** The display name. */\n displayName?: string;\n}\n\nexport function metadataSupportedValueDetailDeserializer(item: any): MetadataSupportedValueDetail {\n return {\n id: item[\"id\"],\n displayName: item[\"displayName\"],\n };\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(_item: ProxyResource): any {\n return {};\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The response of a MetadataEntity list operation. */\nexport interface _MetadataEntityListResult {\n /** The MetadataEntity items on this page */\n value: MetadataEntity[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _metadataEntityListResultDeserializer(item: any): _MetadataEntityListResult {\n return {\n value: metadataEntityArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function metadataEntityArrayDeserializer(result: Array<MetadataEntity>): any[] {\n return result.map((item) => {\n return metadataEntityDeserializer(item);\n });\n}\n\n/** Advisor Recommendation. */\nexport interface ResourceRecommendationBase extends ExtensionResource {\n /** The category of the recommendation. */\n category?: Category;\n /** The sub-category of the recommendation. */\n control?: Control;\n /** The business impact of the recommendation. */\n impact?: Impact;\n /** The resource type identified by Advisor. */\n impactedField?: string;\n /** The resource identified by Advisor. */\n impactedValue?: string;\n /** The state of the Recommendation */\n recommendationStatus?: RecommendationStatus;\n /** The type of recommendation completion, which is either MarkedByUser or SystemVerified */\n completionType?: string;\n /** The reason the Recommendation was dismissed. */\n recommendationDismissReason?: RecommendationDismissReason;\n /** The time the Recommendation was postponed until. */\n postponedUntilDateTime?: Date;\n /** The most recent time Advisor evaluated the recommendation for validity (re-ingested). */\n lastRefreshed?: Date;\n /** The most recent time the recommendation state changed (manual or automated). */\n lastUpdated?: Date;\n /** The created time of the recommendation. */\n createdTime?: Date;\n /** The recommendation metadata. */\n metadata?: Record<string, Record<string, unknown>>;\n /** The recommendation-type GUID. */\n recommendationTypeId?: string;\n /** The potential risk of not implementing the recommendation. */\n risk?: Risk;\n /** A summary of the recommendation. */\n shortDescription?: ShortDescription;\n /** The single snoozed or dismissed rule for the recommendation. */\n suppressionId?: string;\n /** Extended properties */\n extendedProperties?: Record<string, string>;\n /** Metadata of resource that was assessed */\n resourceMetadata?: ResourceMetadata;\n /** The detailed description of recommendation. */\n description?: string;\n /** The label of recommendation. */\n label?: string;\n /** The link to learn more about recommendation and generation logic. */\n learnMoreLink?: string;\n /** The potential benefit of implementing recommendation. */\n potentialBenefits?: string;\n /** The list of recommended actions to implement recommendation. */\n actions?: Record<string, Record<string, unknown>>[];\n /** The automated way to apply recommendation. */\n remediation?: Record<string, Record<string, unknown>>;\n /** The recommendation metadata properties exposed to customer to provide additional information. */\n exposedMetadataProperties?: Record<string, Record<string, unknown>>;\n /** The properties of a tracked recommendation. */\n trackedProperties?: TrackedRecommendationProperties;\n /** The Review that this Recommendation belongs to. */\n review?: RecommendationPropertiesReview;\n /** The Workload that this Resource belongs to. */\n resourceWorkload?: RecommendationPropertiesResourceWorkload;\n /** The Source System that this Recommendation originated from. */\n sourceSystem?: string;\n /** Additional notes for the Recommendation */\n notes?: string;\n}\n\nexport function resourceRecommendationBaseDeserializer(item: any): ResourceRecommendationBase {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _resourceRecommendationBasePropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The properties of the recommendation. */\nexport interface RecommendationProperties {\n /** The category of the recommendation. */\n category?: Category;\n /** The sub-category of the recommendation. */\n control?: Control;\n /** The business impact of the recommendation. */\n impact?: Impact;\n /** The resource type identified by Advisor. */\n impactedField?: string;\n /** The resource identified by Advisor. */\n impactedValue?: string;\n /** The state of the Recommendation */\n recommendationStatus?: RecommendationStatus;\n /** The type of recommendation completion, which is either MarkedByUser or SystemVerified */\n completionType?: string;\n /** The reason the Recommendation was dismissed. */\n recommendationDismissReason?: RecommendationDismissReason;\n /** The time the Recommendation was postponed until. */\n postponedUntilDateTime?: Date;\n /** The most recent time Advisor evaluated the recommendation for validity (re-ingested). */\n lastRefreshed?: Date;\n /** The most recent time the recommendation state changed (manual or automated). */\n lastUpdated?: Date;\n /** The created time of the recommendation. */\n createdTime?: Date;\n /** The recommendation metadata. */\n metadata?: Record<string, Record<string, unknown>>;\n /** The recommendation-type GUID. */\n recommendationTypeId?: string;\n /** The potential risk of not implementing the recommendation. */\n risk?: Risk;\n /** A summary of the recommendation. */\n shortDescription?: ShortDescription;\n /** The single snoozed or dismissed rule for the recommendation. */\n suppressionId?: string;\n /** Extended properties */\n extendedProperties?: Record<string, string>;\n /** Metadata of resource that was assessed */\n resourceMetadata?: ResourceMetadata;\n /** The detailed description of recommendation. */\n description?: string;\n /** The label of recommendation. */\n label?: string;\n /** The link to learn more about recommendation and generation logic. */\n learnMoreLink?: string;\n /** The potential benefit of implementing recommendation. */\n potentialBenefits?: string;\n /** The list of recommended actions to implement recommendation. */\n actions?: Record<string, Record<string, unknown>>[];\n /** The automated way to apply recommendation. */\n remediation?: Record<string, Record<string, unknown>>;\n /** The recommendation metadata properties exposed to customer to provide additional information. */\n exposedMetadataProperties?: Record<string, Record<string, unknown>>;\n /** The properties of a tracked recommendation. */\n trackedProperties?: TrackedRecommendationProperties;\n /** The Review that this Recommendation belongs to. */\n review?: RecommendationPropertiesReview;\n /** The Workload that this Resource belongs to. */\n resourceWorkload?: RecommendationPropertiesResourceWorkload;\n /** The Source System that this Recommendation originated from. */\n sourceSystem?: string;\n /** Additional notes for the Recommendation */\n notes?: string;\n}\n\nexport function recommendationPropertiesDeserializer(item: any): RecommendationProperties {\n return {\n category: item[\"category\"],\n control: item[\"control\"],\n impact: item[\"impact\"],\n impactedField: item[\"impactedField\"],\n impactedValue: item[\"impactedValue\"],\n recommendationStatus: item[\"recommendationStatus\"],\n completionType: item[\"completionType\"],\n recommendationDismissReason: item[\"recommendationDismissReason\"],\n postponedUntilDateTime: !item[\"postponedUntilDateTime\"]\n ? item[\"postponedUntilDateTime\"]\n : new Date(item[\"postponedUntilDateTime\"]),\n lastRefreshed: !item[\"lastRefreshed\"] ? item[\"lastRefreshed\"] : new Date(item[\"lastRefreshed\"]),\n lastUpdated: !item[\"lastUpdated\"] ? item[\"lastUpdated\"] : new Date(item[\"lastUpdated\"]),\n createdTime: !item[\"createdTime\"] ? item[\"createdTime\"] : new Date(item[\"createdTime\"]),\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : Object.fromEntries(Object.entries(item[\"metadata\"]).map(([k, p]: [string, any]) => [k, p])),\n recommendationTypeId: item[\"recommendationTypeId\"],\n risk: item[\"risk\"],\n shortDescription: !item[\"shortDescription\"]\n ? item[\"shortDescription\"]\n : shortDescriptionDeserializer(item[\"shortDescription\"]),\n suppressionId: item[\"suppressionId\"],\n extendedProperties: !item[\"extendedProperties\"]\n ? item[\"extendedProperties\"]\n : Object.fromEntries(\n Object.entries(item[\"extendedProperties\"]).map(([k, p]: [string, any]) => [k, p]),\n ),\n resourceMetadata: !item[\"resourceMetadata\"]\n ? item[\"resourceMetadata\"]\n : resourceMetadataDeserializer(item[\"resourceMetadata\"]),\n description: item[\"description\"],\n label: item[\"label\"],\n learnMoreLink: item[\"learnMoreLink\"],\n potentialBenefits: item[\"potentialBenefits\"],\n actions: !item[\"actions\"]\n ? item[\"actions\"]\n : item[\"actions\"].map((p: any) => {\n return Object.fromEntries(Object.entries(p).map(([k1, p1]: [string, any]) => [k1, p1]));\n }),\n remediation: !item[\"remediation\"]\n ? item[\"remediation\"]\n : Object.fromEntries(\n Object.entries(item[\"remediation\"]).map(([k, p]: [string, any]) => [k, p]),\n ),\n exposedMetadataProperties: !item[\"exposedMetadataProperties\"]\n ? item[\"exposedMetadataProperties\"]\n : Object.fromEntries(\n Object.entries(item[\"exposedMetadataProperties\"]).map(([k, p]: [string, any]) => [k, p]),\n ),\n trackedProperties: !item[\"trackedProperties\"]\n ? item[\"trackedProperties\"]\n : trackedRecommendationPropertiesDeserializer(item[\"trackedProperties\"]),\n review: !item[\"review\"]\n ? item[\"review\"]\n : recommendationPropertiesReviewDeserializer(item[\"review\"]),\n resourceWorkload: !item[\"resourceWorkload\"]\n ? item[\"resourceWorkload\"]\n : recommendationPropertiesResourceWorkloadDeserializer(item[\"resourceWorkload\"]),\n sourceSystem: item[\"sourceSystem\"],\n notes: item[\"notes\"],\n };\n}\n\n/** The sub-category of the recommendation. */\nexport enum KnownControl {\n /** HighAvailability */\n HighAvailability = \"HighAvailability\",\n /** BusinessContinuity */\n BusinessContinuity = \"BusinessContinuity\",\n /** DisasterRecovery */\n DisasterRecovery = \"DisasterRecovery\",\n /** Scalability */\n Scalability = \"Scalability\",\n /** MonitoringAndAlerting */\n MonitoringAndAlerting = \"MonitoringAndAlerting\",\n /** ServiceUpgradeAndRetirement */\n ServiceUpgradeAndRetirement = \"ServiceUpgradeAndRetirement\",\n /** Other */\n Other = \"Other\",\n /** PrioritizedRecommendations */\n PrioritizedRecommendations = \"PrioritizedRecommendations\",\n /** Personalized */\n Personalized = \"Personalized\",\n}\n\n/**\n * The sub-category of the recommendation. \\\n * {@link KnownControl} can be used interchangeably with Control,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **HighAvailability** \\\n * **BusinessContinuity** \\\n * **DisasterRecovery** \\\n * **Scalability** \\\n * **MonitoringAndAlerting** \\\n * **ServiceUpgradeAndRetirement** \\\n * **Other** \\\n * **PrioritizedRecommendations** \\\n * **Personalized**\n */\nexport type Control = string;\n\n/** The state of the Recommendation applicable from v2026-02-01-preview. */\nexport enum KnownRecommendationStatus {\n /** New */\n New = \"New\",\n /** Postponed */\n Postponed = \"Postponed\",\n /** Dismissed */\n Dismissed = \"Dismissed\",\n /** Completed */\n Completed = \"Completed\",\n}\n\n/**\n * The state of the Recommendation applicable from v2026-02-01-preview. \\\n * {@link KnownRecommendationStatus} can be used interchangeably with RecommendationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **New** \\\n * **Postponed** \\\n * **Dismissed** \\\n * **Completed**\n */\nexport type RecommendationStatus = string;\n\n/** The reason for dismissing the Recommendation. */\nexport enum KnownRecommendationDismissReason {\n /** ExcessiveCostInvestmentRequired */\n ExcessiveCostInvestmentRequired = \"ExcessiveCostInvestmentRequired\",\n /** TooComplexOrImpracticalToImplement */\n TooComplexOrImpracticalToImplement = \"TooComplexOrImpracticalToImplement\",\n /** AnAlternativeSolutionIsAlreadyInPlace */\n AnAlternativeSolutionIsAlreadyInPlace = \"AnAlternativeSolutionIsAlreadyInPlace\",\n /** IncompatibleWithTheCurrentConfiguration */\n IncompatibleWithTheCurrentConfiguration = \"IncompatibleWithTheCurrentConfiguration\",\n /** ImplementationStepsAreUnclear */\n ImplementationStepsAreUnclear = \"ImplementationStepsAreUnclear\",\n /** RiskIsAcceptable */\n RiskIsAcceptable = \"RiskIsAcceptable\",\n /** Other */\n Other = \"Other\",\n}\n\n/**\n * The reason for dismissing the Recommendation. \\\n * {@link KnownRecommendationDismissReason} can be used interchangeably with RecommendationDismissReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ExcessiveCostInvestmentRequired** \\\n * **TooComplexOrImpracticalToImplement** \\\n * **AnAlternativeSolutionIsAlreadyInPlace** \\\n * **IncompatibleWithTheCurrentConfiguration** \\\n * **ImplementationStepsAreUnclear** \\\n * **RiskIsAcceptable** \\\n * **Other**\n */\nexport type RecommendationDismissReason = string;\n\n/** The potential risk of not implementing the recommendation. */\nexport enum KnownRisk {\n /** Error */\n Error = \"Error\",\n /** Warning */\n Warning = \"Warning\",\n /** None */\n None = \"None\",\n}\n\n/**\n * The potential risk of not implementing the recommendation. \\\n * {@link KnownRisk} can be used interchangeably with Risk,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Error** \\\n * **Warning** \\\n * **None**\n */\nexport type Risk = string;\n\n/** Recommendation resource metadata */\nexport interface ResourceMetadata {\n /** Azure resource Id of the assessed resource */\n resourceId?: string;\n /** Source from which recommendation is generated */\n source?: string;\n /** The action to view resource. */\n action?: Record<string, Record<string, unknown>>;\n /** The singular user friendly name of resource type. eg: virtual machine */\n singular?: string;\n /** The plural user friendly name of resource type. eg: virtual machines */\n plural?: string;\n}\n\nexport function resourceMetadataDeserializer(item: any): ResourceMetadata {\n return {\n resourceId: item[\"resourceId\"],\n source: item[\"source\"],\n action: !item[\"action\"]\n ? item[\"action\"]\n : Object.fromEntries(Object.entries(item[\"action\"]).map(([k, p]: [string, any]) => [k, p])),\n singular: item[\"singular\"],\n plural: item[\"plural\"],\n };\n}\n\n/** The tracked properties of a Recommendation */\nexport interface TrackedRecommendationProperties {\n /** The Priority of the Recommendation. */\n priority?: Priority;\n}\n\nexport function trackedRecommendationPropertiesDeserializer(\n item: any,\n): TrackedRecommendationProperties {\n return {\n priority: item[\"priority\"],\n };\n}\n\n/** The Priority of the Recommendation. */\nexport enum KnownPriority {\n /** Critical */\n Critical = \"Critical\",\n /** High */\n High = \"High\",\n /** Medium */\n Medium = \"Medium\",\n /** Low */\n Low = \"Low\",\n /** Informational */\n Informational = \"Informational\",\n}\n\n/**\n * The Priority of the Recommendation. \\\n * {@link KnownPriority} can be used interchangeably with Priority,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Critical** \\\n * **High** \\\n * **Medium** \\\n * **Low** \\\n * **Informational**\n */\nexport type Priority = string;\n\n/** The Review that this Recommendation belongs to. */\nexport interface RecommendationPropertiesReview {\n /** The ARM Resource Id of the Review */\n id?: string;\n /** The Name of the Review */\n name?: string;\n}\n\nexport function recommendationPropertiesReviewDeserializer(\n item: any,\n): RecommendationPropertiesReview {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n };\n}\n\n/** The Workload that this Resource belongs to. */\nexport interface RecommendationPropertiesResourceWorkload {\n /** The Id of the Workload */\n id?: string;\n /** The Name of the Workload */\n name?: string;\n}\n\nexport function recommendationPropertiesResourceWorkloadDeserializer(\n item: any,\n): RecommendationPropertiesResourceWorkload {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n };\n}\n\n/** The base extension resource. */\nexport interface ExtensionResource extends Resource {}\n\nexport function extensionResourceSerializer(_item: ExtensionResource): any {\n return {};\n}\n\nexport function extensionResourceDeserializer(item: any): ExtensionResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The recommendation patch payload. */\nexport interface RecommendationPatchPayload {\n /** The properties for recommendation patch payload. */\n properties?: RecommendationStatePropertiesPayload;\n}\n\nexport function recommendationPatchPayloadSerializer(item: RecommendationPatchPayload): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : recommendationStatePropertiesPayloadSerializer(item[\"properties\"]),\n };\n}\n\n/** Properties for recommendation state patch payload. */\nexport interface RecommendationStatePropertiesPayload {\n /** The state of the recommendation. */\n recommendationStatus?: RecommendationStatus;\n /** The reason the state of the Recommendation was changed. */\n recommendationDismissReason?: RecommendationDismissReason;\n /** The time the Recommendation was postponed until. */\n postponedUntilDateTime?: Date;\n}\n\nexport function recommendationStatePropertiesPayloadSerializer(\n item: RecommendationStatePropertiesPayload,\n): any {\n return {\n recommendationStatus: item[\"recommendationStatus\"],\n recommendationDismissReason: item[\"recommendationDismissReason\"],\n postponedUntilDateTime: !item[\"postponedUntilDateTime\"]\n ? item[\"postponedUntilDateTime\"]\n : item[\"postponedUntilDateTime\"].toISOString(),\n };\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, unknown>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The response of a ResourceRecommendationBase list operation. */\nexport interface _ResourceRecommendationBaseListResult {\n /** The ResourceRecommendationBase items on this page */\n value: ResourceRecommendationBase[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _resourceRecommendationBaseListResultDeserializer(\n item: any,\n): _ResourceRecommendationBaseListResult {\n return {\n value: resourceRecommendationBaseArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function resourceRecommendationBaseArrayDeserializer(\n result: Array<ResourceRecommendationBase>,\n): any[] {\n return result.map((item) => {\n return resourceRecommendationBaseDeserializer(item);\n });\n}\n\n/** The details of the snoozed or dismissed rule; for example, the duration, name, and GUID associated with the rule. */\nexport interface SuppressionContract extends ExtensionResource {\n /** The GUID of the suppression. */\n suppressionId?: string;\n /** The duration for which the suppression is valid. */\n ttl?: string;\n /** Gets or sets the expiration time stamp. */\n readonly expirationTimeStamp?: Date;\n}\n\nexport function suppressionContractSerializer(item: SuppressionContract): any {\n return {\n properties: areAllPropsUndefined(item, [\"suppressionId\", \"ttl\"])\n ? undefined\n : _suppressionContractPropertiesSerializer(item),\n };\n}\n\nexport function suppressionContractDeserializer(item: any): SuppressionContract {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _suppressionContractPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The properties of the suppression. */\nexport interface SuppressionProperties {\n /** The GUID of the suppression. */\n suppressionId?: string;\n /** The duration for which the suppression is valid. */\n ttl?: string;\n /** Gets or sets the expiration time stamp. */\n readonly expirationTimeStamp?: Date;\n}\n\nexport function suppressionPropertiesSerializer(item: SuppressionProperties): any {\n return { suppressionId: item[\"suppressionId\"], ttl: item[\"ttl\"] };\n}\n\nexport function suppressionPropertiesDeserializer(item: any): SuppressionProperties {\n return {\n suppressionId: item[\"suppressionId\"],\n ttl: item[\"ttl\"],\n expirationTimeStamp: !item[\"expirationTimeStamp\"]\n ? item[\"expirationTimeStamp\"]\n : new Date(item[\"expirationTimeStamp\"]),\n };\n}\n\n/** The response of a SuppressionContract list operation. */\nexport interface _SuppressionContractListResult {\n /** The SuppressionContract items on this page */\n value: SuppressionContract[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _suppressionContractListResultDeserializer(\n item: any,\n): _SuppressionContractListResult {\n return {\n value: suppressionContractArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function suppressionContractArraySerializer(result: Array<SuppressionContract>): any[] {\n return result.map((item) => {\n return suppressionContractSerializer(item);\n });\n}\n\nexport function suppressionContractArrayDeserializer(result: Array<SuppressionContract>): any[] {\n return result.map((item) => {\n return suppressionContractDeserializer(item);\n });\n}\n\n/** The details of Advisor score for a single category. */\nexport interface AdvisorScoreEntity extends ProxyResource {\n /** The details of latest available score. */\n lastRefreshedScore?: ScoreEntity;\n /** The historic Advisor score data. */\n timeSeries?: TimeSeriesEntity[];\n}\n\nexport function advisorScoreEntityDeserializer(item: any): AdvisorScoreEntity {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _advisorScoreEntityPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** The Advisor score data. */\nexport interface AdvisorScoreEntityProperties {\n /** The details of latest available score. */\n lastRefreshedScore?: ScoreEntity;\n /** The historic Advisor score data. */\n timeSeries?: TimeSeriesEntity[];\n}\n\nexport function advisorScoreEntityPropertiesDeserializer(item: any): AdvisorScoreEntityProperties {\n return {\n lastRefreshedScore: !item[\"lastRefreshedScore\"]\n ? item[\"lastRefreshedScore\"]\n : scoreEntityDeserializer(item[\"lastRefreshedScore\"]),\n timeSeries: !item[\"timeSeries\"]\n ? item[\"timeSeries\"]\n : timeSeriesEntityArrayDeserializer(item[\"timeSeries\"]),\n };\n}\n\n/** The details of Advisor Score */\nexport interface ScoreEntity {\n /** The date score was calculated. */\n date?: string;\n /** The percentage score. */\n score?: number;\n /** The consumption units for the score. */\n consumptionUnits?: number;\n /** The number of impacted resources. */\n impactedResourceCount?: number;\n /** The potential percentage increase in overall score at subscription level once all recommendations in this scope are implemented. */\n potentialScoreIncrease?: number;\n /** The count of impacted categories. */\n readonly categoryCount?: number;\n}\n\nexport function scoreEntityDeserializer(item: any): ScoreEntity {\n return {\n date: item[\"date\"],\n score: item[\"score\"],\n consumptionUnits: item[\"consumptionUnits\"],\n impactedResourceCount: item[\"impactedResourceCount\"],\n potentialScoreIncrease: item[\"potentialScoreIncrease\"],\n categoryCount: item[\"categoryCount\"],\n };\n}\n\nexport function timeSeriesEntityArrayDeserializer(result: Array<TimeSeriesEntity>): any[] {\n return result.map((item) => {\n return timeSeriesEntityDeserializer(item);\n });\n}\n\n/** The historic data at different aggregation levels. */\nexport interface TimeSeriesEntity {\n /** The aggregation level of the score. */\n aggregationLevel?: Aggregated;\n /** The past score data */\n scoreHistory?: ScoreEntity[];\n}\n\nexport function timeSeriesEntityDeserializer(item: any): TimeSeriesEntity {\n return {\n aggregationLevel: item[\"aggregationLevel\"],\n scoreHistory: !item[\"scoreHistory\"]\n ? item[\"scoreHistory\"]\n : scoreEntityArrayDeserializer(item[\"scoreHistory\"]),\n };\n}\n\n/** The aggregation level of the score. */\nexport enum KnownAggregated {\n /** week */\n Week = \"week\",\n /** day */\n Day = \"day\",\n /** month */\n Month = \"month\",\n}\n\n/**\n * The aggregation level of the score. \\\n * {@link KnownAggregated} can be used interchangeably with Aggregated,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **week** \\\n * **day** \\\n * **month**\n */\nexport type Aggregated = string;\n\nexport function scoreEntityArrayDeserializer(result: Array<ScoreEntity>): any[] {\n return result.map((item) => {\n return scoreEntityDeserializer(item);\n });\n}\n\n/** model interface _AdvisorScoreResponse */\nexport interface _AdvisorScoreResponse {\n /** The list of operations. */\n value?: AdvisorScoreEntity[];\n}\n\nexport function _advisorScoreResponseDeserializer(item: any): _AdvisorScoreResponse {\n return {\n value: !item[\"value\"] ? item[\"value\"] : advisorScoreEntityArrayDeserializer(item[\"value\"]),\n };\n}\n\nexport function advisorScoreEntityArrayDeserializer(result: Array<AdvisorScoreEntity>): any[] {\n return result.map((item) => {\n return advisorScoreEntityDeserializer(item);\n });\n}\n\n/** The Advisor assessment result data structure. */\nexport interface AssessmentResult extends ProxyResource {\n /** Workload Id. */\n workloadId?: string;\n /** Workload Name. */\n readonly workloadName?: string;\n /** Assessment Id. */\n readonly assessmentId?: string;\n /** Assessment Type Description. */\n readonly description?: string;\n /** Assessment Type Id. */\n typeId?: string;\n /** Assessment Type. */\n readonly typePropertiesType?: string;\n /** Assessment Score. */\n readonly score?: number;\n /** Assessment State. */\n readonly state?: string;\n /** Assessment Type Version. */\n readonly typeVersion?: string;\n /** Assessment Type Locale. */\n locale?: string;\n}\n\nexport function assessmentResultSerializer(item: AssessmentResult): any {\n return {\n properties: areAllPropsUndefined(item, [\"workloadId\", \"typeId\", \"locale\"])\n ? undefined\n : _assessmentResultPropertiesSerializer(item),\n };\n}\n\nexport function assessmentResultDeserializer(item: any): AssessmentResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _assessmentResultPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Assessment result properties. */\nexport interface AssessmentResultProperties {\n /** Workload Id. */\n workloadId?: string;\n /** Workload Name. */\n readonly workloadName?: string;\n /** Assessment Id. */\n readonly assessmentId?: string;\n /** Assessment Type Description. */\n readonly description?: string;\n /** Assessment Type Id. */\n typeId?: string;\n /** Assessment Type. */\n readonly type?: string;\n /** Assessment Score. */\n readonly score?: number;\n /** Assessment State. */\n readonly state?: string;\n /** Assessment Type Version. */\n readonly typeVersion?: string;\n /** Assessment Type Locale. */\n locale?: string;\n}\n\nexport function assessmentResultPropertiesSerializer(item: AssessmentResultProperties): any {\n return { workloadId: item[\"workloadId\"], typeId: item[\"typeId\"], locale: item[\"locale\"] };\n}\n\nexport function assessmentResultPropertiesDeserializer(item: any): AssessmentResultProperties {\n return {\n workloadId: item[\"workloadId\"],\n workloadName: item[\"workloadName\"],\n assessmentId: item[\"assessmentId\"],\n description: item[\"description\"],\n typeId: item[\"typeId\"],\n type: item[\"type\"],\n score: item[\"score\"],\n state: item[\"state\"],\n typeVersion: item[\"typeVersion\"],\n locale: item[\"locale\"],\n };\n}\n\n/** Paged collection of AssessmentResult items */\nexport interface _AssessmentListResult {\n /** The AssessmentResult items on this page */\n value: AssessmentResult[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _assessmentListResultDeserializer(item: any): _AssessmentListResult {\n return {\n value: assessmentResultArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function assessmentResultArraySerializer(result: Array<AssessmentResult>): any[] {\n return result.map((item) => {\n return assessmentResultSerializer(item);\n });\n}\n\nexport function assessmentResultArrayDeserializer(result: Array<AssessmentResult>): any[] {\n return result.map((item) => {\n return assessmentResultDeserializer(item);\n });\n}\n\n/** The Advisor resiliency review data structure. */\nexport interface ResiliencyReview extends ProxyResource {\n /** Review name. */\n readonly reviewName?: string;\n /** Workload Name. */\n readonly workloadName?: string;\n /** Review status. */\n readonly reviewStatus?: ReviewStatus;\n /** Review recommendations count. */\n readonly recommendationsCount?: number;\n /** Review last updated timestamp. */\n readonly publishedAt?: string;\n /** Review last updated timestamp. */\n readonly updatedAt?: string;\n}\n\nexport function resiliencyReviewDeserializer(item: any): ResiliencyReview {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _resiliencyReviewPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Resiliency review properties. */\nexport interface ResiliencyReviewProperties {\n /** Review name. */\n readonly reviewName?: string;\n /** Workload Name. */\n readonly workloadName?: string;\n /** Review status. */\n readonly reviewStatus?: ReviewStatus;\n /** Review recommendations count. */\n readonly recommendationsCount?: number;\n /** Review last updated timestamp. */\n readonly publishedAt?: string;\n /** Review last updated timestamp. */\n readonly updatedAt?: string;\n}\n\nexport function resiliencyReviewPropertiesDeserializer(item: any): ResiliencyReviewProperties {\n return {\n reviewName: item[\"reviewName\"],\n workloadName: item[\"workloadName\"],\n reviewStatus: item[\"reviewStatus\"],\n recommendationsCount: item[\"recommendationsCount\"],\n publishedAt: item[\"publishedAt\"],\n updatedAt: item[\"updatedAt\"],\n };\n}\n\n/** Review status. */\nexport enum KnownReviewStatus {\n /** The review has been newly created. */\n New = \"New\",\n /** The review is currently in progress. */\n InProgress = \"InProgress\",\n /** The review has been triaged. */\n Triaged = \"Triaged\",\n /** The review has been completed. */\n Completed = \"Completed\",\n}\n\n/**\n * Review status. \\\n * {@link KnownReviewStatus} can be used interchangeably with ReviewStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **New**: The review has been newly created. \\\n * **InProgress**: The review is currently in progress. \\\n * **Triaged**: The review has been triaged. \\\n * **Completed**: The review has been completed.\n */\nexport type ReviewStatus = string;\n\n/** Collection of Resiliency Reviews. */\nexport interface _ResiliencyReviewCollection {\n /** The ResiliencyReview items on this page */\n value: ResiliencyReview[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _resiliencyReviewCollectionDeserializer(item: any): _ResiliencyReviewCollection {\n return {\n value: resiliencyReviewArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function resiliencyReviewArrayDeserializer(result: Array<ResiliencyReview>): any[] {\n return result.map((item) => {\n return resiliencyReviewDeserializer(item);\n });\n}\n\n/** Triage recommendation data structure. */\nexport interface TriageRecommendation extends ProxyResource {\n /** Review id. */\n readonly reviewId?: string;\n /** Recommendation label. */\n readonly title?: string;\n /** Recommendation priority. */\n readonly priority?: PriorityName;\n /** List of subscription ids. */\n readonly appliesToSubscriptions?: string[];\n /** Recommendation status. */\n readonly recommendationStatus?: RecommendationStatusName;\n /** Recommendation potential benefit. */\n readonly updatedAt?: string;\n /** Recommendation rejection reason. */\n readonly rejectReason?: string;\n /** Recommendation potential benefit. */\n readonly potentialBenefits?: string;\n /** Recommendation description. */\n readonly description?: string;\n /** Recommendation notes. */\n readonly notes?: string;\n}\n\nexport function triageRecommendationDeserializer(item: any): TriageRecommendation {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _triageRecommendationPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Triage recommendation properties. */\nexport interface TriageRecommendationProperties {\n /** Review id. */\n readonly reviewId?: string;\n /** Recommendation label. */\n readonly title?: string;\n /** Recommendation priority. */\n readonly priority?: PriorityName;\n /** List of subscription ids. */\n readonly appliesToSubscriptions?: string[];\n /** Recommendation status. */\n readonly recommendationStatus?: RecommendationStatusName;\n /** Recommendation potential benefit. */\n readonly updatedAt?: string;\n /** Recommendation rejection reason. */\n readonly rejectReason?: string;\n /** Recommendation potential benefit. */\n readonly potentialBenefits?: string;\n /** Recommendation description. */\n readonly description?: string;\n /** Recommendation notes. */\n readonly notes?: string;\n}\n\nexport function triageRecommendationPropertiesDeserializer(\n item: any,\n): TriageRecommendationProperties {\n return {\n reviewId: item[\"reviewId\"],\n title: item[\"title\"],\n priority: item[\"priority\"],\n appliesToSubscriptions: !item[\"appliesToSubscriptions\"]\n ? item[\"appliesToSubscriptions\"]\n : item[\"appliesToSubscriptions\"].map((p: any) => {\n return p;\n }),\n recommendationStatus: item[\"recommendationStatus\"],\n updatedAt: item[\"updatedAt\"],\n rejectReason: item[\"rejectReason\"],\n potentialBenefits: item[\"potentialBenefits\"],\n description: item[\"description\"],\n notes: item[\"notes\"],\n };\n}\n\n/** Recommendation priority name enum. */\nexport enum KnownPriorityName {\n /** High */\n High = \"High\",\n /** Medium */\n Medium = \"Medium\",\n /** Low */\n Low = \"Low\",\n}\n\n/**\n * Recommendation priority name enum. \\\n * {@link KnownPriorityName} can be used interchangeably with PriorityName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **High**: High \\\n * **Medium**: Medium \\\n * **Low**: Low\n */\nexport type PriorityName = string;\n\n/** Recommendation status name enum. */\nexport enum KnownRecommendationStatusName {\n /** Approved */\n Approved = \"Approved\",\n /** Rejected */\n Rejected = \"Rejected\",\n /** Pending */\n Pending = \"Pending\",\n}\n\n/**\n * Recommendation status name enum. \\\n * {@link KnownRecommendationStatusName} can be used interchangeably with RecommendationStatusName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Approved**: Approved \\\n * **Rejected**: Rejected \\\n * **Pending**: Pending\n */\nexport type RecommendationStatusName = string;\n\n/** Collection of Advisor triage recommendations. */\nexport interface _TriageRecommendationCollection {\n /** List of triage recommendations. */\n value: TriageRecommendation[];\n /** The URL to get the next set of triage recommendations, if there are any. */\n nextLink?: string;\n}\n\nexport function _triageRecommendationCollectionDeserializer(\n item: any,\n): _TriageRecommendationCollection {\n return {\n value: triageRecommendationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function triageRecommendationArrayDeserializer(result: Array<TriageRecommendation>): any[] {\n return result.map((item) => {\n return triageRecommendationDeserializer(item);\n });\n}\n\n/** Recommendation reject body. */\nexport interface RecommendationRejectBody {\n /** Reason for rejecting recommendation. */\n reasonForRejection?: ReasonForRejectionName;\n}\n\nexport function recommendationRejectBodySerializer(item: RecommendationRejectBody): any {\n return { reasonForRejection: item[\"reasonForRejection\"] };\n}\n\n/** Reason for rejecting recommendation name enum. */\nexport enum KnownReasonForRejectionName {\n /** Not A Risk */\n NotARisk = \"NotARisk\",\n /** Risk Accepted */\n RiskAccepted = \"RiskAccepted\",\n}\n\n/**\n * Reason for rejecting recommendation name enum. \\\n * {@link KnownReasonForRejectionName} can be used interchangeably with ReasonForRejectionName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotARisk**: Not A Risk \\\n * **RiskAccepted**: Risk Accepted\n */\nexport type ReasonForRejectionName = string;\n\n/** Triage resource data structure. */\nexport interface TriageResource extends ProxyResource {\n /** Unique identifier for the review resource this triageResource belongs to. */\n readonly reviewId?: string;\n /** Unique identifier for the recommendation resource this triageResource belongs to. */\n readonly recommendationId?: string;\n /** Unique identifier for the subscription resource this triageResource belongs to. */\n readonly subscriptionId?: string;\n /** Name of the resource group this triageResource belongs to. */\n readonly resourceGroup?: string;\n /** Type of resource this triageResource corresponds to e.g. \"Cosmos DB\". */\n readonly resourceType?: string;\n /** Full Azure resource id path of the resource this triageResource corresponds to. */\n readonly resourceId?: string;\n /** Name of the resource this triageResource corresponds to. */\n readonly resourceName?: string;\n}\n\nexport function triageResourceDeserializer(item: any): TriageResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _triageResourcePropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Triage resource properties. */\nexport interface TriageResourceProperties {\n /** Unique identifier for the review resource this triageResource belongs to. */\n readonly reviewId?: string;\n /** Unique identifier for the recommendation resource this triageResource belongs to. */\n readonly recommendationId?: string;\n /** Unique identifier for the subscription resource this triageResource belongs to. */\n readonly subscriptionId?: string;\n /** Name of the resource group this triageResource belongs to. */\n readonly resourceGroup?: string;\n /** Type of resource this triageResource corresponds to e.g. \"Cosmos DB\". */\n readonly resourceType?: string;\n /** Full Azure resource id path of the resource this triageResource corresponds to. */\n readonly resourceId?: string;\n /** Name of the resource this triageResource corresponds to. */\n readonly resourceName?: string;\n}\n\nexport function triageResourcePropertiesDeserializer(item: any): TriageResourceProperties {\n return {\n reviewId: item[\"reviewId\"],\n recommendationId: item[\"recommendationId\"],\n subscriptionId: item[\"subscriptionId\"],\n resourceGroup: item[\"resourceGroup\"],\n resourceType: item[\"resourceType\"],\n resourceId: item[\"resourceId\"],\n resourceName: item[\"resourceName\"],\n };\n}\n\n/** Collection of Advisor triage resources. */\nexport interface _TriageResourceCollection {\n /** The TriageResource items on this page */\n value: TriageResource[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _triageResourceCollectionDeserializer(item: any): _TriageResourceCollection {\n return {\n value: triageResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function triageResourceArrayDeserializer(result: Array<TriageResource>): any[] {\n return result.map((item) => {\n return triageResourceDeserializer(item);\n });\n}\n\n/** Paged collection of ConfigData items */\nexport interface _ConfigurationListResult {\n /** The ConfigData items on this page */\n value: ConfigData[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _configurationListResultDeserializer(item: any): _ConfigurationListResult {\n return {\n value: configDataArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function configDataArraySerializer(result: Array<ConfigData>): any[] {\n return result.map((item) => {\n return configDataSerializer(item);\n });\n}\n\nexport function configDataArrayDeserializer(result: Array<ConfigData>): any[] {\n return result.map((item) => {\n return configDataDeserializer(item);\n });\n}\n\n/** The Advisor configuration data structure. */\nexport interface ConfigData extends Resource {\n /** Exclude the resource from Advisor evaluations. Valid values: False (default) or True. */\n exclude?: boolean;\n /** Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. */\n lowCpuThreshold?: CpuThreshold;\n /** Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. */\n duration?: Duration;\n /** Advisor digest configuration. Valid only for subscriptions */\n digests?: DigestConfig[];\n}\n\nexport function configDataSerializer(item: ConfigData): any {\n return {\n properties: areAllPropsUndefined(item, [\"exclude\", \"lowCpuThreshold\", \"duration\", \"digests\"])\n ? undefined\n : _configDataPropertiesSerializer(item),\n };\n}\n\nexport function configDataDeserializer(item: any): ConfigData {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n ...(!item[\"properties\"]\n ? item[\"properties\"]\n : _configDataPropertiesDeserializer(item[\"properties\"])),\n };\n}\n\n/** Configuration data properties */\nexport interface ConfigDataProperties {\n /** Exclude the resource from Advisor evaluations. Valid values: False (default) or True. */\n exclude?: boolean;\n /** Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. */\n lowCpuThreshold?: CpuThreshold;\n /** Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. */\n duration?: Duration;\n /** Advisor digest configuration. Valid only for subscriptions */\n digests?: DigestConfig[];\n}\n\nexport function configDataPropertiesSerializer(item: ConfigDataProperties): any {\n return {\n exclude: item[\"exclude\"],\n lowCpuThreshold: item[\"lowCpuThreshold\"],\n duration: item[\"duration\"],\n digests: !item[\"digests\"] ? item[\"digests\"] : digestConfigArraySerializer(item[\"digests\"]),\n };\n}\n\nexport function configDataPropertiesDeserializer(item: any): ConfigDataProperties {\n return {\n exclude: item[\"exclude\"],\n lowCpuThreshold: item[\"lowCpuThreshold\"],\n duration: item[\"duration\"],\n digests: !item[\"digests\"] ? item[\"digests\"] : digestConfigArrayDeserializer(item[\"digests\"]),\n };\n}\n\n/** Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. */\nexport enum KnownCpuThreshold {\n /** 5 */\n Five = \"5\",\n /** 10 */\n Ten = \"10\",\n /** 15 */\n Fifteen = \"15\",\n /** 20 */\n Twenty = \"20\",\n}\n\n/**\n * Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20. \\\n * {@link KnownCpuThreshold} can be used interchangeably with CpuThreshold,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **5** \\\n * **10** \\\n * **15** \\\n * **20**\n */\nexport type CpuThreshold = string;\n\n/** Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. */\nexport enum KnownDuration {\n /** 7 */\n Duration7 = \"7\",\n /** 14 */\n Duration14 = \"14\",\n /** 21 */\n Duration21 = \"21\",\n /** 30 */\n Duration30 = \"30\",\n /** 60 */\n Duration60 = \"60\",\n /** 90 */\n Duration90 = \"90\",\n}\n\n/**\n * Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90. \\\n * {@link KnownDuration} can be used interchangeably with Duration,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **7** \\\n * **14** \\\n * **21** \\\n * **30** \\\n * **60** \\\n * **90**\n */\nexport type Duration = string;\n\nexport function digestConfigArraySerializer(result: Array<DigestConfig>): any[] {\n return result.map((item) => {\n return digestConfigSerializer(item);\n });\n}\n\nexport function digestConfigArrayDeserializer(result: Array<DigestConfig>): any[] {\n return result.map((item) => {\n return digestConfigDeserializer(item);\n });\n}\n\n/** Advisor Digest configuration entity */\nexport interface DigestConfig {\n /** Name of digest configuration. Value is case-insensitive and must be unique within a subscription. */\n name?: string;\n /** Action group resource id used by digest. */\n actionGroupResourceId?: string;\n /** Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive. */\n frequency?: number;\n /** Categories to send digest for. If categories are not provided, then digest will be sent for all categories. */\n categories?: Category[];\n /** Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en). */\n language?: string;\n /** State of digest configuration. */\n state?: DigestConfigState;\n}\n\nexport function digestConfigSerializer(item: DigestConfig): any {\n return {\n name: item[\"name\"],\n actionGroupResourceId: item[\"actionGroupResourceId\"],\n frequency: item[\"frequency\"],\n categories: !item[\"categories\"]\n ? item[\"categories\"]\n : item[\"categories\"].map((p: any) => {\n return p;\n }),\n language: item[\"language\"],\n state: item[\"state\"],\n };\n}\n\nexport function digestConfigDeserializer(item: any): DigestConfig {\n return {\n name: item[\"name\"],\n actionGroupResourceId: item[\"actionGroupResourceId\"],\n frequency: item[\"frequency\"],\n categories: !item[\"categories\"]\n ? item[\"categories\"]\n : item[\"categories\"].map((p: any) => {\n return p;\n }),\n language: item[\"language\"],\n state: item[\"state\"],\n };\n}\n\n/** State of digest configuration. */\nexport enum KnownDigestConfigState {\n /** Active */\n Active = \"Active\",\n /** Disabled */\n Disabled = \"Disabled\",\n}\n\n/**\n * State of digest configuration. \\\n * {@link KnownDigestConfigState} can be used interchangeably with DigestConfigState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active** \\\n * **Disabled**\n */\nexport type DigestConfigState = string;\n\n/** The Advisor assessment type list result data structure. */\nexport interface _AssessmentTypeListResult {\n /** The AssessmentTypeResult items on this page */\n value: AssessmentTypeResult[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _assessmentTypeListResultDeserializer(item: any): _AssessmentTypeListResult {\n return {\n value: assessmentTypeResultArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function assessmentTypeResultArrayDeserializer(result: Array<AssessmentTypeResult>): any[] {\n return result.map((item) => {\n return assessmentTypeResultDeserializer(item);\n });\n}\n\n/** The Advisor assessment type result data structure. */\nexport interface AssessmentTypeResult {\n /** Assessment Type Id */\n id?: string;\n /** Assessment Type Title */\n title?: string;\n /** Assessment Type Description */\n description?: string;\n /** Assessment Type Locale */\n locale?: string;\n /** Assessment Type Version */\n version?: string;\n}\n\nexport function assessmentTypeResultDeserializer(item: any): AssessmentTypeResult {\n return {\n id: item[\"id\"],\n title: item[\"title\"],\n description: item[\"description\"],\n locale: item[\"locale\"],\n version: item[\"version\"],\n };\n}\n\n/** The Workload list result data structure. */\nexport interface _WorkloadListResult {\n /** List of WorkloadListResult items on this page. */\n value: WorkloadResult[];\n /** Url to get the next Page of WorkloadListResult items. */\n nextLink?: string;\n}\n\nexport function _workloadListResultDeserializer(item: any): _WorkloadListResult {\n return {\n value: workloadResultArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function workloadResultArrayDeserializer(result: Array<WorkloadResult>): any[] {\n return result.map((item) => {\n return workloadResultDeserializer(item);\n });\n}\n\n/** The Workload result data structure. */\nexport interface WorkloadResult {\n /** Workload Id */\n id?: string;\n /** Workload Name */\n name?: string;\n /** Subscription Id */\n subscriptionId?: string;\n /** Subscription Name */\n subscriptionName?: string;\n}\n\nexport function workloadResultDeserializer(item: any): WorkloadResult {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n subscriptionId: item[\"subscriptionId\"],\n subscriptionName: item[\"subscriptionName\"],\n };\n}\n\n/** Known values of {@link ConfigurationName} that the service accepts. */\nexport enum KnownConfigurationName {\n /** default */\n Default = \"default\",\n}\n\n/** Type of ConfigurationName */\nexport type ConfigurationName = string;\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2025-05-01-preview API version. */\n V20250501Preview = \"2025-05-01-preview\",\n /** The 2026-02-01-preview API version. */\n V20260201Preview = \"2026-02-01-preview\",\n}\n\nexport function _predictionRequestPropertiesSerializer(item: PredictionRequest): any {\n return { predictionType: item[\"predictionType\"], extendedProperties: item[\"extendedProperties\"] };\n}\n\nexport function _predictionResponsePropertiesDeserializer(item: any) {\n return {\n extendedProperties: item[\"extendedProperties\"],\n predictionType: item[\"predictionType\"],\n category: item[\"category\"],\n impact: item[\"impact\"],\n impactedField: item[\"impactedField\"],\n lastUpdated: !item[\"lastUpdated\"] ? item[\"lastUpdated\"] : new Date(item[\"lastUpdated\"]),\n shortDescription: !item[\"shortDescription\"]\n ? item[\"shortDescription\"]\n : shortDescriptionDeserializer(item[\"shortDescription\"]),\n };\n}\n\nexport function _metadataEntityPropertiesDeserializer(item: any) {\n return {\n displayName: item[\"displayName\"],\n dependsOn: !item[\"dependsOn\"]\n ? item[\"dependsOn\"]\n : item[\"dependsOn\"].map((p: any) => {\n return p;\n }),\n applicableScenarios: !item[\"applicableScenarios\"]\n ? item[\"applicableScenarios\"]\n : item[\"applicableScenarios\"].map((p: any) => {\n return p;\n }),\n supportedValues: !item[\"supportedValues\"]\n ? item[\"supportedValues\"]\n : metadataSupportedValueDetailArrayDeserializer(item[\"supportedValues\"]),\n };\n}\n\nexport function _resourceRecommendationBasePropertiesDeserializer(item: any) {\n return {\n category: item[\"category\"],\n control: item[\"control\"],\n impact: item[\"impact\"],\n impactedField: item[\"impactedField\"],\n impactedValue: item[\"impactedValue\"],\n recommendationStatus: item[\"recommendationStatus\"],\n completionType: item[\"completionType\"],\n recommendationDismissReason: item[\"recommendationDismissReason\"],\n postponedUntilDateTime: !item[\"postponedUntilDateTime\"]\n ? item[\"postponedUntilDateTime\"]\n : new Date(item[\"postponedUntilDateTime\"]),\n lastRefreshed: !item[\"lastRefreshed\"] ? item[\"lastRefreshed\"] : new Date(item[\"lastRefreshed\"]),\n lastUpdated: !item[\"lastUpdated\"] ? item[\"lastUpdated\"] : new Date(item[\"lastUpdated\"]),\n createdTime: !item[\"createdTime\"] ? item[\"createdTime\"] : new Date(item[\"createdTime\"]),\n metadata: !item[\"metadata\"]\n ? item[\"metadata\"]\n : Object.fromEntries(Object.entries(item[\"metadata\"]).map(([k, p]: [string, any]) => [k, p])),\n recommendationTypeId: item[\"recommendationTypeId\"],\n risk: item[\"risk\"],\n shortDescription: !item[\"shortDescription\"]\n ? item[\"shortDescription\"]\n : shortDescriptionDeserializer(item[\"shortDescription\"]),\n suppressionId: item[\"suppressionId\"],\n extendedProperties: !item[\"extendedProperties\"]\n ? item[\"extendedProperties\"]\n : Object.fromEntries(\n Object.entries(item[\"extendedProperties\"]).map(([k, p]: [string, any]) => [k, p]),\n ),\n resourceMetadata: !item[\"resourceMetadata\"]\n ? item[\"resourceMetadata\"]\n : resourceMetadataDeserializer(item[\"resourceMetadata\"]),\n description: item[\"description\"],\n label: item[\"label\"],\n learnMoreLink: item[\"learnMoreLink\"],\n potentialBenefits: item[\"potentialBenefits\"],\n actions: !item[\"actions\"]\n ? item[\"actions\"]\n : item[\"actions\"].map((p: any) => {\n return Object.fromEntries(Object.entries(p).map(([k1, p1]: [string, any]) => [k1, p1]));\n }),\n remediation: !item[\"remediation\"]\n ? item[\"remediation\"]\n : Object.fromEntries(\n Object.entries(item[\"remediation\"]).map(([k, p]: [string, any]) => [k, p]),\n ),\n exposedMetadataProperties: !item[\"exposedMetadataProperties\"]\n ? item[\"exposedMetadataProperties\"]\n : Object.fromEntries(\n Object.entries(item[\"exposedMetadataProperties\"]).map(([k, p]: [string, any]) => [k, p]),\n ),\n trackedProperties: !item[\"trackedProperties\"]\n ? item[\"trackedProperties\"]\n : trackedRecommendationPropertiesDeserializer(item[\"trackedProperties\"]),\n review: !item[\"review\"]\n ? item[\"review\"]\n : recommendationPropertiesReviewDeserializer(item[\"review\"]),\n resourceWorkload: !item[\"resourceWorkload\"]\n ? item[\"resourceWorkload\"]\n : recommendationPropertiesResourceWorkloadDeserializer(item[\"resourceWorkload\"]),\n sourceSystem: item[\"sourceSystem\"],\n notes: item[\"notes\"],\n };\n}\n\nexport function _suppressionContractPropertiesSerializer(item: SuppressionContract): any {\n return { suppressionId: item[\"suppressionId\"], ttl: item[\"ttl\"] };\n}\n\nexport function _suppressionContractPropertiesDeserializer(item: any) {\n return {\n suppressionId: item[\"suppressionId\"],\n ttl: item[\"ttl\"],\n expirationTimeStamp: !item[\"expirationTimeStamp\"]\n ? item[\"expirationTimeStamp\"]\n : new Date(item[\"expirationTimeStamp\"]),\n };\n}\n\nexport function _advisorScoreEntityPropertiesDeserializer(item: any) {\n return {\n lastRefreshedScore: !item[\"lastRefreshedScore\"]\n ? item[\"lastRefreshedScore\"]\n : scoreEntityDeserializer(item[\"lastRefreshedScore\"]),\n timeSeries: !item[\"timeSeries\"]\n ? item[\"timeSeries\"]\n : timeSeriesEntityArrayDeserializer(item[\"timeSeries\"]),\n };\n}\n\nexport function _assessmentResultPropertiesSerializer(item: AssessmentResult): any {\n return { workloadId: item[\"workloadId\"], typeId: item[\"typeId\"], locale: item[\"locale\"] };\n}\n\nexport function _assessmentResultPropertiesDeserializer(item: any) {\n return {\n workloadId: item[\"workloadId\"],\n workloadName: item[\"workloadName\"],\n assessmentId: item[\"assessmentId\"],\n description: item[\"description\"],\n typeId: item[\"typeId\"],\n typePropertiesType: item[\"type\"],\n score: item[\"score\"],\n state: item[\"state\"],\n typeVersion: item[\"typeVersion\"],\n locale: item[\"locale\"],\n };\n}\n\nexport function _resiliencyReviewPropertiesDeserializer(item: any) {\n return {\n reviewName: item[\"reviewName\"],\n workloadName: item[\"workloadName\"],\n reviewStatus: item[\"reviewStatus\"],\n recommendationsCount: item[\"recommendationsCount\"],\n publishedAt: item[\"publishedAt\"],\n updatedAt: item[\"updatedAt\"],\n };\n}\n\nexport function _triageRecommendationPropertiesDeserializer(item: any) {\n return {\n reviewId: item[\"reviewId\"],\n title: item[\"title\"],\n priority: item[\"priority\"],\n appliesToSubscriptions: !item[\"appliesToSubscriptions\"]\n ? item[\"appliesToSubscriptions\"]\n : item[\"appliesToSubscriptions\"].map((p: any) => {\n return p;\n }),\n recommendationStatus: item[\"recommendationStatus\"],\n updatedAt: item[\"updatedAt\"],\n rejectReason: item[\"rejectReason\"],\n potentialBenefits: item[\"potentialBenefits\"],\n description: item[\"description\"],\n notes: item[\"notes\"],\n };\n}\n\nexport function _triageResourcePropertiesDeserializer(item: any) {\n return {\n reviewId: item[\"reviewId\"],\n recommendationId: item[\"recommendationId\"],\n subscriptionId: item[\"subscriptionId\"],\n resourceGroup: item[\"resourceGroup\"],\n resourceType: item[\"resourceType\"],\n resourceId: item[\"resourceId\"],\n resourceName: item[\"resourceName\"],\n };\n}\n\nexport function _configDataPropertiesSerializer(item: ConfigData): any {\n return {\n exclude: item[\"exclude\"],\n lowCpuThreshold: item[\"lowCpuThreshold\"],\n duration: item[\"duration\"],\n digests: !item[\"digests\"] ? item[\"digests\"] : digestConfigArraySerializer(item[\"digests\"]),\n };\n}\n\nexport function _configDataPropertiesDeserializer(item: any) {\n return {\n exclude: item[\"exclude\"],\n lowCpuThreshold: item[\"lowCpuThreshold\"],\n duration: item[\"duration\"],\n digests: !item[\"digests\"] ? item[\"digests\"] : digestConfigArrayDeserializer(item[\"digests\"]),\n };\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * An enum to describe Azure Cloud environments.
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureClouds {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
8
+ /** Azure China cloud */
9
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
10
+ /** Azure US government cloud */
11
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
12
+ }
13
+ /** The supported values for cloud setting as a string literal type */
14
+ export type AzureSupportedClouds = `${AzureClouds}`;
15
+ /**
16
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
17
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
18
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
19
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
20
+ */
21
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
22
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * An enum to describe Azure Cloud environments.
5
+ * @enum {string}
6
+ */
7
+ export var AzureClouds;
8
+ (function (AzureClouds) {
9
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
10
+ AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
11
+ /** Azure China cloud */
12
+ AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
13
+ /** Azure US government cloud */
14
+ AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
15
+ })(AzureClouds || (AzureClouds = {}));
16
+ /**
17
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
18
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
19
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
20
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
21
+ */
22
+ export function getArmEndpoint(cloudSetting) {
23
+ if (cloudSetting === undefined) {
24
+ return undefined;
25
+ }
26
+ const cloudEndpoints = {
27
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
28
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
29
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
30
+ };
31
+ if (cloudSetting in cloudEndpoints) {
32
+ return cloudEndpoints[cloudSetting];
33
+ }
34
+ else {
35
+ throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
36
+ }
37
+ }
38
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAKD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
@@ -0,0 +1,74 @@
1
+ import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
+ /**
3
+ * Options for the byPage method
4
+ */
5
+ export interface PageSettings {
6
+ /**
7
+ * A reference to a specific page to start iterating from.
8
+ */
9
+ continuationToken?: string;
10
+ }
11
+ /**
12
+ * An interface that describes a page of results.
13
+ */
14
+ export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
15
+ /**
16
+ * The token that keeps track of where to continue the iterator
17
+ */
18
+ continuationToken?: string;
19
+ };
20
+ /**
21
+ * An interface that allows async iterable iteration both to completion and by page.
22
+ */
23
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
24
+ /**
25
+ * The next method, part of the iteration protocol
26
+ */
27
+ next(): Promise<IteratorResult<TElement>>;
28
+ /**
29
+ * The connection to the async iterator, part of the iteration protocol
30
+ */
31
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
32
+ /**
33
+ * Return an AsyncIterableIterator that works a page at a time
34
+ */
35
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
36
+ }
37
+ /**
38
+ * An interface that describes how to communicate with the service.
39
+ */
40
+ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
41
+ /**
42
+ * Link to the first page of results.
43
+ */
44
+ firstPageLink?: string;
45
+ /**
46
+ * A method that returns a page of results.
47
+ */
48
+ getPage: (pageLink?: string) => Promise<{
49
+ page: TPage;
50
+ nextPageLink?: string;
51
+ } | undefined>;
52
+ /**
53
+ * a function to implement the `byPage` method on the paged async iterator.
54
+ */
55
+ byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
56
+ /**
57
+ * A function to extract elements from a page.
58
+ */
59
+ toElements?: (page: TPage) => TElement[];
60
+ }
61
+ /**
62
+ * Options for the paging helper
63
+ */
64
+ export interface BuildPagedAsyncIteratorOptions {
65
+ itemName?: string;
66
+ nextLinkName?: string;
67
+ nextLinkMethod?: "GET" | "POST";
68
+ apiVersion?: string;
69
+ }
70
+ /**
71
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
72
+ */
73
+ export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
74
+ //# sourceMappingURL=pagingHelpers.d.ts.map
@@ -0,0 +1,143 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createRestError } from "@azure-rest/core-client";
4
+ import { RestError } from "@azure/core-rest-pipeline";
5
+ /**
6
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
7
+ */
8
+ export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
9
+ const itemName = options.itemName ?? "value";
10
+ const nextLinkName = options.nextLinkName ?? "nextLink";
11
+ const nextLinkMethod = options.nextLinkMethod ?? "GET";
12
+ const apiVersion = options.apiVersion;
13
+ const pagedResult = {
14
+ getPage: async (pageLink) => {
15
+ let result;
16
+ if (pageLink === undefined) {
17
+ result = await getInitialResponse();
18
+ }
19
+ else {
20
+ const resolvedPageLink = apiVersion ? addApiVersionToUrl(pageLink, apiVersion) : pageLink;
21
+ result =
22
+ nextLinkMethod === "POST"
23
+ ? await client.pathUnchecked(resolvedPageLink).post()
24
+ : await client.pathUnchecked(resolvedPageLink).get();
25
+ }
26
+ checkPagingRequest(result, expectedStatuses);
27
+ const results = await processResponseBody(result);
28
+ const nextLink = getNextLink(results, nextLinkName);
29
+ const values = getElements(results, itemName);
30
+ return {
31
+ page: values,
32
+ nextPageLink: nextLink,
33
+ };
34
+ },
35
+ byPage: (settings) => {
36
+ const { continuationToken } = settings ?? {};
37
+ return getPageAsyncIterator(pagedResult, {
38
+ pageLink: continuationToken,
39
+ });
40
+ },
41
+ };
42
+ return getPagedAsyncIterator(pagedResult);
43
+ }
44
+ /**
45
+ * returns an async iterator that iterates over results. It also has a `byPage`
46
+ * method that returns pages of items at once.
47
+ *
48
+ * @param pagedResult - an object that specifies how to get pages.
49
+ * @returns a paged async iterator that iterates over results.
50
+ */
51
+ function getPagedAsyncIterator(pagedResult) {
52
+ const iter = getItemAsyncIterator(pagedResult);
53
+ return {
54
+ next() {
55
+ return iter.next();
56
+ },
57
+ [Symbol.asyncIterator]() {
58
+ return this;
59
+ },
60
+ byPage: pagedResult?.byPage ??
61
+ ((settings) => {
62
+ const { continuationToken } = settings ?? {};
63
+ return getPageAsyncIterator(pagedResult, {
64
+ pageLink: continuationToken,
65
+ });
66
+ }),
67
+ };
68
+ }
69
+ async function* getItemAsyncIterator(pagedResult) {
70
+ const pages = getPageAsyncIterator(pagedResult);
71
+ for await (const page of pages) {
72
+ yield* page;
73
+ }
74
+ }
75
+ async function* getPageAsyncIterator(pagedResult, options = {}) {
76
+ const { pageLink } = options;
77
+ let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);
78
+ if (!response) {
79
+ return;
80
+ }
81
+ let result = response.page;
82
+ result.continuationToken = response.nextPageLink;
83
+ yield result;
84
+ while (response.nextPageLink) {
85
+ response = await pagedResult.getPage(response.nextPageLink);
86
+ if (!response) {
87
+ return;
88
+ }
89
+ result = response.page;
90
+ result.continuationToken = response.nextPageLink;
91
+ yield result;
92
+ }
93
+ }
94
+ /**
95
+ * Gets for the value of nextLink in the body
96
+ */
97
+ function getNextLink(body, nextLinkName) {
98
+ if (!nextLinkName) {
99
+ return undefined;
100
+ }
101
+ const nextLink = body[nextLinkName];
102
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
103
+ throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
104
+ }
105
+ if (nextLink === null) {
106
+ return undefined;
107
+ }
108
+ return nextLink;
109
+ }
110
+ /**
111
+ * Gets the elements of the current request in the body.
112
+ */
113
+ function getElements(body, itemName) {
114
+ const value = body[itemName];
115
+ if (!Array.isArray(value)) {
116
+ throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
117
+ }
118
+ return value ?? [];
119
+ }
120
+ /**
121
+ * Checks if a request failed
122
+ */
123
+ function checkPagingRequest(response, expectedStatuses) {
124
+ if (!expectedStatuses.includes(response.status)) {
125
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
126
+ }
127
+ }
128
+ /**
129
+ * Adds the api-version query parameter on a URL if it's not present.
130
+ * @param url - the URL to modify
131
+ * @param apiVersion - the API version to set
132
+ * @returns - the URL with the api-version query parameter set
133
+ */
134
+ function addApiVersionToUrl(url, apiVersion) {
135
+ // The base URL is only used for parsing and won't appear in the returned URL
136
+ const urlObj = new URL(url, "https://microsoft.com");
137
+ if (!urlObj.searchParams.get("api-version")) {
138
+ // Append one if there is no apiVersion
139
+ return `${url}${urlObj.search ? "&" : "?"}api-version=${apiVersion}`;
140
+ }
141
+ return url;
142
+ }
143
+ //# sourceMappingURL=pagingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAiFtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;IAE5C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC;IAC7C,MAAM,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CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,SAAS,kBAAkB,CAAC,GAAW,EAAE,UAAkB;IACzD,6EAA6E;IAC7E,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;IACrD,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;QAC5C,uCAAuC;QACvC,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,eAAe,UAAU,EAAE,CAAC;IACvE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n nextLinkMethod?: \"GET\" | \"POST\";\n apiVersion?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const nextLinkMethod = options.nextLinkMethod ?? \"GET\";\n const apiVersion = options.apiVersion;\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n let result;\n if (pageLink === undefined) {\n result = await getInitialResponse();\n } else {\n const resolvedPageLink = apiVersion ? addApiVersionToUrl(pageLink, apiVersion) : pageLink;\n result =\n nextLinkMethod === \"POST\"\n ? await client.pathUnchecked(resolvedPageLink).post()\n : await client.pathUnchecked(resolvedPageLink).get();\n }\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n\n/**\n * Adds the api-version query parameter on a URL if it's not present.\n * @param url - the URL to modify\n * @param apiVersion - the API version to set\n * @returns - the URL with the api-version query parameter set\n */\nfunction addApiVersionToUrl(url: string, apiVersion: string): string {\n // The base URL is only used for parsing and won't appear in the returned URL\n const urlObj = new URL(url, \"https://microsoft.com\");\n if (!urlObj.searchParams.get(\"api-version\")) {\n // Append one if there is no apiVersion\n return `${url}${urlObj.search ? \"&\" : \"?\"}api-version=${apiVersion}`;\n }\n return url;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns true if all specified properties of the item are undefined.
3
+ * @param item The object to check.
4
+ * @param properties The list of property names to check on the item.
5
+ * @returns True if all specified properties are undefined, otherwise false.
6
+ */
7
+ export declare function areAllPropsUndefined(item: Record<string, any>, properties: string[]): boolean;
8
+ //# sourceMappingURL=check-prop-undefined.d.ts.map