@azure/arm-iotfirmwaredefense 1.0.0-beta.1 → 1.0.1-alpha.20240329.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/CHANGELOG.md +13 -3
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +2280 -2198
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/binaryHardeningListByFirmwareSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/binaryHardeningListByFirmwareSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/{firmwareListGenerateCryptoKeyListSample.js → binaryHardeningListByFirmwareSample.js} +23 -34
  11. package/dist-esm/samples-dev/binaryHardeningListByFirmwareSample.js.map +1 -0
  12. package/dist-esm/samples-dev/cryptoCertificatesListByFirmwareSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/cryptoCertificatesListByFirmwareSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/{firmwareListGenerateCveListSample.js → cryptoCertificatesListByFirmwareSample.js} +25 -37
  15. package/dist-esm/samples-dev/cryptoCertificatesListByFirmwareSample.js.map +1 -0
  16. package/dist-esm/samples-dev/cryptoKeysListByFirmwareSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/cryptoKeysListByFirmwareSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/{firmwareListGenerateCryptoCertificateListSample.js → cryptoKeysListByFirmwareSample.js} +23 -34
  19. package/dist-esm/samples-dev/cryptoKeysListByFirmwareSample.js.map +1 -0
  20. package/dist-esm/samples-dev/cvesListByFirmwareSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/cvesListByFirmwareSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/cvesListByFirmwareSample.js +92 -0
  23. package/dist-esm/samples-dev/cvesListByFirmwareSample.js.map +1 -0
  24. package/dist-esm/samples-dev/firmwaresCreateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/firmwaresCreateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/{firmwareCreateSample.js → firmwaresCreateSample.js} +20 -18
  27. package/dist-esm/samples-dev/firmwaresCreateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/firmwaresDeleteSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/firmwaresDeleteSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/{firmwareDeleteSample.js → firmwaresDeleteSample.js} +9 -9
  31. package/dist-esm/samples-dev/firmwaresDeleteSample.js.map +1 -0
  32. package/dist-esm/samples-dev/firmwaresGenerateDownloadUrlSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/firmwaresGenerateDownloadUrlSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/{firmwareGenerateDownloadUrlSample.js → firmwaresGenerateDownloadUrlSample.js} +9 -9
  35. package/dist-esm/samples-dev/firmwaresGenerateDownloadUrlSample.js.map +1 -0
  36. package/dist-esm/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/{firmwareGenerateFilesystemDownloadUrlSample.js → firmwaresGenerateFilesystemDownloadUrlSample.js} +9 -9
  39. package/dist-esm/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.js.map +1 -0
  40. package/dist-esm/samples-dev/firmwaresGetSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/firmwaresGetSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/{firmwareGetSample.js → firmwaresGetSample.js} +9 -9
  43. package/dist-esm/samples-dev/firmwaresGetSample.js.map +1 -0
  44. package/dist-esm/samples-dev/firmwaresListByWorkspaceSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/firmwaresListByWorkspaceSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/{firmwareListByWorkspaceSample.js → firmwaresListByWorkspaceSample.js} +13 -23
  47. package/dist-esm/samples-dev/firmwaresListByWorkspaceSample.js.map +1 -0
  48. package/dist-esm/samples-dev/firmwaresUpdateSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/firmwaresUpdateSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/{firmwareUpdateSample.js → firmwaresUpdateSample.js} +20 -18
  51. package/dist-esm/samples-dev/firmwaresUpdateSample.js.map +1 -0
  52. package/dist-esm/samples-dev/operationsListSample.js +8 -18
  53. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  54. package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.js +92 -0
  57. package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.js.map +1 -0
  58. package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.js +92 -0
  61. package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.js.map +1 -0
  62. package/dist-esm/samples-dev/summariesGetSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/summariesGetSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/{firmwareGenerateSummarySample.js → summariesGetSample.js} +23 -23
  65. package/dist-esm/samples-dev/summariesGetSample.js.map +1 -0
  66. package/dist-esm/samples-dev/summariesListByFirmwareSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/summariesListByFirmwareSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/summariesListByFirmwareSample.js +92 -0
  69. package/dist-esm/samples-dev/summariesListByFirmwareSample.js.map +1 -0
  70. package/dist-esm/samples-dev/workspacesCreateSample.js +5 -4
  71. package/dist-esm/samples-dev/workspacesCreateSample.js.map +1 -1
  72. package/dist-esm/samples-dev/workspacesDeleteSample.js +2 -2
  73. package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js +4 -4
  74. package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js.map +1 -1
  75. package/dist-esm/samples-dev/workspacesGetSample.js +2 -2
  76. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +8 -18
  77. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
  78. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +8 -18
  79. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
  80. package/dist-esm/samples-dev/workspacesUpdateSample.js +4 -4
  81. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
  82. package/dist-esm/src/ioTFirmwareDefenseClient.d.ts +11 -4
  83. package/dist-esm/src/ioTFirmwareDefenseClient.d.ts.map +1 -1
  84. package/dist-esm/src/ioTFirmwareDefenseClient.js +19 -12
  85. package/dist-esm/src/ioTFirmwareDefenseClient.js.map +1 -1
  86. package/dist-esm/src/models/index.d.ts +516 -602
  87. package/dist-esm/src/models/index.d.ts.map +1 -1
  88. package/dist-esm/src/models/index.js +40 -92
  89. package/dist-esm/src/models/index.js.map +1 -1
  90. package/dist-esm/src/models/mappers.d.ts +45 -25
  91. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  92. package/dist-esm/src/models/mappers.js +1120 -1036
  93. package/dist-esm/src/models/mappers.js.map +1 -1
  94. package/dist-esm/src/models/parameters.d.ts +3 -2
  95. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  96. package/dist-esm/src/models/parameters.js +56 -49
  97. package/dist-esm/src/models/parameters.js.map +1 -1
  98. package/dist-esm/src/operations/binaryHardening.d.ts +41 -0
  99. package/dist-esm/src/operations/binaryHardening.d.ts.map +1 -0
  100. package/dist-esm/src/operations/binaryHardening.js +155 -0
  101. package/dist-esm/src/operations/binaryHardening.js.map +1 -0
  102. package/dist-esm/src/operations/cryptoCertificates.d.ts +41 -0
  103. package/dist-esm/src/operations/cryptoCertificates.d.ts.map +1 -0
  104. package/dist-esm/src/operations/cryptoCertificates.js +155 -0
  105. package/dist-esm/src/operations/cryptoCertificates.js.map +1 -0
  106. package/dist-esm/src/operations/cryptoKeys.d.ts +41 -0
  107. package/dist-esm/src/operations/cryptoKeys.d.ts.map +1 -0
  108. package/dist-esm/src/operations/cryptoKeys.js +155 -0
  109. package/dist-esm/src/operations/cryptoKeys.js.map +1 -0
  110. package/dist-esm/src/operations/cves.d.ts +41 -0
  111. package/dist-esm/src/operations/cves.d.ts.map +1 -0
  112. package/dist-esm/src/operations/cves.js +155 -0
  113. package/dist-esm/src/operations/cves.js.map +1 -0
  114. package/dist-esm/src/operations/firmwares.d.ts +88 -0
  115. package/dist-esm/src/operations/firmwares.d.ts.map +1 -0
  116. package/dist-esm/src/operations/firmwares.js +350 -0
  117. package/dist-esm/src/operations/firmwares.js.map +1 -0
  118. package/dist-esm/src/operations/index.d.ts +9 -2
  119. package/dist-esm/src/operations/index.d.ts.map +1 -1
  120. package/dist-esm/src/operations/index.js +9 -2
  121. package/dist-esm/src/operations/index.js.map +1 -1
  122. package/dist-esm/src/operations/operations.js +12 -17
  123. package/dist-esm/src/operations/operations.js.map +1 -1
  124. package/dist-esm/src/operations/passwordHashes.d.ts +41 -0
  125. package/dist-esm/src/operations/passwordHashes.d.ts.map +1 -0
  126. package/dist-esm/src/operations/passwordHashes.js +155 -0
  127. package/dist-esm/src/operations/passwordHashes.js.map +1 -0
  128. package/dist-esm/src/operations/sbomComponents.d.ts +41 -0
  129. package/dist-esm/src/operations/sbomComponents.d.ts.map +1 -0
  130. package/dist-esm/src/operations/sbomComponents.js +155 -0
  131. package/dist-esm/src/operations/sbomComponents.js.map +1 -0
  132. package/dist-esm/src/operations/summaries.d.ts +52 -0
  133. package/dist-esm/src/operations/summaries.d.ts.map +1 -0
  134. package/dist-esm/src/operations/summaries.js +191 -0
  135. package/dist-esm/src/operations/summaries.js.map +1 -0
  136. package/dist-esm/src/operations/workspaces.js +52 -66
  137. package/dist-esm/src/operations/workspaces.js.map +1 -1
  138. package/dist-esm/src/operationsInterfaces/binaryHardening.d.ts +14 -0
  139. package/dist-esm/src/operationsInterfaces/binaryHardening.d.ts.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/{firmwareOperations.js → binaryHardening.js} +1 -1
  141. package/dist-esm/src/operationsInterfaces/binaryHardening.js.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/cryptoCertificates.d.ts +14 -0
  143. package/dist-esm/src/operationsInterfaces/cryptoCertificates.d.ts.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/cryptoCertificates.js +9 -0
  145. package/dist-esm/src/operationsInterfaces/cryptoCertificates.js.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/cryptoKeys.d.ts +14 -0
  147. package/dist-esm/src/operationsInterfaces/cryptoKeys.d.ts.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/cryptoKeys.js +9 -0
  149. package/dist-esm/src/operationsInterfaces/cryptoKeys.js.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/cves.d.ts +14 -0
  151. package/dist-esm/src/operationsInterfaces/cves.d.ts.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/cves.js +9 -0
  153. package/dist-esm/src/operationsInterfaces/cves.js.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/firmwares.d.ts +63 -0
  155. package/dist-esm/src/operationsInterfaces/firmwares.d.ts.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/firmwares.js +9 -0
  157. package/dist-esm/src/operationsInterfaces/firmwares.js.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/index.d.ts +9 -2
  159. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  160. package/dist-esm/src/operationsInterfaces/index.js +9 -2
  161. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  162. package/dist-esm/src/operationsInterfaces/passwordHashes.d.ts +14 -0
  163. package/dist-esm/src/operationsInterfaces/passwordHashes.d.ts.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/passwordHashes.js +9 -0
  165. package/dist-esm/src/operationsInterfaces/passwordHashes.js.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/sbomComponents.d.ts +14 -0
  167. package/dist-esm/src/operationsInterfaces/sbomComponents.d.ts.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/sbomComponents.js +9 -0
  169. package/dist-esm/src/operationsInterfaces/sbomComponents.js.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/summaries.d.ts +24 -0
  171. package/dist-esm/src/operationsInterfaces/summaries.d.ts.map +1 -0
  172. package/dist-esm/src/operationsInterfaces/summaries.js +9 -0
  173. package/dist-esm/src/operationsInterfaces/summaries.js.map +1 -0
  174. package/dist-esm/src/pagingHelper.js.map +1 -1
  175. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js +7 -17
  176. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js.map +1 -1
  177. package/package.json +16 -21
  178. package/review/arm-iotfirmwaredefense.api.md +329 -330
  179. package/src/ioTFirmwareDefenseClient.ts +53 -24
  180. package/src/models/index.ts +566 -646
  181. package/src/models/mappers.ts +1190 -1036
  182. package/src/models/parameters.ts +59 -51
  183. package/src/operations/binaryHardening.ts +216 -0
  184. package/src/operations/cryptoCertificates.ts +216 -0
  185. package/src/operations/cryptoKeys.ts +216 -0
  186. package/src/operations/cves.ts +216 -0
  187. package/src/operations/firmwares.ts +469 -0
  188. package/src/operations/index.ts +9 -2
  189. package/src/operations/operations.ts +16 -16
  190. package/src/operations/passwordHashes.ts +216 -0
  191. package/src/operations/sbomComponents.ts +216 -0
  192. package/src/operations/summaries.ts +265 -0
  193. package/src/operations/workspaces.ts +81 -92
  194. package/src/operationsInterfaces/binaryHardening.ts +31 -0
  195. package/src/operationsInterfaces/cryptoCertificates.ts +31 -0
  196. package/src/operationsInterfaces/cryptoKeys.ts +31 -0
  197. package/src/operationsInterfaces/cves.ts +28 -0
  198. package/src/operationsInterfaces/firmwares.ts +123 -0
  199. package/src/operationsInterfaces/index.ts +9 -2
  200. package/src/operationsInterfaces/operations.ts +1 -1
  201. package/src/operationsInterfaces/passwordHashes.ts +31 -0
  202. package/src/operationsInterfaces/sbomComponents.ts +31 -0
  203. package/src/operationsInterfaces/summaries.ts +50 -0
  204. package/src/operationsInterfaces/workspaces.ts +8 -8
  205. package/src/pagingHelper.ts +1 -1
  206. package/types/arm-iotfirmwaredefense.d.ts +573 -675
  207. package/types/tsdoc-metadata.json +1 -1
  208. package/dist-esm/samples-dev/firmwareCreateSample.d.ts +0 -2
  209. package/dist-esm/samples-dev/firmwareCreateSample.d.ts.map +0 -1
  210. package/dist-esm/samples-dev/firmwareCreateSample.js.map +0 -1
  211. package/dist-esm/samples-dev/firmwareDeleteSample.d.ts +0 -2
  212. package/dist-esm/samples-dev/firmwareDeleteSample.d.ts.map +0 -1
  213. package/dist-esm/samples-dev/firmwareDeleteSample.js.map +0 -1
  214. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js +0 -62
  217. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js.map +0 -1
  218. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts +0 -2
  219. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js +0 -62
  221. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js.map +0 -1
  222. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js +0 -62
  225. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js.map +0 -1
  226. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts +0 -2
  227. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js +0 -61
  229. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js.map +0 -1
  230. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts +0 -2
  231. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js +0 -61
  233. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js.map +0 -1
  234. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts +0 -2
  235. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js +0 -62
  237. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js.map +0 -1
  238. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.js.map +0 -1
  241. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts +0 -2
  242. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts.map +0 -1
  243. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.js.map +0 -1
  244. package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts +0 -2
  245. package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts.map +0 -1
  246. package/dist-esm/samples-dev/firmwareGenerateSummarySample.js.map +0 -1
  247. package/dist-esm/samples-dev/firmwareGetSample.d.ts +0 -2
  248. package/dist-esm/samples-dev/firmwareGetSample.d.ts.map +0 -1
  249. package/dist-esm/samples-dev/firmwareGetSample.js.map +0 -1
  250. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js.map +0 -1
  253. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts +0 -2
  254. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts.map +0 -1
  255. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js +0 -104
  256. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js.map +0 -1
  257. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts +0 -2
  258. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts.map +0 -1
  259. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js +0 -104
  260. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js.map +0 -1
  261. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts +0 -2
  262. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts.map +0 -1
  263. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js.map +0 -1
  264. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts +0 -2
  265. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts.map +0 -1
  266. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js.map +0 -1
  267. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts +0 -2
  268. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts.map +0 -1
  269. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js.map +0 -1
  270. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts +0 -2
  271. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts.map +0 -1
  272. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js +0 -104
  273. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js.map +0 -1
  274. package/dist-esm/samples-dev/firmwareUpdateSample.d.ts +0 -2
  275. package/dist-esm/samples-dev/firmwareUpdateSample.d.ts.map +0 -1
  276. package/dist-esm/samples-dev/firmwareUpdateSample.js.map +0 -1
  277. package/dist-esm/src/operations/firmwareOperations.d.ts +0 -313
  278. package/dist-esm/src/operations/firmwareOperations.d.ts.map +0 -1
  279. package/dist-esm/src/operations/firmwareOperations.js +0 -1393
  280. package/dist-esm/src/operations/firmwareOperations.js.map +0 -1
  281. package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts +0 -169
  282. package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts.map +0 -1
  283. package/dist-esm/src/operationsInterfaces/firmwareOperations.js.map +0 -1
  284. package/rollup.config.js +0 -122
  285. package/src/operations/firmwareOperations.ts +0 -1892
  286. package/src/operationsInterfaces/firmwareOperations.ts +0 -320
@@ -9,14 +9,14 @@
9
9
  import {
10
10
  OperationParameter,
11
11
  OperationURLParameter,
12
- OperationQueryParameter
12
+ OperationQueryParameter,
13
13
  } from "@azure/core-client";
14
14
  import {
15
15
  Firmware as FirmwareMapper,
16
16
  FirmwareUpdateDefinition as FirmwareUpdateDefinitionMapper,
17
17
  Workspace as WorkspaceMapper,
18
18
  WorkspaceUpdateDefinition as WorkspaceUpdateDefinitionMapper,
19
- GenerateUploadUrlRequest as GenerateUploadUrlRequestMapper
19
+ GenerateUploadUrlRequest as GenerateUploadUrlRequestMapper,
20
20
  } from "../models/mappers";
21
21
 
22
22
  export const accept: OperationParameter = {
@@ -26,9 +26,9 @@ export const accept: OperationParameter = {
26
26
  isConstant: true,
27
27
  serializedName: "Accept",
28
28
  type: {
29
- name: "String"
30
- }
31
- }
29
+ name: "String",
30
+ },
31
+ },
32
32
  };
33
33
 
34
34
  export const $host: OperationURLParameter = {
@@ -37,24 +37,21 @@ export const $host: OperationURLParameter = {
37
37
  serializedName: "$host",
38
38
  required: true,
39
39
  type: {
40
- name: "String"
41
- }
40
+ name: "String",
41
+ },
42
42
  },
43
- skipEncoding: true
43
+ skipEncoding: true,
44
44
  };
45
45
 
46
46
  export const subscriptionId: OperationURLParameter = {
47
47
  parameterPath: "subscriptionId",
48
48
  mapper: {
49
- constraints: {
50
- MinLength: 1
51
- },
52
49
  serializedName: "subscriptionId",
53
50
  required: true,
54
51
  type: {
55
- name: "String"
56
- }
57
- }
52
+ name: "Uuid",
53
+ },
54
+ },
58
55
  };
59
56
 
60
57
  export const resourceGroupName: OperationURLParameter = {
@@ -62,40 +59,63 @@ export const resourceGroupName: OperationURLParameter = {
62
59
  mapper: {
63
60
  constraints: {
64
61
  MaxLength: 90,
65
- MinLength: 1
62
+ MinLength: 1,
66
63
  },
67
64
  serializedName: "resourceGroupName",
68
65
  required: true,
69
66
  type: {
70
- name: "String"
71
- }
72
- }
67
+ name: "String",
68
+ },
69
+ },
73
70
  };
74
71
 
75
72
  export const workspaceName: OperationURLParameter = {
76
73
  parameterPath: "workspaceName",
77
74
  mapper: {
78
75
  constraints: {
79
- Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$")
76
+ Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"),
80
77
  },
81
78
  serializedName: "workspaceName",
82
79
  required: true,
83
80
  type: {
84
- name: "String"
85
- }
86
- }
81
+ name: "String",
82
+ },
83
+ },
84
+ };
85
+
86
+ export const firmwareId: OperationURLParameter = {
87
+ parameterPath: "firmwareId",
88
+ mapper: {
89
+ serializedName: "firmwareId",
90
+ required: true,
91
+ type: {
92
+ name: "String",
93
+ },
94
+ },
87
95
  };
88
96
 
89
97
  export const apiVersion: OperationQueryParameter = {
90
98
  parameterPath: "apiVersion",
91
99
  mapper: {
92
- defaultValue: "2023-02-08-preview",
100
+ defaultValue: "2024-01-10",
93
101
  isConstant: true,
94
102
  serializedName: "api-version",
95
103
  type: {
96
- name: "String"
97
- }
98
- }
104
+ name: "String",
105
+ },
106
+ },
107
+ };
108
+
109
+ export const nextLink: OperationURLParameter = {
110
+ parameterPath: "nextLink",
111
+ mapper: {
112
+ serializedName: "nextLink",
113
+ required: true,
114
+ type: {
115
+ name: "String",
116
+ },
117
+ },
118
+ skipEncoding: true,
99
119
  };
100
120
 
101
121
  export const contentType: OperationParameter = {
@@ -105,55 +125,43 @@ export const contentType: OperationParameter = {
105
125
  isConstant: true,
106
126
  serializedName: "Content-Type",
107
127
  type: {
108
- name: "String"
109
- }
110
- }
128
+ name: "String",
129
+ },
130
+ },
111
131
  };
112
132
 
113
133
  export const firmware: OperationParameter = {
114
134
  parameterPath: "firmware",
115
- mapper: FirmwareMapper
116
- };
117
-
118
- export const firmwareId: OperationURLParameter = {
119
- parameterPath: "firmwareId",
120
- mapper: {
121
- serializedName: "firmwareId",
122
- required: true,
123
- type: {
124
- name: "String"
125
- }
126
- }
135
+ mapper: FirmwareMapper,
127
136
  };
128
137
 
129
138
  export const firmware1: OperationParameter = {
130
139
  parameterPath: "firmware",
131
- mapper: FirmwareUpdateDefinitionMapper
140
+ mapper: FirmwareUpdateDefinitionMapper,
132
141
  };
133
142
 
134
- export const nextLink: OperationURLParameter = {
135
- parameterPath: "nextLink",
143
+ export const summaryName: OperationURLParameter = {
144
+ parameterPath: "summaryName",
136
145
  mapper: {
137
- serializedName: "nextLink",
146
+ serializedName: "summaryName",
138
147
  required: true,
139
148
  type: {
140
- name: "String"
141
- }
149
+ name: "String",
150
+ },
142
151
  },
143
- skipEncoding: true
144
152
  };
145
153
 
146
154
  export const workspace: OperationParameter = {
147
155
  parameterPath: "workspace",
148
- mapper: WorkspaceMapper
156
+ mapper: WorkspaceMapper,
149
157
  };
150
158
 
151
159
  export const workspace1: OperationParameter = {
152
160
  parameterPath: "workspace",
153
- mapper: WorkspaceUpdateDefinitionMapper
161
+ mapper: WorkspaceUpdateDefinitionMapper,
154
162
  };
155
163
 
156
164
  export const generateUploadUrl: OperationParameter = {
157
165
  parameterPath: "generateUploadUrl",
158
- mapper: GenerateUploadUrlRequestMapper
166
+ mapper: GenerateUploadUrlRequestMapper,
159
167
  };
@@ -0,0 +1,216 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { BinaryHardening } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient";
16
+ import {
17
+ BinaryHardeningResource,
18
+ BinaryHardeningListByFirmwareNextOptionalParams,
19
+ BinaryHardeningListByFirmwareOptionalParams,
20
+ BinaryHardeningListByFirmwareResponse,
21
+ BinaryHardeningListByFirmwareNextResponse,
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Class containing BinaryHardening operations. */
26
+ export class BinaryHardeningImpl implements BinaryHardening {
27
+ private readonly client: IoTFirmwareDefenseClient;
28
+
29
+ /**
30
+ * Initialize a new instance of the class BinaryHardening class.
31
+ * @param client Reference to the service client
32
+ */
33
+ constructor(client: IoTFirmwareDefenseClient) {
34
+ this.client = client;
35
+ }
36
+
37
+ /**
38
+ * Lists binary hardening analysis results of a firmware.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param workspaceName The name of the firmware analysis workspace.
41
+ * @param firmwareId The id of the firmware.
42
+ * @param options The options parameters.
43
+ */
44
+ public listByFirmware(
45
+ resourceGroupName: string,
46
+ workspaceName: string,
47
+ firmwareId: string,
48
+ options?: BinaryHardeningListByFirmwareOptionalParams,
49
+ ): PagedAsyncIterableIterator<BinaryHardeningResource> {
50
+ const iter = this.listByFirmwarePagingAll(
51
+ resourceGroupName,
52
+ workspaceName,
53
+ firmwareId,
54
+ options,
55
+ );
56
+ return {
57
+ next() {
58
+ return iter.next();
59
+ },
60
+ [Symbol.asyncIterator]() {
61
+ return this;
62
+ },
63
+ byPage: (settings?: PageSettings) => {
64
+ if (settings?.maxPageSize) {
65
+ throw new Error("maxPageSize is not supported by this operation.");
66
+ }
67
+ return this.listByFirmwarePagingPage(
68
+ resourceGroupName,
69
+ workspaceName,
70
+ firmwareId,
71
+ options,
72
+ settings,
73
+ );
74
+ },
75
+ };
76
+ }
77
+
78
+ private async *listByFirmwarePagingPage(
79
+ resourceGroupName: string,
80
+ workspaceName: string,
81
+ firmwareId: string,
82
+ options?: BinaryHardeningListByFirmwareOptionalParams,
83
+ settings?: PageSettings,
84
+ ): AsyncIterableIterator<BinaryHardeningResource[]> {
85
+ let result: BinaryHardeningListByFirmwareResponse;
86
+ let continuationToken = settings?.continuationToken;
87
+ if (!continuationToken) {
88
+ result = await this._listByFirmware(
89
+ resourceGroupName,
90
+ workspaceName,
91
+ firmwareId,
92
+ options,
93
+ );
94
+ let page = result.value || [];
95
+ continuationToken = result.nextLink;
96
+ setContinuationToken(page, continuationToken);
97
+ yield page;
98
+ }
99
+ while (continuationToken) {
100
+ result = await this._listByFirmwareNext(
101
+ resourceGroupName,
102
+ workspaceName,
103
+ firmwareId,
104
+ continuationToken,
105
+ options,
106
+ );
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ setContinuationToken(page, continuationToken);
110
+ yield page;
111
+ }
112
+ }
113
+
114
+ private async *listByFirmwarePagingAll(
115
+ resourceGroupName: string,
116
+ workspaceName: string,
117
+ firmwareId: string,
118
+ options?: BinaryHardeningListByFirmwareOptionalParams,
119
+ ): AsyncIterableIterator<BinaryHardeningResource> {
120
+ for await (const page of this.listByFirmwarePagingPage(
121
+ resourceGroupName,
122
+ workspaceName,
123
+ firmwareId,
124
+ options,
125
+ )) {
126
+ yield* page;
127
+ }
128
+ }
129
+
130
+ /**
131
+ * Lists binary hardening analysis results of a firmware.
132
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
133
+ * @param workspaceName The name of the firmware analysis workspace.
134
+ * @param firmwareId The id of the firmware.
135
+ * @param options The options parameters.
136
+ */
137
+ private _listByFirmware(
138
+ resourceGroupName: string,
139
+ workspaceName: string,
140
+ firmwareId: string,
141
+ options?: BinaryHardeningListByFirmwareOptionalParams,
142
+ ): Promise<BinaryHardeningListByFirmwareResponse> {
143
+ return this.client.sendOperationRequest(
144
+ { resourceGroupName, workspaceName, firmwareId, options },
145
+ listByFirmwareOperationSpec,
146
+ );
147
+ }
148
+
149
+ /**
150
+ * ListByFirmwareNext
151
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
152
+ * @param workspaceName The name of the firmware analysis workspace.
153
+ * @param firmwareId The id of the firmware.
154
+ * @param nextLink The nextLink from the previous successful call to the ListByFirmware method.
155
+ * @param options The options parameters.
156
+ */
157
+ private _listByFirmwareNext(
158
+ resourceGroupName: string,
159
+ workspaceName: string,
160
+ firmwareId: string,
161
+ nextLink: string,
162
+ options?: BinaryHardeningListByFirmwareNextOptionalParams,
163
+ ): Promise<BinaryHardeningListByFirmwareNextResponse> {
164
+ return this.client.sendOperationRequest(
165
+ { resourceGroupName, workspaceName, firmwareId, nextLink, options },
166
+ listByFirmwareNextOperationSpec,
167
+ );
168
+ }
169
+ }
170
+ // Operation Specifications
171
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
172
+
173
+ const listByFirmwareOperationSpec: coreClient.OperationSpec = {
174
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/binaryHardeningResults",
175
+ httpMethod: "GET",
176
+ responses: {
177
+ 200: {
178
+ bodyMapper: Mappers.BinaryHardeningListResult,
179
+ },
180
+ default: {
181
+ bodyMapper: Mappers.ErrorResponse,
182
+ },
183
+ },
184
+ queryParameters: [Parameters.apiVersion],
185
+ urlParameters: [
186
+ Parameters.$host,
187
+ Parameters.subscriptionId,
188
+ Parameters.resourceGroupName,
189
+ Parameters.workspaceName,
190
+ Parameters.firmwareId,
191
+ ],
192
+ headerParameters: [Parameters.accept],
193
+ serializer,
194
+ };
195
+ const listByFirmwareNextOperationSpec: coreClient.OperationSpec = {
196
+ path: "{nextLink}",
197
+ httpMethod: "GET",
198
+ responses: {
199
+ 200: {
200
+ bodyMapper: Mappers.BinaryHardeningListResult,
201
+ },
202
+ default: {
203
+ bodyMapper: Mappers.ErrorResponse,
204
+ },
205
+ },
206
+ urlParameters: [
207
+ Parameters.$host,
208
+ Parameters.subscriptionId,
209
+ Parameters.resourceGroupName,
210
+ Parameters.workspaceName,
211
+ Parameters.firmwareId,
212
+ Parameters.nextLink,
213
+ ],
214
+ headerParameters: [Parameters.accept],
215
+ serializer,
216
+ };
@@ -0,0 +1,216 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
11
+ import { CryptoCertificates } from "../operationsInterfaces";
12
+ import * as coreClient from "@azure/core-client";
13
+ import * as Mappers from "../models/mappers";
14
+ import * as Parameters from "../models/parameters";
15
+ import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient";
16
+ import {
17
+ CryptoCertificateResource,
18
+ CryptoCertificatesListByFirmwareNextOptionalParams,
19
+ CryptoCertificatesListByFirmwareOptionalParams,
20
+ CryptoCertificatesListByFirmwareResponse,
21
+ CryptoCertificatesListByFirmwareNextResponse,
22
+ } from "../models";
23
+
24
+ /// <reference lib="esnext.asynciterable" />
25
+ /** Class containing CryptoCertificates operations. */
26
+ export class CryptoCertificatesImpl implements CryptoCertificates {
27
+ private readonly client: IoTFirmwareDefenseClient;
28
+
29
+ /**
30
+ * Initialize a new instance of the class CryptoCertificates class.
31
+ * @param client Reference to the service client
32
+ */
33
+ constructor(client: IoTFirmwareDefenseClient) {
34
+ this.client = client;
35
+ }
36
+
37
+ /**
38
+ * Lists cryptographic certificate analysis results found in a firmware.
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param workspaceName The name of the firmware analysis workspace.
41
+ * @param firmwareId The id of the firmware.
42
+ * @param options The options parameters.
43
+ */
44
+ public listByFirmware(
45
+ resourceGroupName: string,
46
+ workspaceName: string,
47
+ firmwareId: string,
48
+ options?: CryptoCertificatesListByFirmwareOptionalParams,
49
+ ): PagedAsyncIterableIterator<CryptoCertificateResource> {
50
+ const iter = this.listByFirmwarePagingAll(
51
+ resourceGroupName,
52
+ workspaceName,
53
+ firmwareId,
54
+ options,
55
+ );
56
+ return {
57
+ next() {
58
+ return iter.next();
59
+ },
60
+ [Symbol.asyncIterator]() {
61
+ return this;
62
+ },
63
+ byPage: (settings?: PageSettings) => {
64
+ if (settings?.maxPageSize) {
65
+ throw new Error("maxPageSize is not supported by this operation.");
66
+ }
67
+ return this.listByFirmwarePagingPage(
68
+ resourceGroupName,
69
+ workspaceName,
70
+ firmwareId,
71
+ options,
72
+ settings,
73
+ );
74
+ },
75
+ };
76
+ }
77
+
78
+ private async *listByFirmwarePagingPage(
79
+ resourceGroupName: string,
80
+ workspaceName: string,
81
+ firmwareId: string,
82
+ options?: CryptoCertificatesListByFirmwareOptionalParams,
83
+ settings?: PageSettings,
84
+ ): AsyncIterableIterator<CryptoCertificateResource[]> {
85
+ let result: CryptoCertificatesListByFirmwareResponse;
86
+ let continuationToken = settings?.continuationToken;
87
+ if (!continuationToken) {
88
+ result = await this._listByFirmware(
89
+ resourceGroupName,
90
+ workspaceName,
91
+ firmwareId,
92
+ options,
93
+ );
94
+ let page = result.value || [];
95
+ continuationToken = result.nextLink;
96
+ setContinuationToken(page, continuationToken);
97
+ yield page;
98
+ }
99
+ while (continuationToken) {
100
+ result = await this._listByFirmwareNext(
101
+ resourceGroupName,
102
+ workspaceName,
103
+ firmwareId,
104
+ continuationToken,
105
+ options,
106
+ );
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ setContinuationToken(page, continuationToken);
110
+ yield page;
111
+ }
112
+ }
113
+
114
+ private async *listByFirmwarePagingAll(
115
+ resourceGroupName: string,
116
+ workspaceName: string,
117
+ firmwareId: string,
118
+ options?: CryptoCertificatesListByFirmwareOptionalParams,
119
+ ): AsyncIterableIterator<CryptoCertificateResource> {
120
+ for await (const page of this.listByFirmwarePagingPage(
121
+ resourceGroupName,
122
+ workspaceName,
123
+ firmwareId,
124
+ options,
125
+ )) {
126
+ yield* page;
127
+ }
128
+ }
129
+
130
+ /**
131
+ * Lists cryptographic certificate analysis results found in a firmware.
132
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
133
+ * @param workspaceName The name of the firmware analysis workspace.
134
+ * @param firmwareId The id of the firmware.
135
+ * @param options The options parameters.
136
+ */
137
+ private _listByFirmware(
138
+ resourceGroupName: string,
139
+ workspaceName: string,
140
+ firmwareId: string,
141
+ options?: CryptoCertificatesListByFirmwareOptionalParams,
142
+ ): Promise<CryptoCertificatesListByFirmwareResponse> {
143
+ return this.client.sendOperationRequest(
144
+ { resourceGroupName, workspaceName, firmwareId, options },
145
+ listByFirmwareOperationSpec,
146
+ );
147
+ }
148
+
149
+ /**
150
+ * ListByFirmwareNext
151
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
152
+ * @param workspaceName The name of the firmware analysis workspace.
153
+ * @param firmwareId The id of the firmware.
154
+ * @param nextLink The nextLink from the previous successful call to the ListByFirmware method.
155
+ * @param options The options parameters.
156
+ */
157
+ private _listByFirmwareNext(
158
+ resourceGroupName: string,
159
+ workspaceName: string,
160
+ firmwareId: string,
161
+ nextLink: string,
162
+ options?: CryptoCertificatesListByFirmwareNextOptionalParams,
163
+ ): Promise<CryptoCertificatesListByFirmwareNextResponse> {
164
+ return this.client.sendOperationRequest(
165
+ { resourceGroupName, workspaceName, firmwareId, nextLink, options },
166
+ listByFirmwareNextOperationSpec,
167
+ );
168
+ }
169
+ }
170
+ // Operation Specifications
171
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
172
+
173
+ const listByFirmwareOperationSpec: coreClient.OperationSpec = {
174
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/cryptoCertificates",
175
+ httpMethod: "GET",
176
+ responses: {
177
+ 200: {
178
+ bodyMapper: Mappers.CryptoCertificateListResult,
179
+ },
180
+ default: {
181
+ bodyMapper: Mappers.ErrorResponse,
182
+ },
183
+ },
184
+ queryParameters: [Parameters.apiVersion],
185
+ urlParameters: [
186
+ Parameters.$host,
187
+ Parameters.subscriptionId,
188
+ Parameters.resourceGroupName,
189
+ Parameters.workspaceName,
190
+ Parameters.firmwareId,
191
+ ],
192
+ headerParameters: [Parameters.accept],
193
+ serializer,
194
+ };
195
+ const listByFirmwareNextOperationSpec: coreClient.OperationSpec = {
196
+ path: "{nextLink}",
197
+ httpMethod: "GET",
198
+ responses: {
199
+ 200: {
200
+ bodyMapper: Mappers.CryptoCertificateListResult,
201
+ },
202
+ default: {
203
+ bodyMapper: Mappers.ErrorResponse,
204
+ },
205
+ },
206
+ urlParameters: [
207
+ Parameters.$host,
208
+ Parameters.subscriptionId,
209
+ Parameters.resourceGroupName,
210
+ Parameters.workspaceName,
211
+ Parameters.firmwareId,
212
+ Parameters.nextLink,
213
+ ],
214
+ headerParameters: [Parameters.accept],
215
+ serializer,
216
+ };