@alicloud/agentcore20260804 3.0.1 → 3.1.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 +370 -188
- package/dist/client.js +413 -188
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +155 -53
- package/dist/models/CreateCustomAgentRequest.js +61 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +305 -58
- package/dist/models/CreateCustomAgentResponseBody.js +153 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateIdentityProviderRequest.d.ts +12 -15
- package/dist/models/CreateIdentityProviderRequest.js.map +1 -1
- package/dist/models/CreateIdentityProviderResponseBody.d.ts +19 -22
- package/dist/models/CreateIdentityProviderResponseBody.js.map +1 -1
- package/dist/models/CreateManagedAgentRequest.d.ts +80 -45
- package/dist/models/CreateManagedAgentRequest.js +29 -1
- package/dist/models/CreateManagedAgentRequest.js.map +1 -1
- package/dist/models/CreateManagedAgentResponseBody.d.ts +98 -65
- package/dist/models/CreateManagedAgentResponseBody.js +29 -1
- package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/CreateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/DeleteIdentityProviderResponseBody.d.ts +10 -10
- package/dist/models/DeleteIdentityProviderScimcredentialResponseBody.d.ts +5 -5
- package/dist/models/FindCustomAgentImagePreparationRequest.d.ts +23 -0
- package/dist/models/FindCustomAgentImagePreparationRequest.js +58 -0
- package/dist/models/FindCustomAgentImagePreparationRequest.js.map +1 -0
- package/dist/models/FindCustomAgentImagePreparationResponse.d.ts +19 -0
- package/dist/models/FindCustomAgentImagePreparationResponse.js +69 -0
- package/dist/models/FindCustomAgentImagePreparationResponse.js.map +1 -0
- package/dist/models/FindCustomAgentImagePreparationResponseBody.d.ts +135 -0
- package/dist/models/FindCustomAgentImagePreparationResponseBody.js +122 -0
- package/dist/models/FindCustomAgentImagePreparationResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentImagePreparationRequest.d.ts +13 -0
- package/dist/models/GetCustomAgentImagePreparationRequest.js +54 -0
- package/dist/models/GetCustomAgentImagePreparationRequest.js.map +1 -0
- package/dist/models/GetCustomAgentImagePreparationResponse.d.ts +19 -0
- package/dist/models/GetCustomAgentImagePreparationResponse.js +69 -0
- package/dist/models/GetCustomAgentImagePreparationResponse.js.map +1 -0
- package/dist/models/GetCustomAgentImagePreparationResponseBody.d.ts +135 -0
- package/dist/models/GetCustomAgentImagePreparationResponseBody.js +122 -0
- package/dist/models/GetCustomAgentImagePreparationResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +304 -51
- package/dist/models/GetCustomAgentResponseBody.js +153 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetIdentityProviderResponseBody.d.ts +30 -30
- package/dist/models/GetIdentityProviderScimresponseBody.d.ts +22 -18
- package/dist/models/GetIdentityProviderScimresponseBody.js.map +1 -1
- package/dist/models/GetIdentityProviderServiceProviderRequest.d.ts +1 -1
- package/dist/models/GetIdentityProviderServiceProviderResponseBody.d.ts +10 -10
- package/dist/models/GetManagedAgentResponseBody.d.ts +106 -75
- package/dist/models/GetManagedAgentResponseBody.js +29 -1
- package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +1 -1
- package/dist/models/ListCustomAgentsRequest.d.ts +2 -2
- package/dist/models/ListCustomAgentsResponseBody.d.ts +24 -22
- package/dist/models/ListCustomAgentsResponseBody.js.map +1 -1
- package/dist/models/ListIdentityProvidersRequest.d.ts +1 -1
- package/dist/models/ListIdentityProvidersResponseBody.d.ts +30 -18
- package/dist/models/ListIdentityProvidersResponseBody.js.map +1 -1
- package/dist/models/PrepareIdentityProviderScimresponseBody.d.ts +10 -10
- package/dist/models/UpdateCustomAgentRequest.d.ts +154 -75
- package/dist/models/UpdateCustomAgentRequest.js +61 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +310 -65
- package/dist/models/UpdateCustomAgentResponseBody.js +153 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateIdentityProviderRequest.d.ts +20 -20
- package/dist/models/UpdateIdentityProviderResponseBody.d.ts +19 -19
- package/dist/models/UpdateIdentityProviderScimrequest.d.ts +2 -2
- package/dist/models/UpdateIdentityProviderScimresponseBody.d.ts +28 -28
- package/dist/models/UpdateIdentityProviderScimshrinkRequest.d.ts +1 -1
- package/dist/models/UpdateIdentityProviderShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateManagedAgentRequest.d.ts +83 -46
- package/dist/models/UpdateManagedAgentRequest.js +29 -1
- package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
- package/dist/models/UpdateManagedAgentResponseBody.d.ts +98 -65
- package/dist/models/UpdateManagedAgentResponseBody.js +29 -1
- package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/model.d.ts +34 -0
- package/dist/models/model.js +267 -198
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +418 -188
- package/src/models/CreateCustomAgentRequest.ts +197 -53
- package/src/models/CreateCustomAgentResponseBody.ts +412 -58
- package/src/models/CreateIdentityProviderRequest.ts +12 -15
- package/src/models/CreateIdentityProviderResponseBody.ts +19 -22
- package/src/models/CreateManagedAgentRequest.ts +99 -45
- package/src/models/CreateManagedAgentResponseBody.ts +117 -65
- package/src/models/CreateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/DeleteIdentityProviderResponseBody.ts +10 -10
- package/src/models/DeleteIdentityProviderScimcredentialResponseBody.ts +5 -5
- package/src/models/FindCustomAgentImagePreparationRequest.ts +36 -0
- package/src/models/FindCustomAgentImagePreparationResponse.ts +40 -0
- package/src/models/FindCustomAgentImagePreparationResponseBody.ts +194 -0
- package/src/models/GetCustomAgentImagePreparationRequest.ts +24 -0
- package/src/models/GetCustomAgentImagePreparationResponse.ts +40 -0
- package/src/models/GetCustomAgentImagePreparationResponseBody.ts +194 -0
- package/src/models/GetCustomAgentResponseBody.ts +411 -51
- package/src/models/GetIdentityProviderResponseBody.ts +30 -30
- package/src/models/GetIdentityProviderScimresponseBody.ts +22 -18
- package/src/models/GetIdentityProviderServiceProviderRequest.ts +1 -1
- package/src/models/GetIdentityProviderServiceProviderResponseBody.ts +10 -10
- package/src/models/GetManagedAgentResponseBody.ts +125 -75
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +1 -1
- package/src/models/ListCustomAgentsRequest.ts +2 -2
- package/src/models/ListCustomAgentsResponseBody.ts +24 -22
- package/src/models/ListIdentityProvidersRequest.ts +1 -1
- package/src/models/ListIdentityProvidersResponseBody.ts +30 -18
- package/src/models/PrepareIdentityProviderScimresponseBody.ts +10 -10
- package/src/models/UpdateCustomAgentRequest.ts +196 -75
- package/src/models/UpdateCustomAgentResponseBody.ts +417 -65
- package/src/models/UpdateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/UpdateIdentityProviderRequest.ts +20 -20
- package/src/models/UpdateIdentityProviderResponseBody.ts +19 -19
- package/src/models/UpdateIdentityProviderScimrequest.ts +2 -2
- package/src/models/UpdateIdentityProviderScimresponseBody.ts +28 -28
- package/src/models/UpdateIdentityProviderScimshrinkRequest.ts +1 -1
- package/src/models/UpdateIdentityProviderShrinkRequest.ts +1 -1
- package/src/models/UpdateManagedAgentRequest.ts +102 -46
- package/src/models/UpdateManagedAgentResponseBody.ts +117 -65
- package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/model.ts +34 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The subdirectory under /mnt/agenticfs/ in the container. This field is required for each mount item. Mount targets
|
|
8
|
+
* The subdirectory under /mnt/agenticfs/ in the container. This field is required for each mount item and is validated by the backend. Mount targets cannot be duplicated or overlap in a parent-child relationship.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* /mnt/agenticfs/data
|
|
@@ -13,7 +13,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
13
13
|
mountPath?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The existing non-empty relative directory under the access point. This field is required for each mount item. Root directories, absolute paths, and parent directory traversals are not allowed.
|
|
16
|
+
* The existing non-empty relative directory under the access point. This field is required for each mount item and is validated by the backend. Root directories, absolute paths, and parent directory traversals are not allowed.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* workspace/data
|
|
@@ -21,7 +21,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
21
21
|
path?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If
|
|
24
|
+
* Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If omitted, the default value is false.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* false
|
|
@@ -29,7 +29,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
29
29
|
readOnly?: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The domain name of the access point. This field is required for each mount item. Use the DomainName value from the response of
|
|
32
|
+
* The domain name of the access point. This field is required for each mount item and is validated by the backend. Use the DomainName value from the ListAccessPoints response of NAS. Do not include the protocol, port, or path.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ap-0123456789abcdef0.0123456789-vlm36.cn-hangzhou.nas.aliyuncs.com
|
|
@@ -65,9 +65,7 @@ export class UpdateCustomAgentRequestBodyAgenticFsMounts extends $dara.Model {
|
|
|
65
65
|
export class UpdateCustomAgentRequestBodyArtifactCode extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The startup command for the code package. This field is required in code package mode. The working directory is the extracted code root directory /code, such as python main.py. Quotes and escapes are supported. Environment variables, pipes, and logical operations are not automatically expanded.
|
|
69
|
-
*
|
|
70
|
-
* This parameter is required.
|
|
68
|
+
* The startup command for the code package. This field is required in code package mode. The working directory is the extracted code root directory /code, such as python main.py. Quotes and escapes are supported. Environment variables, pipes, and logical operations are not automatically expanded. Use scripts within the package for complex commands.
|
|
71
69
|
*
|
|
72
70
|
* @example
|
|
73
71
|
* python main.py
|
|
@@ -75,9 +73,7 @@ export class UpdateCustomAgentRequestBodyArtifactCode extends $dara.Model {
|
|
|
75
73
|
entrypoint?: string;
|
|
76
74
|
/**
|
|
77
75
|
* @remarks
|
|
78
|
-
* The code runtime environment identifier, such as python3.12. When
|
|
79
|
-
*
|
|
80
|
-
* This parameter is required.
|
|
76
|
+
* The code runtime environment identifier, such as python3.12. When you create or switch environments, use the identifier returned by ListAgentCodeRuntimes. The identifier is validated by the current version catalog and is not a fixed enumeration.
|
|
81
77
|
*
|
|
82
78
|
* @example
|
|
83
79
|
* python3.12
|
|
@@ -85,9 +81,7 @@ export class UpdateCustomAgentRequestBodyArtifactCode extends $dara.Model {
|
|
|
85
81
|
languageRuntime?: string;
|
|
86
82
|
/**
|
|
87
83
|
* @remarks
|
|
88
|
-
* The source address of the code package. This field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including OSS signed URLs.
|
|
89
|
-
*
|
|
90
|
-
* This parameter is required.
|
|
84
|
+
* The source address of the code package. This field supports oss:// addresses or HTTPS object addresses of standard OSS public domain names, including OSS signed URLs. External sites, custom domain names, and additional authentication request headers are not supported. For local uploads, use the sourceUri returned by GetAgentCodePackageUploadUrl. The address is revalidated and transferred during creation or update. After the address is saved, a fixed oss:// address of the platform is returned. You can reuse this fixed address for regular updates.
|
|
91
85
|
*
|
|
92
86
|
* @example
|
|
93
87
|
* oss://my-agent-bucket/packages/main.zip
|
|
@@ -121,7 +115,7 @@ export class UpdateCustomAgentRequestBodyArtifactCode extends $dara.Model {
|
|
|
121
115
|
export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
122
116
|
/**
|
|
123
117
|
* @remarks
|
|
124
|
-
* The optional executable program and startup parameters. If specified, this field must be a non-empty string. When
|
|
118
|
+
* The optional executable program and startup parameters. If specified, this field must be a non-empty string. When you update the artifact, omitting this field uses the default startup method of the image. To retain the original custom startup command, you must provide this field.
|
|
125
119
|
*
|
|
126
120
|
* @example
|
|
127
121
|
* python app.py
|
|
@@ -131,8 +125,6 @@ export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
|
131
125
|
* @remarks
|
|
132
126
|
* The ID of the ACR instance to which the image repository belongs. This field cannot be empty.
|
|
133
127
|
*
|
|
134
|
-
* This parameter is required.
|
|
135
|
-
*
|
|
136
128
|
* @example
|
|
137
129
|
* cri-a1b2c3d4e5f6
|
|
138
130
|
*/
|
|
@@ -141,8 +133,6 @@ export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
|
141
133
|
* @remarks
|
|
142
134
|
* The namespace to which the ACR image repository belongs. This field cannot be empty.
|
|
143
135
|
*
|
|
144
|
-
* This parameter is required.
|
|
145
|
-
*
|
|
146
136
|
* @example
|
|
147
137
|
* my-agent
|
|
148
138
|
*/
|
|
@@ -151,17 +141,13 @@ export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
|
151
141
|
* @remarks
|
|
152
142
|
* The name of the image repository in the ACR namespace. This field cannot be empty.
|
|
153
143
|
*
|
|
154
|
-
* This parameter is required.
|
|
155
|
-
*
|
|
156
144
|
* @example
|
|
157
145
|
* chat-agent
|
|
158
146
|
*/
|
|
159
147
|
repo?: string;
|
|
160
148
|
/**
|
|
161
149
|
* @remarks
|
|
162
|
-
* The image tag used for deployment. This field cannot be empty. When
|
|
163
|
-
*
|
|
164
|
-
* This parameter is required.
|
|
150
|
+
* The image tag used for deployment. This field cannot be empty. When you update the tag, you must also provide artifact.port and other required image fields.
|
|
165
151
|
*
|
|
166
152
|
* @example
|
|
167
153
|
* v1.0.0
|
|
@@ -169,9 +155,7 @@ export class UpdateCustomAgentRequestBodyArtifactContainer extends $dara.Model {
|
|
|
169
155
|
tag?: string;
|
|
170
156
|
/**
|
|
171
157
|
* @remarks
|
|
172
|
-
* The image source type.
|
|
173
|
-
*
|
|
174
|
-
* This parameter is required.
|
|
158
|
+
* The image source type. Only acr is supported, which indicates Container Registry.
|
|
175
159
|
*
|
|
176
160
|
* @example
|
|
177
161
|
* acr
|
|
@@ -223,8 +207,6 @@ export class UpdateCustomAgentRequestBodyArtifact extends $dara.Model {
|
|
|
223
207
|
* @remarks
|
|
224
208
|
* The TCP port listened by the agent service. Valid values: 1 to 65535.
|
|
225
209
|
*
|
|
226
|
-
* This parameter is required.
|
|
227
|
-
*
|
|
228
210
|
* @example
|
|
229
211
|
* 8080
|
|
230
212
|
*/
|
|
@@ -260,6 +242,136 @@ export class UpdateCustomAgentRequestBodyArtifact extends $dara.Model {
|
|
|
260
242
|
}
|
|
261
243
|
}
|
|
262
244
|
|
|
245
|
+
export class UpdateCustomAgentRequestBodyCustomImagePullNetwork extends $dara.Model {
|
|
246
|
+
/**
|
|
247
|
+
* @remarks
|
|
248
|
+
* The ID of the security group. This field is required when type is set to vpc and must belong to the selected VPC.
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* sg-example
|
|
252
|
+
*/
|
|
253
|
+
securityGroupId?: string;
|
|
254
|
+
/**
|
|
255
|
+
* @remarks
|
|
256
|
+
* The type of the pull network. This field is required when you submit pullNetwork and is validated by the backend. The default value for a new configuration is public network, which is independent of the agent runtime network.
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* public
|
|
260
|
+
*/
|
|
261
|
+
type?: string;
|
|
262
|
+
/**
|
|
263
|
+
* @remarks
|
|
264
|
+
* The ID of the security group. This field is required when type is set to vpc and must belong to the selected VPC.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* vsw-example
|
|
268
|
+
*/
|
|
269
|
+
vSwitchId?: string;
|
|
270
|
+
/**
|
|
271
|
+
* @remarks
|
|
272
|
+
* The ID of the VPC. This field is required when type is set to vpc. The associated account and region are validated by the backend.
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* vpc-example
|
|
276
|
+
*/
|
|
277
|
+
vpcId?: string;
|
|
278
|
+
static names(): { [key: string]: string } {
|
|
279
|
+
return {
|
|
280
|
+
securityGroupId: 'securityGroupId',
|
|
281
|
+
type: 'type',
|
|
282
|
+
vSwitchId: 'vSwitchId',
|
|
283
|
+
vpcId: 'vpcId',
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
static types(): { [key: string]: any } {
|
|
288
|
+
return {
|
|
289
|
+
securityGroupId: 'string',
|
|
290
|
+
type: 'string',
|
|
291
|
+
vSwitchId: 'string',
|
|
292
|
+
vpcId: 'string',
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
validate() {
|
|
297
|
+
super.validate();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
constructor(map?: { [key: string]: any }) {
|
|
301
|
+
super(map);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export class UpdateCustomAgentRequestBodyCustomImage extends $dara.Model {
|
|
306
|
+
/**
|
|
307
|
+
* @remarks
|
|
308
|
+
* The custom image address. This field is required when you submit customImage and is validated by the backend. Specify the full registry[:port]/repository:tag or registry[:port]/repository@sha256:digest format. Multi-level paths are supported. Do not include the protocol or user information.
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* registry.example.com/team/agent:v1
|
|
312
|
+
*/
|
|
313
|
+
image?: string;
|
|
314
|
+
/**
|
|
315
|
+
* @remarks
|
|
316
|
+
* The repository password or token for the current task. Submit a non-empty value in pairs with the username field. The value is not trimmed and cannot be null, an empty string, or a masked value. This field is used only for the current task and is not permanently saved or returned. To use anonymous access, omit both fields.
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* example-registry-token
|
|
320
|
+
*/
|
|
321
|
+
password?: string;
|
|
322
|
+
/**
|
|
323
|
+
* @remarks
|
|
324
|
+
* The independent network configuration for pulling images. This field is required when you submit customImage and is validated by the backend. For public networks, only pass type=public.
|
|
325
|
+
*/
|
|
326
|
+
pullNetwork?: UpdateCustomAgentRequestBodyCustomImagePullNetwork;
|
|
327
|
+
/**
|
|
328
|
+
* @remarks
|
|
329
|
+
* Specifies whether to skip HTTPS certificate verification. If omitted, the default value is false. This field does not accept null. HTTP fallback semantics are still under discussion and do not affect the current field definition. The image address does not include a protocol.
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* false
|
|
333
|
+
*/
|
|
334
|
+
skipTlsVerify?: boolean;
|
|
335
|
+
/**
|
|
336
|
+
* @remarks
|
|
337
|
+
* The repository username for the current task. When you create or explicitly update a private source, resubmit this field in pairs with the password field. Existing copies also require verification. To use anonymous access, omit both fields. A read-only username is not automatically used as the input for the current task.
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* reader
|
|
341
|
+
*/
|
|
342
|
+
username?: string;
|
|
343
|
+
static names(): { [key: string]: string } {
|
|
344
|
+
return {
|
|
345
|
+
image: 'image',
|
|
346
|
+
password: 'password',
|
|
347
|
+
pullNetwork: 'pullNetwork',
|
|
348
|
+
skipTlsVerify: 'skipTlsVerify',
|
|
349
|
+
username: 'username',
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
static types(): { [key: string]: any } {
|
|
354
|
+
return {
|
|
355
|
+
image: 'string',
|
|
356
|
+
password: 'string',
|
|
357
|
+
pullNetwork: UpdateCustomAgentRequestBodyCustomImagePullNetwork,
|
|
358
|
+
skipTlsVerify: 'boolean',
|
|
359
|
+
username: 'string',
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
validate() {
|
|
364
|
+
if(this.pullNetwork && typeof (this.pullNetwork as any).validate === 'function') {
|
|
365
|
+
(this.pullNetwork as any).validate();
|
|
366
|
+
}
|
|
367
|
+
super.validate();
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
constructor(map?: { [key: string]: any }) {
|
|
371
|
+
super(map);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
263
375
|
export class UpdateCustomAgentRequestBodyEnvironmentVariables extends $dara.Model {
|
|
264
376
|
/**
|
|
265
377
|
* @remarks
|
|
@@ -273,7 +385,7 @@ export class UpdateCustomAgentRequestBodyEnvironmentVariables extends $dara.Mode
|
|
|
273
385
|
name?: string;
|
|
274
386
|
/**
|
|
275
387
|
* @remarks
|
|
276
|
-
* The value of the environment variable. This field must be a string
|
|
388
|
+
* The value of the environment variable. This field must be a string and can be an empty string.
|
|
277
389
|
*
|
|
278
390
|
* This parameter is required.
|
|
279
391
|
*
|
|
@@ -337,15 +449,17 @@ export class UpdateCustomAgentRequestBodyEnvironment extends $dara.Model {
|
|
|
337
449
|
export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
338
450
|
/**
|
|
339
451
|
* @remarks
|
|
340
|
-
* This parameter
|
|
452
|
+
* This parameter does not take effect. Omit this parameter.
|
|
341
453
|
*
|
|
342
454
|
* @example
|
|
343
455
|
* 1
|
|
456
|
+
*
|
|
457
|
+
* @deprecated
|
|
344
458
|
*/
|
|
345
459
|
healthyThreshold?: number;
|
|
346
460
|
/**
|
|
347
461
|
* @remarks
|
|
348
|
-
* The interval between two health checks, in seconds.
|
|
462
|
+
* The interval between two consecutive health checks, in seconds. The value must be a positive integer. Default value: 10.
|
|
349
463
|
*
|
|
350
464
|
* @example
|
|
351
465
|
* 10
|
|
@@ -353,7 +467,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
353
467
|
intervalSeconds?: number;
|
|
354
468
|
/**
|
|
355
469
|
* @remarks
|
|
356
|
-
* The HTTP health check path.
|
|
470
|
+
* The HTTP health check path. The path must start with a forward slash (/). Default value: /healthz.
|
|
357
471
|
*
|
|
358
472
|
* @example
|
|
359
473
|
* /healthz
|
|
@@ -361,7 +475,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
361
475
|
path?: string;
|
|
362
476
|
/**
|
|
363
477
|
* @remarks
|
|
364
|
-
* The port
|
|
478
|
+
* The port used for health checks. This field is required when you configure a health check. Valid values: 1 to 65535.
|
|
365
479
|
*
|
|
366
480
|
* @example
|
|
367
481
|
* 8080
|
|
@@ -369,7 +483,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
369
483
|
port?: number;
|
|
370
484
|
/**
|
|
371
485
|
* @remarks
|
|
372
|
-
* The timeout period for a single health check, in seconds.
|
|
486
|
+
* The timeout period for a single health check, in seconds. The value must be a positive integer and less than the value of intervalSeconds. Default value: 2.
|
|
373
487
|
*
|
|
374
488
|
* @example
|
|
375
489
|
* 2
|
|
@@ -377,7 +491,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
377
491
|
timeoutSeconds?: number;
|
|
378
492
|
/**
|
|
379
493
|
* @remarks
|
|
380
|
-
* The number of consecutive health check failures
|
|
494
|
+
* The number of consecutive health check failures required to mark the target as unhealthy. The value must be a positive integer. Default value: 3.
|
|
381
495
|
*
|
|
382
496
|
* @example
|
|
383
497
|
* 3
|
|
@@ -417,7 +531,7 @@ export class UpdateCustomAgentRequestBodyHealthCheck extends $dara.Model {
|
|
|
417
531
|
export class UpdateCustomAgentRequestBodyLoggingSls extends $dara.Model {
|
|
418
532
|
/**
|
|
419
533
|
* @remarks
|
|
420
|
-
* The name of the SLS
|
|
534
|
+
* The name of the SLS Logstore that receives agent logs.
|
|
421
535
|
*
|
|
422
536
|
* @example
|
|
423
537
|
* agent-runtime
|
|
@@ -457,7 +571,7 @@ export class UpdateCustomAgentRequestBodyLoggingSls extends $dara.Model {
|
|
|
457
571
|
export class UpdateCustomAgentRequestBodyLogging extends $dara.Model {
|
|
458
572
|
/**
|
|
459
573
|
* @remarks
|
|
460
|
-
* The SLS log delivery destination. When
|
|
574
|
+
* The SLS log delivery destination. When you update this object, you must provide both the project and logstore fields, and they cannot be empty.
|
|
461
575
|
*/
|
|
462
576
|
sls?: UpdateCustomAgentRequestBodyLoggingSls;
|
|
463
577
|
static names(): { [key: string]: string } {
|
|
@@ -487,7 +601,7 @@ export class UpdateCustomAgentRequestBodyLogging extends $dara.Model {
|
|
|
487
601
|
export class UpdateCustomAgentRequestBodyNetworkAccessInternet extends $dara.Model {
|
|
488
602
|
/**
|
|
489
603
|
* @remarks
|
|
490
|
-
* Specifies whether to allow the agent to access the Internet.
|
|
604
|
+
* Specifies whether to allow the agent to access the Internet. A Boolean value is required when you configure accessInternet. For this setting to take effect, Internet access must also be allowed by the workspace.
|
|
491
605
|
*/
|
|
492
606
|
enabled?: boolean;
|
|
493
607
|
static names(): { [key: string]: string } {
|
|
@@ -514,7 +628,7 @@ export class UpdateCustomAgentRequestBodyNetworkAccessInternet extends $dara.Mod
|
|
|
514
628
|
export class UpdateCustomAgentRequestBodyNetworkAccessVpc extends $dara.Model {
|
|
515
629
|
/**
|
|
516
630
|
* @remarks
|
|
517
|
-
* Specifies whether to allow the agent to access the user VPC configured
|
|
631
|
+
* Specifies whether to allow the agent to access the user VPC configured for the workspace. A Boolean value is required when you configure accessVpc. For this setting to take effect, VPC access must also be allowed by the workspace.
|
|
518
632
|
*/
|
|
519
633
|
enabled?: boolean;
|
|
520
634
|
static names(): { [key: string]: string } {
|
|
@@ -541,12 +655,12 @@ export class UpdateCustomAgentRequestBodyNetworkAccessVpc extends $dara.Model {
|
|
|
541
655
|
export class UpdateCustomAgentRequestBodyNetwork extends $dara.Model {
|
|
542
656
|
/**
|
|
543
657
|
* @remarks
|
|
544
|
-
* The Internet access configuration.
|
|
658
|
+
* The Internet access configuration. If this access item is omitted, the agent does not restrict Internet access. However, Internet access must still be allowed by the workspace.
|
|
545
659
|
*/
|
|
546
660
|
accessInternet?: UpdateCustomAgentRequestBodyNetworkAccessInternet;
|
|
547
661
|
/**
|
|
548
662
|
* @remarks
|
|
549
|
-
* The user VPC access configuration.
|
|
663
|
+
* The user VPC access configuration. If this access item is omitted, the agent does not restrict VPC access. However, the workspace must be configured to allow access to the user VPC.
|
|
550
664
|
*/
|
|
551
665
|
accessVpc?: UpdateCustomAgentRequestBodyNetworkAccessVpc;
|
|
552
666
|
static names(): { [key: string]: string } {
|
|
@@ -608,7 +722,7 @@ export class UpdateCustomAgentRequestBodyObservability extends $dara.Model {
|
|
|
608
722
|
export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
609
723
|
/**
|
|
610
724
|
* @remarks
|
|
611
|
-
* The name of the OSS bucket. This
|
|
725
|
+
* The name of the OSS bucket. This field is required for each mount item. The name must be 3 to 63 characters in length and can contain only lowercase letters, digits, and hyphens (-). It cannot start or end with a hyphen.
|
|
612
726
|
*
|
|
613
727
|
* @example
|
|
614
728
|
* my-agent-data
|
|
@@ -616,7 +730,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
616
730
|
bucketName?: string;
|
|
617
731
|
/**
|
|
618
732
|
* @remarks
|
|
619
|
-
* The subdirectory under /mnt/oss/ in the container. This
|
|
733
|
+
* The subdirectory under /mnt/oss/ in the container. This field is required for each mount item. Mount targets cannot be duplicated or form parent-child overlaps.
|
|
620
734
|
*
|
|
621
735
|
* @example
|
|
622
736
|
* /mnt/oss/train
|
|
@@ -624,7 +738,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
624
738
|
mountPath?: string;
|
|
625
739
|
/**
|
|
626
740
|
* @remarks
|
|
627
|
-
* The non-empty object directory prefix in the bucket, such as datasets/train. Leading and trailing slashes are removed. The root directory is not supported. Do not use parent directory navigation.
|
|
741
|
+
* The non-empty object directory prefix in the bucket, such as datasets/train. Leading and trailing forward slashes (/) are removed. The root directory is not supported. Do not use parent directory navigation.
|
|
628
742
|
*
|
|
629
743
|
* @example
|
|
630
744
|
* datasets/train
|
|
@@ -632,7 +746,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
632
746
|
path?: string;
|
|
633
747
|
/**
|
|
634
748
|
* @remarks
|
|
635
|
-
* Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If
|
|
749
|
+
* Specifies whether the mount is read-only. A value of true indicates read-only, and a value of false indicates read and write. If omitted, the default value is false.
|
|
636
750
|
*/
|
|
637
751
|
readOnly?: boolean;
|
|
638
752
|
static names(): { [key: string]: string } {
|
|
@@ -665,7 +779,7 @@ export class UpdateCustomAgentRequestBodyOssMounts extends $dara.Model {
|
|
|
665
779
|
export class UpdateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
|
|
666
780
|
/**
|
|
667
781
|
* @remarks
|
|
668
|
-
* The
|
|
782
|
+
* The purpose description of the current API path.
|
|
669
783
|
*
|
|
670
784
|
* @example
|
|
671
785
|
* AG-UI conversation API
|
|
@@ -673,7 +787,7 @@ export class UpdateCustomAgentRequestBodyProtocolPaths extends $dara.Model {
|
|
|
673
787
|
description?: string;
|
|
674
788
|
/**
|
|
675
789
|
* @remarks
|
|
676
|
-
* The non-empty API path
|
|
790
|
+
* The non-empty API path corresponding to the current protocol.
|
|
677
791
|
*
|
|
678
792
|
* This parameter is required.
|
|
679
793
|
*
|
|
@@ -712,7 +826,7 @@ export class UpdateCustomAgentRequestBodyProtocol extends $dara.Model {
|
|
|
712
826
|
headers?: { [key: string]: string };
|
|
713
827
|
/**
|
|
714
828
|
* @remarks
|
|
715
|
-
* The list of API paths
|
|
829
|
+
* The list of API paths corresponding to the current protocol.
|
|
716
830
|
*/
|
|
717
831
|
paths?: UpdateCustomAgentRequestBodyProtocolPaths[];
|
|
718
832
|
/**
|
|
@@ -762,7 +876,7 @@ export class UpdateCustomAgentRequestBodyProtocol extends $dara.Model {
|
|
|
762
876
|
export class UpdateCustomAgentRequestBodyRuntimeCompute extends $dara.Model {
|
|
763
877
|
/**
|
|
764
878
|
* @remarks
|
|
765
|
-
* The
|
|
879
|
+
* The computing specification. Valid values:
|
|
766
880
|
* - INTERACTIVE: 1 vCPU and 2 GiB of memory.
|
|
767
881
|
* - STANDARD: 2 vCPUs and 4 GiB of memory.
|
|
768
882
|
* - HEAVY: 4 vCPUs and 8 GiB of memory.
|
|
@@ -797,10 +911,7 @@ export class UpdateCustomAgentRequestBodyRuntimeCompute extends $dara.Model {
|
|
|
797
911
|
export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
798
912
|
/**
|
|
799
913
|
* @remarks
|
|
800
|
-
* Specifies whether to enable elastic scaling.
|
|
801
|
-
* - true: Enabled.
|
|
802
|
-
* - false: Disabled.
|
|
803
|
-
* Default value: false. This default value applies when runtime is provided and this field is omitted.
|
|
914
|
+
* Specifies whether to enable elastic scaling. A value of true indicates that elastic scaling is enabled. A value of false indicates that elastic scaling is disabled. When runtime is provided, omitting this field defaults to false.
|
|
804
915
|
*
|
|
805
916
|
* This parameter is required.
|
|
806
917
|
*/
|
|
@@ -815,7 +926,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
815
926
|
maxConcurrentSessionsPerSandbox?: number;
|
|
816
927
|
/**
|
|
817
928
|
* @remarks
|
|
818
|
-
* The maximum number of runtime instances. Valid values: 1 to 100. The value cannot be less than minSandboxCount. When runtime is provided, omitting this field uses the default value of 10.
|
|
929
|
+
* The maximum number of runtime instances. Valid values: 1 to 100. The value cannot be less than the value of minSandboxCount. When runtime is provided, omitting this field uses the default value of 10.
|
|
819
930
|
*
|
|
820
931
|
* @example
|
|
821
932
|
* 10
|
|
@@ -823,7 +934,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
823
934
|
maxSandboxCount?: number;
|
|
824
935
|
/**
|
|
825
936
|
* @remarks
|
|
826
|
-
* The minimum number of runtime instances. Valid values: 1 to 100. The value cannot be greater than maxSandboxCount. When runtime is provided, omitting this field uses the default value of 1.
|
|
937
|
+
* The minimum number of runtime instances. Valid values: 1 to 100. The value cannot be greater than the value of maxSandboxCount. When runtime is provided, omitting this field uses the default value of 1.
|
|
827
938
|
*
|
|
828
939
|
* @example
|
|
829
940
|
* 1
|
|
@@ -831,7 +942,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
831
942
|
minSandboxCount?: number;
|
|
832
943
|
/**
|
|
833
944
|
* @remarks
|
|
834
|
-
* The session idle timeout in seconds. Valid values: 60 to 86400. When runtime is provided, omitting this field uses the default value of 600.
|
|
945
|
+
* The session idle timeout limit, in seconds. Valid values: 60 to 86400. When runtime is provided, omitting this field uses the default value of 600.
|
|
835
946
|
*
|
|
836
947
|
* @example
|
|
837
948
|
* 600
|
|
@@ -869,7 +980,7 @@ export class UpdateCustomAgentRequestBodyRuntimeHpa extends $dara.Model {
|
|
|
869
980
|
export class UpdateCustomAgentRequestBodyRuntimeSessionPolicy extends $dara.Model {
|
|
870
981
|
/**
|
|
871
982
|
* @remarks
|
|
872
|
-
* The name of the HTTP request header used by the session policy. This
|
|
983
|
+
* The name of the HTTP request header used by the session policy. This field is required when type is set to ISOLATED_HEADER_FIELD and must be a valid HTTP request header name. Omit this field for other policies.
|
|
873
984
|
*
|
|
874
985
|
* @example
|
|
875
986
|
* X-Session-Id
|
|
@@ -879,9 +990,9 @@ export class UpdateCustomAgentRequestBodyRuntimeSessionPolicy extends $dara.Mode
|
|
|
879
990
|
* @remarks
|
|
880
991
|
* The session policy type. Valid values:
|
|
881
992
|
* - AFFINITY: Session affinity.
|
|
882
|
-
* - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified
|
|
883
|
-
* - ISOLATED_COOKIE:
|
|
884
|
-
* - DISABLED:
|
|
993
|
+
* - ISOLATED_HEADER_FIELD: Associates sessions by using the request header specified in headerName.
|
|
994
|
+
* - ISOLATED_COOKIE: Not recommended.
|
|
995
|
+
* - DISABLED: A compatibility option. The response returns AFFINITY.
|
|
885
996
|
*
|
|
886
997
|
* This parameter is required.
|
|
887
998
|
*
|
|
@@ -922,12 +1033,12 @@ export class UpdateCustomAgentRequestBodyRuntime extends $dara.Model {
|
|
|
922
1033
|
compute?: UpdateCustomAgentRequestBodyRuntimeCompute;
|
|
923
1034
|
/**
|
|
924
1035
|
* @remarks
|
|
925
|
-
* The optional elastic policy. When runtime is provided, omitting hpa or its fields uses the default values: enabled is false, the minimum number of instances is 1, the maximum number of instances is 10, the maximum number of concurrent sessions per instance is 100, and the session idle timeout is 600 seconds. To retain the original policy during an update, provide the complete hpa configuration.
|
|
1036
|
+
* The optional elastic policy. When runtime is provided, omitting hpa or its fields uses the following default values: enabled is false, the minimum number of instances is 1, the maximum number of instances is 10, the maximum number of concurrent sessions per instance is 100, and the session idle timeout is 600 seconds. To retain the original policy during an update, provide the complete hpa configuration.
|
|
926
1037
|
*/
|
|
927
1038
|
hpa?: UpdateCustomAgentRequestBodyRuntimeHpa;
|
|
928
1039
|
/**
|
|
929
1040
|
* @remarks
|
|
930
|
-
* The session policy configuration used to set the session
|
|
1041
|
+
* The session policy configuration used to set the session affinity method for requests.
|
|
931
1042
|
*
|
|
932
1043
|
* This parameter is required.
|
|
933
1044
|
*/
|
|
@@ -969,17 +1080,22 @@ export class UpdateCustomAgentRequestBodyRuntime extends $dara.Model {
|
|
|
969
1080
|
export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
970
1081
|
/**
|
|
971
1082
|
* @remarks
|
|
972
|
-
* The list of additional AgenticFS mounts. The total number of AgenticFS mounts and
|
|
1083
|
+
* The list of additional AgenticFS mounts. The total number of AgenticFS mounts and OSS mounts cannot exceed 10. If you omit this field or pass an empty array [] during creation, no additional mounts are configured. During an update, omitting this field retains the original value, and passing an empty array [] clears the list. You cannot pass null.
|
|
973
1084
|
*/
|
|
974
1085
|
agenticFsMounts?: UpdateCustomAgentRequestBodyAgenticFsMounts[];
|
|
975
1086
|
/**
|
|
976
1087
|
* @remarks
|
|
977
|
-
* The deployment artifact configuration. You must specify the service listening port
|
|
1088
|
+
* The deployment artifact configuration. You must specify the service listening port and choose either code or container as the deployment method. During an update, you must provide the required fields for the selected method.
|
|
978
1089
|
*/
|
|
979
1090
|
artifact?: UpdateCustomAgentRequestBodyArtifact;
|
|
980
1091
|
/**
|
|
981
1092
|
* @remarks
|
|
982
|
-
* The
|
|
1093
|
+
* The custom image configuration. Omitting this field retains the original source. Submitting the complete configuration indicates an active update of the custom image. You do not need to submit this field if only the port and startup command change.
|
|
1094
|
+
*/
|
|
1095
|
+
customImage?: UpdateCustomAgentRequestBodyCustomImage;
|
|
1096
|
+
/**
|
|
1097
|
+
* @remarks
|
|
1098
|
+
* The description of the agent purpose. The description can be up to 1,024 characters in length after leading and trailing spaces are removed. If omitted, the original value is retained. Pass null to clear the description.
|
|
983
1099
|
*
|
|
984
1100
|
* @example
|
|
985
1101
|
* Custom agent that provides conversation services
|
|
@@ -992,17 +1108,17 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
992
1108
|
environment?: UpdateCustomAgentRequestBodyEnvironment;
|
|
993
1109
|
/**
|
|
994
1110
|
* @remarks
|
|
995
|
-
* The optional HTTP health check configuration. When
|
|
1111
|
+
* The optional HTTP health check configuration. When this object is provided, the port field is required, and other unspecified fields use default values. Omitting this object during creation means no health check is configured. During an update, omitting this top-level field retains the original configuration, and passing null removes the health check.
|
|
996
1112
|
*/
|
|
997
1113
|
healthCheck?: UpdateCustomAgentRequestBodyHealthCheck;
|
|
998
1114
|
/**
|
|
999
1115
|
* @remarks
|
|
1000
|
-
* The log delivery configuration for the agent. You can specify the Simple Log Service (SLS) project and
|
|
1116
|
+
* The log delivery configuration for the agent. You can specify the Simple Log Service (SLS) project and Logstore. After a successful creation or update, verify that logs are delivered as expected.
|
|
1001
1117
|
*/
|
|
1002
1118
|
logging?: UpdateCustomAgentRequestBodyLogging;
|
|
1003
1119
|
/**
|
|
1004
1120
|
* @remarks
|
|
1005
|
-
* The name of the
|
|
1121
|
+
* The custom name of the agent. The name must be 1 to 128 characters in length after leading and trailing spaces are removed, and must be unique within the same workspace. Omitting this field retains the original value. You cannot pass null or an empty name.
|
|
1006
1122
|
*
|
|
1007
1123
|
* @example
|
|
1008
1124
|
* my-custom-agent
|
|
@@ -1010,7 +1126,7 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1010
1126
|
name?: string;
|
|
1011
1127
|
/**
|
|
1012
1128
|
* @remarks
|
|
1013
|
-
* The network access configuration for the agent. When
|
|
1129
|
+
* The network access configuration for the agent. When this object is provided, omitted access items are treated as allowed. The actual accessible scope is still restricted by the network configuration of the workspace. To retain the original restrictions during an update, specify both accessInternet and accessVpc.
|
|
1014
1130
|
*/
|
|
1015
1131
|
network?: UpdateCustomAgentRequestBodyNetwork;
|
|
1016
1132
|
/**
|
|
@@ -1020,17 +1136,17 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1020
1136
|
observability?: UpdateCustomAgentRequestBodyObservability;
|
|
1021
1137
|
/**
|
|
1022
1138
|
* @remarks
|
|
1023
|
-
* The OSS
|
|
1139
|
+
* The list of Object Storage Service (OSS) mounts. The total number of OSS mounts and agenticFsMounts cannot exceed 10. For each item, you must specify bucketName, path, and mountPath. Mount targets cannot be duplicated or overlap with each other. During an update, this list is replaced entirely. Pass an empty array to clear all mounts.
|
|
1024
1140
|
*/
|
|
1025
1141
|
ossMounts?: UpdateCustomAgentRequestBodyOssMounts[];
|
|
1026
1142
|
/**
|
|
1027
1143
|
* @remarks
|
|
1028
|
-
* The list of invocation protocols supported by the agent. Each item includes the protocol type and optional paths and request headers.
|
|
1144
|
+
* The list of invocation protocols supported by the agent. Each item includes the protocol type and optional paths and request headers. During an update, this list is replaced entirely.
|
|
1029
1145
|
*/
|
|
1030
1146
|
protocol?: UpdateCustomAgentRequestBodyProtocol[];
|
|
1031
1147
|
/**
|
|
1032
1148
|
* @remarks
|
|
1033
|
-
* The ARN of the RAM role used
|
|
1149
|
+
* The Alibaba Cloud Resource Name (ARN) of the Resource Access Management (RAM) role used by the agent to access user cloud resources. The role must have the required permissions for the accessed cloud resources.
|
|
1034
1150
|
*
|
|
1035
1151
|
* @example
|
|
1036
1152
|
* acs:ram::1234567890123456:role/agentcore-runtime-role
|
|
@@ -1038,12 +1154,12 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1038
1154
|
roleArn?: string;
|
|
1039
1155
|
/**
|
|
1040
1156
|
* @remarks
|
|
1041
|
-
* The runtime configuration. When this object is provided, compute and sessionPolicy must be present
|
|
1157
|
+
* The runtime configuration. When this object is provided, both compute and sessionPolicy must be present. To retain the original elastic policy, provide the complete hpa configuration. Omitting the top-level runtime field retains the original configuration.
|
|
1042
1158
|
*/
|
|
1043
1159
|
runtime?: UpdateCustomAgentRequestBodyRuntime;
|
|
1044
1160
|
/**
|
|
1045
1161
|
* @remarks
|
|
1046
|
-
* If this
|
|
1162
|
+
* If this field is not passed during an update, the original value is retained. Explicitly set this field to true or false. The system does not automatically append false. The new contract rejects null and invalid types. Existing compatibility endpoints are processed according to migration agreements.
|
|
1047
1163
|
*
|
|
1048
1164
|
* @example
|
|
1049
1165
|
* true
|
|
@@ -1053,6 +1169,7 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1053
1169
|
return {
|
|
1054
1170
|
agenticFsMounts: 'agenticFsMounts',
|
|
1055
1171
|
artifact: 'artifact',
|
|
1172
|
+
customImage: 'customImage',
|
|
1056
1173
|
description: 'description',
|
|
1057
1174
|
environment: 'environment',
|
|
1058
1175
|
healthCheck: 'healthCheck',
|
|
@@ -1072,6 +1189,7 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1072
1189
|
return {
|
|
1073
1190
|
agenticFsMounts: { 'type': 'array', 'itemType': UpdateCustomAgentRequestBodyAgenticFsMounts },
|
|
1074
1191
|
artifact: UpdateCustomAgentRequestBodyArtifact,
|
|
1192
|
+
customImage: UpdateCustomAgentRequestBodyCustomImage,
|
|
1075
1193
|
description: 'string',
|
|
1076
1194
|
environment: UpdateCustomAgentRequestBodyEnvironment,
|
|
1077
1195
|
healthCheck: UpdateCustomAgentRequestBodyHealthCheck,
|
|
@@ -1094,6 +1212,9 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1094
1212
|
if(this.artifact && typeof (this.artifact as any).validate === 'function') {
|
|
1095
1213
|
(this.artifact as any).validate();
|
|
1096
1214
|
}
|
|
1215
|
+
if(this.customImage && typeof (this.customImage as any).validate === 'function') {
|
|
1216
|
+
(this.customImage as any).validate();
|
|
1217
|
+
}
|
|
1097
1218
|
if(this.environment && typeof (this.environment as any).validate === 'function') {
|
|
1098
1219
|
(this.environment as any).validate();
|
|
1099
1220
|
}
|
|
@@ -1129,7 +1250,7 @@ export class UpdateCustomAgentRequestBody extends $dara.Model {
|
|
|
1129
1250
|
export class UpdateCustomAgentRequest extends $dara.Model {
|
|
1130
1251
|
/**
|
|
1131
1252
|
* @remarks
|
|
1132
|
-
* The update configuration for the custom agent.
|
|
1253
|
+
* The update configuration for the custom agent. Specify at least one top-level field. Omitted top-level fields retain their original values. When you provide a configuration object, you must specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole.
|
|
1133
1254
|
*/
|
|
1134
1255
|
body?: UpdateCustomAgentRequestBody;
|
|
1135
1256
|
/**
|