@azure/arm-containerregistrytasks 1.0.0-alpha.20260216.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 (416) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +118 -0
  3. package/dist/browser/api/agentPools/index.d.ts +3 -0
  4. package/dist/browser/api/agentPools/index.js +4 -0
  5. package/dist/browser/api/agentPools/index.js.map +1 -0
  6. package/dist/browser/api/agentPools/operations.d.ts +36 -0
  7. package/dist/browser/api/agentPools/operations.js +198 -0
  8. package/dist/browser/api/agentPools/operations.js.map +1 -0
  9. package/dist/browser/api/agentPools/options.d.ts +26 -0
  10. package/dist/browser/api/agentPools/options.js +4 -0
  11. package/dist/browser/api/agentPools/options.js.map +1 -0
  12. package/dist/browser/api/containerRegistryTasksManagementContext.d.ts +22 -0
  13. package/dist/browser/api/containerRegistryTasksManagementContext.js +41 -0
  14. package/dist/browser/api/containerRegistryTasksManagementContext.js.map +1 -0
  15. package/dist/browser/api/index.d.ts +2 -0
  16. package/dist/browser/api/index.js +4 -0
  17. package/dist/browser/api/index.js.map +1 -0
  18. package/dist/browser/api/registries/index.d.ts +3 -0
  19. package/dist/browser/api/registries/index.js +4 -0
  20. package/dist/browser/api/registries/index.js.map +1 -0
  21. package/dist/browser/api/registries/operations.d.ts +13 -0
  22. package/dist/browser/api/registries/operations.js +64 -0
  23. package/dist/browser/api/registries/operations.js.map +1 -0
  24. package/dist/browser/api/registries/options.d.ts +8 -0
  25. package/dist/browser/api/registries/options.js +4 -0
  26. package/dist/browser/api/registries/options.js.map +1 -0
  27. package/dist/browser/api/runs/index.d.ts +3 -0
  28. package/dist/browser/api/runs/index.js +4 -0
  29. package/dist/browser/api/runs/index.js.map +1 -0
  30. package/dist/browser/api/runs/operations.d.ts +26 -0
  31. package/dist/browser/api/runs/operations.js +151 -0
  32. package/dist/browser/api/runs/operations.js.map +1 -0
  33. package/dist/browser/api/runs/options.d.ts +21 -0
  34. package/dist/browser/api/runs/options.js +4 -0
  35. package/dist/browser/api/runs/options.js.map +1 -0
  36. package/dist/browser/api/taskRuns/index.d.ts +3 -0
  37. package/dist/browser/api/taskRuns/index.js +4 -0
  38. package/dist/browser/api/taskRuns/index.js.map +1 -0
  39. package/dist/browser/api/taskRuns/operations.d.ts +36 -0
  40. package/dist/browser/api/taskRuns/operations.js +194 -0
  41. package/dist/browser/api/taskRuns/operations.js.map +1 -0
  42. package/dist/browser/api/taskRuns/options.d.ts +24 -0
  43. package/dist/browser/api/taskRuns/options.js +4 -0
  44. package/dist/browser/api/taskRuns/options.js.map +1 -0
  45. package/dist/browser/api/tasks/index.d.ts +3 -0
  46. package/dist/browser/api/tasks/index.js +4 -0
  47. package/dist/browser/api/tasks/index.js.map +1 -0
  48. package/dist/browser/api/tasks/operations.d.ts +35 -0
  49. package/dist/browser/api/tasks/operations.js +185 -0
  50. package/dist/browser/api/tasks/operations.js.map +1 -0
  51. package/dist/browser/api/tasks/options.d.ts +20 -0
  52. package/dist/browser/api/tasks/options.js +4 -0
  53. package/dist/browser/api/tasks/options.js.map +1 -0
  54. package/dist/browser/classic/agentPools/index.d.ts +27 -0
  55. package/dist/browser/classic/agentPools/index.js +19 -0
  56. package/dist/browser/classic/agentPools/index.js.map +1 -0
  57. package/dist/browser/classic/index.d.ts +6 -0
  58. package/dist/browser/classic/index.js +4 -0
  59. package/dist/browser/classic/index.js.map +1 -0
  60. package/dist/browser/classic/registries/index.d.ts +12 -0
  61. package/dist/browser/classic/registries/index.js +15 -0
  62. package/dist/browser/classic/registries/index.js.map +1 -0
  63. package/dist/browser/classic/runs/index.d.ts +19 -0
  64. package/dist/browser/classic/runs/index.js +18 -0
  65. package/dist/browser/classic/runs/index.js.map +1 -0
  66. package/dist/browser/classic/taskRuns/index.d.ts +27 -0
  67. package/dist/browser/classic/taskRuns/index.js +19 -0
  68. package/dist/browser/classic/taskRuns/index.js.map +1 -0
  69. package/dist/browser/classic/tasks/index.d.ts +26 -0
  70. package/dist/browser/classic/tasks/index.js +19 -0
  71. package/dist/browser/classic/tasks/index.js.map +1 -0
  72. package/dist/browser/containerRegistryTasksManagementClient.d.ts +27 -0
  73. package/dist/browser/containerRegistryTasksManagementClient.js +41 -0
  74. package/dist/browser/containerRegistryTasksManagementClient.js.map +1 -0
  75. package/dist/browser/index.d.ts +15 -0
  76. package/dist/browser/index.js +8 -0
  77. package/dist/browser/index.js.map +1 -0
  78. package/dist/browser/logger.d.ts +2 -0
  79. package/dist/browser/logger.js +5 -0
  80. package/dist/browser/logger.js.map +1 -0
  81. package/dist/browser/models/index.d.ts +2 -0
  82. package/dist/browser/models/index.js +4 -0
  83. package/dist/browser/models/index.js.map +1 -0
  84. package/dist/browser/models/models.d.ts +1363 -0
  85. package/dist/browser/models/models.js +1509 -0
  86. package/dist/browser/models/models.js.map +1 -0
  87. package/dist/browser/package.json +3 -0
  88. package/dist/browser/restorePollerHelpers.d.ts +21 -0
  89. package/dist/browser/restorePollerHelpers.js +93 -0
  90. package/dist/browser/restorePollerHelpers.js.map +1 -0
  91. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
  92. package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
  93. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  94. package/dist/browser/static-helpers/pagingHelpers.d.ts +73 -0
  95. package/dist/browser/static-helpers/pagingHelpers.js +121 -0
  96. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  97. package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
  98. package/dist/browser/static-helpers/pollingHelpers.js +79 -0
  99. package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
  100. package/dist/browser/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  101. package/dist/browser/static-helpers/serialization/check-prop-undefined.js +17 -0
  102. package/dist/browser/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  103. package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
  104. package/dist/browser/static-helpers/urlTemplate.js +200 -0
  105. package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
  106. package/dist/commonjs/api/agentPools/index.d.ts +3 -0
  107. package/dist/commonjs/api/agentPools/index.js +13 -0
  108. package/dist/commonjs/api/agentPools/index.js.map +1 -0
  109. package/dist/commonjs/api/agentPools/operations.d.ts +36 -0
  110. package/dist/commonjs/api/agentPools/operations.js +218 -0
  111. package/dist/commonjs/api/agentPools/operations.js.map +1 -0
  112. package/dist/commonjs/api/agentPools/options.d.ts +26 -0
  113. package/dist/commonjs/api/agentPools/options.js +5 -0
  114. package/dist/commonjs/api/agentPools/options.js.map +1 -0
  115. package/dist/commonjs/api/containerRegistryTasksManagementContext.d.ts +22 -0
  116. package/dist/commonjs/api/containerRegistryTasksManagementContext.js +44 -0
  117. package/dist/commonjs/api/containerRegistryTasksManagementContext.js.map +1 -0
  118. package/dist/commonjs/api/index.d.ts +2 -0
  119. package/dist/commonjs/api/index.js +8 -0
  120. package/dist/commonjs/api/index.js.map +1 -0
  121. package/dist/commonjs/api/registries/index.d.ts +3 -0
  122. package/dist/commonjs/api/registries/index.js +9 -0
  123. package/dist/commonjs/api/registries/index.js.map +1 -0
  124. package/dist/commonjs/api/registries/operations.d.ts +13 -0
  125. package/dist/commonjs/api/registries/operations.js +72 -0
  126. package/dist/commonjs/api/registries/operations.js.map +1 -0
  127. package/dist/commonjs/api/registries/options.d.ts +8 -0
  128. package/dist/commonjs/api/registries/options.js +5 -0
  129. package/dist/commonjs/api/registries/options.js.map +1 -0
  130. package/dist/commonjs/api/runs/index.d.ts +3 -0
  131. package/dist/commonjs/api/runs/index.js +12 -0
  132. package/dist/commonjs/api/runs/index.js.map +1 -0
  133. package/dist/commonjs/api/runs/operations.d.ts +26 -0
  134. package/dist/commonjs/api/runs/operations.js +168 -0
  135. package/dist/commonjs/api/runs/operations.js.map +1 -0
  136. package/dist/commonjs/api/runs/options.d.ts +21 -0
  137. package/dist/commonjs/api/runs/options.js +5 -0
  138. package/dist/commonjs/api/runs/options.js.map +1 -0
  139. package/dist/commonjs/api/taskRuns/index.d.ts +3 -0
  140. package/dist/commonjs/api/taskRuns/index.js +13 -0
  141. package/dist/commonjs/api/taskRuns/index.js.map +1 -0
  142. package/dist/commonjs/api/taskRuns/operations.d.ts +36 -0
  143. package/dist/commonjs/api/taskRuns/operations.js +214 -0
  144. package/dist/commonjs/api/taskRuns/operations.js.map +1 -0
  145. package/dist/commonjs/api/taskRuns/options.d.ts +24 -0
  146. package/dist/commonjs/api/taskRuns/options.js +5 -0
  147. package/dist/commonjs/api/taskRuns/options.js.map +1 -0
  148. package/dist/commonjs/api/tasks/index.d.ts +3 -0
  149. package/dist/commonjs/api/tasks/index.js +13 -0
  150. package/dist/commonjs/api/tasks/index.js.map +1 -0
  151. package/dist/commonjs/api/tasks/operations.d.ts +35 -0
  152. package/dist/commonjs/api/tasks/operations.js +205 -0
  153. package/dist/commonjs/api/tasks/operations.js.map +1 -0
  154. package/dist/commonjs/api/tasks/options.d.ts +20 -0
  155. package/dist/commonjs/api/tasks/options.js +5 -0
  156. package/dist/commonjs/api/tasks/options.js.map +1 -0
  157. package/dist/commonjs/classic/agentPools/index.d.ts +27 -0
  158. package/dist/commonjs/classic/agentPools/index.js +22 -0
  159. package/dist/commonjs/classic/agentPools/index.js.map +1 -0
  160. package/dist/commonjs/classic/index.d.ts +6 -0
  161. package/dist/commonjs/classic/index.js +5 -0
  162. package/dist/commonjs/classic/index.js.map +1 -0
  163. package/dist/commonjs/classic/registries/index.d.ts +12 -0
  164. package/dist/commonjs/classic/registries/index.js +18 -0
  165. package/dist/commonjs/classic/registries/index.js.map +1 -0
  166. package/dist/commonjs/classic/runs/index.d.ts +19 -0
  167. package/dist/commonjs/classic/runs/index.js +21 -0
  168. package/dist/commonjs/classic/runs/index.js.map +1 -0
  169. package/dist/commonjs/classic/taskRuns/index.d.ts +27 -0
  170. package/dist/commonjs/classic/taskRuns/index.js +22 -0
  171. package/dist/commonjs/classic/taskRuns/index.js.map +1 -0
  172. package/dist/commonjs/classic/tasks/index.d.ts +26 -0
  173. package/dist/commonjs/classic/tasks/index.js +22 -0
  174. package/dist/commonjs/classic/tasks/index.js.map +1 -0
  175. package/dist/commonjs/containerRegistryTasksManagementClient.d.ts +27 -0
  176. package/dist/commonjs/containerRegistryTasksManagementClient.js +45 -0
  177. package/dist/commonjs/containerRegistryTasksManagementClient.js.map +1 -0
  178. package/dist/commonjs/index.d.ts +15 -0
  179. package/dist/commonjs/index.js +32 -0
  180. package/dist/commonjs/index.js.map +1 -0
  181. package/dist/commonjs/logger.d.ts +2 -0
  182. package/dist/commonjs/logger.js +8 -0
  183. package/dist/commonjs/logger.js.map +1 -0
  184. package/dist/commonjs/models/index.d.ts +2 -0
  185. package/dist/commonjs/models/index.js +26 -0
  186. package/dist/commonjs/models/index.js.map +1 -0
  187. package/dist/commonjs/models/models.d.ts +1363 -0
  188. package/dist/commonjs/models/models.js +1651 -0
  189. package/dist/commonjs/models/models.js.map +1 -0
  190. package/dist/commonjs/package.json +3 -0
  191. package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
  192. package/dist/commonjs/restorePollerHelpers.js +96 -0
  193. package/dist/commonjs/restorePollerHelpers.js.map +1 -0
  194. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
  195. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
  196. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  197. package/dist/commonjs/static-helpers/pagingHelpers.d.ts +73 -0
  198. package/dist/commonjs/static-helpers/pagingHelpers.js +124 -0
  199. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  200. package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
  201. package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
  202. package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
  203. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  204. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +20 -0
  205. package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  206. package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
  207. package/dist/commonjs/static-helpers/urlTemplate.js +203 -0
  208. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
  209. package/dist/commonjs/tsdoc-metadata.json +11 -0
  210. package/dist/esm/api/agentPools/index.d.ts +3 -0
  211. package/dist/esm/api/agentPools/index.js +4 -0
  212. package/dist/esm/api/agentPools/index.js.map +1 -0
  213. package/dist/esm/api/agentPools/operations.d.ts +36 -0
  214. package/dist/esm/api/agentPools/operations.js +198 -0
  215. package/dist/esm/api/agentPools/operations.js.map +1 -0
  216. package/dist/esm/api/agentPools/options.d.ts +26 -0
  217. package/dist/esm/api/agentPools/options.js +4 -0
  218. package/dist/esm/api/agentPools/options.js.map +1 -0
  219. package/dist/esm/api/containerRegistryTasksManagementContext.d.ts +22 -0
  220. package/dist/esm/api/containerRegistryTasksManagementContext.js +41 -0
  221. package/dist/esm/api/containerRegistryTasksManagementContext.js.map +1 -0
  222. package/dist/esm/api/index.d.ts +2 -0
  223. package/dist/esm/api/index.js +4 -0
  224. package/dist/esm/api/index.js.map +1 -0
  225. package/dist/esm/api/registries/index.d.ts +3 -0
  226. package/dist/esm/api/registries/index.js +4 -0
  227. package/dist/esm/api/registries/index.js.map +1 -0
  228. package/dist/esm/api/registries/operations.d.ts +13 -0
  229. package/dist/esm/api/registries/operations.js +64 -0
  230. package/dist/esm/api/registries/operations.js.map +1 -0
  231. package/dist/esm/api/registries/options.d.ts +8 -0
  232. package/dist/esm/api/registries/options.js +4 -0
  233. package/dist/esm/api/registries/options.js.map +1 -0
  234. package/dist/esm/api/runs/index.d.ts +3 -0
  235. package/dist/esm/api/runs/index.js +4 -0
  236. package/dist/esm/api/runs/index.js.map +1 -0
  237. package/dist/esm/api/runs/operations.d.ts +26 -0
  238. package/dist/esm/api/runs/operations.js +151 -0
  239. package/dist/esm/api/runs/operations.js.map +1 -0
  240. package/dist/esm/api/runs/options.d.ts +21 -0
  241. package/dist/esm/api/runs/options.js +4 -0
  242. package/dist/esm/api/runs/options.js.map +1 -0
  243. package/dist/esm/api/taskRuns/index.d.ts +3 -0
  244. package/dist/esm/api/taskRuns/index.js +4 -0
  245. package/dist/esm/api/taskRuns/index.js.map +1 -0
  246. package/dist/esm/api/taskRuns/operations.d.ts +36 -0
  247. package/dist/esm/api/taskRuns/operations.js +194 -0
  248. package/dist/esm/api/taskRuns/operations.js.map +1 -0
  249. package/dist/esm/api/taskRuns/options.d.ts +24 -0
  250. package/dist/esm/api/taskRuns/options.js +4 -0
  251. package/dist/esm/api/taskRuns/options.js.map +1 -0
  252. package/dist/esm/api/tasks/index.d.ts +3 -0
  253. package/dist/esm/api/tasks/index.js +4 -0
  254. package/dist/esm/api/tasks/index.js.map +1 -0
  255. package/dist/esm/api/tasks/operations.d.ts +35 -0
  256. package/dist/esm/api/tasks/operations.js +185 -0
  257. package/dist/esm/api/tasks/operations.js.map +1 -0
  258. package/dist/esm/api/tasks/options.d.ts +20 -0
  259. package/dist/esm/api/tasks/options.js +4 -0
  260. package/dist/esm/api/tasks/options.js.map +1 -0
  261. package/dist/esm/classic/agentPools/index.d.ts +27 -0
  262. package/dist/esm/classic/agentPools/index.js +19 -0
  263. package/dist/esm/classic/agentPools/index.js.map +1 -0
  264. package/dist/esm/classic/index.d.ts +6 -0
  265. package/dist/esm/classic/index.js +4 -0
  266. package/dist/esm/classic/index.js.map +1 -0
  267. package/dist/esm/classic/registries/index.d.ts +12 -0
  268. package/dist/esm/classic/registries/index.js +15 -0
  269. package/dist/esm/classic/registries/index.js.map +1 -0
  270. package/dist/esm/classic/runs/index.d.ts +19 -0
  271. package/dist/esm/classic/runs/index.js +18 -0
  272. package/dist/esm/classic/runs/index.js.map +1 -0
  273. package/dist/esm/classic/taskRuns/index.d.ts +27 -0
  274. package/dist/esm/classic/taskRuns/index.js +19 -0
  275. package/dist/esm/classic/taskRuns/index.js.map +1 -0
  276. package/dist/esm/classic/tasks/index.d.ts +26 -0
  277. package/dist/esm/classic/tasks/index.js +19 -0
  278. package/dist/esm/classic/tasks/index.js.map +1 -0
  279. package/dist/esm/containerRegistryTasksManagementClient.d.ts +27 -0
  280. package/dist/esm/containerRegistryTasksManagementClient.js +41 -0
  281. package/dist/esm/containerRegistryTasksManagementClient.js.map +1 -0
  282. package/dist/esm/index.d.ts +15 -0
  283. package/dist/esm/index.js +8 -0
  284. package/dist/esm/index.js.map +1 -0
  285. package/dist/esm/logger.d.ts +2 -0
  286. package/dist/esm/logger.js +5 -0
  287. package/dist/esm/logger.js.map +1 -0
  288. package/dist/esm/models/index.d.ts +2 -0
  289. package/dist/esm/models/index.js +4 -0
  290. package/dist/esm/models/index.js.map +1 -0
  291. package/dist/esm/models/models.d.ts +1363 -0
  292. package/dist/esm/models/models.js +1509 -0
  293. package/dist/esm/models/models.js.map +1 -0
  294. package/dist/esm/package.json +3 -0
  295. package/dist/esm/restorePollerHelpers.d.ts +21 -0
  296. package/dist/esm/restorePollerHelpers.js +93 -0
  297. package/dist/esm/restorePollerHelpers.js.map +1 -0
  298. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
  299. package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
  300. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  301. package/dist/esm/static-helpers/pagingHelpers.d.ts +73 -0
  302. package/dist/esm/static-helpers/pagingHelpers.js +121 -0
  303. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  304. package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
  305. package/dist/esm/static-helpers/pollingHelpers.js +79 -0
  306. package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
  307. package/dist/esm/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  308. package/dist/esm/static-helpers/serialization/check-prop-undefined.js +17 -0
  309. package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  310. package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
  311. package/dist/esm/static-helpers/urlTemplate.js +200 -0
  312. package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
  313. package/dist/react-native/api/agentPools/index.d.ts +3 -0
  314. package/dist/react-native/api/agentPools/index.js +4 -0
  315. package/dist/react-native/api/agentPools/index.js.map +1 -0
  316. package/dist/react-native/api/agentPools/operations.d.ts +36 -0
  317. package/dist/react-native/api/agentPools/operations.js +198 -0
  318. package/dist/react-native/api/agentPools/operations.js.map +1 -0
  319. package/dist/react-native/api/agentPools/options.d.ts +26 -0
  320. package/dist/react-native/api/agentPools/options.js +4 -0
  321. package/dist/react-native/api/agentPools/options.js.map +1 -0
  322. package/dist/react-native/api/containerRegistryTasksManagementContext.d.ts +22 -0
  323. package/dist/react-native/api/containerRegistryTasksManagementContext.js +41 -0
  324. package/dist/react-native/api/containerRegistryTasksManagementContext.js.map +1 -0
  325. package/dist/react-native/api/index.d.ts +2 -0
  326. package/dist/react-native/api/index.js +4 -0
  327. package/dist/react-native/api/index.js.map +1 -0
  328. package/dist/react-native/api/registries/index.d.ts +3 -0
  329. package/dist/react-native/api/registries/index.js +4 -0
  330. package/dist/react-native/api/registries/index.js.map +1 -0
  331. package/dist/react-native/api/registries/operations.d.ts +13 -0
  332. package/dist/react-native/api/registries/operations.js +64 -0
  333. package/dist/react-native/api/registries/operations.js.map +1 -0
  334. package/dist/react-native/api/registries/options.d.ts +8 -0
  335. package/dist/react-native/api/registries/options.js +4 -0
  336. package/dist/react-native/api/registries/options.js.map +1 -0
  337. package/dist/react-native/api/runs/index.d.ts +3 -0
  338. package/dist/react-native/api/runs/index.js +4 -0
  339. package/dist/react-native/api/runs/index.js.map +1 -0
  340. package/dist/react-native/api/runs/operations.d.ts +26 -0
  341. package/dist/react-native/api/runs/operations.js +151 -0
  342. package/dist/react-native/api/runs/operations.js.map +1 -0
  343. package/dist/react-native/api/runs/options.d.ts +21 -0
  344. package/dist/react-native/api/runs/options.js +4 -0
  345. package/dist/react-native/api/runs/options.js.map +1 -0
  346. package/dist/react-native/api/taskRuns/index.d.ts +3 -0
  347. package/dist/react-native/api/taskRuns/index.js +4 -0
  348. package/dist/react-native/api/taskRuns/index.js.map +1 -0
  349. package/dist/react-native/api/taskRuns/operations.d.ts +36 -0
  350. package/dist/react-native/api/taskRuns/operations.js +194 -0
  351. package/dist/react-native/api/taskRuns/operations.js.map +1 -0
  352. package/dist/react-native/api/taskRuns/options.d.ts +24 -0
  353. package/dist/react-native/api/taskRuns/options.js +4 -0
  354. package/dist/react-native/api/taskRuns/options.js.map +1 -0
  355. package/dist/react-native/api/tasks/index.d.ts +3 -0
  356. package/dist/react-native/api/tasks/index.js +4 -0
  357. package/dist/react-native/api/tasks/index.js.map +1 -0
  358. package/dist/react-native/api/tasks/operations.d.ts +35 -0
  359. package/dist/react-native/api/tasks/operations.js +185 -0
  360. package/dist/react-native/api/tasks/operations.js.map +1 -0
  361. package/dist/react-native/api/tasks/options.d.ts +20 -0
  362. package/dist/react-native/api/tasks/options.js +4 -0
  363. package/dist/react-native/api/tasks/options.js.map +1 -0
  364. package/dist/react-native/classic/agentPools/index.d.ts +27 -0
  365. package/dist/react-native/classic/agentPools/index.js +19 -0
  366. package/dist/react-native/classic/agentPools/index.js.map +1 -0
  367. package/dist/react-native/classic/index.d.ts +6 -0
  368. package/dist/react-native/classic/index.js +4 -0
  369. package/dist/react-native/classic/index.js.map +1 -0
  370. package/dist/react-native/classic/registries/index.d.ts +12 -0
  371. package/dist/react-native/classic/registries/index.js +15 -0
  372. package/dist/react-native/classic/registries/index.js.map +1 -0
  373. package/dist/react-native/classic/runs/index.d.ts +19 -0
  374. package/dist/react-native/classic/runs/index.js +18 -0
  375. package/dist/react-native/classic/runs/index.js.map +1 -0
  376. package/dist/react-native/classic/taskRuns/index.d.ts +27 -0
  377. package/dist/react-native/classic/taskRuns/index.js +19 -0
  378. package/dist/react-native/classic/taskRuns/index.js.map +1 -0
  379. package/dist/react-native/classic/tasks/index.d.ts +26 -0
  380. package/dist/react-native/classic/tasks/index.js +19 -0
  381. package/dist/react-native/classic/tasks/index.js.map +1 -0
  382. package/dist/react-native/containerRegistryTasksManagementClient.d.ts +27 -0
  383. package/dist/react-native/containerRegistryTasksManagementClient.js +41 -0
  384. package/dist/react-native/containerRegistryTasksManagementClient.js.map +1 -0
  385. package/dist/react-native/index.d.ts +15 -0
  386. package/dist/react-native/index.js +8 -0
  387. package/dist/react-native/index.js.map +1 -0
  388. package/dist/react-native/logger.d.ts +2 -0
  389. package/dist/react-native/logger.js +5 -0
  390. package/dist/react-native/logger.js.map +1 -0
  391. package/dist/react-native/models/index.d.ts +2 -0
  392. package/dist/react-native/models/index.js +4 -0
  393. package/dist/react-native/models/index.js.map +1 -0
  394. package/dist/react-native/models/models.d.ts +1363 -0
  395. package/dist/react-native/models/models.js +1509 -0
  396. package/dist/react-native/models/models.js.map +1 -0
  397. package/dist/react-native/package.json +3 -0
  398. package/dist/react-native/restorePollerHelpers.d.ts +21 -0
  399. package/dist/react-native/restorePollerHelpers.js +93 -0
  400. package/dist/react-native/restorePollerHelpers.js.map +1 -0
  401. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
  402. package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
  403. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  404. package/dist/react-native/static-helpers/pagingHelpers.d.ts +73 -0
  405. package/dist/react-native/static-helpers/pagingHelpers.js +121 -0
  406. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  407. package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
  408. package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
  409. package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
  410. package/dist/react-native/static-helpers/serialization/check-prop-undefined.d.ts +8 -0
  411. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js +17 -0
  412. package/dist/react-native/static-helpers/serialization/check-prop-undefined.js.map +1 -0
  413. package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
  414. package/dist/react-native/static-helpers/urlTemplate.js +200 -0
  415. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
  416. package/package.json +273 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) Microsoft Corporation.
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # Azure ContainerRegistryTasksManagement client library for JavaScript
2
+
3
+ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ContainerRegistryTasksManagement client.
4
+
5
+ The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components.
6
+
7
+ Key links:
8
+
9
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistrytasks)
10
+ - [Package (NPM)](https://www.npmjs.com/package/@azure/arm-containerregistrytasks)
11
+ - [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-containerregistrytasks?view=azure-node-preview)
12
+ - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistrytasks/samples)
13
+
14
+ ## Getting started
15
+
16
+ ### Currently supported environments
17
+
18
+ - [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
19
+ - Latest versions of Safari, Chrome, Edge and Firefox.
20
+
21
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
22
+
23
+ ### Prerequisites
24
+
25
+ - An [Azure subscription][azure_sub].
26
+
27
+ ### Install the `@azure/arm-containerregistrytasks` package
28
+
29
+ Install the Azure ContainerRegistryTasksManagement client library for JavaScript with `npm`:
30
+
31
+ ```bash
32
+ npm install @azure/arm-containerregistrytasks
33
+ ```
34
+
35
+ ### Create and authenticate a `ContainerRegistryTasksManagementClient`
36
+
37
+ To create a client object to access the Azure ContainerRegistryTasksManagement API, you will need the `endpoint` of your Azure ContainerRegistryTasksManagement resource and a `credential`. The Azure ContainerRegistryTasksManagement client can use Azure Active Directory credentials to authenticate.
38
+ You can find the endpoint for your Azure ContainerRegistryTasksManagement resource in the [Azure Portal][azure_portal].
39
+
40
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
41
+
42
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
43
+
44
+ ```bash
45
+ npm install @azure/identity
46
+ ```
47
+
48
+ You will also need to **register a new AAD application and grant access to Azure ContainerRegistryTasksManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
49
+
50
+ For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
51
+
52
+ Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
53
+
54
+ ```ts snippet:ReadmeSampleCreateClient_Node
55
+ import { ContainerRegistryTasksManagementClient } from "@azure/arm-containerregistrytasks";
56
+ import { DefaultAzureCredential } from "@azure/identity";
57
+
58
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
59
+ const client = new ContainerRegistryTasksManagementClient(
60
+ new DefaultAzureCredential(),
61
+ subscriptionId,
62
+ );
63
+ ```
64
+
65
+ For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
66
+
67
+ ```ts snippet:ReadmeSampleCreateClient_Browser
68
+ import { InteractiveBrowserCredential } from "@azure/identity";
69
+ import { ContainerRegistryTasksManagementClient } from "@azure/arm-containerregistrytasks";
70
+
71
+ const credential = new InteractiveBrowserCredential({
72
+ tenantId: "<YOUR_TENANT_ID>",
73
+ clientId: "<YOUR_CLIENT_ID>",
74
+ });
75
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
76
+ const client = new ContainerRegistryTasksManagementClient(credential, subscriptionId);
77
+ ```
78
+
79
+
80
+ ### JavaScript Bundle
81
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
82
+
83
+ ## Key concepts
84
+
85
+ ### ContainerRegistryTasksManagementClient
86
+
87
+ `ContainerRegistryTasksManagementClient` is the primary interface for developers using the Azure ContainerRegistryTasksManagement client library. Explore the methods on this client object to understand the different features of the Azure ContainerRegistryTasksManagement service that you can access.
88
+
89
+ ## Troubleshooting
90
+
91
+ ### Logging
92
+
93
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
94
+
95
+ ```ts snippet:SetLogLevel
96
+ import { setLogLevel } from "@azure/logger";
97
+
98
+ setLogLevel("info");
99
+ ```
100
+
101
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
102
+
103
+ ## Next steps
104
+
105
+ Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistrytasks/samples) directory for detailed examples on how to use this library.
106
+
107
+ ## Contributing
108
+
109
+ If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
110
+
111
+ ## Related projects
112
+
113
+ - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
114
+
115
+ [azure_sub]: https://azure.microsoft.com/free/
116
+ [azure_portal]: https://portal.azure.com
117
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
118
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
@@ -0,0 +1,3 @@
1
+ export { getQueueStatus, list, $delete, update, create, get } from "./operations.js";
2
+ export { AgentPoolsGetQueueStatusOptionalParams, AgentPoolsListOptionalParams, AgentPoolsDeleteOptionalParams, AgentPoolsUpdateOptionalParams, AgentPoolsCreateOptionalParams, AgentPoolsGetOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { getQueueStatus, list, $delete, update, create, get } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/agentPools/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { getQueueStatus, list, $delete, update, create, get } from \"./operations.js\";\nexport {\n AgentPoolsGetQueueStatusOptionalParams,\n AgentPoolsListOptionalParams,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsCreateOptionalParams,\n AgentPoolsGetOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,36 @@
1
+ import type { ContainerRegistryTasksManagementContext as Client } from "../index.js";
2
+ import type { AgentPool, AgentPoolUpdateParameters, _AgentPoolListResult, AgentPoolQueueStatus } from "../../models/models.js";
3
+ import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import type { AgentPoolsGetQueueStatusOptionalParams, AgentPoolsListOptionalParams, AgentPoolsDeleteOptionalParams, AgentPoolsUpdateOptionalParams, AgentPoolsCreateOptionalParams, AgentPoolsGetOptionalParams } from "./options.js";
5
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
+ import type { PollerLike, OperationState } from "@azure/core-lro";
7
+ export declare function _getQueueStatusSend(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, options?: AgentPoolsGetQueueStatusOptionalParams): StreamableMethod;
8
+ export declare function _getQueueStatusDeserialize(result: PathUncheckedResponse): Promise<AgentPoolQueueStatus>;
9
+ /** Gets the count of queued runs for a given agent pool. */
10
+ export declare function getQueueStatus(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, options?: AgentPoolsGetQueueStatusOptionalParams): Promise<AgentPoolQueueStatus>;
11
+ export declare function _listSend(context: Client, resourceGroupName: string, registryName: string, options?: AgentPoolsListOptionalParams): StreamableMethod;
12
+ export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_AgentPoolListResult>;
13
+ /** Lists all the agent pools for a specified container registry. */
14
+ export declare function list(context: Client, resourceGroupName: string, registryName: string, options?: AgentPoolsListOptionalParams): PagedAsyncIterableIterator<AgentPool>;
15
+ export declare function _$deleteSend(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): StreamableMethod;
16
+ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
17
+ /** Deletes a specified agent pool resource. */
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, resourceGroupName: string, registryName: string, agentPoolName: string, options?: AgentPoolsDeleteOptionalParams): PollerLike<OperationState<void>, void>;
24
+ export declare function _updateSend(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, updateParameters: AgentPoolUpdateParameters, options?: AgentPoolsUpdateOptionalParams): StreamableMethod;
25
+ export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<AgentPool>;
26
+ /** Updates an agent pool with the specified parameters. */
27
+ export declare function update(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, updateParameters: AgentPoolUpdateParameters, options?: AgentPoolsUpdateOptionalParams): PollerLike<OperationState<AgentPool>, AgentPool>;
28
+ export declare function _createSend(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, agentPool: AgentPool, options?: AgentPoolsCreateOptionalParams): StreamableMethod;
29
+ export declare function _createDeserialize(result: PathUncheckedResponse): Promise<AgentPool>;
30
+ /** Creates an agent pool for a container registry with the specified parameters. */
31
+ export declare function create(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, agentPool: AgentPool, options?: AgentPoolsCreateOptionalParams): PollerLike<OperationState<AgentPool>, AgentPool>;
32
+ export declare function _getSend(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, options?: AgentPoolsGetOptionalParams): StreamableMethod;
33
+ export declare function _getDeserialize(result: PathUncheckedResponse): Promise<AgentPool>;
34
+ /** Gets the detailed information for a given agent pool. */
35
+ export declare function get(context: Client, resourceGroupName: string, registryName: string, agentPoolName: string, options?: AgentPoolsGetOptionalParams): Promise<AgentPool>;
36
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1,198 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { agentPoolSerializer, agentPoolDeserializer, errorResponseDeserializer, agentPoolUpdateParametersSerializer, _agentPoolListResultDeserializer, agentPoolQueueStatusDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
5
+ import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
6
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
7
+ import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
8
+ export function _getQueueStatusSend(context, resourceGroupName, registryName, agentPoolName, options = { requestOptions: {} }) {
9
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus{?api%2Dversion}", {
10
+ subscriptionId: context.subscriptionId,
11
+ resourceGroupName: resourceGroupName,
12
+ registryName: registryName,
13
+ agentPoolName: agentPoolName,
14
+ "api%2Dversion": context.apiVersion,
15
+ }, {
16
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
17
+ });
18
+ return context.path(path).post({
19
+ ...operationOptionsToRequestParameters(options),
20
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
21
+ });
22
+ }
23
+ export async function _getQueueStatusDeserialize(result) {
24
+ const expectedStatuses = ["200"];
25
+ if (!expectedStatuses.includes(result.status)) {
26
+ const error = createRestError(result);
27
+ error.details = errorResponseDeserializer(result.body);
28
+ throw error;
29
+ }
30
+ return agentPoolQueueStatusDeserializer(result.body);
31
+ }
32
+ /** Gets the count of queued runs for a given agent pool. */
33
+ export async function getQueueStatus(context, resourceGroupName, registryName, agentPoolName, options = { requestOptions: {} }) {
34
+ const result = await _getQueueStatusSend(context, resourceGroupName, registryName, agentPoolName, options);
35
+ return _getQueueStatusDeserialize(result);
36
+ }
37
+ export function _listSend(context, resourceGroupName, registryName, options = { requestOptions: {} }) {
38
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools{?api%2Dversion}", {
39
+ subscriptionId: context.subscriptionId,
40
+ resourceGroupName: resourceGroupName,
41
+ registryName: registryName,
42
+ "api%2Dversion": context.apiVersion,
43
+ }, {
44
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
45
+ });
46
+ return context.path(path).get({
47
+ ...operationOptionsToRequestParameters(options),
48
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
49
+ });
50
+ }
51
+ export async function _listDeserialize(result) {
52
+ const expectedStatuses = ["200"];
53
+ if (!expectedStatuses.includes(result.status)) {
54
+ const error = createRestError(result);
55
+ error.details = errorResponseDeserializer(result.body);
56
+ throw error;
57
+ }
58
+ return _agentPoolListResultDeserializer(result.body);
59
+ }
60
+ /** Lists all the agent pools for a specified container registry. */
61
+ export function list(context, resourceGroupName, registryName, options = { requestOptions: {} }) {
62
+ return buildPagedAsyncIterator(context, () => _listSend(context, resourceGroupName, registryName, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
63
+ }
64
+ export function _$deleteSend(context, resourceGroupName, registryName, agentPoolName, options = { requestOptions: {} }) {
65
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}", {
66
+ subscriptionId: context.subscriptionId,
67
+ resourceGroupName: resourceGroupName,
68
+ registryName: registryName,
69
+ agentPoolName: agentPoolName,
70
+ "api%2Dversion": context.apiVersion,
71
+ }, {
72
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
73
+ });
74
+ return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
75
+ }
76
+ export async function _$deleteDeserialize(result) {
77
+ const expectedStatuses = ["202", "204", "200", "201"];
78
+ if (!expectedStatuses.includes(result.status)) {
79
+ const error = createRestError(result);
80
+ error.details = errorResponseDeserializer(result.body);
81
+ throw error;
82
+ }
83
+ return;
84
+ }
85
+ /** Deletes a specified agent pool resource. */
86
+ /**
87
+ * @fixme delete is a reserved word that cannot be used as an operation name.
88
+ * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
89
+ * to the operation to override the generated name.
90
+ */
91
+ export function $delete(context, resourceGroupName, registryName, agentPoolName, options = { requestOptions: {} }) {
92
+ return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200", "201"], {
93
+ updateIntervalInMs: options?.updateIntervalInMs,
94
+ abortSignal: options?.abortSignal,
95
+ getInitialResponse: () => _$deleteSend(context, resourceGroupName, registryName, agentPoolName, options),
96
+ resourceLocationConfig: "location",
97
+ });
98
+ }
99
+ export function _updateSend(context, resourceGroupName, registryName, agentPoolName, updateParameters, options = { requestOptions: {} }) {
100
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}", {
101
+ subscriptionId: context.subscriptionId,
102
+ resourceGroupName: resourceGroupName,
103
+ registryName: registryName,
104
+ agentPoolName: agentPoolName,
105
+ "api%2Dversion": context.apiVersion,
106
+ }, {
107
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
108
+ });
109
+ return context.path(path).patch({
110
+ ...operationOptionsToRequestParameters(options),
111
+ contentType: "application/json",
112
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
113
+ body: agentPoolUpdateParametersSerializer(updateParameters),
114
+ });
115
+ }
116
+ export async function _updateDeserialize(result) {
117
+ const expectedStatuses = ["200", "201", "202"];
118
+ if (!expectedStatuses.includes(result.status)) {
119
+ const error = createRestError(result);
120
+ error.details = errorResponseDeserializer(result.body);
121
+ throw error;
122
+ }
123
+ return agentPoolDeserializer(result.body);
124
+ }
125
+ /** Updates an agent pool with the specified parameters. */
126
+ export function update(context, resourceGroupName, registryName, agentPoolName, updateParameters, options = { requestOptions: {} }) {
127
+ return getLongRunningPoller(context, _updateDeserialize, ["200", "201", "202"], {
128
+ updateIntervalInMs: options?.updateIntervalInMs,
129
+ abortSignal: options?.abortSignal,
130
+ getInitialResponse: () => _updateSend(context, resourceGroupName, registryName, agentPoolName, updateParameters, options),
131
+ resourceLocationConfig: "azure-async-operation",
132
+ });
133
+ }
134
+ export function _createSend(context, resourceGroupName, registryName, agentPoolName, agentPool, options = { requestOptions: {} }) {
135
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}", {
136
+ subscriptionId: context.subscriptionId,
137
+ resourceGroupName: resourceGroupName,
138
+ registryName: registryName,
139
+ agentPoolName: agentPoolName,
140
+ "api%2Dversion": context.apiVersion,
141
+ }, {
142
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
143
+ });
144
+ return context.path(path).put({
145
+ ...operationOptionsToRequestParameters(options),
146
+ contentType: "application/json",
147
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
148
+ body: agentPoolSerializer(agentPool),
149
+ });
150
+ }
151
+ export async function _createDeserialize(result) {
152
+ const expectedStatuses = ["200", "201", "202"];
153
+ if (!expectedStatuses.includes(result.status)) {
154
+ const error = createRestError(result);
155
+ error.details = errorResponseDeserializer(result.body);
156
+ throw error;
157
+ }
158
+ return agentPoolDeserializer(result.body);
159
+ }
160
+ /** Creates an agent pool for a container registry with the specified parameters. */
161
+ export function create(context, resourceGroupName, registryName, agentPoolName, agentPool, options = { requestOptions: {} }) {
162
+ return getLongRunningPoller(context, _createDeserialize, ["200", "201", "202"], {
163
+ updateIntervalInMs: options?.updateIntervalInMs,
164
+ abortSignal: options?.abortSignal,
165
+ getInitialResponse: () => _createSend(context, resourceGroupName, registryName, agentPoolName, agentPool, options),
166
+ resourceLocationConfig: "azure-async-operation",
167
+ });
168
+ }
169
+ export function _getSend(context, resourceGroupName, registryName, agentPoolName, options = { requestOptions: {} }) {
170
+ const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}", {
171
+ subscriptionId: context.subscriptionId,
172
+ resourceGroupName: resourceGroupName,
173
+ registryName: registryName,
174
+ agentPoolName: agentPoolName,
175
+ "api%2Dversion": context.apiVersion,
176
+ }, {
177
+ allowReserved: options?.requestOptions?.skipUrlEncoding,
178
+ });
179
+ return context.path(path).get({
180
+ ...operationOptionsToRequestParameters(options),
181
+ headers: { accept: "application/json", ...options.requestOptions?.headers },
182
+ });
183
+ }
184
+ export async function _getDeserialize(result) {
185
+ const expectedStatuses = ["200"];
186
+ if (!expectedStatuses.includes(result.status)) {
187
+ const error = createRestError(result);
188
+ error.details = errorResponseDeserializer(result.body);
189
+ throw error;
190
+ }
191
+ return agentPoolDeserializer(result.body);
192
+ }
193
+ /** Gets the detailed information for a given agent pool. */
194
+ export async function get(context, resourceGroupName, registryName, agentPoolName, options = { requestOptions: {} }) {
195
+ const result = await _getSend(context, resourceGroupName, registryName, agentPoolName, options);
196
+ return _getDeserialize(result);
197
+ }
198
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/agentPools/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,mCAAmC,EACnC,gCAAgC,EAChC,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAUxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,M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UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,YAAoB,EACpB,aAAqB,EACrB,UAAuC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7D,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAChG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ContainerRegistryTasksManagementContext as Client } from \"../index.js\";\nimport type {\n AgentPool,\n AgentPoolUpdateParameters,\n _AgentPoolListResult,\n AgentPoolQueueStatus,\n} from \"../../models/models.js\";\nimport {\n agentPoolSerializer,\n agentPoolDeserializer,\n errorResponseDeserializer,\n agentPoolUpdateParametersSerializer,\n _agentPoolListResultDeserializer,\n agentPoolQueueStatusDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n AgentPoolsGetQueueStatusOptionalParams,\n AgentPoolsListOptionalParams,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsCreateOptionalParams,\n AgentPoolsGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _getQueueStatusSend(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options: AgentPoolsGetQueueStatusOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n registryName: registryName,\n agentPoolName: agentPoolName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getQueueStatusDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentPoolQueueStatus> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return agentPoolQueueStatusDeserializer(result.body);\n}\n\n/** Gets the count of queued runs for a given agent pool. */\nexport async function getQueueStatus(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options: AgentPoolsGetQueueStatusOptionalParams = { requestOptions: {} },\n): Promise<AgentPoolQueueStatus> {\n const result = await _getQueueStatusSend(\n context,\n resourceGroupName,\n registryName,\n agentPoolName,\n options,\n );\n return _getQueueStatusDeserialize(result);\n}\n\nexport function _listSend(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n options: AgentPoolsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n registryName: registryName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentPoolListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _agentPoolListResultDeserializer(result.body);\n}\n\n/** Lists all the agent pools for a specified container registry. */\nexport function list(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n options: AgentPoolsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AgentPool> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, resourceGroupName, registryName, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options: AgentPoolsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n registryName: registryName,\n agentPoolName: agentPoolName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Deletes a specified agent pool resource. */\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 resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options: AgentPoolsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, registryName, agentPoolName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options: AgentPoolsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n registryName: registryName,\n agentPoolName: agentPoolName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: agentPoolUpdateParametersSerializer(updateParameters),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<AgentPool> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return agentPoolDeserializer(result.body);\n}\n\n/** Updates an agent pool with the specified parameters. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options: AgentPoolsUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<AgentPool>, AgentPool> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(\n context,\n resourceGroupName,\n registryName,\n agentPoolName,\n updateParameters,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<AgentPool>, AgentPool>;\n}\n\nexport function _createSend(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options: AgentPoolsCreateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n registryName: registryName,\n agentPoolName: agentPoolName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: agentPoolSerializer(agentPool),\n });\n}\n\nexport async function _createDeserialize(result: PathUncheckedResponse): Promise<AgentPool> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return agentPoolDeserializer(result.body);\n}\n\n/** Creates an agent pool for a container registry with the specified parameters. */\nexport function create(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options: AgentPoolsCreateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<AgentPool>, AgentPool> {\n return getLongRunningPoller(context, _createDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createSend(context, resourceGroupName, registryName, agentPoolName, agentPool, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<AgentPool>, AgentPool>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options: AgentPoolsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n registryName: registryName,\n agentPoolName: agentPoolName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<AgentPool> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return agentPoolDeserializer(result.body);\n}\n\n/** Gets the detailed information for a given agent pool. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options: AgentPoolsGetOptionalParams = { requestOptions: {} },\n): Promise<AgentPool> {\n const result = await _getSend(context, resourceGroupName, registryName, agentPoolName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -0,0 +1,26 @@
1
+ import type { OperationOptions } from "@azure-rest/core-client";
2
+ /** Optional parameters. */
3
+ export interface AgentPoolsGetQueueStatusOptionalParams extends OperationOptions {
4
+ }
5
+ /** Optional parameters. */
6
+ export interface AgentPoolsListOptionalParams extends OperationOptions {
7
+ }
8
+ /** Optional parameters. */
9
+ export interface AgentPoolsDeleteOptionalParams extends OperationOptions {
10
+ /** Delay to wait until next poll, in milliseconds. */
11
+ updateIntervalInMs?: number;
12
+ }
13
+ /** Optional parameters. */
14
+ export interface AgentPoolsUpdateOptionalParams extends OperationOptions {
15
+ /** Delay to wait until next poll, in milliseconds. */
16
+ updateIntervalInMs?: number;
17
+ }
18
+ /** Optional parameters. */
19
+ export interface AgentPoolsCreateOptionalParams extends OperationOptions {
20
+ /** Delay to wait until next poll, in milliseconds. */
21
+ updateIntervalInMs?: number;
22
+ }
23
+ /** Optional parameters. */
24
+ export interface AgentPoolsGetOptionalParams extends OperationOptions {
25
+ }
26
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/agentPools/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface AgentPoolsGetQueueStatusOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentPoolsListOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentPoolsDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AgentPoolsUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AgentPoolsCreateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n\n/** Optional parameters. */\nexport interface AgentPoolsGetOptionalParams extends OperationOptions {}\n"]}
@@ -0,0 +1,22 @@
1
+ import type { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
2
+ import type { Client, ClientOptions } from "@azure-rest/core-client";
3
+ import type { TokenCredential } from "@azure/core-auth";
4
+ /** The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components. */
5
+ export interface ContainerRegistryTasksManagementContext extends Client {
6
+ /** The API version to use for this operation. */
7
+ /** Known values of {@link KnownVersions} that the service accepts. */
8
+ apiVersion: string;
9
+ /** The ID of the target subscription. The value must be an UUID. */
10
+ subscriptionId: string;
11
+ }
12
+ /** Optional parameters for the client. */
13
+ export interface ContainerRegistryTasksManagementClientOptionalParams extends ClientOptions {
14
+ /** The API version to use for this operation. */
15
+ /** Known values of {@link KnownVersions} that the service accepts. */
16
+ apiVersion?: string;
17
+ /** Specifies the Azure cloud environment for the client. */
18
+ cloudSetting?: AzureSupportedClouds;
19
+ }
20
+ /** The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components. */
21
+ export declare function createContainerRegistryTasksManagement(credential: TokenCredential, subscriptionId: string, options?: ContainerRegistryTasksManagementClientOptionalParams): ContainerRegistryTasksManagementContext;
22
+ //# sourceMappingURL=containerRegistryTasksManagementContext.d.ts.map
@@ -0,0 +1,41 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { logger } from "../logger.js";
4
+ import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
5
+ import { getClient } from "@azure-rest/core-client";
6
+ /** The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components. */
7
+ export function createContainerRegistryTasksManagement(credential, subscriptionId, options = {}) {
8
+ const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
9
+ const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
10
+ const userAgentInfo = `azsdk-js-arm-containerregistrytasks/1.0.0-beta.1`;
11
+ const userAgentPrefix = prefixFromOptions
12
+ ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
13
+ : `azsdk-js-api ${userAgentInfo}`;
14
+ const { apiVersion: _, ...updatedOptions } = {
15
+ ...options,
16
+ userAgentOptions: { userAgentPrefix },
17
+ loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
18
+ credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },
19
+ };
20
+ const clientContext = getClient(endpointUrl, credential, updatedOptions);
21
+ clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
22
+ const apiVersion = options.apiVersion ?? "2025-03-01-preview";
23
+ clientContext.pipeline.addPolicy({
24
+ name: "ClientApiVersionPolicy",
25
+ sendRequest: (req, next) => {
26
+ // Use the apiVersion defined in request url directly
27
+ // Append one if there is no apiVersion and we have one at client options
28
+ const url = new URL(req.url);
29
+ if (!url.searchParams.get("api-version")) {
30
+ req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
31
+ }
32
+ return next(req);
33
+ },
34
+ });
35
+ return {
36
+ ...clientContext,
37
+ apiVersion,
38
+ subscriptionId,
39
+ };
40
+ }
41
+ //# sourceMappingURL=containerRegistryTasksManagementContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containerRegistryTasksManagementContext.js","sourceRoot":"","sources":["../../../src/api/containerRegistryTasksManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqBpD,qPAAqP;AACrP,MAAM,UAAU,sCAAsC,CACpD,UAA2B,EAC3B,cAAsB,EACtB,UAAgE,EAAE;IAElE,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,M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C,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KAC4B,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport type { AzureSupportedClouds } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport type { Client, ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport type { TokenCredential } from \"@azure/core-auth\";\n\n/** The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components. */\nexport interface ContainerRegistryTasksManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface ContainerRegistryTasksManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components. */\nexport function createContainerRegistryTasksManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: ContainerRegistryTasksManagementClientOptionalParams = {},\n): ContainerRegistryTasksManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-containerregistrytasks/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: { scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`] },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-03-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as ContainerRegistryTasksManagementContext;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export { createContainerRegistryTasksManagement, ContainerRegistryTasksManagementContext, ContainerRegistryTasksManagementClientOptionalParams, } from "./containerRegistryTasksManagementContext.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { createContainerRegistryTasksManagement, } from "./containerRegistryTasksManagementContext.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sCAAsC,GAGvC,MAAM,8CAA8C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createContainerRegistryTasksManagement,\n ContainerRegistryTasksManagementContext,\n ContainerRegistryTasksManagementClientOptionalParams,\n} from \"./containerRegistryTasksManagementContext.js\";\n"]}
@@ -0,0 +1,3 @@
1
+ export { getBuildSourceUploadUrl, scheduleRun } from "./operations.js";
2
+ export { RegistriesGetBuildSourceUploadUrlOptionalParams, RegistriesScheduleRunOptionalParams, } from "./options.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export { getBuildSourceUploadUrl, scheduleRun } from "./operations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/registries/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { getBuildSourceUploadUrl, scheduleRun } from \"./operations.js\";\nexport {\n RegistriesGetBuildSourceUploadUrlOptionalParams,\n RegistriesScheduleRunOptionalParams,\n} from \"./options.js\";\n"]}
@@ -0,0 +1,13 @@
1
+ import type { ContainerRegistryTasksManagementContext as Client } from "../index.js";
2
+ import type { Run, RunRequestUnion, SourceUploadDefinition } from "../../models/models.js";
3
+ import type { RegistriesGetBuildSourceUploadUrlOptionalParams, RegistriesScheduleRunOptionalParams } from "./options.js";
4
+ import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
5
+ export declare function _getBuildSourceUploadUrlSend(context: Client, resourceGroupName: string, registryName: string, options?: RegistriesGetBuildSourceUploadUrlOptionalParams): StreamableMethod;
6
+ export declare function _getBuildSourceUploadUrlDeserialize(result: PathUncheckedResponse): Promise<SourceUploadDefinition>;
7
+ /** Get the upload location for the user to be able to upload the source. */
8
+ export declare function getBuildSourceUploadUrl(context: Client, resourceGroupName: string, registryName: string, options?: RegistriesGetBuildSourceUploadUrlOptionalParams): Promise<SourceUploadDefinition>;
9
+ export declare function _scheduleRunSend(context: Client, resourceGroupName: string, registryName: string, runRequest: RunRequestUnion, options?: RegistriesScheduleRunOptionalParams): StreamableMethod;
10
+ export declare function _scheduleRunDeserialize(result: PathUncheckedResponse): Promise<Run>;
11
+ /** Schedules a new run based on the request parameters and add it to the run queue. */
12
+ export declare function scheduleRun(context: Client, resourceGroupName: string, registryName: string, runRequest: RunRequestUnion, options?: RegistriesScheduleRunOptionalParams): Promise<Run>;
13
+ //# sourceMappingURL=operations.d.ts.map