@azure/arm-hardwaresecuritymodules 2.0.0-alpha.20250205.1 → 2.0.0-alpha.20250206.2

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