@azure/arm-containerregistry 11.0.0 → 12.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +17 -17
|
@@ -19,8 +19,8 @@ export class AgentPoolsImpl {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Lists all the agent pools for a specified container registry.
|
|
22
|
-
* @param resourceGroupName The name of the resource group
|
|
23
|
-
* @param registryName The name of the
|
|
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 AgentPoolsImpl {
|
|
|
63
63
|
yield* page;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Lists all the agent pools 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 agent pool.
|
|
68
|
-
* @param resourceGroupName The name of the resource group
|
|
69
|
-
* @param registryName The name of the
|
|
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 agentPoolName The name of the agent pool.
|
|
71
80
|
* @param options The options parameters.
|
|
72
81
|
*/
|
|
@@ -75,8 +84,8 @@ export class AgentPoolsImpl {
|
|
|
75
84
|
}
|
|
76
85
|
/**
|
|
77
86
|
* Creates an agent pool for a container registry with the specified parameters.
|
|
78
|
-
* @param resourceGroupName The name of the resource group
|
|
79
|
-
* @param registryName The name of the
|
|
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 agentPoolName The name of the agent pool.
|
|
81
90
|
* @param agentPool The parameters of an agent pool that needs to scheduled.
|
|
82
91
|
* @param options The options parameters.
|
|
@@ -123,14 +132,15 @@ export class AgentPoolsImpl {
|
|
|
123
132
|
const poller = await createHttpPoller(lro, {
|
|
124
133
|
restoreFrom: options?.resumeFrom,
|
|
125
134
|
intervalInMs: options?.updateIntervalInMs,
|
|
135
|
+
resourceLocationConfig: "azure-async-operation",
|
|
126
136
|
});
|
|
127
137
|
await poller.poll();
|
|
128
138
|
return poller;
|
|
129
139
|
}
|
|
130
140
|
/**
|
|
131
141
|
* Creates an agent pool for a container registry with the specified parameters.
|
|
132
|
-
* @param resourceGroupName The name of the resource group
|
|
133
|
-
* @param registryName The name of the
|
|
142
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
143
|
+
* @param registryName The name of the Registry
|
|
134
144
|
* @param agentPoolName The name of the agent pool.
|
|
135
145
|
* @param agentPool The parameters of an agent pool that needs to scheduled.
|
|
136
146
|
* @param options The options parameters.
|
|
@@ -140,13 +150,14 @@ export class AgentPoolsImpl {
|
|
|
140
150
|
return poller.pollUntilDone();
|
|
141
151
|
}
|
|
142
152
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @param resourceGroupName The name of the resource group
|
|
145
|
-
* @param registryName The name of the
|
|
153
|
+
* Updates an agent pool with the specified parameters.
|
|
154
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
155
|
+
* @param registryName The name of the Registry
|
|
146
156
|
* @param agentPoolName The name of the agent pool.
|
|
157
|
+
* @param updateParameters The parameters for updating an agent pool.
|
|
147
158
|
* @param options The options parameters.
|
|
148
159
|
*/
|
|
149
|
-
async
|
|
160
|
+
async beginUpdate(resourceGroupName, registryName, agentPoolName, updateParameters, options) {
|
|
150
161
|
const directSendOperation = async (args, spec) => {
|
|
151
162
|
return this.client.sendOperationRequest(args, spec);
|
|
152
163
|
};
|
|
@@ -176,36 +187,43 @@ export class AgentPoolsImpl {
|
|
|
176
187
|
};
|
|
177
188
|
const lro = createLroSpec({
|
|
178
189
|
sendOperationFn,
|
|
179
|
-
args: {
|
|
180
|
-
|
|
190
|
+
args: {
|
|
191
|
+
resourceGroupName,
|
|
192
|
+
registryName,
|
|
193
|
+
agentPoolName,
|
|
194
|
+
updateParameters,
|
|
195
|
+
options,
|
|
196
|
+
},
|
|
197
|
+
spec: updateOperationSpec,
|
|
181
198
|
});
|
|
182
199
|
const poller = await createHttpPoller(lro, {
|
|
183
200
|
restoreFrom: options?.resumeFrom,
|
|
184
201
|
intervalInMs: options?.updateIntervalInMs,
|
|
202
|
+
resourceLocationConfig: "azure-async-operation",
|
|
185
203
|
});
|
|
186
204
|
await poller.poll();
|
|
187
205
|
return poller;
|
|
188
206
|
}
|
|
189
207
|
/**
|
|
190
|
-
*
|
|
191
|
-
* @param resourceGroupName The name of the resource group
|
|
192
|
-
* @param registryName The name of the
|
|
208
|
+
* Updates an agent pool with the specified parameters.
|
|
209
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
210
|
+
* @param registryName The name of the Registry
|
|
193
211
|
* @param agentPoolName The name of the agent pool.
|
|
212
|
+
* @param updateParameters The parameters for updating an agent pool.
|
|
194
213
|
* @param options The options parameters.
|
|
195
214
|
*/
|
|
196
|
-
async
|
|
197
|
-
const poller = await this.
|
|
215
|
+
async beginUpdateAndWait(resourceGroupName, registryName, agentPoolName, updateParameters, options) {
|
|
216
|
+
const poller = await this.beginUpdate(resourceGroupName, registryName, agentPoolName, updateParameters, options);
|
|
198
217
|
return poller.pollUntilDone();
|
|
199
218
|
}
|
|
200
219
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @param resourceGroupName The name of the resource group
|
|
203
|
-
* @param registryName The name of the
|
|
220
|
+
* Deletes a specified agent pool resource.
|
|
221
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
222
|
+
* @param registryName The name of the Registry
|
|
204
223
|
* @param agentPoolName The name of the agent pool.
|
|
205
|
-
* @param updateParameters The parameters for updating an agent pool.
|
|
206
224
|
* @param options The options parameters.
|
|
207
225
|
*/
|
|
208
|
-
async
|
|
226
|
+
async beginDelete(resourceGroupName, registryName, agentPoolName, options) {
|
|
209
227
|
const directSendOperation = async (args, spec) => {
|
|
210
228
|
return this.client.sendOperationRequest(args, spec);
|
|
211
229
|
};
|
|
@@ -235,47 +253,32 @@ export class AgentPoolsImpl {
|
|
|
235
253
|
};
|
|
236
254
|
const lro = createLroSpec({
|
|
237
255
|
sendOperationFn,
|
|
238
|
-
args: {
|
|
239
|
-
|
|
240
|
-
registryName,
|
|
241
|
-
agentPoolName,
|
|
242
|
-
updateParameters,
|
|
243
|
-
options,
|
|
244
|
-
},
|
|
245
|
-
spec: updateOperationSpec,
|
|
256
|
+
args: { resourceGroupName, registryName, agentPoolName, options },
|
|
257
|
+
spec: deleteOperationSpec,
|
|
246
258
|
});
|
|
247
259
|
const poller = await createHttpPoller(lro, {
|
|
248
260
|
restoreFrom: options?.resumeFrom,
|
|
249
261
|
intervalInMs: options?.updateIntervalInMs,
|
|
262
|
+
resourceLocationConfig: "location",
|
|
250
263
|
});
|
|
251
264
|
await poller.poll();
|
|
252
265
|
return poller;
|
|
253
266
|
}
|
|
254
267
|
/**
|
|
255
|
-
*
|
|
256
|
-
* @param resourceGroupName The name of the resource group
|
|
257
|
-
* @param registryName The name of the
|
|
268
|
+
* Deletes a specified agent pool resource.
|
|
269
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
270
|
+
* @param registryName The name of the Registry
|
|
258
271
|
* @param agentPoolName The name of the agent pool.
|
|
259
|
-
* @param updateParameters The parameters for updating an agent pool.
|
|
260
272
|
* @param options The options parameters.
|
|
261
273
|
*/
|
|
262
|
-
async
|
|
263
|
-
const poller = await this.
|
|
274
|
+
async beginDeleteAndWait(resourceGroupName, registryName, agentPoolName, options) {
|
|
275
|
+
const poller = await this.beginDelete(resourceGroupName, registryName, agentPoolName, options);
|
|
264
276
|
return poller.pollUntilDone();
|
|
265
277
|
}
|
|
266
|
-
/**
|
|
267
|
-
* Lists all the agent pools for a specified container registry.
|
|
268
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
269
|
-
* @param registryName The name of the container registry.
|
|
270
|
-
* @param options The options parameters.
|
|
271
|
-
*/
|
|
272
|
-
_list(resourceGroupName, registryName, options) {
|
|
273
|
-
return this.client.sendOperationRequest({ resourceGroupName, registryName, options }, listOperationSpec);
|
|
274
|
-
}
|
|
275
278
|
/**
|
|
276
279
|
* Gets the count of queued runs for a given agent pool.
|
|
277
|
-
* @param resourceGroupName The name of the resource group
|
|
278
|
-
* @param registryName The name of the
|
|
280
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
281
|
+
* @param registryName The name of the Registry
|
|
279
282
|
* @param agentPoolName The name of the agent pool.
|
|
280
283
|
* @param options The options parameters.
|
|
281
284
|
*/
|
|
@@ -284,8 +287,8 @@ export class AgentPoolsImpl {
|
|
|
284
287
|
}
|
|
285
288
|
/**
|
|
286
289
|
* ListNext
|
|
287
|
-
* @param resourceGroupName The name of the resource group
|
|
288
|
-
* @param registryName The name of the
|
|
290
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
291
|
+
* @param registryName The name of the Registry
|
|
289
292
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
290
293
|
* @param options The options parameters.
|
|
291
294
|
*/
|
|
@@ -295,6 +298,27 @@ export class AgentPoolsImpl {
|
|
|
295
298
|
}
|
|
296
299
|
// Operation Specifications
|
|
297
300
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
301
|
+
const listOperationSpec = {
|
|
302
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools",
|
|
303
|
+
httpMethod: "GET",
|
|
304
|
+
responses: {
|
|
305
|
+
200: {
|
|
306
|
+
bodyMapper: Mappers.AgentPoolListResult,
|
|
307
|
+
},
|
|
308
|
+
default: {
|
|
309
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
queryParameters: [Parameters.apiVersion1],
|
|
313
|
+
urlParameters: [
|
|
314
|
+
Parameters.$host,
|
|
315
|
+
Parameters.subscriptionId,
|
|
316
|
+
Parameters.resourceGroupName,
|
|
317
|
+
Parameters.registryName,
|
|
318
|
+
],
|
|
319
|
+
headerParameters: [Parameters.accept],
|
|
320
|
+
serializer,
|
|
321
|
+
};
|
|
298
322
|
const getOperationSpec = {
|
|
299
323
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
300
324
|
httpMethod: "GET",
|
|
@@ -303,15 +327,15 @@ const getOperationSpec = {
|
|
|
303
327
|
bodyMapper: Mappers.AgentPool,
|
|
304
328
|
},
|
|
305
329
|
default: {
|
|
306
|
-
bodyMapper: Mappers.
|
|
330
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
307
331
|
},
|
|
308
332
|
},
|
|
309
333
|
queryParameters: [Parameters.apiVersion1],
|
|
310
334
|
urlParameters: [
|
|
311
335
|
Parameters.$host,
|
|
312
336
|
Parameters.subscriptionId,
|
|
337
|
+
Parameters.resourceGroupName,
|
|
313
338
|
Parameters.registryName,
|
|
314
|
-
Parameters.resourceGroupName1,
|
|
315
339
|
Parameters.agentPoolName,
|
|
316
340
|
],
|
|
317
341
|
headerParameters: [Parameters.accept],
|
|
@@ -334,7 +358,7 @@ const createOperationSpec = {
|
|
|
334
358
|
bodyMapper: Mappers.AgentPool,
|
|
335
359
|
},
|
|
336
360
|
default: {
|
|
337
|
-
bodyMapper: Mappers.
|
|
361
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
338
362
|
},
|
|
339
363
|
},
|
|
340
364
|
requestBody: Parameters.agentPool,
|
|
@@ -342,37 +366,14 @@ const createOperationSpec = {
|
|
|
342
366
|
urlParameters: [
|
|
343
367
|
Parameters.$host,
|
|
344
368
|
Parameters.subscriptionId,
|
|
369
|
+
Parameters.resourceGroupName,
|
|
345
370
|
Parameters.registryName,
|
|
346
|
-
Parameters.resourceGroupName1,
|
|
347
371
|
Parameters.agentPoolName,
|
|
348
372
|
],
|
|
349
373
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
350
374
|
mediaType: "json",
|
|
351
375
|
serializer,
|
|
352
376
|
};
|
|
353
|
-
const deleteOperationSpec = {
|
|
354
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
355
|
-
httpMethod: "DELETE",
|
|
356
|
-
responses: {
|
|
357
|
-
200: {},
|
|
358
|
-
201: {},
|
|
359
|
-
202: {},
|
|
360
|
-
204: {},
|
|
361
|
-
default: {
|
|
362
|
-
bodyMapper: Mappers.ErrorResponseForContainerRegistry,
|
|
363
|
-
},
|
|
364
|
-
},
|
|
365
|
-
queryParameters: [Parameters.apiVersion1],
|
|
366
|
-
urlParameters: [
|
|
367
|
-
Parameters.$host,
|
|
368
|
-
Parameters.subscriptionId,
|
|
369
|
-
Parameters.registryName,
|
|
370
|
-
Parameters.resourceGroupName1,
|
|
371
|
-
Parameters.agentPoolName,
|
|
372
|
-
],
|
|
373
|
-
headerParameters: [Parameters.accept],
|
|
374
|
-
serializer,
|
|
375
|
-
};
|
|
376
377
|
const updateOperationSpec = {
|
|
377
378
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
378
379
|
httpMethod: "PATCH",
|
|
@@ -390,7 +391,7 @@ const updateOperationSpec = {
|
|
|
390
391
|
bodyMapper: Mappers.AgentPool,
|
|
391
392
|
},
|
|
392
393
|
default: {
|
|
393
|
-
bodyMapper: Mappers.
|
|
394
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
394
395
|
},
|
|
395
396
|
},
|
|
396
397
|
requestBody: Parameters.updateParameters,
|
|
@@ -398,31 +399,41 @@ const updateOperationSpec = {
|
|
|
398
399
|
urlParameters: [
|
|
399
400
|
Parameters.$host,
|
|
400
401
|
Parameters.subscriptionId,
|
|
402
|
+
Parameters.resourceGroupName,
|
|
401
403
|
Parameters.registryName,
|
|
402
|
-
Parameters.resourceGroupName1,
|
|
403
404
|
Parameters.agentPoolName,
|
|
404
405
|
],
|
|
405
406
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
406
407
|
mediaType: "json",
|
|
407
408
|
serializer,
|
|
408
409
|
};
|
|
409
|
-
const
|
|
410
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools",
|
|
411
|
-
httpMethod: "
|
|
410
|
+
const deleteOperationSpec = {
|
|
411
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}",
|
|
412
|
+
httpMethod: "DELETE",
|
|
412
413
|
responses: {
|
|
413
414
|
200: {
|
|
414
|
-
|
|
415
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
416
|
+
},
|
|
417
|
+
201: {
|
|
418
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
419
|
+
},
|
|
420
|
+
202: {
|
|
421
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
422
|
+
},
|
|
423
|
+
204: {
|
|
424
|
+
headersMapper: Mappers.AgentPoolsDeleteHeaders,
|
|
415
425
|
},
|
|
416
426
|
default: {
|
|
417
|
-
bodyMapper: Mappers.
|
|
427
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
418
428
|
},
|
|
419
429
|
},
|
|
420
430
|
queryParameters: [Parameters.apiVersion1],
|
|
421
431
|
urlParameters: [
|
|
422
432
|
Parameters.$host,
|
|
423
433
|
Parameters.subscriptionId,
|
|
434
|
+
Parameters.resourceGroupName,
|
|
424
435
|
Parameters.registryName,
|
|
425
|
-
Parameters.
|
|
436
|
+
Parameters.agentPoolName,
|
|
426
437
|
],
|
|
427
438
|
headerParameters: [Parameters.accept],
|
|
428
439
|
serializer,
|
|
@@ -435,15 +446,15 @@ const getQueueStatusOperationSpec = {
|
|
|
435
446
|
bodyMapper: Mappers.AgentPoolQueueStatus,
|
|
436
447
|
},
|
|
437
448
|
default: {
|
|
438
|
-
bodyMapper: Mappers.
|
|
449
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
439
450
|
},
|
|
440
451
|
},
|
|
441
452
|
queryParameters: [Parameters.apiVersion1],
|
|
442
453
|
urlParameters: [
|
|
443
454
|
Parameters.$host,
|
|
444
455
|
Parameters.subscriptionId,
|
|
456
|
+
Parameters.resourceGroupName,
|
|
445
457
|
Parameters.registryName,
|
|
446
|
-
Parameters.resourceGroupName1,
|
|
447
458
|
Parameters.agentPoolName,
|
|
448
459
|
],
|
|
449
460
|
headerParameters: [Parameters.accept],
|
|
@@ -457,15 +468,15 @@ const listNextOperationSpec = {
|
|
|
457
468
|
bodyMapper: Mappers.AgentPoolListResult,
|
|
458
469
|
},
|
|
459
470
|
default: {
|
|
460
|
-
bodyMapper: Mappers.
|
|
471
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
461
472
|
},
|
|
462
473
|
},
|
|
463
474
|
urlParameters: [
|
|
464
475
|
Parameters.$host,
|
|
465
476
|
Parameters.nextLink,
|
|
466
477
|
Parameters.subscriptionId,
|
|
478
|
+
Parameters.resourceGroupName,
|
|
467
479
|
Parameters.registryName,
|
|
468
|
-
Parameters.resourceGroupName1,
|
|
469
480
|
],
|
|
470
481
|
headerParameters: [Parameters.accept],
|
|
471
482
|
serializer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentPools.js","sourceRoot":"","sources":["../../../src/operations/agentPools.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,8CAA8C;AAC9C,MAAM,OAAO,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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A6B;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,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,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,EA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AAU,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,2BAA2B,GAA6B;IAC5D,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,E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