@alicloud/dms20250414 4.2.1 → 4.3.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 +31 -2
- package/dist/client.js +67 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AgenticDatabase.d.ts +0 -103
- package/dist/models/AgenticDatabase.js.map +1 -1
- package/dist/models/AgenticDatabaseEngineMeta.d.ts +0 -28
- package/dist/models/AgenticDatabaseEngineMeta.js.map +1 -1
- package/dist/models/AgenticTableBaseInfo.d.ts +0 -60
- package/dist/models/AgenticTableBaseInfo.js.map +1 -1
- package/dist/models/AgenticTableEngineMeta.d.ts +0 -84
- package/dist/models/AgenticTableEngineMeta.js.map +1 -1
- package/dist/models/AgenticTableIndex.d.ts +0 -49
- package/dist/models/AgenticTableIndex.js.map +1 -1
- package/dist/models/CreateDataAgentSkillMetaRequest.d.ts +12 -6
- package/dist/models/CreateDataAgentSkillMetaRequest.js +2 -0
- package/dist/models/CreateDataAgentSkillMetaRequest.js.map +1 -1
- package/dist/models/CreateDataAgentSkillMetaResponseBody.d.ts +5 -8
- package/dist/models/CreateDataAgentSkillMetaResponseBody.js.map +1 -1
- package/dist/models/ListAgenticSecurityPoliciesRequest.d.ts +45 -0
- package/dist/models/ListAgenticSecurityPoliciesRequest.js +64 -0
- package/dist/models/ListAgenticSecurityPoliciesRequest.js.map +1 -0
- package/dist/models/ListAgenticSecurityPoliciesResponse.d.ts +19 -0
- package/dist/models/ListAgenticSecurityPoliciesResponse.js +69 -0
- package/dist/models/ListAgenticSecurityPoliciesResponse.js.map +1 -0
- package/dist/models/ListAgenticSecurityPoliciesResponseBody.d.ts +160 -0
- package/dist/models/ListAgenticSecurityPoliciesResponseBody.js +110 -0
- package/dist/models/ListAgenticSecurityPoliciesResponseBody.js.map +1 -0
- package/dist/models/UpdateAgenticDataSourceRequest.d.ts +31 -16
- package/dist/models/UpdateAgenticDataSourceRequest.js.map +1 -1
- package/dist/models/UpdateAgenticDataSourceResponseBody.d.ts +21 -21
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +20 -12
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +74 -2
- package/src/models/AgenticDatabase.ts +0 -103
- package/src/models/AgenticDatabaseEngineMeta.ts +0 -28
- package/src/models/AgenticTableBaseInfo.ts +0 -60
- package/src/models/AgenticTableEngineMeta.ts +0 -84
- package/src/models/AgenticTableIndex.ts +0 -49
- package/src/models/CreateDataAgentSkillMetaRequest.ts +14 -6
- package/src/models/CreateDataAgentSkillMetaResponseBody.ts +5 -8
- package/src/models/ListAgenticSecurityPoliciesRequest.ts +64 -0
- package/src/models/ListAgenticSecurityPoliciesResponse.ts +40 -0
- package/src/models/ListAgenticSecurityPoliciesResponseBody.ts +216 -0
- package/src/models/UpdateAgenticDataSourceRequest.ts +31 -16
- package/src/models/UpdateAgenticDataSourceResponseBody.ts +21 -21
- package/src/models/model.ts +4 -0
|
@@ -3,101 +3,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class AgenticTableEngineMeta extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The checksum of the table metadata.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* 9f86d081884c7d65****
|
|
12
|
-
*/
|
|
13
6
|
checksum?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @remarks
|
|
16
|
-
* The time when the table was created. The format is yyyy-MM-dd HH:mm:ss.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* 2025-01-01 10:00:00
|
|
20
|
-
*/
|
|
21
7
|
createTime?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @remarks
|
|
24
|
-
* The data size of the table. Unit: bytes.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* 786432
|
|
28
|
-
*/
|
|
29
8
|
dataBytes?: number;
|
|
30
|
-
/**
|
|
31
|
-
* @remarks
|
|
32
|
-
* The character set encoding of the table.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* utf8mb4
|
|
36
|
-
*/
|
|
37
9
|
encoding?: string;
|
|
38
|
-
/**
|
|
39
|
-
* @remarks
|
|
40
|
-
* The storage engine of the table.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* InnoDB
|
|
44
|
-
*/
|
|
45
10
|
engine?: string;
|
|
46
|
-
/**
|
|
47
|
-
* @remarks
|
|
48
|
-
* The full checksum of the table metadata.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* 2c26b46b68ffc68f****
|
|
52
|
-
*/
|
|
53
11
|
fullChecksum?: string;
|
|
54
|
-
/**
|
|
55
|
-
* @remarks
|
|
56
|
-
* The index size of the table. Unit: bytes.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* 262144
|
|
60
|
-
*/
|
|
61
12
|
indexBytes?: number;
|
|
62
|
-
/**
|
|
63
|
-
* @remarks
|
|
64
|
-
* The time when the last DDL operation was executed on the table. The format is yyyy-MM-dd HH:mm:ss.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* 2025-01-02 10:00:00
|
|
68
|
-
*/
|
|
69
13
|
lastDdlTime?: string;
|
|
70
|
-
/**
|
|
71
|
-
* @remarks
|
|
72
|
-
* The number of rows in the table.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* 10000
|
|
76
|
-
*/
|
|
77
14
|
numRows?: number;
|
|
78
|
-
/**
|
|
79
|
-
* @remarks
|
|
80
|
-
* The reference information of the table.
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* order_db.orders_view
|
|
84
|
-
*/
|
|
85
15
|
refInfo?: string;
|
|
86
|
-
/**
|
|
87
|
-
* @remarks
|
|
88
|
-
* The storage capacity of the table. Unit: MB.
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* 16
|
|
92
|
-
*/
|
|
93
16
|
storageCapacity?: number;
|
|
94
|
-
/**
|
|
95
|
-
* @remarks
|
|
96
|
-
* The name of the schema to which the table belongs.
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* public
|
|
100
|
-
*/
|
|
101
17
|
tableSchemaName?: string;
|
|
102
18
|
static names(): { [key: string]: string } {
|
|
103
19
|
return {
|
|
@@ -3,61 +3,12 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class AgenticTableIndex extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The list of fields included in the index. Fields with a specified prefix length include a length expression, such as name(10).
|
|
9
|
-
*/
|
|
10
6
|
columnNames?: string[];
|
|
11
|
-
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* The index description.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* Index on user_id
|
|
17
|
-
*/
|
|
18
7
|
description?: string;
|
|
19
|
-
/**
|
|
20
|
-
* @remarks
|
|
21
|
-
* The index name.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* idx_user_id
|
|
25
|
-
*/
|
|
26
8
|
indexName?: string;
|
|
27
|
-
/**
|
|
28
|
-
* @remarks
|
|
29
|
-
* The index type. Valid values:
|
|
30
|
-
*
|
|
31
|
-
* - **Primary**: primary key index
|
|
32
|
-
* - **Unique**: unique index
|
|
33
|
-
* - **Normal**: normal index
|
|
34
|
-
* - **FullText**: full-text index
|
|
35
|
-
* - **Spatial**: spatial index
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* Normal
|
|
39
|
-
*/
|
|
40
9
|
indexType?: string;
|
|
41
|
-
/**
|
|
42
|
-
* @remarks
|
|
43
|
-
* Specifies whether the index is a primary key index.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* false
|
|
47
|
-
*/
|
|
48
10
|
primary?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* @remarks
|
|
51
|
-
* The list of actual field names referenced by the index, with prefix length expressions removed from ColumnNames.
|
|
52
|
-
*/
|
|
53
11
|
realColumnNames?: string[];
|
|
54
|
-
/**
|
|
55
|
-
* @remarks
|
|
56
|
-
* Specifies whether the index is a unique index.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* false
|
|
60
|
-
*/
|
|
61
12
|
unique?: boolean;
|
|
62
13
|
static names(): { [key: string]: string } {
|
|
63
14
|
return {
|
|
@@ -5,8 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateDataAgentSkillMetaRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The skill description.
|
|
9
|
-
* - Optional. If not specified, the system parses the ZIP package specified by UploadLocation to obtain the skill description.
|
|
8
|
+
* The skill description. This parameter is optional. If not specified, the backend parses the ZIP package specified by UploadLocation to obtain the skill description.
|
|
10
9
|
*
|
|
11
10
|
* @example
|
|
12
11
|
* This is a demo skill description.
|
|
@@ -14,8 +13,15 @@ export class CreateDataAgentSkillMetaRequest extends $dara.Model {
|
|
|
14
13
|
description?: string;
|
|
15
14
|
/**
|
|
16
15
|
* @remarks
|
|
17
|
-
* The skill name.
|
|
18
|
-
*
|
|
16
|
+
* The skill ID. If you specify this parameter, the uploaded skill overwrites the existing skill and replaces the original skill content. Note: The name of the original skill and the newly uploaded skill must be identical.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ski-04pomiln*************j0
|
|
20
|
+
*/
|
|
21
|
+
skillId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The skill name. This parameter is optional. If not specified, the backend parses the ZIP package specified by UploadLocation to obtain the skill name.
|
|
19
25
|
*
|
|
20
26
|
* @example
|
|
21
27
|
* data-query-skill
|
|
@@ -23,8 +29,8 @@ export class CreateDataAgentSkillMetaRequest extends $dara.Model {
|
|
|
23
29
|
skillName?: string;
|
|
24
30
|
/**
|
|
25
31
|
* @remarks
|
|
26
|
-
* The full path
|
|
27
|
-
* - Format:
|
|
32
|
+
* The full path for the skill ZIP file upload.
|
|
33
|
+
* - Format: The UploadDir field returned by the DescribeSkillFileUploadSignature operation concatenated with the file name.
|
|
28
34
|
* - Example: ${UploadDir}/${Filename}
|
|
29
35
|
*/
|
|
30
36
|
uploadLocation?: string;
|
|
@@ -39,6 +45,7 @@ export class CreateDataAgentSkillMetaRequest extends $dara.Model {
|
|
|
39
45
|
static names(): { [key: string]: string } {
|
|
40
46
|
return {
|
|
41
47
|
description: 'Description',
|
|
48
|
+
skillId: 'SkillId',
|
|
42
49
|
skillName: 'SkillName',
|
|
43
50
|
uploadLocation: 'UploadLocation',
|
|
44
51
|
workspaceId: 'WorkspaceId',
|
|
@@ -48,6 +55,7 @@ export class CreateDataAgentSkillMetaRequest extends $dara.Model {
|
|
|
48
55
|
static types(): { [key: string]: any } {
|
|
49
56
|
return {
|
|
50
57
|
description: 'string',
|
|
58
|
+
skillId: 'string',
|
|
51
59
|
skillName: 'string',
|
|
52
60
|
uploadLocation: 'string',
|
|
53
61
|
workspaceId: 'string',
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateDataAgentSkillMetaResponseBodyData extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The Alibaba Cloud account
|
|
8
|
+
* The ID of the parent Alibaba Cloud account.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 16738266********
|
|
@@ -13,7 +13,7 @@ export class CreateDataAgentSkillMetaResponseBodyData extends $dara.Model {
|
|
|
13
13
|
aliyunParentUid?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The Alibaba Cloud
|
|
16
|
+
* The Alibaba Cloud account ID.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 20372822********
|
|
@@ -37,9 +37,7 @@ export class CreateDataAgentSkillMetaResponseBodyData extends $dara.Model {
|
|
|
37
37
|
description?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* Indicates whether the skill is available. Valid values:
|
|
41
|
-
* - true: The skill is available.
|
|
42
|
-
* - false: The skill is not available.
|
|
40
|
+
* Indicates whether the skill is available. Valid values: true and false.
|
|
43
41
|
*
|
|
44
42
|
* @example
|
|
45
43
|
* true
|
|
@@ -55,7 +53,7 @@ export class CreateDataAgentSkillMetaResponseBodyData extends $dara.Model {
|
|
|
55
53
|
gmtCreated?: string;
|
|
56
54
|
/**
|
|
57
55
|
* @remarks
|
|
58
|
-
* The
|
|
56
|
+
* The modification time.
|
|
59
57
|
*
|
|
60
58
|
* @example
|
|
61
59
|
* 2025-12-11T14:04:32.000+00:00
|
|
@@ -63,8 +61,7 @@ export class CreateDataAgentSkillMetaResponseBodyData extends $dara.Model {
|
|
|
63
61
|
gmtModified?: string;
|
|
64
62
|
/**
|
|
65
63
|
* @remarks
|
|
66
|
-
* The skill parsing
|
|
67
|
-
* - This message is returned when the skill status is INVALID.
|
|
64
|
+
* The error message for skill parsing. This message is returned when the skill status is INVALID.
|
|
68
65
|
*
|
|
69
66
|
* @example
|
|
70
67
|
* SKILL.md file not exist.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAgenticSecurityPoliciesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to include archived policies in the query scope of user policies. Valid values:
|
|
9
|
+
* - true: Includes archived policies.
|
|
10
|
+
* - false: Does not include archived policies.
|
|
11
|
+
* Default value: false. When querying archived policies, do not specify PolicyStatus. If ON or OFF is specified, only user policies in the corresponding state are returned. This parameter does not affect system default policies.
|
|
12
|
+
*/
|
|
13
|
+
includeArchived?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The page number of the user policies to query. Pages start from 1. Default value: 1. Only user policies are paginated. System default policies are returned separately in each call.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 1
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The filter condition for the user policy status. Valid values: ON (enabled) and OFF (disabled). If this parameter is not specified or contains only whitespace characters, policies are not filtered by status. You cannot specify ARCHIVED. To query archived user policies, do not specify this parameter and set IncludeArchived to true. This parameter does not affect system default policies.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ON
|
|
28
|
+
*/
|
|
29
|
+
policyStatus?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The number of user policies to query on each page. Valid values: 1 to 100. Default value: 20. In addition, each call returns up to Size enabled system default policies. Therefore, the number of items in the returned Data may be greater than Size.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 20
|
|
36
|
+
*/
|
|
37
|
+
size?: number;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
includeArchived: 'IncludeArchived',
|
|
41
|
+
page: 'Page',
|
|
42
|
+
policyStatus: 'PolicyStatus',
|
|
43
|
+
size: 'Size',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
includeArchived: 'boolean',
|
|
50
|
+
page: 'number',
|
|
51
|
+
policyStatus: 'string',
|
|
52
|
+
size: 'number',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListAgenticSecurityPoliciesResponseBody } from "./ListAgenticSecurityPoliciesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListAgenticSecurityPoliciesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListAgenticSecurityPoliciesResponseBody;
|
|
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: ListAgenticSecurityPoliciesResponseBody,
|
|
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,216 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListAgenticSecurityPoliciesResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The UID of the Alibaba Cloud account to which the user policy belongs. This value is not returned for system default policies.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 123456789012****
|
|
12
|
+
*/
|
|
13
|
+
aliyunAccountUid?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The ID of the system default policy inherited by the user policy. This value is empty if no inheritance relationship is configured. This value is not returned for system default policies.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* sp-sys-default
|
|
20
|
+
*/
|
|
21
|
+
basePolicyId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The description of the security policy. The description of a system default policy is returned in the language of the request context.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Read-only access policy for analytics
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The time when the security policy was created. The time is in the yyyy-MM-dd HH:mm:ss format and does not contain a time zone offset.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 2026-10-13 14:30:00
|
|
36
|
+
*/
|
|
37
|
+
gmtCreate?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The time when the security policy was last modified. The time is in the yyyy-MM-dd HH:mm:ss format and does not contain a time zone offset.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 2026-10-13 14:35:00
|
|
44
|
+
*/
|
|
45
|
+
gmtModified?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The business ID of the security policy. A system default policy ID starts with sp-sys-, and a user policy ID starts with sp-usr-.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* sp-sys-default
|
|
52
|
+
*/
|
|
53
|
+
policyId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The Policy Name of the security policy. The Policy Name of a system default policy is returned in the language of the request context.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* team-readonly-policy
|
|
60
|
+
*/
|
|
61
|
+
policyName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The current state of the security policy. Valid values:
|
|
65
|
+
* - ON: Enabled.
|
|
66
|
+
* - OFF: Disabled.
|
|
67
|
+
* - ARCHIVED: Archived.
|
|
68
|
+
* All system default policies returned by this operation are in the ON state.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ON
|
|
72
|
+
*/
|
|
73
|
+
policyStatus?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* Specifies whether the policy is read-only. Valid values:
|
|
77
|
+
* - true: The policy is a system default policy.
|
|
78
|
+
* - false: The policy is a user policy of the current account.
|
|
79
|
+
*/
|
|
80
|
+
readonly?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* @remarks
|
|
83
|
+
* The tags of the system default policy. Multiple tags are separated by commas (,). This value is not returned for user policies.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* default,phase1
|
|
87
|
+
*/
|
|
88
|
+
tags?: string;
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* The identifier of the operator that last modified the policy. For a user policy, the operator ID is recorded first. If no operator ID is available, the UID of the current Alibaba Cloud account is recorded.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* system
|
|
95
|
+
*/
|
|
96
|
+
updatedBy?: string;
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
aliyunAccountUid: 'AliyunAccountUid',
|
|
100
|
+
basePolicyId: 'BasePolicyId',
|
|
101
|
+
description: 'Description',
|
|
102
|
+
gmtCreate: 'GmtCreate',
|
|
103
|
+
gmtModified: 'GmtModified',
|
|
104
|
+
policyId: 'PolicyId',
|
|
105
|
+
policyName: 'PolicyName',
|
|
106
|
+
policyStatus: 'PolicyStatus',
|
|
107
|
+
readonly: 'Readonly',
|
|
108
|
+
tags: 'Tags',
|
|
109
|
+
updatedBy: 'UpdatedBy',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
static types(): { [key: string]: any } {
|
|
114
|
+
return {
|
|
115
|
+
aliyunAccountUid: 'string',
|
|
116
|
+
basePolicyId: 'string',
|
|
117
|
+
description: 'string',
|
|
118
|
+
gmtCreate: 'string',
|
|
119
|
+
gmtModified: 'string',
|
|
120
|
+
policyId: 'string',
|
|
121
|
+
policyName: 'string',
|
|
122
|
+
policyStatus: 'string',
|
|
123
|
+
readonly: 'boolean',
|
|
124
|
+
tags: 'string',
|
|
125
|
+
updatedBy: 'string',
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
validate() {
|
|
130
|
+
super.validate();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
constructor(map?: { [key: string]: any }) {
|
|
134
|
+
super(map);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export class ListAgenticSecurityPoliciesResponseBody extends $dara.Model {
|
|
139
|
+
/**
|
|
140
|
+
* @remarks
|
|
141
|
+
* The list of security policies returned by this query. Enabled system default policies are placed at the beginning, followed by the user policies on the current page. You can use Readonly to distinguish between the two types of policies.
|
|
142
|
+
*/
|
|
143
|
+
data?: ListAgenticSecurityPoliciesResponseBodyData[];
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The error code returned when the request fails. This parameter is empty when the request is successful.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* INVALID_PARAMETER
|
|
150
|
+
*/
|
|
151
|
+
errorCode?: string;
|
|
152
|
+
/**
|
|
153
|
+
* @remarks
|
|
154
|
+
* The error message returned when the request fails. This parameter is empty when the request is successful.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* invalid policyStatus: ARCHIVED
|
|
158
|
+
*/
|
|
159
|
+
errorMessage?: string;
|
|
160
|
+
/**
|
|
161
|
+
* @remarks
|
|
162
|
+
* The request ID, which is used to locate and trace this call.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* request-1234567890
|
|
166
|
+
*/
|
|
167
|
+
requestId?: string;
|
|
168
|
+
/**
|
|
169
|
+
* @remarks
|
|
170
|
+
* Indicates whether the request is successful. Valid values:
|
|
171
|
+
* - true: The request is successful.
|
|
172
|
+
* - false: The request fails.
|
|
173
|
+
*/
|
|
174
|
+
success?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* @remarks
|
|
177
|
+
* The total number of policies that meet the query conditions. The value is the sum of the number of all enabled system default policies and the number of user policies of the current account that meet the filter conditions.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* 2
|
|
181
|
+
*/
|
|
182
|
+
totalCount?: number;
|
|
183
|
+
static names(): { [key: string]: string } {
|
|
184
|
+
return {
|
|
185
|
+
data: 'Data',
|
|
186
|
+
errorCode: 'ErrorCode',
|
|
187
|
+
errorMessage: 'ErrorMessage',
|
|
188
|
+
requestId: 'RequestId',
|
|
189
|
+
success: 'Success',
|
|
190
|
+
totalCount: 'TotalCount',
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
static types(): { [key: string]: any } {
|
|
195
|
+
return {
|
|
196
|
+
data: { 'type': 'array', 'itemType': ListAgenticSecurityPoliciesResponseBodyData },
|
|
197
|
+
errorCode: 'string',
|
|
198
|
+
errorMessage: 'string',
|
|
199
|
+
requestId: 'string',
|
|
200
|
+
success: 'boolean',
|
|
201
|
+
totalCount: 'number',
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
validate() {
|
|
206
|
+
if(Array.isArray(this.data)) {
|
|
207
|
+
$dara.Model.validateArray(this.data);
|
|
208
|
+
}
|
|
209
|
+
super.validate();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
constructor(map?: { [key: string]: any }) {
|
|
213
|
+
super(map);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|