@azure/arm-keyvault-profile-2020-09-01-hybrid 2.1.1-alpha.20250210.1 → 2.1.1-alpha.20250211.2

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