@azure/arm-resourcehealth 4.1.0-beta.1 → 4.1.0-beta.2

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