@azure/arm-confidentialledger 1.3.0-beta.1 → 1.3.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/CHANGELOG.md +130 -4
  2. package/LICENSE +3 -3
  3. package/README.md +24 -18
  4. package/{dist-esm/src → dist/browser}/confidentialLedgerClient.d.ts +2 -2
  5. package/dist/browser/confidentialLedgerClient.d.ts.map +1 -0
  6. package/{dist-esm/src → dist/browser}/confidentialLedgerClient.js +29 -32
  7. package/dist/browser/confidentialLedgerClient.js.map +1 -0
  8. package/dist/browser/index.d.ts +5 -0
  9. package/dist/browser/index.d.ts.map +1 -0
  10. package/{dist-esm/src → dist/browser}/index.js +4 -4
  11. package/dist/browser/index.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
  13. package/{dist-esm/src → dist/browser}/lroImpl.js +1 -1
  14. package/dist/browser/lroImpl.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/index.d.ts +199 -24
  16. package/dist/browser/models/index.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/index.js +26 -0
  18. package/dist/browser/models/index.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/models/mappers.d.ts +8 -0
  20. package/dist/browser/models/mappers.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/models/mappers.js +439 -213
  22. package/dist/browser/models/mappers.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/models/parameters.d.ts +4 -0
  24. package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
  25. package/{dist-esm/src → dist/browser}/models/parameters.js +55 -39
  26. package/dist/browser/models/parameters.js.map +1 -0
  27. package/dist/browser/operations/index.d.ts +4 -0
  28. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  29. package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
  30. package/dist/browser/operations/index.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/ledger.d.ts +35 -3
  32. package/dist/browser/operations/ledger.d.ts.map +1 -0
  33. package/dist/browser/operations/ledger.js +702 -0
  34. package/dist/browser/operations/ledger.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/managedCCFOperations.d.ts +37 -5
  36. package/dist/browser/operations/managedCCFOperations.d.ts.map +1 -0
  37. package/dist/browser/operations/managedCCFOperations.js +702 -0
  38. package/dist/browser/operations/managedCCFOperations.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  40. package/dist/browser/operations/operations.d.ts.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/operations.js +18 -16
  42. package/dist/browser/operations/operations.js.map +1 -0
  43. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  45. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
  46. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/ledger.d.ts +33 -1
  48. package/dist/browser/operationsInterfaces/ledger.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/ledger.js.map +1 -0
  50. package/{dist-esm/src → dist/browser}/operationsInterfaces/managedCCFOperations.d.ts +35 -3
  51. package/dist/browser/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
  52. package/dist/browser/operationsInterfaces/managedCCFOperations.js.map +1 -0
  53. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  55. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  56. package/dist/browser/package.json +3 -0
  57. package/dist/browser/pagingHelper.js.map +1 -0
  58. package/dist/commonjs/confidentialLedgerClient.d.ts +28 -0
  59. package/dist/commonjs/confidentialLedgerClient.d.ts.map +1 -0
  60. package/dist/commonjs/confidentialLedgerClient.js +134 -0
  61. package/dist/commonjs/confidentialLedgerClient.js.map +1 -0
  62. package/dist/commonjs/index.d.ts +5 -0
  63. package/dist/commonjs/index.d.ts.map +1 -0
  64. package/dist/commonjs/index.js +19 -0
  65. package/dist/commonjs/index.js.map +1 -0
  66. package/dist/commonjs/lroImpl.d.ts +11 -0
  67. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  68. package/dist/commonjs/lroImpl.js +24 -0
  69. package/dist/commonjs/lroImpl.js.map +1 -0
  70. package/{types/arm-confidentialledger.d.ts → dist/commonjs/models/index.d.ts} +725 -805
  71. package/dist/commonjs/models/index.d.ts.map +1 -0
  72. package/dist/commonjs/models/index.js +117 -0
  73. package/dist/commonjs/models/index.js.map +1 -0
  74. package/dist/commonjs/models/mappers.d.ts +32 -0
  75. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  76. package/dist/commonjs/models/mappers.js +888 -0
  77. package/dist/commonjs/models/mappers.js.map +1 -0
  78. package/dist/commonjs/models/parameters.d.ts +19 -0
  79. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  80. package/dist/commonjs/models/parameters.js +157 -0
  81. package/dist/commonjs/models/parameters.js.map +1 -0
  82. package/dist/commonjs/operations/index.d.ts +4 -0
  83. package/dist/commonjs/operations/index.d.ts.map +1 -0
  84. package/dist/commonjs/operations/index.js +14 -0
  85. package/dist/commonjs/operations/index.js.map +1 -0
  86. package/dist/commonjs/operations/ledger.d.ts +139 -0
  87. package/dist/commonjs/operations/ledger.d.ts.map +1 -0
  88. package/dist/commonjs/operations/ledger.js +706 -0
  89. package/dist/commonjs/operations/ledger.js.map +1 -0
  90. package/dist/commonjs/operations/managedCCFOperations.d.ts +139 -0
  91. package/dist/commonjs/operations/managedCCFOperations.d.ts.map +1 -0
  92. package/dist/commonjs/operations/managedCCFOperations.js +706 -0
  93. package/dist/commonjs/operations/managedCCFOperations.js.map +1 -0
  94. package/dist/commonjs/operations/operations.d.ts +32 -0
  95. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  96. package/dist/commonjs/operations/operations.js +137 -0
  97. package/dist/commonjs/operations/operations.js.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  99. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  101. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/ledger.d.ts +103 -0
  103. package/dist/commonjs/operationsInterfaces/ledger.d.ts.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/ledger.js +10 -0
  105. package/dist/commonjs/operationsInterfaces/ledger.js.map +1 -0
  106. package/dist/commonjs/operationsInterfaces/managedCCFOperations.d.ts +103 -0
  107. package/dist/commonjs/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
  108. package/dist/commonjs/operationsInterfaces/managedCCFOperations.js +10 -0
  109. package/dist/commonjs/operationsInterfaces/managedCCFOperations.js.map +1 -0
  110. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  111. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  113. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  114. package/dist/commonjs/package.json +3 -0
  115. package/dist/commonjs/pagingHelper.d.ts +13 -0
  116. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  117. package/dist/commonjs/pagingHelper.js +36 -0
  118. package/dist/commonjs/pagingHelper.js.map +1 -0
  119. package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
  120. package/dist/esm/confidentialLedgerClient.d.ts +28 -0
  121. package/dist/esm/confidentialLedgerClient.d.ts.map +1 -0
  122. package/dist/esm/confidentialLedgerClient.js +129 -0
  123. package/dist/esm/confidentialLedgerClient.js.map +1 -0
  124. package/dist/esm/index.d.ts +5 -0
  125. package/dist/esm/index.d.ts.map +1 -0
  126. package/{src/index.ts → dist/esm/index.js} +5 -5
  127. package/dist/esm/index.js.map +1 -0
  128. package/dist/esm/lroImpl.d.ts +11 -0
  129. package/dist/esm/lroImpl.d.ts.map +1 -0
  130. package/dist/esm/lroImpl.js +21 -0
  131. package/dist/esm/lroImpl.js.map +1 -0
  132. package/dist/esm/models/index.d.ts +725 -0
  133. package/dist/esm/models/index.d.ts.map +1 -0
  134. package/dist/esm/models/index.js +114 -0
  135. package/dist/esm/models/index.js.map +1 -0
  136. package/dist/esm/models/mappers.d.ts +32 -0
  137. package/dist/esm/models/mappers.d.ts.map +1 -0
  138. package/dist/esm/models/mappers.js +885 -0
  139. package/dist/esm/models/mappers.js.map +1 -0
  140. package/dist/esm/models/parameters.d.ts +19 -0
  141. package/dist/esm/models/parameters.d.ts.map +1 -0
  142. package/dist/esm/models/parameters.js +154 -0
  143. package/dist/esm/models/parameters.js.map +1 -0
  144. package/dist/esm/operations/index.d.ts +4 -0
  145. package/dist/esm/operations/index.d.ts.map +1 -0
  146. package/dist/esm/operations/index.js +11 -0
  147. package/dist/esm/operations/index.js.map +1 -0
  148. package/dist/esm/operations/ledger.d.ts +139 -0
  149. package/dist/esm/operations/ledger.d.ts.map +1 -0
  150. package/dist/esm/operations/ledger.js +702 -0
  151. package/dist/esm/operations/ledger.js.map +1 -0
  152. package/dist/esm/operations/managedCCFOperations.d.ts +139 -0
  153. package/dist/esm/operations/managedCCFOperations.d.ts.map +1 -0
  154. package/dist/esm/operations/managedCCFOperations.js +702 -0
  155. package/dist/esm/operations/managedCCFOperations.js.map +1 -0
  156. package/dist/esm/operations/operations.d.ts +32 -0
  157. package/dist/esm/operations/operations.d.ts.map +1 -0
  158. package/dist/esm/operations/operations.js +133 -0
  159. package/dist/esm/operations/operations.js.map +1 -0
  160. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  161. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  162. package/dist/esm/operationsInterfaces/index.js +11 -0
  163. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  164. package/dist/esm/operationsInterfaces/ledger.d.ts +103 -0
  165. package/dist/esm/operationsInterfaces/ledger.d.ts.map +1 -0
  166. package/{src/operations/index.ts → dist/esm/operationsInterfaces/ledger.js} +2 -4
  167. package/dist/esm/operationsInterfaces/ledger.js.map +1 -0
  168. package/dist/esm/operationsInterfaces/managedCCFOperations.d.ts +103 -0
  169. package/dist/esm/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
  170. package/dist/esm/operationsInterfaces/managedCCFOperations.js +9 -0
  171. package/dist/esm/operationsInterfaces/managedCCFOperations.js.map +1 -0
  172. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  173. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  174. package/dist/esm/operationsInterfaces/operations.js +9 -0
  175. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  176. package/dist/esm/package.json +3 -0
  177. package/dist/esm/pagingHelper.d.ts +13 -0
  178. package/dist/esm/pagingHelper.d.ts.map +1 -0
  179. package/dist/esm/pagingHelper.js +32 -0
  180. package/dist/esm/pagingHelper.js.map +1 -0
  181. package/dist/react-native/confidentialLedgerClient.d.ts +28 -0
  182. package/dist/react-native/confidentialLedgerClient.d.ts.map +1 -0
  183. package/dist/react-native/confidentialLedgerClient.js +129 -0
  184. package/dist/react-native/confidentialLedgerClient.js.map +1 -0
  185. package/dist/react-native/index.d.ts +5 -0
  186. package/dist/react-native/index.d.ts.map +1 -0
  187. package/dist/react-native/index.js +13 -0
  188. package/dist/react-native/index.js.map +1 -0
  189. package/dist/react-native/lroImpl.d.ts +11 -0
  190. package/dist/react-native/lroImpl.d.ts.map +1 -0
  191. package/dist/react-native/lroImpl.js +21 -0
  192. package/dist/react-native/lroImpl.js.map +1 -0
  193. package/dist/react-native/models/index.d.ts +725 -0
  194. package/dist/react-native/models/index.d.ts.map +1 -0
  195. package/dist/react-native/models/index.js +114 -0
  196. package/dist/react-native/models/index.js.map +1 -0
  197. package/dist/react-native/models/mappers.d.ts +32 -0
  198. package/dist/react-native/models/mappers.d.ts.map +1 -0
  199. package/dist/react-native/models/mappers.js +885 -0
  200. package/dist/react-native/models/mappers.js.map +1 -0
  201. package/dist/react-native/models/parameters.d.ts +19 -0
  202. package/dist/react-native/models/parameters.d.ts.map +1 -0
  203. package/dist/react-native/models/parameters.js +154 -0
  204. package/dist/react-native/models/parameters.js.map +1 -0
  205. package/dist/react-native/operations/index.d.ts +4 -0
  206. package/dist/react-native/operations/index.d.ts.map +1 -0
  207. package/dist/react-native/operations/index.js +11 -0
  208. package/dist/react-native/operations/index.js.map +1 -0
  209. package/dist/react-native/operations/ledger.d.ts +139 -0
  210. package/dist/react-native/operations/ledger.d.ts.map +1 -0
  211. package/dist/react-native/operations/ledger.js +702 -0
  212. package/dist/react-native/operations/ledger.js.map +1 -0
  213. package/dist/react-native/operations/managedCCFOperations.d.ts +139 -0
  214. package/dist/react-native/operations/managedCCFOperations.d.ts.map +1 -0
  215. package/dist/react-native/operations/managedCCFOperations.js +702 -0
  216. package/dist/react-native/operations/managedCCFOperations.js.map +1 -0
  217. package/dist/react-native/operations/operations.d.ts +32 -0
  218. package/dist/react-native/operations/operations.d.ts.map +1 -0
  219. package/dist/react-native/operations/operations.js +133 -0
  220. package/dist/react-native/operations/operations.js.map +1 -0
  221. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  222. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  223. package/dist/react-native/operationsInterfaces/index.js +11 -0
  224. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  225. package/dist/react-native/operationsInterfaces/ledger.d.ts +103 -0
  226. package/dist/react-native/operationsInterfaces/ledger.d.ts.map +1 -0
  227. package/dist/react-native/operationsInterfaces/ledger.js +9 -0
  228. package/dist/react-native/operationsInterfaces/ledger.js.map +1 -0
  229. package/dist/react-native/operationsInterfaces/managedCCFOperations.d.ts +103 -0
  230. package/dist/react-native/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
  231. package/dist/react-native/operationsInterfaces/managedCCFOperations.js +9 -0
  232. package/dist/react-native/operationsInterfaces/managedCCFOperations.js.map +1 -0
  233. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  234. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  235. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  236. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  237. package/dist/react-native/package.json +3 -0
  238. package/dist/react-native/pagingHelper.d.ts +13 -0
  239. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  240. package/dist/react-native/pagingHelper.js +32 -0
  241. package/dist/react-native/pagingHelper.js.map +1 -0
  242. package/package.json +81 -71
  243. package/review/arm-confidentialledger.api.md +134 -2
  244. package/dist/index.js +0 -2305
  245. package/dist/index.js.map +0 -1
  246. package/dist/index.min.js +0 -1
  247. package/dist/index.min.js.map +0 -1
  248. package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +0 -2
  249. package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +0 -1
  250. package/dist-esm/samples-dev/checkNameAvailabilitySample.js +0 -41
  251. package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +0 -1
  252. package/dist-esm/samples-dev/ledgerCreateSample.d.ts +0 -2
  253. package/dist-esm/samples-dev/ledgerCreateSample.d.ts.map +0 -1
  254. package/dist-esm/samples-dev/ledgerCreateSample.js +0 -60
  255. package/dist-esm/samples-dev/ledgerCreateSample.js.map +0 -1
  256. package/dist-esm/samples-dev/ledgerDeleteSample.d.ts +0 -2
  257. package/dist-esm/samples-dev/ledgerDeleteSample.d.ts.map +0 -1
  258. package/dist-esm/samples-dev/ledgerDeleteSample.js +0 -40
  259. package/dist-esm/samples-dev/ledgerDeleteSample.js.map +0 -1
  260. package/dist-esm/samples-dev/ledgerGetSample.d.ts +0 -2
  261. package/dist-esm/samples-dev/ledgerGetSample.d.ts.map +0 -1
  262. package/dist-esm/samples-dev/ledgerGetSample.js +0 -40
  263. package/dist-esm/samples-dev/ledgerGetSample.js.map +0 -1
  264. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.d.ts +0 -2
  265. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.d.ts.map +0 -1
  266. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +0 -53
  267. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +0 -1
  268. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.d.ts +0 -2
  269. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.d.ts.map +0 -1
  270. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +0 -51
  271. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +0 -1
  272. package/dist-esm/samples-dev/ledgerUpdateSample.d.ts +0 -2
  273. package/dist-esm/samples-dev/ledgerUpdateSample.d.ts.map +0 -1
  274. package/dist-esm/samples-dev/ledgerUpdateSample.js +0 -63
  275. package/dist-esm/samples-dev/ledgerUpdateSample.js.map +0 -1
  276. package/dist-esm/samples-dev/managedCcfCreateSample.d.ts +0 -2
  277. package/dist-esm/samples-dev/managedCcfCreateSample.d.ts.map +0 -1
  278. package/dist-esm/samples-dev/managedCcfCreateSample.js +0 -58
  279. package/dist-esm/samples-dev/managedCcfCreateSample.js.map +0 -1
  280. package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts +0 -2
  281. package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts.map +0 -1
  282. package/dist-esm/samples-dev/managedCcfDeleteSample.js +0 -40
  283. package/dist-esm/samples-dev/managedCcfDeleteSample.js.map +0 -1
  284. package/dist-esm/samples-dev/managedCcfGetSample.d.ts +0 -2
  285. package/dist-esm/samples-dev/managedCcfGetSample.d.ts.map +0 -1
  286. package/dist-esm/samples-dev/managedCcfGetSample.js +0 -40
  287. package/dist-esm/samples-dev/managedCcfGetSample.js.map +0 -1
  288. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts +0 -2
  289. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts.map +0 -1
  290. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +0 -53
  291. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +0 -1
  292. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts +0 -2
  293. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts.map +0 -1
  294. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +0 -51
  295. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +0 -1
  296. package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts +0 -2
  297. package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts.map +0 -1
  298. package/dist-esm/samples-dev/managedCcfUpdateSample.js +0 -50
  299. package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +0 -1
  300. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  301. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  302. package/dist-esm/samples-dev/operationsListSample.js +0 -51
  303. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  304. package/dist-esm/src/confidentialLedgerClient.d.ts.map +0 -1
  305. package/dist-esm/src/confidentialLedgerClient.js.map +0 -1
  306. package/dist-esm/src/index.d.ts +0 -6
  307. package/dist-esm/src/index.d.ts.map +0 -1
  308. package/dist-esm/src/index.js.map +0 -1
  309. package/dist-esm/src/lroImpl.js.map +0 -1
  310. package/dist-esm/src/models/index.d.ts.map +0 -1
  311. package/dist-esm/src/models/index.js.map +0 -1
  312. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  313. package/dist-esm/src/models/mappers.js.map +0 -1
  314. package/dist-esm/src/models/parameters.js.map +0 -1
  315. package/dist-esm/src/operations/index.d.ts +0 -4
  316. package/dist-esm/src/operations/index.js.map +0 -1
  317. package/dist-esm/src/operations/ledger.d.ts.map +0 -1
  318. package/dist-esm/src/operations/ledger.js +0 -540
  319. package/dist-esm/src/operations/ledger.js.map +0 -1
  320. package/dist-esm/src/operations/managedCCFOperations.d.ts.map +0 -1
  321. package/dist-esm/src/operations/managedCCFOperations.js +0 -532
  322. package/dist-esm/src/operations/managedCCFOperations.js.map +0 -1
  323. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  324. package/dist-esm/src/operations/operations.js.map +0 -1
  325. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  326. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  327. package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +0 -1
  328. package/dist-esm/src/operationsInterfaces/ledger.js.map +0 -1
  329. package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +0 -1
  330. package/dist-esm/src/operationsInterfaces/managedCCFOperations.js.map +0 -1
  331. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  332. package/dist-esm/src/pagingHelper.js.map +0 -1
  333. package/dist-esm/test/sampleTest.d.ts +0 -2
  334. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  335. package/dist-esm/test/sampleTest.js +0 -38
  336. package/dist-esm/test/sampleTest.js.map +0 -1
  337. package/rollup.config.js +0 -122
  338. package/src/confidentialLedgerClient.ts +0 -196
  339. package/src/lroImpl.ts +0 -42
  340. package/src/models/index.ts +0 -635
  341. package/src/models/mappers.ts +0 -692
  342. package/src/models/parameters.ts +0 -160
  343. package/src/operations/ledger.ts +0 -711
  344. package/src/operations/managedCCFOperations.ts +0 -696
  345. package/src/operations/operations.ts +0 -149
  346. package/src/operationsInterfaces/index.ts +0 -11
  347. package/src/operationsInterfaces/ledger.ts +0 -132
  348. package/src/operationsInterfaces/managedCCFOperations.ts +0 -132
  349. package/src/operationsInterfaces/operations.ts +0 -25
  350. package/src/pagingHelper.ts +0 -39
  351. package/tsconfig.json +0 -33
  352. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  353. /package/{dist-esm/src → dist/browser}/operationsInterfaces/ledger.js +0 -0
  354. /package/{dist-esm/src → dist/browser}/operationsInterfaces/managedCCFOperations.js +0 -0
  355. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  356. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  357. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  358. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/dist/index.js DELETED
@@ -1,2305 +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 _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n["default"] = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
-
31
- /*
32
- * Copyright (c) Microsoft Corporation.
33
- * Licensed under the MIT License.
34
- *
35
- * Code generated by Microsoft (R) AutoRest Code Generator.
36
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
- */
38
- const pageMap = new WeakMap();
39
- /**
40
- * Given the last `.value` produced by the `byPage` iterator,
41
- * returns a continuation token that can be used to begin paging from
42
- * that point later.
43
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
44
- * @returns The continuation token that can be passed into byPage() during future calls.
45
- */
46
- function getContinuationToken(page) {
47
- var _a;
48
- if (typeof page !== "object" || page === null) {
49
- return undefined;
50
- }
51
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
- }
53
- function setContinuationToken(page, continuationToken) {
54
- var _a;
55
- if (typeof page !== "object" || page === null || !continuationToken) {
56
- return;
57
- }
58
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
- pageInfo.continuationToken = continuationToken;
60
- pageMap.set(page, pageInfo);
61
- }
62
-
63
- /*
64
- * Copyright (c) Microsoft Corporation.
65
- * Licensed under the MIT License.
66
- *
67
- * Code generated by Microsoft (R) AutoRest Code Generator.
68
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
69
- */
70
- /** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
71
- exports.KnownCheckNameAvailabilityReason = void 0;
72
- (function (KnownCheckNameAvailabilityReason) {
73
- /** Invalid */
74
- KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
75
- /** AlreadyExists */
76
- KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
77
- })(exports.KnownCheckNameAvailabilityReason || (exports.KnownCheckNameAvailabilityReason = {}));
78
- /** Known values of {@link RunningState} that the service accepts. */
79
- exports.KnownRunningState = void 0;
80
- (function (KnownRunningState) {
81
- /** Active */
82
- KnownRunningState["Active"] = "Active";
83
- /** Paused */
84
- KnownRunningState["Paused"] = "Paused";
85
- /** Unknown */
86
- KnownRunningState["Unknown"] = "Unknown";
87
- /** Pausing */
88
- KnownRunningState["Pausing"] = "Pausing";
89
- /** Resuming */
90
- KnownRunningState["Resuming"] = "Resuming";
91
- })(exports.KnownRunningState || (exports.KnownRunningState = {}));
92
- /** Known values of {@link LedgerType} that the service accepts. */
93
- exports.KnownLedgerType = void 0;
94
- (function (KnownLedgerType) {
95
- /** Unknown */
96
- KnownLedgerType["Unknown"] = "Unknown";
97
- /** Public */
98
- KnownLedgerType["Public"] = "Public";
99
- /** Private */
100
- KnownLedgerType["Private"] = "Private";
101
- })(exports.KnownLedgerType || (exports.KnownLedgerType = {}));
102
- /** Known values of {@link ProvisioningState} that the service accepts. */
103
- exports.KnownProvisioningState = void 0;
104
- (function (KnownProvisioningState) {
105
- /** Unknown */
106
- KnownProvisioningState["Unknown"] = "Unknown";
107
- /** Succeeded */
108
- KnownProvisioningState["Succeeded"] = "Succeeded";
109
- /** Failed */
110
- KnownProvisioningState["Failed"] = "Failed";
111
- /** Canceled */
112
- KnownProvisioningState["Canceled"] = "Canceled";
113
- /** Creating */
114
- KnownProvisioningState["Creating"] = "Creating";
115
- /** Deleting */
116
- KnownProvisioningState["Deleting"] = "Deleting";
117
- /** Updating */
118
- KnownProvisioningState["Updating"] = "Updating";
119
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
120
- /** Known values of {@link LedgerRoleName} that the service accepts. */
121
- exports.KnownLedgerRoleName = void 0;
122
- (function (KnownLedgerRoleName) {
123
- /** Reader */
124
- KnownLedgerRoleName["Reader"] = "Reader";
125
- /** Contributor */
126
- KnownLedgerRoleName["Contributor"] = "Contributor";
127
- /** Administrator */
128
- KnownLedgerRoleName["Administrator"] = "Administrator";
129
- })(exports.KnownLedgerRoleName || (exports.KnownLedgerRoleName = {}));
130
- /** Known values of {@link CreatedByType} that the service accepts. */
131
- exports.KnownCreatedByType = void 0;
132
- (function (KnownCreatedByType) {
133
- /** User */
134
- KnownCreatedByType["User"] = "User";
135
- /** Application */
136
- KnownCreatedByType["Application"] = "Application";
137
- /** ManagedIdentity */
138
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
139
- /** Key */
140
- KnownCreatedByType["Key"] = "Key";
141
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
142
- /** Known values of {@link LanguageRuntime} that the service accepts. */
143
- exports.KnownLanguageRuntime = void 0;
144
- (function (KnownLanguageRuntime) {
145
- /** CPP */
146
- KnownLanguageRuntime["CPP"] = "CPP";
147
- /** JS */
148
- KnownLanguageRuntime["JS"] = "JS";
149
- })(exports.KnownLanguageRuntime || (exports.KnownLanguageRuntime = {}));
150
-
151
- /*
152
- * Copyright (c) Microsoft Corporation.
153
- * Licensed under the MIT License.
154
- *
155
- * Code generated by Microsoft (R) AutoRest Code Generator.
156
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
157
- */
158
- const ResourceProviderOperationList = {
159
- type: {
160
- name: "Composite",
161
- className: "ResourceProviderOperationList",
162
- modelProperties: {
163
- value: {
164
- serializedName: "value",
165
- readOnly: true,
166
- type: {
167
- name: "Sequence",
168
- element: {
169
- type: {
170
- name: "Composite",
171
- className: "ResourceProviderOperationDefinition"
172
- }
173
- }
174
- }
175
- },
176
- nextLink: {
177
- serializedName: "nextLink",
178
- readOnly: true,
179
- type: {
180
- name: "String"
181
- }
182
- }
183
- }
184
- }
185
- };
186
- const ResourceProviderOperationDefinition = {
187
- type: {
188
- name: "Composite",
189
- className: "ResourceProviderOperationDefinition",
190
- modelProperties: {
191
- name: {
192
- serializedName: "name",
193
- type: {
194
- name: "String"
195
- }
196
- },
197
- isDataAction: {
198
- serializedName: "isDataAction",
199
- type: {
200
- name: "Boolean"
201
- }
202
- },
203
- display: {
204
- serializedName: "display",
205
- type: {
206
- name: "Composite",
207
- className: "ResourceProviderOperationDisplay"
208
- }
209
- }
210
- }
211
- }
212
- };
213
- const ResourceProviderOperationDisplay = {
214
- type: {
215
- name: "Composite",
216
- className: "ResourceProviderOperationDisplay",
217
- modelProperties: {
218
- provider: {
219
- serializedName: "provider",
220
- type: {
221
- name: "String"
222
- }
223
- },
224
- resource: {
225
- serializedName: "resource",
226
- type: {
227
- name: "String"
228
- }
229
- },
230
- operation: {
231
- serializedName: "operation",
232
- type: {
233
- name: "String"
234
- }
235
- },
236
- description: {
237
- serializedName: "description",
238
- type: {
239
- name: "String"
240
- }
241
- }
242
- }
243
- }
244
- };
245
- const ErrorResponse = {
246
- type: {
247
- name: "Composite",
248
- className: "ErrorResponse",
249
- modelProperties: {
250
- error: {
251
- serializedName: "error",
252
- type: {
253
- name: "Composite",
254
- className: "ErrorDetail"
255
- }
256
- }
257
- }
258
- }
259
- };
260
- const ErrorDetail = {
261
- type: {
262
- name: "Composite",
263
- className: "ErrorDetail",
264
- modelProperties: {
265
- code: {
266
- serializedName: "code",
267
- readOnly: true,
268
- type: {
269
- name: "String"
270
- }
271
- },
272
- message: {
273
- serializedName: "message",
274
- readOnly: true,
275
- type: {
276
- name: "String"
277
- }
278
- },
279
- target: {
280
- serializedName: "target",
281
- readOnly: true,
282
- type: {
283
- name: "String"
284
- }
285
- },
286
- details: {
287
- serializedName: "details",
288
- readOnly: true,
289
- type: {
290
- name: "Sequence",
291
- element: {
292
- type: {
293
- name: "Composite",
294
- className: "ErrorDetail"
295
- }
296
- }
297
- }
298
- },
299
- additionalInfo: {
300
- serializedName: "additionalInfo",
301
- readOnly: true,
302
- type: {
303
- name: "Sequence",
304
- element: {
305
- type: {
306
- name: "Composite",
307
- className: "ErrorAdditionalInfo"
308
- }
309
- }
310
- }
311
- }
312
- }
313
- }
314
- };
315
- const ErrorAdditionalInfo = {
316
- type: {
317
- name: "Composite",
318
- className: "ErrorAdditionalInfo",
319
- modelProperties: {
320
- type: {
321
- serializedName: "type",
322
- readOnly: true,
323
- type: {
324
- name: "String"
325
- }
326
- },
327
- info: {
328
- serializedName: "info",
329
- readOnly: true,
330
- type: {
331
- name: "Dictionary",
332
- value: { type: { name: "any" } }
333
- }
334
- }
335
- }
336
- }
337
- };
338
- const CheckNameAvailabilityRequest = {
339
- type: {
340
- name: "Composite",
341
- className: "CheckNameAvailabilityRequest",
342
- modelProperties: {
343
- name: {
344
- serializedName: "name",
345
- type: {
346
- name: "String"
347
- }
348
- },
349
- type: {
350
- serializedName: "type",
351
- type: {
352
- name: "String"
353
- }
354
- }
355
- }
356
- }
357
- };
358
- const CheckNameAvailabilityResponse = {
359
- type: {
360
- name: "Composite",
361
- className: "CheckNameAvailabilityResponse",
362
- modelProperties: {
363
- nameAvailable: {
364
- serializedName: "nameAvailable",
365
- type: {
366
- name: "Boolean"
367
- }
368
- },
369
- reason: {
370
- serializedName: "reason",
371
- type: {
372
- name: "String"
373
- }
374
- },
375
- message: {
376
- serializedName: "message",
377
- type: {
378
- name: "String"
379
- }
380
- }
381
- }
382
- }
383
- };
384
- const LedgerProperties = {
385
- type: {
386
- name: "Composite",
387
- className: "LedgerProperties",
388
- modelProperties: {
389
- ledgerName: {
390
- serializedName: "ledgerName",
391
- readOnly: true,
392
- type: {
393
- name: "String"
394
- }
395
- },
396
- ledgerUri: {
397
- serializedName: "ledgerUri",
398
- readOnly: true,
399
- type: {
400
- name: "String"
401
- }
402
- },
403
- identityServiceUri: {
404
- serializedName: "identityServiceUri",
405
- readOnly: true,
406
- type: {
407
- name: "String"
408
- }
409
- },
410
- ledgerInternalNamespace: {
411
- serializedName: "ledgerInternalNamespace",
412
- readOnly: true,
413
- type: {
414
- name: "String"
415
- }
416
- },
417
- runningState: {
418
- serializedName: "runningState",
419
- type: {
420
- name: "String"
421
- }
422
- },
423
- ledgerType: {
424
- serializedName: "ledgerType",
425
- type: {
426
- name: "String"
427
- }
428
- },
429
- provisioningState: {
430
- serializedName: "provisioningState",
431
- readOnly: true,
432
- type: {
433
- name: "String"
434
- }
435
- },
436
- aadBasedSecurityPrincipals: {
437
- serializedName: "aadBasedSecurityPrincipals",
438
- type: {
439
- name: "Sequence",
440
- element: {
441
- type: {
442
- name: "Composite",
443
- className: "AADBasedSecurityPrincipal"
444
- }
445
- }
446
- }
447
- },
448
- certBasedSecurityPrincipals: {
449
- serializedName: "certBasedSecurityPrincipals",
450
- type: {
451
- name: "Sequence",
452
- element: {
453
- type: {
454
- name: "Composite",
455
- className: "CertBasedSecurityPrincipal"
456
- }
457
- }
458
- }
459
- }
460
- }
461
- }
462
- };
463
- const AADBasedSecurityPrincipal = {
464
- type: {
465
- name: "Composite",
466
- className: "AADBasedSecurityPrincipal",
467
- modelProperties: {
468
- principalId: {
469
- serializedName: "principalId",
470
- type: {
471
- name: "String"
472
- }
473
- },
474
- tenantId: {
475
- serializedName: "tenantId",
476
- type: {
477
- name: "String"
478
- }
479
- },
480
- ledgerRoleName: {
481
- serializedName: "ledgerRoleName",
482
- type: {
483
- name: "String"
484
- }
485
- }
486
- }
487
- }
488
- };
489
- const CertBasedSecurityPrincipal = {
490
- type: {
491
- name: "Composite",
492
- className: "CertBasedSecurityPrincipal",
493
- modelProperties: {
494
- cert: {
495
- serializedName: "cert",
496
- type: {
497
- name: "String"
498
- }
499
- },
500
- ledgerRoleName: {
501
- serializedName: "ledgerRoleName",
502
- type: {
503
- name: "String"
504
- }
505
- }
506
- }
507
- }
508
- };
509
- const Resource = {
510
- type: {
511
- name: "Composite",
512
- className: "Resource",
513
- modelProperties: {
514
- id: {
515
- serializedName: "id",
516
- readOnly: true,
517
- type: {
518
- name: "String"
519
- }
520
- },
521
- name: {
522
- serializedName: "name",
523
- readOnly: true,
524
- type: {
525
- name: "String"
526
- }
527
- },
528
- type: {
529
- serializedName: "type",
530
- readOnly: true,
531
- type: {
532
- name: "String"
533
- }
534
- },
535
- systemData: {
536
- serializedName: "systemData",
537
- type: {
538
- name: "Composite",
539
- className: "SystemData"
540
- }
541
- }
542
- }
543
- }
544
- };
545
- const SystemData = {
546
- type: {
547
- name: "Composite",
548
- className: "SystemData",
549
- modelProperties: {
550
- createdBy: {
551
- serializedName: "createdBy",
552
- type: {
553
- name: "String"
554
- }
555
- },
556
- createdByType: {
557
- serializedName: "createdByType",
558
- type: {
559
- name: "String"
560
- }
561
- },
562
- createdAt: {
563
- serializedName: "createdAt",
564
- type: {
565
- name: "DateTime"
566
- }
567
- },
568
- lastModifiedBy: {
569
- serializedName: "lastModifiedBy",
570
- type: {
571
- name: "String"
572
- }
573
- },
574
- lastModifiedByType: {
575
- serializedName: "lastModifiedByType",
576
- type: {
577
- name: "String"
578
- }
579
- },
580
- lastModifiedAt: {
581
- serializedName: "lastModifiedAt",
582
- type: {
583
- name: "DateTime"
584
- }
585
- }
586
- }
587
- }
588
- };
589
- const ConfidentialLedgerList = {
590
- type: {
591
- name: "Composite",
592
- className: "ConfidentialLedgerList",
593
- modelProperties: {
594
- value: {
595
- serializedName: "value",
596
- type: {
597
- name: "Sequence",
598
- element: {
599
- type: {
600
- name: "Composite",
601
- className: "ConfidentialLedger"
602
- }
603
- }
604
- }
605
- },
606
- nextLink: {
607
- serializedName: "nextLink",
608
- type: {
609
- name: "String"
610
- }
611
- }
612
- }
613
- }
614
- };
615
- const ManagedCCFProperties = {
616
- type: {
617
- name: "Composite",
618
- className: "ManagedCCFProperties",
619
- modelProperties: {
620
- appName: {
621
- serializedName: "appName",
622
- readOnly: true,
623
- type: {
624
- name: "String"
625
- }
626
- },
627
- appUri: {
628
- serializedName: "appUri",
629
- readOnly: true,
630
- type: {
631
- name: "String"
632
- }
633
- },
634
- identityServiceUri: {
635
- serializedName: "identityServiceUri",
636
- readOnly: true,
637
- type: {
638
- name: "String"
639
- }
640
- },
641
- memberIdentityCertificates: {
642
- serializedName: "memberIdentityCertificates",
643
- type: {
644
- name: "Sequence",
645
- element: {
646
- type: {
647
- name: "Composite",
648
- className: "MemberIdentityCertificate"
649
- }
650
- }
651
- }
652
- },
653
- deploymentType: {
654
- serializedName: "deploymentType",
655
- type: {
656
- name: "Composite",
657
- className: "DeploymentType"
658
- }
659
- },
660
- provisioningState: {
661
- serializedName: "provisioningState",
662
- readOnly: true,
663
- type: {
664
- name: "String"
665
- }
666
- },
667
- nodeCount: {
668
- defaultValue: 3,
669
- serializedName: "nodeCount",
670
- type: {
671
- name: "Number"
672
- }
673
- }
674
- }
675
- }
676
- };
677
- const MemberIdentityCertificate = {
678
- type: {
679
- name: "Composite",
680
- className: "MemberIdentityCertificate",
681
- modelProperties: {
682
- certificate: {
683
- serializedName: "certificate",
684
- type: {
685
- name: "String"
686
- }
687
- },
688
- encryptionkey: {
689
- serializedName: "encryptionkey",
690
- type: {
691
- name: "String"
692
- }
693
- },
694
- tags: {
695
- serializedName: "tags",
696
- type: {
697
- name: "any"
698
- }
699
- }
700
- }
701
- }
702
- };
703
- const DeploymentType = {
704
- type: {
705
- name: "Composite",
706
- className: "DeploymentType",
707
- modelProperties: {
708
- languageRuntime: {
709
- serializedName: "languageRuntime",
710
- type: {
711
- name: "String"
712
- }
713
- },
714
- appSourceUri: {
715
- serializedName: "appSourceUri",
716
- type: {
717
- name: "String"
718
- }
719
- }
720
- }
721
- }
722
- };
723
- const ManagedCCFList = {
724
- type: {
725
- name: "Composite",
726
- className: "ManagedCCFList",
727
- modelProperties: {
728
- value: {
729
- serializedName: "value",
730
- type: {
731
- name: "Sequence",
732
- element: {
733
- type: {
734
- name: "Composite",
735
- className: "ManagedCCF"
736
- }
737
- }
738
- }
739
- },
740
- nextLink: {
741
- serializedName: "nextLink",
742
- type: {
743
- name: "String"
744
- }
745
- }
746
- }
747
- }
748
- };
749
- const CertificateTags = {
750
- type: {
751
- name: "Composite",
752
- className: "CertificateTags",
753
- modelProperties: {
754
- tags: {
755
- serializedName: "tags",
756
- type: {
757
- name: "Dictionary",
758
- value: { type: { name: "String" } }
759
- }
760
- }
761
- }
762
- }
763
- };
764
- const TrackedResource = {
765
- type: {
766
- name: "Composite",
767
- className: "TrackedResource",
768
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
769
- serializedName: "tags",
770
- type: {
771
- name: "Dictionary",
772
- value: { type: { name: "String" } }
773
- }
774
- }, location: {
775
- serializedName: "location",
776
- required: true,
777
- type: {
778
- name: "String"
779
- }
780
- } })
781
- }
782
- };
783
- const ConfidentialLedger = {
784
- type: {
785
- name: "Composite",
786
- className: "ConfidentialLedger",
787
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
788
- serializedName: "properties",
789
- type: {
790
- name: "Composite",
791
- className: "LedgerProperties"
792
- }
793
- } })
794
- }
795
- };
796
- const ManagedCCF = {
797
- type: {
798
- name: "Composite",
799
- className: "ManagedCCF",
800
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
801
- serializedName: "properties",
802
- type: {
803
- name: "Composite",
804
- className: "ManagedCCFProperties"
805
- }
806
- } })
807
- }
808
- };
809
-
810
- var Mappers = /*#__PURE__*/Object.freeze({
811
- __proto__: null,
812
- ResourceProviderOperationList: ResourceProviderOperationList,
813
- ResourceProviderOperationDefinition: ResourceProviderOperationDefinition,
814
- ResourceProviderOperationDisplay: ResourceProviderOperationDisplay,
815
- ErrorResponse: ErrorResponse,
816
- ErrorDetail: ErrorDetail,
817
- ErrorAdditionalInfo: ErrorAdditionalInfo,
818
- CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
819
- CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
820
- LedgerProperties: LedgerProperties,
821
- AADBasedSecurityPrincipal: AADBasedSecurityPrincipal,
822
- CertBasedSecurityPrincipal: CertBasedSecurityPrincipal,
823
- Resource: Resource,
824
- SystemData: SystemData,
825
- ConfidentialLedgerList: ConfidentialLedgerList,
826
- ManagedCCFProperties: ManagedCCFProperties,
827
- MemberIdentityCertificate: MemberIdentityCertificate,
828
- DeploymentType: DeploymentType,
829
- ManagedCCFList: ManagedCCFList,
830
- CertificateTags: CertificateTags,
831
- TrackedResource: TrackedResource,
832
- ConfidentialLedger: ConfidentialLedger,
833
- ManagedCCF: ManagedCCF
834
- });
835
-
836
- /*
837
- * Copyright (c) Microsoft Corporation.
838
- * Licensed under the MIT License.
839
- *
840
- * Code generated by Microsoft (R) AutoRest Code Generator.
841
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
842
- */
843
- const accept = {
844
- parameterPath: "accept",
845
- mapper: {
846
- defaultValue: "application/json",
847
- isConstant: true,
848
- serializedName: "Accept",
849
- type: {
850
- name: "String"
851
- }
852
- }
853
- };
854
- const $host = {
855
- parameterPath: "$host",
856
- mapper: {
857
- serializedName: "$host",
858
- required: true,
859
- type: {
860
- name: "String"
861
- }
862
- },
863
- skipEncoding: true
864
- };
865
- const apiVersion = {
866
- parameterPath: "apiVersion",
867
- mapper: {
868
- defaultValue: "2023-01-26-preview",
869
- isConstant: true,
870
- serializedName: "api-version",
871
- type: {
872
- name: "String"
873
- }
874
- }
875
- };
876
- const nextLink = {
877
- parameterPath: "nextLink",
878
- mapper: {
879
- serializedName: "nextLink",
880
- required: true,
881
- type: {
882
- name: "String"
883
- }
884
- },
885
- skipEncoding: true
886
- };
887
- const contentType = {
888
- parameterPath: ["options", "contentType"],
889
- mapper: {
890
- defaultValue: "application/json",
891
- isConstant: true,
892
- serializedName: "Content-Type",
893
- type: {
894
- name: "String"
895
- }
896
- }
897
- };
898
- const nameAvailabilityRequest = {
899
- parameterPath: "nameAvailabilityRequest",
900
- mapper: CheckNameAvailabilityRequest
901
- };
902
- const subscriptionId = {
903
- parameterPath: "subscriptionId",
904
- mapper: {
905
- constraints: {
906
- MinLength: 1
907
- },
908
- serializedName: "subscriptionId",
909
- required: true,
910
- type: {
911
- name: "String"
912
- }
913
- }
914
- };
915
- const resourceGroupName = {
916
- parameterPath: "resourceGroupName",
917
- mapper: {
918
- constraints: {
919
- MaxLength: 90,
920
- MinLength: 1
921
- },
922
- serializedName: "resourceGroupName",
923
- required: true,
924
- type: {
925
- name: "String"
926
- }
927
- }
928
- };
929
- const ledgerName = {
930
- parameterPath: "ledgerName",
931
- mapper: {
932
- constraints: {
933
- Pattern: new RegExp("^[a-zA-Z0-9]")
934
- },
935
- serializedName: "ledgerName",
936
- required: true,
937
- type: {
938
- name: "String"
939
- }
940
- }
941
- };
942
- const confidentialLedger = {
943
- parameterPath: "confidentialLedger",
944
- mapper: ConfidentialLedger
945
- };
946
- const filter = {
947
- parameterPath: ["options", "filter"],
948
- mapper: {
949
- serializedName: "$filter",
950
- type: {
951
- name: "String"
952
- }
953
- }
954
- };
955
- const appName = {
956
- parameterPath: "appName",
957
- mapper: {
958
- constraints: {
959
- Pattern: new RegExp("^[a-zA-Z0-9]")
960
- },
961
- serializedName: "appName",
962
- required: true,
963
- type: {
964
- name: "String"
965
- }
966
- }
967
- };
968
- const managedCCF = {
969
- parameterPath: "managedCCF",
970
- mapper: ManagedCCF
971
- };
972
-
973
- /*
974
- * Copyright (c) Microsoft Corporation.
975
- * Licensed under the MIT License.
976
- *
977
- * Code generated by Microsoft (R) AutoRest Code Generator.
978
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
979
- */
980
- /// <reference lib="esnext.asynciterable" />
981
- /** Class containing Operations operations. */
982
- class OperationsImpl {
983
- /**
984
- * Initialize a new instance of the class Operations class.
985
- * @param client Reference to the service client
986
- */
987
- constructor(client) {
988
- this.client = client;
989
- }
990
- /**
991
- * Retrieves a list of available API operations
992
- * @param options The options parameters.
993
- */
994
- list(options) {
995
- const iter = this.listPagingAll(options);
996
- return {
997
- next() {
998
- return iter.next();
999
- },
1000
- [Symbol.asyncIterator]() {
1001
- return this;
1002
- },
1003
- byPage: (settings) => {
1004
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1005
- throw new Error("maxPageSize is not supported by this operation.");
1006
- }
1007
- return this.listPagingPage(options, settings);
1008
- }
1009
- };
1010
- }
1011
- listPagingPage(options, settings) {
1012
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1013
- let result;
1014
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1015
- if (!continuationToken) {
1016
- result = yield tslib.__await(this._list(options));
1017
- let page = result.value || [];
1018
- continuationToken = result.nextLink;
1019
- setContinuationToken(page, continuationToken);
1020
- yield yield tslib.__await(page);
1021
- }
1022
- while (continuationToken) {
1023
- result = yield tslib.__await(this._listNext(continuationToken, options));
1024
- continuationToken = result.nextLink;
1025
- let page = result.value || [];
1026
- setContinuationToken(page, continuationToken);
1027
- yield yield tslib.__await(page);
1028
- }
1029
- });
1030
- }
1031
- listPagingAll(options) {
1032
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1033
- var e_1, _a;
1034
- try {
1035
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1036
- const page = _c.value;
1037
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1038
- }
1039
- }
1040
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1041
- finally {
1042
- try {
1043
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1044
- }
1045
- finally { if (e_1) throw e_1.error; }
1046
- }
1047
- });
1048
- }
1049
- /**
1050
- * Retrieves a list of available API operations
1051
- * @param options The options parameters.
1052
- */
1053
- _list(options) {
1054
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1055
- }
1056
- /**
1057
- * ListNext
1058
- * @param nextLink The nextLink from the previous successful call to the List method.
1059
- * @param options The options parameters.
1060
- */
1061
- _listNext(nextLink, options) {
1062
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1063
- }
1064
- }
1065
- // Operation Specifications
1066
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1067
- const listOperationSpec = {
1068
- path: "/providers/Microsoft.ConfidentialLedger/operations",
1069
- httpMethod: "GET",
1070
- responses: {
1071
- 200: {
1072
- bodyMapper: ResourceProviderOperationList
1073
- },
1074
- default: {
1075
- bodyMapper: ErrorResponse
1076
- }
1077
- },
1078
- queryParameters: [apiVersion],
1079
- urlParameters: [$host],
1080
- headerParameters: [accept],
1081
- serializer: serializer$3
1082
- };
1083
- const listNextOperationSpec = {
1084
- path: "{nextLink}",
1085
- httpMethod: "GET",
1086
- responses: {
1087
- 200: {
1088
- bodyMapper: ResourceProviderOperationList
1089
- },
1090
- default: {
1091
- bodyMapper: ErrorResponse
1092
- }
1093
- },
1094
- urlParameters: [$host, nextLink],
1095
- headerParameters: [accept],
1096
- serializer: serializer$3
1097
- };
1098
-
1099
- /*
1100
- * Copyright (c) Microsoft Corporation.
1101
- * Licensed under the MIT License.
1102
- *
1103
- * Code generated by Microsoft (R) AutoRest Code Generator.
1104
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1105
- */
1106
- function createLroSpec(inputs) {
1107
- const { args, spec, sendOperationFn } = inputs;
1108
- return {
1109
- requestMethod: spec.httpMethod,
1110
- requestPath: spec.path,
1111
- sendInitialRequest: () => sendOperationFn(args, spec),
1112
- sendPollRequest: (path, options) => {
1113
- const restSpec = tslib.__rest(spec, ["requestBody"]);
1114
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1115
- }
1116
- };
1117
- }
1118
-
1119
- /*
1120
- * Copyright (c) Microsoft Corporation.
1121
- * Licensed under the MIT License.
1122
- *
1123
- * Code generated by Microsoft (R) AutoRest Code Generator.
1124
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1125
- */
1126
- /// <reference lib="esnext.asynciterable" />
1127
- /** Class containing Ledger operations. */
1128
- class LedgerImpl {
1129
- /**
1130
- * Initialize a new instance of the class Ledger class.
1131
- * @param client Reference to the service client
1132
- */
1133
- constructor(client) {
1134
- this.client = client;
1135
- }
1136
- /**
1137
- * Retrieves the properties of all Confidential Ledgers.
1138
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1139
- * @param options The options parameters.
1140
- */
1141
- listByResourceGroup(resourceGroupName, options) {
1142
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1143
- return {
1144
- next() {
1145
- return iter.next();
1146
- },
1147
- [Symbol.asyncIterator]() {
1148
- return this;
1149
- },
1150
- byPage: (settings) => {
1151
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1152
- throw new Error("maxPageSize is not supported by this operation.");
1153
- }
1154
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1155
- }
1156
- };
1157
- }
1158
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1159
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1160
- let result;
1161
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1162
- if (!continuationToken) {
1163
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1164
- let page = result.value || [];
1165
- continuationToken = result.nextLink;
1166
- setContinuationToken(page, continuationToken);
1167
- yield yield tslib.__await(page);
1168
- }
1169
- while (continuationToken) {
1170
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1171
- continuationToken = result.nextLink;
1172
- let page = result.value || [];
1173
- setContinuationToken(page, continuationToken);
1174
- yield yield tslib.__await(page);
1175
- }
1176
- });
1177
- }
1178
- listByResourceGroupPagingAll(resourceGroupName, options) {
1179
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1180
- var e_1, _a;
1181
- try {
1182
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1183
- const page = _c.value;
1184
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1185
- }
1186
- }
1187
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1188
- finally {
1189
- try {
1190
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1191
- }
1192
- finally { if (e_1) throw e_1.error; }
1193
- }
1194
- });
1195
- }
1196
- /**
1197
- * Retrieves the properties of all Confidential Ledgers.
1198
- * @param options The options parameters.
1199
- */
1200
- listBySubscription(options) {
1201
- const iter = this.listBySubscriptionPagingAll(options);
1202
- return {
1203
- next() {
1204
- return iter.next();
1205
- },
1206
- [Symbol.asyncIterator]() {
1207
- return this;
1208
- },
1209
- byPage: (settings) => {
1210
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1211
- throw new Error("maxPageSize is not supported by this operation.");
1212
- }
1213
- return this.listBySubscriptionPagingPage(options, settings);
1214
- }
1215
- };
1216
- }
1217
- listBySubscriptionPagingPage(options, settings) {
1218
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1219
- let result;
1220
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1221
- if (!continuationToken) {
1222
- result = yield tslib.__await(this._listBySubscription(options));
1223
- let page = result.value || [];
1224
- continuationToken = result.nextLink;
1225
- setContinuationToken(page, continuationToken);
1226
- yield yield tslib.__await(page);
1227
- }
1228
- while (continuationToken) {
1229
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1230
- continuationToken = result.nextLink;
1231
- let page = result.value || [];
1232
- setContinuationToken(page, continuationToken);
1233
- yield yield tslib.__await(page);
1234
- }
1235
- });
1236
- }
1237
- listBySubscriptionPagingAll(options) {
1238
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1239
- var e_2, _a;
1240
- try {
1241
- for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1242
- const page = _c.value;
1243
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1244
- }
1245
- }
1246
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1247
- finally {
1248
- try {
1249
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1250
- }
1251
- finally { if (e_2) throw e_2.error; }
1252
- }
1253
- });
1254
- }
1255
- /**
1256
- * Retrieves the properties of a Confidential Ledger.
1257
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1258
- * @param ledgerName Name of the Confidential Ledger
1259
- * @param options The options parameters.
1260
- */
1261
- get(resourceGroupName, ledgerName, options) {
1262
- return this.client.sendOperationRequest({ resourceGroupName, ledgerName, options }, getOperationSpec$1);
1263
- }
1264
- /**
1265
- * Deletes an existing Confidential Ledger.
1266
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1267
- * @param ledgerName Name of the Confidential Ledger
1268
- * @param options The options parameters.
1269
- */
1270
- beginDelete(resourceGroupName, ledgerName, options) {
1271
- return tslib.__awaiter(this, void 0, void 0, function* () {
1272
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1273
- return this.client.sendOperationRequest(args, spec);
1274
- });
1275
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1276
- var _a;
1277
- let currentRawResponse = undefined;
1278
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1279
- const callback = (rawResponse, flatResponse) => {
1280
- currentRawResponse = rawResponse;
1281
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1282
- };
1283
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1284
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1285
- return {
1286
- flatResponse,
1287
- rawResponse: {
1288
- statusCode: currentRawResponse.status,
1289
- body: currentRawResponse.parsedBody,
1290
- headers: currentRawResponse.headers.toJSON()
1291
- }
1292
- };
1293
- });
1294
- const lro = createLroSpec({
1295
- sendOperationFn,
1296
- args: { resourceGroupName, ledgerName, options },
1297
- spec: deleteOperationSpec$1
1298
- });
1299
- const poller = yield coreLro.createHttpPoller(lro, {
1300
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1301
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1302
- });
1303
- yield poller.poll();
1304
- return poller;
1305
- });
1306
- }
1307
- /**
1308
- * Deletes an existing Confidential Ledger.
1309
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1310
- * @param ledgerName Name of the Confidential Ledger
1311
- * @param options The options parameters.
1312
- */
1313
- beginDeleteAndWait(resourceGroupName, ledgerName, options) {
1314
- return tslib.__awaiter(this, void 0, void 0, function* () {
1315
- const poller = yield this.beginDelete(resourceGroupName, ledgerName, options);
1316
- return poller.pollUntilDone();
1317
- });
1318
- }
1319
- /**
1320
- * Creates a Confidential Ledger with the specified ledger parameters.
1321
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1322
- * @param ledgerName Name of the Confidential Ledger
1323
- * @param confidentialLedger Confidential Ledger Create Request Body
1324
- * @param options The options parameters.
1325
- */
1326
- beginCreate(resourceGroupName, ledgerName, confidentialLedger, options) {
1327
- return tslib.__awaiter(this, void 0, void 0, function* () {
1328
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1329
- return this.client.sendOperationRequest(args, spec);
1330
- });
1331
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1332
- var _a;
1333
- let currentRawResponse = undefined;
1334
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1335
- const callback = (rawResponse, flatResponse) => {
1336
- currentRawResponse = rawResponse;
1337
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1338
- };
1339
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1340
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1341
- return {
1342
- flatResponse,
1343
- rawResponse: {
1344
- statusCode: currentRawResponse.status,
1345
- body: currentRawResponse.parsedBody,
1346
- headers: currentRawResponse.headers.toJSON()
1347
- }
1348
- };
1349
- });
1350
- const lro = createLroSpec({
1351
- sendOperationFn,
1352
- args: { resourceGroupName, ledgerName, confidentialLedger, options },
1353
- spec: createOperationSpec$1
1354
- });
1355
- const poller = yield coreLro.createHttpPoller(lro, {
1356
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1357
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1358
- resourceLocationConfig: "azure-async-operation"
1359
- });
1360
- yield poller.poll();
1361
- return poller;
1362
- });
1363
- }
1364
- /**
1365
- * Creates a Confidential Ledger with the specified ledger parameters.
1366
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1367
- * @param ledgerName Name of the Confidential Ledger
1368
- * @param confidentialLedger Confidential Ledger Create Request Body
1369
- * @param options The options parameters.
1370
- */
1371
- beginCreateAndWait(resourceGroupName, ledgerName, confidentialLedger, options) {
1372
- return tslib.__awaiter(this, void 0, void 0, function* () {
1373
- const poller = yield this.beginCreate(resourceGroupName, ledgerName, confidentialLedger, options);
1374
- return poller.pollUntilDone();
1375
- });
1376
- }
1377
- /**
1378
- * Updates properties of Confidential Ledger
1379
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1380
- * @param ledgerName Name of the Confidential Ledger
1381
- * @param confidentialLedger Confidential Ledger request body for Updating Ledger
1382
- * @param options The options parameters.
1383
- */
1384
- beginUpdate(resourceGroupName, ledgerName, confidentialLedger, options) {
1385
- return tslib.__awaiter(this, void 0, void 0, function* () {
1386
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1387
- return this.client.sendOperationRequest(args, spec);
1388
- });
1389
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1390
- var _a;
1391
- let currentRawResponse = undefined;
1392
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1393
- const callback = (rawResponse, flatResponse) => {
1394
- currentRawResponse = rawResponse;
1395
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1396
- };
1397
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1398
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1399
- return {
1400
- flatResponse,
1401
- rawResponse: {
1402
- statusCode: currentRawResponse.status,
1403
- body: currentRawResponse.parsedBody,
1404
- headers: currentRawResponse.headers.toJSON()
1405
- }
1406
- };
1407
- });
1408
- const lro = createLroSpec({
1409
- sendOperationFn,
1410
- args: { resourceGroupName, ledgerName, confidentialLedger, options },
1411
- spec: updateOperationSpec$1
1412
- });
1413
- const poller = yield coreLro.createHttpPoller(lro, {
1414
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1415
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1416
- });
1417
- yield poller.poll();
1418
- return poller;
1419
- });
1420
- }
1421
- /**
1422
- * Updates properties of Confidential Ledger
1423
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1424
- * @param ledgerName Name of the Confidential Ledger
1425
- * @param confidentialLedger Confidential Ledger request body for Updating Ledger
1426
- * @param options The options parameters.
1427
- */
1428
- beginUpdateAndWait(resourceGroupName, ledgerName, confidentialLedger, options) {
1429
- return tslib.__awaiter(this, void 0, void 0, function* () {
1430
- const poller = yield this.beginUpdate(resourceGroupName, ledgerName, confidentialLedger, options);
1431
- return poller.pollUntilDone();
1432
- });
1433
- }
1434
- /**
1435
- * Retrieves the properties of all Confidential Ledgers.
1436
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1437
- * @param options The options parameters.
1438
- */
1439
- _listByResourceGroup(resourceGroupName, options) {
1440
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
1441
- }
1442
- /**
1443
- * Retrieves the properties of all Confidential Ledgers.
1444
- * @param options The options parameters.
1445
- */
1446
- _listBySubscription(options) {
1447
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
1448
- }
1449
- /**
1450
- * ListByResourceGroupNext
1451
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1452
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1453
- * @param options The options parameters.
1454
- */
1455
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1456
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
1457
- }
1458
- /**
1459
- * ListBySubscriptionNext
1460
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1461
- * @param options The options parameters.
1462
- */
1463
- _listBySubscriptionNext(nextLink, options) {
1464
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
1465
- }
1466
- }
1467
- // Operation Specifications
1468
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1469
- const getOperationSpec$1 = {
1470
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1471
- httpMethod: "GET",
1472
- responses: {
1473
- 200: {
1474
- bodyMapper: ConfidentialLedger
1475
- },
1476
- default: {
1477
- bodyMapper: ErrorResponse
1478
- }
1479
- },
1480
- queryParameters: [apiVersion],
1481
- urlParameters: [
1482
- $host,
1483
- subscriptionId,
1484
- resourceGroupName,
1485
- ledgerName
1486
- ],
1487
- headerParameters: [accept],
1488
- serializer: serializer$2
1489
- };
1490
- const deleteOperationSpec$1 = {
1491
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1492
- httpMethod: "DELETE",
1493
- responses: {
1494
- 200: {},
1495
- 201: {},
1496
- 202: {},
1497
- 204: {},
1498
- default: {
1499
- bodyMapper: ErrorResponse
1500
- }
1501
- },
1502
- queryParameters: [apiVersion],
1503
- urlParameters: [
1504
- $host,
1505
- subscriptionId,
1506
- resourceGroupName,
1507
- ledgerName
1508
- ],
1509
- headerParameters: [accept],
1510
- serializer: serializer$2
1511
- };
1512
- const createOperationSpec$1 = {
1513
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1514
- httpMethod: "PUT",
1515
- responses: {
1516
- 200: {
1517
- bodyMapper: ConfidentialLedger
1518
- },
1519
- 201: {
1520
- bodyMapper: ConfidentialLedger
1521
- },
1522
- 202: {
1523
- bodyMapper: ConfidentialLedger
1524
- },
1525
- 204: {
1526
- bodyMapper: ConfidentialLedger
1527
- },
1528
- default: {
1529
- bodyMapper: ErrorResponse
1530
- }
1531
- },
1532
- requestBody: confidentialLedger,
1533
- queryParameters: [apiVersion],
1534
- urlParameters: [
1535
- $host,
1536
- subscriptionId,
1537
- resourceGroupName,
1538
- ledgerName
1539
- ],
1540
- headerParameters: [accept, contentType],
1541
- mediaType: "json",
1542
- serializer: serializer$2
1543
- };
1544
- const updateOperationSpec$1 = {
1545
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1546
- httpMethod: "PATCH",
1547
- responses: {
1548
- 200: {
1549
- bodyMapper: ConfidentialLedger
1550
- },
1551
- 201: {
1552
- bodyMapper: ConfidentialLedger
1553
- },
1554
- 202: {
1555
- bodyMapper: ConfidentialLedger
1556
- },
1557
- 204: {
1558
- bodyMapper: ConfidentialLedger
1559
- },
1560
- default: {
1561
- bodyMapper: ErrorResponse
1562
- }
1563
- },
1564
- requestBody: confidentialLedger,
1565
- queryParameters: [apiVersion],
1566
- urlParameters: [
1567
- $host,
1568
- subscriptionId,
1569
- resourceGroupName,
1570
- ledgerName
1571
- ],
1572
- headerParameters: [accept, contentType],
1573
- mediaType: "json",
1574
- serializer: serializer$2
1575
- };
1576
- const listByResourceGroupOperationSpec$1 = {
1577
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers",
1578
- httpMethod: "GET",
1579
- responses: {
1580
- 200: {
1581
- bodyMapper: ConfidentialLedgerList
1582
- },
1583
- default: {
1584
- bodyMapper: ErrorResponse
1585
- }
1586
- },
1587
- queryParameters: [apiVersion, filter],
1588
- urlParameters: [
1589
- $host,
1590
- subscriptionId,
1591
- resourceGroupName
1592
- ],
1593
- headerParameters: [accept],
1594
- serializer: serializer$2
1595
- };
1596
- const listBySubscriptionOperationSpec$1 = {
1597
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/",
1598
- httpMethod: "GET",
1599
- responses: {
1600
- 200: {
1601
- bodyMapper: ConfidentialLedgerList
1602
- },
1603
- default: {
1604
- bodyMapper: ErrorResponse
1605
- }
1606
- },
1607
- queryParameters: [apiVersion, filter],
1608
- urlParameters: [$host, subscriptionId],
1609
- headerParameters: [accept],
1610
- serializer: serializer$2
1611
- };
1612
- const listByResourceGroupNextOperationSpec$1 = {
1613
- path: "{nextLink}",
1614
- httpMethod: "GET",
1615
- responses: {
1616
- 200: {
1617
- bodyMapper: ConfidentialLedgerList
1618
- },
1619
- default: {
1620
- bodyMapper: ErrorResponse
1621
- }
1622
- },
1623
- urlParameters: [
1624
- $host,
1625
- nextLink,
1626
- subscriptionId,
1627
- resourceGroupName
1628
- ],
1629
- headerParameters: [accept],
1630
- serializer: serializer$2
1631
- };
1632
- const listBySubscriptionNextOperationSpec$1 = {
1633
- path: "{nextLink}",
1634
- httpMethod: "GET",
1635
- responses: {
1636
- 200: {
1637
- bodyMapper: ConfidentialLedgerList
1638
- },
1639
- default: {
1640
- bodyMapper: ErrorResponse
1641
- }
1642
- },
1643
- urlParameters: [
1644
- $host,
1645
- nextLink,
1646
- subscriptionId
1647
- ],
1648
- headerParameters: [accept],
1649
- serializer: serializer$2
1650
- };
1651
-
1652
- /*
1653
- * Copyright (c) Microsoft Corporation.
1654
- * Licensed under the MIT License.
1655
- *
1656
- * Code generated by Microsoft (R) AutoRest Code Generator.
1657
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1658
- */
1659
- /// <reference lib="esnext.asynciterable" />
1660
- /** Class containing ManagedCCFOperations operations. */
1661
- class ManagedCCFOperationsImpl {
1662
- /**
1663
- * Initialize a new instance of the class ManagedCCFOperations class.
1664
- * @param client Reference to the service client
1665
- */
1666
- constructor(client) {
1667
- this.client = client;
1668
- }
1669
- /**
1670
- * Retrieves the properties of all Managed CCF apps.
1671
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1672
- * @param options The options parameters.
1673
- */
1674
- listByResourceGroup(resourceGroupName, options) {
1675
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1676
- return {
1677
- next() {
1678
- return iter.next();
1679
- },
1680
- [Symbol.asyncIterator]() {
1681
- return this;
1682
- },
1683
- byPage: (settings) => {
1684
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1685
- throw new Error("maxPageSize is not supported by this operation.");
1686
- }
1687
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1688
- }
1689
- };
1690
- }
1691
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1692
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1693
- let result;
1694
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1695
- if (!continuationToken) {
1696
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1697
- let page = result.value || [];
1698
- continuationToken = result.nextLink;
1699
- setContinuationToken(page, continuationToken);
1700
- yield yield tslib.__await(page);
1701
- }
1702
- while (continuationToken) {
1703
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1704
- continuationToken = result.nextLink;
1705
- let page = result.value || [];
1706
- setContinuationToken(page, continuationToken);
1707
- yield yield tslib.__await(page);
1708
- }
1709
- });
1710
- }
1711
- listByResourceGroupPagingAll(resourceGroupName, options) {
1712
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1713
- var e_1, _a;
1714
- try {
1715
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1716
- const page = _c.value;
1717
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1718
- }
1719
- }
1720
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1721
- finally {
1722
- try {
1723
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1724
- }
1725
- finally { if (e_1) throw e_1.error; }
1726
- }
1727
- });
1728
- }
1729
- /**
1730
- * Retrieves the properties of all Managed CCF.
1731
- * @param options The options parameters.
1732
- */
1733
- listBySubscription(options) {
1734
- const iter = this.listBySubscriptionPagingAll(options);
1735
- return {
1736
- next() {
1737
- return iter.next();
1738
- },
1739
- [Symbol.asyncIterator]() {
1740
- return this;
1741
- },
1742
- byPage: (settings) => {
1743
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1744
- throw new Error("maxPageSize is not supported by this operation.");
1745
- }
1746
- return this.listBySubscriptionPagingPage(options, settings);
1747
- }
1748
- };
1749
- }
1750
- listBySubscriptionPagingPage(options, settings) {
1751
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1752
- let result;
1753
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1754
- if (!continuationToken) {
1755
- result = yield tslib.__await(this._listBySubscription(options));
1756
- let page = result.value || [];
1757
- continuationToken = result.nextLink;
1758
- setContinuationToken(page, continuationToken);
1759
- yield yield tslib.__await(page);
1760
- }
1761
- while (continuationToken) {
1762
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1763
- continuationToken = result.nextLink;
1764
- let page = result.value || [];
1765
- setContinuationToken(page, continuationToken);
1766
- yield yield tslib.__await(page);
1767
- }
1768
- });
1769
- }
1770
- listBySubscriptionPagingAll(options) {
1771
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1772
- var e_2, _a;
1773
- try {
1774
- for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1775
- const page = _c.value;
1776
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1777
- }
1778
- }
1779
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1780
- finally {
1781
- try {
1782
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1783
- }
1784
- finally { if (e_2) throw e_2.error; }
1785
- }
1786
- });
1787
- }
1788
- /**
1789
- * Retrieves the properties of a Managed CCF app.
1790
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1791
- * @param appName Name of the Managed CCF
1792
- * @param options The options parameters.
1793
- */
1794
- get(resourceGroupName, appName, options) {
1795
- return this.client.sendOperationRequest({ resourceGroupName, appName, options }, getOperationSpec);
1796
- }
1797
- /**
1798
- * Deletes an existing Managed CCF.
1799
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1800
- * @param appName Name of the Managed CCF
1801
- * @param options The options parameters.
1802
- */
1803
- beginDelete(resourceGroupName, appName, options) {
1804
- return tslib.__awaiter(this, void 0, void 0, function* () {
1805
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1806
- return this.client.sendOperationRequest(args, spec);
1807
- });
1808
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1809
- var _a;
1810
- let currentRawResponse = undefined;
1811
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1812
- const callback = (rawResponse, flatResponse) => {
1813
- currentRawResponse = rawResponse;
1814
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1815
- };
1816
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1817
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1818
- return {
1819
- flatResponse,
1820
- rawResponse: {
1821
- statusCode: currentRawResponse.status,
1822
- body: currentRawResponse.parsedBody,
1823
- headers: currentRawResponse.headers.toJSON()
1824
- }
1825
- };
1826
- });
1827
- const lro = createLroSpec({
1828
- sendOperationFn,
1829
- args: { resourceGroupName, appName, options },
1830
- spec: deleteOperationSpec
1831
- });
1832
- const poller = yield coreLro.createHttpPoller(lro, {
1833
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1834
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1835
- });
1836
- yield poller.poll();
1837
- return poller;
1838
- });
1839
- }
1840
- /**
1841
- * Deletes an existing Managed CCF.
1842
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1843
- * @param appName Name of the Managed CCF
1844
- * @param options The options parameters.
1845
- */
1846
- beginDeleteAndWait(resourceGroupName, appName, options) {
1847
- return tslib.__awaiter(this, void 0, void 0, function* () {
1848
- const poller = yield this.beginDelete(resourceGroupName, appName, options);
1849
- return poller.pollUntilDone();
1850
- });
1851
- }
1852
- /**
1853
- * Creates a Managed CCF with the specified Managed CCF parameters.
1854
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1855
- * @param appName Name of the Managed CCF
1856
- * @param managedCCF Managed CCF Create Request Body
1857
- * @param options The options parameters.
1858
- */
1859
- beginCreate(resourceGroupName, appName, managedCCF, options) {
1860
- return tslib.__awaiter(this, void 0, void 0, function* () {
1861
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1862
- return this.client.sendOperationRequest(args, spec);
1863
- });
1864
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1865
- var _a;
1866
- let currentRawResponse = undefined;
1867
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1868
- const callback = (rawResponse, flatResponse) => {
1869
- currentRawResponse = rawResponse;
1870
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1871
- };
1872
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1873
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1874
- return {
1875
- flatResponse,
1876
- rawResponse: {
1877
- statusCode: currentRawResponse.status,
1878
- body: currentRawResponse.parsedBody,
1879
- headers: currentRawResponse.headers.toJSON()
1880
- }
1881
- };
1882
- });
1883
- const lro = createLroSpec({
1884
- sendOperationFn,
1885
- args: { resourceGroupName, appName, managedCCF, options },
1886
- spec: createOperationSpec
1887
- });
1888
- const poller = yield coreLro.createHttpPoller(lro, {
1889
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1890
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1891
- resourceLocationConfig: "azure-async-operation"
1892
- });
1893
- yield poller.poll();
1894
- return poller;
1895
- });
1896
- }
1897
- /**
1898
- * Creates a Managed CCF with the specified Managed CCF parameters.
1899
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1900
- * @param appName Name of the Managed CCF
1901
- * @param managedCCF Managed CCF Create Request Body
1902
- * @param options The options parameters.
1903
- */
1904
- beginCreateAndWait(resourceGroupName, appName, managedCCF, options) {
1905
- return tslib.__awaiter(this, void 0, void 0, function* () {
1906
- const poller = yield this.beginCreate(resourceGroupName, appName, managedCCF, options);
1907
- return poller.pollUntilDone();
1908
- });
1909
- }
1910
- /**
1911
- * Updates properties of Managed CCF
1912
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1913
- * @param appName Name of the Managed CCF
1914
- * @param managedCCF Request body for Updating Managed CCF App
1915
- * @param options The options parameters.
1916
- */
1917
- beginUpdate(resourceGroupName, appName, managedCCF, options) {
1918
- return tslib.__awaiter(this, void 0, void 0, function* () {
1919
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1920
- return this.client.sendOperationRequest(args, spec);
1921
- });
1922
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1923
- var _a;
1924
- let currentRawResponse = undefined;
1925
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1926
- const callback = (rawResponse, flatResponse) => {
1927
- currentRawResponse = rawResponse;
1928
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1929
- };
1930
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1931
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1932
- return {
1933
- flatResponse,
1934
- rawResponse: {
1935
- statusCode: currentRawResponse.status,
1936
- body: currentRawResponse.parsedBody,
1937
- headers: currentRawResponse.headers.toJSON()
1938
- }
1939
- };
1940
- });
1941
- const lro = createLroSpec({
1942
- sendOperationFn,
1943
- args: { resourceGroupName, appName, managedCCF, options },
1944
- spec: updateOperationSpec
1945
- });
1946
- const poller = yield coreLro.createHttpPoller(lro, {
1947
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1948
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1949
- });
1950
- yield poller.poll();
1951
- return poller;
1952
- });
1953
- }
1954
- /**
1955
- * Updates properties of Managed CCF
1956
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1957
- * @param appName Name of the Managed CCF
1958
- * @param managedCCF Request body for Updating Managed CCF App
1959
- * @param options The options parameters.
1960
- */
1961
- beginUpdateAndWait(resourceGroupName, appName, managedCCF, options) {
1962
- return tslib.__awaiter(this, void 0, void 0, function* () {
1963
- const poller = yield this.beginUpdate(resourceGroupName, appName, managedCCF, options);
1964
- return poller.pollUntilDone();
1965
- });
1966
- }
1967
- /**
1968
- * Retrieves the properties of all Managed CCF apps.
1969
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1970
- * @param options The options parameters.
1971
- */
1972
- _listByResourceGroup(resourceGroupName, options) {
1973
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1974
- }
1975
- /**
1976
- * Retrieves the properties of all Managed CCF.
1977
- * @param options The options parameters.
1978
- */
1979
- _listBySubscription(options) {
1980
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1981
- }
1982
- /**
1983
- * ListByResourceGroupNext
1984
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1985
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1986
- * @param options The options parameters.
1987
- */
1988
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1989
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1990
- }
1991
- /**
1992
- * ListBySubscriptionNext
1993
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1994
- * @param options The options parameters.
1995
- */
1996
- _listBySubscriptionNext(nextLink, options) {
1997
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1998
- }
1999
- }
2000
- // Operation Specifications
2001
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2002
- const getOperationSpec = {
2003
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2004
- httpMethod: "GET",
2005
- responses: {
2006
- 200: {
2007
- bodyMapper: ManagedCCF
2008
- },
2009
- default: {
2010
- bodyMapper: ErrorResponse
2011
- }
2012
- },
2013
- queryParameters: [apiVersion],
2014
- urlParameters: [
2015
- $host,
2016
- subscriptionId,
2017
- resourceGroupName,
2018
- appName
2019
- ],
2020
- headerParameters: [accept],
2021
- serializer: serializer$1
2022
- };
2023
- const deleteOperationSpec = {
2024
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2025
- httpMethod: "DELETE",
2026
- responses: {
2027
- 200: {},
2028
- 201: {},
2029
- 202: {},
2030
- 204: {},
2031
- default: {
2032
- bodyMapper: ErrorResponse
2033
- }
2034
- },
2035
- queryParameters: [apiVersion],
2036
- urlParameters: [
2037
- $host,
2038
- subscriptionId,
2039
- resourceGroupName,
2040
- appName
2041
- ],
2042
- headerParameters: [accept],
2043
- serializer: serializer$1
2044
- };
2045
- const createOperationSpec = {
2046
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2047
- httpMethod: "PUT",
2048
- responses: {
2049
- 200: {
2050
- bodyMapper: ManagedCCF
2051
- },
2052
- 201: {
2053
- bodyMapper: ManagedCCF
2054
- },
2055
- 202: {
2056
- bodyMapper: ManagedCCF
2057
- },
2058
- 204: {
2059
- bodyMapper: ManagedCCF
2060
- },
2061
- default: {
2062
- bodyMapper: ErrorResponse
2063
- }
2064
- },
2065
- requestBody: managedCCF,
2066
- queryParameters: [apiVersion],
2067
- urlParameters: [
2068
- $host,
2069
- subscriptionId,
2070
- resourceGroupName,
2071
- appName
2072
- ],
2073
- headerParameters: [accept, contentType],
2074
- mediaType: "json",
2075
- serializer: serializer$1
2076
- };
2077
- const updateOperationSpec = {
2078
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2079
- httpMethod: "PATCH",
2080
- responses: {
2081
- 200: {},
2082
- 201: {},
2083
- 202: {},
2084
- 204: {},
2085
- default: {
2086
- bodyMapper: ErrorResponse
2087
- }
2088
- },
2089
- requestBody: managedCCF,
2090
- queryParameters: [apiVersion],
2091
- urlParameters: [
2092
- $host,
2093
- subscriptionId,
2094
- resourceGroupName,
2095
- appName
2096
- ],
2097
- headerParameters: [accept, contentType],
2098
- mediaType: "json",
2099
- serializer: serializer$1
2100
- };
2101
- const listByResourceGroupOperationSpec = {
2102
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
2103
- httpMethod: "GET",
2104
- responses: {
2105
- 200: {
2106
- bodyMapper: ManagedCCFList
2107
- },
2108
- default: {
2109
- bodyMapper: ErrorResponse
2110
- }
2111
- },
2112
- queryParameters: [apiVersion, filter],
2113
- urlParameters: [
2114
- $host,
2115
- subscriptionId,
2116
- resourceGroupName
2117
- ],
2118
- headerParameters: [accept],
2119
- serializer: serializer$1
2120
- };
2121
- const listBySubscriptionOperationSpec = {
2122
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
2123
- httpMethod: "GET",
2124
- responses: {
2125
- 200: {
2126
- bodyMapper: ManagedCCFList
2127
- },
2128
- default: {
2129
- bodyMapper: ErrorResponse
2130
- }
2131
- },
2132
- queryParameters: [apiVersion, filter],
2133
- urlParameters: [$host, subscriptionId],
2134
- headerParameters: [accept],
2135
- serializer: serializer$1
2136
- };
2137
- const listByResourceGroupNextOperationSpec = {
2138
- path: "{nextLink}",
2139
- httpMethod: "GET",
2140
- responses: {
2141
- 200: {
2142
- bodyMapper: ManagedCCFList
2143
- },
2144
- default: {
2145
- bodyMapper: ErrorResponse
2146
- }
2147
- },
2148
- urlParameters: [
2149
- $host,
2150
- nextLink,
2151
- subscriptionId,
2152
- resourceGroupName
2153
- ],
2154
- headerParameters: [accept],
2155
- serializer: serializer$1
2156
- };
2157
- const listBySubscriptionNextOperationSpec = {
2158
- path: "{nextLink}",
2159
- httpMethod: "GET",
2160
- responses: {
2161
- 200: {
2162
- bodyMapper: ManagedCCFList
2163
- },
2164
- default: {
2165
- bodyMapper: ErrorResponse
2166
- }
2167
- },
2168
- urlParameters: [
2169
- $host,
2170
- nextLink,
2171
- subscriptionId
2172
- ],
2173
- headerParameters: [accept],
2174
- serializer: serializer$1
2175
- };
2176
-
2177
- /*
2178
- * Copyright (c) Microsoft Corporation.
2179
- * Licensed under the MIT License.
2180
- *
2181
- * Code generated by Microsoft (R) AutoRest Code Generator.
2182
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2183
- */
2184
- class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
2185
- /**
2186
- * Initializes a new instance of the ConfidentialLedgerClient class.
2187
- * @param credentials Subscription credentials which uniquely identify client subscription.
2188
- * @param subscriptionId The ID of the target subscription.
2189
- * @param options The parameter options
2190
- */
2191
- constructor(credentials, subscriptionId, options) {
2192
- var _a, _b, _c;
2193
- if (credentials === undefined) {
2194
- throw new Error("'credentials' cannot be null");
2195
- }
2196
- if (subscriptionId === undefined) {
2197
- throw new Error("'subscriptionId' cannot be null");
2198
- }
2199
- // Initializing default values for options
2200
- if (!options) {
2201
- options = {};
2202
- }
2203
- const defaults = {
2204
- requestContentType: "application/json; charset=utf-8",
2205
- credential: credentials
2206
- };
2207
- const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.1`;
2208
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2209
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2210
- : `${packageDetails}`;
2211
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2212
- userAgentPrefix
2213
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2214
- super(optionsWithDefaults);
2215
- let bearerTokenAuthenticationPolicyFound = false;
2216
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2217
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2218
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2219
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2220
- }
2221
- if (!options ||
2222
- !options.pipeline ||
2223
- options.pipeline.getOrderedPolicies().length == 0 ||
2224
- !bearerTokenAuthenticationPolicyFound) {
2225
- this.pipeline.removePolicy({
2226
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2227
- });
2228
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2229
- credential: credentials,
2230
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
2231
- challengeCallbacks: {
2232
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2233
- }
2234
- }));
2235
- }
2236
- // Parameter assignments
2237
- this.subscriptionId = subscriptionId;
2238
- // Assigning values to Constant parameters
2239
- this.$host = options.$host || "https://management.azure.com";
2240
- this.apiVersion = options.apiVersion || "2023-01-26-preview";
2241
- this.operations = new OperationsImpl(this);
2242
- this.ledger = new LedgerImpl(this);
2243
- this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
2244
- this.addCustomApiVersionPolicy(options.apiVersion);
2245
- }
2246
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2247
- addCustomApiVersionPolicy(apiVersion) {
2248
- if (!apiVersion) {
2249
- return;
2250
- }
2251
- const apiVersionPolicy = {
2252
- name: "CustomApiVersionPolicy",
2253
- sendRequest(request, next) {
2254
- return tslib.__awaiter(this, void 0, void 0, function* () {
2255
- const param = request.url.split("?");
2256
- if (param.length > 1) {
2257
- const newParams = param[1].split("&").map((item) => {
2258
- if (item.indexOf("api-version") > -1) {
2259
- return "api-version=" + apiVersion;
2260
- }
2261
- else {
2262
- return item;
2263
- }
2264
- });
2265
- request.url = param[0] + "?" + newParams.join("&");
2266
- }
2267
- return next(request);
2268
- });
2269
- }
2270
- };
2271
- this.pipeline.addPolicy(apiVersionPolicy);
2272
- }
2273
- /**
2274
- * To check whether a resource name is available.
2275
- * @param nameAvailabilityRequest Name availability request payload.
2276
- * @param options The options parameters.
2277
- */
2278
- checkNameAvailability(nameAvailabilityRequest, options) {
2279
- return this.sendOperationRequest({ nameAvailabilityRequest, options }, checkNameAvailabilityOperationSpec);
2280
- }
2281
- }
2282
- // Operation Specifications
2283
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2284
- const checkNameAvailabilityOperationSpec = {
2285
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/checkNameAvailability",
2286
- httpMethod: "POST",
2287
- responses: {
2288
- 200: {
2289
- bodyMapper: CheckNameAvailabilityResponse
2290
- },
2291
- default: {
2292
- bodyMapper: ErrorResponse
2293
- }
2294
- },
2295
- requestBody: nameAvailabilityRequest,
2296
- queryParameters: [apiVersion],
2297
- urlParameters: [$host, subscriptionId],
2298
- headerParameters: [accept, contentType],
2299
- mediaType: "json",
2300
- serializer
2301
- };
2302
-
2303
- exports.ConfidentialLedgerClient = ConfidentialLedgerClient;
2304
- exports.getContinuationToken = getContinuationToken;
2305
- //# sourceMappingURL=index.js.map