@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.
- package/README.md +1 -1
- package/dist/browser/containerRegistryManagementClient.js +1 -1
- package/dist/browser/containerRegistryManagementClient.js.map +1 -1
- package/dist/browser/models/index.d.ts +158 -192
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +16 -15
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +280 -319
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +1 -2
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +5 -18
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/agentPools.d.ts +37 -37
- package/dist/browser/operations/agentPools.d.ts.map +1 -1
- package/dist/browser/operations/agentPools.js +101 -90
- package/dist/browser/operations/agentPools.js.map +1 -1
- package/dist/browser/operations/registries.d.ts +7 -15
- package/dist/browser/operations/registries.d.ts.map +1 -1
- package/dist/browser/operations/registries.js +22 -79
- package/dist/browser/operations/registries.js.map +1 -1
- package/dist/browser/operations/runs.d.ts +18 -36
- package/dist/browser/operations/runs.d.ts.map +1 -1
- package/dist/browser/operations/runs.js +39 -156
- package/dist/browser/operations/runs.js.map +1 -1
- package/dist/browser/operations/taskRuns.d.ts +31 -39
- package/dist/browser/operations/taskRuns.d.ts.map +1 -1
- package/dist/browser/operations/taskRuns.js +79 -127
- package/dist/browser/operations/taskRuns.js.map +1 -1
- package/dist/browser/operations/tasks.d.ts +21 -48
- package/dist/browser/operations/tasks.d.ts.map +1 -1
- package/dist/browser/operations/tasks.js +62 -227
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operationsInterfaces/agentPools.d.ts +29 -29
- package/dist/browser/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/browser/operationsInterfaces/registries.d.ts +7 -15
- package/dist/browser/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/registries.js.map +1 -1
- package/dist/browser/operationsInterfaces/runs.d.ts +14 -32
- package/dist/browser/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/runs.js.map +1 -1
- package/dist/browser/operationsInterfaces/taskRuns.d.ts +23 -31
- package/dist/browser/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/browser/operationsInterfaces/tasks.d.ts +17 -44
- package/dist/browser/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
- package/dist/commonjs/containerRegistryManagementClient.js +1 -1
- package/dist/commonjs/containerRegistryManagementClient.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +158 -192
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +16 -15
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +283 -322
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +1 -2
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +7 -20
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/agentPools.d.ts +37 -37
- package/dist/commonjs/operations/agentPools.d.ts.map +1 -1
- package/dist/commonjs/operations/agentPools.js +101 -90
- package/dist/commonjs/operations/agentPools.js.map +1 -1
- package/dist/commonjs/operations/registries.d.ts +7 -15
- package/dist/commonjs/operations/registries.d.ts.map +1 -1
- package/dist/commonjs/operations/registries.js +22 -79
- package/dist/commonjs/operations/registries.js.map +1 -1
- package/dist/commonjs/operations/runs.d.ts +18 -36
- package/dist/commonjs/operations/runs.d.ts.map +1 -1
- package/dist/commonjs/operations/runs.js +39 -156
- package/dist/commonjs/operations/runs.js.map +1 -1
- package/dist/commonjs/operations/taskRuns.d.ts +31 -39
- package/dist/commonjs/operations/taskRuns.d.ts.map +1 -1
- package/dist/commonjs/operations/taskRuns.js +79 -127
- package/dist/commonjs/operations/taskRuns.js.map +1 -1
- package/dist/commonjs/operations/tasks.d.ts +21 -48
- package/dist/commonjs/operations/tasks.d.ts.map +1 -1
- package/dist/commonjs/operations/tasks.js +62 -227
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/agentPools.d.ts +29 -29
- package/dist/commonjs/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/registries.d.ts +7 -15
- package/dist/commonjs/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/registries.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/runs.d.ts +14 -32
- package/dist/commonjs/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/runs.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/taskRuns.d.ts +23 -31
- package/dist/commonjs/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/tasks.d.ts +17 -44
- package/dist/commonjs/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/containerRegistryManagementClient.js +1 -1
- package/dist/esm/containerRegistryManagementClient.js.map +1 -1
- package/dist/esm/models/index.d.ts +158 -192
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +16 -15
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +280 -319
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +1 -2
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +5 -18
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/agentPools.d.ts +37 -37
- package/dist/esm/operations/agentPools.d.ts.map +1 -1
- package/dist/esm/operations/agentPools.js +101 -90
- package/dist/esm/operations/agentPools.js.map +1 -1
- package/dist/esm/operations/registries.d.ts +7 -15
- package/dist/esm/operations/registries.d.ts.map +1 -1
- package/dist/esm/operations/registries.js +22 -79
- package/dist/esm/operations/registries.js.map +1 -1
- package/dist/esm/operations/runs.d.ts +18 -36
- package/dist/esm/operations/runs.d.ts.map +1 -1
- package/dist/esm/operations/runs.js +39 -156
- package/dist/esm/operations/runs.js.map +1 -1
- package/dist/esm/operations/taskRuns.d.ts +31 -39
- package/dist/esm/operations/taskRuns.d.ts.map +1 -1
- package/dist/esm/operations/taskRuns.js +79 -127
- package/dist/esm/operations/taskRuns.js.map +1 -1
- package/dist/esm/operations/tasks.d.ts +21 -48
- package/dist/esm/operations/tasks.d.ts.map +1 -1
- package/dist/esm/operations/tasks.js +62 -227
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operationsInterfaces/agentPools.d.ts +29 -29
- package/dist/esm/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/esm/operationsInterfaces/registries.d.ts +7 -15
- package/dist/esm/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/registries.js.map +1 -1
- package/dist/esm/operationsInterfaces/runs.d.ts +14 -32
- package/dist/esm/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/runs.js.map +1 -1
- package/dist/esm/operationsInterfaces/taskRuns.d.ts +23 -31
- package/dist/esm/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/esm/operationsInterfaces/tasks.d.ts +17 -44
- package/dist/esm/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
- package/dist/react-native/containerRegistryManagementClient.js +1 -1
- package/dist/react-native/containerRegistryManagementClient.js.map +1 -1
- package/dist/react-native/models/index.d.ts +158 -192
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +16 -15
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +280 -319
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +1 -2
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +5 -18
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/agentPools.d.ts +37 -37
- package/dist/react-native/operations/agentPools.d.ts.map +1 -1
- package/dist/react-native/operations/agentPools.js +101 -90
- package/dist/react-native/operations/agentPools.js.map +1 -1
- package/dist/react-native/operations/registries.d.ts +7 -15
- package/dist/react-native/operations/registries.d.ts.map +1 -1
- package/dist/react-native/operations/registries.js +22 -79
- package/dist/react-native/operations/registries.js.map +1 -1
- package/dist/react-native/operations/runs.d.ts +18 -36
- package/dist/react-native/operations/runs.d.ts.map +1 -1
- package/dist/react-native/operations/runs.js +39 -156
- package/dist/react-native/operations/runs.js.map +1 -1
- package/dist/react-native/operations/taskRuns.d.ts +31 -39
- package/dist/react-native/operations/taskRuns.d.ts.map +1 -1
- package/dist/react-native/operations/taskRuns.js +79 -127
- package/dist/react-native/operations/taskRuns.js.map +1 -1
- package/dist/react-native/operations/tasks.d.ts +21 -48
- package/dist/react-native/operations/tasks.d.ts.map +1 -1
- package/dist/react-native/operations/tasks.js +62 -227
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operationsInterfaces/agentPools.d.ts +29 -29
- package/dist/react-native/operationsInterfaces/agentPools.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/agentPools.js.map +1 -1
- package/dist/react-native/operationsInterfaces/registries.d.ts +7 -15
- package/dist/react-native/operationsInterfaces/registries.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/registries.js.map +1 -1
- package/dist/react-native/operationsInterfaces/runs.d.ts +14 -32
- package/dist/react-native/operationsInterfaces/runs.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/runs.js.map +1 -1
- package/dist/react-native/operationsInterfaces/taskRuns.d.ts +23 -31
- package/dist/react-native/operationsInterfaces/taskRuns.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/taskRuns.js.map +1 -1
- package/dist/react-native/operationsInterfaces/tasks.d.ts +17 -44
- package/dist/react-native/operationsInterfaces/tasks.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
- package/package.json +22 -22
|
@@ -23,8 +23,8 @@ class AgentPoolsImpl {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Lists all the agent pools for a specified container registry.
|
|
26
|
-
* @param resourceGroupName The name of the resource group
|
|
27
|
-
* @param registryName The name of the
|
|
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 AgentPoolsImpl {
|
|
|
67
67
|
yield* page;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Lists all the agent pools 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 agent pool.
|
|
72
|
-
* @param resourceGroupName The name of the resource group
|
|
73
|
-
* @param registryName The name of the
|
|
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 agentPoolName The name of the agent pool.
|
|
75
84
|
* @param options The options parameters.
|
|
76
85
|
*/
|
|
@@ -79,8 +88,8 @@ class AgentPoolsImpl {
|
|
|
79
88
|
}
|
|
80
89
|
/**
|
|
81
90
|
* Creates an agent pool for a container registry with the specified parameters.
|
|
82
|
-
* @param resourceGroupName The name of the resource group
|
|
83
|
-
* @param registryName The name of the
|
|
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 agentPoolName The name of the agent pool.
|
|
85
94
|
* @param agentPool The parameters of an agent pool that needs to scheduled.
|
|
86
95
|
* @param options The options parameters.
|
|
@@ -127,14 +136,15 @@ class AgentPoolsImpl {
|
|
|
127
136
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
128
137
|
restoreFrom: options?.resumeFrom,
|
|
129
138
|
intervalInMs: options?.updateIntervalInMs,
|
|
139
|
+
resourceLocationConfig: "azure-async-operation",
|
|
130
140
|
});
|
|
131
141
|
await poller.poll();
|
|
132
142
|
return poller;
|
|
133
143
|
}
|
|
134
144
|
/**
|
|
135
145
|
* Creates an agent pool for a container registry with the specified parameters.
|
|
136
|
-
* @param resourceGroupName The name of the resource group
|
|
137
|
-
* @param registryName The name of the
|
|
146
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
147
|
+
* @param registryName The name of the Registry
|
|
138
148
|
* @param agentPoolName The name of the agent pool.
|
|
139
149
|
* @param agentPool The parameters of an agent pool that needs to scheduled.
|
|
140
150
|
* @param options The options parameters.
|
|
@@ -144,13 +154,14 @@ class AgentPoolsImpl {
|
|
|
144
154
|
return poller.pollUntilDone();
|
|
145
155
|
}
|
|
146
156
|
/**
|
|
147
|
-
*
|
|
148
|
-
* @param resourceGroupName The name of the resource group
|
|
149
|
-
* @param registryName The name of the
|
|
157
|
+
* Updates an agent pool with the specified parameters.
|
|
158
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
159
|
+
* @param registryName The name of the Registry
|
|
150
160
|
* @param agentPoolName The name of the agent pool.
|
|
161
|
+
* @param updateParameters The parameters for updating an agent pool.
|
|
151
162
|
* @param options The options parameters.
|
|
152
163
|
*/
|
|
153
|
-
async
|
|
164
|
+
async beginUpdate(resourceGroupName, registryName, agentPoolName, updateParameters, options) {
|
|
154
165
|
const directSendOperation = async (args, spec) => {
|
|
155
166
|
return this.client.sendOperationRequest(args, spec);
|
|
156
167
|
};
|
|
@@ -180,36 +191,43 @@ class AgentPoolsImpl {
|
|
|
180
191
|
};
|
|
181
192
|
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
182
193
|
sendOperationFn,
|
|
183
|
-
args: {
|
|
184
|
-
|
|
194
|
+
args: {
|
|
195
|
+
resourceGroupName,
|
|
196
|
+
registryName,
|
|
197
|
+
agentPoolName,
|
|
198
|
+
updateParameters,
|
|
199
|
+
options,
|
|
200
|
+
},
|
|
201
|
+
spec: updateOperationSpec,
|
|
185
202
|
});
|
|
186
203
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
187
204
|
restoreFrom: options?.resumeFrom,
|
|
188
205
|
intervalInMs: options?.updateIntervalInMs,
|
|
206
|
+
resourceLocationConfig: "azure-async-operation",
|
|
189
207
|
});
|
|
190
208
|
await poller.poll();
|
|
191
209
|
return poller;
|
|
192
210
|
}
|
|
193
211
|
/**
|
|
194
|
-
*
|
|
195
|
-
* @param resourceGroupName The name of the resource group
|
|
196
|
-
* @param registryName The name of the
|
|
212
|
+
* Updates an agent pool with the specified parameters.
|
|
213
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
214
|
+
* @param registryName The name of the Registry
|
|
197
215
|
* @param agentPoolName The name of the agent pool.
|
|
216
|
+
* @param updateParameters The parameters for updating an agent pool.
|
|
198
217
|
* @param options The options parameters.
|
|
199
218
|
*/
|
|
200
|
-
async
|
|
201
|
-
const poller = await this.
|
|
219
|
+
async beginUpdateAndWait(resourceGroupName, registryName, agentPoolName, updateParameters, options) {
|
|
220
|
+
const poller = await this.beginUpdate(resourceGroupName, registryName, agentPoolName, updateParameters, options);
|
|
202
221
|
return poller.pollUntilDone();
|
|
203
222
|
}
|
|
204
223
|
/**
|
|
205
|
-
*
|
|
206
|
-
* @param resourceGroupName The name of the resource group
|
|
207
|
-
* @param registryName The name of the
|
|
224
|
+
* Deletes a specified agent pool resource.
|
|
225
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
226
|
+
* @param registryName The name of the Registry
|
|
208
227
|
* @param agentPoolName The name of the agent pool.
|
|
209
|
-
* @param updateParameters The parameters for updating an agent pool.
|
|
210
228
|
* @param options The options parameters.
|
|
211
229
|
*/
|
|
212
|
-
async
|
|
230
|
+
async beginDelete(resourceGroupName, registryName, agentPoolName, options) {
|
|
213
231
|
const directSendOperation = async (args, spec) => {
|
|
214
232
|
return this.client.sendOperationRequest(args, spec);
|
|
215
233
|
};
|
|
@@ -239,47 +257,32 @@ class AgentPoolsImpl {
|
|
|
239
257
|
};
|
|
240
258
|
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
241
259
|
sendOperationFn,
|
|
242
|
-
args: {
|
|
243
|
-
|
|
244
|
-
registryName,
|
|
245
|
-
agentPoolName,
|
|
246
|
-
updateParameters,
|
|
247
|
-
options,
|
|
248
|
-
},
|
|
249
|
-
spec: updateOperationSpec,
|
|
260
|
+
args: { resourceGroupName, registryName, agentPoolName, options },
|
|
261
|
+
spec: deleteOperationSpec,
|
|
250
262
|
});
|
|
251
263
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
252
264
|
restoreFrom: options?.resumeFrom,
|
|
253
265
|
intervalInMs: options?.updateIntervalInMs,
|
|
266
|
+
resourceLocationConfig: "location",
|
|
254
267
|
});
|
|
255
268
|
await poller.poll();
|
|
256
269
|
return poller;
|
|
257
270
|
}
|
|
258
271
|
/**
|
|
259
|
-
*
|
|
260
|
-
* @param resourceGroupName The name of the resource group
|
|
261
|
-
* @param registryName The name of the
|
|
272
|
+
* Deletes a specified agent pool resource.
|
|
273
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
274
|
+
* @param registryName The name of the Registry
|
|
262
275
|
* @param agentPoolName The name of the agent pool.
|
|
263
|
-
* @param updateParameters The parameters for updating an agent pool.
|
|
264
276
|
* @param options The options parameters.
|
|
265
277
|
*/
|
|
266
|
-
async
|
|
267
|
-
const poller = await this.
|
|
278
|
+
async beginDeleteAndWait(resourceGroupName, registryName, agentPoolName, options) {
|
|
279
|
+
const poller = await this.beginDelete(resourceGroupName, registryName, agentPoolName, options);
|
|
268
280
|
return poller.pollUntilDone();
|
|
269
281
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Lists all the agent pools 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.
|
|
274
|
-
* @param options The options parameters.
|
|
275
|
-
*/
|
|
276
|
-
_list(resourceGroupName, registryName, options) {
|
|
277
|
-
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listOperationSpec);
|
|
278
|
-
}
|
|
279
282
|
/**
|
|
280
283
|
* Gets the count of queued runs for a given agent pool.
|
|
281
|
-
* @param resourceGroupName The name of the resource group
|
|
282
|
-
* @param registryName The name of the
|
|
284
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
285
|
+
* @param registryName The name of the Registry
|
|
283
286
|
* @param agentPoolName The name of the agent pool.
|
|
284
287
|
* @param options The options parameters.
|
|
285
288
|
*/
|
|
@@ -288,8 +291,8 @@ class AgentPoolsImpl {
|
|
|
288
291
|
}
|
|
289
292
|
/**
|
|
290
293
|
* ListNext
|
|
291
|
-
* @param resourceGroupName The name of the resource group
|
|
292
|
-
* @param registryName The name of the
|
|
294
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
295
|
+
* @param registryName The name of the Registry
|
|
293
296
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
294
297
|
* @param options The options parameters.
|
|
295
298
|
*/
|
|
@@ -300,6 +303,27 @@ class AgentPoolsImpl {
|
|
|
300
303
|
exports.AgentPoolsImpl = AgentPoolsImpl;
|
|
301
304
|
// Operation Specifications
|
|
302
305
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
306
|
+
const listOperationSpec = {
|
|
307
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools",
|
|
308
|
+
httpMethod: "GET",
|
|
309
|
+
responses: {
|
|
310
|
+
200: {
|
|
311
|
+
bodyMapper: Mappers.AgentPoolListResult,
|
|
312
|
+
},
|
|
313
|
+
default: {
|
|
314
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
queryParameters: [Parameters.apiVersion1],
|
|
318
|
+
urlParameters: [
|
|
319
|
+
Parameters.$host,
|
|
320
|
+
Parameters.subscriptionId,
|
|
321
|
+
Parameters.resourceGroupName,
|
|
322
|
+
Parameters.registryName,
|
|
323
|
+
],
|
|
324
|
+
headerParameters: [Parameters.accept],
|
|
325
|
+
serializer,
|
|
326
|
+
};
|
|
303
327
|
const getOperationSpec = {
|
|
304
328
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
305
329
|
httpMethod: "GET",
|
|
@@ -308,15 +332,15 @@ const getOperationSpec = {
|
|
|
308
332
|
bodyMapper: Mappers.AgentPool,
|
|
309
333
|
},
|
|
310
334
|
default: {
|
|
311
|
-
bodyMapper: Mappers.
|
|
335
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
312
336
|
},
|
|
313
337
|
},
|
|
314
338
|
queryParameters: [Parameters.apiVersion1],
|
|
315
339
|
urlParameters: [
|
|
316
340
|
Parameters.$host,
|
|
317
341
|
Parameters.subscriptionId,
|
|
342
|
+
Parameters.resourceGroupName,
|
|
318
343
|
Parameters.registryName,
|
|
319
|
-
Parameters.resourceGroupName1,
|
|
320
344
|
Parameters.agentPoolName,
|
|
321
345
|
],
|
|
322
346
|
headerParameters: [Parameters.accept],
|
|
@@ -339,7 +363,7 @@ const createOperationSpec = {
|
|
|
339
363
|
bodyMapper: Mappers.AgentPool,
|
|
340
364
|
},
|
|
341
365
|
default: {
|
|
342
|
-
bodyMapper: Mappers.
|
|
366
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
343
367
|
},
|
|
344
368
|
},
|
|
345
369
|
requestBody: Parameters.agentPool,
|
|
@@ -347,37 +371,14 @@ const createOperationSpec = {
|
|
|
347
371
|
urlParameters: [
|
|
348
372
|
Parameters.$host,
|
|
349
373
|
Parameters.subscriptionId,
|
|
374
|
+
Parameters.resourceGroupName,
|
|
350
375
|
Parameters.registryName,
|
|
351
|
-
Parameters.resourceGroupName1,
|
|
352
376
|
Parameters.agentPoolName,
|
|
353
377
|
],
|
|
354
378
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
355
379
|
mediaType: "json",
|
|
356
380
|
serializer,
|
|
357
381
|
};
|
|
358
|
-
const deleteOperationSpec = {
|
|
359
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
360
|
-
httpMethod: "DELETE",
|
|
361
|
-
responses: {
|
|
362
|
-
200: {},
|
|
363
|
-
201: {},
|
|
364
|
-
202: {},
|
|
365
|
-
204: {},
|
|
366
|
-
default: {
|
|
367
|
-
bodyMapper: Mappers.ErrorResponseForContainerRegistry,
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
queryParameters: [Parameters.apiVersion1],
|
|
371
|
-
urlParameters: [
|
|
372
|
-
Parameters.$host,
|
|
373
|
-
Parameters.subscriptionId,
|
|
374
|
-
Parameters.registryName,
|
|
375
|
-
Parameters.resourceGroupName1,
|
|
376
|
-
Parameters.agentPoolName,
|
|
377
|
-
],
|
|
378
|
-
headerParameters: [Parameters.accept],
|
|
379
|
-
serializer,
|
|
380
|
-
};
|
|
381
382
|
const updateOperationSpec = {
|
|
382
383
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
383
384
|
httpMethod: "PATCH",
|
|
@@ -395,7 +396,7 @@ const updateOperationSpec = {
|
|
|
395
396
|
bodyMapper: Mappers.AgentPool,
|
|
396
397
|
},
|
|
397
398
|
default: {
|
|
398
|
-
bodyMapper: Mappers.
|
|
399
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
399
400
|
},
|
|
400
401
|
},
|
|
401
402
|
requestBody: Parameters.updateParameters,
|
|
@@ -403,31 +404,41 @@ const updateOperationSpec = {
|
|
|
403
404
|
urlParameters: [
|
|
404
405
|
Parameters.$host,
|
|
405
406
|
Parameters.subscriptionId,
|
|
407
|
+
Parameters.resourceGroupName,
|
|
406
408
|
Parameters.registryName,
|
|
407
|
-
Parameters.resourceGroupName1,
|
|
408
409
|
Parameters.agentPoolName,
|
|
409
410
|
],
|
|
410
411
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
411
412
|
mediaType: "json",
|
|
412
413
|
serializer,
|
|
413
414
|
};
|
|
414
|
-
const
|
|
415
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools",
|
|
416
|
-
httpMethod: "
|
|
415
|
+
const deleteOperationSpec = {
|
|
416
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
417
|
+
httpMethod: "DELETE",
|
|
417
418
|
responses: {
|
|
418
419
|
200: {
|
|
419
|
-
|
|
420
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
421
|
+
},
|
|
422
|
+
201: {
|
|
423
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
424
|
+
},
|
|
425
|
+
202: {
|
|
426
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
427
|
+
},
|
|
428
|
+
204: {
|
|
429
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
420
430
|
},
|
|
421
431
|
default: {
|
|
422
|
-
bodyMapper: Mappers.
|
|
432
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
423
433
|
},
|
|
424
434
|
},
|
|
425
435
|
queryParameters: [Parameters.apiVersion1],
|
|
426
436
|
urlParameters: [
|
|
427
437
|
Parameters.$host,
|
|
428
438
|
Parameters.subscriptionId,
|
|
439
|
+
Parameters.resourceGroupName,
|
|
429
440
|
Parameters.registryName,
|
|
430
|
-
Parameters.
|
|
441
|
+
Parameters.agentPoolName,
|
|
431
442
|
],
|
|
432
443
|
headerParameters: [Parameters.accept],
|
|
433
444
|
serializer,
|
|
@@ -440,15 +451,15 @@ const getQueueStatusOperationSpec = {
|
|
|
440
451
|
bodyMapper: Mappers.AgentPoolQueueStatus,
|
|
441
452
|
},
|
|
442
453
|
default: {
|
|
443
|
-
bodyMapper: Mappers.
|
|
454
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
444
455
|
},
|
|
445
456
|
},
|
|
446
457
|
queryParameters: [Parameters.apiVersion1],
|
|
447
458
|
urlParameters: [
|
|
448
459
|
Parameters.$host,
|
|
449
460
|
Parameters.subscriptionId,
|
|
461
|
+
Parameters.resourceGroupName,
|
|
450
462
|
Parameters.registryName,
|
|
451
|
-
Parameters.resourceGroupName1,
|
|
452
463
|
Parameters.agentPoolName,
|
|
453
464
|
],
|
|
454
465
|
headerParameters: [Parameters.accept],
|
|
@@ -462,15 +473,15 @@ const listNextOperationSpec = {
|
|
|
462
473
|
bodyMapper: Mappers.AgentPoolListResult,
|
|
463
474
|
},
|
|
464
475
|
default: {
|
|
465
|
-
bodyMapper: Mappers.
|
|
476
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
466
477
|
},
|
|
467
478
|
},
|
|
468
479
|
urlParameters: [
|
|
469
480
|
Parameters.$host,
|
|
470
481
|
Parameters.nextLink,
|
|
471
482
|
Parameters.subscriptionId,
|
|
483
|
+
Parameters.resourceGroupName,
|
|
472
484
|
Parameters.registryName,
|
|
473
|
-
Parameters.resourceGroupName1,
|
|
474
485
|
],
|
|
475
486
|
headerParameters: [Parameters.accept],
|
|
476
487
|
serializer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAmB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,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,OAAsC;QAEtC,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,EAA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U,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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 { AgentPools } 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 AgentPool,\n AgentPoolsListNextOptionalParams,\n AgentPoolsListOptionalParams,\n AgentPoolsListResponse,\n AgentPoolsGetOptionalParams,\n AgentPoolsGetResponse,\n AgentPoolsCreateOptionalParams,\n AgentPoolsCreateResponse,\n AgentPoolsDeleteOptionalParams,\n AgentPoolUpdateParameters,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsUpdateResponse,\n AgentPoolsGetQueueStatusOptionalParams,\n AgentPoolsGetQueueStatusResponse,\n AgentPoolsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AgentPools operations. */\nexport class AgentPoolsImpl implements AgentPools {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class AgentPools 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 agent pools 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?: AgentPoolsListOptionalParams,\n ): PagedAsyncIterableIterator<AgentPool> {\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?: AgentPoolsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AgentPool[]> {\n let result: AgentPoolsListResponse;\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?: AgentPoolsListOptionalParams,\n ): AsyncIterableIterator<AgentPool> {\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 agent pool.\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 agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetOptionalParams,\n ): Promise<AgentPoolsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates an agent pool 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 agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AgentPoolsCreateResponse>, AgentPoolsCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsCreateResponse> => {\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 agentPoolName,\n agentPool,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsCreateResponse,\n OperationState<AgentPoolsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates an agent pool 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 agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<AgentPoolsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n agentPoolName,\n agentPool,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified agent pool 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 agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\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, agentPoolName, 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 agent pool 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 agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, registryName, agentPoolName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an agent pool 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 agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AgentPoolsUpdateResponse>, AgentPoolsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsUpdateResponse> => {\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 agentPoolName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsUpdateResponse,\n OperationState<AgentPoolsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates an agent pool 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 agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<AgentPoolsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n agentPoolName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists all the agent pools 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?: AgentPoolsListOptionalParams,\n ): Promise<AgentPoolsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the count of queued runs for a given agent pool.\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 agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n getQueueStatus(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetQueueStatusOptionalParams,\n ): Promise<AgentPoolsGetQueueStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getQueueStatusOperationSpec,\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?: AgentPoolsListNextOptionalParams,\n ): Promise<AgentPoolsListNextResponse> {\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}/agentPools/{agentPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\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.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n requestBody: Parameters.agentPool,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\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}/agentPools/{agentPoolName}\",\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.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseForContainerRegistry,\n },\n },\n requestBody: Parameters.updateParameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.registryName,\n Parameters.resourceGroupName1,\n Parameters.agentPoolName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolListResult,\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 getQueueStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolQueueStatus,\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.agentPoolName,\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.AgentPoolListResult,\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":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAoB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB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AC5D,IAAI,EAAE,+KAA+K;IACrL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;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,aAAa;KACzB;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,mBAAmB;SACxC;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 { AgentPools } 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 AgentPool,\n AgentPoolsListNextOptionalParams,\n AgentPoolsListOptionalParams,\n AgentPoolsListResponse,\n AgentPoolsGetOptionalParams,\n AgentPoolsGetResponse,\n AgentPoolsCreateOptionalParams,\n AgentPoolsCreateResponse,\n AgentPoolUpdateParameters,\n AgentPoolsUpdateOptionalParams,\n AgentPoolsUpdateResponse,\n AgentPoolsDeleteOptionalParams,\n AgentPoolsDeleteResponse,\n AgentPoolsGetQueueStatusOptionalParams,\n AgentPoolsGetQueueStatusResponse,\n AgentPoolsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AgentPools operations. */\nexport class AgentPoolsImpl implements AgentPools {\n private readonly client: ContainerRegistryManagementClient;\n\n /**\n * Initialize a new instance of the class AgentPools 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 agent pools 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?: AgentPoolsListOptionalParams,\n ): PagedAsyncIterableIterator<AgentPool> {\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?: AgentPoolsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AgentPool[]> {\n let result: AgentPoolsListResponse;\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?: AgentPoolsListOptionalParams,\n ): AsyncIterableIterator<AgentPool> {\n for await (const page of this.listPagingPage(resourceGroupName, registryName, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the agent pools 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?: AgentPoolsListOptionalParams,\n ): Promise<AgentPoolsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the detailed information for a given agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetOptionalParams,\n ): Promise<AgentPoolsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates an agent pool 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 agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AgentPoolsCreateResponse>, AgentPoolsCreateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsCreateResponse> => {\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 agentPoolName,\n agentPool,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsCreateResponse,\n OperationState<AgentPoolsCreateResponse>\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 an agent pool 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 agentPoolName The name of the agent pool.\n * @param agentPool The parameters of an agent pool that needs to scheduled.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n agentPool: AgentPool,\n options?: AgentPoolsCreateOptionalParams,\n ): Promise<AgentPoolsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n registryName,\n agentPoolName,\n agentPool,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Updates an agent pool 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 agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AgentPoolsUpdateResponse>, AgentPoolsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsUpdateResponse> => {\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 agentPoolName,\n updateParameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsUpdateResponse,\n OperationState<AgentPoolsUpdateResponse>\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 an agent pool 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 agentPoolName The name of the agent pool.\n * @param updateParameters The parameters for updating an agent pool.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n updateParameters: AgentPoolUpdateParameters,\n options?: AgentPoolsUpdateOptionalParams,\n ): Promise<AgentPoolsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n registryName,\n agentPoolName,\n updateParameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a specified agent pool 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 agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<AgentPoolsDeleteResponse>, AgentPoolsDeleteResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<AgentPoolsDeleteResponse> => {\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, agentPoolName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n AgentPoolsDeleteResponse,\n OperationState<AgentPoolsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a specified agent pool 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 agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsDeleteOptionalParams,\n ): Promise<AgentPoolsDeleteResponse> {\n const poller = await this.beginDelete(resourceGroupName, registryName, agentPoolName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the count of queued runs for a given agent pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param registryName The name of the Registry\n * @param agentPoolName The name of the agent pool.\n * @param options The options parameters.\n */\n getQueueStatus(\n resourceGroupName: string,\n registryName: string,\n agentPoolName: string,\n options?: AgentPoolsGetQueueStatusOptionalParams,\n ): Promise<AgentPoolsGetQueueStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, registryName, agentPoolName, options },\n getQueueStatusOperationSpec,\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?: AgentPoolsListNextOptionalParams,\n ): Promise<AgentPoolsListNextResponse> {\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}/agentPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolListResult,\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}/agentPools/{agentPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\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.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.agentPool,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.agentPoolName,\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}/agentPools/{agentPoolName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPool,\n },\n 201: {\n bodyMapper: Mappers.AgentPool,\n },\n 202: {\n bodyMapper: Mappers.AgentPool,\n },\n 204: {\n bodyMapper: Mappers.AgentPool,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.updateParameters,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.registryName,\n Parameters.agentPoolName,\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}/agentPools/{agentPoolName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.AgentPoolsDeleteHeaders,\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.agentPoolName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getQueueStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AgentPoolQueueStatus,\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.agentPoolName,\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.AgentPoolListResult,\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"]}
|
|
@@ -2,7 +2,7 @@ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
|
2
2
|
import type { Registries } from "../operationsInterfaces/index.js";
|
|
3
3
|
import type { ContainerRegistryManagementClient } from "../containerRegistryManagementClient.js";
|
|
4
4
|
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
-
import type { Registry, RegistriesListOptionalParams, RegistriesListByResourceGroupOptionalParams, PrivateLinkResource, RegistriesListPrivateLinkResourcesOptionalParams, RegistryNameCheckRequest, RegistriesCheckNameAvailabilityOptionalParams, RegistriesCheckNameAvailabilityResponse, RegistriesGetOptionalParams, RegistriesGetResponse, RegistriesCreateOptionalParams, RegistriesCreateResponse, RegistryUpdateParameters, RegistriesUpdateOptionalParams, RegistriesUpdateResponse, RegistriesDeleteOptionalParams, GenerateCredentialsParameters, RegistriesGenerateCredentialsOptionalParams, RegistriesGenerateCredentialsResponse, ImportImageParameters, RegistriesImportImageOptionalParams, RegistriesListCredentialsOptionalParams, RegistriesListCredentialsResponse, RegistriesListUsagesOptionalParams, RegistriesListUsagesResponse, RegistriesGetPrivateLinkResourceOptionalParams, RegistriesGetPrivateLinkResourceResponse, RegenerateCredentialParameters, RegistriesRegenerateCredentialOptionalParams, RegistriesRegenerateCredentialResponse,
|
|
5
|
+
import type { Registry, RegistriesListOptionalParams, RegistriesListByResourceGroupOptionalParams, PrivateLinkResource, RegistriesListPrivateLinkResourcesOptionalParams, RegistryNameCheckRequest, RegistriesCheckNameAvailabilityOptionalParams, RegistriesCheckNameAvailabilityResponse, RegistriesGetOptionalParams, RegistriesGetResponse, RegistriesCreateOptionalParams, RegistriesCreateResponse, RegistryUpdateParameters, RegistriesUpdateOptionalParams, RegistriesUpdateResponse, RegistriesDeleteOptionalParams, GenerateCredentialsParameters, RegistriesGenerateCredentialsOptionalParams, RegistriesGenerateCredentialsResponse, ImportImageParameters, RegistriesImportImageOptionalParams, RegistriesListCredentialsOptionalParams, RegistriesListCredentialsResponse, RegistriesListUsagesOptionalParams, RegistriesListUsagesResponse, RegistriesGetPrivateLinkResourceOptionalParams, RegistriesGetPrivateLinkResourceResponse, RegenerateCredentialParameters, RegistriesRegenerateCredentialOptionalParams, RegistriesRegenerateCredentialResponse, RegistriesGetBuildSourceUploadUrlOptionalParams, RegistriesGetBuildSourceUploadUrlResponse, RunRequestUnion, RegistriesScheduleRunOptionalParams, RegistriesScheduleRunResponse } from "../models/index.js";
|
|
6
6
|
/** Class containing Registries operations. */
|
|
7
7
|
export declare class RegistriesImpl implements Registries {
|
|
8
8
|
private readonly client;
|
|
@@ -177,28 +177,20 @@ export declare class RegistriesImpl implements Registries {
|
|
|
177
177
|
*/
|
|
178
178
|
regenerateCredential(resourceGroupName: string, registryName: string, regenerateCredentialParameters: RegenerateCredentialParameters, options?: RegistriesRegenerateCredentialOptionalParams): Promise<RegistriesRegenerateCredentialResponse>;
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
181
|
-
* @param resourceGroupName The name of the resource group
|
|
180
|
+
* Get the upload location for the user to be able to upload the source.
|
|
181
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
182
182
|
* @param registryName The name of the container registry.
|
|
183
|
-
* @param runRequest The parameters of a run that needs to scheduled.
|
|
184
183
|
* @param options The options parameters.
|
|
185
184
|
*/
|
|
186
|
-
|
|
185
|
+
getBuildSourceUploadUrl(resourceGroupName: string, registryName: string, options?: RegistriesGetBuildSourceUploadUrlOptionalParams): Promise<RegistriesGetBuildSourceUploadUrlResponse>;
|
|
187
186
|
/**
|
|
188
187
|
* Schedules a new run based on the request parameters and add it to the run queue.
|
|
189
|
-
* @param resourceGroupName The name of the resource group
|
|
190
|
-
* @param registryName The name of the container registry.
|
|
191
|
-
* @param runRequest The parameters of a run that needs to scheduled.
|
|
192
|
-
* @param options The options parameters.
|
|
193
|
-
*/
|
|
194
|
-
beginScheduleRunAndWait(resourceGroupName: string, registryName: string, runRequest: RunRequestUnion, options?: RegistriesScheduleRunOptionalParams): Promise<RegistriesScheduleRunResponse>;
|
|
195
|
-
/**
|
|
196
|
-
* Get the upload location for the user to be able to upload the source.
|
|
197
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
188
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
198
189
|
* @param registryName The name of the container registry.
|
|
190
|
+
* @param runRequest The request body
|
|
199
191
|
* @param options The options parameters.
|
|
200
192
|
*/
|
|
201
|
-
|
|
193
|
+
scheduleRun(resourceGroupName: string, registryName: string, runRequest: RunRequestUnion, options?: RegistriesScheduleRunOptionalParams): Promise<RegistriesScheduleRunResponse>;
|
|
202
194
|
/**
|
|
203
195
|
* ListNext
|
|
204
196
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../../src/operations/registries.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGxE,OAAO,KAAK,EACV,QAAQ,EAER,4BAA4B,EAG5B,2CAA2C,EAE3C,mBAAmB,EAEnB,gDAAgD,EAEhD,wBAAwB,EACxB,6CAA6C,EAC7C,uCAAuC,EACvC,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,2CAA2C,EAC3C,qCAAqC,EACrC,qBAAqB,EACrB,mCAAmC,EACnC,uCAAuC,EACvC,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,8CAA8C,EAC9C,wCAAwC,EACxC,8BAA8B,EAC9B,4CAA4C,EAC5C,sCAAsC,EACtC,eAAe,EACf,mCAAmC,EACnC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../../src/operations/registries.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGxE,OAAO,KAAK,EACV,QAAQ,EAER,4BAA4B,EAG5B,2CAA2C,EAE3C,mBAAmB,EAEnB,gDAAgD,EAEhD,wBAAwB,EACxB,6CAA6C,EAC7C,uCAAuC,EACvC,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,2CAA2C,EAC3C,qCAAqC,EACrC,qBAAqB,EACrB,mCAAmC,EACnC,uCAAuC,EACvC,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,8CAA8C,EAC9C,wCAAwC,EACxC,8BAA8B,EAC9B,4CAA4C,EAC5C,s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