@alicloud/agentcore20260804 2.4.0 → 2.5.0
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/dist/client.d.ts +144 -24
- package/dist/client.js +335 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +63 -33
- package/dist/models/CreateCustomAgentRequest.js +27 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +193 -41
- package/dist/models/CreateCustomAgentResponseBody.js +59 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateImageCacheRequest.d.ts +122 -0
- package/dist/models/CreateImageCacheRequest.js +96 -0
- package/dist/models/CreateImageCacheRequest.js.map +1 -0
- package/dist/models/CreateImageCacheResponse.d.ts +19 -0
- package/dist/models/CreateImageCacheResponse.js +69 -0
- package/dist/models/CreateImageCacheResponse.js.map +1 -0
- package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
- package/dist/models/CreateImageCacheResponseBody.js +140 -0
- package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
- package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
- package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
- package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
- package/dist/models/DeleteImageCacheRequest.js +60 -0
- package/dist/models/DeleteImageCacheRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
- package/dist/models/DeleteImageCacheResponse.js +69 -0
- package/dist/models/DeleteImageCacheResponse.js.map +1 -0
- package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
- package/dist/models/DeleteImageCacheResponseBody.js +92 -0
- package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +130 -66
- package/dist/models/GetCustomAgentResponseBody.js +31 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetImageCacheRequest.d.ts +33 -0
- package/dist/models/GetImageCacheRequest.js +60 -0
- package/dist/models/GetImageCacheRequest.js.map +1 -0
- package/dist/models/GetImageCacheResponse.d.ts +19 -0
- package/dist/models/GetImageCacheResponse.js +69 -0
- package/dist/models/GetImageCacheResponse.js.map +1 -0
- package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
- package/dist/models/GetImageCacheResponseBody.js +140 -0
- package/dist/models/GetImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
- package/dist/models/ListImageCachesRequest.d.ts +113 -0
- package/dist/models/ListImageCachesRequest.js +80 -0
- package/dist/models/ListImageCachesRequest.js.map +1 -0
- package/dist/models/ListImageCachesResponse.d.ts +19 -0
- package/dist/models/ListImageCachesResponse.js +69 -0
- package/dist/models/ListImageCachesResponse.js.map +1 -0
- package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
- package/dist/models/ListImageCachesResponseBody.js +146 -0
- package/dist/models/ListImageCachesResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheRequest.d.ts +60 -0
- package/dist/models/RetryImageCacheRequest.js +82 -0
- package/dist/models/RetryImageCacheRequest.js.map +1 -0
- package/dist/models/RetryImageCacheResponse.d.ts +19 -0
- package/dist/models/RetryImageCacheResponse.js +69 -0
- package/dist/models/RetryImageCacheResponse.js.map +1 -0
- package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
- package/dist/models/RetryImageCacheResponseBody.js +140 -0
- package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
- package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
- package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentRequest.d.ts +68 -35
- package/dist/models/UpdateCustomAgentRequest.js +27 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +184 -49
- package/dist/models/UpdateCustomAgentResponseBody.js +59 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +35 -0
- package/dist/models/model.js +157 -86
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +371 -24
- package/src/models/CreateCustomAgentRequest.ts +80 -33
- package/src/models/CreateCustomAgentResponseBody.ts +233 -41
- package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/CreateImageCacheRequest.ts +164 -0
- package/src/models/CreateImageCacheResponse.ts +40 -0
- package/src/models/CreateImageCacheResponseBody.ts +337 -0
- package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
- package/src/models/DeleteImageCacheRequest.ts +48 -0
- package/src/models/DeleteImageCacheResponse.ts +40 -0
- package/src/models/DeleteImageCacheResponseBody.ts +140 -0
- package/src/models/GetCustomAgentResponseBody.ts +151 -66
- package/src/models/GetImageCacheRequest.ts +48 -0
- package/src/models/GetImageCacheResponse.ts +40 -0
- package/src/models/GetImageCacheResponseBody.ts +341 -0
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
- package/src/models/ListImageCachesRequest.ts +148 -0
- package/src/models/ListImageCachesResponse.ts +40 -0
- package/src/models/ListImageCachesResponseBody.ts +373 -0
- package/src/models/RetryImageCacheRequest.ts +90 -0
- package/src/models/RetryImageCacheResponse.ts +40 -0
- package/src/models/RetryImageCacheResponseBody.ts +341 -0
- package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
- package/src/models/UpdateCustomAgentRequest.ts +85 -35
- package/src/models/UpdateCustomAgentResponseBody.ts +224 -49
- package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
- package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
- package/src/models/model.ts +35 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetImageCacheResponseBodyDataError extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The secure and non-empty error code for the current creation failure.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ACSCacheBuildFailed
|
|
14
|
+
*/
|
|
15
|
+
code?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The secure and non-empty display message for the creation failure, excluding credentials, internal addresses, or stack traces.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* Image cache creation failed. Please try again
|
|
24
|
+
*/
|
|
25
|
+
message?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
code: 'code',
|
|
29
|
+
message: 'message',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static types(): { [key: string]: any } {
|
|
34
|
+
return {
|
|
35
|
+
code: 'string',
|
|
36
|
+
message: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class GetImageCacheResponseBodyData extends $dara.Model {
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The source ACR Enterprise instance ID.
|
|
53
|
+
*
|
|
54
|
+
* This parameter is required.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* cri-example
|
|
58
|
+
*/
|
|
59
|
+
acrInstanceId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The number of unique agents in the current workspace that have useImageCache set to true and are associated with this logical resource. The value is greater than or equal to 0. This uses the same collection as the imageCacheId filter in ListAllAgents. Disabled agents are not counted, regardless of the number of occupied instances.
|
|
63
|
+
*
|
|
64
|
+
* This parameter is required.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 0
|
|
68
|
+
*/
|
|
69
|
+
agentCount?: number;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The actual cache size in bytes. The known value is greater than or equal to 0. If unknown, the value is null. The compressed size of the source image cannot be used as a substitute.
|
|
73
|
+
*
|
|
74
|
+
* This parameter is required.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* 1073741824
|
|
78
|
+
*
|
|
79
|
+
* **if can be null:**
|
|
80
|
+
* true
|
|
81
|
+
*/
|
|
82
|
+
cacheSizeBytes?: number;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* Indicates whether deletion is allowed. The value is true if there are no configuration references with the switch enabled, no valid instances occupying the resource, and the resource is not being deleted in the current workspace. If the reference status is unknown, the query fails instead of allowing deletion by default.
|
|
86
|
+
*
|
|
87
|
+
* This parameter is required.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* false
|
|
91
|
+
*/
|
|
92
|
+
canDelete?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* The creation time of the logical resource in the current workspace, in RFC3339 format with time zone. Content updates for the latest tag do not refresh this time.
|
|
96
|
+
*
|
|
97
|
+
* This parameter is required.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* 2026-10-10T00:00:00Z
|
|
101
|
+
*/
|
|
102
|
+
createdAt?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* The reason why deletion is blocked. The value is null if canDelete is true. Otherwise, the value is returned based on the priority of DELETING, AGENT_ENABLED, and INSTANCES_RELEASING. Even if the agent count is 0, old instances may still occupy the resource.
|
|
106
|
+
*
|
|
107
|
+
* This parameter is required.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* INSTANCES_RELEASING
|
|
111
|
+
*
|
|
112
|
+
* **if can be null:**
|
|
113
|
+
* true
|
|
114
|
+
*/
|
|
115
|
+
deleteBlockReason?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The current content digest in the sha256: format followed by a 64-character lowercase hexadecimal string. It only describes the currently registered content and does not prove that old instances have been switched.
|
|
119
|
+
*
|
|
120
|
+
* This parameter is required.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
124
|
+
*/
|
|
125
|
+
digest?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The cache failure reason. This must be a non-null object when the status is FAILED, and null for other statuses. It only describes the current content and the current creation round.
|
|
129
|
+
*
|
|
130
|
+
* This parameter is required.
|
|
131
|
+
*
|
|
132
|
+
* **if can be null:**
|
|
133
|
+
* true
|
|
134
|
+
*/
|
|
135
|
+
error?: GetImageCacheResponseBodyDataError;
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* The logical resource ID manageable by the current workspace, not the shared physical cache ID.
|
|
139
|
+
*
|
|
140
|
+
* This parameter is required.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* img-example
|
|
144
|
+
*/
|
|
145
|
+
imageId?: string;
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* The source image domain name, excluding the protocol, path, and credentials.
|
|
149
|
+
*
|
|
150
|
+
* This parameter is required.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* example-registry.cn-hangzhou.cr.aliyuncs.com
|
|
154
|
+
*/
|
|
155
|
+
registry?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @remarks
|
|
158
|
+
* The source image repository path in the namespace/repository format, which includes the namespace.
|
|
159
|
+
*
|
|
160
|
+
* This parameter is required.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* team/app
|
|
164
|
+
*/
|
|
165
|
+
repository?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* The image cache status. Valid values:
|
|
169
|
+
* - PENDING: Creating.
|
|
170
|
+
* - READY: Available.
|
|
171
|
+
* - FAILED: Abnormal.
|
|
172
|
+
* - DELETING: Deleting in the current workspace.
|
|
173
|
+
*
|
|
174
|
+
* This parameter is required.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* READY
|
|
178
|
+
*/
|
|
179
|
+
status?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @remarks
|
|
182
|
+
* The source image tag with case preserved. Regular tags cannot be registered with different digests, except for the exact lowercase latest tag.
|
|
183
|
+
*
|
|
184
|
+
* This parameter is required.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* v1
|
|
188
|
+
*/
|
|
189
|
+
tag?: string;
|
|
190
|
+
/**
|
|
191
|
+
* @remarks
|
|
192
|
+
* The workspace ID, which must match the requested workspace. Resources with the same content from other workspaces are not returned.
|
|
193
|
+
*
|
|
194
|
+
* This parameter is required.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ws-example
|
|
198
|
+
*/
|
|
199
|
+
workspaceId?: string;
|
|
200
|
+
static names(): { [key: string]: string } {
|
|
201
|
+
return {
|
|
202
|
+
acrInstanceId: 'acrInstanceId',
|
|
203
|
+
agentCount: 'agentCount',
|
|
204
|
+
cacheSizeBytes: 'cacheSizeBytes',
|
|
205
|
+
canDelete: 'canDelete',
|
|
206
|
+
createdAt: 'createdAt',
|
|
207
|
+
deleteBlockReason: 'deleteBlockReason',
|
|
208
|
+
digest: 'digest',
|
|
209
|
+
error: 'error',
|
|
210
|
+
imageId: 'imageId',
|
|
211
|
+
registry: 'registry',
|
|
212
|
+
repository: 'repository',
|
|
213
|
+
status: 'status',
|
|
214
|
+
tag: 'tag',
|
|
215
|
+
workspaceId: 'workspaceId',
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
static types(): { [key: string]: any } {
|
|
220
|
+
return {
|
|
221
|
+
acrInstanceId: 'string',
|
|
222
|
+
agentCount: 'number',
|
|
223
|
+
cacheSizeBytes: 'number',
|
|
224
|
+
canDelete: 'boolean',
|
|
225
|
+
createdAt: 'string',
|
|
226
|
+
deleteBlockReason: 'string',
|
|
227
|
+
digest: 'string',
|
|
228
|
+
error: GetImageCacheResponseBodyDataError,
|
|
229
|
+
imageId: 'string',
|
|
230
|
+
registry: 'string',
|
|
231
|
+
repository: 'string',
|
|
232
|
+
status: 'string',
|
|
233
|
+
tag: 'string',
|
|
234
|
+
workspaceId: 'string',
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
validate() {
|
|
239
|
+
if(this.error && typeof (this.error as any).validate === 'function') {
|
|
240
|
+
(this.error as any).validate();
|
|
241
|
+
}
|
|
242
|
+
super.validate();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
constructor(map?: { [key: string]: any }) {
|
|
246
|
+
super(map);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export class GetImageCacheResponseBody extends $dara.Model {
|
|
251
|
+
/**
|
|
252
|
+
* @remarks
|
|
253
|
+
* The business response code.
|
|
254
|
+
*
|
|
255
|
+
* This parameter is required.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* SUCCESS
|
|
259
|
+
*/
|
|
260
|
+
code?: string;
|
|
261
|
+
/**
|
|
262
|
+
* @remarks
|
|
263
|
+
* The query result of the image cache details.
|
|
264
|
+
*
|
|
265
|
+
* This parameter is required.
|
|
266
|
+
*/
|
|
267
|
+
data?: GetImageCacheResponseBodyData;
|
|
268
|
+
/**
|
|
269
|
+
* @remarks
|
|
270
|
+
* The HTTP status code.
|
|
271
|
+
*
|
|
272
|
+
* This parameter is required.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* 200
|
|
276
|
+
*/
|
|
277
|
+
httpStatusCode?: number;
|
|
278
|
+
/**
|
|
279
|
+
* @remarks
|
|
280
|
+
* The response message.
|
|
281
|
+
*
|
|
282
|
+
* This parameter is required.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* success
|
|
286
|
+
*/
|
|
287
|
+
message?: string;
|
|
288
|
+
/**
|
|
289
|
+
* @remarks
|
|
290
|
+
* The request ID, which is used for troubleshooting.
|
|
291
|
+
*
|
|
292
|
+
* This parameter is required.
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* req-example
|
|
296
|
+
*/
|
|
297
|
+
requestId?: string;
|
|
298
|
+
/**
|
|
299
|
+
* @remarks
|
|
300
|
+
* Indicates whether the request is successful. This does not indicate that the cache creation is complete.
|
|
301
|
+
*
|
|
302
|
+
* This parameter is required.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* true
|
|
306
|
+
*/
|
|
307
|
+
success?: boolean;
|
|
308
|
+
static names(): { [key: string]: string } {
|
|
309
|
+
return {
|
|
310
|
+
code: 'code',
|
|
311
|
+
data: 'data',
|
|
312
|
+
httpStatusCode: 'httpStatusCode',
|
|
313
|
+
message: 'message',
|
|
314
|
+
requestId: 'requestId',
|
|
315
|
+
success: 'success',
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
static types(): { [key: string]: any } {
|
|
320
|
+
return {
|
|
321
|
+
code: 'string',
|
|
322
|
+
data: GetImageCacheResponseBodyData,
|
|
323
|
+
httpStatusCode: 'number',
|
|
324
|
+
message: 'string',
|
|
325
|
+
requestId: 'string',
|
|
326
|
+
success: 'boolean',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
validate() {
|
|
331
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
332
|
+
(this.data as any).validate();
|
|
333
|
+
}
|
|
334
|
+
super.validate();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
constructor(map?: { [key: string]: any }) {
|
|
338
|
+
super(map);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
@@ -15,7 +15,7 @@ export class GetWorkspaceAcrRamAuthorizeUrlRequest extends $dara.Model {
|
|
|
15
15
|
acrInstanceId?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The target ACR namespace, which corresponds to artifact.container.namespace of the agent. This is not a Kubernetes namespace.
|
|
18
|
+
* The target ACR namespace, which corresponds to artifact.container.namespace of the agent. This is not a Kubernetes namespace. This parameter, together with the instance and repository, determines the authorization scope.
|
|
19
19
|
*
|
|
20
20
|
* This parameter is required.
|
|
21
21
|
*
|
|
@@ -25,7 +25,7 @@ export class GetWorkspaceAcrRamAuthorizeUrlRequest extends $dara.Model {
|
|
|
25
25
|
namespace?: string;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The target repository
|
|
28
|
+
* The name of the target repository, which corresponds to artifact.container.repo of the agent. The name cannot contain tags, namespaces, or path separators. Wildcards are not supported.
|
|
29
29
|
*
|
|
30
30
|
* This parameter is required.
|
|
31
31
|
*
|
|
@@ -7,6 +7,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBodyData extends $dara.Model
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* The ID of the ACR Enterprise instance.
|
|
9
9
|
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
10
12
|
* @example
|
|
11
13
|
* cri-1234567890abcdef
|
|
12
14
|
*/
|
|
@@ -15,13 +17,17 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBodyData extends $dara.Model
|
|
|
15
17
|
* @remarks
|
|
16
18
|
* The RAM authorization URL used to create or append target ACR permissions for the shared role.
|
|
17
19
|
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
18
22
|
* @example
|
|
19
23
|
* https://ram.console.aliyun.com/authorize?request=%7B%22referrer%22%3A%22AgentCore%22%2C%22payloads%22%3A%5B%7B%22missionId%22%3A%22AgentCore.CustomRoleForOSSObjectRestore%22%2C%22roleName%22%3A%22AliyunAgentCoreWorkspace-ws-1234567890abcdef12345%22%2C%22rolePolicies%22%3A%5B%7B%22policyName%22%3A%22AgentCoreAcrPull-63373f3802583663d49465d8061e410a899d8f2936b8fc0cb9ec905b71f273c6%22%2C%22policyType%22%3A%22Custom%22%2C%22templateId%22%3A%22CrPullInstanceImage%22%2C%22templateValue%22%3A%7B%22crInstance%22%3A%22acs%3Acr%3Acn-hangzhou%3A1234567890123456%3Ainstance%2Fcri-1234567890abcdef%22%2C%22crRepository%22%3A%22acs%3Acr%3Acn-hangzhou%3A1234567890123456%3Arepository%2Fcri-1234567890abcdef%2Fexample%2Fagent-image%22%7D%7D%5D%7D%5D%7D
|
|
20
24
|
*/
|
|
21
25
|
authorizeUrl?: string;
|
|
22
26
|
/**
|
|
23
27
|
* @remarks
|
|
24
|
-
* The shared role
|
|
28
|
+
* The name of the shared role selected by the backend. This field is not editable on the frontend.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
25
31
|
*
|
|
26
32
|
* @example
|
|
27
33
|
* AliyunAgentCoreWorkspace-ws-1234567890abcdef12345
|
|
@@ -31,6 +37,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBodyData extends $dara.Model
|
|
|
31
37
|
* @remarks
|
|
32
38
|
* The source of the shared role. This does not indicate that authorization is complete.
|
|
33
39
|
*
|
|
40
|
+
* This parameter is required.
|
|
41
|
+
*
|
|
34
42
|
* @example
|
|
35
43
|
* WORKSPACE_SHARED
|
|
36
44
|
*/
|
|
@@ -39,6 +47,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBodyData extends $dara.Model
|
|
|
39
47
|
* @remarks
|
|
40
48
|
* The workspace ID.
|
|
41
49
|
*
|
|
50
|
+
* This parameter is required.
|
|
51
|
+
*
|
|
42
52
|
* @example
|
|
43
53
|
* ws-1234567890abcdef12345
|
|
44
54
|
*/
|
|
@@ -77,6 +87,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBody extends $dara.Model {
|
|
|
77
87
|
* @remarks
|
|
78
88
|
* The business status code.
|
|
79
89
|
*
|
|
90
|
+
* This parameter is required.
|
|
91
|
+
*
|
|
80
92
|
* @example
|
|
81
93
|
* SUCCESS
|
|
82
94
|
*/
|
|
@@ -84,12 +96,16 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBody extends $dara.Model {
|
|
|
84
96
|
/**
|
|
85
97
|
* @remarks
|
|
86
98
|
* The response data.
|
|
99
|
+
*
|
|
100
|
+
* This parameter is required.
|
|
87
101
|
*/
|
|
88
102
|
data?: GetWorkspaceAcrRamAuthorizeUrlResponseBodyData;
|
|
89
103
|
/**
|
|
90
104
|
* @remarks
|
|
91
105
|
* The HTTP status code.
|
|
92
106
|
*
|
|
107
|
+
* This parameter is required.
|
|
108
|
+
*
|
|
93
109
|
* @example
|
|
94
110
|
* 200
|
|
95
111
|
*/
|
|
@@ -98,6 +114,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBody extends $dara.Model {
|
|
|
98
114
|
* @remarks
|
|
99
115
|
* The response message.
|
|
100
116
|
*
|
|
117
|
+
* This parameter is required.
|
|
118
|
+
*
|
|
101
119
|
* @example
|
|
102
120
|
* success
|
|
103
121
|
*/
|
|
@@ -106,6 +124,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBody extends $dara.Model {
|
|
|
106
124
|
* @remarks
|
|
107
125
|
* The request ID.
|
|
108
126
|
*
|
|
127
|
+
* This parameter is required.
|
|
128
|
+
*
|
|
109
129
|
* @example
|
|
110
130
|
* 12345678-1234-1234-1234-123456789012
|
|
111
131
|
*/
|
|
@@ -114,6 +134,8 @@ export class GetWorkspaceAcrRamAuthorizeUrlResponseBody extends $dara.Model {
|
|
|
114
134
|
* @remarks
|
|
115
135
|
* Indicates whether the request is successful.
|
|
116
136
|
*
|
|
137
|
+
* This parameter is required.
|
|
138
|
+
*
|
|
117
139
|
* @example
|
|
118
140
|
* true
|
|
119
141
|
*/
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListImageCachesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the source ACR Enterprise instance. The match must be exact. Empty character strings are invalid.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* cri-example
|
|
12
|
+
*/
|
|
13
|
+
acrInstanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The complete image digest in the sha256: format followed by a 64-character lowercase hexadecimal string. The format is verified by the console. The match must be exact, and prefixes are not supported.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
20
|
+
*/
|
|
21
|
+
digest?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Performs a case-insensitive literal substring search on the complete source image reference in the registry/repository:tag format, where the repository already includes the namespace. If the value is empty after trimming leading and trailing whitespace, it is treated as not provided. Percent signs, underscores, and backslashes are treated as literal characters.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* team/app
|
|
28
|
+
*/
|
|
29
|
+
imageRefContains?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The maximum number of results to return. If this parameter is not provided or is set to 0, the default value is 20. If the value exceeds 100, it is treated as 100. Negative values return an InvalidMaxResults error. The value can be adjusted for subsequent pages.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 20
|
|
36
|
+
*/
|
|
37
|
+
maxResults?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The source namespace. The match is case-sensitive and must be exact. Empty strings are invalid.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* team
|
|
44
|
+
*/
|
|
45
|
+
namespace?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* Omit this parameter for the first request. For subsequent requests, pass the nextToken value from the previous response exactly as returned. If the filter conditions change, you must query the first page again.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* opaque-token
|
|
52
|
+
*/
|
|
53
|
+
nextToken?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The product entry region, which is determined by the selected region endpoint.
|
|
57
|
+
*
|
|
58
|
+
* This parameter is required.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* cn-hangzhou
|
|
62
|
+
*/
|
|
63
|
+
regionId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The domain name of the source repository. The match is case-insensitive and must be exact. Do not include the protocol, path, or tag. Public network and VPC domain names are not considered equal. Empty strings are invalid.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* example-registry.cn-hangzhou.cr.aliyuncs.com
|
|
70
|
+
*/
|
|
71
|
+
registry?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The name of the repository under the namespace. The match is case-sensitive and must be exact. Do not include the namespace. If this parameter is provided, the namespace parameter must also be provided. Empty strings are invalid.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* app
|
|
78
|
+
*/
|
|
79
|
+
repository?: string;
|
|
80
|
+
/**
|
|
81
|
+
* @remarks
|
|
82
|
+
* Filters the results by a single cache status. Omit this parameter to query all statuses.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* READY
|
|
86
|
+
*/
|
|
87
|
+
status?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The tag of the source image. The match is case-sensitive and must be exact. The latest tag is not inferred. Empty strings are invalid.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* v1
|
|
94
|
+
*/
|
|
95
|
+
tag?: string;
|
|
96
|
+
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* The current routed workspace. The server verifies the account, region, and resource ownership. This parameter cannot be omitted or used to access other workspaces.
|
|
99
|
+
*
|
|
100
|
+
* This parameter is required.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ws-example
|
|
104
|
+
*/
|
|
105
|
+
workspaceId?: string;
|
|
106
|
+
static names(): { [key: string]: string } {
|
|
107
|
+
return {
|
|
108
|
+
acrInstanceId: 'acrInstanceId',
|
|
109
|
+
digest: 'digest',
|
|
110
|
+
imageRefContains: 'imageRefContains',
|
|
111
|
+
maxResults: 'maxResults',
|
|
112
|
+
namespace: 'namespace',
|
|
113
|
+
nextToken: 'nextToken',
|
|
114
|
+
regionId: 'regionId',
|
|
115
|
+
registry: 'registry',
|
|
116
|
+
repository: 'repository',
|
|
117
|
+
status: 'status',
|
|
118
|
+
tag: 'tag',
|
|
119
|
+
workspaceId: 'workspaceId',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
static types(): { [key: string]: any } {
|
|
124
|
+
return {
|
|
125
|
+
acrInstanceId: 'string',
|
|
126
|
+
digest: 'string',
|
|
127
|
+
imageRefContains: 'string',
|
|
128
|
+
maxResults: 'number',
|
|
129
|
+
namespace: 'string',
|
|
130
|
+
nextToken: 'string',
|
|
131
|
+
regionId: 'string',
|
|
132
|
+
registry: 'string',
|
|
133
|
+
repository: 'string',
|
|
134
|
+
status: 'string',
|
|
135
|
+
tag: 'string',
|
|
136
|
+
workspaceId: 'string',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
validate() {
|
|
141
|
+
super.validate();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
constructor(map?: { [key: string]: any }) {
|
|
145
|
+
super(map);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListImageCachesResponseBody } from "./ListImageCachesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListImageCachesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListImageCachesResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListImageCachesResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|