@azure/arm-iotfirmwaredefense 1.0.1-alpha.20250207.1 → 1.0.1-alpha.20250211.1

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