@azure/arm-trustedsigning 1.0.0-beta.1

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 (315) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +100 -0
  4. package/dist/browser/api/certificateProfiles/index.d.ts +32 -0
  5. package/dist/browser/api/certificateProfiles/index.d.ts.map +1 -0
  6. package/dist/browser/api/certificateProfiles/index.js +331 -0
  7. package/dist/browser/api/certificateProfiles/index.js.map +1 -0
  8. package/dist/browser/api/codeSigningAccounts/index.d.ts +40 -0
  9. package/dist/browser/api/codeSigningAccounts/index.d.ts.map +1 -0
  10. package/dist/browser/api/codeSigningAccounts/index.js +325 -0
  11. package/dist/browser/api/codeSigningAccounts/index.js.map +1 -0
  12. package/dist/browser/api/codeSigningContext.d.ts +12 -0
  13. package/dist/browser/api/codeSigningContext.d.ts.map +1 -0
  14. package/dist/browser/api/codeSigningContext.js +32 -0
  15. package/dist/browser/api/codeSigningContext.js.map +1 -0
  16. package/dist/browser/api/index.d.ts +2 -0
  17. package/dist/browser/api/index.d.ts.map +1 -0
  18. package/dist/browser/api/index.js +4 -0
  19. package/dist/browser/api/index.js.map +1 -0
  20. package/dist/browser/api/operations/index.d.ts +10 -0
  21. package/dist/browser/api/operations/index.d.ts.map +1 -0
  22. package/dist/browser/api/operations/index.js +40 -0
  23. package/dist/browser/api/operations/index.js.map +1 -0
  24. package/dist/browser/classic/certificateProfiles/index.d.ts +32 -0
  25. package/dist/browser/classic/certificateProfiles/index.d.ts.map +1 -0
  26. package/dist/browser/classic/certificateProfiles/index.js +16 -0
  27. package/dist/browser/classic/certificateProfiles/index.js.map +1 -0
  28. package/dist/browser/classic/codeSigningAccounts/index.d.ts +38 -0
  29. package/dist/browser/classic/codeSigningAccounts/index.d.ts.map +1 -0
  30. package/dist/browser/classic/codeSigningAccounts/index.js +18 -0
  31. package/dist/browser/classic/codeSigningAccounts/index.js.map +1 -0
  32. package/dist/browser/classic/index.d.ts +4 -0
  33. package/dist/browser/classic/index.d.ts.map +1 -0
  34. package/dist/browser/classic/index.js +4 -0
  35. package/dist/browser/classic/index.js.map +1 -0
  36. package/dist/browser/classic/operations/index.d.ts +14 -0
  37. package/dist/browser/classic/operations/index.d.ts.map +1 -0
  38. package/dist/browser/classic/operations/index.js +12 -0
  39. package/dist/browser/classic/operations/index.js.map +1 -0
  40. package/dist/browser/codeSigningClient.d.ts +21 -0
  41. package/dist/browser/codeSigningClient.d.ts.map +1 -0
  42. package/dist/browser/codeSigningClient.js +22 -0
  43. package/dist/browser/codeSigningClient.js.map +1 -0
  44. package/dist/browser/helpers/serializerHelpers.d.ts +3 -0
  45. package/dist/browser/helpers/serializerHelpers.d.ts.map +1 -0
  46. package/dist/browser/helpers/serializerHelpers.js +24 -0
  47. package/dist/browser/helpers/serializerHelpers.js.map +1 -0
  48. package/dist/browser/index.d.ts +7 -0
  49. package/dist/browser/index.d.ts.map +1 -0
  50. package/dist/browser/index.js +6 -0
  51. package/dist/browser/index.js.map +1 -0
  52. package/dist/browser/logger.d.ts +2 -0
  53. package/dist/browser/logger.d.ts.map +1 -0
  54. package/dist/browser/logger.js +5 -0
  55. package/dist/browser/logger.js.map +1 -0
  56. package/dist/browser/models/index.d.ts +3 -0
  57. package/dist/browser/models/index.d.ts.map +1 -0
  58. package/dist/browser/models/index.js +4 -0
  59. package/dist/browser/models/index.js.map +1 -0
  60. package/dist/browser/models/models.d.ts +426 -0
  61. package/dist/browser/models/models.d.ts.map +1 -0
  62. package/dist/browser/models/models.js +184 -0
  63. package/dist/browser/models/models.js.map +1 -0
  64. package/dist/browser/models/options.d.ts +51 -0
  65. package/dist/browser/models/options.d.ts.map +1 -0
  66. package/dist/browser/models/options.js +4 -0
  67. package/dist/browser/models/options.js.map +1 -0
  68. package/dist/browser/package.json +3 -0
  69. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  70. package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
  71. package/dist/browser/restorePollerHelpers.js +104 -0
  72. package/dist/browser/restorePollerHelpers.js.map +1 -0
  73. package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
  74. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  75. package/dist/browser/static-helpers/pagingHelpers.js +137 -0
  76. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  77. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  78. package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
  79. package/dist/browser/static-helpers/pollingHelpers.js +76 -0
  80. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  81. package/dist/commonjs/api/certificateProfiles/index.d.ts +32 -0
  82. package/dist/commonjs/api/certificateProfiles/index.d.ts.map +1 -0
  83. package/dist/commonjs/api/certificateProfiles/index.js +348 -0
  84. package/dist/commonjs/api/certificateProfiles/index.js.map +1 -0
  85. package/dist/commonjs/api/codeSigningAccounts/index.d.ts +40 -0
  86. package/dist/commonjs/api/codeSigningAccounts/index.d.ts.map +1 -0
  87. package/dist/commonjs/api/codeSigningAccounts/index.js +348 -0
  88. package/dist/commonjs/api/codeSigningAccounts/index.js.map +1 -0
  89. package/dist/commonjs/api/codeSigningContext.d.ts +12 -0
  90. package/dist/commonjs/api/codeSigningContext.d.ts.map +1 -0
  91. package/dist/commonjs/api/codeSigningContext.js +35 -0
  92. package/dist/commonjs/api/codeSigningContext.js.map +1 -0
  93. package/dist/commonjs/api/index.d.ts +2 -0
  94. package/dist/commonjs/api/index.d.ts.map +1 -0
  95. package/dist/commonjs/api/index.js +8 -0
  96. package/dist/commonjs/api/index.js.map +1 -0
  97. package/dist/commonjs/api/operations/index.d.ts +10 -0
  98. package/dist/commonjs/api/operations/index.d.ts.map +1 -0
  99. package/dist/commonjs/api/operations/index.js +45 -0
  100. package/dist/commonjs/api/operations/index.js.map +1 -0
  101. package/dist/commonjs/classic/certificateProfiles/index.d.ts +32 -0
  102. package/dist/commonjs/classic/certificateProfiles/index.d.ts.map +1 -0
  103. package/dist/commonjs/classic/certificateProfiles/index.js +20 -0
  104. package/dist/commonjs/classic/certificateProfiles/index.js.map +1 -0
  105. package/dist/commonjs/classic/codeSigningAccounts/index.d.ts +38 -0
  106. package/dist/commonjs/classic/codeSigningAccounts/index.d.ts.map +1 -0
  107. package/dist/commonjs/classic/codeSigningAccounts/index.js +22 -0
  108. package/dist/commonjs/classic/codeSigningAccounts/index.js.map +1 -0
  109. package/dist/commonjs/classic/index.d.ts +4 -0
  110. package/dist/commonjs/classic/index.d.ts.map +1 -0
  111. package/dist/commonjs/classic/index.js +5 -0
  112. package/dist/commonjs/classic/index.js.map +1 -0
  113. package/dist/commonjs/classic/operations/index.d.ts +14 -0
  114. package/dist/commonjs/classic/operations/index.d.ts.map +1 -0
  115. package/dist/commonjs/classic/operations/index.js +16 -0
  116. package/dist/commonjs/classic/operations/index.js.map +1 -0
  117. package/dist/commonjs/codeSigningClient.d.ts +21 -0
  118. package/dist/commonjs/codeSigningClient.d.ts.map +1 -0
  119. package/dist/commonjs/codeSigningClient.js +26 -0
  120. package/dist/commonjs/codeSigningClient.js.map +1 -0
  121. package/dist/commonjs/helpers/serializerHelpers.d.ts +3 -0
  122. package/dist/commonjs/helpers/serializerHelpers.d.ts.map +1 -0
  123. package/dist/commonjs/helpers/serializerHelpers.js +27 -0
  124. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -0
  125. package/dist/commonjs/index.d.ts +7 -0
  126. package/dist/commonjs/index.d.ts.map +1 -0
  127. package/dist/commonjs/index.js +21 -0
  128. package/dist/commonjs/index.js.map +1 -0
  129. package/dist/commonjs/logger.d.ts +2 -0
  130. package/dist/commonjs/logger.d.ts.map +1 -0
  131. package/dist/commonjs/logger.js +8 -0
  132. package/dist/commonjs/logger.js.map +1 -0
  133. package/dist/commonjs/models/index.d.ts +3 -0
  134. package/dist/commonjs/models/index.d.ts.map +1 -0
  135. package/dist/commonjs/models/index.js +17 -0
  136. package/dist/commonjs/models/index.js.map +1 -0
  137. package/dist/commonjs/models/models.d.ts +426 -0
  138. package/dist/commonjs/models/models.d.ts.map +1 -0
  139. package/dist/commonjs/models/models.js +199 -0
  140. package/dist/commonjs/models/models.js.map +1 -0
  141. package/dist/commonjs/models/options.d.ts +51 -0
  142. package/dist/commonjs/models/options.d.ts.map +1 -0
  143. package/dist/commonjs/models/options.js +5 -0
  144. package/dist/commonjs/models/options.js.map +1 -0
  145. package/dist/commonjs/package.json +3 -0
  146. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  147. package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
  148. package/dist/commonjs/restorePollerHelpers.js +107 -0
  149. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  150. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
  151. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  152. package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
  153. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  154. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  155. package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
  156. package/dist/commonjs/static-helpers/pollingHelpers.js +79 -0
  157. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  158. package/dist/commonjs/tsdoc-metadata.json +11 -0
  159. package/dist/esm/api/certificateProfiles/index.d.ts +32 -0
  160. package/dist/esm/api/certificateProfiles/index.d.ts.map +1 -0
  161. package/dist/esm/api/certificateProfiles/index.js +331 -0
  162. package/dist/esm/api/certificateProfiles/index.js.map +1 -0
  163. package/dist/esm/api/codeSigningAccounts/index.d.ts +40 -0
  164. package/dist/esm/api/codeSigningAccounts/index.d.ts.map +1 -0
  165. package/dist/esm/api/codeSigningAccounts/index.js +325 -0
  166. package/dist/esm/api/codeSigningAccounts/index.js.map +1 -0
  167. package/dist/esm/api/codeSigningContext.d.ts +12 -0
  168. package/dist/esm/api/codeSigningContext.d.ts.map +1 -0
  169. package/dist/esm/api/codeSigningContext.js +32 -0
  170. package/dist/esm/api/codeSigningContext.js.map +1 -0
  171. package/dist/esm/api/index.d.ts +2 -0
  172. package/dist/esm/api/index.d.ts.map +1 -0
  173. package/dist/esm/api/index.js +4 -0
  174. package/dist/esm/api/index.js.map +1 -0
  175. package/dist/esm/api/operations/index.d.ts +10 -0
  176. package/dist/esm/api/operations/index.d.ts.map +1 -0
  177. package/dist/esm/api/operations/index.js +40 -0
  178. package/dist/esm/api/operations/index.js.map +1 -0
  179. package/dist/esm/classic/certificateProfiles/index.d.ts +32 -0
  180. package/dist/esm/classic/certificateProfiles/index.d.ts.map +1 -0
  181. package/dist/esm/classic/certificateProfiles/index.js +16 -0
  182. package/dist/esm/classic/certificateProfiles/index.js.map +1 -0
  183. package/dist/esm/classic/codeSigningAccounts/index.d.ts +38 -0
  184. package/dist/esm/classic/codeSigningAccounts/index.d.ts.map +1 -0
  185. package/dist/esm/classic/codeSigningAccounts/index.js +18 -0
  186. package/dist/esm/classic/codeSigningAccounts/index.js.map +1 -0
  187. package/dist/esm/classic/index.d.ts +4 -0
  188. package/dist/esm/classic/index.d.ts.map +1 -0
  189. package/dist/esm/classic/index.js +4 -0
  190. package/dist/esm/classic/index.js.map +1 -0
  191. package/dist/esm/classic/operations/index.d.ts +14 -0
  192. package/dist/esm/classic/operations/index.d.ts.map +1 -0
  193. package/dist/esm/classic/operations/index.js +12 -0
  194. package/dist/esm/classic/operations/index.js.map +1 -0
  195. package/dist/esm/codeSigningClient.d.ts +21 -0
  196. package/dist/esm/codeSigningClient.d.ts.map +1 -0
  197. package/dist/esm/codeSigningClient.js +22 -0
  198. package/dist/esm/codeSigningClient.js.map +1 -0
  199. package/dist/esm/helpers/serializerHelpers.d.ts +3 -0
  200. package/dist/esm/helpers/serializerHelpers.d.ts.map +1 -0
  201. package/dist/esm/helpers/serializerHelpers.js +24 -0
  202. package/dist/esm/helpers/serializerHelpers.js.map +1 -0
  203. package/dist/esm/index.d.ts +7 -0
  204. package/dist/esm/index.d.ts.map +1 -0
  205. package/dist/esm/index.js +6 -0
  206. package/dist/esm/index.js.map +1 -0
  207. package/dist/esm/logger.d.ts +2 -0
  208. package/dist/esm/logger.d.ts.map +1 -0
  209. package/dist/esm/logger.js +5 -0
  210. package/dist/esm/logger.js.map +1 -0
  211. package/dist/esm/models/index.d.ts +3 -0
  212. package/dist/esm/models/index.d.ts.map +1 -0
  213. package/dist/esm/models/index.js +4 -0
  214. package/dist/esm/models/index.js.map +1 -0
  215. package/dist/esm/models/models.d.ts +426 -0
  216. package/dist/esm/models/models.d.ts.map +1 -0
  217. package/dist/esm/models/models.js +184 -0
  218. package/dist/esm/models/models.js.map +1 -0
  219. package/dist/esm/models/options.d.ts +51 -0
  220. package/dist/esm/models/options.d.ts.map +1 -0
  221. package/dist/esm/models/options.js +4 -0
  222. package/dist/esm/models/options.js.map +1 -0
  223. package/dist/esm/package.json +3 -0
  224. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  225. package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
  226. package/dist/esm/restorePollerHelpers.js +104 -0
  227. package/dist/esm/restorePollerHelpers.js.map +1 -0
  228. package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
  229. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  230. package/dist/esm/static-helpers/pagingHelpers.js +137 -0
  231. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  232. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  233. package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
  234. package/dist/esm/static-helpers/pollingHelpers.js +76 -0
  235. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  236. package/dist/react-native/api/certificateProfiles/index.d.ts +32 -0
  237. package/dist/react-native/api/certificateProfiles/index.d.ts.map +1 -0
  238. package/dist/react-native/api/certificateProfiles/index.js +331 -0
  239. package/dist/react-native/api/certificateProfiles/index.js.map +1 -0
  240. package/dist/react-native/api/codeSigningAccounts/index.d.ts +40 -0
  241. package/dist/react-native/api/codeSigningAccounts/index.d.ts.map +1 -0
  242. package/dist/react-native/api/codeSigningAccounts/index.js +325 -0
  243. package/dist/react-native/api/codeSigningAccounts/index.js.map +1 -0
  244. package/dist/react-native/api/codeSigningContext.d.ts +12 -0
  245. package/dist/react-native/api/codeSigningContext.d.ts.map +1 -0
  246. package/dist/react-native/api/codeSigningContext.js +32 -0
  247. package/dist/react-native/api/codeSigningContext.js.map +1 -0
  248. package/dist/react-native/api/index.d.ts +2 -0
  249. package/dist/react-native/api/index.d.ts.map +1 -0
  250. package/dist/react-native/api/index.js +4 -0
  251. package/dist/react-native/api/index.js.map +1 -0
  252. package/dist/react-native/api/operations/index.d.ts +10 -0
  253. package/dist/react-native/api/operations/index.d.ts.map +1 -0
  254. package/dist/react-native/api/operations/index.js +40 -0
  255. package/dist/react-native/api/operations/index.js.map +1 -0
  256. package/dist/react-native/classic/certificateProfiles/index.d.ts +32 -0
  257. package/dist/react-native/classic/certificateProfiles/index.d.ts.map +1 -0
  258. package/dist/react-native/classic/certificateProfiles/index.js +16 -0
  259. package/dist/react-native/classic/certificateProfiles/index.js.map +1 -0
  260. package/dist/react-native/classic/codeSigningAccounts/index.d.ts +38 -0
  261. package/dist/react-native/classic/codeSigningAccounts/index.d.ts.map +1 -0
  262. package/dist/react-native/classic/codeSigningAccounts/index.js +18 -0
  263. package/dist/react-native/classic/codeSigningAccounts/index.js.map +1 -0
  264. package/dist/react-native/classic/index.d.ts +4 -0
  265. package/dist/react-native/classic/index.d.ts.map +1 -0
  266. package/dist/react-native/classic/index.js +4 -0
  267. package/dist/react-native/classic/index.js.map +1 -0
  268. package/dist/react-native/classic/operations/index.d.ts +14 -0
  269. package/dist/react-native/classic/operations/index.d.ts.map +1 -0
  270. package/dist/react-native/classic/operations/index.js +12 -0
  271. package/dist/react-native/classic/operations/index.js.map +1 -0
  272. package/dist/react-native/codeSigningClient.d.ts +21 -0
  273. package/dist/react-native/codeSigningClient.d.ts.map +1 -0
  274. package/dist/react-native/codeSigningClient.js +22 -0
  275. package/dist/react-native/codeSigningClient.js.map +1 -0
  276. package/dist/react-native/helpers/serializerHelpers.d.ts +3 -0
  277. package/dist/react-native/helpers/serializerHelpers.d.ts.map +1 -0
  278. package/dist/react-native/helpers/serializerHelpers.js +24 -0
  279. package/dist/react-native/helpers/serializerHelpers.js.map +1 -0
  280. package/dist/react-native/index.d.ts +7 -0
  281. package/dist/react-native/index.d.ts.map +1 -0
  282. package/dist/react-native/index.js +6 -0
  283. package/dist/react-native/index.js.map +1 -0
  284. package/dist/react-native/logger.d.ts +2 -0
  285. package/dist/react-native/logger.d.ts.map +1 -0
  286. package/dist/react-native/logger.js +5 -0
  287. package/dist/react-native/logger.js.map +1 -0
  288. package/dist/react-native/models/index.d.ts +3 -0
  289. package/dist/react-native/models/index.d.ts.map +1 -0
  290. package/dist/react-native/models/index.js +4 -0
  291. package/dist/react-native/models/index.js.map +1 -0
  292. package/dist/react-native/models/models.d.ts +426 -0
  293. package/dist/react-native/models/models.d.ts.map +1 -0
  294. package/dist/react-native/models/models.js +184 -0
  295. package/dist/react-native/models/models.js.map +1 -0
  296. package/dist/react-native/models/options.d.ts +51 -0
  297. package/dist/react-native/models/options.d.ts.map +1 -0
  298. package/dist/react-native/models/options.js +4 -0
  299. package/dist/react-native/models/options.js.map +1 -0
  300. package/dist/react-native/package.json +3 -0
  301. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  302. package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
  303. package/dist/react-native/restorePollerHelpers.js +104 -0
  304. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  305. package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
  306. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  307. package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
  308. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  309. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  310. package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
  311. package/dist/react-native/static-helpers/pollingHelpers.js +76 -0
  312. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  313. package/package.json +170 -0
  314. package/review/arm-trustedsigning-models.api.md +313 -0
  315. package/review/arm-trustedsigning.api.md +386 -0
@@ -0,0 +1,76 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { createHttpPoller, } from "@azure/core-lro";
4
+ import { createRestError } from "@azure-rest/core-client";
5
+ export function getLongRunningPoller(client, processResponseBody, expectedStatuses, options) {
6
+ const { restoreFrom, getInitialResponse } = options;
7
+ if (!restoreFrom && !getInitialResponse) {
8
+ throw new Error("Either restoreFrom or getInitialResponse must be specified");
9
+ }
10
+ let initialResponse = undefined;
11
+ const pollAbortController = new AbortController();
12
+ const poller = {
13
+ sendInitialRequest: async () => {
14
+ if (!getInitialResponse) {
15
+ throw new Error("getInitialResponse is required when initializing a new poller");
16
+ }
17
+ initialResponse = await getInitialResponse();
18
+ return getLroResponse(initialResponse, expectedStatuses);
19
+ },
20
+ sendPollRequest: async (path, pollOptions) => {
21
+ var _a, _b, _c, _d, _e, _f;
22
+ // The poll request would both listen to the user provided abort signal and the poller's own abort signal
23
+ function abortListener() {
24
+ pollAbortController.abort();
25
+ }
26
+ const abortSignal = pollAbortController.signal;
27
+ if ((_a = options.abortSignal) === null || _a === void 0 ? void 0 : _a.aborted) {
28
+ pollAbortController.abort();
29
+ }
30
+ else if ((_b = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _b === void 0 ? void 0 : _b.aborted) {
31
+ pollAbortController.abort();
32
+ }
33
+ else if (!abortSignal.aborted) {
34
+ (_c = options.abortSignal) === null || _c === void 0 ? void 0 : _c.addEventListener("abort", abortListener, {
35
+ once: true,
36
+ });
37
+ (_d = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _d === void 0 ? void 0 : _d.addEventListener("abort", abortListener, {
38
+ once: true,
39
+ });
40
+ }
41
+ let response;
42
+ try {
43
+ response = await client.pathUnchecked(path).get({ abortSignal });
44
+ }
45
+ finally {
46
+ (_e = options.abortSignal) === null || _e === void 0 ? void 0 : _e.removeEventListener("abort", abortListener);
47
+ (_f = pollOptions === null || pollOptions === void 0 ? void 0 : pollOptions.abortSignal) === null || _f === void 0 ? void 0 : _f.removeEventListener("abort", abortListener);
48
+ }
49
+ return getLroResponse(response, expectedStatuses);
50
+ },
51
+ };
52
+ return createHttpPoller(poller, {
53
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
54
+ resourceLocationConfig: options === null || options === void 0 ? void 0 : options.resourceLocationConfig,
55
+ restoreFrom: options === null || options === void 0 ? void 0 : options.restoreFrom,
56
+ processResult: (result) => {
57
+ return processResponseBody(result);
58
+ },
59
+ });
60
+ }
61
+ /**
62
+ * Converts a Rest Client response to a response that the LRO implementation understands
63
+ * @param response - a rest client http response
64
+ * @param deserializeFn - deserialize function to convert Rest response to modular output
65
+ * @returns - An LRO response that the LRO implementation understands
66
+ */
67
+ function getLroResponse(response, expectedStatuses) {
68
+ if (!expectedStatuses.includes(response.status)) {
69
+ throw createRestError(response);
70
+ }
71
+ return {
72
+ flatResponse: response,
73
+ rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }),
74
+ };
75
+ }
76
+ //# sourceMappingURL=pollingHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pollingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/pollingHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAKL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAiC,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA4BzF,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,mBAA4D,EAC5D,gBAA0B,EAC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AAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PollerLike,\n OperationState,\n ResourceLocationConfig,\n RunningOperation,\n createHttpPoller,\n OperationResponse,\n} from \"@azure/core-lro\";\n\nimport { Client, PathUncheckedResponse, createRestError } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\n\nexport interface GetLongRunningPollerOptions<TResponse> {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * The potential location of the result of the LRO if specified by the LRO extension in the swagger.\n */\n resourceLocationConfig?: ResourceLocationConfig;\n /**\n * The original url of the LRO\n * Should not be null when restoreFrom is set\n */\n initialRequestUrl?: string;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n /**\n * The function to get the initial response\n */\n getInitialResponse?: () => PromiseLike<TResponse>;\n}\nexport function getLongRunningPoller<TResponse extends PathUncheckedResponse, TResult = void>(\n client: Client,\n processResponseBody: (result: TResponse) => Promise<TResult>,\n expectedStatuses: string[],\n options: GetLongRunningPollerOptions<TResponse>,\n): PollerLike<OperationState<TResult>, TResult> {\n const { restoreFrom, getInitialResponse } = options;\n if (!restoreFrom && !getInitialResponse) {\n throw new Error(\"Either restoreFrom or getInitialResponse must be specified\");\n }\n let initialResponse: TResponse | undefined = undefined;\n const pollAbortController = new AbortController();\n const poller: RunningOperation<TResponse> = {\n sendInitialRequest: async () => {\n if (!getInitialResponse) {\n throw new Error(\"getInitialResponse is required when initializing a new poller\");\n }\n initialResponse = await getInitialResponse();\n return getLroResponse(initialResponse, expectedStatuses);\n },\n sendPollRequest: async (\n path: string,\n pollOptions?: {\n abortSignal?: AbortSignalLike;\n },\n ) => {\n // The poll request would both listen to the user provided abort signal and the poller's own abort signal\n function abortListener(): void {\n pollAbortController.abort();\n }\n const abortSignal = pollAbortController.signal;\n if (options.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (pollOptions?.abortSignal?.aborted) {\n pollAbortController.abort();\n } else if (!abortSignal.aborted) {\n options.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n pollOptions?.abortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client.pathUnchecked(path).get({ abortSignal });\n } finally {\n options.abortSignal?.removeEventListener(\"abort\", abortListener);\n pollOptions?.abortSignal?.removeEventListener(\"abort\", abortListener);\n }\n\n return getLroResponse(response as TResponse, expectedStatuses);\n },\n };\n return createHttpPoller(poller, {\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: options?.resourceLocationConfig,\n restoreFrom: options?.restoreFrom,\n processResult: (result: unknown) => {\n return processResponseBody(result as TResponse);\n },\n });\n}\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @param deserializeFn - deserialize function to convert Rest response to modular output\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResponse extends PathUncheckedResponse>(\n response: TResponse,\n expectedStatuses: string[],\n): OperationResponse<TResponse> {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(response);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -0,0 +1,32 @@
1
+ import { CertificateProfile, RevokeCertificate, _CertificateProfileListResult } from "../../models/models.js";
2
+ import { CodeSigningContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ import { CertificateProfilesGetOptionalParams, CertificateProfilesCreateOptionalParams, CertificateProfilesDeleteOptionalParams, CertificateProfilesListByCodeSigningAccountOptionalParams, CertificateProfilesRevokeCertificateOptionalParams } from "../../models/options.js";
7
+ export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, options?: CertificateProfilesGetOptionalParams): StreamableMethod;
8
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<CertificateProfile>;
9
+ /** Get details of a certificate profile. */
10
+ export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, options?: CertificateProfilesGetOptionalParams): Promise<CertificateProfile>;
11
+ export declare function _createSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, resource: CertificateProfile, options?: CertificateProfilesCreateOptionalParams): StreamableMethod;
12
+ export declare function _createDeserialize(result: PathUncheckedResponse): Promise<CertificateProfile>;
13
+ /** Create a certificate profile. */
14
+ export declare function create(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, resource: CertificateProfile, options?: CertificateProfilesCreateOptionalParams): PollerLike<OperationState<CertificateProfile>, CertificateProfile>;
15
+ export declare function _$deleteSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, options?: CertificateProfilesDeleteOptionalParams): StreamableMethod;
16
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
17
+ /** Delete a certificate profile. */
18
+ /**
19
+ * @fixme delete is a reserved word that cannot be used as an operation name.
20
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
21
+ * to the operation to override the generated name.
22
+ */
23
+ export declare function $delete(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, options?: CertificateProfilesDeleteOptionalParams): PollerLike<OperationState<void>, void>;
24
+ export declare function _listByCodeSigningAccountSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: CertificateProfilesListByCodeSigningAccountOptionalParams): StreamableMethod;
25
+ export declare function _listByCodeSigningAccountDeserialize(result: PathUncheckedResponse): Promise<_CertificateProfileListResult>;
26
+ /** List certificate profiles under a trusted signing account. */
27
+ export declare function listByCodeSigningAccount(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: CertificateProfilesListByCodeSigningAccountOptionalParams): PagedAsyncIterableIterator<CertificateProfile>;
28
+ export declare function _revokeCertificateSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, body: RevokeCertificate, options?: CertificateProfilesRevokeCertificateOptionalParams): StreamableMethod;
29
+ export declare function _revokeCertificateDeserialize(result: PathUncheckedResponse): Promise<void>;
30
+ /** Revoke a certificate under a certificate profile. */
31
+ export declare function revokeCertificate(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, profileName: string, body: RevokeCertificate, options?: CertificateProfilesRevokeCertificateOptionalParams): Promise<void>;
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/certificateProfiles/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAEhB,qBAAqB,EAEtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EACL,oCAAoC,EACpC,uCAAuC,EACvC,uCAAuC,EACvC,yDAAyD,EACzD,kDAAkD,EACnD,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,oCAA6D,GACrE,gBAAgB,CAUlB;AAED,wBAAsB,eAAe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c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports._getSend = _getSend;
6
+ exports._getDeserialize = _getDeserialize;
7
+ exports.get = get;
8
+ exports._createSend = _createSend;
9
+ exports._createDeserialize = _createDeserialize;
10
+ exports.create = create;
11
+ exports._$deleteSend = _$deleteSend;
12
+ exports._$deleteDeserialize = _$deleteDeserialize;
13
+ exports.$delete = $delete;
14
+ exports._listByCodeSigningAccountSend = _listByCodeSigningAccountSend;
15
+ exports._listByCodeSigningAccountDeserialize = _listByCodeSigningAccountDeserialize;
16
+ exports.listByCodeSigningAccount = listByCodeSigningAccount;
17
+ exports._revokeCertificateSend = _revokeCertificateSend;
18
+ exports._revokeCertificateDeserialize = _revokeCertificateDeserialize;
19
+ exports.revokeCertificate = revokeCertificate;
20
+ const models_js_1 = require("../../models/models.js");
21
+ const core_client_1 = require("@azure-rest/core-client");
22
+ const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
23
+ const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
24
+ function _getSend(context, subscriptionId, resourceGroupName, accountName, profileName, options = { requestOptions: {} }) {
25
+ return context
26
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}", subscriptionId, resourceGroupName, accountName, profileName)
27
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
28
+ }
29
+ async function _getDeserialize(result) {
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
31
+ const expectedStatuses = ["200"];
32
+ if (!expectedStatuses.includes(result.status)) {
33
+ throw (0, core_client_1.createRestError)(result);
34
+ }
35
+ return {
36
+ id: result.body["id"],
37
+ name: result.body["name"],
38
+ type: result.body["type"],
39
+ systemData: !result.body.systemData
40
+ ? undefined
41
+ : {
42
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
43
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
44
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
45
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
46
+ : undefined,
47
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
48
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
49
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
50
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
51
+ : undefined,
52
+ },
53
+ properties: !result.body.properties
54
+ ? undefined
55
+ : {
56
+ profileType: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["profileType"],
57
+ commonName: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["commonName"],
58
+ organization: (_l = result.body.properties) === null || _l === void 0 ? void 0 : _l["organization"],
59
+ organizationUnit: (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m["organizationUnit"],
60
+ streetAddress: (_o = result.body.properties) === null || _o === void 0 ? void 0 : _o["streetAddress"],
61
+ includeStreetAddress: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["includeStreetAddress"],
62
+ city: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["city"],
63
+ includeCity: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["includeCity"],
64
+ state: (_s = result.body.properties) === null || _s === void 0 ? void 0 : _s["state"],
65
+ includeState: (_t = result.body.properties) === null || _t === void 0 ? void 0 : _t["includeState"],
66
+ country: (_u = result.body.properties) === null || _u === void 0 ? void 0 : _u["country"],
67
+ includeCountry: (_v = result.body.properties) === null || _v === void 0 ? void 0 : _v["includeCountry"],
68
+ postalCode: (_w = result.body.properties) === null || _w === void 0 ? void 0 : _w["postalCode"],
69
+ includePostalCode: (_x = result.body.properties) === null || _x === void 0 ? void 0 : _x["includePostalCode"],
70
+ enhancedKeyUsage: (_y = result.body.properties) === null || _y === void 0 ? void 0 : _y["enhancedKeyUsage"],
71
+ identityValidationId: (_z = result.body.properties) === null || _z === void 0 ? void 0 : _z["identityValidationId"],
72
+ provisioningState: (_0 = result.body.properties) === null || _0 === void 0 ? void 0 : _0["provisioningState"],
73
+ status: (_1 = result.body.properties) === null || _1 === void 0 ? void 0 : _1["status"],
74
+ certificates: ((_2 = result.body.properties) === null || _2 === void 0 ? void 0 : _2["certificates"]) === undefined
75
+ ? (_3 = result.body.properties) === null || _3 === void 0 ? void 0 : _3["certificates"]
76
+ : (_4 = result.body.properties) === null || _4 === void 0 ? void 0 : _4["certificates"].map((p) => {
77
+ var _a, _b, _c, _d, _e, _f, _g, _h;
78
+ return {
79
+ serialNumber: p["serialNumber"],
80
+ subjectName: p["subjectName"],
81
+ thumbprint: p["thumbprint"],
82
+ createdDate: p["createdDate"],
83
+ expiryDate: p["expiryDate"],
84
+ status: p["status"],
85
+ revocation: !p.revocation
86
+ ? undefined
87
+ : {
88
+ requestedAt: ((_a = p.revocation) === null || _a === void 0 ? void 0 : _a["requestedAt"]) !== undefined
89
+ ? new Date((_b = p.revocation) === null || _b === void 0 ? void 0 : _b["requestedAt"])
90
+ : undefined,
91
+ effectiveAt: ((_c = p.revocation) === null || _c === void 0 ? void 0 : _c["effectiveAt"]) !== undefined
92
+ ? new Date((_d = p.revocation) === null || _d === void 0 ? void 0 : _d["effectiveAt"])
93
+ : undefined,
94
+ reason: (_e = p.revocation) === null || _e === void 0 ? void 0 : _e["reason"],
95
+ remarks: (_f = p.revocation) === null || _f === void 0 ? void 0 : _f["remarks"],
96
+ status: (_g = p.revocation) === null || _g === void 0 ? void 0 : _g["status"],
97
+ failureReason: (_h = p.revocation) === null || _h === void 0 ? void 0 : _h["failureReason"],
98
+ },
99
+ };
100
+ }),
101
+ },
102
+ };
103
+ }
104
+ /** Get details of a certificate profile. */
105
+ async function get(context, subscriptionId, resourceGroupName, accountName, profileName, options = { requestOptions: {} }) {
106
+ const result = await _getSend(context, subscriptionId, resourceGroupName, accountName, profileName, options);
107
+ return _getDeserialize(result);
108
+ }
109
+ function _createSend(context, subscriptionId, resourceGroupName, accountName, profileName, resource, options = { requestOptions: {} }) {
110
+ return context
111
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}", subscriptionId, resourceGroupName, accountName, profileName)
112
+ .put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: {
113
+ properties: !resource.properties
114
+ ? resource.properties
115
+ : (0, models_js_1.certificateProfilePropertiesSerializer)(resource.properties),
116
+ } }));
117
+ }
118
+ async function _createDeserialize(result) {
119
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
120
+ const expectedStatuses = ["200", "201"];
121
+ if (!expectedStatuses.includes(result.status)) {
122
+ throw (0, core_client_1.createRestError)(result);
123
+ }
124
+ return {
125
+ id: result.body["id"],
126
+ name: result.body["name"],
127
+ type: result.body["type"],
128
+ systemData: !result.body.systemData
129
+ ? undefined
130
+ : {
131
+ createdBy: (_a = result.body.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
132
+ createdByType: (_b = result.body.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
133
+ createdAt: ((_c = result.body.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
134
+ ? new Date((_d = result.body.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
135
+ : undefined,
136
+ lastModifiedBy: (_e = result.body.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
137
+ lastModifiedByType: (_f = result.body.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
138
+ lastModifiedAt: ((_g = result.body.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
139
+ ? new Date((_h = result.body.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
140
+ : undefined,
141
+ },
142
+ properties: !result.body.properties
143
+ ? undefined
144
+ : {
145
+ profileType: (_j = result.body.properties) === null || _j === void 0 ? void 0 : _j["profileType"],
146
+ commonName: (_k = result.body.properties) === null || _k === void 0 ? void 0 : _k["commonName"],
147
+ organization: (_l = result.body.properties) === null || _l === void 0 ? void 0 : _l["organization"],
148
+ organizationUnit: (_m = result.body.properties) === null || _m === void 0 ? void 0 : _m["organizationUnit"],
149
+ streetAddress: (_o = result.body.properties) === null || _o === void 0 ? void 0 : _o["streetAddress"],
150
+ includeStreetAddress: (_p = result.body.properties) === null || _p === void 0 ? void 0 : _p["includeStreetAddress"],
151
+ city: (_q = result.body.properties) === null || _q === void 0 ? void 0 : _q["city"],
152
+ includeCity: (_r = result.body.properties) === null || _r === void 0 ? void 0 : _r["includeCity"],
153
+ state: (_s = result.body.properties) === null || _s === void 0 ? void 0 : _s["state"],
154
+ includeState: (_t = result.body.properties) === null || _t === void 0 ? void 0 : _t["includeState"],
155
+ country: (_u = result.body.properties) === null || _u === void 0 ? void 0 : _u["country"],
156
+ includeCountry: (_v = result.body.properties) === null || _v === void 0 ? void 0 : _v["includeCountry"],
157
+ postalCode: (_w = result.body.properties) === null || _w === void 0 ? void 0 : _w["postalCode"],
158
+ includePostalCode: (_x = result.body.properties) === null || _x === void 0 ? void 0 : _x["includePostalCode"],
159
+ enhancedKeyUsage: (_y = result.body.properties) === null || _y === void 0 ? void 0 : _y["enhancedKeyUsage"],
160
+ identityValidationId: (_z = result.body.properties) === null || _z === void 0 ? void 0 : _z["identityValidationId"],
161
+ provisioningState: (_0 = result.body.properties) === null || _0 === void 0 ? void 0 : _0["provisioningState"],
162
+ status: (_1 = result.body.properties) === null || _1 === void 0 ? void 0 : _1["status"],
163
+ certificates: ((_2 = result.body.properties) === null || _2 === void 0 ? void 0 : _2["certificates"]) === undefined
164
+ ? (_3 = result.body.properties) === null || _3 === void 0 ? void 0 : _3["certificates"]
165
+ : (_4 = result.body.properties) === null || _4 === void 0 ? void 0 : _4["certificates"].map((p) => {
166
+ var _a, _b, _c, _d, _e, _f, _g, _h;
167
+ return {
168
+ serialNumber: p["serialNumber"],
169
+ subjectName: p["subjectName"],
170
+ thumbprint: p["thumbprint"],
171
+ createdDate: p["createdDate"],
172
+ expiryDate: p["expiryDate"],
173
+ status: p["status"],
174
+ revocation: !p.revocation
175
+ ? undefined
176
+ : {
177
+ requestedAt: ((_a = p.revocation) === null || _a === void 0 ? void 0 : _a["requestedAt"]) !== undefined
178
+ ? new Date((_b = p.revocation) === null || _b === void 0 ? void 0 : _b["requestedAt"])
179
+ : undefined,
180
+ effectiveAt: ((_c = p.revocation) === null || _c === void 0 ? void 0 : _c["effectiveAt"]) !== undefined
181
+ ? new Date((_d = p.revocation) === null || _d === void 0 ? void 0 : _d["effectiveAt"])
182
+ : undefined,
183
+ reason: (_e = p.revocation) === null || _e === void 0 ? void 0 : _e["reason"],
184
+ remarks: (_f = p.revocation) === null || _f === void 0 ? void 0 : _f["remarks"],
185
+ status: (_g = p.revocation) === null || _g === void 0 ? void 0 : _g["status"],
186
+ failureReason: (_h = p.revocation) === null || _h === void 0 ? void 0 : _h["failureReason"],
187
+ },
188
+ };
189
+ }),
190
+ },
191
+ };
192
+ }
193
+ /** Create a certificate profile. */
194
+ function create(context, subscriptionId, resourceGroupName, accountName, profileName, resource, options = { requestOptions: {} }) {
195
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createDeserialize, ["200", "201"], {
196
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
197
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
198
+ getInitialResponse: () => _createSend(context, subscriptionId, resourceGroupName, accountName, profileName, resource, options),
199
+ resourceLocationConfig: "azure-async-operation",
200
+ });
201
+ }
202
+ function _$deleteSend(context, subscriptionId, resourceGroupName, accountName, profileName, options = { requestOptions: {} }) {
203
+ return context
204
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}", subscriptionId, resourceGroupName, accountName, profileName)
205
+ .delete(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
206
+ }
207
+ async function _$deleteDeserialize(result) {
208
+ const expectedStatuses = ["202", "204", "200"];
209
+ if (!expectedStatuses.includes(result.status)) {
210
+ throw (0, core_client_1.createRestError)(result);
211
+ }
212
+ return;
213
+ }
214
+ /** Delete a certificate profile. */
215
+ /**
216
+ * @fixme delete is a reserved word that cannot be used as an operation name.
217
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
218
+ * to the operation to override the generated name.
219
+ */
220
+ function $delete(context, subscriptionId, resourceGroupName, accountName, profileName, options = { requestOptions: {} }) {
221
+ return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
222
+ updateIntervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
223
+ abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal,
224
+ getInitialResponse: () => _$deleteSend(context, subscriptionId, resourceGroupName, accountName, profileName, options),
225
+ resourceLocationConfig: "location",
226
+ });
227
+ }
228
+ function _listByCodeSigningAccountSend(context, subscriptionId, resourceGroupName, accountName, options = {
229
+ requestOptions: {},
230
+ }) {
231
+ return context
232
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles", subscriptionId, resourceGroupName, accountName)
233
+ .get(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)));
234
+ }
235
+ async function _listByCodeSigningAccountDeserialize(result) {
236
+ const expectedStatuses = ["200"];
237
+ if (!expectedStatuses.includes(result.status)) {
238
+ throw (0, core_client_1.createRestError)(result);
239
+ }
240
+ return {
241
+ value: result.body["value"].map((p) => {
242
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
243
+ return {
244
+ id: p["id"],
245
+ name: p["name"],
246
+ type: p["type"],
247
+ systemData: !p.systemData
248
+ ? undefined
249
+ : {
250
+ createdBy: (_a = p.systemData) === null || _a === void 0 ? void 0 : _a["createdBy"],
251
+ createdByType: (_b = p.systemData) === null || _b === void 0 ? void 0 : _b["createdByType"],
252
+ createdAt: ((_c = p.systemData) === null || _c === void 0 ? void 0 : _c["createdAt"]) !== undefined
253
+ ? new Date((_d = p.systemData) === null || _d === void 0 ? void 0 : _d["createdAt"])
254
+ : undefined,
255
+ lastModifiedBy: (_e = p.systemData) === null || _e === void 0 ? void 0 : _e["lastModifiedBy"],
256
+ lastModifiedByType: (_f = p.systemData) === null || _f === void 0 ? void 0 : _f["lastModifiedByType"],
257
+ lastModifiedAt: ((_g = p.systemData) === null || _g === void 0 ? void 0 : _g["lastModifiedAt"]) !== undefined
258
+ ? new Date((_h = p.systemData) === null || _h === void 0 ? void 0 : _h["lastModifiedAt"])
259
+ : undefined,
260
+ },
261
+ properties: !p.properties
262
+ ? undefined
263
+ : {
264
+ profileType: (_j = p.properties) === null || _j === void 0 ? void 0 : _j["profileType"],
265
+ commonName: (_k = p.properties) === null || _k === void 0 ? void 0 : _k["commonName"],
266
+ organization: (_l = p.properties) === null || _l === void 0 ? void 0 : _l["organization"],
267
+ organizationUnit: (_m = p.properties) === null || _m === void 0 ? void 0 : _m["organizationUnit"],
268
+ streetAddress: (_o = p.properties) === null || _o === void 0 ? void 0 : _o["streetAddress"],
269
+ includeStreetAddress: (_p = p.properties) === null || _p === void 0 ? void 0 : _p["includeStreetAddress"],
270
+ city: (_q = p.properties) === null || _q === void 0 ? void 0 : _q["city"],
271
+ includeCity: (_r = p.properties) === null || _r === void 0 ? void 0 : _r["includeCity"],
272
+ state: (_s = p.properties) === null || _s === void 0 ? void 0 : _s["state"],
273
+ includeState: (_t = p.properties) === null || _t === void 0 ? void 0 : _t["includeState"],
274
+ country: (_u = p.properties) === null || _u === void 0 ? void 0 : _u["country"],
275
+ includeCountry: (_v = p.properties) === null || _v === void 0 ? void 0 : _v["includeCountry"],
276
+ postalCode: (_w = p.properties) === null || _w === void 0 ? void 0 : _w["postalCode"],
277
+ includePostalCode: (_x = p.properties) === null || _x === void 0 ? void 0 : _x["includePostalCode"],
278
+ enhancedKeyUsage: (_y = p.properties) === null || _y === void 0 ? void 0 : _y["enhancedKeyUsage"],
279
+ identityValidationId: (_z = p.properties) === null || _z === void 0 ? void 0 : _z["identityValidationId"],
280
+ provisioningState: (_0 = p.properties) === null || _0 === void 0 ? void 0 : _0["provisioningState"],
281
+ status: (_1 = p.properties) === null || _1 === void 0 ? void 0 : _1["status"],
282
+ certificates: ((_2 = p.properties) === null || _2 === void 0 ? void 0 : _2["certificates"]) === undefined
283
+ ? (_3 = p.properties) === null || _3 === void 0 ? void 0 : _3["certificates"]
284
+ : (_4 = p.properties) === null || _4 === void 0 ? void 0 : _4["certificates"].map((p) => {
285
+ var _a, _b, _c, _d, _e, _f, _g, _h;
286
+ return {
287
+ serialNumber: p["serialNumber"],
288
+ subjectName: p["subjectName"],
289
+ thumbprint: p["thumbprint"],
290
+ createdDate: p["createdDate"],
291
+ expiryDate: p["expiryDate"],
292
+ status: p["status"],
293
+ revocation: !p.revocation
294
+ ? undefined
295
+ : {
296
+ requestedAt: ((_a = p.revocation) === null || _a === void 0 ? void 0 : _a["requestedAt"]) !== undefined
297
+ ? new Date((_b = p.revocation) === null || _b === void 0 ? void 0 : _b["requestedAt"])
298
+ : undefined,
299
+ effectiveAt: ((_c = p.revocation) === null || _c === void 0 ? void 0 : _c["effectiveAt"]) !== undefined
300
+ ? new Date((_d = p.revocation) === null || _d === void 0 ? void 0 : _d["effectiveAt"])
301
+ : undefined,
302
+ reason: (_e = p.revocation) === null || _e === void 0 ? void 0 : _e["reason"],
303
+ remarks: (_f = p.revocation) === null || _f === void 0 ? void 0 : _f["remarks"],
304
+ status: (_g = p.revocation) === null || _g === void 0 ? void 0 : _g["status"],
305
+ failureReason: (_h = p.revocation) === null || _h === void 0 ? void 0 : _h["failureReason"],
306
+ },
307
+ };
308
+ }),
309
+ },
310
+ };
311
+ }),
312
+ nextLink: result.body["nextLink"],
313
+ };
314
+ }
315
+ /** List certificate profiles under a trusted signing account. */
316
+ function listByCodeSigningAccount(context, subscriptionId, resourceGroupName, accountName, options = {
317
+ requestOptions: {},
318
+ }) {
319
+ return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByCodeSigningAccountSend(context, subscriptionId, resourceGroupName, accountName, options), _listByCodeSigningAccountDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
320
+ }
321
+ function _revokeCertificateSend(context, subscriptionId, resourceGroupName, accountName, profileName, body, options = {
322
+ requestOptions: {},
323
+ }) {
324
+ return context
325
+ .path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}/revokeCertificate", subscriptionId, resourceGroupName, accountName, profileName)
326
+ .post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: {
327
+ serialNumber: body["serialNumber"],
328
+ thumbprint: body["thumbprint"],
329
+ effectiveAt: body["effectiveAt"].toISOString(),
330
+ reason: body["reason"],
331
+ remarks: body["remarks"],
332
+ } }));
333
+ }
334
+ async function _revokeCertificateDeserialize(result) {
335
+ const expectedStatuses = ["204"];
336
+ if (!expectedStatuses.includes(result.status)) {
337
+ throw (0, core_client_1.createRestError)(result);
338
+ }
339
+ return;
340
+ }
341
+ /** Revoke a certificate under a certificate profile. */
342
+ async function revokeCertificate(context, subscriptionId, resourceGroupName, accountName, profileName, body, options = {
343
+ requestOptions: {},
344
+ }) {
345
+ const result = await _revokeCertificateSend(context, subscriptionId, resourceGroupName, accountName, profileName, body, options);
346
+ return _revokeCertificateDeserialize(result);
347
+ }
348
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/certificateProfiles/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA6BlC,4BAiBC;AAED,0CA8EC;AAGD,kBAiBC;AAED,kCAyBC;AAED,gDAgFC;AAGD,wBAwBC;AAED,oCAiBC;AAED,kDAOC;AAQD,0BAeC;AAED,sEAiBC;AAED,oFAqFC;AAGD,4DAuBC;AAED,wDA6BC;AAED,sEAOC;AAGD,8CAqBC;AA/gBD,sDAKgC;AAEhC,yDAKiC;AACjC,4EAG+C;AAC/C,8EAA8E;AAU9E,SAAgB,QAAQ,CACtB,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB,WAAmB,EACnB,UAAgD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEtE,OAAO,OAAO;SACX,IAAI,CACH,wKAAwK,EACxK,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,WAAW,CACZ;SACA,GAAG,mBAAM,IAAA,iDAAmC,EAAC,OAAO,CAAC,EAAG,CAAC;AAC9D,CAAC;AAEM,KAAK,UAAU,eAAe,CAAC,MAA6B;;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC,IAAI,CAA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MAAM,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n certificateProfilePropertiesSerializer,\n CertificateProfile,\n RevokeCertificate,\n _CertificateProfileListResult,\n} from \"../../models/models.js\";\nimport { CodeSigningContext as Client } from \"../index.js\";\nimport {\n StreamableMethod,\n operationOptionsToRequestParameters,\n PathUncheckedResponse,\n createRestError,\n} from \"@azure-rest/core-client\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n CertificateProfilesGetOptionalParams,\n CertificateProfilesCreateOptionalParams,\n CertificateProfilesDeleteOptionalParams,\n CertificateProfilesListByCodeSigningAccountOptionalParams,\n CertificateProfilesRevokeCertificateOptionalParams,\n} from \"../../models/options.js\";\n\nexport function _getSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n options: CertificateProfilesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<CertificateProfile> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n profileType: result.body.properties?.[\"profileType\"],\n commonName: result.body.properties?.[\"commonName\"],\n organization: result.body.properties?.[\"organization\"],\n organizationUnit: result.body.properties?.[\"organizationUnit\"],\n streetAddress: result.body.properties?.[\"streetAddress\"],\n includeStreetAddress: result.body.properties?.[\"includeStreetAddress\"],\n city: result.body.properties?.[\"city\"],\n includeCity: result.body.properties?.[\"includeCity\"],\n state: result.body.properties?.[\"state\"],\n includeState: result.body.properties?.[\"includeState\"],\n country: result.body.properties?.[\"country\"],\n includeCountry: result.body.properties?.[\"includeCountry\"],\n postalCode: result.body.properties?.[\"postalCode\"],\n includePostalCode: result.body.properties?.[\"includePostalCode\"],\n enhancedKeyUsage: result.body.properties?.[\"enhancedKeyUsage\"],\n identityValidationId: result.body.properties?.[\"identityValidationId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n status: result.body.properties?.[\"status\"],\n certificates:\n result.body.properties?.[\"certificates\"] === undefined\n ? result.body.properties?.[\"certificates\"]\n : result.body.properties?.[\"certificates\"].map((p: any) => {\n return {\n serialNumber: p[\"serialNumber\"],\n subjectName: p[\"subjectName\"],\n thumbprint: p[\"thumbprint\"],\n createdDate: p[\"createdDate\"],\n expiryDate: p[\"expiryDate\"],\n status: p[\"status\"],\n revocation: !p.revocation\n ? undefined\n : {\n requestedAt:\n p.revocation?.[\"requestedAt\"] !== undefined\n ? new Date(p.revocation?.[\"requestedAt\"])\n : undefined,\n effectiveAt:\n p.revocation?.[\"effectiveAt\"] !== undefined\n ? new Date(p.revocation?.[\"effectiveAt\"])\n : undefined,\n reason: p.revocation?.[\"reason\"],\n remarks: p.revocation?.[\"remarks\"],\n status: p.revocation?.[\"status\"],\n failureReason: p.revocation?.[\"failureReason\"],\n },\n };\n }),\n },\n };\n}\n\n/** Get details of a certificate profile. */\nexport async function get(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n options: CertificateProfilesGetOptionalParams = { requestOptions: {} },\n): Promise<CertificateProfile> {\n const result = await _getSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n options,\n );\n return _getDeserialize(result);\n}\n\nexport function _createSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n resource: CertificateProfile,\n options: CertificateProfilesCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: {\n properties: !resource.properties\n ? resource.properties\n : certificateProfilePropertiesSerializer(resource.properties),\n },\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<CertificateProfile> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n id: result.body[\"id\"],\n name: result.body[\"name\"],\n type: result.body[\"type\"],\n systemData: !result.body.systemData\n ? undefined\n : {\n createdBy: result.body.systemData?.[\"createdBy\"],\n createdByType: result.body.systemData?.[\"createdByType\"],\n createdAt:\n result.body.systemData?.[\"createdAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: result.body.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: result.body.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n result.body.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(result.body.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !result.body.properties\n ? undefined\n : {\n profileType: result.body.properties?.[\"profileType\"],\n commonName: result.body.properties?.[\"commonName\"],\n organization: result.body.properties?.[\"organization\"],\n organizationUnit: result.body.properties?.[\"organizationUnit\"],\n streetAddress: result.body.properties?.[\"streetAddress\"],\n includeStreetAddress: result.body.properties?.[\"includeStreetAddress\"],\n city: result.body.properties?.[\"city\"],\n includeCity: result.body.properties?.[\"includeCity\"],\n state: result.body.properties?.[\"state\"],\n includeState: result.body.properties?.[\"includeState\"],\n country: result.body.properties?.[\"country\"],\n includeCountry: result.body.properties?.[\"includeCountry\"],\n postalCode: result.body.properties?.[\"postalCode\"],\n includePostalCode: result.body.properties?.[\"includePostalCode\"],\n enhancedKeyUsage: result.body.properties?.[\"enhancedKeyUsage\"],\n identityValidationId: result.body.properties?.[\"identityValidationId\"],\n provisioningState: result.body.properties?.[\"provisioningState\"],\n status: result.body.properties?.[\"status\"],\n certificates:\n result.body.properties?.[\"certificates\"] === undefined\n ? result.body.properties?.[\"certificates\"]\n : result.body.properties?.[\"certificates\"].map((p: any) => {\n return {\n serialNumber: p[\"serialNumber\"],\n subjectName: p[\"subjectName\"],\n thumbprint: p[\"thumbprint\"],\n createdDate: p[\"createdDate\"],\n expiryDate: p[\"expiryDate\"],\n status: p[\"status\"],\n revocation: !p.revocation\n ? undefined\n : {\n requestedAt:\n p.revocation?.[\"requestedAt\"] !== undefined\n ? new Date(p.revocation?.[\"requestedAt\"])\n : undefined,\n effectiveAt:\n p.revocation?.[\"effectiveAt\"] !== undefined\n ? new Date(p.revocation?.[\"effectiveAt\"])\n : undefined,\n reason: p.revocation?.[\"reason\"],\n remarks: p.revocation?.[\"remarks\"],\n status: p.revocation?.[\"status\"],\n failureReason: p.revocation?.[\"failureReason\"],\n },\n };\n }),\n },\n };\n}\n\n/** Create a certificate profile. */\nexport function create(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n resource: CertificateProfile,\n options: CertificateProfilesCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CertificateProfile>, CertificateProfile> {\n return getLongRunningPoller(context, _createDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<CertificateProfile>, CertificateProfile>;\n}\n\nexport function _$deleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n options: CertificateProfilesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a certificate profile. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n options: CertificateProfilesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, subscriptionId, resourceGroupName, accountName, profileName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _listByCodeSigningAccountSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CertificateProfilesListByCodeSigningAccountOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _listByCodeSigningAccountDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CertificateProfileListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return {\n value: result.body[\"value\"].map((p: any) => {\n return {\n id: p[\"id\"],\n name: p[\"name\"],\n type: p[\"type\"],\n systemData: !p.systemData\n ? undefined\n : {\n createdBy: p.systemData?.[\"createdBy\"],\n createdByType: p.systemData?.[\"createdByType\"],\n createdAt:\n p.systemData?.[\"createdAt\"] !== undefined\n ? new Date(p.systemData?.[\"createdAt\"])\n : undefined,\n lastModifiedBy: p.systemData?.[\"lastModifiedBy\"],\n lastModifiedByType: p.systemData?.[\"lastModifiedByType\"],\n lastModifiedAt:\n p.systemData?.[\"lastModifiedAt\"] !== undefined\n ? new Date(p.systemData?.[\"lastModifiedAt\"])\n : undefined,\n },\n properties: !p.properties\n ? undefined\n : {\n profileType: p.properties?.[\"profileType\"],\n commonName: p.properties?.[\"commonName\"],\n organization: p.properties?.[\"organization\"],\n organizationUnit: p.properties?.[\"organizationUnit\"],\n streetAddress: p.properties?.[\"streetAddress\"],\n includeStreetAddress: p.properties?.[\"includeStreetAddress\"],\n city: p.properties?.[\"city\"],\n includeCity: p.properties?.[\"includeCity\"],\n state: p.properties?.[\"state\"],\n includeState: p.properties?.[\"includeState\"],\n country: p.properties?.[\"country\"],\n includeCountry: p.properties?.[\"includeCountry\"],\n postalCode: p.properties?.[\"postalCode\"],\n includePostalCode: p.properties?.[\"includePostalCode\"],\n enhancedKeyUsage: p.properties?.[\"enhancedKeyUsage\"],\n identityValidationId: p.properties?.[\"identityValidationId\"],\n provisioningState: p.properties?.[\"provisioningState\"],\n status: p.properties?.[\"status\"],\n certificates:\n p.properties?.[\"certificates\"] === undefined\n ? p.properties?.[\"certificates\"]\n : p.properties?.[\"certificates\"].map((p: any) => {\n return {\n serialNumber: p[\"serialNumber\"],\n subjectName: p[\"subjectName\"],\n thumbprint: p[\"thumbprint\"],\n createdDate: p[\"createdDate\"],\n expiryDate: p[\"expiryDate\"],\n status: p[\"status\"],\n revocation: !p.revocation\n ? undefined\n : {\n requestedAt:\n p.revocation?.[\"requestedAt\"] !== undefined\n ? new Date(p.revocation?.[\"requestedAt\"])\n : undefined,\n effectiveAt:\n p.revocation?.[\"effectiveAt\"] !== undefined\n ? new Date(p.revocation?.[\"effectiveAt\"])\n : undefined,\n reason: p.revocation?.[\"reason\"],\n remarks: p.revocation?.[\"remarks\"],\n status: p.revocation?.[\"status\"],\n failureReason: p.revocation?.[\"failureReason\"],\n },\n };\n }),\n },\n };\n }),\n nextLink: result.body[\"nextLink\"],\n };\n}\n\n/** List certificate profiles under a trusted signing account. */\nexport function listByCodeSigningAccount(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: CertificateProfilesListByCodeSigningAccountOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CertificateProfile> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _listByCodeSigningAccountSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n options,\n ),\n _listByCodeSigningAccountDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _revokeCertificateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n body: RevokeCertificate,\n options: CertificateProfilesRevokeCertificateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}/revokeCertificate\",\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n body: {\n serialNumber: body[\"serialNumber\"],\n thumbprint: body[\"thumbprint\"],\n effectiveAt: body[\"effectiveAt\"].toISOString(),\n reason: body[\"reason\"],\n remarks: body[\"remarks\"],\n },\n });\n}\n\nexport async function _revokeCertificateDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Revoke a certificate under a certificate profile. */\nexport async function revokeCertificate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n profileName: string,\n body: RevokeCertificate,\n options: CertificateProfilesRevokeCertificateOptionalParams = {\n requestOptions: {},\n },\n): Promise<void> {\n const result = await _revokeCertificateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n profileName,\n body,\n options,\n );\n return _revokeCertificateDeserialize(result);\n}\n"]}
@@ -0,0 +1,40 @@
1
+ import { CodeSigningAccount, CodeSigningAccountPatch, CheckNameAvailability, CheckNameAvailabilityResult, _CodeSigningAccountListResult } from "../../models/models.js";
2
+ import { CodeSigningContext as Client } from "../index.js";
3
+ import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
4
+ import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { PollerLike, OperationState } from "@azure/core-lro";
6
+ import { CodeSigningAccountsGetOptionalParams, CodeSigningAccountsCreateOptionalParams, CodeSigningAccountsUpdateOptionalParams, CodeSigningAccountsDeleteOptionalParams, CodeSigningAccountsListByResourceGroupOptionalParams, CodeSigningAccountsListBySubscriptionOptionalParams, CodeSigningAccountsCheckNameAvailabilityOptionalParams } from "../../models/options.js";
7
+ export declare function _getSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: CodeSigningAccountsGetOptionalParams): StreamableMethod;
8
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<CodeSigningAccount>;
9
+ /** Get a trusted Signing Account. */
10
+ export declare function get(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: CodeSigningAccountsGetOptionalParams): Promise<CodeSigningAccount>;
11
+ export declare function _createSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, resource: CodeSigningAccount, options?: CodeSigningAccountsCreateOptionalParams): StreamableMethod;
12
+ export declare function _createDeserialize(result: PathUncheckedResponse): Promise<CodeSigningAccount>;
13
+ /** Create a trusted Signing Account. */
14
+ export declare function create(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, resource: CodeSigningAccount, options?: CodeSigningAccountsCreateOptionalParams): PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount>;
15
+ export declare function _updateSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, properties: CodeSigningAccountPatch, options?: CodeSigningAccountsUpdateOptionalParams): StreamableMethod;
16
+ export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<CodeSigningAccount>;
17
+ /** Update a trusted signing account. */
18
+ export declare function update(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, properties: CodeSigningAccountPatch, options?: CodeSigningAccountsUpdateOptionalParams): PollerLike<OperationState<CodeSigningAccount>, CodeSigningAccount>;
19
+ export declare function _$deleteSend(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: CodeSigningAccountsDeleteOptionalParams): StreamableMethod;
20
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
21
+ /** Delete a trusted signing account. */
22
+ /**
23
+ * @fixme delete is a reserved word that cannot be used as an operation name.
24
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
25
+ * to the operation to override the generated name.
26
+ */
27
+ export declare function $delete(context: Client, subscriptionId: string, resourceGroupName: string, accountName: string, options?: CodeSigningAccountsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
28
+ export declare function _listByResourceGroupSend(context: Client, subscriptionId: string, resourceGroupName: string, options?: CodeSigningAccountsListByResourceGroupOptionalParams): StreamableMethod;
29
+ export declare function _listByResourceGroupDeserialize(result: PathUncheckedResponse): Promise<_CodeSigningAccountListResult>;
30
+ /** Lists trusted signing accounts within a resource group. */
31
+ export declare function listByResourceGroup(context: Client, subscriptionId: string, resourceGroupName: string, options?: CodeSigningAccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CodeSigningAccount>;
32
+ export declare function _listBySubscriptionSend(context: Client, subscriptionId: string, options?: CodeSigningAccountsListBySubscriptionOptionalParams): StreamableMethod;
33
+ export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_CodeSigningAccountListResult>;
34
+ /** Lists trusted signing accounts within a subscription. */
35
+ export declare function listBySubscription(context: Client, subscriptionId: string, options?: CodeSigningAccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CodeSigningAccount>;
36
+ export declare function _checkNameAvailabilitySend(context: Client, subscriptionId: string, body: CheckNameAvailability, options?: CodeSigningAccountsCheckNameAvailabilityOptionalParams): StreamableMethod;
37
+ export declare function _checkNameAvailabilityDeserialize(result: PathUncheckedResponse): Promise<CheckNameAvailabilityResult>;
38
+ /** Checks that the trusted signing account name is valid and is not already in use. */
39
+ export declare function checkNameAvailability(context: Client, subscriptionId: string, body: CheckNameAvailability, options?: CodeSigningAccountsCheckNameAvailabilityOptionalParams): Promise<CheckNameAvailabilityResult>;
40
+ //# sourceMappingURL=index.d.ts.map