@azure/arm-hardwaresecuritymodules 2.0.0-beta.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (783) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/LICENSE +3 -3
  3. package/README.md +39 -33
  4. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  5. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js +36 -0
  6. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  7. package/dist/browser/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  8. package/dist/browser/api/cloudHsmClusterBackupStatus/index.js +4 -0
  9. package/dist/browser/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  10. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  11. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js +42 -0
  12. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  13. package/dist/browser/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  14. package/dist/browser/api/cloudHsmClusterBackupStatus/options.js +4 -0
  15. package/dist/browser/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  16. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  17. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.js +4 -0
  18. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  19. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  20. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js +109 -0
  21. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  22. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  23. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.js +4 -0
  24. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  25. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  26. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.js +4 -0
  27. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  28. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  29. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js +36 -0
  30. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  31. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  32. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.js +4 -0
  33. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  34. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  35. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.js +4 -0
  36. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  37. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  38. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js +42 -0
  39. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  40. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  41. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.js +4 -0
  42. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  43. package/dist/browser/api/cloudHsmClusters/index.d.ts +3 -0
  44. package/dist/browser/api/cloudHsmClusters/index.js +4 -0
  45. package/dist/browser/api/cloudHsmClusters/index.js.map +1 -0
  46. package/dist/browser/api/cloudHsmClusters/operations.d.ts +52 -0
  47. package/dist/browser/api/cloudHsmClusters/operations.js +324 -0
  48. package/dist/browser/api/cloudHsmClusters/operations.js.map +1 -0
  49. package/dist/browser/api/cloudHsmClusters/options.d.ts +57 -0
  50. package/dist/browser/api/cloudHsmClusters/options.js +4 -0
  51. package/dist/browser/api/cloudHsmClusters/options.js.map +1 -0
  52. package/dist/browser/api/dedicatedHsm/index.d.ts +3 -0
  53. package/dist/browser/api/dedicatedHsm/index.js +4 -0
  54. package/dist/browser/api/dedicatedHsm/index.js.map +1 -0
  55. package/dist/browser/api/dedicatedHsm/operations.d.ts +40 -0
  56. package/dist/browser/api/dedicatedHsm/operations.js +215 -0
  57. package/dist/browser/api/dedicatedHsm/operations.js.map +1 -0
  58. package/dist/browser/api/dedicatedHsm/options.d.ts +33 -0
  59. package/dist/browser/api/dedicatedHsm/options.js +4 -0
  60. package/dist/browser/api/dedicatedHsm/options.js.map +1 -0
  61. package/dist/browser/api/index.d.ts +2 -0
  62. package/dist/browser/api/index.js +4 -0
  63. package/dist/browser/api/index.js.map +1 -0
  64. package/dist/browser/api/operations/index.d.ts +3 -0
  65. package/dist/browser/api/operations/index.js +4 -0
  66. package/dist/browser/api/operations/index.js.map +1 -0
  67. package/dist/browser/api/operations/operations.d.ts +10 -0
  68. package/dist/browser/api/operations/operations.js +29 -0
  69. package/dist/browser/api/operations/operations.js.map +1 -0
  70. package/dist/browser/api/operations/options.d.ts +5 -0
  71. package/dist/browser/api/operations/options.js +4 -0
  72. package/dist/browser/api/operations/options.js.map +1 -0
  73. package/dist/browser/api/privateEndpointConnections/index.d.ts +3 -0
  74. package/dist/browser/api/privateEndpointConnections/index.js +4 -0
  75. package/dist/browser/api/privateEndpointConnections/index.js.map +1 -0
  76. package/dist/browser/api/privateEndpointConnections/operations.d.ts +10 -0
  77. package/dist/browser/api/privateEndpointConnections/operations.js +36 -0
  78. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -0
  79. package/dist/browser/api/privateEndpointConnections/options.d.ts +5 -0
  80. package/dist/browser/api/privateEndpointConnections/options.js +4 -0
  81. package/dist/browser/api/privateEndpointConnections/options.js.map +1 -0
  82. package/dist/browser/azureDedicatedHSMResourceProvider.d.ts +36 -0
  83. package/dist/browser/azureDedicatedHSMResourceProvider.js +33 -0
  84. package/dist/browser/azureDedicatedHSMResourceProvider.js.map +1 -0
  85. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  86. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js +12 -0
  87. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  88. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  89. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js +14 -0
  90. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  91. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  92. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js +12 -0
  93. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  94. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  95. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js +12 -0
  96. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  97. package/dist/browser/classic/cloudHsmClusters/index.d.ts +35 -0
  98. package/dist/browser/classic/cloudHsmClusters/index.js +21 -0
  99. package/dist/browser/classic/cloudHsmClusters/index.js.map +1 -0
  100. package/dist/browser/classic/dedicatedHsm/index.d.ts +29 -0
  101. package/dist/browser/classic/dedicatedHsm/index.js +18 -0
  102. package/dist/browser/classic/dedicatedHsm/index.js.map +1 -0
  103. package/dist/browser/classic/index.d.ts +9 -0
  104. package/dist/browser/classic/index.js +4 -0
  105. package/dist/browser/classic/index.js.map +1 -0
  106. package/dist/browser/classic/operations/index.d.ts +11 -0
  107. package/dist/browser/classic/operations/index.js +12 -0
  108. package/dist/browser/classic/operations/index.js.map +1 -0
  109. package/dist/browser/classic/privateEndpointConnections/index.d.ts +11 -0
  110. package/dist/browser/classic/privateEndpointConnections/index.js +12 -0
  111. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -0
  112. package/dist/browser/index.d.ts +16 -0
  113. package/dist/browser/index.js +6 -0
  114. package/dist/browser/index.js.map +1 -0
  115. package/dist/browser/logger.d.ts +2 -0
  116. package/dist/browser/logger.js +5 -0
  117. package/dist/browser/logger.js.map +1 -0
  118. package/dist/browser/models/index.d.ts +2 -0
  119. package/dist/browser/models/index.js +4 -0
  120. package/dist/browser/models/index.js.map +1 -0
  121. package/dist/browser/models/models.d.ts +751 -0
  122. package/dist/browser/models/models.js +747 -0
  123. package/dist/browser/models/models.js.map +1 -0
  124. package/dist/browser/package.json +3 -0
  125. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  126. package/dist/browser/restorePollerHelpers.js +133 -0
  127. package/dist/browser/restorePollerHelpers.js.map +1 -0
  128. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  129. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  130. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  131. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  132. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  133. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  134. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  135. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  136. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  137. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  138. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js +39 -0
  139. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  140. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  141. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js +8 -0
  142. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  143. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  144. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js +47 -0
  145. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  146. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  147. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js +5 -0
  148. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  149. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  150. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js +10 -0
  151. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  152. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  153. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js +120 -0
  154. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  155. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  156. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js +5 -0
  157. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  158. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  159. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js +8 -0
  160. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  161. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  162. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js +41 -0
  163. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  164. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  165. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js +5 -0
  166. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  167. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  168. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js +8 -0
  169. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  170. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  171. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js +47 -0
  172. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  173. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  174. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js +5 -0
  175. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  176. package/dist/commonjs/api/cloudHsmClusters/index.d.ts +3 -0
  177. package/dist/commonjs/api/cloudHsmClusters/index.js +17 -0
  178. package/dist/commonjs/api/cloudHsmClusters/index.js.map +1 -0
  179. package/dist/commonjs/api/cloudHsmClusters/operations.d.ts +52 -0
  180. package/dist/commonjs/api/cloudHsmClusters/operations.js +356 -0
  181. package/dist/commonjs/api/cloudHsmClusters/operations.js.map +1 -0
  182. package/dist/commonjs/api/cloudHsmClusters/options.d.ts +57 -0
  183. package/dist/commonjs/api/cloudHsmClusters/options.js +5 -0
  184. package/dist/commonjs/api/cloudHsmClusters/options.js.map +1 -0
  185. package/dist/commonjs/api/dedicatedHsm/index.d.ts +3 -0
  186. package/dist/commonjs/api/dedicatedHsm/index.js +14 -0
  187. package/dist/commonjs/api/dedicatedHsm/index.js.map +1 -0
  188. package/dist/commonjs/api/dedicatedHsm/operations.d.ts +40 -0
  189. package/dist/commonjs/api/dedicatedHsm/operations.js +238 -0
  190. package/dist/commonjs/api/dedicatedHsm/operations.js.map +1 -0
  191. package/dist/commonjs/api/dedicatedHsm/options.d.ts +33 -0
  192. package/dist/commonjs/api/dedicatedHsm/options.js +5 -0
  193. package/dist/commonjs/api/dedicatedHsm/options.js.map +1 -0
  194. package/dist/commonjs/api/index.d.ts +2 -0
  195. package/dist/commonjs/api/index.js +8 -0
  196. package/dist/commonjs/api/index.js.map +1 -0
  197. package/dist/commonjs/api/operations/index.d.ts +3 -0
  198. package/dist/commonjs/api/operations/index.js +8 -0
  199. package/dist/commonjs/api/operations/index.js.map +1 -0
  200. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  201. package/dist/commonjs/api/operations/operations.js +34 -0
  202. package/dist/commonjs/api/operations/operations.js.map +1 -0
  203. package/dist/commonjs/api/operations/options.d.ts +5 -0
  204. package/dist/commonjs/api/operations/options.js +5 -0
  205. package/dist/commonjs/api/operations/options.js.map +1 -0
  206. package/dist/commonjs/api/privateEndpointConnections/index.d.ts +3 -0
  207. package/dist/commonjs/api/privateEndpointConnections/index.js +8 -0
  208. package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -0
  209. package/dist/commonjs/api/privateEndpointConnections/operations.d.ts +10 -0
  210. package/dist/commonjs/api/privateEndpointConnections/operations.js +41 -0
  211. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +1 -0
  212. package/dist/commonjs/api/privateEndpointConnections/options.d.ts +5 -0
  213. package/dist/commonjs/api/privateEndpointConnections/options.js +5 -0
  214. package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -0
  215. package/dist/commonjs/azureDedicatedHSMResourceProvider.d.ts +36 -0
  216. package/dist/commonjs/azureDedicatedHSMResourceProvider.js +37 -0
  217. package/dist/commonjs/azureDedicatedHSMResourceProvider.js.map +1 -0
  218. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  219. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js +15 -0
  220. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  221. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  222. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js +17 -0
  223. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  224. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  225. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js +15 -0
  226. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  227. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  228. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js +15 -0
  229. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  230. package/dist/commonjs/classic/cloudHsmClusters/index.d.ts +35 -0
  231. package/dist/commonjs/classic/cloudHsmClusters/index.js +24 -0
  232. package/dist/commonjs/classic/cloudHsmClusters/index.js.map +1 -0
  233. package/dist/commonjs/classic/dedicatedHsm/index.d.ts +29 -0
  234. package/dist/commonjs/classic/dedicatedHsm/index.js +21 -0
  235. package/dist/commonjs/classic/dedicatedHsm/index.js.map +1 -0
  236. package/dist/commonjs/classic/index.d.ts +9 -0
  237. package/dist/commonjs/classic/index.js +5 -0
  238. package/dist/commonjs/classic/index.js.map +1 -0
  239. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  240. package/dist/commonjs/classic/operations/index.js +15 -0
  241. package/dist/commonjs/classic/operations/index.js.map +1 -0
  242. package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +11 -0
  243. package/dist/commonjs/classic/privateEndpointConnections/index.js +15 -0
  244. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -0
  245. package/dist/commonjs/index.d.ts +16 -0
  246. package/dist/commonjs/index.js +26 -0
  247. package/dist/commonjs/index.js.map +1 -0
  248. package/dist/commonjs/logger.d.ts +2 -0
  249. package/dist/commonjs/logger.js +8 -0
  250. package/dist/commonjs/logger.js.map +1 -0
  251. package/dist/commonjs/models/index.d.ts +2 -0
  252. package/dist/commonjs/models/index.js +22 -0
  253. package/dist/commonjs/models/index.js.map +1 -0
  254. package/dist/commonjs/models/models.d.ts +751 -0
  255. package/dist/commonjs/models/models.js +831 -0
  256. package/dist/commonjs/models/models.js.map +1 -0
  257. package/dist/commonjs/package.json +3 -0
  258. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  259. package/dist/commonjs/restorePollerHelpers.js +136 -0
  260. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  261. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  262. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  263. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  264. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  265. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  266. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  267. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  268. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  269. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  270. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  271. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  272. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js +36 -0
  273. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  274. package/dist/esm/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  275. package/dist/esm/api/cloudHsmClusterBackupStatus/index.js +4 -0
  276. package/dist/esm/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  277. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  278. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js +42 -0
  279. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  280. package/dist/esm/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  281. package/dist/esm/api/cloudHsmClusterBackupStatus/options.js +4 -0
  282. package/dist/esm/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  283. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  284. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.js +4 -0
  285. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  286. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  287. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js +109 -0
  288. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  289. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  290. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.js +4 -0
  291. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  292. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  293. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.js +4 -0
  294. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  295. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  296. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js +36 -0
  297. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  298. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  299. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.js +4 -0
  300. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  301. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  302. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.js +4 -0
  303. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  304. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  305. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js +42 -0
  306. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  307. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  308. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.js +4 -0
  309. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  310. package/dist/esm/api/cloudHsmClusters/index.d.ts +3 -0
  311. package/dist/esm/api/cloudHsmClusters/index.js +4 -0
  312. package/dist/esm/api/cloudHsmClusters/index.js.map +1 -0
  313. package/dist/esm/api/cloudHsmClusters/operations.d.ts +52 -0
  314. package/dist/esm/api/cloudHsmClusters/operations.js +324 -0
  315. package/dist/esm/api/cloudHsmClusters/operations.js.map +1 -0
  316. package/dist/esm/api/cloudHsmClusters/options.d.ts +57 -0
  317. package/dist/esm/api/cloudHsmClusters/options.js +4 -0
  318. package/dist/esm/api/cloudHsmClusters/options.js.map +1 -0
  319. package/dist/esm/api/dedicatedHsm/index.d.ts +3 -0
  320. package/dist/esm/api/dedicatedHsm/index.js +4 -0
  321. package/dist/esm/api/dedicatedHsm/index.js.map +1 -0
  322. package/dist/esm/api/dedicatedHsm/operations.d.ts +40 -0
  323. package/dist/esm/api/dedicatedHsm/operations.js +215 -0
  324. package/dist/esm/api/dedicatedHsm/operations.js.map +1 -0
  325. package/dist/esm/api/dedicatedHsm/options.d.ts +33 -0
  326. package/dist/esm/api/dedicatedHsm/options.js +4 -0
  327. package/dist/esm/api/dedicatedHsm/options.js.map +1 -0
  328. package/dist/esm/api/index.d.ts +2 -0
  329. package/dist/esm/api/index.js +4 -0
  330. package/dist/esm/api/index.js.map +1 -0
  331. package/dist/esm/api/operations/index.d.ts +3 -0
  332. package/dist/esm/api/operations/index.js +4 -0
  333. package/dist/esm/api/operations/index.js.map +1 -0
  334. package/dist/esm/api/operations/operations.d.ts +10 -0
  335. package/dist/esm/api/operations/operations.js +29 -0
  336. package/dist/esm/api/operations/operations.js.map +1 -0
  337. package/dist/esm/api/operations/options.d.ts +5 -0
  338. package/dist/esm/api/operations/options.js +4 -0
  339. package/dist/esm/api/operations/options.js.map +1 -0
  340. package/dist/esm/api/privateEndpointConnections/index.d.ts +3 -0
  341. package/dist/esm/api/privateEndpointConnections/index.js +4 -0
  342. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -0
  343. package/dist/esm/api/privateEndpointConnections/operations.d.ts +10 -0
  344. package/dist/esm/api/privateEndpointConnections/operations.js +36 -0
  345. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -0
  346. package/dist/esm/api/privateEndpointConnections/options.d.ts +5 -0
  347. package/dist/esm/api/privateEndpointConnections/options.js +4 -0
  348. package/dist/esm/api/privateEndpointConnections/options.js.map +1 -0
  349. package/dist/esm/azureDedicatedHSMResourceProvider.d.ts +36 -0
  350. package/dist/esm/azureDedicatedHSMResourceProvider.js +33 -0
  351. package/dist/esm/azureDedicatedHSMResourceProvider.js.map +1 -0
  352. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  353. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js +12 -0
  354. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  355. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  356. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js +14 -0
  357. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  358. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  359. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js +12 -0
  360. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  361. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  362. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js +12 -0
  363. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  364. package/dist/esm/classic/cloudHsmClusters/index.d.ts +35 -0
  365. package/dist/esm/classic/cloudHsmClusters/index.js +21 -0
  366. package/dist/esm/classic/cloudHsmClusters/index.js.map +1 -0
  367. package/dist/esm/classic/dedicatedHsm/index.d.ts +29 -0
  368. package/dist/esm/classic/dedicatedHsm/index.js +18 -0
  369. package/dist/esm/classic/dedicatedHsm/index.js.map +1 -0
  370. package/dist/esm/classic/index.d.ts +9 -0
  371. package/dist/esm/classic/index.js +4 -0
  372. package/dist/esm/classic/index.js.map +1 -0
  373. package/dist/esm/classic/operations/index.d.ts +11 -0
  374. package/dist/esm/classic/operations/index.js +12 -0
  375. package/dist/esm/classic/operations/index.js.map +1 -0
  376. package/dist/esm/classic/privateEndpointConnections/index.d.ts +11 -0
  377. package/dist/esm/classic/privateEndpointConnections/index.js +12 -0
  378. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -0
  379. package/dist/esm/index.d.ts +16 -0
  380. package/dist/esm/index.js +6 -0
  381. package/dist/esm/index.js.map +1 -0
  382. package/dist/esm/logger.d.ts +2 -0
  383. package/dist/esm/logger.js +5 -0
  384. package/dist/esm/logger.js.map +1 -0
  385. package/dist/esm/models/index.d.ts +2 -0
  386. package/dist/esm/models/index.js +4 -0
  387. package/dist/esm/models/index.js.map +1 -0
  388. package/dist/esm/models/models.d.ts +751 -0
  389. package/dist/esm/models/models.js +747 -0
  390. package/dist/esm/models/models.js.map +1 -0
  391. package/dist/esm/package.json +3 -0
  392. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  393. package/dist/esm/restorePollerHelpers.js +133 -0
  394. package/dist/esm/restorePollerHelpers.js.map +1 -0
  395. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  396. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  397. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  398. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  399. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  400. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  401. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  402. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  403. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  404. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  405. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js +36 -0
  406. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  407. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  408. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js +4 -0
  409. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  410. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  411. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js +42 -0
  412. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  413. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  414. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.js +4 -0
  415. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  416. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  417. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js +4 -0
  418. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  419. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  420. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js +109 -0
  421. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  422. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  423. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.js +4 -0
  424. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  425. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  426. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js +4 -0
  427. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  428. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  429. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js +36 -0
  430. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  431. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  432. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.js +4 -0
  433. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  434. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  435. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js +4 -0
  436. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  437. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  438. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js +42 -0
  439. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  440. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  441. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.js +4 -0
  442. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  443. package/dist/react-native/api/cloudHsmClusters/index.d.ts +3 -0
  444. package/dist/react-native/api/cloudHsmClusters/index.js +4 -0
  445. package/dist/react-native/api/cloudHsmClusters/index.js.map +1 -0
  446. package/dist/react-native/api/cloudHsmClusters/operations.d.ts +52 -0
  447. package/dist/react-native/api/cloudHsmClusters/operations.js +324 -0
  448. package/dist/react-native/api/cloudHsmClusters/operations.js.map +1 -0
  449. package/dist/react-native/api/cloudHsmClusters/options.d.ts +57 -0
  450. package/dist/react-native/api/cloudHsmClusters/options.js +4 -0
  451. package/dist/react-native/api/cloudHsmClusters/options.js.map +1 -0
  452. package/dist/react-native/api/dedicatedHsm/index.d.ts +3 -0
  453. package/dist/react-native/api/dedicatedHsm/index.js +4 -0
  454. package/dist/react-native/api/dedicatedHsm/index.js.map +1 -0
  455. package/dist/react-native/api/dedicatedHsm/operations.d.ts +40 -0
  456. package/dist/react-native/api/dedicatedHsm/operations.js +215 -0
  457. package/dist/react-native/api/dedicatedHsm/operations.js.map +1 -0
  458. package/dist/react-native/api/dedicatedHsm/options.d.ts +33 -0
  459. package/dist/react-native/api/dedicatedHsm/options.js +4 -0
  460. package/dist/react-native/api/dedicatedHsm/options.js.map +1 -0
  461. package/dist/react-native/api/index.d.ts +2 -0
  462. package/dist/react-native/api/index.js +4 -0
  463. package/dist/react-native/api/index.js.map +1 -0
  464. package/dist/react-native/api/operations/index.d.ts +3 -0
  465. package/dist/react-native/api/operations/index.js +4 -0
  466. package/dist/react-native/api/operations/index.js.map +1 -0
  467. package/dist/react-native/api/operations/operations.d.ts +10 -0
  468. package/dist/react-native/api/operations/operations.js +29 -0
  469. package/dist/react-native/api/operations/operations.js.map +1 -0
  470. package/dist/react-native/api/operations/options.d.ts +5 -0
  471. package/dist/react-native/api/operations/options.js +4 -0
  472. package/dist/react-native/api/operations/options.js.map +1 -0
  473. package/dist/react-native/api/privateEndpointConnections/index.d.ts +3 -0
  474. package/dist/react-native/api/privateEndpointConnections/index.js +4 -0
  475. package/dist/react-native/api/privateEndpointConnections/index.js.map +1 -0
  476. package/dist/react-native/api/privateEndpointConnections/operations.d.ts +10 -0
  477. package/dist/react-native/api/privateEndpointConnections/operations.js +36 -0
  478. package/dist/react-native/api/privateEndpointConnections/operations.js.map +1 -0
  479. package/dist/react-native/api/privateEndpointConnections/options.d.ts +5 -0
  480. package/dist/react-native/api/privateEndpointConnections/options.js +4 -0
  481. package/dist/react-native/api/privateEndpointConnections/options.js.map +1 -0
  482. package/dist/react-native/azureDedicatedHSMResourceProvider.d.ts +36 -0
  483. package/dist/react-native/azureDedicatedHSMResourceProvider.js +33 -0
  484. package/dist/react-native/azureDedicatedHSMResourceProvider.js.map +1 -0
  485. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  486. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js +12 -0
  487. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  488. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  489. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js +14 -0
  490. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  491. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  492. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js +12 -0
  493. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  494. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  495. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js +12 -0
  496. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  497. package/dist/react-native/classic/cloudHsmClusters/index.d.ts +35 -0
  498. package/dist/react-native/classic/cloudHsmClusters/index.js +21 -0
  499. package/dist/react-native/classic/cloudHsmClusters/index.js.map +1 -0
  500. package/dist/react-native/classic/dedicatedHsm/index.d.ts +29 -0
  501. package/dist/react-native/classic/dedicatedHsm/index.js +18 -0
  502. package/dist/react-native/classic/dedicatedHsm/index.js.map +1 -0
  503. package/dist/react-native/classic/index.d.ts +9 -0
  504. package/dist/react-native/classic/index.js +4 -0
  505. package/dist/react-native/classic/index.js.map +1 -0
  506. package/dist/react-native/classic/operations/index.d.ts +11 -0
  507. package/dist/react-native/classic/operations/index.js +12 -0
  508. package/dist/react-native/classic/operations/index.js.map +1 -0
  509. package/dist/react-native/classic/privateEndpointConnections/index.d.ts +11 -0
  510. package/dist/react-native/classic/privateEndpointConnections/index.js +12 -0
  511. package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -0
  512. package/dist/react-native/index.d.ts +16 -0
  513. package/dist/react-native/index.js +6 -0
  514. package/dist/react-native/index.js.map +1 -0
  515. package/dist/react-native/logger.d.ts +2 -0
  516. package/dist/react-native/logger.js +5 -0
  517. package/dist/react-native/logger.js.map +1 -0
  518. package/dist/react-native/models/index.d.ts +2 -0
  519. package/dist/react-native/models/index.js +4 -0
  520. package/dist/react-native/models/index.js.map +1 -0
  521. package/dist/react-native/models/models.d.ts +751 -0
  522. package/dist/react-native/models/models.js +747 -0
  523. package/dist/react-native/models/models.js.map +1 -0
  524. package/dist/react-native/package.json +3 -0
  525. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  526. package/dist/react-native/restorePollerHelpers.js +133 -0
  527. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  528. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  529. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  530. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  531. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  532. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  533. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  534. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  535. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  536. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  537. package/package.json +298 -88
  538. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterBackupStatus.api.md +22 -0
  539. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateEndpointConnections.api.md +36 -0
  540. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateLinkResources.api.md +19 -0
  541. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterRestoreStatus.api.md +22 -0
  542. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusters.api.md +96 -0
  543. package/review/arm-hardwaresecuritymodules-api-dedicatedHsm.api.md +68 -0
  544. package/review/arm-hardwaresecuritymodules-api-operations.api.md +19 -0
  545. package/review/arm-hardwaresecuritymodules-api-privateEndpointConnections.api.md +19 -0
  546. package/review/arm-hardwaresecuritymodules-api.api.md +27 -0
  547. package/review/arm-hardwaresecuritymodules-models.api.md +471 -0
  548. package/review/arm-hardwaresecuritymodules.api.md +172 -396
  549. package/dist/index.js +0 -4363
  550. package/dist/index.js.map +0 -1
  551. package/dist/index.min.js +0 -1
  552. package/dist/index.min.js.map +0 -1
  553. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.d.ts +0 -2
  554. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.d.ts.map +0 -1
  555. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.js +0 -40
  556. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.js.map +0 -1
  557. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts +0 -2
  558. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts.map +0 -1
  559. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +0 -46
  560. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js.map +0 -1
  561. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts +0 -2
  562. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  563. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js +0 -40
  564. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js.map +0 -1
  565. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts +0 -2
  566. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts.map +0 -1
  567. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js +0 -40
  568. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js.map +0 -1
  569. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts +0 -2
  570. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts.map +0 -1
  571. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +0 -55
  572. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js.map +0 -1
  573. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.d.ts +0 -2
  574. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.d.ts.map +0 -1
  575. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.js +0 -40
  576. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.js.map +0 -1
  577. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.d.ts +0 -2
  578. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.d.ts.map +0 -1
  579. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.js +0 -39
  580. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.js.map +0 -1
  581. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts +0 -2
  582. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts.map +0 -1
  583. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js +0 -53
  584. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js.map +0 -1
  585. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts +0 -2
  586. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts.map +0 -1
  587. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js +0 -39
  588. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js.map +0 -1
  589. package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts +0 -2
  590. package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts.map +0 -1
  591. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js +0 -39
  592. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js.map +0 -1
  593. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts +0 -2
  594. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts.map +0 -1
  595. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js +0 -54
  596. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js.map +0 -1
  597. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts +0 -2
  598. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts.map +0 -1
  599. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js +0 -53
  600. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js.map +0 -1
  601. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.d.ts +0 -2
  602. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.d.ts.map +0 -1
  603. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.js +0 -43
  604. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.js.map +0 -1
  605. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts +0 -2
  606. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts.map +0 -1
  607. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js +0 -47
  608. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js.map +0 -1
  609. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.d.ts +0 -2
  610. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.d.ts.map +0 -1
  611. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.js +0 -39
  612. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.js.map +0 -1
  613. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.d.ts +0 -2
  614. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.d.ts.map +0 -1
  615. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.js +0 -46
  616. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.js.map +0 -1
  617. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.d.ts +0 -2
  618. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.d.ts.map +0 -1
  619. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js +0 -119
  620. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js.map +0 -1
  621. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.d.ts +0 -2
  622. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.d.ts.map +0 -1
  623. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js +0 -39
  624. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js.map +0 -1
  625. package/dist-esm/samples-dev/dedicatedHsmGetSample.d.ts +0 -2
  626. package/dist-esm/samples-dev/dedicatedHsmGetSample.d.ts.map +0 -1
  627. package/dist-esm/samples-dev/dedicatedHsmGetSample.js +0 -77
  628. package/dist-esm/samples-dev/dedicatedHsmGetSample.js.map +0 -1
  629. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.d.ts +0 -2
  630. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.d.ts.map +0 -1
  631. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js +0 -88
  632. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js.map +0 -1
  633. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.d.ts +0 -2
  634. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.d.ts.map +0 -1
  635. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js +0 -86
  636. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js.map +0 -1
  637. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts +0 -2
  638. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts.map +0 -1
  639. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +0 -55
  640. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map +0 -1
  641. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.d.ts +0 -2
  642. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.d.ts.map +0 -1
  643. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js +0 -62
  644. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js.map +0 -1
  645. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  646. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  647. package/dist-esm/samples-dev/operationsListSample.js +0 -86
  648. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  649. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts +0 -2
  650. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts.map +0 -1
  651. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js +0 -55
  652. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js.map +0 -1
  653. package/dist-esm/src/azureHSMResourceProvider.d.ts +0 -27
  654. package/dist-esm/src/azureHSMResourceProvider.d.ts.map +0 -1
  655. package/dist-esm/src/azureHSMResourceProvider.js +0 -109
  656. package/dist-esm/src/azureHSMResourceProvider.js.map +0 -1
  657. package/dist-esm/src/index.d.ts +0 -5
  658. package/dist-esm/src/index.d.ts.map +0 -1
  659. package/dist-esm/src/index.js +0 -13
  660. package/dist-esm/src/index.js.map +0 -1
  661. package/dist-esm/src/lroImpl.d.ts +0 -11
  662. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  663. package/dist-esm/src/lroImpl.js +0 -21
  664. package/dist-esm/src/lroImpl.js.map +0 -1
  665. package/dist-esm/src/models/index.d.ts +0 -1182
  666. package/dist-esm/src/models/index.d.ts.map +0 -1
  667. package/dist-esm/src/models/index.js +0 -188
  668. package/dist-esm/src/models/index.js.map +0 -1
  669. package/dist-esm/src/models/mappers.d.ts +0 -59
  670. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  671. package/dist-esm/src/models/mappers.js +0 -1414
  672. package/dist-esm/src/models/mappers.js.map +0 -1
  673. package/dist-esm/src/models/parameters.d.ts +0 -29
  674. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  675. package/dist-esm/src/models/parameters.js +0 -215
  676. package/dist-esm/src/models/parameters.js.map +0 -1
  677. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.d.ts +0 -22
  678. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.d.ts.map +0 -1
  679. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.js +0 -61
  680. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.js.map +0 -1
  681. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts +0 -55
  682. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts.map +0 -1
  683. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js +0 -201
  684. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js.map +0 -1
  685. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts +0 -41
  686. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts.map +0 -1
  687. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js +0 -153
  688. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js.map +0 -1
  689. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.d.ts +0 -22
  690. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.d.ts.map +0 -1
  691. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.js +0 -61
  692. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.js.map +0 -1
  693. package/dist-esm/src/operations/cloudHsmClusters.d.ts +0 -182
  694. package/dist-esm/src/operations/cloudHsmClusters.d.ts.map +0 -1
  695. package/dist-esm/src/operations/cloudHsmClusters.js +0 -965
  696. package/dist-esm/src/operations/cloudHsmClusters.js.map +0 -1
  697. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts +0 -134
  698. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts.map +0 -1
  699. package/dist-esm/src/operations/dedicatedHsmOperations.js +0 -681
  700. package/dist-esm/src/operations/dedicatedHsmOperations.js.map +0 -1
  701. package/dist-esm/src/operations/index.d.ts +0 -9
  702. package/dist-esm/src/operations/index.d.ts.map +0 -1
  703. package/dist-esm/src/operations/index.js +0 -16
  704. package/dist-esm/src/operations/index.js.map +0 -1
  705. package/dist-esm/src/operations/operations.d.ts +0 -26
  706. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  707. package/dist-esm/src/operations/operations.js +0 -96
  708. package/dist-esm/src/operations/operations.js.map +0 -1
  709. package/dist-esm/src/operations/privateEndpointConnections.d.ts +0 -43
  710. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  711. package/dist-esm/src/operations/privateEndpointConnections.js +0 -155
  712. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  713. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.d.ts +0 -14
  714. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.d.ts.map +0 -1
  715. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.js +0 -9
  716. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.js.map +0 -1
  717. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts +0 -47
  718. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts.map +0 -1
  719. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js +0 -9
  720. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js.map +0 -1
  721. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts +0 -14
  722. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts.map +0 -1
  723. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js +0 -9
  724. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js.map +0 -1
  725. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.d.ts +0 -14
  726. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.d.ts.map +0 -1
  727. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.js +0 -9
  728. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.js.map +0 -1
  729. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts +0 -145
  730. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts.map +0 -1
  731. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js +0 -9
  732. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js.map +0 -1
  733. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts +0 -78
  734. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts.map +0 -1
  735. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.js +0 -9
  736. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.js.map +0 -1
  737. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -9
  738. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  739. package/dist-esm/src/operationsInterfaces/index.js +0 -16
  740. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  741. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  742. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  743. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  744. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  745. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +0 -15
  746. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  747. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +0 -9
  748. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  749. package/dist-esm/src/pagingHelper.d.ts +0 -13
  750. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  751. package/dist-esm/src/pagingHelper.js +0 -32
  752. package/dist-esm/src/pagingHelper.js.map +0 -1
  753. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts +0 -4
  754. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts.map +0 -1
  755. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js +0 -77
  756. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js.map +0 -1
  757. package/src/azureHSMResourceProvider.ts +0 -179
  758. package/src/index.ts +0 -13
  759. package/src/lroImpl.ts +0 -42
  760. package/src/models/index.ts +0 -1366
  761. package/src/models/mappers.ts +0 -1529
  762. package/src/models/parameters.ts +0 -255
  763. package/src/operations/cloudHsmClusterBackupStatus.ts +0 -82
  764. package/src/operations/cloudHsmClusterPrivateEndpointConnections.ts +0 -281
  765. package/src/operations/cloudHsmClusterPrivateLinkResources.ts +0 -206
  766. package/src/operations/cloudHsmClusterRestoreStatus.ts +0 -82
  767. package/src/operations/cloudHsmClusters.ts +0 -1283
  768. package/src/operations/dedicatedHsmOperations.ts +0 -888
  769. package/src/operations/index.ts +0 -16
  770. package/src/operations/operations.ts +0 -103
  771. package/src/operations/privateEndpointConnections.ts +0 -208
  772. package/src/operationsInterfaces/cloudHsmClusterBackupStatus.ts +0 -30
  773. package/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts +0 -89
  774. package/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts +0 -30
  775. package/src/operationsInterfaces/cloudHsmClusterRestoreStatus.ts +0 -30
  776. package/src/operationsInterfaces/cloudHsmClusters.ts +0 -279
  777. package/src/operationsInterfaces/dedicatedHsmOperations.ts +0 -155
  778. package/src/operationsInterfaces/index.ts +0 -16
  779. package/src/operationsInterfaces/operations.ts +0 -22
  780. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -31
  781. package/src/pagingHelper.ts +0 -39
  782. package/tsconfig.json +0 -33
  783. package/types/arm-hardwaresecuritymodules.d.ts +0 -1694
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,MAAM,UAAU,gCAAgC,CAAC,IAAS;IACxD,OAAO;QACL,KAAK,EAAE,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAChD,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC7C,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,OAAO,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC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J,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,MAA6B;IAC3E,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,0BAA0B,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC;AAcD,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAClD,OAAO;QACL,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Resource information with extended details. */\nexport interface CloudHsmCluster extends TrackedResource {\n /** Properties of the Cloud HSM Cluster */\n properties?: CloudHsmClusterProperties;\n /** Managed service identity (system assigned and/or user assigned identities) */\n identity?: ManagedServiceIdentity;\n /** SKU details */\n sku?: CloudHsmClusterSku;\n}\n\nexport function cloudHsmClusterSerializer(item: CloudHsmCluster): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : cloudHsmClusterPropertiesSerializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n sku: !item[\"sku\"] ? item[\"sku\"] : cloudHsmClusterSkuSerializer(item[\"sku\"]),\n };\n}\n\nexport function cloudHsmClusterDeserializer(item: any): CloudHsmCluster {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : cloudHsmClusterPropertiesDeserializer(item[\"properties\"]),\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentityDeserializer(item[\"identity\"]),\n sku: !item[\"sku\"] ? item[\"sku\"] : cloudHsmClusterSkuDeserializer(item[\"sku\"]),\n };\n}\n\n/** Properties of a Cloud HSM Cluster. */\nexport interface CloudHsmClusterProperties {\n /** State of security domain activation */\n readonly activationState?: ActivationState;\n /** The Cloud HSM Cluster's auto-generated Domain Name Label Scope */\n autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;\n /** An array of Cloud HSM Cluster's HSMs */\n readonly hsms?: CloudHsmProperties[];\n /** List of private endpoint connection resources */\n readonly privateEndpointConnections?: PrivateEndpointConnection[];\n /** The Cloud HSM Cluster's provisioningState */\n readonly provisioningState?: ProvisioningState;\n /** The Cloud HSM Cluster public network access */\n publicNetworkAccess?: PublicNetworkAccess;\n /** Cloud HSM Cluster status message */\n readonly statusMessage?: string;\n}\n\nexport function cloudHsmClusterPropertiesSerializer(item: CloudHsmClusterProperties): any {\n return {\n autoGeneratedDomainNameLabelScope: item[\"autoGeneratedDomainNameLabelScope\"],\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n };\n}\n\nexport function cloudHsmClusterPropertiesDeserializer(item: any): CloudHsmClusterProperties {\n return {\n activationState: item[\"activationState\"],\n autoGeneratedDomainNameLabelScope: item[\"autoGeneratedDomainNameLabelScope\"],\n hsms: !item[\"hsms\"] ? item[\"hsms\"] : cloudHsmPropertiesArrayDeserializer(item[\"hsms\"]),\n privateEndpointConnections: !item[\"privateEndpointConnections\"]\n ? item[\"privateEndpointConnections\"]\n : privateEndpointConnectionArrayDeserializer(item[\"privateEndpointConnections\"]),\n provisioningState: item[\"provisioningState\"],\n publicNetworkAccess: item[\"publicNetworkAccess\"],\n statusMessage: item[\"statusMessage\"],\n };\n}\n\n/** State of security domain activation */\nexport enum KnownActivationState {\n NotDefined = \"NotDefined\",\n NotActivated = \"NotActivated\",\n Active = \"Active\",\n Failed = \"Failed\",\n Unknown = \"Unknown\",\n}\n\n/**\n * State of security domain activation \\\n * {@link KnownActivationState} can be used interchangeably with ActivationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotDefined** \\\n * **NotActivated** \\\n * **Active** \\\n * **Failed** \\\n * **Unknown**\n */\nexport type ActivationState = string;\n\n/** The Cloud HSM Cluster's auto-generated Domain Name Label Scope */\nexport enum KnownAutoGeneratedDomainNameLabelScope {\n TenantReuse = \"TenantReuse\",\n SubscriptionReuse = \"SubscriptionReuse\",\n ResourceGroupReuse = \"ResourceGroupReuse\",\n NoReuse = \"NoReuse\",\n}\n\n/**\n * The Cloud HSM Cluster's auto-generated Domain Name Label Scope \\\n * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **TenantReuse** \\\n * **SubscriptionReuse** \\\n * **ResourceGroupReuse** \\\n * **NoReuse**\n */\nexport type AutoGeneratedDomainNameLabelScope = string;\n\nexport function cloudHsmPropertiesArrayDeserializer(result: Array<CloudHsmProperties>): any[] {\n return result.map((item) => {\n return cloudHsmPropertiesDeserializer(item);\n });\n}\n\n/** The Cloud HSM Properties */\nexport interface CloudHsmProperties {\n /** FQDN of the Cloud HSM */\n fqdn?: string;\n /** The Cloud HSM State. Values are: Deploying, ConfiguringSlb, Starting, Starting, Failed, Failed, Deleting, DeletingSlbEntry, InitialProvisioning, Updating */\n state?: string;\n /** The Cloud HSM State message */\n stateMessage?: string;\n}\n\nexport function cloudHsmPropertiesDeserializer(item: any): CloudHsmProperties {\n return {\n fqdn: item[\"fqdn\"],\n state: item[\"state\"],\n stateMessage: item[\"stateMessage\"],\n };\n}\n\nexport function privateEndpointConnectionArraySerializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionSerializer(item);\n });\n}\n\nexport function privateEndpointConnectionArrayDeserializer(\n result: Array<PrivateEndpointConnection>,\n): any[] {\n return result.map((item) => {\n return privateEndpointConnectionDeserializer(item);\n });\n}\n\n/** The private endpoint connection resource. */\nexport interface PrivateEndpointConnection extends ProxyResource {\n /** Resource properties. */\n properties?: PrivateEndpointConnectionProperties;\n /** Modified whenever there is a change in the state of private endpoint connection. */\n etag?: string;\n}\n\nexport function privateEndpointConnectionSerializer(item: PrivateEndpointConnection): any {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesSerializer(item[\"properties\"]),\n etag: item[\"etag\"],\n };\n}\n\nexport function privateEndpointConnectionDeserializer(item: any): PrivateEndpointConnection {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateEndpointConnectionPropertiesDeserializer(item[\"properties\"]),\n etag: item[\"etag\"],\n };\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionProperties {\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpoint;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n /** The provisioning state of the private endpoint connection resource. */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningState;\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n}\n\nexport function privateEndpointConnectionPropertiesSerializer(\n item: PrivateEndpointConnectionProperties,\n): any {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointSerializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateSerializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n };\n}\n\nexport function privateEndpointConnectionPropertiesDeserializer(\n item: any,\n): PrivateEndpointConnectionProperties {\n return {\n privateEndpoint: !item[\"privateEndpoint\"]\n ? item[\"privateEndpoint\"]\n : privateEndpointDeserializer(item[\"privateEndpoint\"]),\n privateLinkServiceConnectionState: privateLinkServiceConnectionStateDeserializer(\n item[\"privateLinkServiceConnectionState\"],\n ),\n provisioningState: item[\"provisioningState\"],\n groupIds: !item[\"groupIds\"]\n ? item[\"groupIds\"]\n : item[\"groupIds\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** The private endpoint resource. */\nexport interface PrivateEndpoint {\n /** The resource identifier of the private endpoint */\n readonly id?: string;\n}\n\nexport function privateEndpointSerializer(item: PrivateEndpoint): any {\n return item;\n}\n\nexport function privateEndpointDeserializer(item: any): PrivateEndpoint {\n return {\n id: item[\"id\"],\n };\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionState {\n /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */\n status?: PrivateEndpointServiceConnectionStatus;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\nexport function privateLinkServiceConnectionStateSerializer(\n item: PrivateLinkServiceConnectionState,\n): any {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\nexport function privateLinkServiceConnectionStateDeserializer(\n item: any,\n): PrivateLinkServiceConnectionState {\n return {\n status: item[\"status\"],\n description: item[\"description\"],\n actionsRequired: item[\"actionsRequired\"],\n };\n}\n\n/** The private endpoint connection status. */\nexport enum KnownPrivateEndpointServiceConnectionStatus {\n /** Connection waiting for approval or rejection */\n Pending = \"Pending\",\n /** Connection approved */\n Approved = \"Approved\",\n /** Connection Rejected */\n Rejected = \"Rejected\",\n}\n\n/**\n * The private endpoint connection status. \\\n * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending**: Connection waiting for approval or rejection \\\n * **Approved**: Connection approved \\\n * **Rejected**: Connection Rejected\n */\nexport type PrivateEndpointServiceConnectionStatus = string;\n\n/** The current provisioning state. */\nexport enum KnownPrivateEndpointConnectionProvisioningState {\n Succeeded = \"Succeeded\",\n Creating = \"Creating\",\n Deleting = \"Deleting\",\n Failed = \"Failed\",\n Updating = \"Updating\",\n InternalError = \"InternalError\",\n Canceled = \"Canceled\",\n}\n\n/**\n * The current provisioning state. \\\n * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Creating** \\\n * **Deleting** \\\n * **Failed** \\\n * **Updating** \\\n * **InternalError** \\\n * **Canceled**\n */\nexport type PrivateEndpointConnectionProvisioningState = string;\n\n/** The Cloud HSM Cluster's provisioningState */\nexport enum KnownProvisioningState {\n Provisioning = \"Provisioning\",\n Succeeded = \"Succeeded\",\n Updating = \"Updating\",\n Failed = \"Failed\",\n Deleting = \"Deleting\",\n Canceled = \"Canceled\",\n}\n\n/**\n * The Cloud HSM Cluster's provisioningState \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Provisioning** \\\n * **Succeeded** \\\n * **Updating** \\\n * **Failed** \\\n * **Deleting** \\\n * **Canceled**\n */\nexport type ProvisioningState = string;\n\n/** The Cloud HSM Cluster public network access */\nexport enum KnownPublicNetworkAccess {\n Disabled = \"Disabled\",\n}\n\n/**\n * The Cloud HSM Cluster public network access \\\n * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Disabled**\n */\nexport type PublicNetworkAccess = string;\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /** The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly principalId?: string;\n /** The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. */\n readonly tenantId?: string;\n /** The type of managed identity assigned to this resource. */\n type: ManagedServiceIdentityType;\n /** The identities assigned to this resource by the user. */\n userAssignedIdentities?: Record<string, UserAssignedIdentity | null>;\n}\n\nexport function managedServiceIdentitySerializer(item: ManagedServiceIdentity): any {\n return {\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\nexport function managedServiceIdentityDeserializer(item: any): ManagedServiceIdentity {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n type: item[\"type\"],\n userAssignedIdentities: item[\"userAssignedIdentities\"],\n };\n}\n\n/** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\nexport enum KnownManagedServiceIdentityType {\n /** No managed identity. */\n None = \"None\",\n /** System assigned managed identity. */\n SystemAssigned = \"SystemAssigned\",\n /** User assigned managed identity. */\n UserAssigned = \"UserAssigned\",\n /** System and user assigned managed identity. */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\",\n}\n\n/**\n * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None**: No managed identity. \\\n * **SystemAssigned**: System assigned managed identity. \\\n * **UserAssigned**: User assigned managed identity. \\\n * **SystemAssigned,UserAssigned**: System and user assigned managed identity.\n */\nexport type ManagedServiceIdentityType = string;\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /** The principal ID of the assigned identity. */\n readonly principalId?: string;\n /** The client ID of the assigned identity. */\n readonly clientId?: string;\n}\n\nexport function userAssignedIdentitySerializer(item: UserAssignedIdentity): any {\n return item;\n}\n\nexport function userAssignedIdentityDeserializer(item: any): UserAssignedIdentity {\n return {\n principalId: item[\"principalId\"],\n clientId: item[\"clientId\"],\n };\n}\n\n/** Cloud Hsm Cluster SKU information */\nexport interface CloudHsmClusterSku {\n /** Sku family of the Cloud HSM Cluster */\n family: CloudHsmClusterSkuFamily;\n /** Sku name of the Cloud HSM Cluster */\n name: CloudHsmClusterSkuName;\n /** Sku capacity */\n capacity?: number;\n}\n\nexport function cloudHsmClusterSkuSerializer(item: CloudHsmClusterSku): any {\n return {\n family: item[\"family\"],\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n };\n}\n\nexport function cloudHsmClusterSkuDeserializer(item: any): CloudHsmClusterSku {\n return {\n family: item[\"family\"],\n name: item[\"name\"],\n capacity: item[\"capacity\"],\n };\n}\n\n/** Sku family of the Cloud HSM Cluster */\nexport enum KnownCloudHsmClusterSkuFamily {\n B = \"B\",\n}\n\n/**\n * Sku family of the Cloud HSM Cluster \\\n * {@link KnownCloudHsmClusterSkuFamily} can be used interchangeably with CloudHsmClusterSkuFamily,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **B**\n */\nexport type CloudHsmClusterSkuFamily = string;\n/** Sku name of the Cloud HSM Cluster */\nexport type CloudHsmClusterSkuName = \"Standard_B1\" | \"Standard B10\";\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceSerializer(item: ProxyResource): any {\n return item;\n}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Patchable properties of the Cloud HSM Cluster */\nexport interface CloudHsmClusterPatchParameters {\n /** The Cloud HSM Cluster's tags */\n tags?: Record<string, string>;\n /** Managed service identity (system assigned and/or user assigned identities) */\n identity?: ManagedServiceIdentity;\n}\n\nexport function cloudHsmClusterPatchParametersSerializer(\n item: CloudHsmClusterPatchParameters,\n): any {\n return {\n tags: item[\"tags\"],\n identity: !item[\"identity\"]\n ? item[\"identity\"]\n : managedServiceIdentitySerializer(item[\"identity\"]),\n };\n}\n\n/** The response of a CloudHsmCluster list operation. */\nexport interface _CloudHsmClusterListResult {\n /** The CloudHsmCluster items on this page */\n value: CloudHsmCluster[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _cloudHsmClusterListResultDeserializer(item: any): _CloudHsmClusterListResult {\n return {\n value: cloudHsmClusterArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function cloudHsmClusterArraySerializer(result: Array<CloudHsmCluster>): any[] {\n return result.map((item) => {\n return cloudHsmClusterSerializer(item);\n });\n}\n\nexport function cloudHsmClusterArrayDeserializer(result: Array<CloudHsmCluster>): any[] {\n return result.map((item) => {\n return cloudHsmClusterDeserializer(item);\n });\n}\n\n/** Backup properties */\nexport interface BackupRequestProperties extends BackupRestoreRequestBaseProperties {}\n\nexport function backupRequestPropertiesSerializer(item: BackupRequestProperties): any {\n return {\n azureStorageBlobContainerUri: item[\"azureStorageBlobContainerUri\"],\n token: item[\"token\"],\n };\n}\n\n/** Backup and Restore Common properties */\nexport interface BackupRestoreRequestBaseProperties {\n /** The Azure blob storage container Uri which contains the backup */\n azureStorageBlobContainerUri: string;\n /** The SAS token pointing to an Azure blob storage container. This property is reserved for Azure Backup Service. */\n token?: string;\n}\n\nexport function backupRestoreRequestBasePropertiesSerializer(\n item: BackupRestoreRequestBaseProperties,\n): any {\n return {\n azureStorageBlobContainerUri: item[\"azureStorageBlobContainerUri\"],\n token: item[\"token\"],\n };\n}\n\n/** Backup operation Result */\nexport interface BackupResult {\n /** Properties of the Cloud HSM Cluster */\n properties?: BackupResultProperties;\n}\n\nexport function backupResultDeserializer(item: any): BackupResult {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : backupResultPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of the Cloud HSM Cluster */\nexport interface BackupResultProperties extends BackupRestoreBaseResultProperties {\n /** The Azure blob storage container Uri which contains the backup */\n azureStorageBlobContainerUri?: string;\n /** The ID of the backup. */\n backupId?: string;\n}\n\nexport function backupResultPropertiesDeserializer(item: any): BackupResultProperties {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n jobId: item[\"jobId\"],\n azureStorageBlobContainerUri: item[\"azureStorageBlobContainerUri\"],\n backupId: item[\"backupId\"],\n };\n}\n\n/** Backup and Restore operation common properties */\nexport interface BackupRestoreBaseResultProperties {\n /** Status of the backup/restore operation */\n readonly status?: BackupRestoreOperationStatus;\n /** The status details of backup/restore operation */\n statusDetails?: string;\n /** Error encountered, if any, during the backup/restore operation. */\n error?: ErrorDetail;\n /** The start time of the backup/restore operation in UTC */\n readonly startTime?: Date;\n /** The end time of the backup/restore operation in UTC */\n readonly endTime?: Date | null;\n /** Identifier for the backup/restore operation. */\n jobId?: string;\n}\n\nexport function backupRestoreBaseResultPropertiesDeserializer(\n item: any,\n): BackupRestoreBaseResultProperties {\n return {\n status: item[\"status\"],\n statusDetails: item[\"statusDetails\"],\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n startTime: !item[\"startTime\"] ? item[\"startTime\"] : new Date(item[\"startTime\"]),\n endTime: !item[\"endTime\"] ? item[\"endTime\"] : new Date(item[\"endTime\"]),\n jobId: item[\"jobId\"],\n };\n}\n\n/** Status of the backup/restore operation */\nexport enum KnownBackupRestoreOperationStatus {\n InProgress = \"InProgress\",\n Succeeded = \"Succeeded\",\n Failed = \"Failed\",\n Cancelled = \"Cancelled\",\n}\n\n/**\n * Status of the backup/restore operation \\\n * {@link KnownBackupRestoreOperationStatus} can be used interchangeably with BackupRestoreOperationStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **InProgress** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Cancelled**\n */\nexport type BackupRestoreOperationStatus = string;\n\n/** Cloud Hsm Cluster restore information */\nexport interface RestoreRequestProperties extends BackupRestoreRequestBaseProperties {\n /** An autogenerated unique string ID for labeling the backup. It contains both a UUID and a date timestamp. */\n backupId: string;\n}\n\nexport function restoreRequestPropertiesSerializer(item: RestoreRequestProperties): any {\n return {\n azureStorageBlobContainerUri: item[\"azureStorageBlobContainerUri\"],\n token: item[\"token\"],\n backupId: item[\"backupId\"],\n };\n}\n\n/** Restore operation properties */\nexport interface RestoreResult {\n /** Backup and Restore operation common properties */\n properties?: BackupRestoreBaseResultProperties;\n}\n\nexport function restoreResultDeserializer(item: any): RestoreResult {\n return {\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : backupRestoreBaseResultPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The response of a PrivateEndpointConnection list operation. */\nexport interface _PrivateEndpointConnectionListResult {\n /** The PrivateEndpointConnection items on this page */\n value: PrivateEndpointConnection[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _privateEndpointConnectionListResultDeserializer(\n item: any,\n): _PrivateEndpointConnectionListResult {\n return {\n value: privateEndpointConnectionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\n/** A list of private link resources. */\nexport interface _PrivateLinkResourceListResult {\n /** Array of private link resources */\n value?: PrivateLinkResource[];\n /** URL to get the next set of operation list results (if there are any). */\n readonly nextLink?: string;\n}\n\nexport function _privateLinkResourceListResultDeserializer(\n item: any,\n): _PrivateLinkResourceListResult {\n return {\n value: !item[\"value\"] ? item[\"value\"] : privateLinkResourceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function privateLinkResourceArrayDeserializer(result: Array<PrivateLinkResource>): any[] {\n return result.map((item) => {\n return privateLinkResourceDeserializer(item);\n });\n}\n\n/** A private link resource. */\nexport interface PrivateLinkResource extends Resource {\n /** Resource properties. */\n properties?: PrivateLinkResourceProperties;\n}\n\nexport function privateLinkResourceDeserializer(item: any): PrivateLinkResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : privateLinkResourcePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourceProperties {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\nexport function privateLinkResourcePropertiesDeserializer(\n item: any,\n): PrivateLinkResourceProperties {\n return {\n groupId: item[\"groupId\"],\n requiredMembers: !item[\"requiredMembers\"]\n ? item[\"requiredMembers\"]\n : item[\"requiredMembers\"].map((p: any) => {\n return p;\n }),\n requiredZoneNames: !item[\"requiredZoneNames\"]\n ? item[\"requiredZoneNames\"]\n : item[\"requiredZoneNames\"].map((p: any) => {\n return p;\n }),\n };\n}\n\n/** Resource information with extended details. */\nexport interface DedicatedHsm extends TrackedResource {\n /** SKU details */\n sku: Sku;\n /** The availability zones. */\n zones?: string[];\n /** Properties of the dedicated HSM */\n properties: DedicatedHsmProperties;\n}\n\nexport function dedicatedHsmSerializer(item: DedicatedHsm): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n sku: skuSerializer(item[\"sku\"]),\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n properties: dedicatedHsmPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function dedicatedHsmDeserializer(item: any): DedicatedHsm {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n sku: skuDeserializer(item[\"sku\"]),\n zones: !item[\"zones\"]\n ? item[\"zones\"]\n : item[\"zones\"].map((p: any) => {\n return p;\n }),\n properties: dedicatedHsmPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** SKU of the dedicated HSM */\nexport interface Sku {\n /** SKU of the dedicated HSM */\n name?: SkuName;\n}\n\nexport function skuSerializer(item: Sku): any {\n return { name: item[\"name\"] };\n}\n\nexport function skuDeserializer(item: any): Sku {\n return {\n name: item[\"name\"],\n };\n}\n\n/** SKU of the dedicated HSM */\nexport enum KnownSkuName {\n /** The dedicated HSM is a Safenet Luna Network HSM A790 device. */\n SafeNetLunaNetworkHSMA790 = \"SafeNet Luna Network HSM A790\",\n /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 60 calls per second. */\n PayShield10KLMK1CPS60 = \"payShield10K_LMK1_CPS60\",\n /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 250 calls per second. */\n PayShield10KLMK1CPS250 = \"payShield10K_LMK1_CPS250\",\n /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 2500 calls per second. */\n PayShield10KLMK1CPS2500 = \"payShield10K_LMK1_CPS2500\",\n /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 60 calls per second. */\n PayShield10KLMK2CPS60 = \"payShield10K_LMK2_CPS60\",\n /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 250 calls per second. */\n PayShield10KLMK2CPS250 = \"payShield10K_LMK2_CPS250\",\n /** The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 2500 calls per second. */\n PayShield10KLMK2CPS2500 = \"payShield10K_LMK2_CPS2500\",\n}\n\n/**\n * SKU of the dedicated HSM \\\n * {@link KnownSkuName} can be used interchangeably with SkuName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **SafeNet Luna Network HSM A790**: The dedicated HSM is a Safenet Luna Network HSM A790 device. \\\n * **payShield10K_LMK1_CPS60**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 60 calls per second. \\\n * **payShield10K_LMK1_CPS250**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 250 calls per second. \\\n * **payShield10K_LMK1_CPS2500**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 1 local master key which supports up to 2500 calls per second. \\\n * **payShield10K_LMK2_CPS60**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 60 calls per second. \\\n * **payShield10K_LMK2_CPS250**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 250 calls per second. \\\n * **payShield10K_LMK2_CPS2500**: The dedicated HSM is a payShield 10K, model PS10-D, 10Gb Ethernet Hardware Platform device with 2 local master keys which supports up to 2500 calls per second.\n */\nexport type SkuName = string;\n\n/** Properties of the dedicated hsm */\nexport interface DedicatedHsmProperties {\n /** Specifies the network interfaces of the dedicated hsm. */\n networkProfile?: NetworkProfile;\n /** Specifies the management network interfaces of the dedicated hsm. */\n managementNetworkProfile?: NetworkProfile;\n /** This field will be used when RP does not support Availability zones. */\n stampId?: string;\n /** Resource Status Message. */\n readonly statusMessage?: string;\n /** Provisioning state. */\n readonly provisioningState?: JsonWebKeyType;\n}\n\nexport function dedicatedHsmPropertiesSerializer(item: DedicatedHsmProperties): any {\n return {\n networkProfile: !item[\"networkProfile\"]\n ? item[\"networkProfile\"]\n : networkProfileSerializer(item[\"networkProfile\"]),\n managementNetworkProfile: !item[\"managementNetworkProfile\"]\n ? item[\"managementNetworkProfile\"]\n : networkProfileSerializer(item[\"managementNetworkProfile\"]),\n stampId: item[\"stampId\"],\n };\n}\n\nexport function dedicatedHsmPropertiesDeserializer(item: any): DedicatedHsmProperties {\n return {\n networkProfile: !item[\"networkProfile\"]\n ? item[\"networkProfile\"]\n : networkProfileDeserializer(item[\"networkProfile\"]),\n managementNetworkProfile: !item[\"managementNetworkProfile\"]\n ? item[\"managementNetworkProfile\"]\n : networkProfileDeserializer(item[\"managementNetworkProfile\"]),\n stampId: item[\"stampId\"],\n statusMessage: item[\"statusMessage\"],\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** The network profile definition. */\nexport interface NetworkProfile {\n /** Specifies the identifier of the subnet. */\n subnet?: ApiEntityReference;\n /** Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM. */\n networkInterfaces?: NetworkInterface[];\n}\n\nexport function networkProfileSerializer(item: NetworkProfile): any {\n return {\n subnet: !item[\"subnet\"] ? item[\"subnet\"] : apiEntityReferenceSerializer(item[\"subnet\"]),\n networkInterfaces: !item[\"networkInterfaces\"]\n ? item[\"networkInterfaces\"]\n : networkInterfaceArraySerializer(item[\"networkInterfaces\"]),\n };\n}\n\nexport function networkProfileDeserializer(item: any): NetworkProfile {\n return {\n subnet: !item[\"subnet\"] ? item[\"subnet\"] : apiEntityReferenceDeserializer(item[\"subnet\"]),\n networkInterfaces: !item[\"networkInterfaces\"]\n ? item[\"networkInterfaces\"]\n : networkInterfaceArrayDeserializer(item[\"networkInterfaces\"]),\n };\n}\n\n/** The API entity reference. */\nexport interface ApiEntityReference {\n /** The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */\n resourceId?: string;\n}\n\nexport function apiEntityReferenceSerializer(item: ApiEntityReference): any {\n return { resourceId: item[\"resourceId\"] };\n}\n\nexport function apiEntityReferenceDeserializer(item: any): ApiEntityReference {\n return {\n resourceId: item[\"resourceId\"],\n };\n}\n\nexport function networkInterfaceArraySerializer(result: Array<NetworkInterface>): any[] {\n return result.map((item) => {\n return networkInterfaceSerializer(item);\n });\n}\n\nexport function networkInterfaceArrayDeserializer(result: Array<NetworkInterface>): any[] {\n return result.map((item) => {\n return networkInterfaceDeserializer(item);\n });\n}\n\n/** The network interface definition. */\nexport interface NetworkInterface {\n /** The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */\n readonly resourceId?: string;\n /** Private Ip address of the interface */\n privateIpAddress?: string;\n}\n\nexport function networkInterfaceSerializer(item: NetworkInterface): any {\n return { privateIpAddress: item[\"privateIpAddress\"] };\n}\n\nexport function networkInterfaceDeserializer(item: any): NetworkInterface {\n return {\n resourceId: item[\"resourceId\"],\n privateIpAddress: item[\"privateIpAddress\"],\n };\n}\n\n/** Provisioning state. */\nexport enum KnownJsonWebKeyType {\n /** The dedicated HSM has been fully provisioned. */\n Succeeded = \"Succeeded\",\n /** The dedicated HSM is currently being provisioned. */\n Provisioning = \"Provisioning\",\n /** A device is currently being allocated for the dedicated HSM resource. */\n Allocating = \"Allocating\",\n /** The dedicated HSM is being connected to the virtual network. */\n Connecting = \"Connecting\",\n /** Provisioning of the dedicated HSM has failed. */\n Failed = \"Failed\",\n /** Validating the subscription has sufficient quota to allocate a dedicated HSM device. */\n CheckingQuota = \"CheckingQuota\",\n /** The dedicated HSM is currently being deleted. */\n Deleting = \"Deleting\",\n}\n\n/**\n * Provisioning state. \\\n * {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: The dedicated HSM has been fully provisioned. \\\n * **Provisioning**: The dedicated HSM is currently being provisioned. \\\n * **Allocating**: A device is currently being allocated for the dedicated HSM resource. \\\n * **Connecting**: The dedicated HSM is being connected to the virtual network. \\\n * **Failed**: Provisioning of the dedicated HSM has failed. \\\n * **CheckingQuota**: Validating the subscription has sufficient quota to allocate a dedicated HSM device. \\\n * **Deleting**: The dedicated HSM is currently being deleted.\n */\nexport type JsonWebKeyType = string;\n\n/** The error exception. */\nexport interface DedicatedHsmError {\n /** The error detail of the operation if any. */\n readonly error?: ErrorModel;\n}\n\nexport function dedicatedHsmErrorDeserializer(item: any): DedicatedHsmError {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDeserializer(item[\"error\"]),\n };\n}\n\n/** The key vault server error. */\nexport interface ErrorModel {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** Contains more specific error that narrows down the cause. May be null. */\n readonly innerError?: ErrorModel;\n}\n\nexport function errorDeserializer(item: any): ErrorModel {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n innerError: !item[\"innererror\"] ? item[\"innererror\"] : errorDeserializer(item[\"innererror\"]),\n };\n}\n\n/** Patchable properties of the dedicated HSM */\nexport interface DedicatedHsmPatchParameters {\n /** Resource tags */\n tags?: Record<string, string>;\n}\n\nexport function dedicatedHsmPatchParametersSerializer(item: DedicatedHsmPatchParameters): any {\n return { tags: item[\"tags\"] };\n}\n\n/** The response of a DedicatedHsm list operation. */\nexport interface _DedicatedHsmListResult {\n /** The DedicatedHsm items on this page */\n value: DedicatedHsm[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _dedicatedHsmListResultDeserializer(item: any): _DedicatedHsmListResult {\n return {\n value: dedicatedHsmArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function dedicatedHsmArraySerializer(result: Array<DedicatedHsm>): any[] {\n return result.map((item) => {\n return dedicatedHsmSerializer(item);\n });\n}\n\nexport function dedicatedHsmArrayDeserializer(result: Array<DedicatedHsm>): any[] {\n return result.map((item) => {\n return dedicatedHsmDeserializer(item);\n });\n}\n\n/** Collection of OutboundEnvironmentEndpoint */\nexport interface _OutboundEnvironmentEndpointCollection {\n /** The OutboundEnvironmentEndpoint items on this page */\n value: OutboundEnvironmentEndpoint[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _outboundEnvironmentEndpointCollectionDeserializer(\n item: any,\n): _OutboundEnvironmentEndpointCollection {\n return {\n value: outboundEnvironmentEndpointArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function outboundEnvironmentEndpointArrayDeserializer(\n result: Array<OutboundEnvironmentEndpoint>,\n): any[] {\n return result.map((item) => {\n return outboundEnvironmentEndpointDeserializer(item);\n });\n}\n\n/** Egress endpoints which dedicated hsm service connects to for common purpose. */\nexport interface OutboundEnvironmentEndpoint {\n /** The category of endpoints accessed by the dedicated hsm service, e.g. azure-resource-management, apiserver, etc. */\n category?: string;\n /** The endpoints that dedicated hsm service connects to */\n endpoints?: EndpointDependency[];\n}\n\nexport function outboundEnvironmentEndpointDeserializer(item: any): OutboundEnvironmentEndpoint {\n return {\n category: item[\"category\"],\n endpoints: !item[\"endpoints\"]\n ? item[\"endpoints\"]\n : endpointDependencyArrayDeserializer(item[\"endpoints\"]),\n };\n}\n\nexport function endpointDependencyArrayDeserializer(result: Array<EndpointDependency>): any[] {\n return result.map((item) => {\n return endpointDependencyDeserializer(item);\n });\n}\n\n/** A domain name that dedicated hsm services are reaching at. */\nexport interface EndpointDependency {\n /** The domain name of the dependency. */\n domainName?: string;\n /** The Ports and Protocols used when connecting to domainName. */\n endpointDetails?: EndpointDetail[];\n}\n\nexport function endpointDependencyDeserializer(item: any): EndpointDependency {\n return {\n domainName: item[\"domainName\"],\n endpointDetails: !item[\"endpointDetails\"]\n ? item[\"endpointDetails\"]\n : endpointDetailArrayDeserializer(item[\"endpointDetails\"]),\n };\n}\n\nexport function endpointDetailArrayDeserializer(result: Array<EndpointDetail>): any[] {\n return result.map((item) => {\n return endpointDetailDeserializer(item);\n });\n}\n\n/** Connect information from the dedicated hsm service to a single endpoint. */\nexport interface EndpointDetail {\n /** An IP Address that Domain Name currently resolves to. */\n ipAddress?: string;\n /** The port an endpoint is connected to. */\n port?: number;\n /** The protocol used for connection */\n protocol?: string;\n /** Description of the detail */\n description?: string;\n}\n\nexport function endpointDetailDeserializer(item: any): EndpointDetail {\n return {\n ipAddress: item[\"ipAddress\"],\n port: item[\"port\"],\n protocol: item[\"protocol\"],\n description: item[\"description\"],\n };\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2025-03-31 API version. */\n V20250331 = \"2025-03-31\",\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,21 @@
1
+ import { AzureDedicatedHSMResourceProvider } from "./azureDedicatedHSMResourceProvider.js";
2
+ import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
3
+ import { AbortSignalLike } from "@azure/abort-controller";
4
+ import { PollerLike, OperationState } from "@azure/core-lro";
5
+ export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
6
+ /** Delay to wait until next poll, in milliseconds. */
7
+ updateIntervalInMs?: number;
8
+ /**
9
+ * The signal which can be used to abort requests.
10
+ */
11
+ abortSignal?: AbortSignalLike;
12
+ /** Deserialization function for raw response body */
13
+ processResponseBody?: (result: TResponse) => Promise<TResult>;
14
+ }
15
+ /**
16
+ * Creates a poller from the serialized state of another poller. This can be
17
+ * useful when you want to create pollers on a different host or a poller
18
+ * needs to be constructed after the original one is not in scope.
19
+ */
20
+ export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: AzureDedicatedHSMResourceProvider, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
21
+ //# sourceMappingURL=restorePollerHelpers.d.ts.map
@@ -0,0 +1,133 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { _$deleteDeserialize, _updateDeserialize, _createOrUpdateDeserialize, } from "./api/dedicatedHsm/operations.js";
4
+ import { _$deleteDeserialize as _$deleteDeserializeCloudHsmClusterPrivateEndpointConnections } from "./api/cloudHsmClusterPrivateEndpointConnections/operations.js";
5
+ import { _getDeserialize } from "./api/cloudHsmClusterRestoreStatus/operations.js";
6
+ import { _getDeserialize as _getDeserializeCloudHsmClusterBackupStatus } from "./api/cloudHsmClusterBackupStatus/operations.js";
7
+ import { _restoreDeserialize, _validateRestorePropertiesDeserialize, _backupDeserialize, _validateBackupPropertiesDeserialize, _$deleteDeserialize as _$deleteDeserializeCloudHsmClusters, _updateDeserialize as _updateDeserializeCloudHsmClusters, _createOrUpdateDeserialize as _createOrUpdateDeserializeCloudHsmClusters, } from "./api/cloudHsmClusters/operations.js";
8
+ import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
9
+ import { deserializeState, } from "@azure/core-lro";
10
+ /**
11
+ * Creates a poller from the serialized state of another poller. This can be
12
+ * useful when you want to create pollers on a different host or a poller
13
+ * needs to be constructed after the original one is not in scope.
14
+ */
15
+ export function restorePoller(client, serializedState, sourceOperation, options) {
16
+ var _a, _b, _c;
17
+ const pollerConfig = deserializeState(serializedState).config;
18
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
19
+ if (!initialRequestUrl || !requestMethod) {
20
+ throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
21
+ }
22
+ const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
23
+ const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
24
+ const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
25
+ if (!deserializeHelper) {
26
+ throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}.`);
27
+ }
28
+ return getLongRunningPoller((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
29
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
31
+ resourceLocationConfig,
32
+ restoreFrom: serializedState,
33
+ initialRequestUrl,
34
+ });
35
+ }
36
+ const deserializeMap = {
37
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": {
38
+ deserializer: _$deleteDeserialize,
39
+ expectedStatuses: ["202", "204", "200"],
40
+ },
41
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "202"] },
42
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": {
43
+ deserializer: _createOrUpdateDeserialize,
44
+ expectedStatuses: ["200", "201"],
45
+ },
46
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}": {
47
+ deserializer: _$deleteDeserializeCloudHsmClusterPrivateEndpointConnections,
48
+ expectedStatuses: ["202", "204", "200"],
49
+ },
50
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restoreOperationStatus/{jobId}": { deserializer: _getDeserialize, expectedStatuses: ["200", "202"] },
51
+ "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backupOperationStatus/{jobId}": {
52
+ deserializer: _getDeserializeCloudHsmClusterBackupStatus,
53
+ expectedStatuses: ["200", "202"],
54
+ },
55
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore": { deserializer: _restoreDeserialize, expectedStatuses: ["202", "200"] },
56
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties": {
57
+ deserializer: _validateRestorePropertiesDeserialize,
58
+ expectedStatuses: ["202", "200"],
59
+ },
60
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup": { deserializer: _backupDeserialize, expectedStatuses: ["202", "200"] },
61
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties": {
62
+ deserializer: _validateBackupPropertiesDeserialize,
63
+ expectedStatuses: ["202", "200"],
64
+ },
65
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
66
+ deserializer: _$deleteDeserializeCloudHsmClusters,
67
+ expectedStatuses: ["202", "204", "200"],
68
+ },
69
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
70
+ deserializer: _updateDeserializeCloudHsmClusters,
71
+ expectedStatuses: ["200", "202"],
72
+ },
73
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
74
+ deserializer: _createOrUpdateDeserializeCloudHsmClusters,
75
+ expectedStatuses: ["200", "201"],
76
+ },
77
+ };
78
+ function getDeserializationHelper(urlStr, method) {
79
+ var _a, _b, _c, _d;
80
+ const path = new URL(urlStr).pathname;
81
+ const pathParts = path.split("/");
82
+ // Traverse list to match the longest candidate
83
+ // matchedLen: the length of candidate path
84
+ // matchedValue: the matched status code array
85
+ let matchedLen = -1, matchedValue;
86
+ // Iterate the responseMap to find a match
87
+ for (const [key, value] of Object.entries(deserializeMap)) {
88
+ // Extracting the path from the map key which is in format
89
+ // GET /path/foo
90
+ if (!key.startsWith(method)) {
91
+ continue;
92
+ }
93
+ const candidatePath = getPathFromMapKey(key);
94
+ // Get each part of the url path
95
+ const candidateParts = candidatePath.split("/");
96
+ // track if we have found a match to return the values found.
97
+ let found = true;
98
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
99
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
100
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
101
+ // If the current part of the candidate is a "template" part
102
+ // Try to use the suffix of pattern to match the path
103
+ // {guid} ==> $
104
+ // {guid}:export ==> :export$
105
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
106
+ if (!isMatched) {
107
+ found = false;
108
+ break;
109
+ }
110
+ continue;
111
+ }
112
+ // If the candidate part is not a template and
113
+ // the parts don't match mark the candidate as not found
114
+ // to move on with the next candidate path.
115
+ if (candidateParts[i] !== pathParts[j]) {
116
+ found = false;
117
+ break;
118
+ }
119
+ }
120
+ // We finished evaluating the current candidate parts
121
+ // Update the matched value if and only if we found the longer pattern
122
+ if (found && candidatePath.length > matchedLen) {
123
+ matchedLen = candidatePath.length;
124
+ matchedValue = value;
125
+ }
126
+ }
127
+ return matchedValue;
128
+ }
129
+ function getPathFromMapKey(mapKey) {
130
+ const pathStart = mapKey.indexOf("/");
131
+ return mapKey.slice(pathStart);
132
+ }
133
+ //# sourceMappingURL=restorePoller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ACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureDedicatedHSMResourceProvider } from \"./azureDedicatedHSMResourceProvider.js\";\nimport {\n _$deleteDeserialize,\n _updateDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/dedicatedHsm/operations.js\";\nimport { _$deleteDeserialize as _$deleteDeserializeCloudHsmClusterPrivateEndpointConnections } from \"./api/cloudHsmClusterPrivateEndpointConnections/operations.js\";\nimport { _getDeserialize } from \"./api/cloudHsmClusterRestoreStatus/operations.js\";\nimport { _getDeserialize as _getDeserializeCloudHsmClusterBackupStatus } from \"./api/cloudHsmClusterBackupStatus/operations.js\";\nimport {\n _restoreDeserialize,\n _validateRestorePropertiesDeserialize,\n _backupDeserialize,\n _validateBackupPropertiesDeserialize,\n _$deleteDeserialize as _$deleteDeserializeCloudHsmClusters,\n _updateDeserialize as _updateDeserializeCloudHsmClusters,\n _createOrUpdateDeserialize as _createOrUpdateDeserializeCloudHsmClusters,\n} from \"./api/cloudHsmClusters/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: AzureDedicatedHSMResourceProvider,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}\":\n {\n deserializer: _$deleteDeserializeCloudHsmClusterPrivateEndpointConnections,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restoreOperationStatus/{jobId}\":\n { deserializer: _getDeserialize, expectedStatuses: [\"200\", \"202\"] },\n \"GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backupOperationStatus/{jobId}\":\n {\n deserializer: _getDeserializeCloudHsmClusterBackupStatus,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore\":\n { deserializer: _restoreDeserialize, expectedStatuses: [\"202\", \"200\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties\":\n {\n deserializer: _validateRestorePropertiesDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup\":\n { deserializer: _backupDeserialize, expectedStatuses: [\"202\", \"200\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties\":\n {\n deserializer: _validateBackupPropertiesDeserialize,\n expectedStatuses: [\"202\", \"200\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}\":\n {\n deserializer: _$deleteDeserializeCloudHsmClusters,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}\":\n {\n deserializer: _updateDeserializeCloudHsmClusters,\n expectedStatuses: [\"200\", \"202\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}\":\n {\n deserializer: _createOrUpdateDeserializeCloudHsmClusters,\n expectedStatuses: [\"200\", \"201\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
@@ -0,0 +1,72 @@
1
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
+ /**
3
+ * Options for the byPage method
4
+ */
5
+ export interface PageSettings {
6
+ /**
7
+ * A reference to a specific page to start iterating from.
8
+ */
9
+ continuationToken?: string;
10
+ }
11
+ /**
12
+ * An interface that describes a page of results.
13
+ */
14
+ export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
15
+ /**
16
+ * The token that keeps track of where to continue the iterator
17
+ */
18
+ continuationToken?: string;
19
+ };
20
+ /**
21
+ * An interface that allows async iterable iteration both to completion and by page.
22
+ */
23
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
24
+ /**
25
+ * The next method, part of the iteration protocol
26
+ */
27
+ next(): Promise<IteratorResult<TElement>>;
28
+ /**
29
+ * The connection to the async iterator, part of the iteration protocol
30
+ */
31
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
32
+ /**
33
+ * Return an AsyncIterableIterator that works a page at a time
34
+ */
35
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
36
+ }
37
+ /**
38
+ * An interface that describes how to communicate with the service.
39
+ */
40
+ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
41
+ /**
42
+ * Link to the first page of results.
43
+ */
44
+ firstPageLink?: string;
45
+ /**
46
+ * A method that returns a page of results.
47
+ */
48
+ getPage: (pageLink?: string) => Promise<{
49
+ page: TPage;
50
+ nextPageLink?: string;
51
+ } | undefined>;
52
+ /**
53
+ * a function to implement the `byPage` method on the paged async iterator.
54
+ */
55
+ byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
56
+ /**
57
+ * A function to extract elements from a page.
58
+ */
59
+ toElements?: (page: TPage) => TElement[];
60
+ }
61
+ /**
62
+ * Options for the paging helper
63
+ */
64
+ export interface BuildPagedAsyncIteratorOptions {
65
+ itemName?: string;
66
+ nextLinkName?: string;
67
+ }
68
+ /**
69
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
70
+ */
71
+ export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
72
+ //# sourceMappingURL=pagingHelpers.d.ts.map
@@ -0,0 +1,137 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
4
+ import { createRestError } from "@azure-rest/core-client";
5
+ import { RestError } from "@azure/core-rest-pipeline";
6
+ /**
7
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
8
+ */
9
+ export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
10
+ var _a, _b;
11
+ const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
12
+ const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
13
+ const pagedResult = {
14
+ getPage: async (pageLink) => {
15
+ const result = pageLink === undefined
16
+ ? await getInitialResponse()
17
+ : await client.pathUnchecked(pageLink).get();
18
+ checkPagingRequest(result, expectedStatuses);
19
+ const results = await processResponseBody(result);
20
+ const nextLink = getNextLink(results, nextLinkName);
21
+ const values = getElements(results, itemName);
22
+ return {
23
+ page: values,
24
+ nextPageLink: nextLink,
25
+ };
26
+ },
27
+ byPage: (settings) => {
28
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
29
+ return getPageAsyncIterator(pagedResult, {
30
+ pageLink: continuationToken,
31
+ });
32
+ },
33
+ };
34
+ return getPagedAsyncIterator(pagedResult);
35
+ }
36
+ /**
37
+ * returns an async iterator that iterates over results. It also has a `byPage`
38
+ * method that returns pages of items at once.
39
+ *
40
+ * @param pagedResult - an object that specifies how to get pages.
41
+ * @returns a paged async iterator that iterates over results.
42
+ */
43
+ function getPagedAsyncIterator(pagedResult) {
44
+ var _a;
45
+ const iter = getItemAsyncIterator(pagedResult);
46
+ return {
47
+ next() {
48
+ return iter.next();
49
+ },
50
+ [Symbol.asyncIterator]() {
51
+ return this;
52
+ },
53
+ byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
54
+ const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
55
+ return getPageAsyncIterator(pagedResult, {
56
+ pageLink: continuationToken,
57
+ });
58
+ }),
59
+ };
60
+ }
61
+ function getItemAsyncIterator(pagedResult) {
62
+ return __asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
63
+ var _a, e_1, _b, _c;
64
+ const pages = getPageAsyncIterator(pagedResult);
65
+ try {
66
+ for (var _d = true, pages_1 = __asyncValues(pages), pages_1_1; pages_1_1 = yield __await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
67
+ _c = pages_1_1.value;
68
+ _d = false;
69
+ const page = _c;
70
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
71
+ }
72
+ }
73
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
74
+ finally {
75
+ try {
76
+ if (!_d && !_a && (_b = pages_1.return)) yield __await(_b.call(pages_1));
77
+ }
78
+ finally { if (e_1) throw e_1.error; }
79
+ }
80
+ });
81
+ }
82
+ function getPageAsyncIterator(pagedResult_1) {
83
+ return __asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
84
+ const { pageLink } = options;
85
+ let response = yield __await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
86
+ if (!response) {
87
+ return yield __await(void 0);
88
+ }
89
+ let result = response.page;
90
+ result.continuationToken = response.nextPageLink;
91
+ yield yield __await(result);
92
+ while (response.nextPageLink) {
93
+ response = yield __await(pagedResult.getPage(response.nextPageLink));
94
+ if (!response) {
95
+ return yield __await(void 0);
96
+ }
97
+ result = response.page;
98
+ result.continuationToken = response.nextPageLink;
99
+ yield yield __await(result);
100
+ }
101
+ });
102
+ }
103
+ /**
104
+ * Gets for the value of nextLink in the body
105
+ */
106
+ function getNextLink(body, nextLinkName) {
107
+ if (!nextLinkName) {
108
+ return undefined;
109
+ }
110
+ const nextLink = body[nextLinkName];
111
+ if (typeof nextLink !== "string" && typeof nextLink !== "undefined" && nextLink !== null) {
112
+ throw new RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
113
+ }
114
+ if (nextLink === null) {
115
+ return undefined;
116
+ }
117
+ return nextLink;
118
+ }
119
+ /**
120
+ * Gets the elements of the current request in the body.
121
+ */
122
+ function getElements(body, itemName) {
123
+ const value = body[itemName];
124
+ if (!Array.isArray(value)) {
125
+ throw new RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
126
+ }
127
+ return value !== null && value !== void 0 ? value : [];
128
+ }
129
+ /**
130
+ * Checks if a request failed
131
+ */
132
+ function checkPagingRequest(response, expectedStatuses) {
133
+ if (!expectedStatuses.includes(response.status)) {
134
+ throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
135
+ }
136
+ }
137
+ //# sourceMappingURL=pagingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AA+EtD;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAMrC,MAAc,EACd,kBAAgD,EAChD,mBAAgE,EAChE,gBAA0B,EAC1B,UAA0C,EAAE;;IAE5C,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC;IAC7C,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,CAAC;IACxD,MAAM,WAAW,GAAgD;QAC/D,OAAO,EAAE,KAAK,EAAE,QAAiB,EAAE,EAAE;YACnC,MAAM,MAAM,GACV,QAAQ,KAAK,SAAS;gBACpB,CAAC,CAAC,MAAM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,WAAW,CAAC,IAAa,EAAE,YAAqB;IACvD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAI,IAAgC,CAAC,YAAY,CAAC,CAAC;IAEjE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACzF,MAAM,IAAI,SAAS,CACjB,iBAAiB,YAAY,oDAAoD,OAAO,QAAQ,EAAE,CACnG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAc,IAAa,EAAE,QAAgB;IAC/D,MAAM,KAAK,GAAI,IAAgC,CAAC,QAAQ,CAAQ,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return undefined;\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n if (!Array.isArray(value)) {\n throw new RestError(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}