@azure/arm-hardwaresecuritymodules 2.0.0 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (611) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +14 -14
  3. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.d.ts +8 -5
  4. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js +20 -26
  5. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
  6. package/dist/browser/api/cloudHsmClusterBackupStatus/index.d.ts +1 -1
  7. package/dist/browser/api/cloudHsmClusterBackupStatus/index.js.map +1 -1
  8. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.d.ts +6 -6
  9. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js +19 -21
  10. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
  11. package/dist/browser/api/cloudHsmClusterBackupStatus/options.d.ts +1 -3
  12. package/dist/browser/api/cloudHsmClusterBackupStatus/options.js.map +1 -1
  13. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +1 -1
  14. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
  15. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +5 -10
  16. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js +36 -41
  17. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
  18. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +1 -1
  19. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -1
  20. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.d.ts +1 -1
  21. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
  22. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +5 -5
  23. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js +16 -8
  24. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
  25. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.d.ts +1 -1
  26. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -1
  27. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.d.ts +1 -1
  28. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.js.map +1 -1
  29. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.d.ts +6 -6
  30. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js +19 -21
  31. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
  32. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.d.ts +1 -3
  33. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.js.map +1 -1
  34. package/dist/browser/api/cloudHsmClusters/index.d.ts +1 -1
  35. package/dist/browser/api/cloudHsmClusters/index.js.map +1 -1
  36. package/dist/browser/api/cloudHsmClusters/operations.d.ts +6 -11
  37. package/dist/browser/api/cloudHsmClusters/operations.js +162 -123
  38. package/dist/browser/api/cloudHsmClusters/operations.js.map +1 -1
  39. package/dist/browser/api/cloudHsmClusters/options.d.ts +2 -2
  40. package/dist/browser/api/cloudHsmClusters/options.js.map +1 -1
  41. package/dist/browser/api/dedicatedHsm/index.d.ts +1 -1
  42. package/dist/browser/api/dedicatedHsm/index.js.map +1 -1
  43. package/dist/browser/api/dedicatedHsm/operations.d.ts +6 -11
  44. package/dist/browser/api/dedicatedHsm/operations.js +100 -69
  45. package/dist/browser/api/dedicatedHsm/operations.js.map +1 -1
  46. package/dist/browser/api/dedicatedHsm/options.d.ts +1 -1
  47. package/dist/browser/api/dedicatedHsm/options.js.map +1 -1
  48. package/dist/browser/api/index.d.ts +2 -1
  49. package/dist/browser/api/index.js +1 -1
  50. package/dist/browser/api/index.js.map +1 -1
  51. package/dist/browser/api/operations/index.d.ts +1 -1
  52. package/dist/browser/api/operations/index.js.map +1 -1
  53. package/dist/browser/api/operations/operations.d.ts +5 -5
  54. package/dist/browser/api/operations/operations.js +16 -8
  55. package/dist/browser/api/operations/operations.js.map +1 -1
  56. package/dist/browser/api/operations/options.d.ts +1 -1
  57. package/dist/browser/api/operations/options.js.map +1 -1
  58. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  59. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/index.js +4 -0
  60. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  61. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  62. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/operations.js +142 -0
  63. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  64. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/options.d.ts +16 -0
  65. package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  66. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/index.d.ts +3 -0
  67. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/index.js +4 -0
  68. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
  69. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  70. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/operations.js +44 -0
  71. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/operations.js.map +1 -0
  72. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/options.d.ts +5 -0
  73. package/dist/browser/api/paymentHsmClusterPrivateLinkResources/options.js.map +1 -0
  74. package/dist/browser/api/paymentHsmClusters/index.d.ts +3 -0
  75. package/dist/browser/api/paymentHsmClusters/index.js +4 -0
  76. package/dist/browser/api/paymentHsmClusters/index.js.map +1 -0
  77. package/dist/browser/api/paymentHsmClusters/operations.d.ts +31 -0
  78. package/dist/browser/api/paymentHsmClusters/operations.js +209 -0
  79. package/dist/browser/api/paymentHsmClusters/operations.js.map +1 -0
  80. package/dist/browser/api/paymentHsmClusters/options.d.ts +30 -0
  81. package/dist/browser/api/paymentHsmClusters/options.js.map +1 -0
  82. package/dist/browser/api/privateEndpointConnections/index.d.ts +1 -1
  83. package/dist/browser/api/privateEndpointConnections/index.js.map +1 -1
  84. package/dist/browser/api/privateEndpointConnections/operations.d.ts +5 -5
  85. package/dist/browser/api/privateEndpointConnections/operations.js +18 -14
  86. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
  87. package/dist/browser/api/privateEndpointConnections/options.d.ts +1 -1
  88. package/dist/browser/api/privateEndpointConnections/options.js.map +1 -1
  89. package/dist/browser/azureDedicatedHSMResourceProvider.d.ts +21 -12
  90. package/dist/browser/azureDedicatedHSMResourceProvider.js +42 -14
  91. package/dist/browser/azureDedicatedHSMResourceProvider.js.map +1 -1
  92. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.d.ts +4 -4
  93. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js +3 -1
  94. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js.map +1 -1
  95. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +4 -9
  96. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js +3 -1
  97. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
  98. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +4 -4
  99. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js +3 -1
  100. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
  101. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.d.ts +4 -4
  102. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js +3 -1
  103. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -1
  104. package/dist/browser/classic/cloudHsmClusters/index.d.ts +5 -10
  105. package/dist/browser/classic/cloudHsmClusters/index.js +3 -1
  106. package/dist/browser/classic/cloudHsmClusters/index.js.map +1 -1
  107. package/dist/browser/classic/dedicatedHsm/index.d.ts +5 -10
  108. package/dist/browser/classic/dedicatedHsm/index.js +3 -1
  109. package/dist/browser/classic/dedicatedHsm/index.js.map +1 -1
  110. package/dist/browser/classic/index.d.ts +11 -8
  111. package/dist/browser/classic/index.js.map +1 -1
  112. package/dist/browser/classic/operations/index.d.ts +4 -4
  113. package/dist/browser/classic/operations/index.js +3 -1
  114. package/dist/browser/classic/operations/index.js.map +1 -1
  115. package/dist/browser/classic/paymentHsmClusterPrivateEndpointConnections/index.d.ts +18 -0
  116. package/dist/browser/classic/paymentHsmClusterPrivateEndpointConnections/index.js +17 -0
  117. package/dist/browser/classic/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  118. package/dist/browser/classic/paymentHsmClusterPrivateLinkResources/index.d.ts +11 -0
  119. package/dist/browser/classic/paymentHsmClusterPrivateLinkResources/index.js +14 -0
  120. package/dist/browser/classic/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
  121. package/dist/browser/classic/paymentHsmClusters/index.d.ts +22 -0
  122. package/dist/browser/classic/paymentHsmClusters/index.js +19 -0
  123. package/dist/browser/classic/paymentHsmClusters/index.js.map +1 -0
  124. package/dist/browser/classic/privateEndpointConnections/index.d.ts +4 -4
  125. package/dist/browser/classic/privateEndpointConnections/index.js +3 -1
  126. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
  127. package/dist/browser/index.d.ts +24 -14
  128. package/dist/browser/index.js +4 -1
  129. package/dist/browser/index.js.map +1 -1
  130. package/dist/browser/models/index.d.ts +2 -1
  131. package/dist/browser/models/index.js +1 -1
  132. package/dist/browser/models/index.js.map +1 -1
  133. package/dist/browser/models/models.d.ts +273 -48
  134. package/dist/browser/models/models.js +274 -49
  135. package/dist/browser/models/models.js.map +1 -1
  136. package/dist/browser/restorePollerHelpers.d.ts +4 -4
  137. package/dist/browser/restorePollerHelpers.js +41 -44
  138. package/dist/browser/restorePollerHelpers.js.map +1 -1
  139. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  140. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  141. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  142. package/dist/browser/static-helpers/pagingHelpers.d.ts +3 -1
  143. package/dist/browser/static-helpers/pagingHelpers.js +59 -53
  144. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
  145. package/dist/browser/static-helpers/pollingHelpers.d.ts +7 -3
  146. package/dist/browser/static-helpers/pollingHelpers.js +33 -14
  147. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
  148. package/dist/browser/static-helpers/urlTemplate.js +43 -12
  149. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  150. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.d.ts +8 -5
  151. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js +49 -37
  152. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js.map +7 -1
  153. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.d.ts +1 -1
  154. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js +28 -8
  155. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js.map +7 -1
  156. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.d.ts +6 -6
  157. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js +65 -41
  158. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js.map +7 -1
  159. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.d.ts +1 -3
  160. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js +16 -5
  161. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js.map +7 -1
  162. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +1 -1
  163. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js +32 -10
  164. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +7 -1
  165. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +5 -10
  166. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js +151 -105
  167. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +7 -1
  168. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +1 -1
  169. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js +16 -5
  170. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +7 -1
  171. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.d.ts +1 -1
  172. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js +28 -8
  173. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js.map +7 -1
  174. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +5 -5
  175. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js +72 -32
  176. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js.map +7 -1
  177. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.d.ts +1 -1
  178. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js +16 -5
  179. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js.map +7 -1
  180. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.d.ts +1 -1
  181. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js +28 -8
  182. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js.map +7 -1
  183. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.d.ts +6 -6
  184. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js +65 -41
  185. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js.map +7 -1
  186. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.d.ts +1 -3
  187. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js +16 -5
  188. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js.map +7 -1
  189. package/dist/commonjs/api/cloudHsmClusters/index.d.ts +1 -1
  190. package/dist/commonjs/api/cloudHsmClusters/index.js +46 -17
  191. package/dist/commonjs/api/cloudHsmClusters/index.js.map +7 -1
  192. package/dist/commonjs/api/cloudHsmClusters/operations.d.ts +6 -11
  193. package/dist/commonjs/api/cloudHsmClusters/operations.js +437 -296
  194. package/dist/commonjs/api/cloudHsmClusters/operations.js.map +7 -1
  195. package/dist/commonjs/api/cloudHsmClusters/options.d.ts +2 -2
  196. package/dist/commonjs/api/cloudHsmClusters/options.js +16 -5
  197. package/dist/commonjs/api/cloudHsmClusters/options.js.map +7 -1
  198. package/dist/commonjs/api/dedicatedHsm/index.d.ts +1 -1
  199. package/dist/commonjs/api/dedicatedHsm/index.js +40 -14
  200. package/dist/commonjs/api/dedicatedHsm/index.js.map +7 -1
  201. package/dist/commonjs/api/dedicatedHsm/operations.d.ts +6 -11
  202. package/dist/commonjs/api/dedicatedHsm/operations.js +304 -193
  203. package/dist/commonjs/api/dedicatedHsm/operations.js.map +7 -1
  204. package/dist/commonjs/api/dedicatedHsm/options.d.ts +1 -1
  205. package/dist/commonjs/api/dedicatedHsm/options.js +16 -5
  206. package/dist/commonjs/api/dedicatedHsm/options.js.map +7 -1
  207. package/dist/commonjs/api/index.d.ts +2 -1
  208. package/dist/commonjs/api/index.js +28 -8
  209. package/dist/commonjs/api/index.js.map +7 -1
  210. package/dist/commonjs/api/operations/index.d.ts +1 -1
  211. package/dist/commonjs/api/operations/index.js +28 -8
  212. package/dist/commonjs/api/operations/index.js.map +7 -1
  213. package/dist/commonjs/api/operations/operations.d.ts +5 -5
  214. package/dist/commonjs/api/operations/operations.js +67 -27
  215. package/dist/commonjs/api/operations/operations.js.map +7 -1
  216. package/dist/commonjs/api/operations/options.d.ts +1 -1
  217. package/dist/commonjs/api/operations/options.js +16 -5
  218. package/dist/commonjs/api/operations/options.js.map +7 -1
  219. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  220. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/index.js +34 -0
  221. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/index.js.map +7 -0
  222. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  223. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/operations.js +219 -0
  224. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/operations.js.map +7 -0
  225. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/options.d.ts +16 -0
  226. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/options.js +16 -0
  227. package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/options.js.map +7 -0
  228. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/index.d.ts +3 -0
  229. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/index.js +28 -0
  230. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/index.js.map +7 -0
  231. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  232. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/operations.js +81 -0
  233. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/operations.js.map +7 -0
  234. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/options.d.ts +5 -0
  235. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/options.js +16 -0
  236. package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/options.js.map +7 -0
  237. package/dist/commonjs/api/paymentHsmClusters/index.d.ts +3 -0
  238. package/dist/commonjs/api/paymentHsmClusters/index.js +38 -0
  239. package/dist/commonjs/api/paymentHsmClusters/index.js.map +7 -0
  240. package/dist/commonjs/api/paymentHsmClusters/operations.d.ts +31 -0
  241. package/dist/commonjs/api/paymentHsmClusters/operations.js +297 -0
  242. package/dist/commonjs/api/paymentHsmClusters/operations.js.map +7 -0
  243. package/dist/commonjs/api/paymentHsmClusters/options.d.ts +30 -0
  244. package/dist/commonjs/api/paymentHsmClusters/options.js +16 -0
  245. package/dist/commonjs/api/paymentHsmClusters/options.js.map +7 -0
  246. package/dist/commonjs/api/privateEndpointConnections/index.d.ts +1 -1
  247. package/dist/commonjs/api/privateEndpointConnections/index.js +28 -8
  248. package/dist/commonjs/api/privateEndpointConnections/index.js.map +7 -1
  249. package/dist/commonjs/api/privateEndpointConnections/operations.d.ts +5 -5
  250. package/dist/commonjs/api/privateEndpointConnections/operations.js +72 -36
  251. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +7 -1
  252. package/dist/commonjs/api/privateEndpointConnections/options.d.ts +1 -1
  253. package/dist/commonjs/api/privateEndpointConnections/options.js +16 -5
  254. package/dist/commonjs/api/privateEndpointConnections/options.js.map +7 -1
  255. package/dist/commonjs/azureDedicatedHSMResourceProvider.d.ts +21 -12
  256. package/dist/commonjs/azureDedicatedHSMResourceProvider.js +82 -35
  257. package/dist/commonjs/azureDedicatedHSMResourceProvider.js.map +7 -1
  258. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.d.ts +4 -4
  259. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js +34 -11
  260. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js.map +7 -1
  261. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +4 -9
  262. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js +43 -13
  263. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +7 -1
  264. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +4 -4
  265. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js +34 -11
  266. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js.map +7 -1
  267. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.d.ts +4 -4
  268. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js +34 -11
  269. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js.map +7 -1
  270. package/dist/commonjs/classic/cloudHsmClusters/index.d.ts +5 -10
  271. package/dist/commonjs/classic/cloudHsmClusters/index.js +43 -20
  272. package/dist/commonjs/classic/cloudHsmClusters/index.js.map +7 -1
  273. package/dist/commonjs/classic/dedicatedHsm/index.d.ts +5 -10
  274. package/dist/commonjs/classic/dedicatedHsm/index.js +40 -17
  275. package/dist/commonjs/classic/dedicatedHsm/index.js.map +7 -1
  276. package/dist/commonjs/classic/index.d.ts +11 -8
  277. package/dist/commonjs/classic/index.js +16 -5
  278. package/dist/commonjs/classic/index.js.map +7 -1
  279. package/dist/commonjs/classic/operations/index.d.ts +4 -4
  280. package/dist/commonjs/classic/operations/index.js +34 -11
  281. package/dist/commonjs/classic/operations/index.js.map +7 -1
  282. package/dist/commonjs/classic/paymentHsmClusterPrivateEndpointConnections/index.d.ts +18 -0
  283. package/dist/commonjs/classic/paymentHsmClusterPrivateEndpointConnections/index.js +48 -0
  284. package/dist/commonjs/classic/paymentHsmClusterPrivateEndpointConnections/index.js.map +7 -0
  285. package/dist/commonjs/classic/paymentHsmClusterPrivateLinkResources/index.d.ts +11 -0
  286. package/dist/commonjs/classic/paymentHsmClusterPrivateLinkResources/index.js +38 -0
  287. package/dist/commonjs/classic/paymentHsmClusterPrivateLinkResources/index.js.map +7 -0
  288. package/dist/commonjs/classic/paymentHsmClusters/index.d.ts +22 -0
  289. package/dist/commonjs/classic/paymentHsmClusters/index.js +43 -0
  290. package/dist/commonjs/classic/paymentHsmClusters/index.js.map +7 -0
  291. package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +4 -4
  292. package/dist/commonjs/classic/privateEndpointConnections/index.js +34 -11
  293. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +7 -1
  294. package/dist/commonjs/index.d.ts +24 -14
  295. package/dist/commonjs/index.js +78 -26
  296. package/dist/commonjs/index.js.map +7 -1
  297. package/dist/commonjs/logger.js +29 -8
  298. package/dist/commonjs/logger.js.map +7 -1
  299. package/dist/commonjs/models/index.d.ts +2 -1
  300. package/dist/commonjs/models/index.js +64 -22
  301. package/dist/commonjs/models/index.js.map +7 -1
  302. package/dist/commonjs/models/models.d.ts +273 -48
  303. package/dist/commonjs/models/models.js +899 -688
  304. package/dist/commonjs/models/models.js.map +7 -1
  305. package/dist/commonjs/restorePollerHelpers.d.ts +4 -4
  306. package/dist/commonjs/restorePollerHelpers.js +132 -125
  307. package/dist/commonjs/restorePollerHelpers.js.map +7 -1
  308. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  309. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
  310. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
  311. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +3 -1
  312. package/dist/commonjs/static-helpers/pagingHelpers.js +131 -128
  313. package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
  314. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +7 -3
  315. package/dist/commonjs/static-helpers/pollingHelpers.js +95 -73
  316. package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
  317. package/dist/commonjs/static-helpers/urlTemplate.js +167 -142
  318. package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -1
  319. package/dist/commonjs/tsdoc-metadata.json +11 -11
  320. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.d.ts +8 -5
  321. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js +20 -26
  322. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
  323. package/dist/esm/api/cloudHsmClusterBackupStatus/index.d.ts +1 -1
  324. package/dist/esm/api/cloudHsmClusterBackupStatus/index.js.map +1 -1
  325. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.d.ts +6 -6
  326. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js +19 -21
  327. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
  328. package/dist/esm/api/cloudHsmClusterBackupStatus/options.d.ts +1 -3
  329. package/dist/esm/api/cloudHsmClusterBackupStatus/options.js.map +1 -1
  330. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +1 -1
  331. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
  332. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +5 -10
  333. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js +36 -41
  334. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
  335. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +1 -1
  336. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -1
  337. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.d.ts +1 -1
  338. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
  339. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +5 -5
  340. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js +16 -8
  341. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
  342. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.d.ts +1 -1
  343. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -1
  344. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.d.ts +1 -1
  345. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.js.map +1 -1
  346. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.d.ts +6 -6
  347. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js +19 -21
  348. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
  349. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.d.ts +1 -3
  350. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.js.map +1 -1
  351. package/dist/esm/api/cloudHsmClusters/index.d.ts +1 -1
  352. package/dist/esm/api/cloudHsmClusters/index.js.map +1 -1
  353. package/dist/esm/api/cloudHsmClusters/operations.d.ts +6 -11
  354. package/dist/esm/api/cloudHsmClusters/operations.js +162 -123
  355. package/dist/esm/api/cloudHsmClusters/operations.js.map +1 -1
  356. package/dist/esm/api/cloudHsmClusters/options.d.ts +2 -2
  357. package/dist/esm/api/cloudHsmClusters/options.js.map +1 -1
  358. package/dist/esm/api/dedicatedHsm/index.d.ts +1 -1
  359. package/dist/esm/api/dedicatedHsm/index.js.map +1 -1
  360. package/dist/esm/api/dedicatedHsm/operations.d.ts +6 -11
  361. package/dist/esm/api/dedicatedHsm/operations.js +100 -69
  362. package/dist/esm/api/dedicatedHsm/operations.js.map +1 -1
  363. package/dist/esm/api/dedicatedHsm/options.d.ts +1 -1
  364. package/dist/esm/api/dedicatedHsm/options.js.map +1 -1
  365. package/dist/esm/api/index.d.ts +2 -1
  366. package/dist/esm/api/index.js +1 -1
  367. package/dist/esm/api/index.js.map +1 -1
  368. package/dist/esm/api/operations/index.d.ts +1 -1
  369. package/dist/esm/api/operations/index.js.map +1 -1
  370. package/dist/esm/api/operations/operations.d.ts +5 -5
  371. package/dist/esm/api/operations/operations.js +16 -8
  372. package/dist/esm/api/operations/operations.js.map +1 -1
  373. package/dist/esm/api/operations/options.d.ts +1 -1
  374. package/dist/esm/api/operations/options.js.map +1 -1
  375. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  376. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/index.js +4 -0
  377. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  378. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  379. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/operations.js +142 -0
  380. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  381. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/options.d.ts +16 -0
  382. package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  383. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/index.d.ts +3 -0
  384. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/index.js +4 -0
  385. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
  386. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  387. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/operations.js +44 -0
  388. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/operations.js.map +1 -0
  389. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/options.d.ts +5 -0
  390. package/dist/esm/api/paymentHsmClusterPrivateLinkResources/options.js.map +1 -0
  391. package/dist/esm/api/paymentHsmClusters/index.d.ts +3 -0
  392. package/dist/esm/api/paymentHsmClusters/index.js +4 -0
  393. package/dist/esm/api/paymentHsmClusters/index.js.map +1 -0
  394. package/dist/esm/api/paymentHsmClusters/operations.d.ts +31 -0
  395. package/dist/esm/api/paymentHsmClusters/operations.js +209 -0
  396. package/dist/esm/api/paymentHsmClusters/operations.js.map +1 -0
  397. package/dist/esm/api/paymentHsmClusters/options.d.ts +30 -0
  398. package/dist/esm/api/paymentHsmClusters/options.js.map +1 -0
  399. package/dist/esm/api/privateEndpointConnections/index.d.ts +1 -1
  400. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -1
  401. package/dist/esm/api/privateEndpointConnections/operations.d.ts +5 -5
  402. package/dist/esm/api/privateEndpointConnections/operations.js +18 -14
  403. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
  404. package/dist/esm/api/privateEndpointConnections/options.d.ts +1 -1
  405. package/dist/esm/api/privateEndpointConnections/options.js.map +1 -1
  406. package/dist/esm/azureDedicatedHSMResourceProvider.d.ts +21 -12
  407. package/dist/esm/azureDedicatedHSMResourceProvider.js +42 -14
  408. package/dist/esm/azureDedicatedHSMResourceProvider.js.map +1 -1
  409. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.d.ts +4 -4
  410. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js +3 -1
  411. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js.map +1 -1
  412. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +4 -9
  413. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js +3 -1
  414. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
  415. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +4 -4
  416. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js +3 -1
  417. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
  418. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.d.ts +4 -4
  419. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js +3 -1
  420. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -1
  421. package/dist/esm/classic/cloudHsmClusters/index.d.ts +5 -10
  422. package/dist/esm/classic/cloudHsmClusters/index.js +3 -1
  423. package/dist/esm/classic/cloudHsmClusters/index.js.map +1 -1
  424. package/dist/esm/classic/dedicatedHsm/index.d.ts +5 -10
  425. package/dist/esm/classic/dedicatedHsm/index.js +3 -1
  426. package/dist/esm/classic/dedicatedHsm/index.js.map +1 -1
  427. package/dist/esm/classic/index.d.ts +11 -8
  428. package/dist/esm/classic/index.js.map +1 -1
  429. package/dist/esm/classic/operations/index.d.ts +4 -4
  430. package/dist/esm/classic/operations/index.js +3 -1
  431. package/dist/esm/classic/operations/index.js.map +1 -1
  432. package/dist/esm/classic/paymentHsmClusterPrivateEndpointConnections/index.d.ts +18 -0
  433. package/dist/esm/classic/paymentHsmClusterPrivateEndpointConnections/index.js +17 -0
  434. package/dist/esm/classic/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  435. package/dist/esm/classic/paymentHsmClusterPrivateLinkResources/index.d.ts +11 -0
  436. package/dist/esm/classic/paymentHsmClusterPrivateLinkResources/index.js +14 -0
  437. package/dist/esm/classic/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
  438. package/dist/esm/classic/paymentHsmClusters/index.d.ts +22 -0
  439. package/dist/esm/classic/paymentHsmClusters/index.js +19 -0
  440. package/dist/esm/classic/paymentHsmClusters/index.js.map +1 -0
  441. package/dist/esm/classic/privateEndpointConnections/index.d.ts +4 -4
  442. package/dist/esm/classic/privateEndpointConnections/index.js +3 -1
  443. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
  444. package/dist/esm/index.d.ts +24 -14
  445. package/dist/esm/index.js +4 -1
  446. package/dist/esm/index.js.map +1 -1
  447. package/dist/esm/models/index.d.ts +2 -1
  448. package/dist/esm/models/index.js +1 -1
  449. package/dist/esm/models/index.js.map +1 -1
  450. package/dist/esm/models/models.d.ts +273 -48
  451. package/dist/esm/models/models.js +274 -49
  452. package/dist/esm/models/models.js.map +1 -1
  453. package/dist/esm/restorePollerHelpers.d.ts +4 -4
  454. package/dist/esm/restorePollerHelpers.js +41 -44
  455. package/dist/esm/restorePollerHelpers.js.map +1 -1
  456. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  457. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  458. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  459. package/dist/esm/static-helpers/pagingHelpers.d.ts +3 -1
  460. package/dist/esm/static-helpers/pagingHelpers.js +59 -53
  461. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
  462. package/dist/esm/static-helpers/pollingHelpers.d.ts +7 -3
  463. package/dist/esm/static-helpers/pollingHelpers.js +33 -14
  464. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
  465. package/dist/esm/static-helpers/urlTemplate.js +43 -12
  466. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  467. package/package.json +91 -108
  468. package/review/{arm-hardwaresecuritymodules.api.md → arm-hardwaresecuritymodules-node.api.md} +198 -41
  469. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.d.ts +0 -19
  470. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js +0 -36
  471. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js.map +0 -1
  472. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.d.ts +0 -3
  473. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js +0 -4
  474. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js.map +0 -1
  475. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.d.ts +0 -9
  476. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js +0 -42
  477. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js.map +0 -1
  478. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.d.ts +0 -7
  479. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.js.map +0 -1
  480. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +0 -3
  481. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js +0 -4
  482. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +0 -1
  483. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +0 -23
  484. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js +0 -109
  485. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +0 -1
  486. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +0 -13
  487. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +0 -1
  488. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.d.ts +0 -3
  489. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js +0 -4
  490. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js.map +0 -1
  491. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +0 -10
  492. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js +0 -36
  493. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js.map +0 -1
  494. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.d.ts +0 -5
  495. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.js.map +0 -1
  496. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.d.ts +0 -3
  497. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js +0 -4
  498. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js.map +0 -1
  499. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.d.ts +0 -9
  500. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js +0 -42
  501. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js.map +0 -1
  502. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.d.ts +0 -7
  503. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.js.map +0 -1
  504. package/dist/react-native/api/cloudHsmClusters/index.d.ts +0 -3
  505. package/dist/react-native/api/cloudHsmClusters/index.js +0 -4
  506. package/dist/react-native/api/cloudHsmClusters/index.js.map +0 -1
  507. package/dist/react-native/api/cloudHsmClusters/operations.d.ts +0 -52
  508. package/dist/react-native/api/cloudHsmClusters/operations.js +0 -324
  509. package/dist/react-native/api/cloudHsmClusters/operations.js.map +0 -1
  510. package/dist/react-native/api/cloudHsmClusters/options.d.ts +0 -57
  511. package/dist/react-native/api/cloudHsmClusters/options.js.map +0 -1
  512. package/dist/react-native/api/dedicatedHsm/index.d.ts +0 -3
  513. package/dist/react-native/api/dedicatedHsm/index.js +0 -4
  514. package/dist/react-native/api/dedicatedHsm/index.js.map +0 -1
  515. package/dist/react-native/api/dedicatedHsm/operations.d.ts +0 -40
  516. package/dist/react-native/api/dedicatedHsm/operations.js +0 -215
  517. package/dist/react-native/api/dedicatedHsm/operations.js.map +0 -1
  518. package/dist/react-native/api/dedicatedHsm/options.d.ts +0 -33
  519. package/dist/react-native/api/dedicatedHsm/options.js.map +0 -1
  520. package/dist/react-native/api/index.d.ts +0 -2
  521. package/dist/react-native/api/index.js +0 -4
  522. package/dist/react-native/api/index.js.map +0 -1
  523. package/dist/react-native/api/operations/index.d.ts +0 -3
  524. package/dist/react-native/api/operations/index.js +0 -4
  525. package/dist/react-native/api/operations/index.js.map +0 -1
  526. package/dist/react-native/api/operations/operations.d.ts +0 -10
  527. package/dist/react-native/api/operations/operations.js +0 -29
  528. package/dist/react-native/api/operations/operations.js.map +0 -1
  529. package/dist/react-native/api/operations/options.d.ts +0 -5
  530. package/dist/react-native/api/operations/options.js +0 -4
  531. package/dist/react-native/api/operations/options.js.map +0 -1
  532. package/dist/react-native/api/privateEndpointConnections/index.d.ts +0 -3
  533. package/dist/react-native/api/privateEndpointConnections/index.js +0 -4
  534. package/dist/react-native/api/privateEndpointConnections/index.js.map +0 -1
  535. package/dist/react-native/api/privateEndpointConnections/operations.d.ts +0 -10
  536. package/dist/react-native/api/privateEndpointConnections/operations.js +0 -36
  537. package/dist/react-native/api/privateEndpointConnections/operations.js.map +0 -1
  538. package/dist/react-native/api/privateEndpointConnections/options.d.ts +0 -5
  539. package/dist/react-native/api/privateEndpointConnections/options.js +0 -4
  540. package/dist/react-native/api/privateEndpointConnections/options.js.map +0 -1
  541. package/dist/react-native/azureDedicatedHSMResourceProvider.d.ts +0 -36
  542. package/dist/react-native/azureDedicatedHSMResourceProvider.js +0 -33
  543. package/dist/react-native/azureDedicatedHSMResourceProvider.js.map +0 -1
  544. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.d.ts +0 -10
  545. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js +0 -12
  546. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js.map +0 -1
  547. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +0 -20
  548. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js +0 -14
  549. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +0 -1
  550. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +0 -11
  551. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js +0 -12
  552. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js.map +0 -1
  553. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.d.ts +0 -10
  554. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js +0 -12
  555. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js.map +0 -1
  556. package/dist/react-native/classic/cloudHsmClusters/index.d.ts +0 -35
  557. package/dist/react-native/classic/cloudHsmClusters/index.js +0 -21
  558. package/dist/react-native/classic/cloudHsmClusters/index.js.map +0 -1
  559. package/dist/react-native/classic/dedicatedHsm/index.d.ts +0 -29
  560. package/dist/react-native/classic/dedicatedHsm/index.js +0 -18
  561. package/dist/react-native/classic/dedicatedHsm/index.js.map +0 -1
  562. package/dist/react-native/classic/index.d.ts +0 -9
  563. package/dist/react-native/classic/index.js +0 -4
  564. package/dist/react-native/classic/index.js.map +0 -1
  565. package/dist/react-native/classic/operations/index.d.ts +0 -11
  566. package/dist/react-native/classic/operations/index.js +0 -12
  567. package/dist/react-native/classic/operations/index.js.map +0 -1
  568. package/dist/react-native/classic/privateEndpointConnections/index.d.ts +0 -11
  569. package/dist/react-native/classic/privateEndpointConnections/index.js +0 -12
  570. package/dist/react-native/classic/privateEndpointConnections/index.js.map +0 -1
  571. package/dist/react-native/index.d.ts +0 -16
  572. package/dist/react-native/index.js +0 -6
  573. package/dist/react-native/index.js.map +0 -1
  574. package/dist/react-native/logger.d.ts +0 -2
  575. package/dist/react-native/logger.js +0 -5
  576. package/dist/react-native/logger.js.map +0 -1
  577. package/dist/react-native/models/index.d.ts +0 -2
  578. package/dist/react-native/models/index.js +0 -4
  579. package/dist/react-native/models/index.js.map +0 -1
  580. package/dist/react-native/models/models.d.ts +0 -751
  581. package/dist/react-native/models/models.js +0 -747
  582. package/dist/react-native/models/models.js.map +0 -1
  583. package/dist/react-native/package.json +0 -3
  584. package/dist/react-native/restorePollerHelpers.d.ts +0 -21
  585. package/dist/react-native/restorePollerHelpers.js +0 -133
  586. package/dist/react-native/restorePollerHelpers.js.map +0 -1
  587. package/dist/react-native/static-helpers/pagingHelpers.d.ts +0 -72
  588. package/dist/react-native/static-helpers/pagingHelpers.js +0 -137
  589. package/dist/react-native/static-helpers/pagingHelpers.js.map +0 -1
  590. package/dist/react-native/static-helpers/pollingHelpers.d.ts +0 -30
  591. package/dist/react-native/static-helpers/pollingHelpers.js +0 -76
  592. package/dist/react-native/static-helpers/pollingHelpers.js.map +0 -1
  593. package/dist/react-native/static-helpers/urlTemplate.d.ts +0 -5
  594. package/dist/react-native/static-helpers/urlTemplate.js +0 -169
  595. package/dist/react-native/static-helpers/urlTemplate.js.map +0 -1
  596. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterBackupStatus.api.md +0 -22
  597. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateEndpointConnections.api.md +0 -36
  598. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateLinkResources.api.md +0 -19
  599. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterRestoreStatus.api.md +0 -22
  600. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusters.api.md +0 -96
  601. package/review/arm-hardwaresecuritymodules-api-dedicatedHsm.api.md +0 -68
  602. package/review/arm-hardwaresecuritymodules-api-operations.api.md +0 -19
  603. package/review/arm-hardwaresecuritymodules-api-privateEndpointConnections.api.md +0 -19
  604. package/review/arm-hardwaresecuritymodules-api.api.md +0 -27
  605. package/review/arm-hardwaresecuritymodules-models.api.md +0 -471
  606. /package/dist/{react-native/api/cloudHsmClusterBackupStatus → browser/api/paymentHsmClusterPrivateEndpointConnections}/options.js +0 -0
  607. /package/dist/{react-native/api/cloudHsmClusterPrivateEndpointConnections → browser/api/paymentHsmClusterPrivateLinkResources}/options.js +0 -0
  608. /package/dist/{react-native/api/cloudHsmClusterPrivateLinkResources → browser/api/paymentHsmClusters}/options.js +0 -0
  609. /package/dist/{react-native/api/cloudHsmClusterRestoreStatus → esm/api/paymentHsmClusterPrivateEndpointConnections}/options.js +0 -0
  610. /package/dist/{react-native/api/cloudHsmClusters → esm/api/paymentHsmClusterPrivateLinkResources}/options.js +0 -0
  611. /package/dist/{react-native/api/dedicatedHsm → esm/api/paymentHsmClusters}/options.js +0 -0
@@ -1,136 +1,143 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.restorePoller = restorePoller;
6
- const operations_js_1 = require("./api/dedicatedHsm/operations.js");
7
- const operations_js_2 = require("./api/cloudHsmClusterPrivateEndpointConnections/operations.js");
8
- const operations_js_3 = require("./api/cloudHsmClusterRestoreStatus/operations.js");
9
- const operations_js_4 = require("./api/cloudHsmClusterBackupStatus/operations.js");
10
- const operations_js_5 = require("./api/cloudHsmClusters/operations.js");
11
- const pollingHelpers_js_1 = require("./static-helpers/pollingHelpers.js");
12
- const core_lro_1 = require("@azure/core-lro");
13
- /**
14
- * Creates a poller from the serialized state of another poller. This can be
15
- * useful when you want to create pollers on a different host or a poller
16
- * needs to be constructed after the original one is not in scope.
17
- */
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var restorePollerHelpers_exports = {};
19
+ __export(restorePollerHelpers_exports, {
20
+ restorePoller: () => restorePoller
21
+ });
22
+ module.exports = __toCommonJS(restorePollerHelpers_exports);
23
+ var import_operations = require("./api/dedicatedHsm/operations.js");
24
+ var import_operations2 = require("./api/cloudHsmClusterPrivateEndpointConnections/operations.js");
25
+ var import_operations3 = require("./api/paymentHsmClusterPrivateEndpointConnections/operations.js");
26
+ var import_operations4 = require("./api/paymentHsmClusters/operations.js");
27
+ var import_operations5 = require("./api/cloudHsmClusters/operations.js");
28
+ var import_pollingHelpers = require("./static-helpers/pollingHelpers.js");
29
+ var import_core_lro = require("@azure/core-lro");
18
30
  function restorePoller(client, serializedState, sourceOperation, options) {
19
- var _a, _b, _c;
20
- const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
21
- const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
22
- if (!initialRequestUrl || !requestMethod) {
23
- throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation === null || sourceOperation === void 0 ? void 0 : sourceOperation.name}`);
31
+ const pollerConfig = (0, import_core_lro.deserializeState)(serializedState).config;
32
+ const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
33
+ if (!initialRequestUrl || !requestMethod) {
34
+ throw new Error(
35
+ `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`
36
+ );
37
+ }
38
+ const resourceLocationConfig = metadata?.["resourceLocationConfig"];
39
+ const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
40
+ const deserializeHelper = options?.processResponseBody ?? deserializer;
41
+ if (!deserializeHelper) {
42
+ throw new Error(
43
+ `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`
44
+ );
45
+ }
46
+ const apiVersion = getApiVersionFromUrl(initialRequestUrl);
47
+ return (0, import_pollingHelpers.getLongRunningPoller)(
48
+ client["_client"] ?? client,
49
+ deserializeHelper,
50
+ expectedStatuses,
51
+ {
52
+ updateIntervalInMs: options?.updateIntervalInMs,
53
+ abortSignal: options?.abortSignal,
54
+ resourceLocationConfig,
55
+ restoreFrom: serializedState,
56
+ initialRequestUrl,
57
+ apiVersion
24
58
  }
25
- const resourceLocationConfig = metadata === null || metadata === void 0 ? void 0 : metadata["resourceLocationConfig"];
26
- const { deserializer, expectedStatuses = [] } = (_a = getDeserializationHelper(initialRequestUrl, requestMethod)) !== null && _a !== void 0 ? _a : {};
27
- const deserializeHelper = (_b = options === null || options === void 0 ? void 0 : options.processResponseBody) !== null && _b !== void 0 ? _b : deserializer;
28
- if (!deserializeHelper) {
29
- 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}.`);
30
- }
31
- return (0, pollingHelpers_js_1.getLongRunningPoller)((_c = client["_client"]) !== null && _c !== void 0 ? _c : client, deserializeHelper, expectedStatuses, {
32
- updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
33
- abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
34
- resourceLocationConfig,
35
- restoreFrom: serializedState,
36
- initialRequestUrl,
37
- });
59
+ );
38
60
  }
39
61
  const deserializeMap = {
40
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": {
41
- deserializer: operations_js_1._$deleteDeserialize,
42
- expectedStatuses: ["202", "204", "200"],
43
- },
44
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": { deserializer: operations_js_1._updateDeserialize, expectedStatuses: ["200", "202"] },
45
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": {
46
- deserializer: operations_js_1._createOrUpdateDeserialize,
47
- expectedStatuses: ["200", "201"],
48
- },
49
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}": {
50
- deserializer: operations_js_2._$deleteDeserialize,
51
- expectedStatuses: ["202", "204", "200"],
52
- },
53
- "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restoreOperationStatus/{jobId}": { deserializer: operations_js_3._getDeserialize, expectedStatuses: ["200", "202"] },
54
- "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backupOperationStatus/{jobId}": {
55
- deserializer: operations_js_4._getDeserialize,
56
- expectedStatuses: ["200", "202"],
57
- },
58
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore": { deserializer: operations_js_5._restoreDeserialize, expectedStatuses: ["202", "200"] },
59
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties": {
60
- deserializer: operations_js_5._validateRestorePropertiesDeserialize,
61
- expectedStatuses: ["202", "200"],
62
- },
63
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup": { deserializer: operations_js_5._backupDeserialize, expectedStatuses: ["202", "200"] },
64
- "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties": {
65
- deserializer: operations_js_5._validateBackupPropertiesDeserialize,
66
- expectedStatuses: ["202", "200"],
67
- },
68
- "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
69
- deserializer: operations_js_5._$deleteDeserialize,
70
- expectedStatuses: ["202", "204", "200"],
71
- },
72
- "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
73
- deserializer: operations_js_5._updateDeserialize,
74
- expectedStatuses: ["200", "202"],
75
- },
76
- "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
77
- deserializer: operations_js_5._createOrUpdateDeserialize,
78
- expectedStatuses: ["200", "201"],
79
- },
62
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": { deserializer: import_operations._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
63
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": { deserializer: import_operations._updateDeserialize, expectedStatuses: ["200", "202", "201"] },
64
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}": { deserializer: import_operations._createOrUpdateDeserialize, expectedStatuses: ["200", "201", "202"] },
65
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}": {
66
+ deserializer: import_operations2._$deleteDeserialize,
67
+ expectedStatuses: ["202", "204", "200"]
68
+ },
69
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}/privateEndpointConnections/{peConnectionName}": {
70
+ deserializer: import_operations3._$deleteDeserialize,
71
+ expectedStatuses: ["202", "204", "200"]
72
+ },
73
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}": {
74
+ deserializer: import_operations4._$deleteDeserialize,
75
+ expectedStatuses: ["202", "204", "200"]
76
+ },
77
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}": { deserializer: import_operations4._updateDeserialize, expectedStatuses: ["200", "202", "201"] },
78
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}": {
79
+ deserializer: import_operations4._createOrUpdateDeserialize,
80
+ expectedStatuses: ["200", "201", "202"]
81
+ },
82
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore": { deserializer: import_operations5._restoreDeserialize, expectedStatuses: ["202", "200", "201"] },
83
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties": {
84
+ deserializer: import_operations5._validateRestorePropertiesDeserialize,
85
+ expectedStatuses: ["202", "200", "201"]
86
+ },
87
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup": { deserializer: import_operations5._backupDeserialize, expectedStatuses: ["202", "200", "201"] },
88
+ "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties": { deserializer: import_operations5._validateBackupPropertiesDeserialize, expectedStatuses: ["202", "200", "201"] },
89
+ "DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": { deserializer: import_operations5._$deleteDeserialize, expectedStatuses: ["202", "204", "200"] },
90
+ "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": { deserializer: import_operations5._updateDeserialize, expectedStatuses: ["200", "202", "201"] },
91
+ "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}": {
92
+ deserializer: import_operations5._createOrUpdateDeserialize,
93
+ expectedStatuses: ["200", "201", "202"]
94
+ }
80
95
  };
81
96
  function getDeserializationHelper(urlStr, method) {
82
- var _a, _b, _c, _d;
83
- const path = new URL(urlStr).pathname;
84
- const pathParts = path.split("/");
85
- // Traverse list to match the longest candidate
86
- // matchedLen: the length of candidate path
87
- // matchedValue: the matched status code array
88
- let matchedLen = -1, matchedValue;
89
- // Iterate the responseMap to find a match
90
- for (const [key, value] of Object.entries(deserializeMap)) {
91
- // Extracting the path from the map key which is in format
92
- // GET /path/foo
93
- if (!key.startsWith(method)) {
94
- continue;
95
- }
96
- const candidatePath = getPathFromMapKey(key);
97
- // Get each part of the url path
98
- const candidateParts = candidatePath.split("/");
99
- // track if we have found a match to return the values found.
100
- let found = true;
101
- for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
102
- if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
103
- const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
104
- // If the current part of the candidate is a "template" part
105
- // Try to use the suffix of pattern to match the path
106
- // {guid} ==> $
107
- // {guid}:export ==> :export$
108
- const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
109
- if (!isMatched) {
110
- found = false;
111
- break;
112
- }
113
- continue;
114
- }
115
- // If the candidate part is not a template and
116
- // the parts don't match mark the candidate as not found
117
- // to move on with the next candidate path.
118
- if (candidateParts[i] !== pathParts[j]) {
119
- found = false;
120
- break;
121
- }
122
- }
123
- // We finished evaluating the current candidate parts
124
- // Update the matched value if and only if we found the longer pattern
125
- if (found && candidatePath.length > matchedLen) {
126
- matchedLen = candidatePath.length;
127
- matchedValue = value;
97
+ const path = new URL(urlStr).pathname;
98
+ const pathParts = path.split("/");
99
+ let matchedLen = -1, matchedValue;
100
+ for (const [key, value] of Object.entries(deserializeMap)) {
101
+ if (!key.startsWith(method)) {
102
+ continue;
103
+ }
104
+ const candidatePath = getPathFromMapKey(key);
105
+ const candidateParts = candidatePath.split("/");
106
+ let found = true;
107
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
108
+ if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
109
+ const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
110
+ const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(
111
+ pathParts[j] || ""
112
+ );
113
+ if (!isMatched) {
114
+ found = false;
115
+ break;
128
116
  }
117
+ continue;
118
+ }
119
+ if (candidateParts[i] !== pathParts[j]) {
120
+ found = false;
121
+ break;
122
+ }
129
123
  }
130
- return matchedValue;
124
+ if (found && candidatePath.length > matchedLen) {
125
+ matchedLen = candidatePath.length;
126
+ matchedValue = value;
127
+ }
128
+ }
129
+ return matchedValue;
131
130
  }
132
131
  function getPathFromMapKey(mapKey) {
133
- const pathStart = mapKey.indexOf("/");
134
- return mapKey.slice(pathStart);
132
+ const pathStart = mapKey.indexOf("/");
133
+ return mapKey.slice(pathStart);
134
+ }
135
+ function getApiVersionFromUrl(urlStr) {
136
+ const url = new URL(urlStr);
137
+ return url.searchParams.get("api-version") ?? void 0;
135
138
  }
136
- //# sourceMappingURL=restorePollerHelpers.js.map
139
+ // Annotate the CommonJS export names for ESM import in node:
140
+ 0 && (module.exports = {
141
+ restorePoller
142
+ });
143
+ //# sourceMappingURL=restorePollerHelpers.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiDlC,sCAoCC;AAlFD,oEAI0C;AAC1C,iGAAoK;AACpK,oFAAmF;AACnF,mFAAgI;AAChI,wEAQ8C;AAC9C,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAyC,EACzC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAC3C,MAAA,wBAAwB,CAAC,i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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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/restorePollerHelpers.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { 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 { _$deleteDeserialize as _$deleteDeserializePaymentHsmClusterPrivateEndpointConnections } from \"./api/paymentHsmClusterPrivateEndpointConnections/operations.js\";\nimport {\n _$deleteDeserialize as _$deleteDeserializePaymentHsmClusters,\n _updateDeserialize as _updateDeserializePaymentHsmClusters,\n _createOrUpdateDeserialize as _createOrUpdateDeserializePaymentHsmClusters,\n} from \"./api/paymentHsmClusters/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 type { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { PollerLike, OperationState, ResourceLocationConfig } from \"@azure/core-lro\";\nimport { deserializeState } 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 | 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 const apiVersion = getApiVersionFromUrl(initialRequestUrl);\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 apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}\":\n { deserializer: _createOrUpdateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}\":\n {\n deserializer: _$deleteDeserializeCloudHsmClusterPrivateEndpointConnections,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}/privateEndpointConnections/{peConnectionName}\":\n {\n deserializer: _$deleteDeserializePaymentHsmClusterPrivateEndpointConnections,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}\":\n {\n deserializer: _$deleteDeserializePaymentHsmClusters,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}\":\n { deserializer: _updateDeserializePaymentHsmClusters, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}\":\n {\n deserializer: _createOrUpdateDeserializePaymentHsmClusters,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore\":\n { deserializer: _restoreDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties\":\n {\n deserializer: _validateRestorePropertiesDeserialize,\n expectedStatuses: [\"202\", \"200\", \"201\"],\n },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup\":\n { deserializer: _backupDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties\":\n { deserializer: _validateBackupPropertiesDeserialize, expectedStatuses: [\"202\", \"200\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}\":\n { deserializer: _$deleteDeserializeCloudHsmClusters, expectedStatuses: [\"202\", \"204\", \"200\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}\":\n { deserializer: _updateDeserializeCloudHsmClusters, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}\":\n {\n deserializer: _createOrUpdateDeserializeCloudHsmClusters,\n expectedStatuses: [\"200\", \"201\", \"202\"],\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\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAIO;AACP,IAAAA,qBAAoG;AACpG,IAAAA,qBAAsG;AACtG,IAAAA,qBAIO;AACP,IAAAA,qBAQO;AACP,4BAAqC;AAIrC,sBAAiC;AAqB1B,SAAS,cACd,QACA,iBACA,iBACA,SAC8C;AAC9C,QAAM,mBAAe,kCAAiB,eAAe,EAAE;AACvD,QAAM,EAAE,mBAAmB,eAAe,SAAS,IAAI;AACvD,MAAI,CAAC,qBAAqB,CAAC,eAAe;AACxC,UAAM,IAAI;AAAA,MACR,6BAA6B,eAAe,wBAAwB,iBAAiB,IAAI;AAAA,IAC3F;AAAA,EACF;AACA,QAAM,yBAAyB,WAAW,wBAAwB;AAElE,QAAM,E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M,OAAO,GAAG,CAAC,EAAE,EAAE;AAAA,UACtE,UAAU,CAAC,KAAK;AAAA,QAClB;AAEA,YAAI,CAAC,WAAW;AACd,kBAAQ;AACR;AAAA,QACF;AACA;AAAA,MACF;AAKA,UAAI,eAAe,CAAC,MAAM,UAAU,CAAC,GAAG;AACtC,gBAAQ;AACR;AAAA,MACF;AAAA,IACF;AAIA,QAAI,SAAS,cAAc,SAAS,YAAY;AAC9C,mBAAa,cAAc;AAC3B,qBAAe;AAAA,IACjB;AAAA,EACF;AAEA,SAAO;AACT;AAEA,SAAS,kBAAkB,QAAwB;AACjD,QAAM,YAAY,OAAO,QAAQ,GAAG;AACpC,SAAO,OAAO,MAAM,SAAS;AAC/B;AAEA,SAAS,qBAAqB,QAAoC;AAChE,QAAM,MAAM,IAAI,IAAI,MAAM;AAC1B,SAAO,IAAI,aAAa,IAAI,aAAa,KAAK;AAChD;",
6
+ "names": ["import_operations", "_$deleteDeserializeCloudHsmClusterPrivateEndpointConnections", "_$deleteDeserializePaymentHsmClusterPrivateEndpointConnections", "_$deleteDeserializePaymentHsmClusters", "_updateDeserializePaymentHsmClusters", "_createOrUpdateDeserializePaymentHsmClusters", "_$deleteDeserializeCloudHsmClusters", "_updateDeserializeCloudHsmClusters", "_createOrUpdateDeserializeCloudHsmClusters"]
7
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * An enum to describe Azure Cloud environments.
3
+ * @enum {string}
4
+ */
5
+ export declare enum AzureClouds {
6
+ /** Azure public cloud, which is the default cloud for Azure SDKs. */
7
+ AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
8
+ /** Azure China cloud */
9
+ AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
10
+ /** Azure US government cloud */
11
+ AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
12
+ }
13
+ /** The supported values for cloud setting as a string literal type */
14
+ export type AzureSupportedClouds = `${AzureClouds}`;
15
+ /**
16
+ * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
17
+ * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
18
+ * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
19
+ * @throws {Error} Throws an error if an unknown cloud setting is provided.
20
+ */
21
+ export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
22
+ //# sourceMappingURL=cloudSettingHelpers.d.ts.map
@@ -0,0 +1,52 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var cloudSettingHelpers_exports = {};
19
+ __export(cloudSettingHelpers_exports, {
20
+ AzureClouds: () => AzureClouds,
21
+ getArmEndpoint: () => getArmEndpoint
22
+ });
23
+ module.exports = __toCommonJS(cloudSettingHelpers_exports);
24
+ var AzureClouds = /* @__PURE__ */ ((AzureClouds2) => {
25
+ AzureClouds2["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
26
+ AzureClouds2["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
27
+ AzureClouds2["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
28
+ return AzureClouds2;
29
+ })(AzureClouds || {});
30
+ function getArmEndpoint(cloudSetting) {
31
+ if (cloudSetting === void 0) {
32
+ return void 0;
33
+ }
34
+ const cloudEndpoints = {
35
+ AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
36
+ AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
37
+ AZURE_PUBLIC_CLOUD: "https://management.azure.com/"
38
+ };
39
+ if (cloudSetting in cloudEndpoints) {
40
+ return cloudEndpoints[cloudSetting];
41
+ } else {
42
+ throw new Error(
43
+ `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`
44
+ );
45
+ }
46
+ }
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ AzureClouds,
50
+ getArmEndpoint
51
+ });
52
+ //# sourceMappingURL=cloudSettingHelpers.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/static-helpers/cloudSettingHelpers.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * An enum to describe Azure Cloud environments.\n * @enum {string}\n */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\n/**\n * Gets the Azure Resource Manager endpoint URL for the specified cloud setting.\n * @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.\n * @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.\n * @throws {Error} Throws an error if an unknown cloud setting is provided.\n */\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAK,cAAL,kBAAKA,iBAAL;AAEL,EAAAA,aAAA,wBAAqB;AAErB,EAAAA,aAAA,uBAAoB;AAEpB,EAAAA,aAAA,yBAAsB;AANZ,SAAAA;AAAA,GAAA;AAkBL,SAAS,eAAe,cAAyD;AACtF,MAAI,iBAAiB,QAAW;AAC9B,WAAO;AAAA,EACT;AACA,QAAM,iBAA2D;AAAA,IAC/D,mBAAmB;AAAA,IACnB,qBAAqB;AAAA,IACrB,oBAAoB;AAAA,EACtB;AACA,MAAI,gBAAgB,gBAAgB;AAClC,WAAO,eAAe,YAAY;AAAA,EACpC,OAAO;AACL,UAAM,IAAI;AAAA,MACR,0BAA0B,YAAY;AAAA,IACxC;AAAA,EACF;AACF;",
6
+ "names": ["AzureClouds"]
7
+ }
@@ -1,4 +1,4 @@
1
- import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
1
+ import type { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
2
  /**
3
3
  * Options for the byPage method
4
4
  */
@@ -64,6 +64,8 @@ export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends
64
64
  export interface BuildPagedAsyncIteratorOptions {
65
65
  itemName?: string;
66
66
  nextLinkName?: string;
67
+ nextLinkMethod?: "GET" | "POST";
68
+ apiVersion?: string;
67
69
  }
68
70
  /**
69
71
  * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator