@alicloud/agentloop20260520 2.5.3 → 2.6.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 +56 -2
- package/dist/client.js +168 -2
- package/dist/client.js.map +1 -1
- package/dist/models/GetExperimentPlanResponseBody.d.ts +3 -0
- package/dist/models/GetExperimentPlanResponseBody.js.map +1 -1
- package/dist/models/ListEvaluationTasksRequest.d.ts +6 -6
- package/dist/models/ListEvaluationTasksResponseBody.d.ts +10 -10
- package/dist/models/ListTagResourcesRequest.d.ts +72 -0
- package/dist/models/ListTagResourcesRequest.js +91 -0
- package/dist/models/ListTagResourcesRequest.js.map +1 -0
- package/dist/models/ListTagResourcesResponse.d.ts +19 -0
- package/dist/models/ListTagResourcesResponse.js +69 -0
- package/dist/models/ListTagResourcesResponse.js.map +1 -0
- package/dist/models/ListTagResourcesResponseBody.d.ts +86 -0
- package/dist/models/ListTagResourcesResponseBody.js +90 -0
- package/dist/models/ListTagResourcesResponseBody.js.map +1 -0
- package/dist/models/ListTagResourcesShrinkRequest.d.ts +44 -0
- package/dist/models/ListTagResourcesShrinkRequest.js +64 -0
- package/dist/models/ListTagResourcesShrinkRequest.js.map +1 -0
- package/dist/models/RunStrategies.d.ts +9 -0
- package/dist/models/RunStrategies.js +6 -0
- package/dist/models/RunStrategies.js.map +1 -1
- package/dist/models/SelectedDataStrategy.d.ts +39 -0
- package/dist/models/SelectedDataStrategy.js +65 -0
- package/dist/models/SelectedDataStrategy.js.map +1 -0
- package/dist/models/TagResourcesRequest.d.ts +79 -0
- package/dist/models/TagResourcesRequest.js +89 -0
- package/dist/models/TagResourcesRequest.js.map +1 -0
- package/dist/models/TagResourcesResponse.d.ts +19 -0
- package/dist/models/TagResourcesResponse.js +69 -0
- package/dist/models/TagResourcesResponse.js.map +1 -0
- package/dist/models/TagResourcesResponseBody.d.ts +21 -0
- package/dist/models/TagResourcesResponseBody.js +58 -0
- package/dist/models/TagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesRequest.d.ts +49 -0
- package/dist/models/UntagResourcesRequest.js +70 -0
- package/dist/models/UntagResourcesRequest.js.map +1 -0
- package/dist/models/UntagResourcesResponse.d.ts +19 -0
- package/dist/models/UntagResourcesResponse.js +69 -0
- package/dist/models/UntagResourcesResponse.js.map +1 -0
- package/dist/models/UntagResourcesResponseBody.d.ts +21 -0
- package/dist/models/UntagResourcesResponseBody.js +58 -0
- package/dist/models/UntagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesShrinkRequest.d.ts +49 -0
- package/dist/models/UntagResourcesShrinkRequest.js +64 -0
- package/dist/models/UntagResourcesShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +15 -0
- package/dist/models/model.js +38 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +189 -2
- package/src/models/GetExperimentPlanResponseBody.ts +3 -0
- package/src/models/ListEvaluationTasksRequest.ts +6 -6
- package/src/models/ListEvaluationTasksResponseBody.ts +10 -10
- package/src/models/ListTagResourcesRequest.ts +109 -0
- package/src/models/ListTagResourcesResponse.ts +40 -0
- package/src/models/ListTagResourcesResponseBody.ts +122 -0
- package/src/models/ListTagResourcesShrinkRequest.ts +63 -0
- package/src/models/RunStrategies.ts +14 -0
- package/src/models/SelectedDataStrategy.ts +59 -0
- package/src/models/TagResourcesRequest.ts +114 -0
- package/src/models/TagResourcesResponse.ts +40 -0
- package/src/models/TagResourcesResponseBody.ts +34 -0
- package/src/models/UntagResourcesRequest.ts +74 -0
- package/src/models/UntagResourcesResponse.ts +40 -0
- package/src/models/UntagResourcesResponseBody.ts +34 -0
- package/src/models/UntagResourcesShrinkRequest.ts +68 -0
- package/src/models/model.ts +15 -0
package/src/client.ts
CHANGED
|
@@ -2727,7 +2727,7 @@ export default class Client extends OpenApi {
|
|
|
2727
2727
|
}
|
|
2728
2728
|
|
|
2729
2729
|
/**
|
|
2730
|
-
* Queries
|
|
2730
|
+
* Queries the list of evaluation tasks.
|
|
2731
2731
|
*
|
|
2732
2732
|
* @param request - ListEvaluationTasksRequest
|
|
2733
2733
|
* @param headers - map
|
|
@@ -2788,7 +2788,7 @@ export default class Client extends OpenApi {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
|
|
2790
2790
|
/**
|
|
2791
|
-
* Queries
|
|
2791
|
+
* Queries the list of evaluation tasks.
|
|
2792
2792
|
*
|
|
2793
2793
|
* @param request - ListEvaluationTasksRequest
|
|
2794
2794
|
* @returns ListEvaluationTasksResponse
|
|
@@ -3321,6 +3321,73 @@ export default class Client extends OpenApi {
|
|
|
3321
3321
|
return await this.listPipelinesWithOptions(agentSpace, request, headers, runtime);
|
|
3322
3322
|
}
|
|
3323
3323
|
|
|
3324
|
+
/**
|
|
3325
|
+
* Lists the resources associated with tags.
|
|
3326
|
+
*
|
|
3327
|
+
* @param tmpReq - ListTagResourcesRequest
|
|
3328
|
+
* @param headers - map
|
|
3329
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3330
|
+
* @returns ListTagResourcesResponse
|
|
3331
|
+
*/
|
|
3332
|
+
async listTagResourcesWithOptions(tmpReq: $_model.ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagResourcesResponse> {
|
|
3333
|
+
tmpReq.validate();
|
|
3334
|
+
let request = new $_model.ListTagResourcesShrinkRequest({ });
|
|
3335
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3336
|
+
if (!$dara.isNull(tmpReq.resourceId)) {
|
|
3337
|
+
request.resourceIdShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceId, "resourceId", "json");
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
3341
|
+
request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "tag", "json");
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3344
|
+
let query : {[key: string ]: any} = { };
|
|
3345
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
3346
|
+
query["nextToken"] = request.nextToken;
|
|
3347
|
+
}
|
|
3348
|
+
|
|
3349
|
+
if (!$dara.isNull(request.resourceIdShrink)) {
|
|
3350
|
+
query["resourceId"] = request.resourceIdShrink;
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
3354
|
+
query["resourceType"] = request.resourceType;
|
|
3355
|
+
}
|
|
3356
|
+
|
|
3357
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
3358
|
+
query["tag"] = request.tagShrink;
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3362
|
+
headers: headers,
|
|
3363
|
+
query: OpenApiUtil.query(query),
|
|
3364
|
+
});
|
|
3365
|
+
let params = new $OpenApiUtil.Params({
|
|
3366
|
+
action: "ListTagResources",
|
|
3367
|
+
version: "2026-05-20",
|
|
3368
|
+
protocol: "HTTPS",
|
|
3369
|
+
pathname: `/tags`,
|
|
3370
|
+
method: "GET",
|
|
3371
|
+
authType: "AK",
|
|
3372
|
+
style: "ROA",
|
|
3373
|
+
reqBodyType: "json",
|
|
3374
|
+
bodyType: "json",
|
|
3375
|
+
});
|
|
3376
|
+
return $dara.cast<$_model.ListTagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
/**
|
|
3380
|
+
* Lists the resources associated with tags.
|
|
3381
|
+
*
|
|
3382
|
+
* @param request - ListTagResourcesRequest
|
|
3383
|
+
* @returns ListTagResourcesResponse
|
|
3384
|
+
*/
|
|
3385
|
+
async listTagResources(request: $_model.ListTagResourcesRequest): Promise<$_model.ListTagResourcesResponse> {
|
|
3386
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3387
|
+
let headers : {[key: string ]: string} = { };
|
|
3388
|
+
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3324
3391
|
/**
|
|
3325
3392
|
* Pauses a pipeline.
|
|
3326
3393
|
*
|
|
@@ -3608,6 +3675,59 @@ export default class Client extends OpenApi {
|
|
|
3608
3675
|
return await this.searchContextWithOptions(agentSpace, contextStoreName, request, headers, runtime);
|
|
3609
3676
|
}
|
|
3610
3677
|
|
|
3678
|
+
/**
|
|
3679
|
+
* Adds or updates tags.
|
|
3680
|
+
*
|
|
3681
|
+
* @param request - TagResourcesRequest
|
|
3682
|
+
* @param headers - map
|
|
3683
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3684
|
+
* @returns TagResourcesResponse
|
|
3685
|
+
*/
|
|
3686
|
+
async tagResourcesWithOptions(request: $_model.TagResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse> {
|
|
3687
|
+
request.validate();
|
|
3688
|
+
let body : {[key: string ]: any} = { };
|
|
3689
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
3690
|
+
body["resourceId"] = request.resourceId;
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
3694
|
+
body["resourceType"] = request.resourceType;
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
if (!$dara.isNull(request.tag)) {
|
|
3698
|
+
body["tag"] = request.tag;
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3702
|
+
headers: headers,
|
|
3703
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3704
|
+
});
|
|
3705
|
+
let params = new $OpenApiUtil.Params({
|
|
3706
|
+
action: "TagResources",
|
|
3707
|
+
version: "2026-05-20",
|
|
3708
|
+
protocol: "HTTPS",
|
|
3709
|
+
pathname: `/tags`,
|
|
3710
|
+
method: "POST",
|
|
3711
|
+
authType: "AK",
|
|
3712
|
+
style: "ROA",
|
|
3713
|
+
reqBodyType: "json",
|
|
3714
|
+
bodyType: "json",
|
|
3715
|
+
});
|
|
3716
|
+
return $dara.cast<$_model.TagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3719
|
+
/**
|
|
3720
|
+
* Adds or updates tags.
|
|
3721
|
+
*
|
|
3722
|
+
* @param request - TagResourcesRequest
|
|
3723
|
+
* @returns TagResourcesResponse
|
|
3724
|
+
*/
|
|
3725
|
+
async tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse> {
|
|
3726
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3727
|
+
let headers : {[key: string ]: string} = { };
|
|
3728
|
+
return await this.tagResourcesWithOptions(request, headers, runtime);
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3611
3731
|
/**
|
|
3612
3732
|
* Terminates a pipeline.
|
|
3613
3733
|
*
|
|
@@ -3653,6 +3773,73 @@ export default class Client extends OpenApi {
|
|
|
3653
3773
|
return await this.terminatePipelineWithOptions(agentSpace, pipelineName, request, headers, runtime);
|
|
3654
3774
|
}
|
|
3655
3775
|
|
|
3776
|
+
/**
|
|
3777
|
+
* Removes tags.
|
|
3778
|
+
*
|
|
3779
|
+
* @param tmpReq - UntagResourcesRequest
|
|
3780
|
+
* @param headers - map
|
|
3781
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3782
|
+
* @returns UntagResourcesResponse
|
|
3783
|
+
*/
|
|
3784
|
+
async untagResourcesWithOptions(tmpReq: $_model.UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse> {
|
|
3785
|
+
tmpReq.validate();
|
|
3786
|
+
let request = new $_model.UntagResourcesShrinkRequest({ });
|
|
3787
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3788
|
+
if (!$dara.isNull(tmpReq.resourceId)) {
|
|
3789
|
+
request.resourceIdShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceId, "resourceId", "json");
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
if (!$dara.isNull(tmpReq.tagKey)) {
|
|
3793
|
+
request.tagKeyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagKey, "tagKey", "json");
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
let query : {[key: string ]: any} = { };
|
|
3797
|
+
if (!$dara.isNull(request.all)) {
|
|
3798
|
+
query["all"] = request.all;
|
|
3799
|
+
}
|
|
3800
|
+
|
|
3801
|
+
if (!$dara.isNull(request.resourceIdShrink)) {
|
|
3802
|
+
query["resourceId"] = request.resourceIdShrink;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
3806
|
+
query["resourceType"] = request.resourceType;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
if (!$dara.isNull(request.tagKeyShrink)) {
|
|
3810
|
+
query["tagKey"] = request.tagKeyShrink;
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3814
|
+
headers: headers,
|
|
3815
|
+
query: OpenApiUtil.query(query),
|
|
3816
|
+
});
|
|
3817
|
+
let params = new $OpenApiUtil.Params({
|
|
3818
|
+
action: "UntagResources",
|
|
3819
|
+
version: "2026-05-20",
|
|
3820
|
+
protocol: "HTTPS",
|
|
3821
|
+
pathname: `/tags`,
|
|
3822
|
+
method: "DELETE",
|
|
3823
|
+
authType: "AK",
|
|
3824
|
+
style: "ROA",
|
|
3825
|
+
reqBodyType: "json",
|
|
3826
|
+
bodyType: "json",
|
|
3827
|
+
});
|
|
3828
|
+
return $dara.cast<$_model.UntagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
/**
|
|
3832
|
+
* Removes tags.
|
|
3833
|
+
*
|
|
3834
|
+
* @param request - UntagResourcesRequest
|
|
3835
|
+
* @returns UntagResourcesResponse
|
|
3836
|
+
*/
|
|
3837
|
+
async untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse> {
|
|
3838
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3839
|
+
let headers : {[key: string ]: string} = { };
|
|
3840
|
+
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
3841
|
+
}
|
|
3842
|
+
|
|
3656
3843
|
/**
|
|
3657
3844
|
* Updates an AgentSpace.
|
|
3658
3845
|
*
|
|
@@ -64,6 +64,9 @@ export class GetExperimentPlanResponseBody extends $dara.Model {
|
|
|
64
64
|
/**
|
|
65
65
|
* @remarks
|
|
66
66
|
* The name of the associated data processing pipeline. This field is empty if no pipeline is associated.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* dify-log
|
|
67
70
|
*/
|
|
68
71
|
pipelineName?: string;
|
|
69
72
|
/**
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListEvaluationTasksRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The AgentSpace
|
|
8
|
+
* The name of the AgentSpace.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* prod-agentspace
|
|
@@ -13,7 +13,7 @@ export class ListEvaluationTasksRequest extends $dara.Model {
|
|
|
13
13
|
agentSpace?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The filter condition for the task source. If
|
|
16
|
+
* The filter condition for the task source. If not specified, tasks from the default source are queried.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* default
|
|
@@ -21,7 +21,7 @@ export class ListEvaluationTasksRequest extends $dara.Model {
|
|
|
21
21
|
channel?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The data source type of the evaluation object.
|
|
24
|
+
* The data source type of the evaluation object. Use trace for trace evaluation.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* trace
|
|
@@ -29,7 +29,7 @@ export class ListEvaluationTasksRequest extends $dara.Model {
|
|
|
29
29
|
dataType?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
* The number of entries per page.
|
|
32
|
+
* The number of entries to return per page. The default value is 20, and the maximum value is 100.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* 20
|
|
@@ -53,7 +53,7 @@ export class ListEvaluationTasksRequest extends $dara.Model {
|
|
|
53
53
|
status?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The evaluation task
|
|
56
|
+
* The mode of the evaluation task. If not specified, the backend defaults to batch.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* batch
|
|
@@ -61,7 +61,7 @@ export class ListEvaluationTasksRequest extends $dara.Model {
|
|
|
61
61
|
taskMode?: string;
|
|
62
62
|
/**
|
|
63
63
|
* @remarks
|
|
64
|
-
* The fuzzy
|
|
64
|
+
* The fuzzy search condition for the task name.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* trace_task_completion_eval
|
|
@@ -14,7 +14,7 @@ export class ListEvaluationTasksResponseBodyEvaluationTasks extends $dara.Model
|
|
|
14
14
|
config?: { [key: string]: string };
|
|
15
15
|
/**
|
|
16
16
|
* @remarks
|
|
17
|
-
* The creation time,
|
|
17
|
+
* The creation time, represented as a UNIX timestamp in seconds.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* 1782816000
|
|
@@ -30,15 +30,15 @@ export class ListEvaluationTasksResponseBodyEvaluationTasks extends $dara.Model
|
|
|
30
30
|
dataType?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* The
|
|
33
|
+
* The evaluation task description.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
|
-
* Evaluate the
|
|
36
|
+
* Evaluate the completion rate of online agent trace tasks
|
|
37
37
|
*/
|
|
38
38
|
description?: string;
|
|
39
39
|
/**
|
|
40
40
|
* @remarks
|
|
41
|
-
* The evaluator configuration summary,
|
|
41
|
+
* The evaluator configuration summary, as a JSON string.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* [{"evaluatorRef":"Builtin.agent_task_completion"}]
|
|
@@ -46,7 +46,7 @@ export class ListEvaluationTasksResponseBodyEvaluationTasks extends $dara.Model
|
|
|
46
46
|
evaluators?: string;
|
|
47
47
|
/**
|
|
48
48
|
* @remarks
|
|
49
|
-
* The structured run strategy
|
|
49
|
+
* The structured configuration of the run strategy, including the parsed backfill strategy and continuous evaluation strategy.
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* {"backfill":{"enabled":true,"startTime":1782816000000,"endTime":1782902400000},"continuous":{"enabled":true,"intervalUnit":"HOUR","intervalValue":1,"dataDelayMinutes":5}}
|
|
@@ -62,7 +62,7 @@ export class ListEvaluationTasksResponseBodyEvaluationTasks extends $dara.Model
|
|
|
62
62
|
status?: string;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* The key-value pairs of task tags.
|
|
65
|
+
* The key-value pairs of task tags. Empty if not set.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* {"serviceId":"checkout-service","env":"prod"}
|
|
@@ -94,7 +94,7 @@ export class ListEvaluationTasksResponseBodyEvaluationTasks extends $dara.Model
|
|
|
94
94
|
taskName?: string;
|
|
95
95
|
/**
|
|
96
96
|
* @remarks
|
|
97
|
-
* The last update time,
|
|
97
|
+
* The last update time, represented as a UNIX timestamp in seconds.
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
100
|
* 1782816600
|
|
@@ -163,7 +163,7 @@ export class ListEvaluationTasksResponseBody extends $dara.Model {
|
|
|
163
163
|
evaluationTasks?: ListEvaluationTasksResponseBodyEvaluationTasks[];
|
|
164
164
|
/**
|
|
165
165
|
* @remarks
|
|
166
|
-
* The number of entries per page used
|
|
166
|
+
* The number of entries per page used for this request.
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
169
|
* 20
|
|
@@ -171,7 +171,7 @@ export class ListEvaluationTasksResponseBody extends $dara.Model {
|
|
|
171
171
|
maxResults?: number;
|
|
172
172
|
/**
|
|
173
173
|
* @remarks
|
|
174
|
-
* The pagination token for the next page. An empty value indicates that
|
|
174
|
+
* The pagination token for the next page. An empty value indicates that there is no next page.
|
|
175
175
|
*
|
|
176
176
|
* @example
|
|
177
177
|
* eyJsYXN0SWQiOjEwMSwib2Zmc2V0IjoyMH0=
|
|
@@ -187,7 +187,7 @@ export class ListEvaluationTasksResponseBody extends $dara.Model {
|
|
|
187
187
|
requestId?: string;
|
|
188
188
|
/**
|
|
189
189
|
* @remarks
|
|
190
|
-
* The total number of records. The total count
|
|
190
|
+
* The total number of records. The backend queries the total count only on the first page, so this field may be empty on subsequent pages.
|
|
191
191
|
*
|
|
192
192
|
* @example
|
|
193
193
|
* 126
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesRequestTag extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The tag key.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* key1
|
|
12
|
+
*/
|
|
13
|
+
key?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The tag value.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* value1
|
|
20
|
+
*/
|
|
21
|
+
value?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
key: 'key',
|
|
25
|
+
value: 'value',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
key: 'string',
|
|
32
|
+
value: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class ListTagResourcesRequest extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The pagination token. An empty value indicates that no additional pages exist.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* eyJuZXh0IjoiNDAifQ==
|
|
52
|
+
*/
|
|
53
|
+
nextToken?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The list of resource IDs.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ["space-a","space-b"]
|
|
60
|
+
*/
|
|
61
|
+
resourceId?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The resource type. Set the value to agentspace.
|
|
65
|
+
*
|
|
66
|
+
* This parameter is required.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* agentspace
|
|
70
|
+
*/
|
|
71
|
+
resourceType?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The tag filter conditions. Multiple conditions are combined with the AND operator. At least one of resourceId and tag must be specified.
|
|
75
|
+
*/
|
|
76
|
+
tag?: ListTagResourcesRequestTag[];
|
|
77
|
+
static names(): { [key: string]: string } {
|
|
78
|
+
return {
|
|
79
|
+
nextToken: 'nextToken',
|
|
80
|
+
resourceId: 'resourceId',
|
|
81
|
+
resourceType: 'resourceType',
|
|
82
|
+
tag: 'tag',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static types(): { [key: string]: any } {
|
|
87
|
+
return {
|
|
88
|
+
nextToken: 'string',
|
|
89
|
+
resourceId: { 'type': 'array', 'itemType': 'string' },
|
|
90
|
+
resourceType: 'string',
|
|
91
|
+
tag: { 'type': 'array', 'itemType': ListTagResourcesRequestTag },
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
validate() {
|
|
96
|
+
if(Array.isArray(this.resourceId)) {
|
|
97
|
+
$dara.Model.validateArray(this.resourceId);
|
|
98
|
+
}
|
|
99
|
+
if(Array.isArray(this.tag)) {
|
|
100
|
+
$dara.Model.validateArray(this.tag);
|
|
101
|
+
}
|
|
102
|
+
super.validate();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
constructor(map?: { [key: string]: any }) {
|
|
106
|
+
super(map);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListTagResourcesResponseBody } from "./ListTagResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListTagResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListTagResourcesResponseBody;
|
|
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: ListTagResourcesResponseBody,
|
|
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
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesResponseBodyTagResources extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The resource ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* space-a
|
|
12
|
+
*/
|
|
13
|
+
resourceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The resource type. Set the value to agentspace.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* agentspace
|
|
20
|
+
*/
|
|
21
|
+
resourceType?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The tag key.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* key1
|
|
28
|
+
*/
|
|
29
|
+
tagKey?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The tag value.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* value1
|
|
36
|
+
*/
|
|
37
|
+
tagValue?: string;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
resourceId: 'resourceId',
|
|
41
|
+
resourceType: 'resourceType',
|
|
42
|
+
tagKey: 'tagKey',
|
|
43
|
+
tagValue: 'tagValue',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
resourceId: 'string',
|
|
50
|
+
resourceType: 'string',
|
|
51
|
+
tagKey: 'string',
|
|
52
|
+
tagValue: 'string',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class ListTagResourcesResponseBody extends $dara.Model {
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The pagination token. An empty value indicates that no additional pages exist.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* eyJsYXN0SWQiOjEyMH0=
|
|
72
|
+
*/
|
|
73
|
+
nextToken?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The request ID.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* EB27D183-8F6C-5C5A-A6A3-E0508AF54F78
|
|
80
|
+
*/
|
|
81
|
+
requestId?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The list of tag information.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* [{
|
|
88
|
+
* "resourceType": "agentspace",
|
|
89
|
+
* "resourceId": "space-a",
|
|
90
|
+
* "tagKey": "key1",
|
|
91
|
+
* "tagValue": "value1"
|
|
92
|
+
* }]
|
|
93
|
+
*/
|
|
94
|
+
tagResources?: ListTagResourcesResponseBodyTagResources[];
|
|
95
|
+
static names(): { [key: string]: string } {
|
|
96
|
+
return {
|
|
97
|
+
nextToken: 'nextToken',
|
|
98
|
+
requestId: 'requestId',
|
|
99
|
+
tagResources: 'tagResources',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static types(): { [key: string]: any } {
|
|
104
|
+
return {
|
|
105
|
+
nextToken: 'string',
|
|
106
|
+
requestId: 'string',
|
|
107
|
+
tagResources: { 'type': 'array', 'itemType': ListTagResourcesResponseBodyTagResources },
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
validate() {
|
|
112
|
+
if(Array.isArray(this.tagResources)) {
|
|
113
|
+
$dara.Model.validateArray(this.tagResources);
|
|
114
|
+
}
|
|
115
|
+
super.validate();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
constructor(map?: { [key: string]: any }) {
|
|
119
|
+
super(map);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListTagResourcesShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The pagination token. An empty value indicates that no additional pages exist.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* eyJuZXh0IjoiNDAifQ==
|
|
12
|
+
*/
|
|
13
|
+
nextToken?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The list of resource IDs.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ["space-a","space-b"]
|
|
20
|
+
*/
|
|
21
|
+
resourceIdShrink?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The resource type. Set the value to agentspace.
|
|
25
|
+
*
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* agentspace
|
|
30
|
+
*/
|
|
31
|
+
resourceType?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The tag filter conditions. Multiple conditions are combined with the AND operator. At least one of resourceId and tag must be specified.
|
|
35
|
+
*/
|
|
36
|
+
tagShrink?: string;
|
|
37
|
+
static names(): { [key: string]: string } {
|
|
38
|
+
return {
|
|
39
|
+
nextToken: 'nextToken',
|
|
40
|
+
resourceIdShrink: 'resourceId',
|
|
41
|
+
resourceType: 'resourceType',
|
|
42
|
+
tagShrink: 'tag',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static types(): { [key: string]: any } {
|
|
47
|
+
return {
|
|
48
|
+
nextToken: 'string',
|
|
49
|
+
resourceIdShrink: 'string',
|
|
50
|
+
resourceType: 'string',
|
|
51
|
+
tagShrink: 'string',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
validate() {
|
|
56
|
+
super.validate();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
constructor(map?: { [key: string]: any }) {
|
|
60
|
+
super(map);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|