@azure/arm-keyvault 3.2.0 → 4.0.0-alpha.20251125.3

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 (493) hide show
  1. package/README.md +4 -2
  2. package/dist/browser/index.d.ts.map +1 -1
  3. package/dist/browser/index.js +4 -7
  4. package/dist/browser/index.js.map +1 -1
  5. package/dist/browser/keyVaultManagementClient.d.ts +11 -12
  6. package/dist/browser/keyVaultManagementClient.d.ts.map +1 -1
  7. package/dist/browser/keyVaultManagementClient.js +39 -27
  8. package/dist/browser/keyVaultManagementClient.js.map +1 -1
  9. package/dist/browser/lroImpl.d.ts +1 -1
  10. package/dist/browser/lroImpl.d.ts.map +1 -1
  11. package/dist/browser/lroImpl.js +9 -10
  12. package/dist/browser/lroImpl.js.map +1 -1
  13. package/dist/browser/models/index.d.ts +1514 -1451
  14. package/dist/browser/models/index.d.ts.map +1 -1
  15. package/dist/browser/models/index.js +204 -201
  16. package/dist/browser/models/index.js.map +1 -1
  17. package/dist/browser/models/mappers.d.ts +76 -72
  18. package/dist/browser/models/mappers.d.ts.map +1 -1
  19. package/dist/browser/models/mappers.js +1681 -1487
  20. package/dist/browser/models/mappers.js.map +1 -1
  21. package/dist/browser/models/parameters.d.ts +17 -19
  22. package/dist/browser/models/parameters.d.ts.map +1 -1
  23. package/dist/browser/models/parameters.js +107 -132
  24. package/dist/browser/models/parameters.js.map +1 -1
  25. package/dist/browser/operations/index.d.ts +6 -6
  26. package/dist/browser/operations/index.d.ts.map +1 -1
  27. package/dist/browser/operations/index.js +10 -13
  28. package/dist/browser/operations/index.js.map +1 -1
  29. package/dist/browser/operations/keys.d.ts +36 -38
  30. package/dist/browser/operations/keys.d.ts.map +1 -1
  31. package/dist/browser/operations/keys.js +112 -153
  32. package/dist/browser/operations/keys.js.map +1 -1
  33. package/dist/browser/operations/managedHsmKeys.d.ts +20 -20
  34. package/dist/browser/operations/managedHsmKeys.d.ts.map +1 -1
  35. package/dist/browser/operations/managedHsmKeys.js +103 -142
  36. package/dist/browser/operations/managedHsmKeys.js.map +1 -1
  37. package/dist/browser/operations/managedHsms.d.ts +77 -77
  38. package/dist/browser/operations/managedHsms.d.ts.map +1 -1
  39. package/dist/browser/operations/managedHsms.js +338 -382
  40. package/dist/browser/operations/managedHsms.js.map +1 -1
  41. package/dist/browser/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
  42. package/dist/browser/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  43. package/dist/browser/operations/mhsmPrivateEndpointConnections.js +60 -76
  44. package/dist/browser/operations/mhsmPrivateEndpointConnections.js.map +1 -1
  45. package/dist/browser/operations/mhsmPrivateLinkResources.d.ts +5 -5
  46. package/dist/browser/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
  47. package/dist/browser/operations/mhsmPrivateLinkResources.js +6 -10
  48. package/dist/browser/operations/mhsmPrivateLinkResources.js.map +1 -1
  49. package/dist/browser/operations/mhsmRegions.d.ts +10 -10
  50. package/dist/browser/operations/mhsmRegions.d.ts.map +1 -1
  51. package/dist/browser/operations/mhsmRegions.js +34 -56
  52. package/dist/browser/operations/mhsmRegions.js.map +1 -1
  53. package/dist/browser/operations/operations.d.ts +6 -6
  54. package/dist/browser/operations/operations.d.ts.map +1 -1
  55. package/dist/browser/operations/operations.js +27 -49
  56. package/dist/browser/operations/operations.js.map +1 -1
  57. package/dist/browser/operations/privateEndpointConnections.d.ts +25 -25
  58. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
  59. package/dist/browser/operations/privateEndpointConnections.js +88 -104
  60. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  61. package/dist/browser/operations/privateLinkResources.d.ts +5 -5
  62. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -1
  63. package/dist/browser/operations/privateLinkResources.js +6 -10
  64. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  65. package/dist/browser/operations/secrets.d.ts +30 -32
  66. package/dist/browser/operations/secrets.d.ts.map +1 -1
  67. package/dist/browser/operations/secrets.js +88 -112
  68. package/dist/browser/operations/secrets.js.map +1 -1
  69. package/dist/browser/operations/vaults.d.ts +72 -72
  70. package/dist/browser/operations/vaults.d.ts.map +1 -1
  71. package/dist/browser/operations/vaults.js +335 -412
  72. package/dist/browser/operations/vaults.js.map +1 -1
  73. package/dist/browser/operationsInterfaces/index.d.ts +6 -6
  74. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  75. package/dist/browser/operationsInterfaces/index.js +10 -13
  76. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  77. package/dist/browser/operationsInterfaces/keys.d.ts +20 -22
  78. package/dist/browser/operationsInterfaces/keys.d.ts.map +1 -1
  79. package/dist/browser/operationsInterfaces/keys.js +2 -7
  80. package/dist/browser/operationsInterfaces/keys.js.map +1 -1
  81. package/dist/browser/operationsInterfaces/managedHsmKeys.d.ts +10 -10
  82. package/dist/browser/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
  83. package/dist/browser/operationsInterfaces/managedHsmKeys.js +2 -7
  84. package/dist/browser/operationsInterfaces/managedHsmKeys.js.map +1 -1
  85. package/dist/browser/operationsInterfaces/managedHsms.d.ts +54 -54
  86. package/dist/browser/operationsInterfaces/managedHsms.d.ts.map +1 -1
  87. package/dist/browser/operationsInterfaces/managedHsms.js +2 -7
  88. package/dist/browser/operationsInterfaces/managedHsms.js.map +1 -1
  89. package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
  90. package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  91. package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
  92. package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
  93. package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
  94. package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
  95. package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
  96. package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
  97. package/dist/browser/operationsInterfaces/mhsmRegions.d.ts +4 -4
  98. package/dist/browser/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
  99. package/dist/browser/operationsInterfaces/mhsmRegions.js +2 -7
  100. package/dist/browser/operationsInterfaces/mhsmRegions.js.map +1 -1
  101. package/dist/browser/operationsInterfaces/operations.d.ts +3 -3
  102. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  103. package/dist/browser/operationsInterfaces/operations.js +2 -7
  104. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  105. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
  106. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  107. package/dist/browser/operationsInterfaces/privateEndpointConnections.js +2 -7
  108. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  109. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts +3 -3
  110. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  111. package/dist/browser/operationsInterfaces/privateLinkResources.js +2 -7
  112. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -1
  113. package/dist/browser/operationsInterfaces/secrets.d.ts +18 -20
  114. package/dist/browser/operationsInterfaces/secrets.d.ts.map +1 -1
  115. package/dist/browser/operationsInterfaces/secrets.js +2 -7
  116. package/dist/browser/operationsInterfaces/secrets.js.map +1 -1
  117. package/dist/browser/operationsInterfaces/vaults.d.ts +50 -50
  118. package/dist/browser/operationsInterfaces/vaults.d.ts.map +1 -1
  119. package/dist/browser/operationsInterfaces/vaults.js +2 -7
  120. package/dist/browser/operationsInterfaces/vaults.js.map +1 -1
  121. package/dist/browser/pagingHelper.d.ts.map +1 -1
  122. package/dist/browser/pagingHelper.js +4 -11
  123. package/dist/browser/pagingHelper.js.map +1 -1
  124. package/dist/commonjs/index.d.ts.map +1 -1
  125. package/dist/commonjs/index.js +4 -7
  126. package/dist/commonjs/index.js.map +1 -1
  127. package/dist/commonjs/keyVaultManagementClient.d.ts +11 -12
  128. package/dist/commonjs/keyVaultManagementClient.d.ts.map +1 -1
  129. package/dist/commonjs/keyVaultManagementClient.js +38 -26
  130. package/dist/commonjs/keyVaultManagementClient.js.map +1 -1
  131. package/dist/commonjs/lroImpl.d.ts +1 -1
  132. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  133. package/dist/commonjs/lroImpl.js +9 -10
  134. package/dist/commonjs/lroImpl.js.map +1 -1
  135. package/dist/commonjs/models/index.d.ts +1514 -1451
  136. package/dist/commonjs/models/index.d.ts.map +1 -1
  137. package/dist/commonjs/models/index.js +205 -202
  138. package/dist/commonjs/models/index.js.map +1 -1
  139. package/dist/commonjs/models/mappers.d.ts +76 -72
  140. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  141. package/dist/commonjs/models/mappers.js +1684 -1490
  142. package/dist/commonjs/models/mappers.js.map +1 -1
  143. package/dist/commonjs/models/parameters.d.ts +17 -19
  144. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  145. package/dist/commonjs/models/parameters.js +107 -132
  146. package/dist/commonjs/models/parameters.js.map +1 -1
  147. package/dist/commonjs/operations/index.d.ts +6 -6
  148. package/dist/commonjs/operations/index.d.ts.map +1 -1
  149. package/dist/commonjs/operations/index.js +10 -13
  150. package/dist/commonjs/operations/index.js.map +1 -1
  151. package/dist/commonjs/operations/keys.d.ts +36 -38
  152. package/dist/commonjs/operations/keys.d.ts.map +1 -1
  153. package/dist/commonjs/operations/keys.js +112 -152
  154. package/dist/commonjs/operations/keys.js.map +1 -1
  155. package/dist/commonjs/operations/managedHsmKeys.d.ts +20 -20
  156. package/dist/commonjs/operations/managedHsmKeys.d.ts.map +1 -1
  157. package/dist/commonjs/operations/managedHsmKeys.js +103 -141
  158. package/dist/commonjs/operations/managedHsmKeys.js.map +1 -1
  159. package/dist/commonjs/operations/managedHsms.d.ts +77 -77
  160. package/dist/commonjs/operations/managedHsms.d.ts.map +1 -1
  161. package/dist/commonjs/operations/managedHsms.js +337 -380
  162. package/dist/commonjs/operations/managedHsms.js.map +1 -1
  163. package/dist/commonjs/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
  164. package/dist/commonjs/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  165. package/dist/commonjs/operations/mhsmPrivateEndpointConnections.js +59 -74
  166. package/dist/commonjs/operations/mhsmPrivateEndpointConnections.js.map +1 -1
  167. package/dist/commonjs/operations/mhsmPrivateLinkResources.d.ts +5 -5
  168. package/dist/commonjs/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
  169. package/dist/commonjs/operations/mhsmPrivateLinkResources.js +6 -10
  170. package/dist/commonjs/operations/mhsmPrivateLinkResources.js.map +1 -1
  171. package/dist/commonjs/operations/mhsmRegions.d.ts +10 -10
  172. package/dist/commonjs/operations/mhsmRegions.d.ts.map +1 -1
  173. package/dist/commonjs/operations/mhsmRegions.js +34 -55
  174. package/dist/commonjs/operations/mhsmRegions.js.map +1 -1
  175. package/dist/commonjs/operations/operations.d.ts +6 -6
  176. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  177. package/dist/commonjs/operations/operations.js +27 -48
  178. package/dist/commonjs/operations/operations.js.map +1 -1
  179. package/dist/commonjs/operations/privateEndpointConnections.d.ts +25 -25
  180. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
  181. package/dist/commonjs/operations/privateEndpointConnections.js +87 -102
  182. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  183. package/dist/commonjs/operations/privateLinkResources.d.ts +5 -5
  184. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -1
  185. package/dist/commonjs/operations/privateLinkResources.js +6 -10
  186. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  187. package/dist/commonjs/operations/secrets.d.ts +30 -32
  188. package/dist/commonjs/operations/secrets.d.ts.map +1 -1
  189. package/dist/commonjs/operations/secrets.js +88 -111
  190. package/dist/commonjs/operations/secrets.js.map +1 -1
  191. package/dist/commonjs/operations/vaults.d.ts +72 -72
  192. package/dist/commonjs/operations/vaults.d.ts.map +1 -1
  193. package/dist/commonjs/operations/vaults.js +334 -410
  194. package/dist/commonjs/operations/vaults.js.map +1 -1
  195. package/dist/commonjs/operationsInterfaces/index.d.ts +6 -6
  196. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  197. package/dist/commonjs/operationsInterfaces/index.js +10 -13
  198. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  199. package/dist/commonjs/operationsInterfaces/keys.d.ts +20 -22
  200. package/dist/commonjs/operationsInterfaces/keys.d.ts.map +1 -1
  201. package/dist/commonjs/operationsInterfaces/keys.js +2 -7
  202. package/dist/commonjs/operationsInterfaces/keys.js.map +1 -1
  203. package/dist/commonjs/operationsInterfaces/managedHsmKeys.d.ts +10 -10
  204. package/dist/commonjs/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
  205. package/dist/commonjs/operationsInterfaces/managedHsmKeys.js +2 -7
  206. package/dist/commonjs/operationsInterfaces/managedHsmKeys.js.map +1 -1
  207. package/dist/commonjs/operationsInterfaces/managedHsms.d.ts +54 -54
  208. package/dist/commonjs/operationsInterfaces/managedHsms.d.ts.map +1 -1
  209. package/dist/commonjs/operationsInterfaces/managedHsms.js +2 -7
  210. package/dist/commonjs/operationsInterfaces/managedHsms.js.map +1 -1
  211. package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
  212. package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  213. package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
  214. package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
  215. package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
  216. package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
  217. package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
  218. package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
  219. package/dist/commonjs/operationsInterfaces/mhsmRegions.d.ts +4 -4
  220. package/dist/commonjs/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
  221. package/dist/commonjs/operationsInterfaces/mhsmRegions.js +2 -7
  222. package/dist/commonjs/operationsInterfaces/mhsmRegions.js.map +1 -1
  223. package/dist/commonjs/operationsInterfaces/operations.d.ts +3 -3
  224. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  225. package/dist/commonjs/operationsInterfaces/operations.js +2 -7
  226. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  227. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
  228. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  229. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +2 -7
  230. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  231. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +3 -3
  232. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  233. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +2 -7
  234. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -1
  235. package/dist/commonjs/operationsInterfaces/secrets.d.ts +18 -20
  236. package/dist/commonjs/operationsInterfaces/secrets.d.ts.map +1 -1
  237. package/dist/commonjs/operationsInterfaces/secrets.js +2 -7
  238. package/dist/commonjs/operationsInterfaces/secrets.js.map +1 -1
  239. package/dist/commonjs/operationsInterfaces/vaults.d.ts +50 -50
  240. package/dist/commonjs/operationsInterfaces/vaults.d.ts.map +1 -1
  241. package/dist/commonjs/operationsInterfaces/vaults.js +2 -7
  242. package/dist/commonjs/operationsInterfaces/vaults.js.map +1 -1
  243. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  244. package/dist/commonjs/pagingHelper.js +4 -11
  245. package/dist/commonjs/pagingHelper.js.map +1 -1
  246. package/dist/commonjs/tsdoc-metadata.json +11 -11
  247. package/dist/esm/index.d.ts.map +1 -1
  248. package/dist/esm/index.js +4 -7
  249. package/dist/esm/index.js.map +1 -1
  250. package/dist/esm/keyVaultManagementClient.d.ts +11 -12
  251. package/dist/esm/keyVaultManagementClient.d.ts.map +1 -1
  252. package/dist/esm/keyVaultManagementClient.js +39 -27
  253. package/dist/esm/keyVaultManagementClient.js.map +1 -1
  254. package/dist/esm/lroImpl.d.ts +1 -1
  255. package/dist/esm/lroImpl.d.ts.map +1 -1
  256. package/dist/esm/lroImpl.js +9 -10
  257. package/dist/esm/lroImpl.js.map +1 -1
  258. package/dist/esm/models/index.d.ts +1514 -1451
  259. package/dist/esm/models/index.d.ts.map +1 -1
  260. package/dist/esm/models/index.js +204 -201
  261. package/dist/esm/models/index.js.map +1 -1
  262. package/dist/esm/models/mappers.d.ts +76 -72
  263. package/dist/esm/models/mappers.d.ts.map +1 -1
  264. package/dist/esm/models/mappers.js +1681 -1487
  265. package/dist/esm/models/mappers.js.map +1 -1
  266. package/dist/esm/models/parameters.d.ts +17 -19
  267. package/dist/esm/models/parameters.d.ts.map +1 -1
  268. package/dist/esm/models/parameters.js +107 -132
  269. package/dist/esm/models/parameters.js.map +1 -1
  270. package/dist/esm/operations/index.d.ts +6 -6
  271. package/dist/esm/operations/index.d.ts.map +1 -1
  272. package/dist/esm/operations/index.js +10 -13
  273. package/dist/esm/operations/index.js.map +1 -1
  274. package/dist/esm/operations/keys.d.ts +36 -38
  275. package/dist/esm/operations/keys.d.ts.map +1 -1
  276. package/dist/esm/operations/keys.js +112 -153
  277. package/dist/esm/operations/keys.js.map +1 -1
  278. package/dist/esm/operations/managedHsmKeys.d.ts +20 -20
  279. package/dist/esm/operations/managedHsmKeys.d.ts.map +1 -1
  280. package/dist/esm/operations/managedHsmKeys.js +103 -142
  281. package/dist/esm/operations/managedHsmKeys.js.map +1 -1
  282. package/dist/esm/operations/managedHsms.d.ts +77 -77
  283. package/dist/esm/operations/managedHsms.d.ts.map +1 -1
  284. package/dist/esm/operations/managedHsms.js +338 -382
  285. package/dist/esm/operations/managedHsms.js.map +1 -1
  286. package/dist/esm/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
  287. package/dist/esm/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  288. package/dist/esm/operations/mhsmPrivateEndpointConnections.js +60 -76
  289. package/dist/esm/operations/mhsmPrivateEndpointConnections.js.map +1 -1
  290. package/dist/esm/operations/mhsmPrivateLinkResources.d.ts +5 -5
  291. package/dist/esm/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
  292. package/dist/esm/operations/mhsmPrivateLinkResources.js +6 -10
  293. package/dist/esm/operations/mhsmPrivateLinkResources.js.map +1 -1
  294. package/dist/esm/operations/mhsmRegions.d.ts +10 -10
  295. package/dist/esm/operations/mhsmRegions.d.ts.map +1 -1
  296. package/dist/esm/operations/mhsmRegions.js +34 -56
  297. package/dist/esm/operations/mhsmRegions.js.map +1 -1
  298. package/dist/esm/operations/operations.d.ts +6 -6
  299. package/dist/esm/operations/operations.d.ts.map +1 -1
  300. package/dist/esm/operations/operations.js +27 -49
  301. package/dist/esm/operations/operations.js.map +1 -1
  302. package/dist/esm/operations/privateEndpointConnections.d.ts +25 -25
  303. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
  304. package/dist/esm/operations/privateEndpointConnections.js +88 -104
  305. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  306. package/dist/esm/operations/privateLinkResources.d.ts +5 -5
  307. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -1
  308. package/dist/esm/operations/privateLinkResources.js +6 -10
  309. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  310. package/dist/esm/operations/secrets.d.ts +30 -32
  311. package/dist/esm/operations/secrets.d.ts.map +1 -1
  312. package/dist/esm/operations/secrets.js +88 -112
  313. package/dist/esm/operations/secrets.js.map +1 -1
  314. package/dist/esm/operations/vaults.d.ts +72 -72
  315. package/dist/esm/operations/vaults.d.ts.map +1 -1
  316. package/dist/esm/operations/vaults.js +335 -412
  317. package/dist/esm/operations/vaults.js.map +1 -1
  318. package/dist/esm/operationsInterfaces/index.d.ts +6 -6
  319. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  320. package/dist/esm/operationsInterfaces/index.js +10 -13
  321. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  322. package/dist/esm/operationsInterfaces/keys.d.ts +20 -22
  323. package/dist/esm/operationsInterfaces/keys.d.ts.map +1 -1
  324. package/dist/esm/operationsInterfaces/keys.js +2 -7
  325. package/dist/esm/operationsInterfaces/keys.js.map +1 -1
  326. package/dist/esm/operationsInterfaces/managedHsmKeys.d.ts +10 -10
  327. package/dist/esm/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
  328. package/dist/esm/operationsInterfaces/managedHsmKeys.js +2 -7
  329. package/dist/esm/operationsInterfaces/managedHsmKeys.js.map +1 -1
  330. package/dist/esm/operationsInterfaces/managedHsms.d.ts +54 -54
  331. package/dist/esm/operationsInterfaces/managedHsms.d.ts.map +1 -1
  332. package/dist/esm/operationsInterfaces/managedHsms.js +2 -7
  333. package/dist/esm/operationsInterfaces/managedHsms.js.map +1 -1
  334. package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
  335. package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  336. package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
  337. package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
  338. package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
  339. package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
  340. package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
  341. package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
  342. package/dist/esm/operationsInterfaces/mhsmRegions.d.ts +4 -4
  343. package/dist/esm/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
  344. package/dist/esm/operationsInterfaces/mhsmRegions.js +2 -7
  345. package/dist/esm/operationsInterfaces/mhsmRegions.js.map +1 -1
  346. package/dist/esm/operationsInterfaces/operations.d.ts +3 -3
  347. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  348. package/dist/esm/operationsInterfaces/operations.js +2 -7
  349. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  350. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
  351. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  352. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +2 -7
  353. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  354. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +3 -3
  355. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  356. package/dist/esm/operationsInterfaces/privateLinkResources.js +2 -7
  357. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -1
  358. package/dist/esm/operationsInterfaces/secrets.d.ts +18 -20
  359. package/dist/esm/operationsInterfaces/secrets.d.ts.map +1 -1
  360. package/dist/esm/operationsInterfaces/secrets.js +2 -7
  361. package/dist/esm/operationsInterfaces/secrets.js.map +1 -1
  362. package/dist/esm/operationsInterfaces/vaults.d.ts +50 -50
  363. package/dist/esm/operationsInterfaces/vaults.d.ts.map +1 -1
  364. package/dist/esm/operationsInterfaces/vaults.js +2 -7
  365. package/dist/esm/operationsInterfaces/vaults.js.map +1 -1
  366. package/dist/esm/pagingHelper.d.ts.map +1 -1
  367. package/dist/esm/pagingHelper.js +4 -11
  368. package/dist/esm/pagingHelper.js.map +1 -1
  369. package/dist/react-native/index.d.ts.map +1 -1
  370. package/dist/react-native/index.js +4 -7
  371. package/dist/react-native/index.js.map +1 -1
  372. package/dist/react-native/keyVaultManagementClient.d.ts +11 -12
  373. package/dist/react-native/keyVaultManagementClient.d.ts.map +1 -1
  374. package/dist/react-native/keyVaultManagementClient.js +39 -27
  375. package/dist/react-native/keyVaultManagementClient.js.map +1 -1
  376. package/dist/react-native/lroImpl.d.ts +1 -1
  377. package/dist/react-native/lroImpl.d.ts.map +1 -1
  378. package/dist/react-native/lroImpl.js +9 -10
  379. package/dist/react-native/lroImpl.js.map +1 -1
  380. package/dist/react-native/models/index.d.ts +1514 -1451
  381. package/dist/react-native/models/index.d.ts.map +1 -1
  382. package/dist/react-native/models/index.js +204 -201
  383. package/dist/react-native/models/index.js.map +1 -1
  384. package/dist/react-native/models/mappers.d.ts +76 -72
  385. package/dist/react-native/models/mappers.d.ts.map +1 -1
  386. package/dist/react-native/models/mappers.js +1681 -1487
  387. package/dist/react-native/models/mappers.js.map +1 -1
  388. package/dist/react-native/models/parameters.d.ts +17 -19
  389. package/dist/react-native/models/parameters.d.ts.map +1 -1
  390. package/dist/react-native/models/parameters.js +107 -132
  391. package/dist/react-native/models/parameters.js.map +1 -1
  392. package/dist/react-native/operations/index.d.ts +6 -6
  393. package/dist/react-native/operations/index.d.ts.map +1 -1
  394. package/dist/react-native/operations/index.js +10 -13
  395. package/dist/react-native/operations/index.js.map +1 -1
  396. package/dist/react-native/operations/keys.d.ts +36 -38
  397. package/dist/react-native/operations/keys.d.ts.map +1 -1
  398. package/dist/react-native/operations/keys.js +112 -153
  399. package/dist/react-native/operations/keys.js.map +1 -1
  400. package/dist/react-native/operations/managedHsmKeys.d.ts +20 -20
  401. package/dist/react-native/operations/managedHsmKeys.d.ts.map +1 -1
  402. package/dist/react-native/operations/managedHsmKeys.js +103 -142
  403. package/dist/react-native/operations/managedHsmKeys.js.map +1 -1
  404. package/dist/react-native/operations/managedHsms.d.ts +77 -77
  405. package/dist/react-native/operations/managedHsms.d.ts.map +1 -1
  406. package/dist/react-native/operations/managedHsms.js +338 -382
  407. package/dist/react-native/operations/managedHsms.js.map +1 -1
  408. package/dist/react-native/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
  409. package/dist/react-native/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  410. package/dist/react-native/operations/mhsmPrivateEndpointConnections.js +60 -76
  411. package/dist/react-native/operations/mhsmPrivateEndpointConnections.js.map +1 -1
  412. package/dist/react-native/operations/mhsmPrivateLinkResources.d.ts +5 -5
  413. package/dist/react-native/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
  414. package/dist/react-native/operations/mhsmPrivateLinkResources.js +6 -10
  415. package/dist/react-native/operations/mhsmPrivateLinkResources.js.map +1 -1
  416. package/dist/react-native/operations/mhsmRegions.d.ts +10 -10
  417. package/dist/react-native/operations/mhsmRegions.d.ts.map +1 -1
  418. package/dist/react-native/operations/mhsmRegions.js +34 -56
  419. package/dist/react-native/operations/mhsmRegions.js.map +1 -1
  420. package/dist/react-native/operations/operations.d.ts +6 -6
  421. package/dist/react-native/operations/operations.d.ts.map +1 -1
  422. package/dist/react-native/operations/operations.js +27 -49
  423. package/dist/react-native/operations/operations.js.map +1 -1
  424. package/dist/react-native/operations/privateEndpointConnections.d.ts +25 -25
  425. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
  426. package/dist/react-native/operations/privateEndpointConnections.js +88 -104
  427. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  428. package/dist/react-native/operations/privateLinkResources.d.ts +5 -5
  429. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -1
  430. package/dist/react-native/operations/privateLinkResources.js +6 -10
  431. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  432. package/dist/react-native/operations/secrets.d.ts +30 -32
  433. package/dist/react-native/operations/secrets.d.ts.map +1 -1
  434. package/dist/react-native/operations/secrets.js +88 -112
  435. package/dist/react-native/operations/secrets.js.map +1 -1
  436. package/dist/react-native/operations/vaults.d.ts +72 -72
  437. package/dist/react-native/operations/vaults.d.ts.map +1 -1
  438. package/dist/react-native/operations/vaults.js +335 -412
  439. package/dist/react-native/operations/vaults.js.map +1 -1
  440. package/dist/react-native/operationsInterfaces/index.d.ts +6 -6
  441. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  442. package/dist/react-native/operationsInterfaces/index.js +10 -13
  443. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  444. package/dist/react-native/operationsInterfaces/keys.d.ts +20 -22
  445. package/dist/react-native/operationsInterfaces/keys.d.ts.map +1 -1
  446. package/dist/react-native/operationsInterfaces/keys.js +2 -7
  447. package/dist/react-native/operationsInterfaces/keys.js.map +1 -1
  448. package/dist/react-native/operationsInterfaces/managedHsmKeys.d.ts +10 -10
  449. package/dist/react-native/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
  450. package/dist/react-native/operationsInterfaces/managedHsmKeys.js +2 -7
  451. package/dist/react-native/operationsInterfaces/managedHsmKeys.js.map +1 -1
  452. package/dist/react-native/operationsInterfaces/managedHsms.d.ts +54 -54
  453. package/dist/react-native/operationsInterfaces/managedHsms.d.ts.map +1 -1
  454. package/dist/react-native/operationsInterfaces/managedHsms.js +2 -7
  455. package/dist/react-native/operationsInterfaces/managedHsms.js.map +1 -1
  456. package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
  457. package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  458. package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
  459. package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
  460. package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
  461. package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
  462. package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
  463. package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
  464. package/dist/react-native/operationsInterfaces/mhsmRegions.d.ts +4 -4
  465. package/dist/react-native/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
  466. package/dist/react-native/operationsInterfaces/mhsmRegions.js +2 -7
  467. package/dist/react-native/operationsInterfaces/mhsmRegions.js.map +1 -1
  468. package/dist/react-native/operationsInterfaces/operations.d.ts +3 -3
  469. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  470. package/dist/react-native/operationsInterfaces/operations.js +2 -7
  471. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  472. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
  473. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  474. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +2 -7
  475. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  476. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +3 -3
  477. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  478. package/dist/react-native/operationsInterfaces/privateLinkResources.js +2 -7
  479. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -1
  480. package/dist/react-native/operationsInterfaces/secrets.d.ts +18 -20
  481. package/dist/react-native/operationsInterfaces/secrets.d.ts.map +1 -1
  482. package/dist/react-native/operationsInterfaces/secrets.js +2 -7
  483. package/dist/react-native/operationsInterfaces/secrets.js.map +1 -1
  484. package/dist/react-native/operationsInterfaces/vaults.d.ts +50 -50
  485. package/dist/react-native/operationsInterfaces/vaults.d.ts.map +1 -1
  486. package/dist/react-native/operationsInterfaces/vaults.js +2 -7
  487. package/dist/react-native/operationsInterfaces/vaults.js.map +1 -1
  488. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  489. package/dist/react-native/pagingHelper.js +4 -11
  490. package/dist/react-native/pagingHelper.js.map +1 -1
  491. package/package.json +58 -67
  492. package/CHANGELOG.md +0 -121
  493. package/review/arm-keyvault.api.md +0 -1723
package/README.md CHANGED
@@ -63,10 +63,11 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
63
63
  import { InteractiveBrowserCredential } from "@azure/identity";
64
64
  import { KeyVaultManagementClient } from "@azure/arm-keyvault";
65
65
 
66
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
66
67
  const credential = new InteractiveBrowserCredential({
67
68
  tenantId: "<YOUR_TENANT_ID>",
68
- clientId: "<YOUR_CLIENT_ID>"
69
- });
69
+ clientId: "<YOUR_CLIENT_ID>",
70
+ });
70
71
  const client = new KeyVaultManagementClient(credential, subscriptionId);
71
72
  ```
72
73
 
@@ -105,6 +106,7 @@ If you'd like to contribute to this library, please read the [contributing guide
105
106
 
106
107
  - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
107
108
 
109
+
108
110
  [azure_cli]: https://learn.microsoft.com/cli/azure
109
111
  [azure_sub]: https://azure.microsoft.com/free/
110
112
  [azure_sub]: https://azure.microsoft.com/free/
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,cAAc,iCAAiC,CAAC"}
@@ -1,10 +1,7 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ // Code generated by Microsoft (R) AutoRest Code Generator.
4
+ // Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
5
  /// <reference lib="esnext.asynciterable" />
9
6
  export { getContinuationToken } from "./pagingHelper.js";
10
7
  export * from "./models/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { KeyVaultManagementClient } from \"./keyVaultManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,cAAc,iCAAiC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { KeyVaultManagementClient } from \"./keyVaultManagementClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -1,31 +1,30 @@
1
1
  import * as coreClient from "@azure/core-client";
2
- import * as coreAuth from "@azure/core-auth";
3
- import { Keys, ManagedHsmKeys, Vaults, PrivateEndpointConnections, PrivateLinkResources, ManagedHsms, MhsmPrivateEndpointConnections, MhsmPrivateLinkResources, MhsmRegions, Operations, Secrets } from "./operationsInterfaces/index.js";
4
- import { KeyVaultManagementClientOptionalParams } from "./models/index.js";
2
+ import type * as coreAuth from "@azure/core-auth";
3
+ import type { Operations, ManagedHsms, Vaults, ManagedHsmKeys, MhsmPrivateEndpointConnections, MhsmPrivateLinkResources, MhsmRegions, Keys, PrivateEndpointConnections, PrivateLinkResources, Secrets } from "./operationsInterfaces/index.js";
4
+ import type { KeyVaultManagementClientOptionalParams } from "./models/index.js";
5
5
  export declare class KeyVaultManagementClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
- subscriptionId: string;
8
7
  apiVersion: string;
8
+ subscriptionId: string;
9
9
  /**
10
10
  * Initializes a new instance of the KeyVaultManagementClient class.
11
11
  * @param credentials Subscription credentials which uniquely identify client subscription.
12
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
13
- * The subscription ID forms part of the URI for every service call.
12
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
14
13
  * @param options The parameter options
15
14
  */
16
15
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: KeyVaultManagementClientOptionalParams);
17
16
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
18
17
  private addCustomApiVersionPolicy;
19
- keys: Keys;
20
- managedHsmKeys: ManagedHsmKeys;
21
- vaults: Vaults;
22
- privateEndpointConnections: PrivateEndpointConnections;
23
- privateLinkResources: PrivateLinkResources;
18
+ operations: Operations;
24
19
  managedHsms: ManagedHsms;
20
+ vaults: Vaults;
21
+ managedHsmKeys: ManagedHsmKeys;
25
22
  mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;
26
23
  mhsmPrivateLinkResources: MhsmPrivateLinkResources;
27
24
  mhsmRegions: MhsmRegions;
28
- operations: Operations;
25
+ keys: Keys;
26
+ privateEndpointConnections: PrivateEndpointConnections;
27
+ privateLinkResources: PrivateLinkResources;
29
28
  secrets: Secrets;
30
29
  }
31
30
  //# sourceMappingURL=keyVaultManagementClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyVaultManagementClient.d.ts","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAc7C,OAAO,EACL,IAAI,EACJ,cAAc,EACd,MAAM,EACN,0BAA0B,EAC1B,oBAAoB,EACpB,WAAW,EACX,8BAA8B,EAC9B,wBAAwB,EACxB,WAAW,EACX,UAAU,EACV,OAAO,EACR,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sCAAsC,EAAE,MAAM,mBAAmB,CAAC;AAE3E,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC;IAwFlD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,IAAI,EAAE,IAAI,CAAC;IACX,cAAc,EAAE,cAAc,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,WAAW,EAAE,WAAW,CAAC;IACzB,8BAA8B,EAAE,8BAA8B,CAAC;IAC/D,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"keyVaultManagementClient.d.ts","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAclD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,MAAM,EACN,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,WAAW,EACX,IAAI,EACJ,0BAA0B,EAC1B,oBAAoB,EACpB,OAAO,EACR,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,mBAAmB,CAAC;AAEhF,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC;IAmFlD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IAwBjC,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;IAC/B,8BAA8B,EAAE,8BAA8B,CAAC;IAC/D,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1,23 +1,21 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ // Code generated by Microsoft (R) AutoRest Code Generator.
4
+ // Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
5
  import * as coreClient from "@azure/core-client";
9
6
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
- import { KeysImpl, ManagedHsmKeysImpl, VaultsImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, ManagedHsmsImpl, MhsmPrivateEndpointConnectionsImpl, MhsmPrivateLinkResourcesImpl, MhsmRegionsImpl, OperationsImpl, SecretsImpl, } from "./operations/index.js";
7
+ import { OperationsImpl, ManagedHsmsImpl, VaultsImpl, ManagedHsmKeysImpl, MhsmPrivateEndpointConnectionsImpl, MhsmPrivateLinkResourcesImpl, MhsmRegionsImpl, KeysImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, SecretsImpl, } from "./operations/index.js";
11
8
  export class KeyVaultManagementClient extends coreClient.ServiceClient {
9
+ $host;
10
+ apiVersion;
11
+ subscriptionId;
12
12
  /**
13
13
  * Initializes a new instance of the KeyVaultManagementClient class.
14
14
  * @param credentials Subscription credentials which uniquely identify client subscription.
15
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
16
- * The subscription ID forms part of the URI for every service call.
15
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
17
16
  * @param options The parameter options
18
17
  */
19
18
  constructor(credentials, subscriptionId, options) {
20
- var _a, _b, _c;
21
19
  if (credentials === undefined) {
22
20
  throw new Error("'credentials' cannot be null");
23
21
  }
@@ -32,19 +30,23 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
32
30
  requestContentType: "application/json; charset=utf-8",
33
31
  credential: credentials,
34
32
  };
35
- const packageDetails = `azsdk-js-arm-keyvault/3.2.0`;
33
+ const packageDetails = `azsdk-js-arm-keyvault/4.0.0`;
36
34
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
35
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
36
  : `${packageDetails}`;
39
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
37
+ const optionsWithDefaults = {
38
+ ...defaults,
39
+ ...options,
40
+ userAgentOptions: {
40
41
  userAgentPrefix,
41
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
42
+ },
43
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
44
+ };
42
45
  super(optionsWithDefaults);
43
46
  let bearerTokenAuthenticationPolicyFound = false;
44
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
47
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
45
48
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
46
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
47
- coreRestPipeline.bearerTokenAuthenticationPolicyName);
49
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
48
50
  }
49
51
  if (!options ||
50
52
  !options.pipeline ||
@@ -55,7 +57,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
55
57
  });
56
58
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
57
59
  credential: credentials,
58
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
60
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
59
61
  challengeCallbacks: {
60
62
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
61
63
  },
@@ -65,18 +67,17 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
65
67
  this.subscriptionId = subscriptionId;
66
68
  // Assigning values to Constant parameters
67
69
  this.$host = options.$host || "https://management.azure.com";
68
- this.apiVersion = options.apiVersion || "2024-11-01";
69
- this.keys = new KeysImpl(this);
70
- this.managedHsmKeys = new ManagedHsmKeysImpl(this);
71
- this.vaults = new VaultsImpl(this);
72
- this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
73
- this.privateLinkResources = new PrivateLinkResourcesImpl(this);
70
+ this.apiVersion = options.apiVersion || "2025-05-01";
71
+ this.operations = new OperationsImpl(this);
74
72
  this.managedHsms = new ManagedHsmsImpl(this);
75
- this.mhsmPrivateEndpointConnections =
76
- new MhsmPrivateEndpointConnectionsImpl(this);
73
+ this.vaults = new VaultsImpl(this);
74
+ this.managedHsmKeys = new ManagedHsmKeysImpl(this);
75
+ this.mhsmPrivateEndpointConnections = new MhsmPrivateEndpointConnectionsImpl(this);
77
76
  this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);
78
77
  this.mhsmRegions = new MhsmRegionsImpl(this);
79
- this.operations = new OperationsImpl(this);
78
+ this.keys = new KeysImpl(this);
79
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
80
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
80
81
  this.secrets = new SecretsImpl(this);
81
82
  this.addCustomApiVersionPolicy(options.apiVersion);
82
83
  }
@@ -105,5 +106,16 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
105
106
  };
106
107
  this.pipeline.addPolicy(apiVersionPolicy);
107
108
  }
109
+ operations;
110
+ managedHsms;
111
+ vaults;
112
+ managedHsmKeys;
113
+ mhsmPrivateEndpointConnections;
114
+ mhsmPrivateLinkResources;
115
+ mhsmRegions;
116
+ keys;
117
+ privateEndpointConnections;
118
+ privateLinkResources;
119
+ secrets;
108
120
  }
109
121
  //# sourceMappingURL=keyVaultManagementClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyVaultManagementClient.js","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n KeysImpl,\n ManagedHsmKeysImpl,\n VaultsImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n ManagedHsmsImpl,\n MhsmPrivateEndpointConnectionsImpl,\n MhsmPrivateLinkResourcesImpl,\n MhsmRegionsImpl,\n OperationsImpl,\n SecretsImpl,\n} from \"./operations/index.js\";\nimport {\n Keys,\n ManagedHsmKeys,\n Vaults,\n PrivateEndpointConnections,\n PrivateLinkResources,\n ManagedHsms,\n MhsmPrivateEndpointConnections,\n MhsmPrivateLinkResources,\n MhsmRegions,\n Operations,\n Secrets,\n} from \"./operationsInterfaces/index.js\";\nimport { KeyVaultManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class KeyVaultManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the KeyVaultManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.\n * The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: KeyVaultManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: KeyVaultManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-keyvault/3.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-11-01\";\n this.keys = new KeysImpl(this);\n this.managedHsmKeys = new ManagedHsmKeysImpl(this);\n this.vaults = new VaultsImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.managedHsms = new ManagedHsmsImpl(this);\n this.mhsmPrivateEndpointConnections =\n new MhsmPrivateEndpointConnectionsImpl(this);\n this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);\n this.mhsmRegions = new MhsmRegionsImpl(this);\n this.operations = new OperationsImpl(this);\n this.secrets = new SecretsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n keys: Keys;\n managedHsmKeys: ManagedHsmKeys;\n vaults: Vaults;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n managedHsms: ManagedHsms;\n mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;\n mhsmPrivateLinkResources: MhsmPrivateLinkResources;\n mhsmRegions: MhsmRegions;\n operations: Operations;\n secrets: Secrets;\n}\n"]}
1
+ {"version":3,"file":"keyVaultManagementClient.js","sourceRoot":"","sources":["../../src/keyVaultManagementClient.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n ManagedHsmsImpl,\n VaultsImpl,\n ManagedHsmKeysImpl,\n MhsmPrivateEndpointConnectionsImpl,\n MhsmPrivateLinkResourcesImpl,\n MhsmRegionsImpl,\n KeysImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n SecretsImpl,\n} from \"./operations/index.js\";\nimport type {\n Operations,\n ManagedHsms,\n Vaults,\n ManagedHsmKeys,\n MhsmPrivateEndpointConnections,\n MhsmPrivateLinkResources,\n MhsmRegions,\n Keys,\n PrivateEndpointConnections,\n PrivateLinkResources,\n Secrets,\n} from \"./operationsInterfaces/index.js\";\nimport type { KeyVaultManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class KeyVaultManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the KeyVaultManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: KeyVaultManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: KeyVaultManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-keyvault/4.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-05-01\";\n this.operations = new OperationsImpl(this);\n this.managedHsms = new ManagedHsmsImpl(this);\n this.vaults = new VaultsImpl(this);\n this.managedHsmKeys = new ManagedHsmKeysImpl(this);\n this.mhsmPrivateEndpointConnections = new MhsmPrivateEndpointConnectionsImpl(this);\n this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);\n this.mhsmRegions = new MhsmRegionsImpl(this);\n this.keys = new KeysImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.secrets = new SecretsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n managedHsms: ManagedHsms;\n vaults: Vaults;\n managedHsmKeys: ManagedHsmKeys;\n mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;\n mhsmPrivateLinkResources: MhsmPrivateLinkResources;\n mhsmRegions: MhsmRegions;\n keys: Keys;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n secrets: Secrets;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { LongRunningOperation, LroResponse } from "@azure/core-lro";
1
+ import type { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
2
  export declare function createLroSpec<T>(inputs: {
3
3
  sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
4
  args: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEzE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAgB1B"}
@@ -1,11 +1,5 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __rest } from "tslib";
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
9
3
  export function createLroSpec(inputs) {
10
4
  const { args, spec, sendOperationFn } = inputs;
11
5
  return {
@@ -13,8 +7,13 @@ export function createLroSpec(inputs) {
13
7
  requestPath: spec.path,
14
8
  sendInitialRequest: () => sendOperationFn(args, spec),
15
9
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
10
+ const { requestBody, ...restSpec } = spec;
11
+ return sendOperationFn(args, {
12
+ ...restSpec,
13
+ httpMethod: "GET",
14
+ path,
15
+ abortSignal: options?.abortSignal,
16
+ });
18
17
  },
19
18
  };
20
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}