@azure/arm-containerregistry 11.0.0 → 12.0.0-alpha.20251224.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 (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
@@ -19,8 +19,8 @@ export class TaskRunsImpl {
19
19
  }
20
20
  /**
21
21
  * Lists all the task runs for a specified container registry.
22
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
23
- * @param registryName The name of the container registry.
22
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
+ * @param registryName The name of the Registry
24
24
  * @param options The options parameters.
25
25
  */
26
26
  list(resourceGroupName, registryName, options) {
@@ -63,10 +63,19 @@ export class TaskRunsImpl {
63
63
  yield* page;
64
64
  }
65
65
  }
66
+ /**
67
+ * Lists all the task runs for a specified container registry.
68
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
69
+ * @param registryName The name of the Registry
70
+ * @param options The options parameters.
71
+ */
72
+ _list(resourceGroupName, registryName, options) {
73
+ return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listOperationSpec);
74
+ }
66
75
  /**
67
76
  * Gets the detailed information for a given task run.
68
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
69
- * @param registryName The name of the container registry.
77
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
78
+ * @param registryName The name of the Registry
70
79
  * @param taskRunName The name of the task run.
71
80
  * @param options The options parameters.
72
81
  */
@@ -75,8 +84,8 @@ export class TaskRunsImpl {
75
84
  }
76
85
  /**
77
86
  * Creates a task run for a container registry with the specified parameters.
78
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
79
- * @param registryName The name of the container registry.
87
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
88
+ * @param registryName The name of the Registry
80
89
  * @param taskRunName The name of the task run.
81
90
  * @param taskRun The parameters of a run that needs to scheduled.
82
91
  * @param options The options parameters.
@@ -117,14 +126,15 @@ export class TaskRunsImpl {
117
126
  const poller = await createHttpPoller(lro, {
118
127
  restoreFrom: options?.resumeFrom,
119
128
  intervalInMs: options?.updateIntervalInMs,
129
+ resourceLocationConfig: "azure-async-operation",
120
130
  });
121
131
  await poller.poll();
122
132
  return poller;
123
133
  }
124
134
  /**
125
135
  * Creates a task 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.
136
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
137
+ * @param registryName The name of the Registry
128
138
  * @param taskRunName The name of the task run.
129
139
  * @param taskRun The parameters of a run that needs to scheduled.
130
140
  * @param options The options parameters.
@@ -133,68 +143,10 @@ export class TaskRunsImpl {
133
143
  const poller = await this.beginCreate(resourceGroupName, registryName, taskRunName, taskRun, options);
134
144
  return poller.pollUntilDone();
135
145
  }
136
- /**
137
- * Deletes a specified task run resource.
138
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
139
- * @param registryName The name of the container registry.
140
- * @param taskRunName The name of the task run.
141
- * @param options The options parameters.
142
- */
143
- async beginDelete(resourceGroupName, registryName, taskRunName, options) {
144
- const directSendOperation = async (args, spec) => {
145
- return this.client.sendOperationRequest(args, spec);
146
- };
147
- const sendOperationFn = async (args, spec) => {
148
- let currentRawResponse = undefined;
149
- const providedCallback = args.options?.onResponse;
150
- const callback = (rawResponse, flatResponse) => {
151
- currentRawResponse = rawResponse;
152
- providedCallback?.(rawResponse, flatResponse);
153
- };
154
- const updatedArgs = {
155
- ...args,
156
- options: {
157
- ...args.options,
158
- onResponse: callback,
159
- },
160
- };
161
- const flatResponse = await directSendOperation(updatedArgs, spec);
162
- return {
163
- flatResponse,
164
- rawResponse: {
165
- statusCode: currentRawResponse.status,
166
- body: currentRawResponse.parsedBody,
167
- headers: currentRawResponse.headers.toJSON(),
168
- },
169
- };
170
- };
171
- const lro = createLroSpec({
172
- sendOperationFn,
173
- args: { resourceGroupName, registryName, taskRunName, options },
174
- spec: deleteOperationSpec,
175
- });
176
- const poller = await createHttpPoller(lro, {
177
- restoreFrom: options?.resumeFrom,
178
- intervalInMs: options?.updateIntervalInMs,
179
- });
180
- await poller.poll();
181
- return poller;
182
- }
183
- /**
184
- * Deletes a specified task run resource.
185
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
186
- * @param registryName The name of the container registry.
187
- * @param taskRunName The name of the task run.
188
- * @param options The options parameters.
189
- */
190
- async beginDeleteAndWait(resourceGroupName, registryName, taskRunName, options) {
191
- const poller = await this.beginDelete(resourceGroupName, registryName, taskRunName, options);
192
- return poller.pollUntilDone();
193
- }
194
146
  /**
195
147
  * Updates a task run with the specified parameters.
196
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
197
- * @param registryName The name of the container registry.
148
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
149
+ * @param registryName The name of the Registry
198
150
  * @param taskRunName The name of the task run.
199
151
  * @param updateParameters The parameters for updating a task run.
200
152
  * @param options The options parameters.
@@ -241,14 +193,15 @@ export class TaskRunsImpl {
241
193
  const poller = await createHttpPoller(lro, {
242
194
  restoreFrom: options?.resumeFrom,
243
195
  intervalInMs: options?.updateIntervalInMs,
196
+ resourceLocationConfig: "azure-async-operation",
244
197
  });
245
198
  await poller.poll();
246
199
  return poller;
247
200
  }
248
201
  /**
249
202
  * Updates a task run with the specified parameters.
250
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
251
- * @param registryName The name of the container registry.
203
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
204
+ * @param registryName The name of the Registry
252
205
  * @param taskRunName The name of the task run.
253
206
  * @param updateParameters The parameters for updating a task run.
254
207
  * @param options The options parameters.
@@ -258,28 +211,29 @@ export class TaskRunsImpl {
258
211
  return poller.pollUntilDone();
259
212
  }
260
213
  /**
261
- * Gets the detailed information for a given task run that includes all secrets.
262
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
263
- * @param registryName The name of the container registry.
214
+ * Deletes a specified task run resource.
215
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
216
+ * @param registryName The name of the Registry
264
217
  * @param taskRunName The name of the task run.
265
218
  * @param options The options parameters.
266
219
  */
267
- getDetails(resourceGroupName, registryName, taskRunName, options) {
268
- return this.client.sendOperationRequest({ resourceGroupName, registryName, taskRunName, options }, getDetailsOperationSpec);
220
+ delete(resourceGroupName, registryName, taskRunName, options) {
221
+ return this.client.sendOperationRequest({ resourceGroupName, registryName, taskRunName, options }, deleteOperationSpec);
269
222
  }
270
223
  /**
271
- * Lists all the task runs for a specified container registry.
272
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
273
- * @param registryName The name of the container registry.
224
+ * Gets the detailed information for a given task run that includes all secrets.
225
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
226
+ * @param registryName The name of the Registry
227
+ * @param taskRunName The name of the task run.
274
228
  * @param options The options parameters.
275
229
  */
276
- _list(resourceGroupName, registryName, options) {
277
- return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listOperationSpec);
230
+ getDetails(resourceGroupName, registryName, taskRunName, options) {
231
+ return this.client.sendOperationRequest({ resourceGroupName, registryName, taskRunName, options }, getDetailsOperationSpec);
278
232
  }
279
233
  /**
280
234
  * ListNext
281
- * @param resourceGroupName The name of the resource group to which the container registry belongs.
282
- * @param registryName The name of the container registry.
235
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
236
+ * @param registryName The name of the Registry
283
237
  * @param nextLink The nextLink from the previous successful call to the List method.
284
238
  * @param options The options parameters.
285
239
  */
@@ -289,6 +243,27 @@ export class TaskRunsImpl {
289
243
  }
290
244
  // Operation Specifications
291
245
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
246
+ const listOperationSpec = {
247
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns",
248
+ httpMethod: "GET",
249
+ responses: {
250
+ 200: {
251
+ bodyMapper: Mappers.TaskRunListResult,
252
+ },
253
+ default: {
254
+ bodyMapper: Mappers.ErrorResponse,
255
+ },
256
+ },
257
+ queryParameters: [Parameters.apiVersion1],
258
+ urlParameters: [
259
+ Parameters.$host,
260
+ Parameters.subscriptionId,
261
+ Parameters.resourceGroupName,
262
+ Parameters.registryName,
263
+ ],
264
+ headerParameters: [Parameters.accept],
265
+ serializer,
266
+ };
292
267
  const getOperationSpec = {
293
268
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
294
269
  httpMethod: "GET",
@@ -297,15 +272,15 @@ const getOperationSpec = {
297
272
  bodyMapper: Mappers.TaskRun,
298
273
  },
299
274
  default: {
300
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
275
+ bodyMapper: Mappers.ErrorResponse,
301
276
  },
302
277
  },
303
278
  queryParameters: [Parameters.apiVersion1],
304
279
  urlParameters: [
305
280
  Parameters.$host,
306
281
  Parameters.subscriptionId,
282
+ Parameters.resourceGroupName,
307
283
  Parameters.registryName,
308
- Parameters.resourceGroupName1,
309
284
  Parameters.taskRunName,
310
285
  ],
311
286
  headerParameters: [Parameters.accept],
@@ -328,7 +303,7 @@ const createOperationSpec = {
328
303
  bodyMapper: Mappers.TaskRun,
329
304
  },
330
305
  default: {
331
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
306
+ bodyMapper: Mappers.ErrorResponse,
332
307
  },
333
308
  },
334
309
  requestBody: Parameters.taskRun,
@@ -336,37 +311,14 @@ const createOperationSpec = {
336
311
  urlParameters: [
337
312
  Parameters.$host,
338
313
  Parameters.subscriptionId,
314
+ Parameters.resourceGroupName,
339
315
  Parameters.registryName,
340
- Parameters.resourceGroupName1,
341
316
  Parameters.taskRunName,
342
317
  ],
343
318
  headerParameters: [Parameters.accept, Parameters.contentType],
344
319
  mediaType: "json",
345
320
  serializer,
346
321
  };
347
- const deleteOperationSpec = {
348
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
349
- httpMethod: "DELETE",
350
- responses: {
351
- 200: {},
352
- 201: {},
353
- 202: {},
354
- 204: {},
355
- default: {
356
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
357
- },
358
- },
359
- queryParameters: [Parameters.apiVersion1],
360
- urlParameters: [
361
- Parameters.$host,
362
- Parameters.subscriptionId,
363
- Parameters.registryName,
364
- Parameters.resourceGroupName1,
365
- Parameters.taskRunName,
366
- ],
367
- headerParameters: [Parameters.accept],
368
- serializer,
369
- };
370
322
  const updateOperationSpec = {
371
323
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
372
324
  httpMethod: "PATCH",
@@ -384,7 +336,7 @@ const updateOperationSpec = {
384
336
  bodyMapper: Mappers.TaskRun,
385
337
  },
386
338
  default: {
387
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
339
+ bodyMapper: Mappers.ErrorResponse,
388
340
  },
389
341
  },
390
342
  requestBody: Parameters.updateParameters1,
@@ -392,53 +344,53 @@ const updateOperationSpec = {
392
344
  urlParameters: [
393
345
  Parameters.$host,
394
346
  Parameters.subscriptionId,
347
+ Parameters.resourceGroupName,
395
348
  Parameters.registryName,
396
- Parameters.resourceGroupName1,
397
349
  Parameters.taskRunName,
398
350
  ],
399
351
  headerParameters: [Parameters.accept, Parameters.contentType],
400
352
  mediaType: "json",
401
353
  serializer,
402
354
  };
403
- const getDetailsOperationSpec = {
404
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails",
405
- httpMethod: "POST",
355
+ const deleteOperationSpec = {
356
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}",
357
+ httpMethod: "DELETE",
406
358
  responses: {
407
- 200: {
408
- bodyMapper: Mappers.TaskRun,
409
- },
359
+ 200: {},
360
+ 204: {},
410
361
  default: {
411
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
362
+ bodyMapper: Mappers.ErrorResponse,
412
363
  },
413
364
  },
414
365
  queryParameters: [Parameters.apiVersion1],
415
366
  urlParameters: [
416
367
  Parameters.$host,
417
368
  Parameters.subscriptionId,
369
+ Parameters.resourceGroupName,
418
370
  Parameters.registryName,
419
- Parameters.resourceGroupName1,
420
371
  Parameters.taskRunName,
421
372
  ],
422
373
  headerParameters: [Parameters.accept],
423
374
  serializer,
424
375
  };
425
- const listOperationSpec = {
426
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns",
427
- httpMethod: "GET",
376
+ const getDetailsOperationSpec = {
377
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails",
378
+ httpMethod: "POST",
428
379
  responses: {
429
380
  200: {
430
- bodyMapper: Mappers.TaskRunListResult,
381
+ bodyMapper: Mappers.TaskRun,
431
382
  },
432
383
  default: {
433
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
384
+ bodyMapper: Mappers.ErrorResponse,
434
385
  },
435
386
  },
436
387
  queryParameters: [Parameters.apiVersion1],
437
388
  urlParameters: [
438
389
  Parameters.$host,
439
390
  Parameters.subscriptionId,
391
+ Parameters.resourceGroupName,
440
392
  Parameters.registryName,
441
- Parameters.resourceGroupName1,
393
+ Parameters.taskRunName,
442
394
  ],
443
395
  headerParameters: [Parameters.accept],
444
396
  serializer,
@@ -451,15 +403,15 @@ const listNextOperationSpec = {
451
403
  bodyMapper: Mappers.TaskRunListResult,
452
404
  },
453
405
  default: {
454
- bodyMapper: Mappers.ErrorResponseForContainerRegistry,
406
+ bodyMapper: Mappers.ErrorResponse,
455
407
  },
456
408
  },
457
409
  urlParameters: [
458
410
  Parameters.$host,
459
411
  Parameters.nextLink,
460
412
  Parameters.subscriptionId,
413
+ Parameters.resourceGroupName,
461
414
  Parameters.registryName,
462
- Parameters.resourceGroupName1,
463
415
  ],
464
416
  headerParameters: [Parameters.accept],
465
417
  serializer,
@@ -1 +1 @@
1
- {"version":3,"file":"taskRuns.js","sourceRoot":"","sources":["../../../src/operations/taskRuns.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UA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;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,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};\n"]}
1
+ {"version":3,"file":"taskRuns.js","sourceRoot":"","sources":["../../../src/operations/taskRuns.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAoC;QAEpC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACjF,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,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5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,uKAAuK;IAC7K,UAAU,EAAE,MAAM;IAClB,SAAS,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"]}