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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (739) hide show
  1. package/CHANGELOG.md +272 -2
  2. package/LICENSE +3 -3
  3. package/README.md +39 -33
  4. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  5. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js +36 -0
  6. package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  7. package/dist/browser/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  8. package/dist/browser/api/cloudHsmClusterBackupStatus/index.js +4 -0
  9. package/dist/browser/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  10. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  11. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js +42 -0
  12. package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  13. package/dist/browser/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  14. package/dist/browser/api/cloudHsmClusterBackupStatus/options.js +4 -0
  15. package/dist/browser/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  16. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  17. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.js +4 -0
  18. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  19. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  20. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js +109 -0
  21. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  22. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  23. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.js +4 -0
  24. package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  25. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  26. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.js +4 -0
  27. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  28. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  29. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js +36 -0
  30. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  31. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  32. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.js +4 -0
  33. package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  34. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  35. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.js +4 -0
  36. package/dist/browser/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  37. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  38. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js +42 -0
  39. package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  40. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  41. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.js +4 -0
  42. package/dist/browser/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  43. package/dist/browser/api/cloudHsmClusters/index.d.ts +3 -0
  44. package/dist/browser/api/cloudHsmClusters/index.js +4 -0
  45. package/dist/browser/api/cloudHsmClusters/index.js.map +1 -0
  46. package/dist/browser/api/cloudHsmClusters/operations.d.ts +52 -0
  47. package/dist/browser/api/cloudHsmClusters/operations.js +324 -0
  48. package/dist/browser/api/cloudHsmClusters/operations.js.map +1 -0
  49. package/dist/browser/api/cloudHsmClusters/options.d.ts +57 -0
  50. package/dist/browser/api/cloudHsmClusters/options.js +4 -0
  51. package/dist/browser/api/cloudHsmClusters/options.js.map +1 -0
  52. package/dist/browser/api/dedicatedHsm/index.d.ts +3 -0
  53. package/dist/browser/api/dedicatedHsm/index.js +4 -0
  54. package/dist/browser/api/dedicatedHsm/index.js.map +1 -0
  55. package/dist/browser/api/dedicatedHsm/operations.d.ts +40 -0
  56. package/dist/browser/api/dedicatedHsm/operations.js +215 -0
  57. package/dist/browser/api/dedicatedHsm/operations.js.map +1 -0
  58. package/dist/browser/api/dedicatedHsm/options.d.ts +33 -0
  59. package/dist/browser/api/dedicatedHsm/options.js +4 -0
  60. package/dist/browser/api/dedicatedHsm/options.js.map +1 -0
  61. package/dist/browser/api/index.d.ts +2 -0
  62. package/dist/browser/api/index.js +4 -0
  63. package/dist/browser/api/index.js.map +1 -0
  64. package/dist/browser/api/operations/index.d.ts +3 -0
  65. package/dist/browser/api/operations/index.js +4 -0
  66. package/dist/browser/api/operations/index.js.map +1 -0
  67. package/dist/browser/api/operations/operations.d.ts +10 -0
  68. package/dist/browser/api/operations/operations.js +29 -0
  69. package/dist/browser/api/operations/operations.js.map +1 -0
  70. package/dist/browser/api/operations/options.d.ts +5 -0
  71. package/dist/browser/api/operations/options.js +4 -0
  72. package/dist/browser/api/operations/options.js.map +1 -0
  73. package/dist/browser/api/privateEndpointConnections/index.d.ts +3 -0
  74. package/dist/browser/api/privateEndpointConnections/index.js +4 -0
  75. package/dist/browser/api/privateEndpointConnections/index.js.map +1 -0
  76. package/dist/browser/api/privateEndpointConnections/operations.d.ts +10 -0
  77. package/dist/browser/api/privateEndpointConnections/operations.js +36 -0
  78. package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -0
  79. package/dist/browser/api/privateEndpointConnections/options.d.ts +5 -0
  80. package/dist/browser/api/privateEndpointConnections/options.js +4 -0
  81. package/dist/browser/api/privateEndpointConnections/options.js.map +1 -0
  82. package/dist/browser/azureDedicatedHSMResourceProvider.d.ts +36 -0
  83. package/dist/browser/azureDedicatedHSMResourceProvider.js +33 -0
  84. package/dist/browser/azureDedicatedHSMResourceProvider.js.map +1 -0
  85. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  86. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js +12 -0
  87. package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  88. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  89. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js +14 -0
  90. package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  91. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  92. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js +12 -0
  93. package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  94. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  95. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js +12 -0
  96. package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  97. package/dist/browser/classic/cloudHsmClusters/index.d.ts +35 -0
  98. package/dist/browser/classic/cloudHsmClusters/index.js +21 -0
  99. package/dist/browser/classic/cloudHsmClusters/index.js.map +1 -0
  100. package/dist/browser/classic/dedicatedHsm/index.d.ts +29 -0
  101. package/dist/browser/classic/dedicatedHsm/index.js +18 -0
  102. package/dist/browser/classic/dedicatedHsm/index.js.map +1 -0
  103. package/dist/browser/classic/index.d.ts +9 -0
  104. package/dist/browser/classic/index.js +4 -0
  105. package/dist/browser/classic/index.js.map +1 -0
  106. package/dist/browser/classic/operations/index.d.ts +11 -0
  107. package/dist/browser/classic/operations/index.js +12 -0
  108. package/dist/browser/classic/operations/index.js.map +1 -0
  109. package/dist/browser/classic/privateEndpointConnections/index.d.ts +11 -0
  110. package/dist/browser/classic/privateEndpointConnections/index.js +12 -0
  111. package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -0
  112. package/dist/browser/index.d.ts +16 -0
  113. package/dist/browser/index.js +6 -0
  114. package/dist/browser/index.js.map +1 -0
  115. package/dist/browser/logger.d.ts +2 -0
  116. package/dist/browser/logger.js +5 -0
  117. package/dist/browser/logger.js.map +1 -0
  118. package/dist/browser/models/index.d.ts +2 -0
  119. package/dist/browser/models/index.js +4 -0
  120. package/dist/browser/models/index.js.map +1 -0
  121. package/dist/browser/models/models.d.ts +751 -0
  122. package/dist/browser/models/models.js +747 -0
  123. package/dist/browser/models/models.js.map +1 -0
  124. package/dist/browser/package.json +3 -0
  125. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  126. package/dist/browser/restorePollerHelpers.js +133 -0
  127. package/dist/browser/restorePollerHelpers.js.map +1 -0
  128. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  129. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  130. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  131. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  132. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  133. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  134. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  135. package/dist/browser/static-helpers/urlTemplate.js +169 -0
  136. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  137. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  138. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js +39 -0
  139. package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  140. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  141. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js +8 -0
  142. package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  143. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  144. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js +47 -0
  145. package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  146. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  147. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js +5 -0
  148. package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  149. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  150. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js +10 -0
  151. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  152. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  153. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js +120 -0
  154. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  155. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  156. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js +5 -0
  157. package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  158. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  159. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js +8 -0
  160. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  161. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  162. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js +41 -0
  163. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  164. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  165. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js +5 -0
  166. package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  167. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  168. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js +8 -0
  169. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  170. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  171. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js +47 -0
  172. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  173. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  174. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js +5 -0
  175. package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  176. package/dist/commonjs/api/cloudHsmClusters/index.d.ts +3 -0
  177. package/dist/commonjs/api/cloudHsmClusters/index.js +17 -0
  178. package/dist/commonjs/api/cloudHsmClusters/index.js.map +1 -0
  179. package/dist/commonjs/api/cloudHsmClusters/operations.d.ts +52 -0
  180. package/dist/commonjs/api/cloudHsmClusters/operations.js +356 -0
  181. package/dist/commonjs/api/cloudHsmClusters/operations.js.map +1 -0
  182. package/dist/commonjs/api/cloudHsmClusters/options.d.ts +57 -0
  183. package/dist/commonjs/api/cloudHsmClusters/options.js +5 -0
  184. package/dist/commonjs/api/cloudHsmClusters/options.js.map +1 -0
  185. package/dist/commonjs/api/dedicatedHsm/index.d.ts +3 -0
  186. package/dist/commonjs/api/dedicatedHsm/index.js +14 -0
  187. package/dist/commonjs/api/dedicatedHsm/index.js.map +1 -0
  188. package/dist/commonjs/api/dedicatedHsm/operations.d.ts +40 -0
  189. package/dist/commonjs/api/dedicatedHsm/operations.js +238 -0
  190. package/dist/commonjs/api/dedicatedHsm/operations.js.map +1 -0
  191. package/dist/commonjs/api/dedicatedHsm/options.d.ts +33 -0
  192. package/dist/commonjs/api/dedicatedHsm/options.js +5 -0
  193. package/dist/commonjs/api/dedicatedHsm/options.js.map +1 -0
  194. package/dist/commonjs/api/index.d.ts +2 -0
  195. package/dist/commonjs/api/index.js +8 -0
  196. package/dist/commonjs/api/index.js.map +1 -0
  197. package/dist/commonjs/api/operations/index.d.ts +3 -0
  198. package/dist/commonjs/api/operations/index.js +8 -0
  199. package/dist/commonjs/api/operations/index.js.map +1 -0
  200. package/dist/commonjs/api/operations/operations.d.ts +10 -0
  201. package/dist/commonjs/api/operations/operations.js +34 -0
  202. package/dist/commonjs/api/operations/operations.js.map +1 -0
  203. package/dist/commonjs/api/operations/options.d.ts +5 -0
  204. package/dist/commonjs/api/operations/options.js +5 -0
  205. package/dist/commonjs/api/operations/options.js.map +1 -0
  206. package/dist/commonjs/api/privateEndpointConnections/index.d.ts +3 -0
  207. package/dist/commonjs/api/privateEndpointConnections/index.js +8 -0
  208. package/dist/commonjs/api/privateEndpointConnections/index.js.map +1 -0
  209. package/dist/commonjs/api/privateEndpointConnections/operations.d.ts +10 -0
  210. package/dist/commonjs/api/privateEndpointConnections/operations.js +41 -0
  211. package/dist/commonjs/api/privateEndpointConnections/operations.js.map +1 -0
  212. package/dist/commonjs/api/privateEndpointConnections/options.d.ts +5 -0
  213. package/dist/commonjs/api/privateEndpointConnections/options.js +5 -0
  214. package/dist/commonjs/api/privateEndpointConnections/options.js.map +1 -0
  215. package/dist/commonjs/azureDedicatedHSMResourceProvider.d.ts +36 -0
  216. package/dist/commonjs/azureDedicatedHSMResourceProvider.js +37 -0
  217. package/dist/commonjs/azureDedicatedHSMResourceProvider.js.map +1 -0
  218. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  219. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js +15 -0
  220. package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  221. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  222. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js +17 -0
  223. package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  224. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  225. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js +15 -0
  226. package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  227. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  228. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js +15 -0
  229. package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  230. package/dist/commonjs/classic/cloudHsmClusters/index.d.ts +35 -0
  231. package/dist/commonjs/classic/cloudHsmClusters/index.js +24 -0
  232. package/dist/commonjs/classic/cloudHsmClusters/index.js.map +1 -0
  233. package/dist/commonjs/classic/dedicatedHsm/index.d.ts +29 -0
  234. package/dist/commonjs/classic/dedicatedHsm/index.js +21 -0
  235. package/dist/commonjs/classic/dedicatedHsm/index.js.map +1 -0
  236. package/dist/commonjs/classic/index.d.ts +9 -0
  237. package/dist/commonjs/classic/index.js +5 -0
  238. package/dist/commonjs/classic/index.js.map +1 -0
  239. package/dist/commonjs/classic/operations/index.d.ts +11 -0
  240. package/dist/commonjs/classic/operations/index.js +15 -0
  241. package/dist/commonjs/classic/operations/index.js.map +1 -0
  242. package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +11 -0
  243. package/dist/commonjs/classic/privateEndpointConnections/index.js +15 -0
  244. package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -0
  245. package/dist/commonjs/index.d.ts +16 -0
  246. package/dist/commonjs/index.js +26 -0
  247. package/dist/commonjs/index.js.map +1 -0
  248. package/dist/commonjs/logger.d.ts +2 -0
  249. package/dist/commonjs/logger.js +8 -0
  250. package/dist/commonjs/logger.js.map +1 -0
  251. package/dist/commonjs/models/index.d.ts +2 -0
  252. package/dist/commonjs/models/index.js +22 -0
  253. package/dist/commonjs/models/index.js.map +1 -0
  254. package/dist/commonjs/models/models.d.ts +751 -0
  255. package/dist/commonjs/models/models.js +831 -0
  256. package/dist/commonjs/models/models.js.map +1 -0
  257. package/dist/commonjs/package.json +3 -0
  258. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  259. package/dist/commonjs/restorePollerHelpers.js +136 -0
  260. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  261. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  262. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  263. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  264. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  265. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  266. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  267. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  268. package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
  269. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  270. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  271. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  272. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js +36 -0
  273. package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  274. package/dist/esm/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  275. package/dist/esm/api/cloudHsmClusterBackupStatus/index.js +4 -0
  276. package/dist/esm/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  277. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  278. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js +42 -0
  279. package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  280. package/dist/esm/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  281. package/dist/esm/api/cloudHsmClusterBackupStatus/options.js +4 -0
  282. package/dist/esm/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  283. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  284. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.js +4 -0
  285. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  286. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  287. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js +109 -0
  288. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  289. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  290. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.js +4 -0
  291. package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  292. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  293. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.js +4 -0
  294. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  295. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  296. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js +36 -0
  297. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  298. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  299. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.js +4 -0
  300. package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  301. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  302. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.js +4 -0
  303. package/dist/esm/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  304. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  305. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js +42 -0
  306. package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  307. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  308. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.js +4 -0
  309. package/dist/esm/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  310. package/dist/esm/api/cloudHsmClusters/index.d.ts +3 -0
  311. package/dist/esm/api/cloudHsmClusters/index.js +4 -0
  312. package/dist/esm/api/cloudHsmClusters/index.js.map +1 -0
  313. package/dist/esm/api/cloudHsmClusters/operations.d.ts +52 -0
  314. package/dist/esm/api/cloudHsmClusters/operations.js +324 -0
  315. package/dist/esm/api/cloudHsmClusters/operations.js.map +1 -0
  316. package/dist/esm/api/cloudHsmClusters/options.d.ts +57 -0
  317. package/dist/esm/api/cloudHsmClusters/options.js +4 -0
  318. package/dist/esm/api/cloudHsmClusters/options.js.map +1 -0
  319. package/dist/esm/api/dedicatedHsm/index.d.ts +3 -0
  320. package/dist/esm/api/dedicatedHsm/index.js +4 -0
  321. package/dist/esm/api/dedicatedHsm/index.js.map +1 -0
  322. package/dist/esm/api/dedicatedHsm/operations.d.ts +40 -0
  323. package/dist/esm/api/dedicatedHsm/operations.js +215 -0
  324. package/dist/esm/api/dedicatedHsm/operations.js.map +1 -0
  325. package/dist/esm/api/dedicatedHsm/options.d.ts +33 -0
  326. package/dist/esm/api/dedicatedHsm/options.js +4 -0
  327. package/dist/esm/api/dedicatedHsm/options.js.map +1 -0
  328. package/dist/esm/api/index.d.ts +2 -0
  329. package/dist/esm/api/index.js +4 -0
  330. package/dist/esm/api/index.js.map +1 -0
  331. package/dist/esm/api/operations/index.d.ts +3 -0
  332. package/dist/esm/api/operations/index.js +4 -0
  333. package/dist/esm/api/operations/index.js.map +1 -0
  334. package/dist/esm/api/operations/operations.d.ts +10 -0
  335. package/dist/esm/api/operations/operations.js +29 -0
  336. package/dist/esm/api/operations/operations.js.map +1 -0
  337. package/dist/esm/api/operations/options.d.ts +5 -0
  338. package/dist/esm/api/operations/options.js +4 -0
  339. package/dist/esm/api/operations/options.js.map +1 -0
  340. package/dist/esm/api/privateEndpointConnections/index.d.ts +3 -0
  341. package/dist/esm/api/privateEndpointConnections/index.js +4 -0
  342. package/dist/esm/api/privateEndpointConnections/index.js.map +1 -0
  343. package/dist/esm/api/privateEndpointConnections/operations.d.ts +10 -0
  344. package/dist/esm/api/privateEndpointConnections/operations.js +36 -0
  345. package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -0
  346. package/dist/esm/api/privateEndpointConnections/options.d.ts +5 -0
  347. package/dist/esm/api/privateEndpointConnections/options.js +4 -0
  348. package/dist/esm/api/privateEndpointConnections/options.js.map +1 -0
  349. package/dist/esm/azureDedicatedHSMResourceProvider.d.ts +36 -0
  350. package/dist/esm/azureDedicatedHSMResourceProvider.js +33 -0
  351. package/dist/esm/azureDedicatedHSMResourceProvider.js.map +1 -0
  352. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  353. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js +12 -0
  354. package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  355. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  356. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js +14 -0
  357. package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  358. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  359. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js +12 -0
  360. package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  361. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  362. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js +12 -0
  363. package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  364. package/dist/esm/classic/cloudHsmClusters/index.d.ts +35 -0
  365. package/dist/esm/classic/cloudHsmClusters/index.js +21 -0
  366. package/dist/esm/classic/cloudHsmClusters/index.js.map +1 -0
  367. package/dist/esm/classic/dedicatedHsm/index.d.ts +29 -0
  368. package/dist/esm/classic/dedicatedHsm/index.js +18 -0
  369. package/dist/esm/classic/dedicatedHsm/index.js.map +1 -0
  370. package/dist/esm/classic/index.d.ts +9 -0
  371. package/dist/esm/classic/index.js +4 -0
  372. package/dist/esm/classic/index.js.map +1 -0
  373. package/dist/esm/classic/operations/index.d.ts +11 -0
  374. package/dist/esm/classic/operations/index.js +12 -0
  375. package/dist/esm/classic/operations/index.js.map +1 -0
  376. package/dist/esm/classic/privateEndpointConnections/index.d.ts +11 -0
  377. package/dist/esm/classic/privateEndpointConnections/index.js +12 -0
  378. package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -0
  379. package/dist/esm/index.d.ts +16 -0
  380. package/dist/esm/index.js +6 -0
  381. package/dist/esm/index.js.map +1 -0
  382. package/dist/esm/logger.d.ts +2 -0
  383. package/dist/esm/logger.js +5 -0
  384. package/dist/esm/logger.js.map +1 -0
  385. package/dist/esm/models/index.d.ts +2 -0
  386. package/dist/esm/models/index.js +4 -0
  387. package/dist/esm/models/index.js.map +1 -0
  388. package/dist/esm/models/models.d.ts +751 -0
  389. package/dist/esm/models/models.js +747 -0
  390. package/dist/esm/models/models.js.map +1 -0
  391. package/dist/esm/package.json +3 -0
  392. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  393. package/dist/esm/restorePollerHelpers.js +133 -0
  394. package/dist/esm/restorePollerHelpers.js.map +1 -0
  395. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  396. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  397. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  398. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  399. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  400. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  401. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  402. package/dist/esm/static-helpers/urlTemplate.js +169 -0
  403. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  404. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.d.ts +19 -0
  405. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js +36 -0
  406. package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js.map +1 -0
  407. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.d.ts +3 -0
  408. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js +4 -0
  409. package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js.map +1 -0
  410. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.d.ts +9 -0
  411. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js +42 -0
  412. package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js.map +1 -0
  413. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.d.ts +7 -0
  414. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.js +4 -0
  415. package/dist/react-native/api/cloudHsmClusterBackupStatus/options.js.map +1 -0
  416. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
  417. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js +4 -0
  418. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  419. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
  420. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js +109 -0
  421. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
  422. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +13 -0
  423. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.js +4 -0
  424. package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -0
  425. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.d.ts +3 -0
  426. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js +4 -0
  427. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  428. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +10 -0
  429. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js +36 -0
  430. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -0
  431. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.d.ts +5 -0
  432. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.js +4 -0
  433. package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -0
  434. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.d.ts +3 -0
  435. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js +4 -0
  436. package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  437. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.d.ts +9 -0
  438. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js +42 -0
  439. package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -0
  440. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.d.ts +7 -0
  441. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.js +4 -0
  442. package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.js.map +1 -0
  443. package/dist/react-native/api/cloudHsmClusters/index.d.ts +3 -0
  444. package/dist/react-native/api/cloudHsmClusters/index.js +4 -0
  445. package/dist/react-native/api/cloudHsmClusters/index.js.map +1 -0
  446. package/dist/react-native/api/cloudHsmClusters/operations.d.ts +52 -0
  447. package/dist/react-native/api/cloudHsmClusters/operations.js +324 -0
  448. package/dist/react-native/api/cloudHsmClusters/operations.js.map +1 -0
  449. package/dist/react-native/api/cloudHsmClusters/options.d.ts +57 -0
  450. package/dist/react-native/api/cloudHsmClusters/options.js +4 -0
  451. package/dist/react-native/api/cloudHsmClusters/options.js.map +1 -0
  452. package/dist/react-native/api/dedicatedHsm/index.d.ts +3 -0
  453. package/dist/react-native/api/dedicatedHsm/index.js +4 -0
  454. package/dist/react-native/api/dedicatedHsm/index.js.map +1 -0
  455. package/dist/react-native/api/dedicatedHsm/operations.d.ts +40 -0
  456. package/dist/react-native/api/dedicatedHsm/operations.js +215 -0
  457. package/dist/react-native/api/dedicatedHsm/operations.js.map +1 -0
  458. package/dist/react-native/api/dedicatedHsm/options.d.ts +33 -0
  459. package/dist/react-native/api/dedicatedHsm/options.js +4 -0
  460. package/dist/react-native/api/dedicatedHsm/options.js.map +1 -0
  461. package/dist/react-native/api/index.d.ts +2 -0
  462. package/dist/react-native/api/index.js +4 -0
  463. package/dist/react-native/api/index.js.map +1 -0
  464. package/dist/react-native/api/operations/index.d.ts +3 -0
  465. package/dist/react-native/api/operations/index.js +4 -0
  466. package/dist/react-native/api/operations/index.js.map +1 -0
  467. package/dist/react-native/api/operations/operations.d.ts +10 -0
  468. package/dist/react-native/api/operations/operations.js +29 -0
  469. package/dist/react-native/api/operations/operations.js.map +1 -0
  470. package/dist/react-native/api/operations/options.d.ts +5 -0
  471. package/dist/react-native/api/operations/options.js +4 -0
  472. package/dist/react-native/api/operations/options.js.map +1 -0
  473. package/dist/react-native/api/privateEndpointConnections/index.d.ts +3 -0
  474. package/dist/react-native/api/privateEndpointConnections/index.js +4 -0
  475. package/dist/react-native/api/privateEndpointConnections/index.js.map +1 -0
  476. package/dist/react-native/api/privateEndpointConnections/operations.d.ts +10 -0
  477. package/dist/react-native/api/privateEndpointConnections/operations.js +36 -0
  478. package/dist/react-native/api/privateEndpointConnections/operations.js.map +1 -0
  479. package/dist/react-native/api/privateEndpointConnections/options.d.ts +5 -0
  480. package/dist/react-native/api/privateEndpointConnections/options.js +4 -0
  481. package/dist/react-native/api/privateEndpointConnections/options.js.map +1 -0
  482. package/dist/react-native/azureDedicatedHSMResourceProvider.d.ts +36 -0
  483. package/dist/react-native/azureDedicatedHSMResourceProvider.js +33 -0
  484. package/dist/react-native/azureDedicatedHSMResourceProvider.js.map +1 -0
  485. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.d.ts +10 -0
  486. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js +12 -0
  487. package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js.map +1 -0
  488. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +20 -0
  489. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js +14 -0
  490. package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -0
  491. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +11 -0
  492. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js +12 -0
  493. package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -0
  494. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.d.ts +10 -0
  495. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js +12 -0
  496. package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -0
  497. package/dist/react-native/classic/cloudHsmClusters/index.d.ts +35 -0
  498. package/dist/react-native/classic/cloudHsmClusters/index.js +21 -0
  499. package/dist/react-native/classic/cloudHsmClusters/index.js.map +1 -0
  500. package/dist/react-native/classic/dedicatedHsm/index.d.ts +29 -0
  501. package/dist/react-native/classic/dedicatedHsm/index.js +18 -0
  502. package/dist/react-native/classic/dedicatedHsm/index.js.map +1 -0
  503. package/dist/react-native/classic/index.d.ts +9 -0
  504. package/dist/react-native/classic/index.js +4 -0
  505. package/dist/react-native/classic/index.js.map +1 -0
  506. package/dist/react-native/classic/operations/index.d.ts +11 -0
  507. package/dist/react-native/classic/operations/index.js +12 -0
  508. package/dist/react-native/classic/operations/index.js.map +1 -0
  509. package/dist/react-native/classic/privateEndpointConnections/index.d.ts +11 -0
  510. package/dist/react-native/classic/privateEndpointConnections/index.js +12 -0
  511. package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -0
  512. package/dist/react-native/index.d.ts +16 -0
  513. package/dist/react-native/index.js +6 -0
  514. package/dist/react-native/index.js.map +1 -0
  515. package/dist/react-native/logger.d.ts +2 -0
  516. package/dist/react-native/logger.js +5 -0
  517. package/dist/react-native/logger.js.map +1 -0
  518. package/dist/react-native/models/index.d.ts +2 -0
  519. package/dist/react-native/models/index.js +4 -0
  520. package/dist/react-native/models/index.js.map +1 -0
  521. package/dist/react-native/models/models.d.ts +751 -0
  522. package/dist/react-native/models/models.js +747 -0
  523. package/dist/react-native/models/models.js.map +1 -0
  524. package/dist/react-native/package.json +3 -0
  525. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  526. package/dist/react-native/restorePollerHelpers.js +133 -0
  527. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  528. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  529. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  530. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  531. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  532. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  533. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  534. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  535. package/dist/react-native/static-helpers/urlTemplate.js +169 -0
  536. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  537. package/package.json +298 -89
  538. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterBackupStatus.api.md +22 -0
  539. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateEndpointConnections.api.md +36 -0
  540. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateLinkResources.api.md +19 -0
  541. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterRestoreStatus.api.md +22 -0
  542. package/review/arm-hardwaresecuritymodules-api-cloudHsmClusters.api.md +96 -0
  543. package/review/arm-hardwaresecuritymodules-api-dedicatedHsm.api.md +68 -0
  544. package/review/arm-hardwaresecuritymodules-api-operations.api.md +19 -0
  545. package/review/arm-hardwaresecuritymodules-api-privateEndpointConnections.api.md +19 -0
  546. package/review/arm-hardwaresecuritymodules-api.api.md +27 -0
  547. package/review/arm-hardwaresecuritymodules-models.api.md +471 -0
  548. package/review/arm-hardwaresecuritymodules.api.md +297 -316
  549. package/dist/index.js +0 -3458
  550. package/dist/index.js.map +0 -1
  551. package/dist/index.min.js +0 -1
  552. package/dist/index.min.js.map +0 -1
  553. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts +0 -2
  554. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts.map +0 -1
  555. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +0 -46
  556. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js.map +0 -1
  557. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts +0 -2
  558. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  559. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js +0 -40
  560. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js.map +0 -1
  561. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts +0 -2
  562. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts.map +0 -1
  563. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js +0 -40
  564. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js.map +0 -1
  565. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts +0 -2
  566. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts.map +0 -1
  567. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +0 -39
  568. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js.map +0 -1
  569. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts +0 -2
  570. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts.map +0 -1
  571. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js +0 -53
  572. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js.map +0 -1
  573. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts +0 -2
  574. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts.map +0 -1
  575. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js +0 -39
  576. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js.map +0 -1
  577. package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts +0 -2
  578. package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts.map +0 -1
  579. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js +0 -39
  580. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js.map +0 -1
  581. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts +0 -2
  582. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts.map +0 -1
  583. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js +0 -54
  584. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js.map +0 -1
  585. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts +0 -2
  586. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts.map +0 -1
  587. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js +0 -53
  588. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js.map +0 -1
  589. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts +0 -2
  590. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts.map +0 -1
  591. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js +0 -47
  592. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js.map +0 -1
  593. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.d.ts +0 -2
  594. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.d.ts.map +0 -1
  595. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js +0 -119
  596. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js.map +0 -1
  597. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.d.ts +0 -2
  598. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.d.ts.map +0 -1
  599. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js +0 -39
  600. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js.map +0 -1
  601. package/dist-esm/samples-dev/dedicatedHsmGetSample.d.ts +0 -2
  602. package/dist-esm/samples-dev/dedicatedHsmGetSample.d.ts.map +0 -1
  603. package/dist-esm/samples-dev/dedicatedHsmGetSample.js +0 -77
  604. package/dist-esm/samples-dev/dedicatedHsmGetSample.js.map +0 -1
  605. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.d.ts +0 -2
  606. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.d.ts.map +0 -1
  607. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js +0 -88
  608. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js.map +0 -1
  609. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.d.ts +0 -2
  610. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.d.ts.map +0 -1
  611. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js +0 -86
  612. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js.map +0 -1
  613. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts +0 -2
  614. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts.map +0 -1
  615. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +0 -55
  616. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map +0 -1
  617. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.d.ts +0 -2
  618. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.d.ts.map +0 -1
  619. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js +0 -62
  620. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js.map +0 -1
  621. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  622. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  623. package/dist-esm/samples-dev/operationsListSample.js +0 -86
  624. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  625. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts +0 -2
  626. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts.map +0 -1
  627. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js +0 -55
  628. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js.map +0 -1
  629. package/dist-esm/src/azureHSMResourceProvider.d.ts +0 -22
  630. package/dist-esm/src/azureHSMResourceProvider.d.ts.map +0 -1
  631. package/dist-esm/src/azureHSMResourceProvider.js +0 -75
  632. package/dist-esm/src/azureHSMResourceProvider.js.map +0 -1
  633. package/dist-esm/src/index.d.ts +0 -6
  634. package/dist-esm/src/index.d.ts.map +0 -1
  635. package/dist-esm/src/index.js +0 -13
  636. package/dist-esm/src/index.js.map +0 -1
  637. package/dist-esm/src/lroImpl.d.ts +0 -11
  638. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  639. package/dist-esm/src/lroImpl.js +0 -21
  640. package/dist-esm/src/lroImpl.js.map +0 -1
  641. package/dist-esm/src/models/index.d.ts +0 -902
  642. package/dist-esm/src/models/index.d.ts.map +0 -1
  643. package/dist-esm/src/models/index.js +0 -128
  644. package/dist-esm/src/models/index.js.map +0 -1
  645. package/dist-esm/src/models/mappers.d.ts +0 -47
  646. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  647. package/dist-esm/src/models/mappers.js +0 -1219
  648. package/dist-esm/src/models/mappers.js.map +0 -1
  649. package/dist-esm/src/models/parameters.d.ts +0 -36
  650. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  651. package/dist-esm/src/models/parameters.js +0 -256
  652. package/dist-esm/src/models/parameters.js.map +0 -1
  653. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts +0 -55
  654. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts.map +0 -1
  655. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js +0 -193
  656. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js.map +0 -1
  657. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts +0 -21
  658. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts.map +0 -1
  659. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js +0 -54
  660. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js.map +0 -1
  661. package/dist-esm/src/operations/cloudHsmClusters.d.ts +0 -114
  662. package/dist-esm/src/operations/cloudHsmClusters.d.ts.map +0 -1
  663. package/dist-esm/src/operations/cloudHsmClusters.js +0 -580
  664. package/dist-esm/src/operations/cloudHsmClusters.js.map +0 -1
  665. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts +0 -134
  666. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts.map +0 -1
  667. package/dist-esm/src/operations/dedicatedHsmOperations.js +0 -673
  668. package/dist-esm/src/operations/dedicatedHsmOperations.js.map +0 -1
  669. package/dist-esm/src/operations/index.d.ts +0 -7
  670. package/dist-esm/src/operations/index.d.ts.map +0 -1
  671. package/dist-esm/src/operations/index.js +0 -14
  672. package/dist-esm/src/operations/index.js.map +0 -1
  673. package/dist-esm/src/operations/operations.d.ts +0 -26
  674. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  675. package/dist-esm/src/operations/operations.js +0 -96
  676. package/dist-esm/src/operations/operations.js.map +0 -1
  677. package/dist-esm/src/operations/privateEndpointConnections.d.ts +0 -43
  678. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  679. package/dist-esm/src/operations/privateEndpointConnections.js +0 -155
  680. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  681. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts +0 -47
  682. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts.map +0 -1
  683. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js +0 -9
  684. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js.map +0 -1
  685. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts +0 -13
  686. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts.map +0 -1
  687. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js +0 -9
  688. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js.map +0 -1
  689. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts +0 -77
  690. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts.map +0 -1
  691. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js +0 -9
  692. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js.map +0 -1
  693. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts +0 -78
  694. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts.map +0 -1
  695. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.js +0 -9
  696. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.js.map +0 -1
  697. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
  698. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  699. package/dist-esm/src/operationsInterfaces/index.js +0 -14
  700. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  701. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  702. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  703. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  704. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  705. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +0 -15
  706. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  707. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +0 -9
  708. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  709. package/dist-esm/src/pagingHelper.d.ts +0 -13
  710. package/dist-esm/src/pagingHelper.d.ts.map +0 -1
  711. package/dist-esm/src/pagingHelper.js +0 -32
  712. package/dist-esm/src/pagingHelper.js.map +0 -1
  713. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts +0 -4
  714. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts.map +0 -1
  715. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js +0 -73
  716. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js.map +0 -1
  717. package/src/azureHSMResourceProvider.ts +0 -132
  718. package/src/index.ts +0 -13
  719. package/src/lroImpl.ts +0 -42
  720. package/src/models/index.ts +0 -1017
  721. package/src/models/mappers.ts +0 -1306
  722. package/src/models/parameters.ts +0 -301
  723. package/src/operations/cloudHsmClusterPrivateEndpointConnections.ts +0 -263
  724. package/src/operations/cloudHsmClusterPrivateLinkResources.ts +0 -74
  725. package/src/operations/cloudHsmClusters.ts +0 -750
  726. package/src/operations/dedicatedHsmOperations.ts +0 -879
  727. package/src/operations/index.ts +0 -14
  728. package/src/operations/operations.ts +0 -103
  729. package/src/operations/privateEndpointConnections.ts +0 -208
  730. package/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts +0 -83
  731. package/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts +0 -28
  732. package/src/operationsInterfaces/cloudHsmClusters.ts +0 -142
  733. package/src/operationsInterfaces/dedicatedHsmOperations.ts +0 -149
  734. package/src/operationsInterfaces/index.ts +0 -14
  735. package/src/operationsInterfaces/operations.ts +0 -22
  736. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -31
  737. package/src/pagingHelper.ts +0 -39
  738. package/tsconfig.json +0 -33
  739. package/types/arm-hardwaresecuritymodules.d.ts +0 -1274
package/dist/index.js DELETED
@@ -1,3458 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var coreClient = require('@azure/core-client');
6
- var coreRestPipeline = require('@azure/core-rest-pipeline');
7
- var tslib = require('tslib');
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 === void 0 ? void 0 : _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 !== void 0 ? _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 ProvisioningState} that the service accepts. */
70
- exports.KnownProvisioningState = void 0;
71
- (function (KnownProvisioningState) {
72
- /** Provisioning */
73
- KnownProvisioningState["Provisioning"] = "Provisioning";
74
- /** Succeeded */
75
- KnownProvisioningState["Succeeded"] = "Succeeded";
76
- /** Failed */
77
- KnownProvisioningState["Failed"] = "Failed";
78
- /** Deleting */
79
- KnownProvisioningState["Deleting"] = "Deleting";
80
- /** Canceled */
81
- KnownProvisioningState["Canceled"] = "Canceled";
82
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
83
- /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
84
- exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
85
- (function (KnownPrivateEndpointServiceConnectionStatus) {
86
- /** Pending */
87
- KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
88
- /** Approved */
89
- KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
90
- /** Rejected */
91
- KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
92
- })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
93
- /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
94
- exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
95
- (function (KnownPrivateEndpointConnectionProvisioningState) {
96
- /** Succeeded */
97
- KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
98
- /** Creating */
99
- KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
100
- /** Deleting */
101
- KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
102
- /** Failed */
103
- KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
104
- /** Updating */
105
- KnownPrivateEndpointConnectionProvisioningState["Updating"] = "Updating";
106
- /** InternalError */
107
- KnownPrivateEndpointConnectionProvisioningState["InternalError"] = "InternalError";
108
- /** Canceled */
109
- KnownPrivateEndpointConnectionProvisioningState["Canceled"] = "Canceled";
110
- })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
111
- /** Known values of {@link CreatedByType} that the service accepts. */
112
- exports.KnownCreatedByType = void 0;
113
- (function (KnownCreatedByType) {
114
- /** User */
115
- KnownCreatedByType["User"] = "User";
116
- /** Application */
117
- KnownCreatedByType["Application"] = "Application";
118
- /** ManagedIdentity */
119
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
120
- /** Key */
121
- KnownCreatedByType["Key"] = "Key";
122
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
123
- /** Known values of {@link CloudHsmClusterSkuFamily} that the service accepts. */
124
- exports.KnownCloudHsmClusterSkuFamily = void 0;
125
- (function (KnownCloudHsmClusterSkuFamily) {
126
- /** B */
127
- KnownCloudHsmClusterSkuFamily["B"] = "B";
128
- })(exports.KnownCloudHsmClusterSkuFamily || (exports.KnownCloudHsmClusterSkuFamily = {}));
129
- /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
130
- exports.KnownManagedServiceIdentityType = void 0;
131
- (function (KnownManagedServiceIdentityType) {
132
- /** None */
133
- KnownManagedServiceIdentityType["None"] = "None";
134
- /** SystemAssigned */
135
- KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
136
- /** UserAssigned */
137
- KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
138
- /** SystemAssignedUserAssigned */
139
- KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
140
- })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
141
- /** Known values of {@link IdentityType} that the service accepts. */
142
- exports.KnownIdentityType = void 0;
143
- (function (KnownIdentityType) {
144
- /** User */
145
- KnownIdentityType["User"] = "User";
146
- /** Application */
147
- KnownIdentityType["Application"] = "Application";
148
- /** ManagedIdentity */
149
- KnownIdentityType["ManagedIdentity"] = "ManagedIdentity";
150
- /** Key */
151
- KnownIdentityType["Key"] = "Key";
152
- })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
153
- /** Known values of {@link JsonWebKeyType} that the service accepts. */
154
- exports.KnownJsonWebKeyType = void 0;
155
- (function (KnownJsonWebKeyType) {
156
- /** The dedicated HSM has been full provisioned. */
157
- KnownJsonWebKeyType["Succeeded"] = "Succeeded";
158
- /** The dedicated HSM is currently being provisioned. */
159
- KnownJsonWebKeyType["Provisioning"] = "Provisioning";
160
- /** A device is currently being allocated for the dedicated HSM resource. */
161
- KnownJsonWebKeyType["Allocating"] = "Allocating";
162
- /** The dedicated HSM is being connected to the virtual network. */
163
- KnownJsonWebKeyType["Connecting"] = "Connecting";
164
- /** Provisioning of the dedicated HSM has failed. */
165
- KnownJsonWebKeyType["Failed"] = "Failed";
166
- /** Validating the subscription has sufficient quota to allocate a dedicated HSM device. */
167
- KnownJsonWebKeyType["CheckingQuota"] = "CheckingQuota";
168
- /** The dedicated HSM is currently being deleted. */
169
- KnownJsonWebKeyType["Deleting"] = "Deleting";
170
- })(exports.KnownJsonWebKeyType || (exports.KnownJsonWebKeyType = {}));
171
- /** Known values of {@link SkuName} that the service accepts. */
172
- exports.KnownSkuName = void 0;
173
- (function (KnownSkuName) {
174
- /** The dedicated HSM is a Safenet Luna Network HSM A790 device. */
175
- KnownSkuName["SafeNetLunaNetworkHSMA790"] = "SafeNet Luna Network HSM A790";
176
- /** 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. */
177
- KnownSkuName["PayShield10KLMK1CPS60"] = "payShield10K_LMK1_CPS60";
178
- /** 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. */
179
- KnownSkuName["PayShield10KLMK1CPS250"] = "payShield10K_LMK1_CPS250";
180
- /** 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. */
181
- KnownSkuName["PayShield10KLMK1CPS2500"] = "payShield10K_LMK1_CPS2500";
182
- /** 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. */
183
- KnownSkuName["PayShield10KLMK2CPS60"] = "payShield10K_LMK2_CPS60";
184
- /** 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. */
185
- KnownSkuName["PayShield10KLMK2CPS250"] = "payShield10K_LMK2_CPS250";
186
- /** 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. */
187
- KnownSkuName["PayShield10KLMK2CPS2500"] = "payShield10K_LMK2_CPS2500";
188
- })(exports.KnownSkuName || (exports.KnownSkuName = {}));
189
-
190
- /*
191
- * Copyright (c) Microsoft Corporation.
192
- * Licensed under the MIT License.
193
- *
194
- * Code generated by Microsoft (R) AutoRest Code Generator.
195
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
196
- */
197
- const CloudHsmClusterSecurityDomainProperties = {
198
- type: {
199
- name: "Composite",
200
- className: "CloudHsmClusterSecurityDomainProperties",
201
- modelProperties: {
202
- fipsState: {
203
- serializedName: "fipsState",
204
- type: {
205
- name: "Number"
206
- }
207
- },
208
- activationStatus: {
209
- serializedName: "activationStatus",
210
- type: {
211
- name: "String"
212
- }
213
- }
214
- }
215
- }
216
- };
217
- const CloudHsmProperties = {
218
- type: {
219
- name: "Composite",
220
- className: "CloudHsmProperties",
221
- modelProperties: {
222
- fqdn: {
223
- serializedName: "fqdn",
224
- type: {
225
- name: "String"
226
- }
227
- },
228
- state: {
229
- serializedName: "state",
230
- type: {
231
- name: "String"
232
- }
233
- },
234
- stateMessage: {
235
- serializedName: "stateMessage",
236
- type: {
237
- name: "String"
238
- }
239
- }
240
- }
241
- }
242
- };
243
- const PrivateEndpoint = {
244
- type: {
245
- name: "Composite",
246
- className: "PrivateEndpoint",
247
- modelProperties: {
248
- id: {
249
- serializedName: "id",
250
- readOnly: true,
251
- type: {
252
- name: "String"
253
- }
254
- }
255
- }
256
- }
257
- };
258
- const PrivateLinkServiceConnectionState = {
259
- type: {
260
- name: "Composite",
261
- className: "PrivateLinkServiceConnectionState",
262
- modelProperties: {
263
- status: {
264
- serializedName: "status",
265
- type: {
266
- name: "String"
267
- }
268
- },
269
- description: {
270
- serializedName: "description",
271
- type: {
272
- name: "String"
273
- }
274
- },
275
- actionsRequired: {
276
- serializedName: "actionsRequired",
277
- type: {
278
- name: "String"
279
- }
280
- }
281
- }
282
- }
283
- };
284
- const Resource = {
285
- type: {
286
- name: "Composite",
287
- className: "Resource",
288
- modelProperties: {
289
- id: {
290
- serializedName: "id",
291
- readOnly: true,
292
- type: {
293
- name: "String"
294
- }
295
- },
296
- name: {
297
- serializedName: "name",
298
- readOnly: true,
299
- type: {
300
- name: "String"
301
- }
302
- },
303
- type: {
304
- serializedName: "type",
305
- readOnly: true,
306
- type: {
307
- name: "String"
308
- }
309
- },
310
- systemData: {
311
- serializedName: "systemData",
312
- type: {
313
- name: "Composite",
314
- className: "SystemData"
315
- }
316
- }
317
- }
318
- }
319
- };
320
- const SystemData = {
321
- type: {
322
- name: "Composite",
323
- className: "SystemData",
324
- modelProperties: {
325
- createdBy: {
326
- serializedName: "createdBy",
327
- type: {
328
- name: "String"
329
- }
330
- },
331
- createdByType: {
332
- serializedName: "createdByType",
333
- type: {
334
- name: "String"
335
- }
336
- },
337
- createdAt: {
338
- serializedName: "createdAt",
339
- type: {
340
- name: "DateTime"
341
- }
342
- },
343
- lastModifiedBy: {
344
- serializedName: "lastModifiedBy",
345
- type: {
346
- name: "String"
347
- }
348
- },
349
- lastModifiedByType: {
350
- serializedName: "lastModifiedByType",
351
- type: {
352
- name: "String"
353
- }
354
- },
355
- lastModifiedAt: {
356
- serializedName: "lastModifiedAt",
357
- type: {
358
- name: "DateTime"
359
- }
360
- }
361
- }
362
- }
363
- };
364
- const RestoreProperties = {
365
- type: {
366
- name: "Composite",
367
- className: "RestoreProperties",
368
- modelProperties: {
369
- foldername: {
370
- serializedName: "foldername",
371
- type: {
372
- name: "String"
373
- }
374
- },
375
- azureStorageResourceUri: {
376
- serializedName: "azureStorageResourceUri",
377
- type: {
378
- name: "String"
379
- }
380
- }
381
- }
382
- }
383
- };
384
- const BackupProperties = {
385
- type: {
386
- name: "Composite",
387
- className: "BackupProperties",
388
- modelProperties: {
389
- azureStorageResourceUri: {
390
- serializedName: "azureStorageResourceUri",
391
- type: {
392
- name: "String"
393
- }
394
- },
395
- lastBackupDateTime: {
396
- serializedName: "lastBackupDateTime",
397
- readOnly: true,
398
- type: {
399
- name: "DateTime"
400
- }
401
- },
402
- lastBackupStatus: {
403
- serializedName: "lastBackupStatus",
404
- readOnly: true,
405
- type: {
406
- name: "String"
407
- }
408
- }
409
- }
410
- }
411
- };
412
- const CloudHsmClusterSku = {
413
- type: {
414
- name: "Composite",
415
- className: "CloudHsmClusterSku",
416
- modelProperties: {
417
- family: {
418
- serializedName: "family",
419
- required: true,
420
- type: {
421
- name: "String"
422
- }
423
- },
424
- name: {
425
- serializedName: "name",
426
- required: true,
427
- type: {
428
- name: "Enum",
429
- allowedValues: ["Standard_B1", "Standard B10"]
430
- }
431
- },
432
- capacity: {
433
- serializedName: "capacity",
434
- type: {
435
- name: "Number"
436
- }
437
- }
438
- }
439
- }
440
- };
441
- const ManagedServiceIdentity = {
442
- type: {
443
- name: "Composite",
444
- className: "ManagedServiceIdentity",
445
- modelProperties: {
446
- principalId: {
447
- serializedName: "principalId",
448
- readOnly: true,
449
- type: {
450
- name: "Uuid"
451
- }
452
- },
453
- tenantId: {
454
- serializedName: "tenantId",
455
- readOnly: true,
456
- type: {
457
- name: "Uuid"
458
- }
459
- },
460
- type: {
461
- serializedName: "type",
462
- required: true,
463
- type: {
464
- name: "String"
465
- }
466
- },
467
- userAssignedIdentities: {
468
- serializedName: "userAssignedIdentities",
469
- type: {
470
- name: "Dictionary",
471
- value: {
472
- type: { name: "Composite", className: "UserAssignedIdentity" }
473
- }
474
- }
475
- }
476
- }
477
- }
478
- };
479
- const UserAssignedIdentity = {
480
- type: {
481
- name: "Composite",
482
- className: "UserAssignedIdentity",
483
- modelProperties: {
484
- principalId: {
485
- serializedName: "principalId",
486
- readOnly: true,
487
- type: {
488
- name: "Uuid"
489
- }
490
- },
491
- clientId: {
492
- serializedName: "clientId",
493
- readOnly: true,
494
- type: {
495
- name: "Uuid"
496
- }
497
- }
498
- }
499
- }
500
- };
501
- const CloudHsmClusterError = {
502
- type: {
503
- name: "Composite",
504
- className: "CloudHsmClusterError",
505
- modelProperties: {
506
- error: {
507
- serializedName: "error",
508
- type: {
509
- name: "Composite",
510
- className: "CHsmError"
511
- }
512
- }
513
- }
514
- }
515
- };
516
- const CHsmError = {
517
- type: {
518
- name: "Composite",
519
- className: "CHsmError",
520
- modelProperties: {
521
- code: {
522
- serializedName: "code",
523
- readOnly: true,
524
- type: {
525
- name: "String"
526
- }
527
- },
528
- message: {
529
- serializedName: "message",
530
- readOnly: true,
531
- type: {
532
- name: "String"
533
- }
534
- }
535
- }
536
- }
537
- };
538
- const CloudHsmClusterPatchParameters = {
539
- type: {
540
- name: "Composite",
541
- className: "CloudHsmClusterPatchParameters",
542
- modelProperties: {
543
- tags: {
544
- serializedName: "tags",
545
- type: {
546
- name: "Dictionary",
547
- value: { type: { name: "String" } }
548
- }
549
- },
550
- sku: {
551
- serializedName: "sku",
552
- type: {
553
- name: "Composite",
554
- className: "CloudHsmClusterSku"
555
- }
556
- },
557
- identity: {
558
- serializedName: "identity",
559
- type: {
560
- name: "Composite",
561
- className: "ManagedServiceIdentity"
562
- }
563
- },
564
- backupProperties: {
565
- serializedName: "properties.backupProperties",
566
- type: {
567
- name: "Composite",
568
- className: "BackupProperties"
569
- }
570
- }
571
- }
572
- }
573
- };
574
- const CloudHsmClusterListResult = {
575
- type: {
576
- name: "Composite",
577
- className: "CloudHsmClusterListResult",
578
- modelProperties: {
579
- value: {
580
- serializedName: "value",
581
- type: {
582
- name: "Sequence",
583
- element: {
584
- type: {
585
- name: "Composite",
586
- className: "CloudHsmCluster"
587
- }
588
- }
589
- }
590
- },
591
- nextLink: {
592
- serializedName: "nextLink",
593
- type: {
594
- name: "String"
595
- }
596
- }
597
- }
598
- }
599
- };
600
- const PrivateLinkResourceListResult = {
601
- type: {
602
- name: "Composite",
603
- className: "PrivateLinkResourceListResult",
604
- modelProperties: {
605
- value: {
606
- serializedName: "value",
607
- type: {
608
- name: "Sequence",
609
- element: {
610
- type: {
611
- name: "Composite",
612
- className: "PrivateLinkResource"
613
- }
614
- }
615
- }
616
- }
617
- }
618
- }
619
- };
620
- const PrivateEndpointConnectionListResult = {
621
- type: {
622
- name: "Composite",
623
- className: "PrivateEndpointConnectionListResult",
624
- modelProperties: {
625
- value: {
626
- serializedName: "value",
627
- type: {
628
- name: "Sequence",
629
- element: {
630
- type: {
631
- name: "Composite",
632
- className: "PrivateEndpointConnection"
633
- }
634
- }
635
- }
636
- },
637
- nextLink: {
638
- serializedName: "nextLink",
639
- type: {
640
- name: "String"
641
- }
642
- }
643
- }
644
- }
645
- };
646
- const DedicatedHsmOperationListResult = {
647
- type: {
648
- name: "Composite",
649
- className: "DedicatedHsmOperationListResult",
650
- modelProperties: {
651
- value: {
652
- serializedName: "value",
653
- type: {
654
- name: "Sequence",
655
- element: {
656
- type: {
657
- name: "Composite",
658
- className: "DedicatedHsmOperation"
659
- }
660
- }
661
- }
662
- }
663
- }
664
- }
665
- };
666
- const DedicatedHsmOperation = {
667
- type: {
668
- name: "Composite",
669
- className: "DedicatedHsmOperation",
670
- modelProperties: {
671
- name: {
672
- serializedName: "name",
673
- type: {
674
- name: "String"
675
- }
676
- },
677
- isDataAction: {
678
- serializedName: "isDataAction",
679
- readOnly: true,
680
- type: {
681
- name: "Boolean"
682
- }
683
- },
684
- origin: {
685
- serializedName: "origin",
686
- type: {
687
- name: "String"
688
- }
689
- },
690
- display: {
691
- serializedName: "display",
692
- type: {
693
- name: "Composite",
694
- className: "DedicatedHsmOperationDisplay"
695
- }
696
- }
697
- }
698
- }
699
- };
700
- const DedicatedHsmOperationDisplay = {
701
- type: {
702
- name: "Composite",
703
- className: "DedicatedHsmOperationDisplay",
704
- modelProperties: {
705
- provider: {
706
- serializedName: "provider",
707
- type: {
708
- name: "String"
709
- }
710
- },
711
- resource: {
712
- serializedName: "resource",
713
- type: {
714
- name: "String"
715
- }
716
- },
717
- operation: {
718
- serializedName: "operation",
719
- type: {
720
- name: "String"
721
- }
722
- },
723
- description: {
724
- serializedName: "description",
725
- type: {
726
- name: "String"
727
- }
728
- }
729
- }
730
- }
731
- };
732
- const DedicatedHsmError = {
733
- type: {
734
- name: "Composite",
735
- className: "DedicatedHsmError",
736
- modelProperties: {
737
- error: {
738
- serializedName: "error",
739
- type: {
740
- name: "Composite",
741
- className: "ErrorModel"
742
- }
743
- }
744
- }
745
- }
746
- };
747
- const ErrorModel = {
748
- type: {
749
- name: "Composite",
750
- className: "ErrorModel",
751
- modelProperties: {
752
- code: {
753
- serializedName: "code",
754
- readOnly: true,
755
- type: {
756
- name: "String"
757
- }
758
- },
759
- message: {
760
- serializedName: "message",
761
- readOnly: true,
762
- type: {
763
- name: "String"
764
- }
765
- },
766
- innerError: {
767
- serializedName: "innererror",
768
- type: {
769
- name: "Composite",
770
- className: "ErrorModel"
771
- }
772
- }
773
- }
774
- }
775
- };
776
- const SystemDataAutoGenerated = {
777
- type: {
778
- name: "Composite",
779
- className: "SystemDataAutoGenerated",
780
- modelProperties: {
781
- createdBy: {
782
- serializedName: "createdBy",
783
- type: {
784
- name: "String"
785
- }
786
- },
787
- createdByType: {
788
- serializedName: "createdByType",
789
- type: {
790
- name: "String"
791
- }
792
- },
793
- createdAt: {
794
- serializedName: "createdAt",
795
- type: {
796
- name: "DateTime"
797
- }
798
- },
799
- lastModifiedBy: {
800
- serializedName: "lastModifiedBy",
801
- type: {
802
- name: "String"
803
- }
804
- },
805
- lastModifiedByType: {
806
- serializedName: "lastModifiedByType",
807
- type: {
808
- name: "String"
809
- }
810
- },
811
- lastModifiedAt: {
812
- serializedName: "lastModifiedAt",
813
- type: {
814
- name: "DateTime"
815
- }
816
- }
817
- }
818
- }
819
- };
820
- const NetworkProfile = {
821
- type: {
822
- name: "Composite",
823
- className: "NetworkProfile",
824
- modelProperties: {
825
- subnet: {
826
- serializedName: "subnet",
827
- type: {
828
- name: "Composite",
829
- className: "ApiEntityReference"
830
- }
831
- },
832
- networkInterfaces: {
833
- serializedName: "networkInterfaces",
834
- type: {
835
- name: "Sequence",
836
- element: {
837
- type: {
838
- name: "Composite",
839
- className: "NetworkInterface"
840
- }
841
- }
842
- }
843
- }
844
- }
845
- }
846
- };
847
- const ApiEntityReference = {
848
- type: {
849
- name: "Composite",
850
- className: "ApiEntityReference",
851
- modelProperties: {
852
- id: {
853
- serializedName: "id",
854
- type: {
855
- name: "String"
856
- }
857
- }
858
- }
859
- }
860
- };
861
- const NetworkInterface = {
862
- type: {
863
- name: "Composite",
864
- className: "NetworkInterface",
865
- modelProperties: {
866
- id: {
867
- serializedName: "id",
868
- readOnly: true,
869
- type: {
870
- name: "String"
871
- }
872
- },
873
- privateIpAddress: {
874
- serializedName: "privateIpAddress",
875
- type: {
876
- name: "String"
877
- }
878
- }
879
- }
880
- }
881
- };
882
- const DedicatedHsmResource = {
883
- type: {
884
- name: "Composite",
885
- className: "DedicatedHsmResource",
886
- modelProperties: {
887
- id: {
888
- serializedName: "id",
889
- readOnly: true,
890
- type: {
891
- name: "String"
892
- }
893
- },
894
- name: {
895
- serializedName: "name",
896
- readOnly: true,
897
- type: {
898
- name: "String"
899
- }
900
- },
901
- type: {
902
- serializedName: "type",
903
- readOnly: true,
904
- type: {
905
- name: "String"
906
- }
907
- },
908
- location: {
909
- serializedName: "location",
910
- required: true,
911
- type: {
912
- name: "String"
913
- }
914
- },
915
- sku: {
916
- serializedName: "sku",
917
- type: {
918
- name: "Composite",
919
- className: "Sku"
920
- }
921
- },
922
- zones: {
923
- serializedName: "zones",
924
- type: {
925
- name: "Sequence",
926
- element: {
927
- type: {
928
- name: "String"
929
- }
930
- }
931
- }
932
- },
933
- tags: {
934
- serializedName: "tags",
935
- type: {
936
- name: "Dictionary",
937
- value: { type: { name: "String" } }
938
- }
939
- }
940
- }
941
- }
942
- };
943
- const Sku = {
944
- type: {
945
- name: "Composite",
946
- className: "Sku",
947
- modelProperties: {
948
- name: {
949
- serializedName: "name",
950
- type: {
951
- name: "String"
952
- }
953
- }
954
- }
955
- }
956
- };
957
- const DedicatedHsmPatchParameters = {
958
- type: {
959
- name: "Composite",
960
- className: "DedicatedHsmPatchParameters",
961
- modelProperties: {
962
- tags: {
963
- serializedName: "tags",
964
- type: {
965
- name: "Dictionary",
966
- value: { type: { name: "String" } }
967
- }
968
- }
969
- }
970
- }
971
- };
972
- const DedicatedHsmListResult = {
973
- type: {
974
- name: "Composite",
975
- className: "DedicatedHsmListResult",
976
- modelProperties: {
977
- value: {
978
- serializedName: "value",
979
- type: {
980
- name: "Sequence",
981
- element: {
982
- type: {
983
- name: "Composite",
984
- className: "DedicatedHsm"
985
- }
986
- }
987
- }
988
- },
989
- nextLink: {
990
- serializedName: "nextLink",
991
- type: {
992
- name: "String"
993
- }
994
- }
995
- }
996
- }
997
- };
998
- const OutboundEnvironmentEndpointCollection = {
999
- type: {
1000
- name: "Composite",
1001
- className: "OutboundEnvironmentEndpointCollection",
1002
- modelProperties: {
1003
- value: {
1004
- serializedName: "value",
1005
- required: true,
1006
- type: {
1007
- name: "Sequence",
1008
- element: {
1009
- type: {
1010
- name: "Composite",
1011
- className: "OutboundEnvironmentEndpoint"
1012
- }
1013
- }
1014
- }
1015
- },
1016
- nextLink: {
1017
- serializedName: "nextLink",
1018
- readOnly: true,
1019
- type: {
1020
- name: "String"
1021
- }
1022
- }
1023
- }
1024
- }
1025
- };
1026
- const OutboundEnvironmentEndpoint = {
1027
- type: {
1028
- name: "Composite",
1029
- className: "OutboundEnvironmentEndpoint",
1030
- modelProperties: {
1031
- category: {
1032
- serializedName: "category",
1033
- type: {
1034
- name: "String"
1035
- }
1036
- },
1037
- endpoints: {
1038
- serializedName: "endpoints",
1039
- type: {
1040
- name: "Sequence",
1041
- element: {
1042
- type: {
1043
- name: "Composite",
1044
- className: "EndpointDependency"
1045
- }
1046
- }
1047
- }
1048
- }
1049
- }
1050
- }
1051
- };
1052
- const EndpointDependency = {
1053
- type: {
1054
- name: "Composite",
1055
- className: "EndpointDependency",
1056
- modelProperties: {
1057
- domainName: {
1058
- serializedName: "domainName",
1059
- type: {
1060
- name: "String"
1061
- }
1062
- },
1063
- endpointDetails: {
1064
- serializedName: "endpointDetails",
1065
- type: {
1066
- name: "Sequence",
1067
- element: {
1068
- type: {
1069
- name: "Composite",
1070
- className: "EndpointDetail"
1071
- }
1072
- }
1073
- }
1074
- }
1075
- }
1076
- }
1077
- };
1078
- const EndpointDetail = {
1079
- type: {
1080
- name: "Composite",
1081
- className: "EndpointDetail",
1082
- modelProperties: {
1083
- ipAddress: {
1084
- serializedName: "ipAddress",
1085
- type: {
1086
- name: "String"
1087
- }
1088
- },
1089
- port: {
1090
- serializedName: "port",
1091
- type: {
1092
- name: "Number"
1093
- }
1094
- },
1095
- protocol: {
1096
- serializedName: "protocol",
1097
- type: {
1098
- name: "String"
1099
- }
1100
- },
1101
- description: {
1102
- serializedName: "description",
1103
- type: {
1104
- name: "String"
1105
- }
1106
- }
1107
- }
1108
- }
1109
- };
1110
- const ResourceListResult = {
1111
- type: {
1112
- name: "Composite",
1113
- className: "ResourceListResult",
1114
- modelProperties: {
1115
- value: {
1116
- serializedName: "value",
1117
- type: {
1118
- name: "Sequence",
1119
- element: {
1120
- type: {
1121
- name: "Composite",
1122
- className: "DedicatedHsmResource"
1123
- }
1124
- }
1125
- }
1126
- },
1127
- nextLink: {
1128
- serializedName: "nextLink",
1129
- type: {
1130
- name: "String"
1131
- }
1132
- }
1133
- }
1134
- }
1135
- };
1136
- const ProxyResource = {
1137
- type: {
1138
- name: "Composite",
1139
- className: "ProxyResource",
1140
- modelProperties: Object.assign({}, Resource.type.modelProperties)
1141
- }
1142
- };
1143
- const TrackedResource = {
1144
- type: {
1145
- name: "Composite",
1146
- className: "TrackedResource",
1147
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1148
- serializedName: "tags",
1149
- type: {
1150
- name: "Dictionary",
1151
- value: { type: { name: "String" } }
1152
- }
1153
- }, location: {
1154
- serializedName: "location",
1155
- required: true,
1156
- type: {
1157
- name: "String"
1158
- }
1159
- } })
1160
- }
1161
- };
1162
- const PrivateLinkResource = {
1163
- type: {
1164
- name: "Composite",
1165
- className: "PrivateLinkResource",
1166
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
1167
- serializedName: "properties.groupId",
1168
- readOnly: true,
1169
- type: {
1170
- name: "String"
1171
- }
1172
- }, requiredMembers: {
1173
- serializedName: "properties.requiredMembers",
1174
- readOnly: true,
1175
- type: {
1176
- name: "Sequence",
1177
- element: {
1178
- type: {
1179
- name: "String"
1180
- }
1181
- }
1182
- }
1183
- }, requiredZoneNames: {
1184
- serializedName: "properties.requiredZoneNames",
1185
- type: {
1186
- name: "Sequence",
1187
- element: {
1188
- type: {
1189
- name: "String"
1190
- }
1191
- }
1192
- }
1193
- } })
1194
- }
1195
- };
1196
- const DedicatedHsm = {
1197
- type: {
1198
- name: "Composite",
1199
- className: "DedicatedHsm",
1200
- modelProperties: Object.assign(Object.assign({}, DedicatedHsmResource.type.modelProperties), { systemData: {
1201
- serializedName: "systemData",
1202
- type: {
1203
- name: "Composite",
1204
- className: "SystemDataAutoGenerated"
1205
- }
1206
- }, networkProfile: {
1207
- serializedName: "properties.networkProfile",
1208
- type: {
1209
- name: "Composite",
1210
- className: "NetworkProfile"
1211
- }
1212
- }, managementNetworkProfile: {
1213
- serializedName: "properties.managementNetworkProfile",
1214
- type: {
1215
- name: "Composite",
1216
- className: "NetworkProfile"
1217
- }
1218
- }, stampId: {
1219
- serializedName: "properties.stampId",
1220
- type: {
1221
- name: "String"
1222
- }
1223
- }, statusMessage: {
1224
- serializedName: "properties.statusMessage",
1225
- readOnly: true,
1226
- type: {
1227
- name: "String"
1228
- }
1229
- }, provisioningState: {
1230
- serializedName: "properties.provisioningState",
1231
- readOnly: true,
1232
- type: {
1233
- name: "String"
1234
- }
1235
- } })
1236
- }
1237
- };
1238
- const PrivateEndpointConnection = {
1239
- type: {
1240
- name: "Composite",
1241
- className: "PrivateEndpointConnection",
1242
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { etag: {
1243
- serializedName: "etag",
1244
- type: {
1245
- name: "String"
1246
- }
1247
- }, privateEndpoint: {
1248
- serializedName: "properties.privateEndpoint",
1249
- type: {
1250
- name: "Composite",
1251
- className: "PrivateEndpoint"
1252
- }
1253
- }, privateLinkServiceConnectionState: {
1254
- serializedName: "properties.privateLinkServiceConnectionState",
1255
- type: {
1256
- name: "Composite",
1257
- className: "PrivateLinkServiceConnectionState"
1258
- }
1259
- }, provisioningState: {
1260
- serializedName: "properties.provisioningState",
1261
- readOnly: true,
1262
- type: {
1263
- name: "String"
1264
- }
1265
- }, groupIds: {
1266
- serializedName: "properties.groupIds",
1267
- readOnly: true,
1268
- type: {
1269
- name: "Sequence",
1270
- element: {
1271
- type: {
1272
- name: "String"
1273
- }
1274
- }
1275
- }
1276
- } })
1277
- }
1278
- };
1279
- const CloudHsmClusterResource = {
1280
- type: {
1281
- name: "Composite",
1282
- className: "CloudHsmClusterResource",
1283
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1284
- serializedName: "sku",
1285
- type: {
1286
- name: "Composite",
1287
- className: "CloudHsmClusterSku"
1288
- }
1289
- }, identity: {
1290
- serializedName: "identity",
1291
- type: {
1292
- name: "Composite",
1293
- className: "ManagedServiceIdentity"
1294
- }
1295
- } })
1296
- }
1297
- };
1298
- const CloudHsmCluster = {
1299
- type: {
1300
- name: "Composite",
1301
- className: "CloudHsmCluster",
1302
- modelProperties: Object.assign(Object.assign({}, CloudHsmClusterResource.type.modelProperties), { provisioningState: {
1303
- serializedName: "properties.provisioningState",
1304
- type: {
1305
- name: "String"
1306
- }
1307
- }, autoGeneratedDomainNameLabelScope: {
1308
- serializedName: "properties.autoGeneratedDomainNameLabelScope",
1309
- type: {
1310
- name: "String"
1311
- }
1312
- }, securityDomain: {
1313
- serializedName: "properties.securityDomain",
1314
- type: {
1315
- name: "Composite",
1316
- className: "CloudHsmClusterSecurityDomainProperties"
1317
- }
1318
- }, hsms: {
1319
- serializedName: "properties.hsms",
1320
- type: {
1321
- name: "Sequence",
1322
- element: {
1323
- type: {
1324
- name: "Composite",
1325
- className: "CloudHsmProperties"
1326
- }
1327
- }
1328
- }
1329
- }, publicNetworkAccess: {
1330
- serializedName: "properties.publicNetworkAccess",
1331
- type: {
1332
- name: "String"
1333
- }
1334
- }, privateEndpointConnections: {
1335
- serializedName: "properties.privateEndpointConnections",
1336
- type: {
1337
- name: "Sequence",
1338
- element: {
1339
- type: {
1340
- name: "Composite",
1341
- className: "PrivateEndpointConnection"
1342
- }
1343
- }
1344
- }
1345
- }, statusMessage: {
1346
- serializedName: "properties.statusMessage",
1347
- readOnly: true,
1348
- type: {
1349
- name: "String"
1350
- }
1351
- }, restoreProperties: {
1352
- serializedName: "properties.restoreProperties",
1353
- type: {
1354
- name: "Composite",
1355
- className: "RestoreProperties"
1356
- }
1357
- }, backupProperties: {
1358
- serializedName: "properties.backupProperties",
1359
- type: {
1360
- name: "Composite",
1361
- className: "BackupProperties"
1362
- }
1363
- } })
1364
- }
1365
- };
1366
- const CloudHsmClustersUpdateHeaders = {
1367
- type: {
1368
- name: "Composite",
1369
- className: "CloudHsmClustersUpdateHeaders",
1370
- modelProperties: {
1371
- location: {
1372
- serializedName: "location",
1373
- type: {
1374
- name: "String"
1375
- }
1376
- }
1377
- }
1378
- }
1379
- };
1380
- const CloudHsmClustersDeleteHeaders = {
1381
- type: {
1382
- name: "Composite",
1383
- className: "CloudHsmClustersDeleteHeaders",
1384
- modelProperties: {
1385
- location: {
1386
- serializedName: "location",
1387
- type: {
1388
- name: "String"
1389
- }
1390
- }
1391
- }
1392
- }
1393
- };
1394
- const CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders = {
1395
- type: {
1396
- name: "Composite",
1397
- className: "CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders",
1398
- modelProperties: {
1399
- location: {
1400
- serializedName: "location",
1401
- type: {
1402
- name: "String"
1403
- }
1404
- }
1405
- }
1406
- }
1407
- };
1408
-
1409
- var Mappers = /*#__PURE__*/Object.freeze({
1410
- __proto__: null,
1411
- ApiEntityReference: ApiEntityReference,
1412
- BackupProperties: BackupProperties,
1413
- CHsmError: CHsmError,
1414
- CloudHsmCluster: CloudHsmCluster,
1415
- CloudHsmClusterError: CloudHsmClusterError,
1416
- CloudHsmClusterListResult: CloudHsmClusterListResult,
1417
- CloudHsmClusterPatchParameters: CloudHsmClusterPatchParameters,
1418
- CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders: CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders,
1419
- CloudHsmClusterResource: CloudHsmClusterResource,
1420
- CloudHsmClusterSecurityDomainProperties: CloudHsmClusterSecurityDomainProperties,
1421
- CloudHsmClusterSku: CloudHsmClusterSku,
1422
- CloudHsmClustersDeleteHeaders: CloudHsmClustersDeleteHeaders,
1423
- CloudHsmClustersUpdateHeaders: CloudHsmClustersUpdateHeaders,
1424
- CloudHsmProperties: CloudHsmProperties,
1425
- DedicatedHsm: DedicatedHsm,
1426
- DedicatedHsmError: DedicatedHsmError,
1427
- DedicatedHsmListResult: DedicatedHsmListResult,
1428
- DedicatedHsmOperation: DedicatedHsmOperation,
1429
- DedicatedHsmOperationDisplay: DedicatedHsmOperationDisplay,
1430
- DedicatedHsmOperationListResult: DedicatedHsmOperationListResult,
1431
- DedicatedHsmPatchParameters: DedicatedHsmPatchParameters,
1432
- DedicatedHsmResource: DedicatedHsmResource,
1433
- EndpointDependency: EndpointDependency,
1434
- EndpointDetail: EndpointDetail,
1435
- ErrorModel: ErrorModel,
1436
- ManagedServiceIdentity: ManagedServiceIdentity,
1437
- NetworkInterface: NetworkInterface,
1438
- NetworkProfile: NetworkProfile,
1439
- OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
1440
- OutboundEnvironmentEndpointCollection: OutboundEnvironmentEndpointCollection,
1441
- PrivateEndpoint: PrivateEndpoint,
1442
- PrivateEndpointConnection: PrivateEndpointConnection,
1443
- PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
1444
- PrivateLinkResource: PrivateLinkResource,
1445
- PrivateLinkResourceListResult: PrivateLinkResourceListResult,
1446
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1447
- ProxyResource: ProxyResource,
1448
- Resource: Resource,
1449
- ResourceListResult: ResourceListResult,
1450
- RestoreProperties: RestoreProperties,
1451
- Sku: Sku,
1452
- SystemData: SystemData,
1453
- SystemDataAutoGenerated: SystemDataAutoGenerated,
1454
- TrackedResource: TrackedResource,
1455
- UserAssignedIdentity: UserAssignedIdentity
1456
- });
1457
-
1458
- /*
1459
- * Copyright (c) Microsoft Corporation.
1460
- * Licensed under the MIT License.
1461
- *
1462
- * Code generated by Microsoft (R) AutoRest Code Generator.
1463
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1464
- */
1465
- const contentType = {
1466
- parameterPath: ["options", "contentType"],
1467
- mapper: {
1468
- defaultValue: "application/json",
1469
- isConstant: true,
1470
- serializedName: "Content-Type",
1471
- type: {
1472
- name: "String"
1473
- }
1474
- }
1475
- };
1476
- const accept = {
1477
- parameterPath: "accept",
1478
- mapper: {
1479
- defaultValue: "application/json",
1480
- isConstant: true,
1481
- serializedName: "Accept",
1482
- type: {
1483
- name: "String"
1484
- }
1485
- }
1486
- };
1487
- const $host = {
1488
- parameterPath: "$host",
1489
- mapper: {
1490
- serializedName: "$host",
1491
- required: true,
1492
- type: {
1493
- name: "String"
1494
- }
1495
- },
1496
- skipEncoding: true
1497
- };
1498
- const subscriptionId = {
1499
- parameterPath: "subscriptionId",
1500
- mapper: {
1501
- serializedName: "subscriptionId",
1502
- required: true,
1503
- type: {
1504
- name: "Uuid"
1505
- }
1506
- }
1507
- };
1508
- const resourceGroupName = {
1509
- parameterPath: "resourceGroupName",
1510
- mapper: {
1511
- constraints: {
1512
- MaxLength: 90,
1513
- MinLength: 1
1514
- },
1515
- serializedName: "resourceGroupName",
1516
- required: true,
1517
- type: {
1518
- name: "String"
1519
- }
1520
- }
1521
- };
1522
- const cloudHsmClusterName = {
1523
- parameterPath: "cloudHsmClusterName",
1524
- mapper: {
1525
- constraints: {
1526
- Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"),
1527
- MaxLength: 24,
1528
- MinLength: 3
1529
- },
1530
- serializedName: "cloudHsmClusterName",
1531
- required: true,
1532
- type: {
1533
- name: "String"
1534
- }
1535
- }
1536
- };
1537
- const apiVersion = {
1538
- parameterPath: "apiVersion",
1539
- mapper: {
1540
- defaultValue: "2023-12-10-preview",
1541
- isConstant: true,
1542
- serializedName: "api-version",
1543
- type: {
1544
- name: "String"
1545
- }
1546
- }
1547
- };
1548
- const skiptoken = {
1549
- parameterPath: ["options", "skiptoken"],
1550
- mapper: {
1551
- serializedName: "$skiptoken",
1552
- type: {
1553
- name: "String"
1554
- }
1555
- }
1556
- };
1557
- const nextLink = {
1558
- parameterPath: "nextLink",
1559
- mapper: {
1560
- serializedName: "nextLink",
1561
- required: true,
1562
- type: {
1563
- name: "String"
1564
- }
1565
- },
1566
- skipEncoding: true
1567
- };
1568
- const properties = {
1569
- parameterPath: "properties",
1570
- mapper: PrivateEndpointConnection
1571
- };
1572
- const peConnectionName = {
1573
- parameterPath: "peConnectionName",
1574
- mapper: {
1575
- constraints: {
1576
- Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$"),
1577
- MaxLength: 24,
1578
- MinLength: 3
1579
- },
1580
- serializedName: "peConnectionName",
1581
- required: true,
1582
- type: {
1583
- name: "String"
1584
- }
1585
- }
1586
- };
1587
- const apiVersion1 = {
1588
- parameterPath: "apiVersion",
1589
- mapper: {
1590
- defaultValue: "2021-11-30",
1591
- isConstant: true,
1592
- serializedName: "api-version",
1593
- type: {
1594
- name: "String"
1595
- }
1596
- }
1597
- };
1598
- const parameters = {
1599
- parameterPath: "parameters",
1600
- mapper: DedicatedHsm
1601
- };
1602
- const resourceGroupName1 = {
1603
- parameterPath: "resourceGroupName",
1604
- mapper: {
1605
- serializedName: "resourceGroupName",
1606
- required: true,
1607
- type: {
1608
- name: "String"
1609
- }
1610
- }
1611
- };
1612
- const name = {
1613
- parameterPath: "name",
1614
- mapper: {
1615
- constraints: {
1616
- Pattern: new RegExp("^[a-zA-Z0-9-]{3,24}$")
1617
- },
1618
- serializedName: "name",
1619
- required: true,
1620
- type: {
1621
- name: "String"
1622
- }
1623
- }
1624
- };
1625
- const name1 = {
1626
- parameterPath: "name",
1627
- mapper: {
1628
- serializedName: "name",
1629
- required: true,
1630
- type: {
1631
- name: "String"
1632
- }
1633
- }
1634
- };
1635
- const top = {
1636
- parameterPath: ["options", "top"],
1637
- mapper: {
1638
- serializedName: "$top",
1639
- type: {
1640
- name: "Number"
1641
- }
1642
- }
1643
- };
1644
-
1645
- /*
1646
- * Copyright (c) Microsoft Corporation.
1647
- * Licensed under the MIT License.
1648
- *
1649
- * Code generated by Microsoft (R) AutoRest Code Generator.
1650
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1651
- */
1652
- function createLroSpec(inputs) {
1653
- const { args, spec, sendOperationFn } = inputs;
1654
- return {
1655
- requestMethod: spec.httpMethod,
1656
- requestPath: spec.path,
1657
- sendInitialRequest: () => sendOperationFn(args, spec),
1658
- sendPollRequest: (path, options) => {
1659
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1660
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1661
- }
1662
- };
1663
- }
1664
-
1665
- /*
1666
- * Copyright (c) Microsoft Corporation.
1667
- * Licensed under the MIT License.
1668
- *
1669
- * Code generated by Microsoft (R) AutoRest Code Generator.
1670
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1671
- */
1672
- /// <reference lib="esnext.asynciterable" />
1673
- /** Class containing CloudHsmClusters operations. */
1674
- class CloudHsmClustersImpl {
1675
- /**
1676
- * Initialize a new instance of the class CloudHsmClusters class.
1677
- * @param client Reference to the service client
1678
- */
1679
- constructor(client) {
1680
- this.client = client;
1681
- }
1682
- /**
1683
- * The List operation gets information about the Cloud HSM Clusters associated with the subscription
1684
- * and within the specified resource group.
1685
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1686
- * @param options The options parameters.
1687
- */
1688
- listByResourceGroup(resourceGroupName, options) {
1689
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1690
- return {
1691
- next() {
1692
- return iter.next();
1693
- },
1694
- [Symbol.asyncIterator]() {
1695
- return this;
1696
- },
1697
- byPage: (settings) => {
1698
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1699
- throw new Error("maxPageSize is not supported by this operation.");
1700
- }
1701
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1702
- }
1703
- };
1704
- }
1705
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1706
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1707
- let result;
1708
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1709
- if (!continuationToken) {
1710
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1711
- let page = result.value || [];
1712
- continuationToken = result.nextLink;
1713
- setContinuationToken(page, continuationToken);
1714
- yield yield tslib.__await(page);
1715
- }
1716
- while (continuationToken) {
1717
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1718
- continuationToken = result.nextLink;
1719
- let page = result.value || [];
1720
- setContinuationToken(page, continuationToken);
1721
- yield yield tslib.__await(page);
1722
- }
1723
- });
1724
- }
1725
- listByResourceGroupPagingAll(resourceGroupName, options) {
1726
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1727
- var _a, e_1, _b, _c;
1728
- try {
1729
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1730
- _c = _f.value;
1731
- _d = false;
1732
- const page = _c;
1733
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1734
- }
1735
- }
1736
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1737
- finally {
1738
- try {
1739
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1740
- }
1741
- finally { if (e_1) throw e_1.error; }
1742
- }
1743
- });
1744
- }
1745
- /**
1746
- * The List operation gets information about the Cloud HSM Clusters associated with the subscription.
1747
- * @param options The options parameters.
1748
- */
1749
- listBySubscription(options) {
1750
- const iter = this.listBySubscriptionPagingAll(options);
1751
- return {
1752
- next() {
1753
- return iter.next();
1754
- },
1755
- [Symbol.asyncIterator]() {
1756
- return this;
1757
- },
1758
- byPage: (settings) => {
1759
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1760
- throw new Error("maxPageSize is not supported by this operation.");
1761
- }
1762
- return this.listBySubscriptionPagingPage(options, settings);
1763
- }
1764
- };
1765
- }
1766
- listBySubscriptionPagingPage(options, settings) {
1767
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1768
- let result;
1769
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1770
- if (!continuationToken) {
1771
- result = yield tslib.__await(this._listBySubscription(options));
1772
- let page = result.value || [];
1773
- continuationToken = result.nextLink;
1774
- setContinuationToken(page, continuationToken);
1775
- yield yield tslib.__await(page);
1776
- }
1777
- while (continuationToken) {
1778
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1779
- continuationToken = result.nextLink;
1780
- let page = result.value || [];
1781
- setContinuationToken(page, continuationToken);
1782
- yield yield tslib.__await(page);
1783
- }
1784
- });
1785
- }
1786
- listBySubscriptionPagingAll(options) {
1787
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1788
- var _a, e_2, _b, _c;
1789
- try {
1790
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1791
- _c = _f.value;
1792
- _d = false;
1793
- const page = _c;
1794
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1795
- }
1796
- }
1797
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1798
- finally {
1799
- try {
1800
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1801
- }
1802
- finally { if (e_2) throw e_2.error; }
1803
- }
1804
- });
1805
- }
1806
- /**
1807
- * Create or Update a Cloud HSM Cluster in the specified subscription.
1808
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1809
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1810
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1811
- * @param location The geo-location where the resource lives
1812
- * @param options The options parameters.
1813
- */
1814
- beginCreateOrUpdate(resourceGroupName, cloudHsmClusterName, location, options) {
1815
- return tslib.__awaiter(this, void 0, void 0, function* () {
1816
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1817
- return this.client.sendOperationRequest(args, spec);
1818
- });
1819
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1820
- var _a;
1821
- let currentRawResponse = undefined;
1822
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1823
- const callback = (rawResponse, flatResponse) => {
1824
- currentRawResponse = rawResponse;
1825
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1826
- };
1827
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1828
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1829
- return {
1830
- flatResponse,
1831
- rawResponse: {
1832
- statusCode: currentRawResponse.status,
1833
- body: currentRawResponse.parsedBody,
1834
- headers: currentRawResponse.headers.toJSON()
1835
- }
1836
- };
1837
- });
1838
- const lro = createLroSpec({
1839
- sendOperationFn,
1840
- args: { resourceGroupName, cloudHsmClusterName, location, options },
1841
- spec: createOrUpdateOperationSpec$1
1842
- });
1843
- const poller = yield coreLro.createHttpPoller(lro, {
1844
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1845
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1846
- resourceLocationConfig: "original-uri"
1847
- });
1848
- yield poller.poll();
1849
- return poller;
1850
- });
1851
- }
1852
- /**
1853
- * Create or Update a Cloud HSM Cluster in the specified subscription.
1854
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1855
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1856
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1857
- * @param location The geo-location where the resource lives
1858
- * @param options The options parameters.
1859
- */
1860
- beginCreateOrUpdateAndWait(resourceGroupName, cloudHsmClusterName, location, options) {
1861
- return tslib.__awaiter(this, void 0, void 0, function* () {
1862
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, cloudHsmClusterName, location, options);
1863
- return poller.pollUntilDone();
1864
- });
1865
- }
1866
- /**
1867
- * Update a Cloud HSM Cluster in the specified subscription.
1868
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1869
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1870
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1871
- * @param options The options parameters.
1872
- */
1873
- beginUpdate(resourceGroupName, cloudHsmClusterName, options) {
1874
- return tslib.__awaiter(this, void 0, void 0, function* () {
1875
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1876
- return this.client.sendOperationRequest(args, spec);
1877
- });
1878
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1879
- var _a;
1880
- let currentRawResponse = undefined;
1881
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1882
- const callback = (rawResponse, flatResponse) => {
1883
- currentRawResponse = rawResponse;
1884
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1885
- };
1886
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1887
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1888
- return {
1889
- flatResponse,
1890
- rawResponse: {
1891
- statusCode: currentRawResponse.status,
1892
- body: currentRawResponse.parsedBody,
1893
- headers: currentRawResponse.headers.toJSON()
1894
- }
1895
- };
1896
- });
1897
- const lro = createLroSpec({
1898
- sendOperationFn,
1899
- args: { resourceGroupName, cloudHsmClusterName, options },
1900
- spec: updateOperationSpec$1
1901
- });
1902
- const poller = yield coreLro.createHttpPoller(lro, {
1903
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1904
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1905
- resourceLocationConfig: "location"
1906
- });
1907
- yield poller.poll();
1908
- return poller;
1909
- });
1910
- }
1911
- /**
1912
- * Update a Cloud HSM Cluster in the specified subscription.
1913
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1914
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1915
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1916
- * @param options The options parameters.
1917
- */
1918
- beginUpdateAndWait(resourceGroupName, cloudHsmClusterName, options) {
1919
- return tslib.__awaiter(this, void 0, void 0, function* () {
1920
- const poller = yield this.beginUpdate(resourceGroupName, cloudHsmClusterName, options);
1921
- return poller.pollUntilDone();
1922
- });
1923
- }
1924
- /**
1925
- * Gets the specified Cloud HSM Cluster
1926
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1927
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1928
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1929
- * @param options The options parameters.
1930
- */
1931
- get(resourceGroupName, cloudHsmClusterName, options) {
1932
- return this.client.sendOperationRequest({ resourceGroupName, cloudHsmClusterName, options }, getOperationSpec$2);
1933
- }
1934
- /**
1935
- * Deletes the specified Cloud HSM Cluster
1936
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1937
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1938
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1939
- * @param options The options parameters.
1940
- */
1941
- beginDelete(resourceGroupName, cloudHsmClusterName, options) {
1942
- return tslib.__awaiter(this, void 0, void 0, function* () {
1943
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1944
- return this.client.sendOperationRequest(args, spec);
1945
- });
1946
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1947
- var _a;
1948
- let currentRawResponse = undefined;
1949
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1950
- const callback = (rawResponse, flatResponse) => {
1951
- currentRawResponse = rawResponse;
1952
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1953
- };
1954
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1955
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1956
- return {
1957
- flatResponse,
1958
- rawResponse: {
1959
- statusCode: currentRawResponse.status,
1960
- body: currentRawResponse.parsedBody,
1961
- headers: currentRawResponse.headers.toJSON()
1962
- }
1963
- };
1964
- });
1965
- const lro = createLroSpec({
1966
- sendOperationFn,
1967
- args: { resourceGroupName, cloudHsmClusterName, options },
1968
- spec: deleteOperationSpec$2
1969
- });
1970
- const poller = yield coreLro.createHttpPoller(lro, {
1971
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1972
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1973
- resourceLocationConfig: "location"
1974
- });
1975
- yield poller.poll();
1976
- return poller;
1977
- });
1978
- }
1979
- /**
1980
- * Deletes the specified Cloud HSM Cluster
1981
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1982
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1983
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1984
- * @param options The options parameters.
1985
- */
1986
- beginDeleteAndWait(resourceGroupName, cloudHsmClusterName, options) {
1987
- return tslib.__awaiter(this, void 0, void 0, function* () {
1988
- const poller = yield this.beginDelete(resourceGroupName, cloudHsmClusterName, options);
1989
- return poller.pollUntilDone();
1990
- });
1991
- }
1992
- /**
1993
- * The List operation gets information about the Cloud HSM Clusters associated with the subscription
1994
- * and within the specified resource group.
1995
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1996
- * @param options The options parameters.
1997
- */
1998
- _listByResourceGroup(resourceGroupName, options) {
1999
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
2000
- }
2001
- /**
2002
- * The List operation gets information about the Cloud HSM Clusters associated with the subscription.
2003
- * @param options The options parameters.
2004
- */
2005
- _listBySubscription(options) {
2006
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
2007
- }
2008
- /**
2009
- * ListByResourceGroupNext
2010
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2011
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2012
- * @param options The options parameters.
2013
- */
2014
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2015
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
2016
- }
2017
- /**
2018
- * ListBySubscriptionNext
2019
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2020
- * @param options The options parameters.
2021
- */
2022
- _listBySubscriptionNext(nextLink, options) {
2023
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
2024
- }
2025
- }
2026
- // Operation Specifications
2027
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2028
- const createOrUpdateOperationSpec$1 = {
2029
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
2030
- httpMethod: "PUT",
2031
- responses: {
2032
- 200: {
2033
- bodyMapper: CloudHsmCluster
2034
- },
2035
- 201: {
2036
- bodyMapper: CloudHsmCluster
2037
- },
2038
- 202: {
2039
- bodyMapper: CloudHsmCluster
2040
- },
2041
- 204: {
2042
- bodyMapper: CloudHsmCluster
2043
- },
2044
- default: {
2045
- bodyMapper: CloudHsmClusterError
2046
- }
2047
- },
2048
- requestBody: {
2049
- parameterPath: {
2050
- tags: ["options", "tags"],
2051
- location: ["location"],
2052
- sku: ["options", "sku"],
2053
- identity: ["options", "identity"],
2054
- provisioningState: ["options", "provisioningState"],
2055
- autoGeneratedDomainNameLabelScope: [
2056
- "options",
2057
- "autoGeneratedDomainNameLabelScope"
2058
- ],
2059
- securityDomain: ["options", "securityDomain"],
2060
- hsms: ["options", "hsms"],
2061
- publicNetworkAccess: ["options", "publicNetworkAccess"],
2062
- privateEndpointConnections: ["options", "privateEndpointConnections"],
2063
- restoreProperties: ["options", "restoreProperties"],
2064
- backupProperties: ["options", "backupProperties"]
2065
- },
2066
- mapper: Object.assign(Object.assign({}, CloudHsmCluster), { required: true })
2067
- },
2068
- queryParameters: [apiVersion],
2069
- urlParameters: [
2070
- $host,
2071
- subscriptionId,
2072
- resourceGroupName,
2073
- cloudHsmClusterName
2074
- ],
2075
- headerParameters: [contentType, accept],
2076
- mediaType: "json",
2077
- serializer: serializer$5
2078
- };
2079
- const updateOperationSpec$1 = {
2080
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
2081
- httpMethod: "PATCH",
2082
- responses: {
2083
- 200: {
2084
- bodyMapper: CloudHsmCluster
2085
- },
2086
- 201: {
2087
- bodyMapper: CloudHsmCluster
2088
- },
2089
- 202: {
2090
- bodyMapper: CloudHsmCluster
2091
- },
2092
- 204: {
2093
- bodyMapper: CloudHsmCluster
2094
- },
2095
- default: {
2096
- bodyMapper: CloudHsmClusterError
2097
- }
2098
- },
2099
- requestBody: {
2100
- parameterPath: {
2101
- tags: ["options", "tags"],
2102
- sku: ["options", "sku"],
2103
- identity: ["options", "identity"],
2104
- backupProperties: ["options", "backupProperties"]
2105
- },
2106
- mapper: Object.assign(Object.assign({}, CloudHsmClusterPatchParameters), { required: true })
2107
- },
2108
- queryParameters: [apiVersion],
2109
- urlParameters: [
2110
- $host,
2111
- subscriptionId,
2112
- resourceGroupName,
2113
- cloudHsmClusterName
2114
- ],
2115
- headerParameters: [contentType, accept],
2116
- mediaType: "json",
2117
- serializer: serializer$5
2118
- };
2119
- const getOperationSpec$2 = {
2120
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
2121
- httpMethod: "GET",
2122
- responses: {
2123
- 200: {
2124
- bodyMapper: CloudHsmCluster
2125
- },
2126
- default: {
2127
- bodyMapper: CloudHsmClusterError
2128
- }
2129
- },
2130
- queryParameters: [apiVersion],
2131
- urlParameters: [
2132
- $host,
2133
- subscriptionId,
2134
- resourceGroupName,
2135
- cloudHsmClusterName
2136
- ],
2137
- headerParameters: [accept],
2138
- serializer: serializer$5
2139
- };
2140
- const deleteOperationSpec$2 = {
2141
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
2142
- httpMethod: "DELETE",
2143
- responses: {
2144
- 200: {},
2145
- 201: {},
2146
- 202: {},
2147
- 204: {},
2148
- default: {
2149
- bodyMapper: CloudHsmClusterError
2150
- }
2151
- },
2152
- queryParameters: [apiVersion],
2153
- urlParameters: [
2154
- $host,
2155
- subscriptionId,
2156
- resourceGroupName,
2157
- cloudHsmClusterName
2158
- ],
2159
- headerParameters: [accept],
2160
- serializer: serializer$5
2161
- };
2162
- const listByResourceGroupOperationSpec$1 = {
2163
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters",
2164
- httpMethod: "GET",
2165
- responses: {
2166
- 200: {
2167
- bodyMapper: CloudHsmClusterListResult
2168
- },
2169
- default: {
2170
- bodyMapper: CloudHsmClusterError
2171
- }
2172
- },
2173
- queryParameters: [apiVersion, skiptoken],
2174
- urlParameters: [
2175
- $host,
2176
- subscriptionId,
2177
- resourceGroupName
2178
- ],
2179
- headerParameters: [accept],
2180
- serializer: serializer$5
2181
- };
2182
- const listBySubscriptionOperationSpec$1 = {
2183
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters",
2184
- httpMethod: "GET",
2185
- responses: {
2186
- 200: {
2187
- bodyMapper: CloudHsmClusterListResult
2188
- },
2189
- default: {
2190
- bodyMapper: CloudHsmClusterError
2191
- }
2192
- },
2193
- queryParameters: [apiVersion, skiptoken],
2194
- urlParameters: [$host, subscriptionId],
2195
- headerParameters: [accept],
2196
- serializer: serializer$5
2197
- };
2198
- const listByResourceGroupNextOperationSpec$1 = {
2199
- path: "{nextLink}",
2200
- httpMethod: "GET",
2201
- responses: {
2202
- 200: {
2203
- bodyMapper: CloudHsmClusterListResult
2204
- },
2205
- default: {
2206
- bodyMapper: CloudHsmClusterError
2207
- }
2208
- },
2209
- urlParameters: [
2210
- $host,
2211
- subscriptionId,
2212
- resourceGroupName,
2213
- nextLink
2214
- ],
2215
- headerParameters: [accept],
2216
- serializer: serializer$5
2217
- };
2218
- const listBySubscriptionNextOperationSpec$1 = {
2219
- path: "{nextLink}",
2220
- httpMethod: "GET",
2221
- responses: {
2222
- 200: {
2223
- bodyMapper: CloudHsmClusterListResult
2224
- },
2225
- default: {
2226
- bodyMapper: CloudHsmClusterError
2227
- }
2228
- },
2229
- urlParameters: [
2230
- $host,
2231
- subscriptionId,
2232
- nextLink
2233
- ],
2234
- headerParameters: [accept],
2235
- serializer: serializer$5
2236
- };
2237
-
2238
- /*
2239
- * Copyright (c) Microsoft Corporation.
2240
- * Licensed under the MIT License.
2241
- *
2242
- * Code generated by Microsoft (R) AutoRest Code Generator.
2243
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2244
- */
2245
- /** Class containing CloudHsmClusterPrivateLinkResources operations. */
2246
- class CloudHsmClusterPrivateLinkResourcesImpl {
2247
- /**
2248
- * Initialize a new instance of the class CloudHsmClusterPrivateLinkResources class.
2249
- * @param client Reference to the service client
2250
- */
2251
- constructor(client) {
2252
- this.client = client;
2253
- }
2254
- /**
2255
- * Gets the private link resources supported for the Cloud Hsm Cluster.
2256
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2257
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2258
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2259
- * @param options The options parameters.
2260
- */
2261
- listByCloudHsmCluster(resourceGroupName, cloudHsmClusterName, options) {
2262
- return this.client.sendOperationRequest({ resourceGroupName, cloudHsmClusterName, options }, listByCloudHsmClusterOperationSpec$1);
2263
- }
2264
- }
2265
- // Operation Specifications
2266
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2267
- const listByCloudHsmClusterOperationSpec$1 = {
2268
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateLinkResources",
2269
- httpMethod: "GET",
2270
- responses: {
2271
- 200: {
2272
- bodyMapper: PrivateLinkResourceListResult
2273
- },
2274
- default: {
2275
- bodyMapper: CloudHsmClusterError
2276
- }
2277
- },
2278
- queryParameters: [apiVersion],
2279
- urlParameters: [
2280
- $host,
2281
- subscriptionId,
2282
- resourceGroupName,
2283
- cloudHsmClusterName
2284
- ],
2285
- headerParameters: [accept],
2286
- serializer: serializer$4
2287
- };
2288
-
2289
- /*
2290
- * Copyright (c) Microsoft Corporation.
2291
- * Licensed under the MIT License.
2292
- *
2293
- * Code generated by Microsoft (R) AutoRest Code Generator.
2294
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2295
- */
2296
- /** Class containing CloudHsmClusterPrivateEndpointConnections operations. */
2297
- class CloudHsmClusterPrivateEndpointConnectionsImpl {
2298
- /**
2299
- * Initialize a new instance of the class CloudHsmClusterPrivateEndpointConnections class.
2300
- * @param client Reference to the service client
2301
- */
2302
- constructor(client) {
2303
- this.client = client;
2304
- }
2305
- /**
2306
- * Creates or updates the private endpoint connection for the Cloud Hsm Cluster.
2307
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2308
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2309
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2310
- * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
2311
- * Cluster.
2312
- * @param properties Parameters of the PrivateEndpointConnection
2313
- * @param options The options parameters.
2314
- */
2315
- create(resourceGroupName, cloudHsmClusterName, peConnectionName, properties, options) {
2316
- return this.client.sendOperationRequest({
2317
- resourceGroupName,
2318
- cloudHsmClusterName,
2319
- peConnectionName,
2320
- properties,
2321
- options
2322
- }, createOperationSpec);
2323
- }
2324
- /**
2325
- * Deletes the private endpoint connection for the Cloud Hsm Cluster.
2326
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2327
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2328
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2329
- * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
2330
- * Cluster.
2331
- * @param options The options parameters.
2332
- */
2333
- beginDelete(resourceGroupName, cloudHsmClusterName, peConnectionName, options) {
2334
- return tslib.__awaiter(this, void 0, void 0, function* () {
2335
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2336
- return this.client.sendOperationRequest(args, spec);
2337
- });
2338
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2339
- var _a;
2340
- let currentRawResponse = undefined;
2341
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2342
- const callback = (rawResponse, flatResponse) => {
2343
- currentRawResponse = rawResponse;
2344
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2345
- };
2346
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2347
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2348
- return {
2349
- flatResponse,
2350
- rawResponse: {
2351
- statusCode: currentRawResponse.status,
2352
- body: currentRawResponse.parsedBody,
2353
- headers: currentRawResponse.headers.toJSON()
2354
- }
2355
- };
2356
- });
2357
- const lro = createLroSpec({
2358
- sendOperationFn,
2359
- args: {
2360
- resourceGroupName,
2361
- cloudHsmClusterName,
2362
- peConnectionName,
2363
- options
2364
- },
2365
- spec: deleteOperationSpec$1
2366
- });
2367
- const poller = yield coreLro.createHttpPoller(lro, {
2368
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2369
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2370
- resourceLocationConfig: "location"
2371
- });
2372
- yield poller.poll();
2373
- return poller;
2374
- });
2375
- }
2376
- /**
2377
- * Deletes the private endpoint connection for the Cloud Hsm Cluster.
2378
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2379
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2380
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2381
- * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
2382
- * Cluster.
2383
- * @param options The options parameters.
2384
- */
2385
- beginDeleteAndWait(resourceGroupName, cloudHsmClusterName, peConnectionName, options) {
2386
- return tslib.__awaiter(this, void 0, void 0, function* () {
2387
- const poller = yield this.beginDelete(resourceGroupName, cloudHsmClusterName, peConnectionName, options);
2388
- return poller.pollUntilDone();
2389
- });
2390
- }
2391
- /**
2392
- * Gets the private endpoint connection for the Cloud Hsm Cluster.
2393
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2394
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2395
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2396
- * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
2397
- * Cluster.
2398
- * @param options The options parameters.
2399
- */
2400
- get(resourceGroupName, cloudHsmClusterName, peConnectionName, options) {
2401
- return this.client.sendOperationRequest({ resourceGroupName, cloudHsmClusterName, peConnectionName, options }, getOperationSpec$1);
2402
- }
2403
- }
2404
- // Operation Specifications
2405
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2406
- const createOperationSpec = {
2407
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}",
2408
- httpMethod: "PUT",
2409
- responses: {
2410
- 200: {
2411
- bodyMapper: PrivateEndpointConnection
2412
- },
2413
- default: {
2414
- bodyMapper: CloudHsmClusterError
2415
- }
2416
- },
2417
- requestBody: properties,
2418
- queryParameters: [apiVersion],
2419
- urlParameters: [
2420
- $host,
2421
- subscriptionId,
2422
- resourceGroupName,
2423
- cloudHsmClusterName,
2424
- peConnectionName
2425
- ],
2426
- headerParameters: [contentType, accept],
2427
- mediaType: "json",
2428
- serializer: serializer$3
2429
- };
2430
- const deleteOperationSpec$1 = {
2431
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}",
2432
- httpMethod: "DELETE",
2433
- responses: {
2434
- 200: {},
2435
- 201: {},
2436
- 202: {},
2437
- 204: {},
2438
- default: {
2439
- bodyMapper: CloudHsmClusterError
2440
- }
2441
- },
2442
- queryParameters: [apiVersion],
2443
- urlParameters: [
2444
- $host,
2445
- subscriptionId,
2446
- resourceGroupName,
2447
- cloudHsmClusterName,
2448
- peConnectionName
2449
- ],
2450
- headerParameters: [accept],
2451
- serializer: serializer$3
2452
- };
2453
- const getOperationSpec$1 = {
2454
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}",
2455
- httpMethod: "GET",
2456
- responses: {
2457
- 200: {
2458
- bodyMapper: PrivateEndpointConnection
2459
- },
2460
- default: {
2461
- bodyMapper: CloudHsmClusterError
2462
- }
2463
- },
2464
- queryParameters: [apiVersion],
2465
- urlParameters: [
2466
- $host,
2467
- subscriptionId,
2468
- resourceGroupName,
2469
- cloudHsmClusterName,
2470
- peConnectionName
2471
- ],
2472
- headerParameters: [accept],
2473
- serializer: serializer$3
2474
- };
2475
-
2476
- /*
2477
- * Copyright (c) Microsoft Corporation.
2478
- * Licensed under the MIT License.
2479
- *
2480
- * Code generated by Microsoft (R) AutoRest Code Generator.
2481
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2482
- */
2483
- /// <reference lib="esnext.asynciterable" />
2484
- /** Class containing PrivateEndpointConnections operations. */
2485
- class PrivateEndpointConnectionsImpl {
2486
- /**
2487
- * Initialize a new instance of the class PrivateEndpointConnections class.
2488
- * @param client Reference to the service client
2489
- */
2490
- constructor(client) {
2491
- this.client = client;
2492
- }
2493
- /**
2494
- * The List operation gets information about the private endpoint connections associated with the Cloud
2495
- * HSM Cluster
2496
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2497
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2498
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2499
- * @param options The options parameters.
2500
- */
2501
- listByCloudHsmCluster(resourceGroupName, cloudHsmClusterName, options) {
2502
- const iter = this.listByCloudHsmClusterPagingAll(resourceGroupName, cloudHsmClusterName, options);
2503
- return {
2504
- next() {
2505
- return iter.next();
2506
- },
2507
- [Symbol.asyncIterator]() {
2508
- return this;
2509
- },
2510
- byPage: (settings) => {
2511
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2512
- throw new Error("maxPageSize is not supported by this operation.");
2513
- }
2514
- return this.listByCloudHsmClusterPagingPage(resourceGroupName, cloudHsmClusterName, options, settings);
2515
- }
2516
- };
2517
- }
2518
- listByCloudHsmClusterPagingPage(resourceGroupName, cloudHsmClusterName, options, settings) {
2519
- return tslib.__asyncGenerator(this, arguments, function* listByCloudHsmClusterPagingPage_1() {
2520
- let result;
2521
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2522
- if (!continuationToken) {
2523
- result = yield tslib.__await(this._listByCloudHsmCluster(resourceGroupName, cloudHsmClusterName, options));
2524
- let page = result.value || [];
2525
- continuationToken = result.nextLink;
2526
- setContinuationToken(page, continuationToken);
2527
- yield yield tslib.__await(page);
2528
- }
2529
- while (continuationToken) {
2530
- result = yield tslib.__await(this._listByCloudHsmClusterNext(resourceGroupName, cloudHsmClusterName, continuationToken, options));
2531
- continuationToken = result.nextLink;
2532
- let page = result.value || [];
2533
- setContinuationToken(page, continuationToken);
2534
- yield yield tslib.__await(page);
2535
- }
2536
- });
2537
- }
2538
- listByCloudHsmClusterPagingAll(resourceGroupName, cloudHsmClusterName, options) {
2539
- return tslib.__asyncGenerator(this, arguments, function* listByCloudHsmClusterPagingAll_1() {
2540
- var _a, e_1, _b, _c;
2541
- try {
2542
- 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) {
2543
- _c = _f.value;
2544
- _d = false;
2545
- const page = _c;
2546
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2547
- }
2548
- }
2549
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2550
- finally {
2551
- try {
2552
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2553
- }
2554
- finally { if (e_1) throw e_1.error; }
2555
- }
2556
- });
2557
- }
2558
- /**
2559
- * The List operation gets information about the private endpoint connections associated with the Cloud
2560
- * HSM Cluster
2561
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2562
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2563
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2564
- * @param options The options parameters.
2565
- */
2566
- _listByCloudHsmCluster(resourceGroupName, cloudHsmClusterName, options) {
2567
- return this.client.sendOperationRequest({ resourceGroupName, cloudHsmClusterName, options }, listByCloudHsmClusterOperationSpec);
2568
- }
2569
- /**
2570
- * ListByCloudHsmClusterNext
2571
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
2572
- * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
2573
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
2574
- * @param nextLink The nextLink from the previous successful call to the ListByCloudHsmCluster method.
2575
- * @param options The options parameters.
2576
- */
2577
- _listByCloudHsmClusterNext(resourceGroupName, cloudHsmClusterName, nextLink, options) {
2578
- return this.client.sendOperationRequest({ resourceGroupName, cloudHsmClusterName, nextLink, options }, listByCloudHsmClusterNextOperationSpec);
2579
- }
2580
- }
2581
- // Operation Specifications
2582
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2583
- const listByCloudHsmClusterOperationSpec = {
2584
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections",
2585
- httpMethod: "GET",
2586
- responses: {
2587
- 200: {
2588
- bodyMapper: PrivateEndpointConnectionListResult
2589
- },
2590
- default: {
2591
- bodyMapper: CloudHsmClusterError
2592
- }
2593
- },
2594
- queryParameters: [apiVersion],
2595
- urlParameters: [
2596
- $host,
2597
- subscriptionId,
2598
- resourceGroupName,
2599
- cloudHsmClusterName
2600
- ],
2601
- headerParameters: [accept],
2602
- serializer: serializer$2
2603
- };
2604
- const listByCloudHsmClusterNextOperationSpec = {
2605
- path: "{nextLink}",
2606
- httpMethod: "GET",
2607
- responses: {
2608
- 200: {
2609
- bodyMapper: PrivateEndpointConnectionListResult
2610
- },
2611
- default: {
2612
- bodyMapper: CloudHsmClusterError
2613
- }
2614
- },
2615
- urlParameters: [
2616
- $host,
2617
- subscriptionId,
2618
- resourceGroupName,
2619
- cloudHsmClusterName,
2620
- nextLink
2621
- ],
2622
- headerParameters: [accept],
2623
- serializer: serializer$2
2624
- };
2625
-
2626
- /*
2627
- * Copyright (c) Microsoft Corporation.
2628
- * Licensed under the MIT License.
2629
- *
2630
- * Code generated by Microsoft (R) AutoRest Code Generator.
2631
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2632
- */
2633
- /// <reference lib="esnext.asynciterable" />
2634
- /** Class containing Operations operations. */
2635
- class OperationsImpl {
2636
- /**
2637
- * Initialize a new instance of the class Operations class.
2638
- * @param client Reference to the service client
2639
- */
2640
- constructor(client) {
2641
- this.client = client;
2642
- }
2643
- /**
2644
- * Get a list of Dedicated HSM operations.
2645
- * @param options The options parameters.
2646
- */
2647
- list(options) {
2648
- const iter = this.listPagingAll(options);
2649
- return {
2650
- next() {
2651
- return iter.next();
2652
- },
2653
- [Symbol.asyncIterator]() {
2654
- return this;
2655
- },
2656
- byPage: (settings) => {
2657
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2658
- throw new Error("maxPageSize is not supported by this operation.");
2659
- }
2660
- return this.listPagingPage(options, settings);
2661
- }
2662
- };
2663
- }
2664
- listPagingPage(options, _settings) {
2665
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2666
- let result;
2667
- result = yield tslib.__await(this._list(options));
2668
- yield yield tslib.__await(result.value || []);
2669
- });
2670
- }
2671
- listPagingAll(options) {
2672
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2673
- var _a, e_1, _b, _c;
2674
- try {
2675
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2676
- _c = _f.value;
2677
- _d = false;
2678
- const page = _c;
2679
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2680
- }
2681
- }
2682
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2683
- finally {
2684
- try {
2685
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2686
- }
2687
- finally { if (e_1) throw e_1.error; }
2688
- }
2689
- });
2690
- }
2691
- /**
2692
- * Get a list of Dedicated HSM operations.
2693
- * @param options The options parameters.
2694
- */
2695
- _list(options) {
2696
- return this.client.sendOperationRequest({ options }, listOperationSpec);
2697
- }
2698
- }
2699
- // Operation Specifications
2700
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2701
- const listOperationSpec = {
2702
- path: "/providers/Microsoft.HardwareSecurityModules/operations",
2703
- httpMethod: "GET",
2704
- responses: {
2705
- 200: {
2706
- bodyMapper: DedicatedHsmOperationListResult
2707
- },
2708
- default: {
2709
- bodyMapper: DedicatedHsmError
2710
- }
2711
- },
2712
- queryParameters: [apiVersion1],
2713
- urlParameters: [$host],
2714
- headerParameters: [accept],
2715
- serializer: serializer$1
2716
- };
2717
-
2718
- /*
2719
- * Copyright (c) Microsoft Corporation.
2720
- * Licensed under the MIT License.
2721
- *
2722
- * Code generated by Microsoft (R) AutoRest Code Generator.
2723
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2724
- */
2725
- /// <reference lib="esnext.asynciterable" />
2726
- /** Class containing DedicatedHsmOperations operations. */
2727
- class DedicatedHsmOperationsImpl {
2728
- /**
2729
- * Initialize a new instance of the class DedicatedHsmOperations class.
2730
- * @param client Reference to the service client
2731
- */
2732
- constructor(client) {
2733
- this.client = client;
2734
- }
2735
- /**
2736
- * The List operation gets information about the dedicated hsms associated with the subscription and
2737
- * within the specified resource group.
2738
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
2739
- * @param options The options parameters.
2740
- */
2741
- listByResourceGroup(resourceGroupName, options) {
2742
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
2743
- return {
2744
- next() {
2745
- return iter.next();
2746
- },
2747
- [Symbol.asyncIterator]() {
2748
- return this;
2749
- },
2750
- byPage: (settings) => {
2751
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2752
- throw new Error("maxPageSize is not supported by this operation.");
2753
- }
2754
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2755
- }
2756
- };
2757
- }
2758
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
2759
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2760
- let result;
2761
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2762
- if (!continuationToken) {
2763
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2764
- let page = result.value || [];
2765
- continuationToken = result.nextLink;
2766
- setContinuationToken(page, continuationToken);
2767
- yield yield tslib.__await(page);
2768
- }
2769
- while (continuationToken) {
2770
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
2771
- continuationToken = result.nextLink;
2772
- let page = result.value || [];
2773
- setContinuationToken(page, continuationToken);
2774
- yield yield tslib.__await(page);
2775
- }
2776
- });
2777
- }
2778
- listByResourceGroupPagingAll(resourceGroupName, options) {
2779
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
2780
- var _a, e_1, _b, _c;
2781
- try {
2782
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2783
- _c = _f.value;
2784
- _d = false;
2785
- const page = _c;
2786
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2787
- }
2788
- }
2789
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2790
- finally {
2791
- try {
2792
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2793
- }
2794
- finally { if (e_1) throw e_1.error; }
2795
- }
2796
- });
2797
- }
2798
- /**
2799
- * The List operation gets information about the dedicated HSMs associated with the subscription.
2800
- * @param options The options parameters.
2801
- */
2802
- listBySubscription(options) {
2803
- const iter = this.listBySubscriptionPagingAll(options);
2804
- return {
2805
- next() {
2806
- return iter.next();
2807
- },
2808
- [Symbol.asyncIterator]() {
2809
- return this;
2810
- },
2811
- byPage: (settings) => {
2812
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2813
- throw new Error("maxPageSize is not supported by this operation.");
2814
- }
2815
- return this.listBySubscriptionPagingPage(options, settings);
2816
- }
2817
- };
2818
- }
2819
- listBySubscriptionPagingPage(options, settings) {
2820
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
2821
- let result;
2822
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2823
- if (!continuationToken) {
2824
- result = yield tslib.__await(this._listBySubscription(options));
2825
- let page = result.value || [];
2826
- continuationToken = result.nextLink;
2827
- setContinuationToken(page, continuationToken);
2828
- yield yield tslib.__await(page);
2829
- }
2830
- while (continuationToken) {
2831
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
2832
- continuationToken = result.nextLink;
2833
- let page = result.value || [];
2834
- setContinuationToken(page, continuationToken);
2835
- yield yield tslib.__await(page);
2836
- }
2837
- });
2838
- }
2839
- listBySubscriptionPagingAll(options) {
2840
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
2841
- var _a, e_2, _b, _c;
2842
- try {
2843
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2844
- _c = _f.value;
2845
- _d = false;
2846
- const page = _c;
2847
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2848
- }
2849
- }
2850
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2851
- finally {
2852
- try {
2853
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2854
- }
2855
- finally { if (e_2) throw e_2.error; }
2856
- }
2857
- });
2858
- }
2859
- /**
2860
- * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified
2861
- * dedicated hsm resource. The operation returns properties of each egress endpoint.
2862
- * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
2863
- * @param name The name of the dedicated HSM.
2864
- * @param options The options parameters.
2865
- */
2866
- listOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options) {
2867
- const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, name, options);
2868
- return {
2869
- next() {
2870
- return iter.next();
2871
- },
2872
- [Symbol.asyncIterator]() {
2873
- return this;
2874
- },
2875
- byPage: (settings) => {
2876
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2877
- throw new Error("maxPageSize is not supported by this operation.");
2878
- }
2879
- return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options, settings);
2880
- }
2881
- };
2882
- }
2883
- listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, name, options, settings) {
2884
- return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingPage_1() {
2885
- let result;
2886
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2887
- if (!continuationToken) {
2888
- result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options));
2889
- let page = result.value || [];
2890
- continuationToken = result.nextLink;
2891
- setContinuationToken(page, continuationToken);
2892
- yield yield tslib.__await(page);
2893
- }
2894
- while (continuationToken) {
2895
- result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, name, continuationToken, options));
2896
- continuationToken = result.nextLink;
2897
- let page = result.value || [];
2898
- setContinuationToken(page, continuationToken);
2899
- yield yield tslib.__await(page);
2900
- }
2901
- });
2902
- }
2903
- listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, name, options) {
2904
- return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingAll_1() {
2905
- var _a, e_3, _b, _c;
2906
- try {
2907
- 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) {
2908
- _c = _f.value;
2909
- _d = false;
2910
- const page = _c;
2911
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2912
- }
2913
- }
2914
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
2915
- finally {
2916
- try {
2917
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
2918
- }
2919
- finally { if (e_3) throw e_3.error; }
2920
- }
2921
- });
2922
- }
2923
- /**
2924
- * Create or Update a dedicated HSM in the specified subscription.
2925
- * @param resourceGroupName The name of the Resource Group to which the resource belongs.
2926
- * @param name Name of the dedicated Hsm
2927
- * @param parameters Parameters to create or update the dedicated hsm
2928
- * @param options The options parameters.
2929
- */
2930
- beginCreateOrUpdate(resourceGroupName, name, parameters, options) {
2931
- return tslib.__awaiter(this, void 0, void 0, function* () {
2932
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2933
- return this.client.sendOperationRequest(args, spec);
2934
- });
2935
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2936
- var _a;
2937
- let currentRawResponse = undefined;
2938
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2939
- const callback = (rawResponse, flatResponse) => {
2940
- currentRawResponse = rawResponse;
2941
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2942
- };
2943
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
2944
- const flatResponse = yield directSendOperation(updatedArgs, spec);
2945
- return {
2946
- flatResponse,
2947
- rawResponse: {
2948
- statusCode: currentRawResponse.status,
2949
- body: currentRawResponse.parsedBody,
2950
- headers: currentRawResponse.headers.toJSON()
2951
- }
2952
- };
2953
- });
2954
- const lro = createLroSpec({
2955
- sendOperationFn,
2956
- args: { resourceGroupName, name, parameters, options },
2957
- spec: createOrUpdateOperationSpec
2958
- });
2959
- const poller = yield coreLro.createHttpPoller(lro, {
2960
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2961
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2962
- });
2963
- yield poller.poll();
2964
- return poller;
2965
- });
2966
- }
2967
- /**
2968
- * Create or Update a dedicated HSM in the specified subscription.
2969
- * @param resourceGroupName The name of the Resource Group to which the resource belongs.
2970
- * @param name Name of the dedicated Hsm
2971
- * @param parameters Parameters to create or update the dedicated hsm
2972
- * @param options The options parameters.
2973
- */
2974
- beginCreateOrUpdateAndWait(resourceGroupName, name, parameters, options) {
2975
- return tslib.__awaiter(this, void 0, void 0, function* () {
2976
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, name, parameters, options);
2977
- return poller.pollUntilDone();
2978
- });
2979
- }
2980
- /**
2981
- * Update a dedicated HSM in the specified subscription.
2982
- * @param resourceGroupName The name of the Resource Group to which the server belongs.
2983
- * @param name Name of the dedicated HSM
2984
- * @param options The options parameters.
2985
- */
2986
- beginUpdate(resourceGroupName, name, options) {
2987
- return tslib.__awaiter(this, void 0, void 0, function* () {
2988
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2989
- return this.client.sendOperationRequest(args, spec);
2990
- });
2991
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
2992
- var _a;
2993
- let currentRawResponse = undefined;
2994
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
2995
- const callback = (rawResponse, flatResponse) => {
2996
- currentRawResponse = rawResponse;
2997
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
2998
- };
2999
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3000
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3001
- return {
3002
- flatResponse,
3003
- rawResponse: {
3004
- statusCode: currentRawResponse.status,
3005
- body: currentRawResponse.parsedBody,
3006
- headers: currentRawResponse.headers.toJSON()
3007
- }
3008
- };
3009
- });
3010
- const lro = createLroSpec({
3011
- sendOperationFn,
3012
- args: { resourceGroupName, name, options },
3013
- spec: updateOperationSpec
3014
- });
3015
- const poller = yield coreLro.createHttpPoller(lro, {
3016
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3017
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3018
- });
3019
- yield poller.poll();
3020
- return poller;
3021
- });
3022
- }
3023
- /**
3024
- * Update a dedicated HSM in the specified subscription.
3025
- * @param resourceGroupName The name of the Resource Group to which the server belongs.
3026
- * @param name Name of the dedicated HSM
3027
- * @param options The options parameters.
3028
- */
3029
- beginUpdateAndWait(resourceGroupName, name, options) {
3030
- return tslib.__awaiter(this, void 0, void 0, function* () {
3031
- const poller = yield this.beginUpdate(resourceGroupName, name, options);
3032
- return poller.pollUntilDone();
3033
- });
3034
- }
3035
- /**
3036
- * Deletes the specified Azure Dedicated HSM.
3037
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
3038
- * @param name The name of the dedicated HSM to delete
3039
- * @param options The options parameters.
3040
- */
3041
- beginDelete(resourceGroupName, name, options) {
3042
- return tslib.__awaiter(this, void 0, void 0, function* () {
3043
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3044
- return this.client.sendOperationRequest(args, spec);
3045
- });
3046
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3047
- var _a;
3048
- let currentRawResponse = undefined;
3049
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3050
- const callback = (rawResponse, flatResponse) => {
3051
- currentRawResponse = rawResponse;
3052
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3053
- };
3054
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3055
- const flatResponse = yield directSendOperation(updatedArgs, spec);
3056
- return {
3057
- flatResponse,
3058
- rawResponse: {
3059
- statusCode: currentRawResponse.status,
3060
- body: currentRawResponse.parsedBody,
3061
- headers: currentRawResponse.headers.toJSON()
3062
- }
3063
- };
3064
- });
3065
- const lro = createLroSpec({
3066
- sendOperationFn,
3067
- args: { resourceGroupName, name, options },
3068
- spec: deleteOperationSpec
3069
- });
3070
- const poller = yield coreLro.createHttpPoller(lro, {
3071
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3072
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3073
- });
3074
- yield poller.poll();
3075
- return poller;
3076
- });
3077
- }
3078
- /**
3079
- * Deletes the specified Azure Dedicated HSM.
3080
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
3081
- * @param name The name of the dedicated HSM to delete
3082
- * @param options The options parameters.
3083
- */
3084
- beginDeleteAndWait(resourceGroupName, name, options) {
3085
- return tslib.__awaiter(this, void 0, void 0, function* () {
3086
- const poller = yield this.beginDelete(resourceGroupName, name, options);
3087
- return poller.pollUntilDone();
3088
- });
3089
- }
3090
- /**
3091
- * Gets the specified Azure dedicated HSM.
3092
- * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
3093
- * @param name The name of the dedicated HSM.
3094
- * @param options The options parameters.
3095
- */
3096
- get(resourceGroupName, name, options) {
3097
- return this.client.sendOperationRequest({ resourceGroupName, name, options }, getOperationSpec);
3098
- }
3099
- /**
3100
- * The List operation gets information about the dedicated hsms associated with the subscription and
3101
- * within the specified resource group.
3102
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
3103
- * @param options The options parameters.
3104
- */
3105
- _listByResourceGroup(resourceGroupName, options) {
3106
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
3107
- }
3108
- /**
3109
- * The List operation gets information about the dedicated HSMs associated with the subscription.
3110
- * @param options The options parameters.
3111
- */
3112
- _listBySubscription(options) {
3113
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
3114
- }
3115
- /**
3116
- * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified
3117
- * dedicated hsm resource. The operation returns properties of each egress endpoint.
3118
- * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
3119
- * @param name The name of the dedicated HSM.
3120
- * @param options The options parameters.
3121
- */
3122
- _listOutboundNetworkDependenciesEndpoints(resourceGroupName, name, options) {
3123
- return this.client.sendOperationRequest({ resourceGroupName, name, options }, listOutboundNetworkDependenciesEndpointsOperationSpec);
3124
- }
3125
- /**
3126
- * ListByResourceGroupNext
3127
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
3128
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3129
- * @param options The options parameters.
3130
- */
3131
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
3132
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3133
- }
3134
- /**
3135
- * ListBySubscriptionNext
3136
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
3137
- * @param options The options parameters.
3138
- */
3139
- _listBySubscriptionNext(nextLink, options) {
3140
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
3141
- }
3142
- /**
3143
- * ListOutboundNetworkDependenciesEndpointsNext
3144
- * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
3145
- * @param name The name of the dedicated HSM.
3146
- * @param nextLink The nextLink from the previous successful call to the
3147
- * ListOutboundNetworkDependenciesEndpoints method.
3148
- * @param options The options parameters.
3149
- */
3150
- _listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, name, nextLink, options) {
3151
- return this.client.sendOperationRequest({ resourceGroupName, name, nextLink, options }, listOutboundNetworkDependenciesEndpointsNextOperationSpec);
3152
- }
3153
- }
3154
- // Operation Specifications
3155
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3156
- const createOrUpdateOperationSpec = {
3157
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}",
3158
- httpMethod: "PUT",
3159
- responses: {
3160
- 200: {
3161
- bodyMapper: DedicatedHsm
3162
- },
3163
- 201: {
3164
- bodyMapper: DedicatedHsm
3165
- },
3166
- 202: {
3167
- bodyMapper: DedicatedHsm
3168
- },
3169
- 204: {
3170
- bodyMapper: DedicatedHsm
3171
- },
3172
- default: {
3173
- bodyMapper: DedicatedHsmError
3174
- }
3175
- },
3176
- requestBody: parameters,
3177
- queryParameters: [apiVersion1],
3178
- urlParameters: [
3179
- $host,
3180
- subscriptionId,
3181
- resourceGroupName1,
3182
- name
3183
- ],
3184
- headerParameters: [contentType, accept],
3185
- mediaType: "json",
3186
- serializer
3187
- };
3188
- const updateOperationSpec = {
3189
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}",
3190
- httpMethod: "PATCH",
3191
- responses: {
3192
- 200: {
3193
- bodyMapper: DedicatedHsm
3194
- },
3195
- 201: {
3196
- bodyMapper: DedicatedHsm
3197
- },
3198
- 202: {
3199
- bodyMapper: DedicatedHsm
3200
- },
3201
- 204: {
3202
- bodyMapper: DedicatedHsm
3203
- },
3204
- default: {
3205
- bodyMapper: DedicatedHsmError
3206
- }
3207
- },
3208
- requestBody: {
3209
- parameterPath: { tags: ["options", "tags"] },
3210
- mapper: Object.assign(Object.assign({}, DedicatedHsmPatchParameters), { required: true })
3211
- },
3212
- queryParameters: [apiVersion1],
3213
- urlParameters: [
3214
- $host,
3215
- subscriptionId,
3216
- resourceGroupName1,
3217
- name
3218
- ],
3219
- headerParameters: [contentType, accept],
3220
- mediaType: "json",
3221
- serializer
3222
- };
3223
- const deleteOperationSpec = {
3224
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}",
3225
- httpMethod: "DELETE",
3226
- responses: {
3227
- 200: {},
3228
- 201: {},
3229
- 202: {},
3230
- 204: {},
3231
- default: {
3232
- bodyMapper: DedicatedHsmError
3233
- }
3234
- },
3235
- queryParameters: [apiVersion1],
3236
- urlParameters: [
3237
- $host,
3238
- subscriptionId,
3239
- resourceGroupName1,
3240
- name1
3241
- ],
3242
- headerParameters: [accept],
3243
- serializer
3244
- };
3245
- const getOperationSpec = {
3246
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}",
3247
- httpMethod: "GET",
3248
- responses: {
3249
- 200: {
3250
- bodyMapper: DedicatedHsm
3251
- },
3252
- default: {
3253
- bodyMapper: DedicatedHsmError
3254
- }
3255
- },
3256
- queryParameters: [apiVersion1],
3257
- urlParameters: [
3258
- $host,
3259
- subscriptionId,
3260
- resourceGroupName1,
3261
- name1
3262
- ],
3263
- headerParameters: [accept],
3264
- serializer
3265
- };
3266
- const listByResourceGroupOperationSpec = {
3267
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs",
3268
- httpMethod: "GET",
3269
- responses: {
3270
- 200: {
3271
- bodyMapper: DedicatedHsmListResult
3272
- },
3273
- default: {
3274
- bodyMapper: DedicatedHsmError
3275
- }
3276
- },
3277
- queryParameters: [apiVersion1, top],
3278
- urlParameters: [
3279
- $host,
3280
- subscriptionId,
3281
- resourceGroupName1
3282
- ],
3283
- headerParameters: [accept],
3284
- serializer
3285
- };
3286
- const listBySubscriptionOperationSpec = {
3287
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs",
3288
- httpMethod: "GET",
3289
- responses: {
3290
- 200: {
3291
- bodyMapper: DedicatedHsmListResult
3292
- },
3293
- default: {
3294
- bodyMapper: DedicatedHsmError
3295
- }
3296
- },
3297
- queryParameters: [apiVersion1, top],
3298
- urlParameters: [$host, subscriptionId],
3299
- headerParameters: [accept],
3300
- serializer
3301
- };
3302
- const listOutboundNetworkDependenciesEndpointsOperationSpec = {
3303
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}/outboundNetworkDependenciesEndpoints",
3304
- httpMethod: "GET",
3305
- responses: {
3306
- 200: {
3307
- bodyMapper: OutboundEnvironmentEndpointCollection
3308
- },
3309
- default: {
3310
- bodyMapper: DedicatedHsmError
3311
- }
3312
- },
3313
- queryParameters: [apiVersion1],
3314
- urlParameters: [
3315
- $host,
3316
- subscriptionId,
3317
- resourceGroupName1,
3318
- name1
3319
- ],
3320
- headerParameters: [accept],
3321
- serializer
3322
- };
3323
- const listByResourceGroupNextOperationSpec = {
3324
- path: "{nextLink}",
3325
- httpMethod: "GET",
3326
- responses: {
3327
- 200: {
3328
- bodyMapper: DedicatedHsmListResult
3329
- },
3330
- default: {
3331
- bodyMapper: DedicatedHsmError
3332
- }
3333
- },
3334
- urlParameters: [
3335
- $host,
3336
- subscriptionId,
3337
- nextLink,
3338
- resourceGroupName1
3339
- ],
3340
- headerParameters: [accept],
3341
- serializer
3342
- };
3343
- const listBySubscriptionNextOperationSpec = {
3344
- path: "{nextLink}",
3345
- httpMethod: "GET",
3346
- responses: {
3347
- 200: {
3348
- bodyMapper: DedicatedHsmListResult
3349
- },
3350
- default: {
3351
- bodyMapper: DedicatedHsmError
3352
- }
3353
- },
3354
- urlParameters: [
3355
- $host,
3356
- subscriptionId,
3357
- nextLink
3358
- ],
3359
- headerParameters: [accept],
3360
- serializer
3361
- };
3362
- const listOutboundNetworkDependenciesEndpointsNextOperationSpec = {
3363
- path: "{nextLink}",
3364
- httpMethod: "GET",
3365
- responses: {
3366
- 200: {
3367
- bodyMapper: OutboundEnvironmentEndpointCollection
3368
- },
3369
- default: {
3370
- bodyMapper: DedicatedHsmError
3371
- }
3372
- },
3373
- urlParameters: [
3374
- $host,
3375
- subscriptionId,
3376
- nextLink,
3377
- resourceGroupName1,
3378
- name1
3379
- ],
3380
- headerParameters: [accept],
3381
- serializer
3382
- };
3383
-
3384
- /*
3385
- * Copyright (c) Microsoft Corporation.
3386
- * Licensed under the MIT License.
3387
- *
3388
- * Code generated by Microsoft (R) AutoRest Code Generator.
3389
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3390
- */
3391
- class AzureHSMResourceProvider extends coreClient__namespace.ServiceClient {
3392
- /**
3393
- * Initializes a new instance of the AzureHSMResourceProvider class.
3394
- * @param credentials Subscription credentials which uniquely identify client subscription.
3395
- * @param subscriptionId The ID of the target subscription. The value must be an UUID.
3396
- * @param options The parameter options
3397
- */
3398
- constructor(credentials, subscriptionId, options) {
3399
- var _a, _b, _c;
3400
- if (credentials === undefined) {
3401
- throw new Error("'credentials' cannot be null");
3402
- }
3403
- if (subscriptionId === undefined) {
3404
- throw new Error("'subscriptionId' cannot be null");
3405
- }
3406
- // Initializing default values for options
3407
- if (!options) {
3408
- options = {};
3409
- }
3410
- const defaults = {
3411
- requestContentType: "application/json; charset=utf-8",
3412
- credential: credentials
3413
- };
3414
- const packageDetails = `azsdk-js-arm-hardwaresecuritymodules/2.0.0-beta.1`;
3415
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3416
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3417
- : `${packageDetails}`;
3418
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3419
- userAgentPrefix
3420
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3421
- super(optionsWithDefaults);
3422
- let bearerTokenAuthenticationPolicyFound = false;
3423
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3424
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3425
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3426
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3427
- }
3428
- if (!options ||
3429
- !options.pipeline ||
3430
- options.pipeline.getOrderedPolicies().length == 0 ||
3431
- !bearerTokenAuthenticationPolicyFound) {
3432
- this.pipeline.removePolicy({
3433
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3434
- });
3435
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3436
- credential: credentials,
3437
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3438
- challengeCallbacks: {
3439
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3440
- }
3441
- }));
3442
- }
3443
- // Parameter assignments
3444
- this.subscriptionId = subscriptionId;
3445
- // Assigning values to Constant parameters
3446
- this.$host = options.$host || "https://management.azure.com";
3447
- this.cloudHsmClusters = new CloudHsmClustersImpl(this);
3448
- this.cloudHsmClusterPrivateLinkResources = new CloudHsmClusterPrivateLinkResourcesImpl(this);
3449
- this.cloudHsmClusterPrivateEndpointConnections = new CloudHsmClusterPrivateEndpointConnectionsImpl(this);
3450
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
3451
- this.operations = new OperationsImpl(this);
3452
- this.dedicatedHsmOperations = new DedicatedHsmOperationsImpl(this);
3453
- }
3454
- }
3455
-
3456
- exports.AzureHSMResourceProvider = AzureHSMResourceProvider;
3457
- exports.getContinuationToken = getContinuationToken;
3458
- //# sourceMappingURL=index.js.map