@azure/arm-containerregistry 8.1.1 → 9.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 (363) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +65 -85
  4. package/dist/index.js +12640 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/containerRegistryManagementClient.d.ts +29 -0
  9. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/containerRegistryManagementClient.js +36 -0
  11. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -0
  12. package/dist-esm/src/containerRegistryManagementClientContext.d.ts +15 -0
  13. package/dist-esm/src/containerRegistryManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/containerRegistryManagementClientContext.js +48 -0
  15. package/dist-esm/src/containerRegistryManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +3421 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +339 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +177 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +3282 -2937
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +54 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +428 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/agentPools.d.ts +107 -0
  37. package/dist-esm/src/operations/agentPools.d.ts.map +1 -0
  38. package/dist-esm/src/operations/agentPools.js +455 -0
  39. package/dist-esm/src/operations/agentPools.js.map +1 -0
  40. package/dist-esm/src/operations/connectedRegistries.d.ts +115 -0
  41. package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -0
  42. package/dist-esm/src/operations/connectedRegistries.js +503 -0
  43. package/dist-esm/src/operations/connectedRegistries.js.map +1 -0
  44. package/dist-esm/src/operations/exportPipelines.d.ts +81 -0
  45. package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -0
  46. package/dist-esm/src/operations/exportPipelines.js +316 -0
  47. package/dist-esm/src/operations/exportPipelines.js.map +1 -0
  48. package/dist-esm/src/operations/importPipelines.d.ts +81 -0
  49. package/dist-esm/src/operations/importPipelines.d.ts.map +1 -0
  50. package/dist-esm/src/operations/importPipelines.js +316 -0
  51. package/dist-esm/src/operations/importPipelines.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +3 -2
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +6 -7
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/operations.d.ts +32 -0
  57. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/operations.js +114 -0
  59. package/dist-esm/src/operations/operations.js.map +1 -0
  60. package/dist-esm/src/operations/pipelineRuns.d.ts +81 -0
  61. package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -0
  62. package/dist-esm/src/operations/pipelineRuns.js +316 -0
  63. package/dist-esm/src/operations/pipelineRuns.js.map +1 -0
  64. package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
  65. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  66. package/dist-esm/src/operations/privateEndpointConnections.js +326 -0
  67. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  68. package/dist-esm/src/operations/registries.d.ts +217 -0
  69. package/dist-esm/src/operations/registries.d.ts.map +1 -0
  70. package/dist-esm/src/operations/registries.js +956 -0
  71. package/dist-esm/src/operations/registries.js.map +1 -0
  72. package/dist-esm/src/operations/replications.d.ts +99 -0
  73. package/dist-esm/src/operations/replications.d.ts.map +1 -0
  74. package/dist-esm/src/operations/replications.js +405 -0
  75. package/dist-esm/src/operations/replications.js.map +1 -0
  76. package/dist-esm/src/operations/runs.d.ts +89 -0
  77. package/dist-esm/src/operations/runs.d.ts.map +1 -0
  78. package/dist-esm/src/operations/runs.js +363 -0
  79. package/dist-esm/src/operations/runs.js.map +1 -0
  80. package/dist-esm/src/operations/scopeMaps.d.ts +99 -0
  81. package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -0
  82. package/dist-esm/src/operations/scopeMaps.js +405 -0
  83. package/dist-esm/src/operations/scopeMaps.js.map +1 -0
  84. package/dist-esm/src/operations/taskRuns.d.ts +107 -0
  85. package/dist-esm/src/operations/taskRuns.d.ts.map +1 -0
  86. package/dist-esm/src/operations/taskRuns.js +455 -0
  87. package/dist-esm/src/operations/taskRuns.js.map +1 -0
  88. package/dist-esm/src/operations/tasks.d.ts +107 -0
  89. package/dist-esm/src/operations/tasks.d.ts.map +1 -0
  90. package/dist-esm/src/operations/tasks.js +461 -0
  91. package/dist-esm/src/operations/tasks.js.map +1 -0
  92. package/dist-esm/src/operations/tokens.d.ts +99 -0
  93. package/dist-esm/src/operations/tokens.d.ts.map +1 -0
  94. package/dist-esm/src/operations/tokens.js +405 -0
  95. package/dist-esm/src/operations/tokens.js.map +1 -0
  96. package/dist-esm/src/operations/webhooks.d.ts +142 -0
  97. package/dist-esm/src/operations/webhooks.d.ts.map +1 -0
  98. package/dist-esm/src/operations/webhooks.js +574 -0
  99. package/dist-esm/src/operations/webhooks.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/agentPools.d.ts +82 -0
  101. package/dist-esm/src/operationsInterfaces/agentPools.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/agentPools.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/agentPools.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/connectedRegistries.d.ts +90 -0
  105. package/dist-esm/src/operationsInterfaces/connectedRegistries.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/connectedRegistries.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/connectedRegistries.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/exportPipelines.d.ts +56 -0
  109. package/dist-esm/src/operationsInterfaces/exportPipelines.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/exportPipelines.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/exportPipelines.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/importPipelines.d.ts +56 -0
  113. package/dist-esm/src/operationsInterfaces/importPipelines.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/importPipelines.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/importPipelines.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/index.d.ts +16 -0
  117. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/index.js +23 -0
  119. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  121. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/pipelineRuns.d.ts +56 -0
  125. package/dist-esm/src/operationsInterfaces/pipelineRuns.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/pipelineRuns.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/pipelineRuns.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  129. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/registries.d.ts +163 -0
  133. package/dist-esm/src/operationsInterfaces/registries.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/registries.js +9 -0
  135. package/dist-esm/src/operationsInterfaces/registries.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/replications.d.ts +74 -0
  137. package/dist-esm/src/operationsInterfaces/replications.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/replications.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/replications.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/runs.d.ts +64 -0
  141. package/dist-esm/src/operationsInterfaces/runs.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/runs.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/runs.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/scopeMaps.d.ts +74 -0
  145. package/dist-esm/src/operationsInterfaces/scopeMaps.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/scopeMaps.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/scopeMaps.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/taskRuns.d.ts +82 -0
  149. package/dist-esm/src/operationsInterfaces/taskRuns.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/taskRuns.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/taskRuns.js.map +1 -0
  152. package/dist-esm/src/operationsInterfaces/tasks.d.ts +82 -0
  153. package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
  154. package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
  155. package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/tokens.d.ts +74 -0
  157. package/dist-esm/src/operationsInterfaces/tokens.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/tokens.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/tokens.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/webhooks.d.ts +98 -0
  161. package/dist-esm/src/operationsInterfaces/webhooks.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/webhooks.js +9 -0
  163. package/dist-esm/src/operationsInterfaces/webhooks.js.map +1 -0
  164. package/dist-esm/test/containerregistry_examples.d.ts +2 -0
  165. package/dist-esm/test/containerregistry_examples.d.ts.map +1 -0
  166. package/dist-esm/test/containerregistry_examples.js +326 -0
  167. package/dist-esm/test/containerregistry_examples.js.map +1 -0
  168. package/package.json +65 -32
  169. package/review/arm-containerregistry.api.md +2912 -0
  170. package/rollup.config.js +181 -30
  171. package/src/containerRegistryManagementClient.ts +78 -60
  172. package/src/containerRegistryManagementClientContext.ts +45 -43
  173. package/src/index.ts +13 -0
  174. package/src/lroImpl.ts +34 -0
  175. package/src/models/index.ts +2913 -4717
  176. package/src/models/mappers.ts +3272 -2889
  177. package/src/models/parameters.ts +342 -124
  178. package/src/operations/agentPools.ts +467 -285
  179. package/src/operations/connectedRegistries.ts +718 -0
  180. package/src/operations/exportPipelines.ts +330 -211
  181. package/src/operations/importPipelines.ts +330 -211
  182. package/src/operations/index.ts +6 -7
  183. package/src/operations/operations.ts +84 -76
  184. package/src/operations/pipelineRuns.ts +330 -211
  185. package/src/operations/privateEndpointConnections.ts +336 -208
  186. package/src/operations/registries.ts +1016 -744
  187. package/src/operations/replications.ts +433 -251
  188. package/src/operations/runs.ts +350 -237
  189. package/src/operations/scopeMaps.ts +433 -251
  190. package/src/operations/taskRuns.ts +471 -289
  191. package/src/operations/tasks.ts +453 -271
  192. package/src/operations/tokens.ts +427 -251
  193. package/src/operations/webhooks.ts +614 -419
  194. package/src/operationsInterfaces/agentPools.ts +162 -0
  195. package/src/operationsInterfaces/connectedRegistries.ts +174 -0
  196. package/src/operationsInterfaces/exportPipelines.ts +109 -0
  197. package/src/operationsInterfaces/importPipelines.ts +109 -0
  198. package/src/operationsInterfaces/index.ts +23 -0
  199. package/src/operationsInterfaces/operations.ts +22 -0
  200. package/src/operationsInterfaces/pipelineRuns.ts +109 -0
  201. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  202. package/src/operationsInterfaces/registries.ts +317 -0
  203. package/src/operationsInterfaces/replications.ts +147 -0
  204. package/src/operationsInterfaces/runs.ts +122 -0
  205. package/src/operationsInterfaces/scopeMaps.ts +147 -0
  206. package/src/operationsInterfaces/taskRuns.ts +162 -0
  207. package/src/operationsInterfaces/tasks.ts +156 -0
  208. package/src/operationsInterfaces/tokens.ts +141 -0
  209. package/src/operationsInterfaces/webhooks.ts +193 -0
  210. package/tsconfig.json +3 -3
  211. package/types/arm-containerregistry.d.ts +4991 -0
  212. package/types/tsdoc-metadata.json +11 -0
  213. package/dist/arm-containerregistry.js +0 -11195
  214. package/dist/arm-containerregistry.js.map +0 -1
  215. package/dist/arm-containerregistry.min.js +0 -1
  216. package/dist/arm-containerregistry.min.js.map +0 -1
  217. package/esm/containerRegistryManagementClient.d.ts +0 -37
  218. package/esm/containerRegistryManagementClient.d.ts.map +0 -1
  219. package/esm/containerRegistryManagementClient.js +0 -51
  220. package/esm/containerRegistryManagementClient.js.map +0 -1
  221. package/esm/containerRegistryManagementClientContext.d.ts +0 -21
  222. package/esm/containerRegistryManagementClientContext.d.ts.map +0 -1
  223. package/esm/containerRegistryManagementClientContext.js +0 -60
  224. package/esm/containerRegistryManagementClientContext.js.map +0 -1
  225. package/esm/models/agentPoolsMappers.d.ts +0 -2
  226. package/esm/models/agentPoolsMappers.d.ts.map +0 -1
  227. package/esm/models/agentPoolsMappers.js +0 -9
  228. package/esm/models/agentPoolsMappers.js.map +0 -1
  229. package/esm/models/exportPipelinesMappers.d.ts +0 -2
  230. package/esm/models/exportPipelinesMappers.d.ts.map +0 -1
  231. package/esm/models/exportPipelinesMappers.js +0 -9
  232. package/esm/models/exportPipelinesMappers.js.map +0 -1
  233. package/esm/models/importPipelinesMappers.d.ts +0 -2
  234. package/esm/models/importPipelinesMappers.d.ts.map +0 -1
  235. package/esm/models/importPipelinesMappers.js +0 -9
  236. package/esm/models/importPipelinesMappers.js.map +0 -1
  237. package/esm/models/index.d.ts +0 -5332
  238. package/esm/models/index.d.ts.map +0 -1
  239. package/esm/models/index.js +0 -8
  240. package/esm/models/index.js.map +0 -1
  241. package/esm/models/mappers.d.ts +0 -165
  242. package/esm/models/mappers.d.ts.map +0 -1
  243. package/esm/models/mappers.js.map +0 -1
  244. package/esm/models/operationsMappers.d.ts +0 -2
  245. package/esm/models/operationsMappers.d.ts.map +0 -1
  246. package/esm/models/operationsMappers.js +0 -9
  247. package/esm/models/operationsMappers.js.map +0 -1
  248. package/esm/models/parameters.d.ts +0 -24
  249. package/esm/models/parameters.d.ts.map +0 -1
  250. package/esm/models/parameters.js +0 -294
  251. package/esm/models/parameters.js.map +0 -1
  252. package/esm/models/pipelineRunsMappers.d.ts +0 -2
  253. package/esm/models/pipelineRunsMappers.d.ts.map +0 -1
  254. package/esm/models/pipelineRunsMappers.js +0 -9
  255. package/esm/models/pipelineRunsMappers.js.map +0 -1
  256. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  257. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  258. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  259. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  260. package/esm/models/registriesMappers.d.ts +0 -2
  261. package/esm/models/registriesMappers.d.ts.map +0 -1
  262. package/esm/models/registriesMappers.js +0 -9
  263. package/esm/models/registriesMappers.js.map +0 -1
  264. package/esm/models/replicationsMappers.d.ts +0 -2
  265. package/esm/models/replicationsMappers.d.ts.map +0 -1
  266. package/esm/models/replicationsMappers.js +0 -9
  267. package/esm/models/replicationsMappers.js.map +0 -1
  268. package/esm/models/runsMappers.d.ts +0 -2
  269. package/esm/models/runsMappers.d.ts.map +0 -1
  270. package/esm/models/runsMappers.js +0 -9
  271. package/esm/models/runsMappers.js.map +0 -1
  272. package/esm/models/scopeMapsMappers.d.ts +0 -2
  273. package/esm/models/scopeMapsMappers.d.ts.map +0 -1
  274. package/esm/models/scopeMapsMappers.js +0 -9
  275. package/esm/models/scopeMapsMappers.js.map +0 -1
  276. package/esm/models/taskRunsMappers.d.ts +0 -2
  277. package/esm/models/taskRunsMappers.d.ts.map +0 -1
  278. package/esm/models/taskRunsMappers.js +0 -9
  279. package/esm/models/taskRunsMappers.js.map +0 -1
  280. package/esm/models/tasksMappers.d.ts +0 -2
  281. package/esm/models/tasksMappers.d.ts.map +0 -1
  282. package/esm/models/tasksMappers.js +0 -9
  283. package/esm/models/tasksMappers.js.map +0 -1
  284. package/esm/models/tokensMappers.d.ts +0 -2
  285. package/esm/models/tokensMappers.d.ts.map +0 -1
  286. package/esm/models/tokensMappers.js +0 -9
  287. package/esm/models/tokensMappers.js.map +0 -1
  288. package/esm/models/webhooksMappers.d.ts +0 -2
  289. package/esm/models/webhooksMappers.d.ts.map +0 -1
  290. package/esm/models/webhooksMappers.js +0 -9
  291. package/esm/models/webhooksMappers.js.map +0 -1
  292. package/esm/operations/agentPools.d.ts +0 -159
  293. package/esm/operations/agentPools.d.ts.map +0 -1
  294. package/esm/operations/agentPools.js +0 -330
  295. package/esm/operations/agentPools.js.map +0 -1
  296. package/esm/operations/exportPipelines.d.ts +0 -115
  297. package/esm/operations/exportPipelines.d.ts.map +0 -1
  298. package/esm/operations/exportPipelines.js +0 -234
  299. package/esm/operations/exportPipelines.js.map +0 -1
  300. package/esm/operations/importPipelines.d.ts +0 -115
  301. package/esm/operations/importPipelines.d.ts.map +0 -1
  302. package/esm/operations/importPipelines.js +0 -234
  303. package/esm/operations/importPipelines.js.map +0 -1
  304. package/esm/operations/index.d.ts.map +0 -1
  305. package/esm/operations/index.js.map +0 -1
  306. package/esm/operations/operations.d.ts +0 -46
  307. package/esm/operations/operations.d.ts.map +0 -1
  308. package/esm/operations/operations.js +0 -77
  309. package/esm/operations/operations.js.map +0 -1
  310. package/esm/operations/pipelineRuns.d.ts +0 -115
  311. package/esm/operations/pipelineRuns.d.ts.map +0 -1
  312. package/esm/operations/pipelineRuns.js +0 -234
  313. package/esm/operations/pipelineRuns.js.map +0 -1
  314. package/esm/operations/privateEndpointConnections.d.ts +0 -117
  315. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  316. package/esm/operations/privateEndpointConnections.js +0 -236
  317. package/esm/operations/privateEndpointConnections.js.map +0 -1
  318. package/esm/operations/registries.d.ts +0 -358
  319. package/esm/operations/registries.d.ts.map +0 -1
  320. package/esm/operations/registries.js +0 -721
  321. package/esm/operations/registries.js.map +0 -1
  322. package/esm/operations/replications.d.ts +0 -135
  323. package/esm/operations/replications.d.ts.map +0 -1
  324. package/esm/operations/replications.js +0 -297
  325. package/esm/operations/replications.js.map +0 -1
  326. package/esm/operations/runs.d.ts +0 -139
  327. package/esm/operations/runs.d.ts.map +0 -1
  328. package/esm/operations/runs.js +0 -268
  329. package/esm/operations/runs.js.map +0 -1
  330. package/esm/operations/scopeMaps.d.ts +0 -135
  331. package/esm/operations/scopeMaps.d.ts.map +0 -1
  332. package/esm/operations/scopeMaps.js +0 -297
  333. package/esm/operations/scopeMaps.js.map +0 -1
  334. package/esm/operations/taskRuns.d.ts +0 -159
  335. package/esm/operations/taskRuns.d.ts.map +0 -1
  336. package/esm/operations/taskRuns.js +0 -330
  337. package/esm/operations/taskRuns.js.map +0 -1
  338. package/esm/operations/tasks.d.ts +0 -159
  339. package/esm/operations/tasks.d.ts.map +0 -1
  340. package/esm/operations/tasks.js +0 -330
  341. package/esm/operations/tasks.js.map +0 -1
  342. package/esm/operations/tokens.d.ts +0 -135
  343. package/esm/operations/tokens.d.ts.map +0 -1
  344. package/esm/operations/tokens.js +0 -297
  345. package/esm/operations/tokens.js.map +0 -1
  346. package/esm/operations/webhooks.d.ts +0 -225
  347. package/esm/operations/webhooks.d.ts.map +0 -1
  348. package/esm/operations/webhooks.js +0 -422
  349. package/esm/operations/webhooks.js.map +0 -1
  350. package/src/models/agentPoolsMappers.ts +0 -93
  351. package/src/models/exportPipelinesMappers.ts +0 -89
  352. package/src/models/importPipelinesMappers.ts +0 -89
  353. package/src/models/operationsMappers.ts +0 -17
  354. package/src/models/pipelineRunsMappers.ts +0 -89
  355. package/src/models/privateEndpointConnectionsMappers.ts +0 -89
  356. package/src/models/registriesMappers.ts +0 -108
  357. package/src/models/replicationsMappers.ts +0 -90
  358. package/src/models/runsMappers.ts +0 -93
  359. package/src/models/scopeMapsMappers.ts +0 -90
  360. package/src/models/taskRunsMappers.ts +0 -92
  361. package/src/models/tasksMappers.ts +0 -103
  362. package/src/models/tokensMappers.ts +0 -90
  363. package/src/models/webhooksMappers.ts +0 -102
@@ -1,287 +1,471 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/agentPoolsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { AgentPools } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
15
13
  import * as Parameters from "../models/parameters";
16
14
  import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ AgentPool,
19
+ AgentPoolsListNextOptionalParams,
20
+ AgentPoolsListOptionalParams,
21
+ AgentPoolsGetOptionalParams,
22
+ AgentPoolsGetResponse,
23
+ AgentPoolsCreateOptionalParams,
24
+ AgentPoolsCreateResponse,
25
+ AgentPoolsDeleteOptionalParams,
26
+ AgentPoolUpdateParameters,
27
+ AgentPoolsUpdateOptionalParams,
28
+ AgentPoolsUpdateResponse,
29
+ AgentPoolsListResponse,
30
+ AgentPoolsGetQueueStatusOptionalParams,
31
+ AgentPoolsGetQueueStatusResponse,
32
+ AgentPoolsListNextResponse
33
+ } from "../models";
17
34
 
18
- /** Class representing a AgentPools. */
19
- export class AgentPools {
35
+ /// <reference lib="esnext.asynciterable" />
36
+ /** Class containing AgentPools operations. */
37
+ export class AgentPoolsImpl implements AgentPools {
20
38
  private readonly client: ContainerRegistryManagementClientContext;
21
39
 
22
40
  /**
23
- * Create a AgentPools.
24
- * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
41
+ * Initialize a new instance of the class AgentPools class.
42
+ * @param client Reference to the service client
25
43
  */
26
44
  constructor(client: ContainerRegistryManagementClientContext) {
27
45
  this.client = client;
28
46
  }
29
47
 
30
48
  /**
31
- * Gets the detailed information for a given agent pool.
32
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
33
- * @param registryName The name of the container registry.
34
- * @param agentPoolName The name of the agent pool.
35
- * @param [options] The optional parameters
36
- * @returns Promise<Models.AgentPoolsGetResponse>
37
- */
38
- get(resourceGroupName: string, registryName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetResponse>;
39
- /**
40
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
41
- * @param registryName The name of the container registry.
42
- * @param agentPoolName The name of the agent pool.
43
- * @param callback The callback
44
- */
45
- get(resourceGroupName: string, registryName: string, agentPoolName: string, callback: msRest.ServiceCallback<Models.AgentPool>): void;
46
- /**
49
+ * Lists all the agent pools for a specified container registry.
47
50
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
48
51
  * @param registryName The name of the container registry.
49
- * @param agentPoolName The name of the agent pool.
50
- * @param options The optional parameters
51
- * @param callback The callback
52
+ * @param options The options parameters.
52
53
  */
53
- get(resourceGroupName: string, registryName: string, agentPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPool>): void;
54
- get(resourceGroupName: string, registryName: string, agentPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPool>, callback?: msRest.ServiceCallback<Models.AgentPool>): Promise<Models.AgentPoolsGetResponse> {
55
- return this.client.sendOperationRequest(
56
- {
54
+ public list(
55
+ resourceGroupName: string,
56
+ registryName: string,
57
+ options?: AgentPoolsListOptionalParams
58
+ ): PagedAsyncIterableIterator<AgentPool> {
59
+ const iter = this.listPagingAll(resourceGroupName, registryName, options);
60
+ return {
61
+ next() {
62
+ return iter.next();
63
+ },
64
+ [Symbol.asyncIterator]() {
65
+ return this;
66
+ },
67
+ byPage: () => {
68
+ return this.listPagingPage(resourceGroupName, registryName, options);
69
+ }
70
+ };
71
+ }
72
+
73
+ private async *listPagingPage(
74
+ resourceGroupName: string,
75
+ registryName: string,
76
+ options?: AgentPoolsListOptionalParams
77
+ ): AsyncIterableIterator<AgentPool[]> {
78
+ let result = await this._list(resourceGroupName, registryName, options);
79
+ yield result.value || [];
80
+ let continuationToken = result.nextLink;
81
+ while (continuationToken) {
82
+ result = await this._listNext(
57
83
  resourceGroupName,
58
84
  registryName,
59
- agentPoolName,
85
+ continuationToken,
60
86
  options
61
- },
62
- getOperationSpec,
63
- callback) as Promise<Models.AgentPoolsGetResponse>;
87
+ );
88
+ continuationToken = result.nextLink;
89
+ yield result.value || [];
90
+ }
64
91
  }
65
92
 
66
- /**
67
- * Creates an agent pool for a container registry with the specified parameters.
68
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
69
- * @param registryName The name of the container registry.
70
- * @param agentPoolName The name of the agent pool.
71
- * @param agentPool The parameters of an agent pool that needs to scheduled.
72
- * @param [options] The optional parameters
73
- * @returns Promise<Models.AgentPoolsCreateResponse>
74
- */
75
- create(resourceGroupName: string, registryName: string, agentPoolName: string, agentPool: Models.AgentPool, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsCreateResponse> {
76
- return this.beginCreate(resourceGroupName,registryName,agentPoolName,agentPool,options)
77
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AgentPoolsCreateResponse>;
93
+ private async *listPagingAll(
94
+ resourceGroupName: string,
95
+ registryName: string,
96
+ options?: AgentPoolsListOptionalParams
97
+ ): AsyncIterableIterator<AgentPool> {
98
+ for await (const page of this.listPagingPage(
99
+ resourceGroupName,
100
+ registryName,
101
+ options
102
+ )) {
103
+ yield* page;
104
+ }
78
105
  }
79
106
 
80
107
  /**
81
- * Deletes a specified agent pool resource.
108
+ * Gets the detailed information for a given agent pool.
82
109
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
83
110
  * @param registryName The name of the container registry.
84
111
  * @param agentPoolName The name of the agent pool.
85
- * @param [options] The optional parameters
86
- * @returns Promise<msRest.RestResponse>
112
+ * @param options The options parameters.
87
113
  */
88
- deleteMethod(resourceGroupName: string, registryName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
89
- return this.beginDeleteMethod(resourceGroupName,registryName,agentPoolName,options)
90
- .then(lroPoller => lroPoller.pollUntilFinished());
114
+ get(
115
+ resourceGroupName: string,
116
+ registryName: string,
117
+ agentPoolName: string,
118
+ options?: AgentPoolsGetOptionalParams
119
+ ): Promise<AgentPoolsGetResponse> {
120
+ return this.client.sendOperationRequest(
121
+ { resourceGroupName, registryName, agentPoolName, options },
122
+ getOperationSpec
123
+ );
91
124
  }
92
125
 
93
126
  /**
94
- * Updates an agent pool with the specified parameters.
127
+ * Creates an agent pool for a container registry with the specified parameters.
95
128
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
96
129
  * @param registryName The name of the container registry.
97
130
  * @param agentPoolName The name of the agent pool.
98
- * @param updateParameters The parameters for updating an agent pool.
99
- * @param [options] The optional parameters
100
- * @returns Promise<Models.AgentPoolsUpdateResponse>
131
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
132
+ * @param options The options parameters.
101
133
  */
102
- update(resourceGroupName: string, registryName: string, agentPoolName: string, updateParameters: Models.AgentPoolUpdateParameters, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsUpdateResponse> {
103
- return this.beginUpdate(resourceGroupName,registryName,agentPoolName,updateParameters,options)
104
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AgentPoolsUpdateResponse>;
134
+ async beginCreate(
135
+ resourceGroupName: string,
136
+ registryName: string,
137
+ agentPoolName: string,
138
+ agentPool: AgentPool,
139
+ options?: AgentPoolsCreateOptionalParams
140
+ ): Promise<
141
+ PollerLike<
142
+ PollOperationState<AgentPoolsCreateResponse>,
143
+ AgentPoolsCreateResponse
144
+ >
145
+ > {
146
+ const directSendOperation = async (
147
+ args: coreClient.OperationArguments,
148
+ spec: coreClient.OperationSpec
149
+ ): Promise<AgentPoolsCreateResponse> => {
150
+ return this.client.sendOperationRequest(args, spec);
151
+ };
152
+ const sendOperation = async (
153
+ args: coreClient.OperationArguments,
154
+ spec: coreClient.OperationSpec
155
+ ) => {
156
+ let currentRawResponse:
157
+ | coreClient.FullOperationResponse
158
+ | undefined = undefined;
159
+ const providedCallback = args.options?.onResponse;
160
+ const callback: coreClient.RawResponseCallback = (
161
+ rawResponse: coreClient.FullOperationResponse,
162
+ flatResponse: unknown
163
+ ) => {
164
+ currentRawResponse = rawResponse;
165
+ providedCallback?.(rawResponse, flatResponse);
166
+ };
167
+ const updatedArgs = {
168
+ ...args,
169
+ options: {
170
+ ...args.options,
171
+ onResponse: callback
172
+ }
173
+ };
174
+ const flatResponse = await directSendOperation(updatedArgs, spec);
175
+ return {
176
+ flatResponse,
177
+ rawResponse: {
178
+ statusCode: currentRawResponse!.status,
179
+ body: currentRawResponse!.parsedBody,
180
+ headers: currentRawResponse!.headers.toJSON()
181
+ }
182
+ };
183
+ };
184
+
185
+ const lro = new LroImpl(
186
+ sendOperation,
187
+ { resourceGroupName, registryName, agentPoolName, agentPool, options },
188
+ createOperationSpec
189
+ );
190
+ return new LroEngine(lro, {
191
+ resumeFrom: options?.resumeFrom,
192
+ intervalInMs: options?.updateIntervalInMs
193
+ });
105
194
  }
106
195
 
107
196
  /**
108
- * Lists all the agent pools for a specified container registry.
109
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
110
- * @param registryName The name of the container registry.
111
- * @param [options] The optional parameters
112
- * @returns Promise<Models.AgentPoolsListResponse>
113
- */
114
- list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsListResponse>;
115
- /**
116
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
117
- * @param registryName The name of the container registry.
118
- * @param callback The callback
119
- */
120
- list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
121
- /**
197
+ * Creates an agent pool for a container registry with the specified parameters.
122
198
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
123
199
  * @param registryName The name of the container registry.
124
- * @param options The optional parameters
125
- * @param callback The callback
200
+ * @param agentPoolName The name of the agent pool.
201
+ * @param agentPool The parameters of an agent pool that needs to scheduled.
202
+ * @param options The options parameters.
126
203
  */
127
- list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
128
- list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolListResult>, callback?: msRest.ServiceCallback<Models.AgentPoolListResult>): Promise<Models.AgentPoolsListResponse> {
129
- return this.client.sendOperationRequest(
130
- {
131
- resourceGroupName,
132
- registryName,
133
- options
134
- },
135
- listOperationSpec,
136
- callback) as Promise<Models.AgentPoolsListResponse>;
204
+ async beginCreateAndWait(
205
+ resourceGroupName: string,
206
+ registryName: string,
207
+ agentPoolName: string,
208
+ agentPool: AgentPool,
209
+ options?: AgentPoolsCreateOptionalParams
210
+ ): Promise<AgentPoolsCreateResponse> {
211
+ const poller = await this.beginCreate(
212
+ resourceGroupName,
213
+ registryName,
214
+ agentPoolName,
215
+ agentPool,
216
+ options
217
+ );
218
+ return poller.pollUntilDone();
137
219
  }
138
220
 
139
221
  /**
140
- * Gets the count of queued runs for a given agent pool.
222
+ * Deletes a specified agent pool resource.
141
223
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
142
224
  * @param registryName The name of the container registry.
143
225
  * @param agentPoolName The name of the agent pool.
144
- * @param [options] The optional parameters
145
- * @returns Promise<Models.AgentPoolsGetQueueStatusResponse>
226
+ * @param options The options parameters.
146
227
  */
147
- getQueueStatus(resourceGroupName: string, registryName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsGetQueueStatusResponse>;
228
+ async beginDelete(
229
+ resourceGroupName: string,
230
+ registryName: string,
231
+ agentPoolName: string,
232
+ options?: AgentPoolsDeleteOptionalParams
233
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
234
+ const directSendOperation = async (
235
+ args: coreClient.OperationArguments,
236
+ spec: coreClient.OperationSpec
237
+ ): Promise<void> => {
238
+ return this.client.sendOperationRequest(args, spec);
239
+ };
240
+ const sendOperation = async (
241
+ args: coreClient.OperationArguments,
242
+ spec: coreClient.OperationSpec
243
+ ) => {
244
+ let currentRawResponse:
245
+ | coreClient.FullOperationResponse
246
+ | undefined = undefined;
247
+ const providedCallback = args.options?.onResponse;
248
+ const callback: coreClient.RawResponseCallback = (
249
+ rawResponse: coreClient.FullOperationResponse,
250
+ flatResponse: unknown
251
+ ) => {
252
+ currentRawResponse = rawResponse;
253
+ providedCallback?.(rawResponse, flatResponse);
254
+ };
255
+ const updatedArgs = {
256
+ ...args,
257
+ options: {
258
+ ...args.options,
259
+ onResponse: callback
260
+ }
261
+ };
262
+ const flatResponse = await directSendOperation(updatedArgs, spec);
263
+ return {
264
+ flatResponse,
265
+ rawResponse: {
266
+ statusCode: currentRawResponse!.status,
267
+ body: currentRawResponse!.parsedBody,
268
+ headers: currentRawResponse!.headers.toJSON()
269
+ }
270
+ };
271
+ };
272
+
273
+ const lro = new LroImpl(
274
+ sendOperation,
275
+ { resourceGroupName, registryName, agentPoolName, options },
276
+ deleteOperationSpec
277
+ );
278
+ return new LroEngine(lro, {
279
+ resumeFrom: options?.resumeFrom,
280
+ intervalInMs: options?.updateIntervalInMs
281
+ });
282
+ }
283
+
148
284
  /**
285
+ * Deletes a specified agent pool resource.
149
286
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
150
287
  * @param registryName The name of the container registry.
151
288
  * @param agentPoolName The name of the agent pool.
152
- * @param callback The callback
289
+ * @param options The options parameters.
153
290
  */
154
- getQueueStatus(resourceGroupName: string, registryName: string, agentPoolName: string, callback: msRest.ServiceCallback<Models.AgentPoolQueueStatus>): void;
291
+ async beginDeleteAndWait(
292
+ resourceGroupName: string,
293
+ registryName: string,
294
+ agentPoolName: string,
295
+ options?: AgentPoolsDeleteOptionalParams
296
+ ): Promise<void> {
297
+ const poller = await this.beginDelete(
298
+ resourceGroupName,
299
+ registryName,
300
+ agentPoolName,
301
+ options
302
+ );
303
+ return poller.pollUntilDone();
304
+ }
305
+
155
306
  /**
307
+ * Updates an agent pool with the specified parameters.
156
308
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
157
309
  * @param registryName The name of the container registry.
158
310
  * @param agentPoolName The name of the agent pool.
159
- * @param options The optional parameters
160
- * @param callback The callback
311
+ * @param updateParameters The parameters for updating an agent pool.
312
+ * @param options The options parameters.
161
313
  */
162
- getQueueStatus(resourceGroupName: string, registryName: string, agentPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolQueueStatus>): void;
163
- getQueueStatus(resourceGroupName: string, registryName: string, agentPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolQueueStatus>, callback?: msRest.ServiceCallback<Models.AgentPoolQueueStatus>): Promise<Models.AgentPoolsGetQueueStatusResponse> {
164
- return this.client.sendOperationRequest(
314
+ async beginUpdate(
315
+ resourceGroupName: string,
316
+ registryName: string,
317
+ agentPoolName: string,
318
+ updateParameters: AgentPoolUpdateParameters,
319
+ options?: AgentPoolsUpdateOptionalParams
320
+ ): Promise<
321
+ PollerLike<
322
+ PollOperationState<AgentPoolsUpdateResponse>,
323
+ AgentPoolsUpdateResponse
324
+ >
325
+ > {
326
+ const directSendOperation = async (
327
+ args: coreClient.OperationArguments,
328
+ spec: coreClient.OperationSpec
329
+ ): Promise<AgentPoolsUpdateResponse> => {
330
+ return this.client.sendOperationRequest(args, spec);
331
+ };
332
+ const sendOperation = async (
333
+ args: coreClient.OperationArguments,
334
+ spec: coreClient.OperationSpec
335
+ ) => {
336
+ let currentRawResponse:
337
+ | coreClient.FullOperationResponse
338
+ | undefined = undefined;
339
+ const providedCallback = args.options?.onResponse;
340
+ const callback: coreClient.RawResponseCallback = (
341
+ rawResponse: coreClient.FullOperationResponse,
342
+ flatResponse: unknown
343
+ ) => {
344
+ currentRawResponse = rawResponse;
345
+ providedCallback?.(rawResponse, flatResponse);
346
+ };
347
+ const updatedArgs = {
348
+ ...args,
349
+ options: {
350
+ ...args.options,
351
+ onResponse: callback
352
+ }
353
+ };
354
+ const flatResponse = await directSendOperation(updatedArgs, spec);
355
+ return {
356
+ flatResponse,
357
+ rawResponse: {
358
+ statusCode: currentRawResponse!.status,
359
+ body: currentRawResponse!.parsedBody,
360
+ headers: currentRawResponse!.headers.toJSON()
361
+ }
362
+ };
363
+ };
364
+
365
+ const lro = new LroImpl(
366
+ sendOperation,
165
367
  {
166
368
  resourceGroupName,
167
369
  registryName,
168
370
  agentPoolName,
371
+ updateParameters,
169
372
  options
170
373
  },
171
- getQueueStatusOperationSpec,
172
- callback) as Promise<Models.AgentPoolsGetQueueStatusResponse>;
374
+ updateOperationSpec
375
+ );
376
+ return new LroEngine(lro, {
377
+ resumeFrom: options?.resumeFrom,
378
+ intervalInMs: options?.updateIntervalInMs
379
+ });
173
380
  }
174
381
 
175
382
  /**
176
- * Creates an agent pool for a container registry with the specified parameters.
383
+ * Updates an agent pool with the specified parameters.
177
384
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
178
385
  * @param registryName The name of the container registry.
179
386
  * @param agentPoolName The name of the agent pool.
180
- * @param agentPool The parameters of an agent pool that needs to scheduled.
181
- * @param [options] The optional parameters
182
- * @returns Promise<msRestAzure.LROPoller>
387
+ * @param updateParameters The parameters for updating an agent pool.
388
+ * @param options The options parameters.
183
389
  */
184
- beginCreate(resourceGroupName: string, registryName: string, agentPoolName: string, agentPool: Models.AgentPool, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
185
- return this.client.sendLRORequest(
186
- {
187
- resourceGroupName,
188
- registryName,
189
- agentPoolName,
190
- agentPool,
191
- options
192
- },
193
- beginCreateOperationSpec,
194
- options);
390
+ async beginUpdateAndWait(
391
+ resourceGroupName: string,
392
+ registryName: string,
393
+ agentPoolName: string,
394
+ updateParameters: AgentPoolUpdateParameters,
395
+ options?: AgentPoolsUpdateOptionalParams
396
+ ): Promise<AgentPoolsUpdateResponse> {
397
+ const poller = await this.beginUpdate(
398
+ resourceGroupName,
399
+ registryName,
400
+ agentPoolName,
401
+ updateParameters,
402
+ options
403
+ );
404
+ return poller.pollUntilDone();
195
405
  }
196
406
 
197
407
  /**
198
- * Deletes a specified agent pool resource.
408
+ * Lists all the agent pools for a specified container registry.
199
409
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
200
410
  * @param registryName The name of the container registry.
201
- * @param agentPoolName The name of the agent pool.
202
- * @param [options] The optional parameters
203
- * @returns Promise<msRestAzure.LROPoller>
411
+ * @param options The options parameters.
204
412
  */
205
- beginDeleteMethod(resourceGroupName: string, registryName: string, agentPoolName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
206
- return this.client.sendLRORequest(
207
- {
208
- resourceGroupName,
209
- registryName,
210
- agentPoolName,
211
- options
212
- },
213
- beginDeleteMethodOperationSpec,
214
- options);
413
+ private _list(
414
+ resourceGroupName: string,
415
+ registryName: string,
416
+ options?: AgentPoolsListOptionalParams
417
+ ): Promise<AgentPoolsListResponse> {
418
+ return this.client.sendOperationRequest(
419
+ { resourceGroupName, registryName, options },
420
+ listOperationSpec
421
+ );
215
422
  }
216
423
 
217
424
  /**
218
- * Updates an agent pool with the specified parameters.
425
+ * Gets the count of queued runs for a given agent pool.
219
426
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
220
427
  * @param registryName The name of the container registry.
221
428
  * @param agentPoolName The name of the agent pool.
222
- * @param updateParameters The parameters for updating an agent pool.
223
- * @param [options] The optional parameters
224
- * @returns Promise<msRestAzure.LROPoller>
429
+ * @param options The options parameters.
225
430
  */
226
- beginUpdate(resourceGroupName: string, registryName: string, agentPoolName: string, updateParameters: Models.AgentPoolUpdateParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
227
- return this.client.sendLRORequest(
228
- {
229
- resourceGroupName,
230
- registryName,
231
- agentPoolName,
232
- updateParameters,
233
- options
234
- },
235
- beginUpdateOperationSpec,
236
- options);
431
+ getQueueStatus(
432
+ resourceGroupName: string,
433
+ registryName: string,
434
+ agentPoolName: string,
435
+ options?: AgentPoolsGetQueueStatusOptionalParams
436
+ ): Promise<AgentPoolsGetQueueStatusResponse> {
437
+ return this.client.sendOperationRequest(
438
+ { resourceGroupName, registryName, agentPoolName, options },
439
+ getQueueStatusOperationSpec
440
+ );
237
441
  }
238
442
 
239
443
  /**
240
- * Lists all the agent pools for a specified container registry.
241
- * @param nextPageLink The NextLink from the previous successful call to List operation.
242
- * @param [options] The optional parameters
243
- * @returns Promise<Models.AgentPoolsListNextResponse>
244
- */
245
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.AgentPoolsListNextResponse>;
246
- /**
247
- * @param nextPageLink The NextLink from the previous successful call to List operation.
248
- * @param callback The callback
249
- */
250
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
251
- /**
252
- * @param nextPageLink The NextLink from the previous successful call to List operation.
253
- * @param options The optional parameters
254
- * @param callback The callback
444
+ * ListNext
445
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
446
+ * @param registryName The name of the container registry.
447
+ * @param nextLink The nextLink from the previous successful call to the List method.
448
+ * @param options The options parameters.
255
449
  */
256
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AgentPoolListResult>): void;
257
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AgentPoolListResult>, callback?: msRest.ServiceCallback<Models.AgentPoolListResult>): Promise<Models.AgentPoolsListNextResponse> {
450
+ private _listNext(
451
+ resourceGroupName: string,
452
+ registryName: string,
453
+ nextLink: string,
454
+ options?: AgentPoolsListNextOptionalParams
455
+ ): Promise<AgentPoolsListNextResponse> {
258
456
  return this.client.sendOperationRequest(
259
- {
260
- nextPageLink,
261
- options
262
- },
263
- listNextOperationSpec,
264
- callback) as Promise<Models.AgentPoolsListNextResponse>;
457
+ { resourceGroupName, registryName, nextLink, options },
458
+ listNextOperationSpec
459
+ );
265
460
  }
266
461
  }
267
-
268
462
  // Operation Specifications
269
- const serializer = new msRest.Serializer(Mappers);
270
- const getOperationSpec: msRest.OperationSpec = {
463
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
464
+
465
+ const getOperationSpec: coreClient.OperationSpec = {
466
+ path:
467
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
271
468
  httpMethod: "GET",
272
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
273
- urlParameters: [
274
- Parameters.subscriptionId,
275
- Parameters.resourceGroupName,
276
- Parameters.registryName,
277
- Parameters.agentPoolName
278
- ],
279
- queryParameters: [
280
- Parameters.apiVersion1
281
- ],
282
- headerParameters: [
283
- Parameters.acceptLanguage
284
- ],
285
469
  responses: {
286
470
  200: {
287
471
  bodyMapper: Mappers.AgentPool
@@ -290,82 +474,79 @@ const getOperationSpec: msRest.OperationSpec = {
290
474
  bodyMapper: Mappers.ErrorResponse
291
475
  }
292
476
  },
293
- serializer
294
- };
295
-
296
- const listOperationSpec: msRest.OperationSpec = {
297
- httpMethod: "GET",
298
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools",
477
+ queryParameters: [Parameters.apiVersion1],
299
478
  urlParameters: [
479
+ Parameters.$host,
300
480
  Parameters.subscriptionId,
301
481
  Parameters.resourceGroupName,
302
- Parameters.registryName
303
- ],
304
- queryParameters: [
305
- Parameters.apiVersion1
306
- ],
307
- headerParameters: [
308
- Parameters.acceptLanguage
482
+ Parameters.registryName,
483
+ Parameters.agentPoolName
309
484
  ],
485
+ headerParameters: [Parameters.accept],
486
+ serializer
487
+ };
488
+ const createOperationSpec: coreClient.OperationSpec = {
489
+ path:
490
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
491
+ httpMethod: "PUT",
310
492
  responses: {
311
493
  200: {
312
- bodyMapper: Mappers.AgentPoolListResult
494
+ bodyMapper: Mappers.AgentPool
495
+ },
496
+ 201: {
497
+ bodyMapper: Mappers.AgentPool
498
+ },
499
+ 202: {
500
+ bodyMapper: Mappers.AgentPool
501
+ },
502
+ 204: {
503
+ bodyMapper: Mappers.AgentPool
313
504
  },
314
505
  default: {
315
506
  bodyMapper: Mappers.ErrorResponse
316
507
  }
317
508
  },
318
- serializer
319
- };
320
-
321
- const getQueueStatusOperationSpec: msRest.OperationSpec = {
322
- httpMethod: "POST",
323
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus",
509
+ requestBody: Parameters.agentPool,
510
+ queryParameters: [Parameters.apiVersion1],
324
511
  urlParameters: [
512
+ Parameters.$host,
325
513
  Parameters.subscriptionId,
326
514
  Parameters.resourceGroupName,
327
515
  Parameters.registryName,
328
516
  Parameters.agentPoolName
329
517
  ],
330
- queryParameters: [
331
- Parameters.apiVersion1
332
- ],
333
- headerParameters: [
334
- Parameters.acceptLanguage
335
- ],
518
+ headerParameters: [Parameters.accept, Parameters.contentType],
519
+ mediaType: "json",
520
+ serializer
521
+ };
522
+ const deleteOperationSpec: coreClient.OperationSpec = {
523
+ path:
524
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
525
+ httpMethod: "DELETE",
336
526
  responses: {
337
- 200: {
338
- bodyMapper: Mappers.AgentPoolQueueStatus
339
- },
527
+ 200: {},
528
+ 201: {},
529
+ 202: {},
530
+ 204: {},
340
531
  default: {
341
532
  bodyMapper: Mappers.ErrorResponse
342
533
  }
343
534
  },
344
- serializer
345
- };
346
-
347
- const beginCreateOperationSpec: msRest.OperationSpec = {
348
- httpMethod: "PUT",
349
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
535
+ queryParameters: [Parameters.apiVersion1],
350
536
  urlParameters: [
537
+ Parameters.$host,
351
538
  Parameters.subscriptionId,
352
539
  Parameters.resourceGroupName,
353
540
  Parameters.registryName,
354
541
  Parameters.agentPoolName
355
542
  ],
356
- queryParameters: [
357
- Parameters.apiVersion1
358
- ],
359
- headerParameters: [
360
- Parameters.acceptLanguage
361
- ],
362
- requestBody: {
363
- parameterPath: "agentPool",
364
- mapper: {
365
- ...Mappers.AgentPool,
366
- required: true
367
- }
368
- },
543
+ headerParameters: [Parameters.accept],
544
+ serializer
545
+ };
546
+ const updateOperationSpec: coreClient.OperationSpec = {
547
+ path:
548
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
549
+ httpMethod: "PATCH",
369
550
  responses: {
370
551
  200: {
371
552
  bodyMapper: Mappers.AgentPool
@@ -373,85 +554,77 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
373
554
  201: {
374
555
  bodyMapper: Mappers.AgentPool
375
556
  },
557
+ 202: {
558
+ bodyMapper: Mappers.AgentPool
559
+ },
560
+ 204: {
561
+ bodyMapper: Mappers.AgentPool
562
+ },
376
563
  default: {
377
564
  bodyMapper: Mappers.ErrorResponse
378
565
  }
379
566
  },
380
- serializer
381
- };
382
-
383
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
384
- httpMethod: "DELETE",
385
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
567
+ requestBody: Parameters.updateParameters,
568
+ queryParameters: [Parameters.apiVersion1],
386
569
  urlParameters: [
570
+ Parameters.$host,
387
571
  Parameters.subscriptionId,
388
572
  Parameters.resourceGroupName,
389
573
  Parameters.registryName,
390
574
  Parameters.agentPoolName
391
575
  ],
392
- queryParameters: [
393
- Parameters.apiVersion1
394
- ],
395
- headerParameters: [
396
- Parameters.acceptLanguage
397
- ],
576
+ headerParameters: [Parameters.accept, Parameters.contentType],
577
+ mediaType: "json",
578
+ serializer
579
+ };
580
+ const listOperationSpec: coreClient.OperationSpec = {
581
+ path:
582
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools",
583
+ httpMethod: "GET",
398
584
  responses: {
399
- 200: {},
400
- 202: {},
401
- 204: {},
585
+ 200: {
586
+ bodyMapper: Mappers.AgentPoolListResult
587
+ },
402
588
  default: {
403
589
  bodyMapper: Mappers.ErrorResponse
404
590
  }
405
591
  },
406
- serializer
407
- };
408
-
409
- const beginUpdateOperationSpec: msRest.OperationSpec = {
410
- httpMethod: "PATCH",
411
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
592
+ queryParameters: [Parameters.apiVersion1],
412
593
  urlParameters: [
594
+ Parameters.$host,
413
595
  Parameters.subscriptionId,
414
596
  Parameters.resourceGroupName,
415
- Parameters.registryName,
416
- Parameters.agentPoolName
417
- ],
418
- queryParameters: [
419
- Parameters.apiVersion1
420
- ],
421
- headerParameters: [
422
- Parameters.acceptLanguage
597
+ Parameters.registryName
423
598
  ],
424
- requestBody: {
425
- parameterPath: "updateParameters",
426
- mapper: {
427
- ...Mappers.AgentPoolUpdateParameters,
428
- required: true
429
- }
430
- },
599
+ headerParameters: [Parameters.accept],
600
+ serializer
601
+ };
602
+ const getQueueStatusOperationSpec: coreClient.OperationSpec = {
603
+ path:
604
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus",
605
+ httpMethod: "POST",
431
606
  responses: {
432
607
  200: {
433
- bodyMapper: Mappers.AgentPool
434
- },
435
- 201: {
436
- bodyMapper: Mappers.AgentPool
608
+ bodyMapper: Mappers.AgentPoolQueueStatus
437
609
  },
438
610
  default: {
439
611
  bodyMapper: Mappers.ErrorResponse
440
612
  }
441
613
  },
614
+ queryParameters: [Parameters.apiVersion1],
615
+ urlParameters: [
616
+ Parameters.$host,
617
+ Parameters.subscriptionId,
618
+ Parameters.resourceGroupName,
619
+ Parameters.registryName,
620
+ Parameters.agentPoolName
621
+ ],
622
+ headerParameters: [Parameters.accept],
442
623
  serializer
443
624
  };
444
-
445
- const listNextOperationSpec: msRest.OperationSpec = {
446
- httpMethod: "GET",
447
- baseUrl: "https://management.azure.com",
625
+ const listNextOperationSpec: coreClient.OperationSpec = {
448
626
  path: "{nextLink}",
449
- urlParameters: [
450
- Parameters.nextPageLink
451
- ],
452
- headerParameters: [
453
- Parameters.acceptLanguage
454
- ],
627
+ httpMethod: "GET",
455
628
  responses: {
456
629
  200: {
457
630
  bodyMapper: Mappers.AgentPoolListResult
@@ -460,5 +633,14 @@ const listNextOperationSpec: msRest.OperationSpec = {
460
633
  bodyMapper: Mappers.ErrorResponse
461
634
  }
462
635
  },
636
+ queryParameters: [Parameters.apiVersion1],
637
+ urlParameters: [
638
+ Parameters.$host,
639
+ Parameters.subscriptionId,
640
+ Parameters.resourceGroupName,
641
+ Parameters.registryName,
642
+ Parameters.nextLink
643
+ ],
644
+ headerParameters: [Parameters.accept],
463
645
  serializer
464
646
  };