@azure/arm-containerregistry 11.0.0 → 12.0.0-alpha.20251226.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 (195) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/containerRegistryManagementClient.js +1 -1
  3. package/dist/browser/containerRegistryManagementClient.js.map +1 -1
  4. package/dist/browser/models/index.d.ts +158 -192
  5. package/dist/browser/models/index.d.ts.map +1 -1
  6. package/dist/browser/models/index.js.map +1 -1
  7. package/dist/browser/models/mappers.d.ts +16 -15
  8. package/dist/browser/models/mappers.d.ts.map +1 -1
  9. package/dist/browser/models/mappers.js +280 -319
  10. package/dist/browser/models/mappers.js.map +1 -1
  11. package/dist/browser/models/parameters.d.ts +1 -2
  12. package/dist/browser/models/parameters.d.ts.map +1 -1
  13. package/dist/browser/models/parameters.js +5 -18
  14. package/dist/browser/models/parameters.js.map +1 -1
  15. package/dist/browser/operations/agentPools.d.ts +37 -37
  16. package/dist/browser/operations/agentPools.d.ts.map +1 -1
  17. package/dist/browser/operations/agentPools.js +101 -90
  18. package/dist/browser/operations/agentPools.js.map +1 -1
  19. package/dist/browser/operations/registries.d.ts +7 -15
  20. package/dist/browser/operations/registries.d.ts.map +1 -1
  21. package/dist/browser/operations/registries.js +22 -79
  22. package/dist/browser/operations/registries.js.map +1 -1
  23. package/dist/browser/operations/runs.d.ts +18 -36
  24. package/dist/browser/operations/runs.d.ts.map +1 -1
  25. package/dist/browser/operations/runs.js +39 -156
  26. package/dist/browser/operations/runs.js.map +1 -1
  27. package/dist/browser/operations/taskRuns.d.ts +31 -39
  28. package/dist/browser/operations/taskRuns.d.ts.map +1 -1
  29. package/dist/browser/operations/taskRuns.js +79 -127
  30. package/dist/browser/operations/taskRuns.js.map +1 -1
  31. package/dist/browser/operations/tasks.d.ts +21 -48
  32. package/dist/browser/operations/tasks.d.ts.map +1 -1
  33. package/dist/browser/operations/tasks.js +62 -227
  34. package/dist/browser/operations/tasks.js.map +1 -1
  35. package/dist/browser/operationsInterfaces/agentPools.d.ts +29 -29
  36. package/dist/browser/operationsInterfaces/agentPools.d.ts.map +1 -1
  37. package/dist/browser/operationsInterfaces/agentPools.js.map +1 -1
  38. package/dist/browser/operationsInterfaces/registries.d.ts +7 -15
  39. package/dist/browser/operationsInterfaces/registries.d.ts.map +1 -1
  40. package/dist/browser/operationsInterfaces/registries.js.map +1 -1
  41. package/dist/browser/operationsInterfaces/runs.d.ts +14 -32
  42. package/dist/browser/operationsInterfaces/runs.d.ts.map +1 -1
  43. package/dist/browser/operationsInterfaces/runs.js.map +1 -1
  44. package/dist/browser/operationsInterfaces/taskRuns.d.ts +23 -31
  45. package/dist/browser/operationsInterfaces/taskRuns.d.ts.map +1 -1
  46. package/dist/browser/operationsInterfaces/taskRuns.js.map +1 -1
  47. package/dist/browser/operationsInterfaces/tasks.d.ts +17 -44
  48. package/dist/browser/operationsInterfaces/tasks.d.ts.map +1 -1
  49. package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
  50. package/dist/commonjs/containerRegistryManagementClient.js +1 -1
  51. package/dist/commonjs/containerRegistryManagementClient.js.map +1 -1
  52. package/dist/commonjs/models/index.d.ts +158 -192
  53. package/dist/commonjs/models/index.d.ts.map +1 -1
  54. package/dist/commonjs/models/index.js.map +1 -1
  55. package/dist/commonjs/models/mappers.d.ts +16 -15
  56. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  57. package/dist/commonjs/models/mappers.js +283 -322
  58. package/dist/commonjs/models/mappers.js.map +1 -1
  59. package/dist/commonjs/models/parameters.d.ts +1 -2
  60. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  61. package/dist/commonjs/models/parameters.js +7 -20
  62. package/dist/commonjs/models/parameters.js.map +1 -1
  63. package/dist/commonjs/operations/agentPools.d.ts +37 -37
  64. package/dist/commonjs/operations/agentPools.d.ts.map +1 -1
  65. package/dist/commonjs/operations/agentPools.js +101 -90
  66. package/dist/commonjs/operations/agentPools.js.map +1 -1
  67. package/dist/commonjs/operations/registries.d.ts +7 -15
  68. package/dist/commonjs/operations/registries.d.ts.map +1 -1
  69. package/dist/commonjs/operations/registries.js +22 -79
  70. package/dist/commonjs/operations/registries.js.map +1 -1
  71. package/dist/commonjs/operations/runs.d.ts +18 -36
  72. package/dist/commonjs/operations/runs.d.ts.map +1 -1
  73. package/dist/commonjs/operations/runs.js +39 -156
  74. package/dist/commonjs/operations/runs.js.map +1 -1
  75. package/dist/commonjs/operations/taskRuns.d.ts +31 -39
  76. package/dist/commonjs/operations/taskRuns.d.ts.map +1 -1
  77. package/dist/commonjs/operations/taskRuns.js +79 -127
  78. package/dist/commonjs/operations/taskRuns.js.map +1 -1
  79. package/dist/commonjs/operations/tasks.d.ts +21 -48
  80. package/dist/commonjs/operations/tasks.d.ts.map +1 -1
  81. package/dist/commonjs/operations/tasks.js +62 -227
  82. package/dist/commonjs/operations/tasks.js.map +1 -1
  83. package/dist/commonjs/operationsInterfaces/agentPools.d.ts +29 -29
  84. package/dist/commonjs/operationsInterfaces/agentPools.d.ts.map +1 -1
  85. package/dist/commonjs/operationsInterfaces/agentPools.js.map +1 -1
  86. package/dist/commonjs/operationsInterfaces/registries.d.ts +7 -15
  87. package/dist/commonjs/operationsInterfaces/registries.d.ts.map +1 -1
  88. package/dist/commonjs/operationsInterfaces/registries.js.map +1 -1
  89. package/dist/commonjs/operationsInterfaces/runs.d.ts +14 -32
  90. package/dist/commonjs/operationsInterfaces/runs.d.ts.map +1 -1
  91. package/dist/commonjs/operationsInterfaces/runs.js.map +1 -1
  92. package/dist/commonjs/operationsInterfaces/taskRuns.d.ts +23 -31
  93. package/dist/commonjs/operationsInterfaces/taskRuns.d.ts.map +1 -1
  94. package/dist/commonjs/operationsInterfaces/taskRuns.js.map +1 -1
  95. package/dist/commonjs/operationsInterfaces/tasks.d.ts +17 -44
  96. package/dist/commonjs/operationsInterfaces/tasks.d.ts.map +1 -1
  97. package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
  98. package/dist/commonjs/tsdoc-metadata.json +1 -1
  99. package/dist/esm/containerRegistryManagementClient.js +1 -1
  100. package/dist/esm/containerRegistryManagementClient.js.map +1 -1
  101. package/dist/esm/models/index.d.ts +158 -192
  102. package/dist/esm/models/index.d.ts.map +1 -1
  103. package/dist/esm/models/index.js.map +1 -1
  104. package/dist/esm/models/mappers.d.ts +16 -15
  105. package/dist/esm/models/mappers.d.ts.map +1 -1
  106. package/dist/esm/models/mappers.js +280 -319
  107. package/dist/esm/models/mappers.js.map +1 -1
  108. package/dist/esm/models/parameters.d.ts +1 -2
  109. package/dist/esm/models/parameters.d.ts.map +1 -1
  110. package/dist/esm/models/parameters.js +5 -18
  111. package/dist/esm/models/parameters.js.map +1 -1
  112. package/dist/esm/operations/agentPools.d.ts +37 -37
  113. package/dist/esm/operations/agentPools.d.ts.map +1 -1
  114. package/dist/esm/operations/agentPools.js +101 -90
  115. package/dist/esm/operations/agentPools.js.map +1 -1
  116. package/dist/esm/operations/registries.d.ts +7 -15
  117. package/dist/esm/operations/registries.d.ts.map +1 -1
  118. package/dist/esm/operations/registries.js +22 -79
  119. package/dist/esm/operations/registries.js.map +1 -1
  120. package/dist/esm/operations/runs.d.ts +18 -36
  121. package/dist/esm/operations/runs.d.ts.map +1 -1
  122. package/dist/esm/operations/runs.js +39 -156
  123. package/dist/esm/operations/runs.js.map +1 -1
  124. package/dist/esm/operations/taskRuns.d.ts +31 -39
  125. package/dist/esm/operations/taskRuns.d.ts.map +1 -1
  126. package/dist/esm/operations/taskRuns.js +79 -127
  127. package/dist/esm/operations/taskRuns.js.map +1 -1
  128. package/dist/esm/operations/tasks.d.ts +21 -48
  129. package/dist/esm/operations/tasks.d.ts.map +1 -1
  130. package/dist/esm/operations/tasks.js +62 -227
  131. package/dist/esm/operations/tasks.js.map +1 -1
  132. package/dist/esm/operationsInterfaces/agentPools.d.ts +29 -29
  133. package/dist/esm/operationsInterfaces/agentPools.d.ts.map +1 -1
  134. package/dist/esm/operationsInterfaces/agentPools.js.map +1 -1
  135. package/dist/esm/operationsInterfaces/registries.d.ts +7 -15
  136. package/dist/esm/operationsInterfaces/registries.d.ts.map +1 -1
  137. package/dist/esm/operationsInterfaces/registries.js.map +1 -1
  138. package/dist/esm/operationsInterfaces/runs.d.ts +14 -32
  139. package/dist/esm/operationsInterfaces/runs.d.ts.map +1 -1
  140. package/dist/esm/operationsInterfaces/runs.js.map +1 -1
  141. package/dist/esm/operationsInterfaces/taskRuns.d.ts +23 -31
  142. package/dist/esm/operationsInterfaces/taskRuns.d.ts.map +1 -1
  143. package/dist/esm/operationsInterfaces/taskRuns.js.map +1 -1
  144. package/dist/esm/operationsInterfaces/tasks.d.ts +17 -44
  145. package/dist/esm/operationsInterfaces/tasks.d.ts.map +1 -1
  146. package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
  147. package/dist/react-native/containerRegistryManagementClient.js +1 -1
  148. package/dist/react-native/containerRegistryManagementClient.js.map +1 -1
  149. package/dist/react-native/models/index.d.ts +158 -192
  150. package/dist/react-native/models/index.d.ts.map +1 -1
  151. package/dist/react-native/models/index.js.map +1 -1
  152. package/dist/react-native/models/mappers.d.ts +16 -15
  153. package/dist/react-native/models/mappers.d.ts.map +1 -1
  154. package/dist/react-native/models/mappers.js +280 -319
  155. package/dist/react-native/models/mappers.js.map +1 -1
  156. package/dist/react-native/models/parameters.d.ts +1 -2
  157. package/dist/react-native/models/parameters.d.ts.map +1 -1
  158. package/dist/react-native/models/parameters.js +5 -18
  159. package/dist/react-native/models/parameters.js.map +1 -1
  160. package/dist/react-native/operations/agentPools.d.ts +37 -37
  161. package/dist/react-native/operations/agentPools.d.ts.map +1 -1
  162. package/dist/react-native/operations/agentPools.js +101 -90
  163. package/dist/react-native/operations/agentPools.js.map +1 -1
  164. package/dist/react-native/operations/registries.d.ts +7 -15
  165. package/dist/react-native/operations/registries.d.ts.map +1 -1
  166. package/dist/react-native/operations/registries.js +22 -79
  167. package/dist/react-native/operations/registries.js.map +1 -1
  168. package/dist/react-native/operations/runs.d.ts +18 -36
  169. package/dist/react-native/operations/runs.d.ts.map +1 -1
  170. package/dist/react-native/operations/runs.js +39 -156
  171. package/dist/react-native/operations/runs.js.map +1 -1
  172. package/dist/react-native/operations/taskRuns.d.ts +31 -39
  173. package/dist/react-native/operations/taskRuns.d.ts.map +1 -1
  174. package/dist/react-native/operations/taskRuns.js +79 -127
  175. package/dist/react-native/operations/taskRuns.js.map +1 -1
  176. package/dist/react-native/operations/tasks.d.ts +21 -48
  177. package/dist/react-native/operations/tasks.d.ts.map +1 -1
  178. package/dist/react-native/operations/tasks.js +62 -227
  179. package/dist/react-native/operations/tasks.js.map +1 -1
  180. package/dist/react-native/operationsInterfaces/agentPools.d.ts +29 -29
  181. package/dist/react-native/operationsInterfaces/agentPools.d.ts.map +1 -1
  182. package/dist/react-native/operationsInterfaces/agentPools.js.map +1 -1
  183. package/dist/react-native/operationsInterfaces/registries.d.ts +7 -15
  184. package/dist/react-native/operationsInterfaces/registries.d.ts.map +1 -1
  185. package/dist/react-native/operationsInterfaces/registries.js.map +1 -1
  186. package/dist/react-native/operationsInterfaces/runs.d.ts +14 -32
  187. package/dist/react-native/operationsInterfaces/runs.d.ts.map +1 -1
  188. package/dist/react-native/operationsInterfaces/runs.js.map +1 -1
  189. package/dist/react-native/operationsInterfaces/taskRuns.d.ts +23 -31
  190. package/dist/react-native/operationsInterfaces/taskRuns.d.ts.map +1 -1
  191. package/dist/react-native/operationsInterfaces/taskRuns.js.map +1 -1
  192. package/dist/react-native/operationsInterfaces/tasks.d.ts +17 -44
  193. package/dist/react-native/operationsInterfaces/tasks.d.ts.map +1 -1
  194. package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
  195. package/package.json +22 -22
@@ -23,8 +23,8 @@ class TaskRunsImpl {
23
23
  }
24
24
  /**
25
25
  * Lists all the task runs for a specified container registry.
26
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
27
- * @param registryName The name of the container registry.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param registryName The name of the Registry
28
28
  * @param options The options parameters.
29
29
  */
30
30
  list(resourceGroupName, registryName, options) {
@@ -67,10 +67,19 @@ class TaskRunsImpl {
67
67
  yield* page;
68
68
  }
69
69
  }
70
+ /**
71
+ * Lists all the task runs for a specified container registry.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param registryName The name of the Registry
74
+ * @param options The options parameters.
75
+ */
76
+ _list(resourceGroupName, registryName, options) {
77
+ return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listOperationSpec);
78
+ }
70
79
  /**
71
80
  * Gets the detailed information for a given task run.
72
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
73
- * @param registryName The name of the container registry.
81
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
82
+ * @param registryName The name of the Registry
74
83
  * @param taskRunName The name of the task run.
75
84
  * @param options The options parameters.
76
85
  */
@@ -79,8 +88,8 @@ class TaskRunsImpl {
79
88
  }
80
89
  /**
81
90
  * Creates a task run for a container registry with the specified parameters.
82
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
83
- * @param registryName The name of the container registry.
91
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
92
+ * @param registryName The name of the Registry
84
93
  * @param taskRunName The name of the task run.
85
94
  * @param taskRun The parameters of a run that needs to scheduled.
86
95
  * @param options The options parameters.
@@ -121,14 +130,15 @@ class TaskRunsImpl {
121
130
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
122
131
  restoreFrom: options?.resumeFrom,
123
132
  intervalInMs: options?.updateIntervalInMs,
133
+ resourceLocationConfig: "azure-async-operation",
124
134
  });
125
135
  await poller.poll();
126
136
  return poller;
127
137
  }
128
138
  /**
129
139
  * Creates a task run for a container registry with the specified parameters.
130
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
131
- * @param registryName The name of the container registry.
140
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
141
+ * @param registryName The name of the Registry
132
142
  * @param taskRunName The name of the task run.
133
143
  * @param taskRun The parameters of a run that needs to scheduled.
134
144
  * @param options The options parameters.
@@ -137,68 +147,10 @@ class TaskRunsImpl {
137
147
  const poller = await this.beginCreate(resourceGroupName, registryName, taskRunName, taskRun, options);
138
148
  return poller.pollUntilDone();
139
149
  }
140
- /**
141
- * Deletes a specified task run resource.
142
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
143
- * @param registryName The name of the container registry.
144
- * @param taskRunName The name of the task run.
145
- * @param options The options parameters.
146
- */
147
- async beginDelete(resourceGroupName, registryName, taskRunName, options) {
148
- const directSendOperation = async (args, spec) => {
149
- return this.client.sendOperationRequest(args, spec);
150
- };
151
- const sendOperationFn = async (args, spec) => {
152
- let currentRawResponse = undefined;
153
- const providedCallback = args.options?.onResponse;
154
- const callback = (rawResponse, flatResponse) => {
155
- currentRawResponse = rawResponse;
156
- providedCallback?.(rawResponse, flatResponse);
157
- };
158
- const updatedArgs = {
159
- ...args,
160
- options: {
161
- ...args.options,
162
- onResponse: callback,
163
- },
164
- };
165
- const flatResponse = await directSendOperation(updatedArgs, spec);
166
- return {
167
- flatResponse,
168
- rawResponse: {
169
- statusCode: currentRawResponse.status,
170
- body: currentRawResponse.parsedBody,
171
- headers: currentRawResponse.headers.toJSON(),
172
- },
173
- };
174
- };
175
- const lro = (0, lroImpl_js_1.createLroSpec)({
176
- sendOperationFn,
177
- args: { resourceGroupName, registryName, taskRunName, options },
178
- spec: deleteOperationSpec,
179
- });
180
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
181
- restoreFrom: options?.resumeFrom,
182
- intervalInMs: options?.updateIntervalInMs,
183
- });
184
- await poller.poll();
185
- return poller;
186
- }
187
- /**
188
- * Deletes a specified task run resource.
189
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
190
- * @param registryName The name of the container registry.
191
- * @param taskRunName The name of the task run.
192
- * @param options The options parameters.
193
- */
194
- async beginDeleteAndWait(resourceGroupName, registryName, taskRunName, options) {
195
- const poller = await this.beginDelete(resourceGroupName, registryName, taskRunName, options);
196
- return poller.pollUntilDone();
197
- }
198
150
  /**
199
151
  * Updates a task run with the specified parameters.
200
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
201
- * @param registryName The name of the container registry.
152
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
153
+ * @param registryName The name of the Registry
202
154
  * @param taskRunName The name of the task run.
203
155
  * @param updateParameters The parameters for updating a task run.
204
156
  * @param options The options parameters.
@@ -245,14 +197,15 @@ class TaskRunsImpl {
245
197
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
246
198
  restoreFrom: options?.resumeFrom,
247
199
  intervalInMs: options?.updateIntervalInMs,
200
+ resourceLocationConfig: "azure-async-operation",
248
201
  });
249
202
  await poller.poll();
250
203
  return poller;
251
204
  }
252
205
  /**
253
206
  * Updates a task run with the specified parameters.
254
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
255
- * @param registryName The name of the container registry.
207
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
208
+ * @param registryName The name of the Registry
256
209
  * @param taskRunName The name of the task run.
257
210
  * @param updateParameters The parameters for updating a task run.
258
211
  * @param options The options parameters.
@@ -262,28 +215,29 @@ class TaskRunsImpl {
262
215
  return poller.pollUntilDone();
263
216
  }
264
217
  /**
265
- * Gets the detailed information for a given task run that includes all secrets.
266
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
267
- * @param registryName The name of the container registry.
218
+ * Deletes a specified task run resource.
219
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
220
+ * @param registryName The name of the Registry
268
221
  * @param taskRunName The name of the task run.
269
222
  * @param options The options parameters.
270
223
  */
271
- getDetails(resourceGroupName, registryName, taskRunName, options) {
272
- return this.client.sendOperationRequest({ resourceGroupName, registryName, taskRunName, options }, getDetailsOperationSpec);
224
+ delete(resourceGroupName, registryName, taskRunName, options) {
225
+ return this.client.sendOperationRequest({ resourceGroupName, registryName, taskRunName, options }, deleteOperationSpec);
273
226
  }
274
227
  /**
275
- * Lists all the task runs for a specified container registry.
276
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
277
- * @param registryName The name of the container registry.
228
+ * Gets the detailed information for a given task run that includes all secrets.
229
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
230
+ * @param registryName The name of the Registry
231
+ * @param taskRunName The name of the task run.
278
232
  * @param options The options parameters.
279
233
  */
280
- _list(resourceGroupName, registryName, options) {
281
- return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listOperationSpec);
234
+ getDetails(resourceGroupName, registryName, taskRunName, options) {
235
+ return this.client.sendOperationRequest({ resourceGroupName, registryName, taskRunName, options }, getDetailsOperationSpec);
282
236
  }
283
237
  /**
284
238
  * ListNext
285
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
286
- * @param registryName The name of the container registry.
239
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
240
+ * @param registryName The name of the Registry
287
241
  * @param nextLink The nextLink from the previous successful call to the List method.
288
242
  * @param options The options parameters.
289
243
  */
@@ -294,6 +248,27 @@ class TaskRunsImpl {
294
248
  exports.TaskRunsImpl = TaskRunsImpl;
295
249
  // Operation Specifications
296
250
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
251
+ const listOperationSpec = {
252
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns",
253
+ httpMethod: "GET",
254
+ responses: {
255
+ 200: {
256
+ bodyMapper: Mappers.TaskRunListResult,
257
+ },
258
+ default: {
259
+ bodyMapper: Mappers.ErrorResponse,
260
+ },
261
+ },
262
+ queryParameters: [Parameters.apiVersion1],
263
+ urlParameters: [
264
+ Parameters.$host,
265
+ Parameters.subscriptionId,
266
+ Parameters.resourceGroupName,
267
+ Parameters.registryName,
268
+ ],
269
+ headerParameters: [Parameters.accept],
270
+ serializer,
271
+ };
297
272
  const getOperationSpec = {
298
273
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
299
274
  httpMethod: "GET",
@@ -302,15 +277,15 @@ const getOperationSpec = {
302
277
  bodyMapper: Mappers.TaskRun,
303
278
  },
304
279
  default: {
305
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
280
+ bodyMapper: Mappers.ErrorResponse,
306
281
  },
307
282
  },
308
283
  queryParameters: [Parameters.apiVersion1],
309
284
  urlParameters: [
310
285
  Parameters.$host,
311
286
  Parameters.subscriptionId,
287
+ Parameters.resourceGroupName,
312
288
  Parameters.registryName,
313
- Parameters.resourceGroupName1,
314
289
  Parameters.taskRunName,
315
290
  ],
316
291
  headerParameters: [Parameters.accept],
@@ -333,7 +308,7 @@ const createOperationSpec = {
333
308
  bodyMapper: Mappers.TaskRun,
334
309
  },
335
310
  default: {
336
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
311
+ bodyMapper: Mappers.ErrorResponse,
337
312
  },
338
313
  },
339
314
  requestBody: Parameters.taskRun,
@@ -341,37 +316,14 @@ const createOperationSpec = {
341
316
  urlParameters: [
342
317
  Parameters.$host,
343
318
  Parameters.subscriptionId,
319
+ Parameters.resourceGroupName,
344
320
  Parameters.registryName,
345
- Parameters.resourceGroupName1,
346
321
  Parameters.taskRunName,
347
322
  ],
348
323
  headerParameters: [Parameters.accept, Parameters.contentType],
349
324
  mediaType: "json",
350
325
  serializer,
351
326
  };
352
- const deleteOperationSpec = {
353
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
354
- httpMethod: "DELETE",
355
- responses: {
356
- 200: {},
357
- 201: {},
358
- 202: {},
359
- 204: {},
360
- default: {
361
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
362
- },
363
- },
364
- queryParameters: [Parameters.apiVersion1],
365
- urlParameters: [
366
- Parameters.$host,
367
- Parameters.subscriptionId,
368
- Parameters.registryName,
369
- Parameters.resourceGroupName1,
370
- Parameters.taskRunName,
371
- ],
372
- headerParameters: [Parameters.accept],
373
- serializer,
374
- };
375
327
  const updateOperationSpec = {
376
328
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
377
329
  httpMethod: "PATCH",
@@ -389,7 +341,7 @@ const updateOperationSpec = {
389
341
  bodyMapper: Mappers.TaskRun,
390
342
  },
391
343
  default: {
392
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
344
+ bodyMapper: Mappers.ErrorResponse,
393
345
  },
394
346
  },
395
347
  requestBody: Parameters.updateParameters1,
@@ -397,53 +349,53 @@ const updateOperationSpec = {
397
349
  urlParameters: [
398
350
  Parameters.$host,
399
351
  Parameters.subscriptionId,
352
+ Parameters.resourceGroupName,
400
353
  Parameters.registryName,
401
- Parameters.resourceGroupName1,
402
354
  Parameters.taskRunName,
403
355
  ],
404
356
  headerParameters: [Parameters.accept, Parameters.contentType],
405
357
  mediaType: "json",
406
358
  serializer,
407
359
  };
408
- const getDetailsOperationSpec = {
409
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails",
410
- httpMethod: "POST",
360
+ const deleteOperationSpec = {
361
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
362
+ httpMethod: "DELETE",
411
363
  responses: {
412
- 200: {
413
- bodyMapper: Mappers.TaskRun,
414
- },
364
+ 200: {},
365
+ 204: {},
415
366
  default: {
416
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
367
+ bodyMapper: Mappers.ErrorResponse,
417
368
  },
418
369
  },
419
370
  queryParameters: [Parameters.apiVersion1],
420
371
  urlParameters: [
421
372
  Parameters.$host,
422
373
  Parameters.subscriptionId,
374
+ Parameters.resourceGroupName,
423
375
  Parameters.registryName,
424
- Parameters.resourceGroupName1,
425
376
  Parameters.taskRunName,
426
377
  ],
427
378
  headerParameters: [Parameters.accept],
428
379
  serializer,
429
380
  };
430
- const listOperationSpec = {
431
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns",
432
- httpMethod: "GET",
381
+ const getDetailsOperationSpec = {
382
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails",
383
+ httpMethod: "POST",
433
384
  responses: {
434
385
  200: {
435
- bodyMapper: Mappers.TaskRunListResult,
386
+ bodyMapper: Mappers.TaskRun,
436
387
  },
437
388
  default: {
438
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
389
+ bodyMapper: Mappers.ErrorResponse,
439
390
  },
440
391
  },
441
392
  queryParameters: [Parameters.apiVersion1],
442
393
  urlParameters: [
443
394
  Parameters.$host,
444
395
  Parameters.subscriptionId,
396
+ Parameters.resourceGroupName,
445
397
  Parameters.registryName,
446
- Parameters.resourceGroupName1,
398
+ Parameters.taskRunName,
447
399
  ],
448
400
  headerParameters: [Parameters.accept],
449
401
  serializer,
@@ -456,15 +408,15 @@ const listNextOperationSpec = {
456
408
  bodyMapper: Mappers.TaskRunListResult,
457
409
  },
458
410
  default: {
459
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
411
+ bodyMapper: Mappers.ErrorResponse,
460
412
  },
461
413
  },
462
414
  urlParameters: [
463
415
  Parameters.$host,
464
416
  Parameters.nextLink,
465
417
  Parameters.subscriptionId,
418
+ Parameters.resourceGroupName,
466
419
  Parameters.registryName,
467
- Parameters.resourceGroupName1,
468
420
  ],
469
421
  headerParameters: [Parameters.accept],
470
422
  serializer,
@@ -1 +1 @@
1
- {"version":3,"file":"taskRuns.js","sourceRoot":"","sources":["../../../src/operations/taskRuns.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;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,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6IAA6I;IACnJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { TaskRuns } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ContainerRegistryManagementClient } from \"../containerRegistryManagementClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n TaskRun,\n TaskRunsListNextOptionalParams,\n TaskRunsListOptionalParams,\n TaskRunsListResponse,\n TaskRunsGetOptionalParams,\n TaskRunsGetResponse,\n TaskRunsCreateOptionalParams,\n TaskRunsCreateResponse,\n TaskRunsDeleteOptionalParams,\n TaskRunUpdateParameters,\n TaskRunsUpdateOptionalParams,\n TaskRunsUpdateResponse,\n TaskRunsGetDetailsOptionalParams,\n TaskRunsGetDetailsResponse,\n TaskRunsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TaskRuns operations. */\nexport class TaskRunsImpl implements TaskRuns {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class TaskRuns class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): PagedAsyncIterableIterator<TaskRun> {\n const iter = this.listPagingAll(resourceGroupName, registryName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, registryName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TaskRun[]> {\n let result: TaskRunsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, registryName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroupName, registryName, continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): AsyncIterableIterator<TaskRun> {\n for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the detailed information for a given task run.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetOptionalParams,\n ): Promise<TaskRunsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<TaskRunsCreateResponse>, TaskRunsCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, registryName, taskRunName, taskRun, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsCreateResponse,\n OperationState<TaskRunsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<TaskRunsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n taskRunName,\n taskRun,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified task run resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, registryName, taskRunName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a specified task run resource.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, registryName, taskRunName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a task run with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<TaskRunsUpdateResponse>, TaskRunsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n registryName,\n taskRunName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsUpdateResponse,\n OperationState<TaskRunsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a task run with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<TaskRunsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n taskRunName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the detailed information for a given task run that includes all secrets.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n getDetails(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetDetailsOptionalParams,\n ): Promise<TaskRunsGetDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getDetailsOperationSpec,\n );\n }\n\n /**\n * Lists all the task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): Promise<TaskRunsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group to which the container registry belongs.\n * @param registryName The name of the container registry.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: TaskRunsListNextOptionalParams,\n ): Promise<TaskRunsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n requestBody: Parameters.taskRun,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n requestBody: Parameters.updateParameters1,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\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S,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,OAAO;SAC5B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { TaskRuns } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ContainerRegistryManagementClient } from \"../containerRegistryManagementClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n TaskRun,\n TaskRunsListNextOptionalParams,\n TaskRunsListOptionalParams,\n TaskRunsListResponse,\n TaskRunsGetOptionalParams,\n TaskRunsGetResponse,\n TaskRunsCreateOptionalParams,\n TaskRunsCreateResponse,\n TaskRunUpdateParameters,\n TaskRunsUpdateOptionalParams,\n TaskRunsUpdateResponse,\n TaskRunsDeleteOptionalParams,\n TaskRunsGetDetailsOptionalParams,\n TaskRunsGetDetailsResponse,\n TaskRunsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing TaskRuns operations. */\nexport class TaskRunsImpl implements TaskRuns {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class TaskRuns class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerRegistryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): PagedAsyncIterableIterator<TaskRun> {\n const iter = this.listPagingAll(resourceGroupName, registryName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, registryName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<TaskRun[]> {\n let result: TaskRunsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, registryName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroupName, registryName, continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): AsyncIterableIterator<TaskRun> {\n for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the task runs for a specified container registry.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n registryName: string,\n options?: TaskRunsListOptionalParams,\n ): Promise<TaskRunsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the detailed information for a given task run.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetOptionalParams,\n ): Promise<TaskRunsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates a task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<TaskRunsCreateResponse>, TaskRunsCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, registryName, taskRunName, taskRun, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsCreateResponse,\n OperationState<TaskRunsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a task run for a container registry with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param taskRun The parameters of a run that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n taskRun: TaskRun,\n options?: TaskRunsCreateOptionalParams,\n ): Promise<TaskRunsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n taskRunName,\n taskRun,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates a task run with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<TaskRunsUpdateResponse>, TaskRunsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TaskRunsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n registryName,\n taskRunName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n TaskRunsUpdateResponse,\n OperationState<TaskRunsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates a task run with the specified parameters.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param updateParameters The parameters for updating a task run.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n updateParameters: TaskRunUpdateParameters,\n options?: TaskRunsUpdateOptionalParams,\n ): Promise<TaskRunsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n taskRunName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified task run resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets the detailed information for a given task run that includes all secrets.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param taskRunName The name of the task run.\n * @param options The options parameters.\n */\n getDetails(\n resourceGroupName: string,\n registryName: string,\n taskRunName: string,\n options?: TaskRunsGetDetailsOptionalParams,\n ): Promise<TaskRunsGetDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, taskRunName, options },\n getDetailsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n registryName: string,\n nextLink: string,\n options?: TaskRunsListNextOptionalParams,\n ): Promise<TaskRunsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.taskRun,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n 201: {\n bodyMapper: Mappers.TaskRun,\n },\n 202: {\n bodyMapper: Mappers.TaskRun,\n },\n 204: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateParameters1,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRun,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.taskRunName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskRunListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}