@azure/arm-containerregistry 9.0.0 → 10.0.0-alpha.20211214.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +66 -84
  4. package/dist/index.js +12663 -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 +3429 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +341 -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 +2391 -2652
  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 +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +1 -2
  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/{esm/models/index.js → dist-esm/src/operationsInterfaces/runs.js} +2 -1
  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 +4 -0
  165. package/dist-esm/test/containerregistry_examples.d.ts.map +1 -0
  166. package/dist-esm/test/containerregistry_examples.js +329 -0
  167. package/dist-esm/test/containerregistry_examples.js.map +1 -0
  168. package/package.json +63 -21
  169. package/review/arm-containerregistry.api.md +2919 -0
  170. package/rollup.config.js +181 -30
  171. package/src/containerRegistryManagementClient.ts +76 -59
  172. package/src/containerRegistryManagementClientContext.ts +43 -40
  173. package/src/index.ts +13 -0
  174. package/src/lroImpl.ts +34 -0
  175. package/src/models/index.ts +2806 -5317
  176. package/src/models/mappers.ts +2531 -2790
  177. package/src/models/parameters.ts +335 -124
  178. package/src/operations/agentPools.ts +465 -285
  179. package/src/operations/connectedRegistries.ts +507 -253
  180. package/src/operations/exportPipelines.ts +318 -201
  181. package/src/operations/importPipelines.ts +318 -201
  182. package/src/operations/index.ts +1 -2
  183. package/src/operations/operations.ts +82 -76
  184. package/src/operations/pipelineRuns.ts +318 -201
  185. package/src/operations/privateEndpointConnections.ts +322 -196
  186. package/src/operations/registries.ts +1008 -744
  187. package/src/operations/replications.ts +418 -238
  188. package/src/operations/runs.ts +348 -239
  189. package/src/operations/scopeMaps.ts +418 -238
  190. package/src/operations/taskRuns.ts +462 -282
  191. package/src/operations/tasks.ts +451 -271
  192. package/src/operations/tokens.ts +412 -238
  193. package/src/operations/webhooks.ts +604 -414
  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 +5001 -0
  212. package/types/tsdoc-metadata.json +11 -0
  213. package/dist/arm-containerregistry.js +0 -12452
  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 -38
  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 -59
  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/connectedRegistriesMappers.d.ts +0 -2
  230. package/esm/models/connectedRegistriesMappers.d.ts.map +0 -1
  231. package/esm/models/connectedRegistriesMappers.js +0 -9
  232. package/esm/models/connectedRegistriesMappers.js.map +0 -1
  233. package/esm/models/exportPipelinesMappers.d.ts +0 -2
  234. package/esm/models/exportPipelinesMappers.d.ts.map +0 -1
  235. package/esm/models/exportPipelinesMappers.js +0 -9
  236. package/esm/models/exportPipelinesMappers.js.map +0 -1
  237. package/esm/models/importPipelinesMappers.d.ts +0 -2
  238. package/esm/models/importPipelinesMappers.d.ts.map +0 -1
  239. package/esm/models/importPipelinesMappers.js +0 -9
  240. package/esm/models/importPipelinesMappers.js.map +0 -1
  241. package/esm/models/index.d.ts +0 -6004
  242. package/esm/models/index.d.ts.map +0 -1
  243. package/esm/models/index.js.map +0 -1
  244. package/esm/models/mappers.d.ts +0 -179
  245. package/esm/models/mappers.d.ts.map +0 -1
  246. package/esm/models/mappers.js.map +0 -1
  247. package/esm/models/operationsMappers.d.ts +0 -2
  248. package/esm/models/operationsMappers.d.ts.map +0 -1
  249. package/esm/models/operationsMappers.js +0 -9
  250. package/esm/models/operationsMappers.js.map +0 -1
  251. package/esm/models/parameters.d.ts +0 -24
  252. package/esm/models/parameters.d.ts.map +0 -1
  253. package/esm/models/parameters.js +0 -301
  254. package/esm/models/parameters.js.map +0 -1
  255. package/esm/models/pipelineRunsMappers.d.ts +0 -2
  256. package/esm/models/pipelineRunsMappers.d.ts.map +0 -1
  257. package/esm/models/pipelineRunsMappers.js +0 -9
  258. package/esm/models/pipelineRunsMappers.js.map +0 -1
  259. package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
  260. package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
  261. package/esm/models/privateEndpointConnectionsMappers.js +0 -9
  262. package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
  263. package/esm/models/registriesMappers.d.ts +0 -2
  264. package/esm/models/registriesMappers.d.ts.map +0 -1
  265. package/esm/models/registriesMappers.js +0 -9
  266. package/esm/models/registriesMappers.js.map +0 -1
  267. package/esm/models/replicationsMappers.d.ts +0 -2
  268. package/esm/models/replicationsMappers.d.ts.map +0 -1
  269. package/esm/models/replicationsMappers.js +0 -9
  270. package/esm/models/replicationsMappers.js.map +0 -1
  271. package/esm/models/runsMappers.d.ts +0 -2
  272. package/esm/models/runsMappers.d.ts.map +0 -1
  273. package/esm/models/runsMappers.js +0 -9
  274. package/esm/models/runsMappers.js.map +0 -1
  275. package/esm/models/scopeMapsMappers.d.ts +0 -2
  276. package/esm/models/scopeMapsMappers.d.ts.map +0 -1
  277. package/esm/models/scopeMapsMappers.js +0 -9
  278. package/esm/models/scopeMapsMappers.js.map +0 -1
  279. package/esm/models/taskRunsMappers.d.ts +0 -2
  280. package/esm/models/taskRunsMappers.d.ts.map +0 -1
  281. package/esm/models/taskRunsMappers.js +0 -9
  282. package/esm/models/taskRunsMappers.js.map +0 -1
  283. package/esm/models/tasksMappers.d.ts +0 -2
  284. package/esm/models/tasksMappers.d.ts.map +0 -1
  285. package/esm/models/tasksMappers.js +0 -9
  286. package/esm/models/tasksMappers.js.map +0 -1
  287. package/esm/models/tokensMappers.d.ts +0 -2
  288. package/esm/models/tokensMappers.d.ts.map +0 -1
  289. package/esm/models/tokensMappers.js +0 -9
  290. package/esm/models/tokensMappers.js.map +0 -1
  291. package/esm/models/webhooksMappers.d.ts +0 -2
  292. package/esm/models/webhooksMappers.d.ts.map +0 -1
  293. package/esm/models/webhooksMappers.js +0 -9
  294. package/esm/models/webhooksMappers.js.map +0 -1
  295. package/esm/operations/agentPools.d.ts +0 -159
  296. package/esm/operations/agentPools.d.ts.map +0 -1
  297. package/esm/operations/agentPools.js +0 -332
  298. package/esm/operations/agentPools.js.map +0 -1
  299. package/esm/operations/connectedRegistries.d.ts +0 -153
  300. package/esm/operations/connectedRegistries.d.ts.map +0 -1
  301. package/esm/operations/connectedRegistries.js +0 -353
  302. package/esm/operations/connectedRegistries.js.map +0 -1
  303. package/esm/operations/exportPipelines.d.ts +0 -115
  304. package/esm/operations/exportPipelines.d.ts.map +0 -1
  305. package/esm/operations/exportPipelines.js +0 -236
  306. package/esm/operations/exportPipelines.js.map +0 -1
  307. package/esm/operations/importPipelines.d.ts +0 -115
  308. package/esm/operations/importPipelines.d.ts.map +0 -1
  309. package/esm/operations/importPipelines.js +0 -236
  310. package/esm/operations/importPipelines.js.map +0 -1
  311. package/esm/operations/index.d.ts.map +0 -1
  312. package/esm/operations/index.js.map +0 -1
  313. package/esm/operations/operations.d.ts +0 -46
  314. package/esm/operations/operations.d.ts.map +0 -1
  315. package/esm/operations/operations.js +0 -79
  316. package/esm/operations/operations.js.map +0 -1
  317. package/esm/operations/pipelineRuns.d.ts +0 -115
  318. package/esm/operations/pipelineRuns.d.ts.map +0 -1
  319. package/esm/operations/pipelineRuns.js +0 -236
  320. package/esm/operations/pipelineRuns.js.map +0 -1
  321. package/esm/operations/privateEndpointConnections.d.ts +0 -117
  322. package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
  323. package/esm/operations/privateEndpointConnections.js +0 -238
  324. package/esm/operations/privateEndpointConnections.js.map +0 -1
  325. package/esm/operations/registries.d.ts +0 -358
  326. package/esm/operations/registries.d.ts.map +0 -1
  327. package/esm/operations/registries.js +0 -729
  328. package/esm/operations/registries.js.map +0 -1
  329. package/esm/operations/replications.d.ts +0 -135
  330. package/esm/operations/replications.d.ts.map +0 -1
  331. package/esm/operations/replications.js +0 -299
  332. package/esm/operations/replications.js.map +0 -1
  333. package/esm/operations/runs.d.ts +0 -139
  334. package/esm/operations/runs.d.ts.map +0 -1
  335. package/esm/operations/runs.js +0 -272
  336. package/esm/operations/runs.js.map +0 -1
  337. package/esm/operations/scopeMaps.d.ts +0 -135
  338. package/esm/operations/scopeMaps.d.ts.map +0 -1
  339. package/esm/operations/scopeMaps.js +0 -299
  340. package/esm/operations/scopeMaps.js.map +0 -1
  341. package/esm/operations/taskRuns.d.ts +0 -159
  342. package/esm/operations/taskRuns.d.ts.map +0 -1
  343. package/esm/operations/taskRuns.js +0 -332
  344. package/esm/operations/taskRuns.js.map +0 -1
  345. package/esm/operations/tasks.d.ts +0 -159
  346. package/esm/operations/tasks.d.ts.map +0 -1
  347. package/esm/operations/tasks.js +0 -332
  348. package/esm/operations/tasks.js.map +0 -1
  349. package/esm/operations/tokens.d.ts +0 -135
  350. package/esm/operations/tokens.d.ts.map +0 -1
  351. package/esm/operations/tokens.js +0 -299
  352. package/esm/operations/tokens.js.map +0 -1
  353. package/esm/operations/webhooks.d.ts +0 -225
  354. package/esm/operations/webhooks.d.ts.map +0 -1
  355. package/esm/operations/webhooks.js +0 -427
  356. package/esm/operations/webhooks.js.map +0 -1
  357. package/src/models/agentPoolsMappers.ts +0 -102
  358. package/src/models/connectedRegistriesMappers.ts +0 -102
  359. package/src/models/exportPipelinesMappers.ts +0 -98
  360. package/src/models/importPipelinesMappers.ts +0 -98
  361. package/src/models/operationsMappers.ts +0 -18
  362. package/src/models/pipelineRunsMappers.ts +0 -98
  363. package/src/models/privateEndpointConnectionsMappers.ts +0 -98
  364. package/src/models/registriesMappers.ts +0 -117
  365. package/src/models/replicationsMappers.ts +0 -99
  366. package/src/models/runsMappers.ts +0 -102
  367. package/src/models/scopeMapsMappers.ts +0 -99
  368. package/src/models/taskRunsMappers.ts +0 -101
  369. package/src/models/tasksMappers.ts +0 -112
  370. package/src/models/tokensMappers.ts +0 -99
  371. package/src/models/webhooksMappers.ts +0 -111
@@ -3,24 +3,38 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/pipelineRunsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PipelineRuns } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
14
  import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ PipelineRun,
19
+ PipelineRunsListNextOptionalParams,
20
+ PipelineRunsListOptionalParams,
21
+ PipelineRunsListResponse,
22
+ PipelineRunsGetOptionalParams,
23
+ PipelineRunsGetResponse,
24
+ PipelineRunsCreateOptionalParams,
25
+ PipelineRunsCreateResponse,
26
+ PipelineRunsDeleteOptionalParams,
27
+ PipelineRunsListNextResponse
28
+ } from "../models";
16
29
 
17
- /** Class representing a PipelineRuns. */
18
- export class PipelineRuns {
30
+ /// <reference lib="esnext.asynciterable" />
31
+ /** Class containing PipelineRuns operations. */
32
+ export class PipelineRunsImpl implements PipelineRuns {
19
33
  private readonly client: ContainerRegistryManagementClientContext;
20
34
 
21
35
  /**
22
- * Create a PipelineRuns.
23
- * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
36
+ * Initialize a new instance of the class PipelineRuns class.
37
+ * @param client Reference to the service client
24
38
  */
25
39
  constructor(client: ContainerRegistryManagementClientContext) {
26
40
  this.client = client;
@@ -30,68 +44,171 @@ export class PipelineRuns {
30
44
  * Lists all the pipeline runs for the specified container registry.
31
45
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
32
46
  * @param registryName The name of the container registry.
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.PipelineRunsListResponse>
47
+ * @param options The options parameters.
35
48
  */
36
- list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise<Models.PipelineRunsListResponse>;
37
- /**
38
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
39
- * @param registryName The name of the container registry.
40
- * @param callback The callback
41
- */
42
- list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback<Models.PipelineRunListResult>): void;
43
- /**
44
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
45
- * @param registryName The name of the container registry.
46
- * @param options The optional parameters
47
- * @param callback The callback
48
- */
49
- list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PipelineRunListResult>): void;
50
- list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PipelineRunListResult>, callback?: msRest.ServiceCallback<Models.PipelineRunListResult>): Promise<Models.PipelineRunsListResponse> {
51
- return this.client.sendOperationRequest(
52
- {
49
+ public list(
50
+ resourceGroupName: string,
51
+ registryName: string,
52
+ options?: PipelineRunsListOptionalParams
53
+ ): PagedAsyncIterableIterator<PipelineRun> {
54
+ const iter = this.listPagingAll(resourceGroupName, registryName, options);
55
+ return {
56
+ next() {
57
+ return iter.next();
58
+ },
59
+ [Symbol.asyncIterator]() {
60
+ return this;
61
+ },
62
+ byPage: () => {
63
+ return this.listPagingPage(resourceGroupName, registryName, options);
64
+ }
65
+ };
66
+ }
67
+
68
+ private async *listPagingPage(
69
+ resourceGroupName: string,
70
+ registryName: string,
71
+ options?: PipelineRunsListOptionalParams
72
+ ): AsyncIterableIterator<PipelineRun[]> {
73
+ let result = await this._list(resourceGroupName, registryName, options);
74
+ yield result.value || [];
75
+ let continuationToken = result.nextLink;
76
+ while (continuationToken) {
77
+ result = await this._listNext(
53
78
  resourceGroupName,
54
79
  registryName,
80
+ continuationToken,
55
81
  options
56
- },
57
- listOperationSpec,
58
- callback) as Promise<Models.PipelineRunsListResponse>;
82
+ );
83
+ continuationToken = result.nextLink;
84
+ yield result.value || [];
85
+ }
86
+ }
87
+
88
+ private async *listPagingAll(
89
+ resourceGroupName: string,
90
+ registryName: string,
91
+ options?: PipelineRunsListOptionalParams
92
+ ): AsyncIterableIterator<PipelineRun> {
93
+ for await (const page of this.listPagingPage(
94
+ resourceGroupName,
95
+ registryName,
96
+ options
97
+ )) {
98
+ yield* page;
99
+ }
59
100
  }
60
101
 
61
102
  /**
62
- * Gets the detailed information for a given pipeline run.
103
+ * Lists all the pipeline runs for the specified container registry.
63
104
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
64
105
  * @param registryName The name of the container registry.
65
- * @param pipelineRunName The name of the pipeline run.
66
- * @param [options] The optional parameters
67
- * @returns Promise<Models.PipelineRunsGetResponse>
106
+ * @param options The options parameters.
68
107
  */
69
- get(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase): Promise<Models.PipelineRunsGetResponse>;
108
+ private _list(
109
+ resourceGroupName: string,
110
+ registryName: string,
111
+ options?: PipelineRunsListOptionalParams
112
+ ): Promise<PipelineRunsListResponse> {
113
+ return this.client.sendOperationRequest(
114
+ { resourceGroupName, registryName, options },
115
+ listOperationSpec
116
+ );
117
+ }
118
+
70
119
  /**
120
+ * Gets the detailed information for a given pipeline run.
71
121
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
72
122
  * @param registryName The name of the container registry.
73
123
  * @param pipelineRunName The name of the pipeline run.
74
- * @param callback The callback
124
+ * @param options The options parameters.
75
125
  */
76
- get(resourceGroupName: string, registryName: string, pipelineRunName: string, callback: msRest.ServiceCallback<Models.PipelineRun>): void;
126
+ get(
127
+ resourceGroupName: string,
128
+ registryName: string,
129
+ pipelineRunName: string,
130
+ options?: PipelineRunsGetOptionalParams
131
+ ): Promise<PipelineRunsGetResponse> {
132
+ return this.client.sendOperationRequest(
133
+ { resourceGroupName, registryName, pipelineRunName, options },
134
+ getOperationSpec
135
+ );
136
+ }
137
+
77
138
  /**
139
+ * Creates a pipeline run for a container registry with the specified parameters
78
140
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
79
141
  * @param registryName The name of the container registry.
80
142
  * @param pipelineRunName The name of the pipeline run.
81
- * @param options The optional parameters
82
- * @param callback The callback
143
+ * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
144
+ * @param options The options parameters.
83
145
  */
84
- get(resourceGroupName: string, registryName: string, pipelineRunName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PipelineRun>): void;
85
- get(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PipelineRun>, callback?: msRest.ServiceCallback<Models.PipelineRun>): Promise<Models.PipelineRunsGetResponse> {
86
- return this.client.sendOperationRequest(
146
+ async beginCreate(
147
+ resourceGroupName: string,
148
+ registryName: string,
149
+ pipelineRunName: string,
150
+ pipelineRunCreateParameters: PipelineRun,
151
+ options?: PipelineRunsCreateOptionalParams
152
+ ): Promise<
153
+ PollerLike<
154
+ PollOperationState<PipelineRunsCreateResponse>,
155
+ PipelineRunsCreateResponse
156
+ >
157
+ > {
158
+ const directSendOperation = async (
159
+ args: coreClient.OperationArguments,
160
+ spec: coreClient.OperationSpec
161
+ ): Promise<PipelineRunsCreateResponse> => {
162
+ return this.client.sendOperationRequest(args, spec);
163
+ };
164
+ const sendOperation = async (
165
+ args: coreClient.OperationArguments,
166
+ spec: coreClient.OperationSpec
167
+ ) => {
168
+ let currentRawResponse:
169
+ | coreClient.FullOperationResponse
170
+ | undefined = undefined;
171
+ const providedCallback = args.options?.onResponse;
172
+ const callback: coreClient.RawResponseCallback = (
173
+ rawResponse: coreClient.FullOperationResponse,
174
+ flatResponse: unknown
175
+ ) => {
176
+ currentRawResponse = rawResponse;
177
+ providedCallback?.(rawResponse, flatResponse);
178
+ };
179
+ const updatedArgs = {
180
+ ...args,
181
+ options: {
182
+ ...args.options,
183
+ onResponse: callback
184
+ }
185
+ };
186
+ const flatResponse = await directSendOperation(updatedArgs, spec);
187
+ return {
188
+ flatResponse,
189
+ rawResponse: {
190
+ statusCode: currentRawResponse!.status,
191
+ body: currentRawResponse!.parsedBody,
192
+ headers: currentRawResponse!.headers.toJSON()
193
+ }
194
+ };
195
+ };
196
+
197
+ const lro = new LroImpl(
198
+ sendOperation,
87
199
  {
88
200
  resourceGroupName,
89
201
  registryName,
90
202
  pipelineRunName,
203
+ pipelineRunCreateParameters,
91
204
  options
92
205
  },
93
- getOperationSpec,
94
- callback) as Promise<Models.PipelineRunsGetResponse>;
206
+ createOperationSpec
207
+ );
208
+ return new LroEngine(lro, {
209
+ resumeFrom: options?.resumeFrom,
210
+ intervalInMs: options?.updateIntervalInMs
211
+ });
95
212
  }
96
213
 
97
214
  /**
@@ -100,12 +217,23 @@ export class PipelineRuns {
100
217
  * @param registryName The name of the container registry.
101
218
  * @param pipelineRunName The name of the pipeline run.
102
219
  * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
103
- * @param [options] The optional parameters
104
- * @returns Promise<Models.PipelineRunsCreateResponse>
220
+ * @param options The options parameters.
105
221
  */
106
- create(resourceGroupName: string, registryName: string, pipelineRunName: string, pipelineRunCreateParameters: Models.PipelineRun, options?: msRest.RequestOptionsBase): Promise<Models.PipelineRunsCreateResponse> {
107
- return this.beginCreate(resourceGroupName,registryName,pipelineRunName,pipelineRunCreateParameters,options)
108
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.PipelineRunsCreateResponse>;
222
+ async beginCreateAndWait(
223
+ resourceGroupName: string,
224
+ registryName: string,
225
+ pipelineRunName: string,
226
+ pipelineRunCreateParameters: PipelineRun,
227
+ options?: PipelineRunsCreateOptionalParams
228
+ ): Promise<PipelineRunsCreateResponse> {
229
+ const poller = await this.beginCreate(
230
+ resourceGroupName,
231
+ registryName,
232
+ pipelineRunName,
233
+ pipelineRunCreateParameters,
234
+ options
235
+ );
236
+ return poller.pollUntilDone();
109
237
  }
110
238
 
111
239
  /**
@@ -113,34 +241,62 @@ export class PipelineRuns {
113
241
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
114
242
  * @param registryName The name of the container registry.
115
243
  * @param pipelineRunName The name of the pipeline run.
116
- * @param [options] The optional parameters
117
- * @returns Promise<msRest.RestResponse>
244
+ * @param options The options parameters.
118
245
  */
119
- deleteMethod(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
120
- return this.beginDeleteMethod(resourceGroupName,registryName,pipelineRunName,options)
121
- .then(lroPoller => lroPoller.pollUntilFinished());
122
- }
246
+ async beginDelete(
247
+ resourceGroupName: string,
248
+ registryName: string,
249
+ pipelineRunName: string,
250
+ options?: PipelineRunsDeleteOptionalParams
251
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
252
+ const directSendOperation = async (
253
+ args: coreClient.OperationArguments,
254
+ spec: coreClient.OperationSpec
255
+ ): Promise<void> => {
256
+ return this.client.sendOperationRequest(args, spec);
257
+ };
258
+ const sendOperation = async (
259
+ args: coreClient.OperationArguments,
260
+ spec: coreClient.OperationSpec
261
+ ) => {
262
+ let currentRawResponse:
263
+ | coreClient.FullOperationResponse
264
+ | undefined = undefined;
265
+ const providedCallback = args.options?.onResponse;
266
+ const callback: coreClient.RawResponseCallback = (
267
+ rawResponse: coreClient.FullOperationResponse,
268
+ flatResponse: unknown
269
+ ) => {
270
+ currentRawResponse = rawResponse;
271
+ providedCallback?.(rawResponse, flatResponse);
272
+ };
273
+ const updatedArgs = {
274
+ ...args,
275
+ options: {
276
+ ...args.options,
277
+ onResponse: callback
278
+ }
279
+ };
280
+ const flatResponse = await directSendOperation(updatedArgs, spec);
281
+ return {
282
+ flatResponse,
283
+ rawResponse: {
284
+ statusCode: currentRawResponse!.status,
285
+ body: currentRawResponse!.parsedBody,
286
+ headers: currentRawResponse!.headers.toJSON()
287
+ }
288
+ };
289
+ };
123
290
 
124
- /**
125
- * Creates a pipeline run for a container registry with the specified parameters
126
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
127
- * @param registryName The name of the container registry.
128
- * @param pipelineRunName The name of the pipeline run.
129
- * @param pipelineRunCreateParameters The parameters for creating a pipeline run.
130
- * @param [options] The optional parameters
131
- * @returns Promise<msRestAzure.LROPoller>
132
- */
133
- beginCreate(resourceGroupName: string, registryName: string, pipelineRunName: string, pipelineRunCreateParameters: Models.PipelineRun, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
134
- return this.client.sendLRORequest(
135
- {
136
- resourceGroupName,
137
- registryName,
138
- pipelineRunName,
139
- pipelineRunCreateParameters,
140
- options
141
- },
142
- beginCreateOperationSpec,
143
- options);
291
+ const lro = new LroImpl(
292
+ sendOperation,
293
+ { resourceGroupName, registryName, pipelineRunName, options },
294
+ deleteOperationSpec
295
+ );
296
+ return new LroEngine(lro, {
297
+ resumeFrom: options?.resumeFrom,
298
+ intervalInMs: options?.updateIntervalInMs
299
+ });
144
300
  }
145
301
 
146
302
  /**
@@ -148,125 +304,88 @@ export class PipelineRuns {
148
304
  * @param resourceGroupName The name of the resource group to which the container registry belongs.
149
305
  * @param registryName The name of the container registry.
150
306
  * @param pipelineRunName The name of the pipeline run.
151
- * @param [options] The optional parameters
152
- * @returns Promise<msRestAzure.LROPoller>
307
+ * @param options The options parameters.
153
308
  */
154
- beginDeleteMethod(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
155
- return this.client.sendLRORequest(
156
- {
157
- resourceGroupName,
158
- registryName,
159
- pipelineRunName,
160
- options
161
- },
162
- beginDeleteMethodOperationSpec,
163
- options);
309
+ async beginDeleteAndWait(
310
+ resourceGroupName: string,
311
+ registryName: string,
312
+ pipelineRunName: string,
313
+ options?: PipelineRunsDeleteOptionalParams
314
+ ): Promise<void> {
315
+ const poller = await this.beginDelete(
316
+ resourceGroupName,
317
+ registryName,
318
+ pipelineRunName,
319
+ options
320
+ );
321
+ return poller.pollUntilDone();
164
322
  }
165
323
 
166
324
  /**
167
- * Lists all the pipeline runs for the specified container registry.
168
- * @param nextPageLink The NextLink from the previous successful call to List operation.
169
- * @param [options] The optional parameters
170
- * @returns Promise<Models.PipelineRunsListNextResponse>
171
- */
172
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PipelineRunsListNextResponse>;
173
- /**
174
- * @param nextPageLink The NextLink from the previous successful call to List operation.
175
- * @param callback The callback
176
- */
177
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PipelineRunListResult>): void;
178
- /**
179
- * @param nextPageLink The NextLink from the previous successful call to List operation.
180
- * @param options The optional parameters
181
- * @param callback The callback
325
+ * ListNext
326
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
327
+ * @param registryName The name of the container registry.
328
+ * @param nextLink The nextLink from the previous successful call to the List method.
329
+ * @param options The options parameters.
182
330
  */
183
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PipelineRunListResult>): void;
184
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PipelineRunListResult>, callback?: msRest.ServiceCallback<Models.PipelineRunListResult>): Promise<Models.PipelineRunsListNextResponse> {
331
+ private _listNext(
332
+ resourceGroupName: string,
333
+ registryName: string,
334
+ nextLink: string,
335
+ options?: PipelineRunsListNextOptionalParams
336
+ ): Promise<PipelineRunsListNextResponse> {
185
337
  return this.client.sendOperationRequest(
186
- {
187
- nextPageLink,
188
- options
189
- },
190
- listNextOperationSpec,
191
- callback) as Promise<Models.PipelineRunsListNextResponse>;
338
+ { resourceGroupName, registryName, nextLink, options },
339
+ listNextOperationSpec
340
+ );
192
341
  }
193
342
  }
194
-
195
343
  // Operation Specifications
196
- const serializer = new msRest.Serializer(Mappers);
197
- const listOperationSpec: msRest.OperationSpec = {
344
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
345
+
346
+ const listOperationSpec: coreClient.OperationSpec = {
347
+ path:
348
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns",
198
349
  httpMethod: "GET",
199
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns",
200
- urlParameters: [
201
- Parameters.subscriptionId,
202
- Parameters.resourceGroupName,
203
- Parameters.registryName
204
- ],
205
- queryParameters: [
206
- Parameters.apiVersion0
207
- ],
208
- headerParameters: [
209
- Parameters.acceptLanguage
210
- ],
211
350
  responses: {
212
351
  200: {
213
352
  bodyMapper: Mappers.PipelineRunListResult
214
- },
215
- default: {
216
- bodyMapper: Mappers.CloudError
217
353
  }
218
354
  },
219
- serializer
220
- };
221
-
222
- const getOperationSpec: msRest.OperationSpec = {
223
- httpMethod: "GET",
224
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}",
355
+ queryParameters: [Parameters.apiVersion],
225
356
  urlParameters: [
357
+ Parameters.$host,
226
358
  Parameters.subscriptionId,
227
359
  Parameters.resourceGroupName,
228
- Parameters.registryName,
229
- Parameters.pipelineRunName
230
- ],
231
- queryParameters: [
232
- Parameters.apiVersion0
233
- ],
234
- headerParameters: [
235
- Parameters.acceptLanguage
360
+ Parameters.registryName
236
361
  ],
362
+ headerParameters: [Parameters.accept],
363
+ serializer
364
+ };
365
+ const getOperationSpec: coreClient.OperationSpec = {
366
+ path:
367
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}",
368
+ httpMethod: "GET",
237
369
  responses: {
238
370
  200: {
239
371
  bodyMapper: Mappers.PipelineRun
240
- },
241
- default: {
242
- bodyMapper: Mappers.CloudError
243
372
  }
244
373
  },
245
- serializer
246
- };
247
-
248
- const beginCreateOperationSpec: msRest.OperationSpec = {
249
- httpMethod: "PUT",
250
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}",
374
+ queryParameters: [Parameters.apiVersion],
251
375
  urlParameters: [
376
+ Parameters.$host,
252
377
  Parameters.subscriptionId,
253
378
  Parameters.resourceGroupName,
254
379
  Parameters.registryName,
255
380
  Parameters.pipelineRunName
256
381
  ],
257
- queryParameters: [
258
- Parameters.apiVersion0
259
- ],
260
- headerParameters: [
261
- Parameters.acceptLanguage
262
- ],
263
- requestBody: {
264
- parameterPath: "pipelineRunCreateParameters",
265
- mapper: {
266
- ...Mappers.PipelineRun,
267
- required: true
268
- }
269
- },
382
+ headerParameters: [Parameters.accept],
383
+ serializer
384
+ };
385
+ const createOperationSpec: coreClient.OperationSpec = {
386
+ path:
387
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}",
388
+ httpMethod: "PUT",
270
389
  responses: {
271
390
  200: {
272
391
  bodyMapper: Mappers.PipelineRun
@@ -274,59 +393,57 @@ const beginCreateOperationSpec: msRest.OperationSpec = {
274
393
  201: {
275
394
  bodyMapper: Mappers.PipelineRun
276
395
  },
277
- default: {
278
- bodyMapper: Mappers.CloudError
396
+ 202: {
397
+ bodyMapper: Mappers.PipelineRun
398
+ },
399
+ 204: {
400
+ bodyMapper: Mappers.PipelineRun
279
401
  }
280
402
  },
403
+ requestBody: Parameters.pipelineRunCreateParameters,
404
+ queryParameters: [Parameters.apiVersion],
405
+ urlParameters: [
406
+ Parameters.$host,
407
+ Parameters.subscriptionId,
408
+ Parameters.resourceGroupName,
409
+ Parameters.registryName,
410
+ Parameters.pipelineRunName
411
+ ],
412
+ headerParameters: [Parameters.accept, Parameters.contentType],
413
+ mediaType: "json",
281
414
  serializer
282
415
  };
283
-
284
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
416
+ const deleteOperationSpec: coreClient.OperationSpec = {
417
+ path:
418
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}",
285
419
  httpMethod: "DELETE",
286
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}",
420
+ responses: { 200: {}, 201: {}, 202: {}, 204: {} },
421
+ queryParameters: [Parameters.apiVersion],
287
422
  urlParameters: [
423
+ Parameters.$host,
288
424
  Parameters.subscriptionId,
289
425
  Parameters.resourceGroupName,
290
426
  Parameters.registryName,
291
427
  Parameters.pipelineRunName
292
428
  ],
293
- queryParameters: [
294
- Parameters.apiVersion0
295
- ],
296
- headerParameters: [
297
- Parameters.acceptLanguage
298
- ],
299
- responses: {
300
- 200: {},
301
- 202: {},
302
- 204: {},
303
- default: {
304
- bodyMapper: Mappers.CloudError
305
- }
306
- },
307
429
  serializer
308
430
  };
309
-
310
- const listNextOperationSpec: msRest.OperationSpec = {
311
- httpMethod: "GET",
312
- baseUrl: "https://management.azure.com",
431
+ const listNextOperationSpec: coreClient.OperationSpec = {
313
432
  path: "{nextLink}",
314
- urlParameters: [
315
- Parameters.nextPageLink
316
- ],
317
- queryParameters: [
318
- Parameters.apiVersion0
319
- ],
320
- headerParameters: [
321
- Parameters.acceptLanguage
322
- ],
433
+ httpMethod: "GET",
323
434
  responses: {
324
435
  200: {
325
436
  bodyMapper: Mappers.PipelineRunListResult
326
- },
327
- default: {
328
- bodyMapper: Mappers.CloudError
329
437
  }
330
438
  },
439
+ queryParameters: [Parameters.apiVersion],
440
+ urlParameters: [
441
+ Parameters.$host,
442
+ Parameters.subscriptionId,
443
+ Parameters.resourceGroupName,
444
+ Parameters.registryName,
445
+ Parameters.nextLink
446
+ ],
447
+ headerParameters: [Parameters.accept],
331
448
  serializer
332
449
  };