@alicloud/dms20250414 4.2.2 → 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 +29 -0
- package/dist/client.js +62 -0
- 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/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/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 +68 -0
- 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/ListAgenticSecurityPoliciesRequest.ts +64 -0
- package/src/models/ListAgenticSecurityPoliciesResponse.ts +40 -0
- package/src/models/ListAgenticSecurityPoliciesResponseBody.ts +216 -0
- package/src/models/model.ts +4 -0
package/src/client.ts
CHANGED
|
@@ -4419,6 +4419,74 @@ export default class Client extends OpenApi {
|
|
|
4419
4419
|
return await this.listAgenticGlobalSqlExecutionHistoriesWithOptions(request, runtime);
|
|
4420
4420
|
}
|
|
4421
4421
|
|
|
4422
|
+
/**
|
|
4423
|
+
* Queries the user security policy of the current Alibaba Cloud account by page and returns the enabled system default security policy.
|
|
4424
|
+
*
|
|
4425
|
+
* @remarks
|
|
4426
|
+
* This operation returns the enabled system default policies and the user policies of the current Alibaba Cloud account.
|
|
4427
|
+
* - System default policies are placed at the beginning of the list. Only policies in the ON (enabled) state are returned. They are not filtered by PolicyStatus or IncludeArchived.
|
|
4428
|
+
* - Page and Size are used to paginate user policies. Each call also returns up to Size enabled system default policies. Therefore, the number of items in Data may be greater than Size, and the same system default policies may be repeatedly returned during pagination.
|
|
4429
|
+
* - TotalCount is the sum of the number of all enabled system default policies and the number of user policies that meet the filter conditions.
|
|
4430
|
+
* - You can use Readonly to distinguish between the two types of policies: true indicates a system default policy, and false indicates a user policy.
|
|
4431
|
+
*
|
|
4432
|
+
* @param request - ListAgenticSecurityPoliciesRequest
|
|
4433
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4434
|
+
* @returns ListAgenticSecurityPoliciesResponse
|
|
4435
|
+
*/
|
|
4436
|
+
async listAgenticSecurityPoliciesWithOptions(request: $_model.ListAgenticSecurityPoliciesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAgenticSecurityPoliciesResponse> {
|
|
4437
|
+
request.validate();
|
|
4438
|
+
let query = { };
|
|
4439
|
+
if (!$dara.isNull(request.includeArchived)) {
|
|
4440
|
+
query["IncludeArchived"] = request.includeArchived;
|
|
4441
|
+
}
|
|
4442
|
+
|
|
4443
|
+
if (!$dara.isNull(request.page)) {
|
|
4444
|
+
query["Page"] = request.page;
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4447
|
+
if (!$dara.isNull(request.policyStatus)) {
|
|
4448
|
+
query["PolicyStatus"] = request.policyStatus;
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
if (!$dara.isNull(request.size)) {
|
|
4452
|
+
query["Size"] = request.size;
|
|
4453
|
+
}
|
|
4454
|
+
|
|
4455
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4456
|
+
query: OpenApiUtil.query(query),
|
|
4457
|
+
});
|
|
4458
|
+
let params = new $OpenApiUtil.Params({
|
|
4459
|
+
action: "ListAgenticSecurityPolicies",
|
|
4460
|
+
version: "2025-04-14",
|
|
4461
|
+
protocol: "HTTPS",
|
|
4462
|
+
pathname: "/",
|
|
4463
|
+
method: "POST",
|
|
4464
|
+
authType: "AK",
|
|
4465
|
+
style: "RPC",
|
|
4466
|
+
reqBodyType: "formData",
|
|
4467
|
+
bodyType: "json",
|
|
4468
|
+
});
|
|
4469
|
+
return $dara.cast<$_model.ListAgenticSecurityPoliciesResponse>(await this.callApi(params, req, runtime), new $_model.ListAgenticSecurityPoliciesResponse({}));
|
|
4470
|
+
}
|
|
4471
|
+
|
|
4472
|
+
/**
|
|
4473
|
+
* Queries the user security policy of the current Alibaba Cloud account by page and returns the enabled system default security policy.
|
|
4474
|
+
*
|
|
4475
|
+
* @remarks
|
|
4476
|
+
* This operation returns the enabled system default policies and the user policies of the current Alibaba Cloud account.
|
|
4477
|
+
* - System default policies are placed at the beginning of the list. Only policies in the ON (enabled) state are returned. They are not filtered by PolicyStatus or IncludeArchived.
|
|
4478
|
+
* - Page and Size are used to paginate user policies. Each call also returns up to Size enabled system default policies. Therefore, the number of items in Data may be greater than Size, and the same system default policies may be repeatedly returned during pagination.
|
|
4479
|
+
* - TotalCount is the sum of the number of all enabled system default policies and the number of user policies that meet the filter conditions.
|
|
4480
|
+
* - You can use Readonly to distinguish between the two types of policies: true indicates a system default policy, and false indicates a user policy.
|
|
4481
|
+
*
|
|
4482
|
+
* @param request - ListAgenticSecurityPoliciesRequest
|
|
4483
|
+
* @returns ListAgenticSecurityPoliciesResponse
|
|
4484
|
+
*/
|
|
4485
|
+
async listAgenticSecurityPolicies(request: $_model.ListAgenticSecurityPoliciesRequest): Promise<$_model.ListAgenticSecurityPoliciesResponse> {
|
|
4486
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4487
|
+
return await this.listAgenticSecurityPoliciesWithOptions(request, runtime);
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4422
4490
|
/**
|
|
4423
4491
|
* Queries the SQL execution history visible to the current caller, sorted in descending order by execution start time. Only AGENT_QUERY and WORKFLOW_QUERY are included.
|
|
4424
4492
|
*
|
|
@@ -4,123 +4,20 @@ import { AgenticDatabaseEngineMeta } from "./AgenticDatabaseEngineMeta";
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export class AgenticDatabase extends $dara.Model {
|
|
7
|
-
/**
|
|
8
|
-
* @remarks
|
|
9
|
-
* The name of the catalog.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* prod_mysql_order
|
|
13
|
-
*/
|
|
14
7
|
catalogName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @remarks
|
|
17
|
-
* The type of the catalog. Valid values:
|
|
18
|
-
*
|
|
19
|
-
* - **JDBC**: relational database catalog
|
|
20
|
-
* - **DataLake**: data lake catalog
|
|
21
|
-
* - **Dataset**: knowledge base catalog
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* JDBC
|
|
25
|
-
*/
|
|
26
8
|
catalogType?: string;
|
|
27
|
-
/**
|
|
28
|
-
* @remarks
|
|
29
|
-
* The UUID of the catalog.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* mc-HZ-OfjcNc2z***
|
|
33
|
-
*/
|
|
34
9
|
catalogUuid?: string;
|
|
35
|
-
/**
|
|
36
|
-
* @remarks
|
|
37
|
-
* The business attributes of the database, returned as key-value pairs. Currently, this may include **ENV_TYPE**, which indicates the environment type of the database.
|
|
38
|
-
*/
|
|
39
10
|
databaseBizAttrs?: { [key: string]: any };
|
|
40
|
-
/**
|
|
41
|
-
* @remarks
|
|
42
|
-
* The unique identifier of the database.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* md-HZ-fp9K7r***
|
|
46
|
-
*/
|
|
47
11
|
databaseUuid?: string;
|
|
48
|
-
/**
|
|
49
|
-
* @remarks
|
|
50
|
-
* The database type inherited from the catalog. The value is the uppercase name of the database type, such as MYSQL.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* MYSQL
|
|
54
|
-
*/
|
|
55
12
|
dbType?: string;
|
|
56
|
-
/**
|
|
57
|
-
* @remarks
|
|
58
|
-
* The description of the database.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* Order database
|
|
62
|
-
*/
|
|
63
13
|
description?: string;
|
|
64
|
-
/**
|
|
65
|
-
* @remarks
|
|
66
|
-
* The metadata of the database engine. This field is returned only for databases under a JDBC catalog.
|
|
67
|
-
*/
|
|
68
14
|
engineMeta?: AgenticDatabaseEngineMeta;
|
|
69
|
-
/**
|
|
70
|
-
* @remarks
|
|
71
|
-
* The name of the database. For databases that distinguish schemas, such as PostgreSQL, this is the schema name.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* order_db
|
|
75
|
-
*/
|
|
76
15
|
name?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @remarks
|
|
79
|
-
* The extended properties of the database, returned as key-value pairs. This field is returned only for databases under a DataLake catalog.
|
|
80
|
-
*/
|
|
81
16
|
properties?: { [key: string]: any };
|
|
82
|
-
/**
|
|
83
|
-
* @remarks
|
|
84
|
-
* The fully qualified name of the database. For databases that distinguish schemas, such as PostgreSQL, the format is database name.schema name.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* order_db
|
|
88
|
-
*/
|
|
89
17
|
qualifiedName?: string;
|
|
90
|
-
/**
|
|
91
|
-
* @remarks
|
|
92
|
-
* The region ID of the database.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* cn-hangzhou
|
|
96
|
-
*/
|
|
97
18
|
regionId?: string;
|
|
98
|
-
/**
|
|
99
|
-
* @remarks
|
|
100
|
-
* The search name of the database. SearchAgenticDatabase matches search keywords against this name.
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* order_db
|
|
104
|
-
*/
|
|
105
19
|
searchName?: string;
|
|
106
|
-
/**
|
|
107
|
-
* @remarks
|
|
108
|
-
* The status of the database. Valid values:
|
|
109
|
-
*
|
|
110
|
-
* - **0**: normal
|
|
111
|
-
* - **-1**: deleted
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* 0
|
|
115
|
-
*/
|
|
116
20
|
state?: number;
|
|
117
|
-
/**
|
|
118
|
-
* @remarks
|
|
119
|
-
* The storage location. This field is returned only for databases under a DataLake catalog.
|
|
120
|
-
*
|
|
121
|
-
* @example
|
|
122
|
-
* oss://examplebucket/datalake/order_db/
|
|
123
|
-
*/
|
|
124
21
|
storageLocation?: string;
|
|
125
22
|
static names(): { [key: string]: string } {
|
|
126
23
|
return {
|
|
@@ -3,37 +3,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class AgenticDatabaseEngineMeta extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The catalog name in the database engine.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* def
|
|
12
|
-
*/
|
|
13
6
|
catalogName?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @remarks
|
|
16
|
-
* The character set encoding of the database.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* utf8mb4
|
|
20
|
-
*/
|
|
21
7
|
encoding?: string;
|
|
22
|
-
/**
|
|
23
|
-
* @remarks
|
|
24
|
-
* The schema name.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* public
|
|
28
|
-
*/
|
|
29
8
|
schemaName?: string;
|
|
30
|
-
/**
|
|
31
|
-
* @remarks
|
|
32
|
-
* The storage capacity of the database, in MB.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* 1024
|
|
36
|
-
*/
|
|
37
9
|
storageCapacity?: number;
|
|
38
10
|
static names(): { [key: string]: string } {
|
|
39
11
|
return {
|
|
@@ -4,73 +4,13 @@ import { AgenticTableEngineMeta } from "./AgenticTableEngineMeta";
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export class AgenticTableBaseInfo extends $dara.Model {
|
|
7
|
-
/**
|
|
8
|
-
* @remarks
|
|
9
|
-
* The type of the catalog to which the table belongs. Valid values:
|
|
10
|
-
* - **JDBC**: relational database catalog
|
|
11
|
-
* - **DataLake**: data lake catalog
|
|
12
|
-
* - **Dataset**: knowledge base catalog
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* JDBC
|
|
16
|
-
*/
|
|
17
7
|
catalogType?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @remarks
|
|
20
|
-
* The fully qualified name of the database to which the table belongs.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* order_db
|
|
24
|
-
*/
|
|
25
8
|
databaseQualifiedName?: string;
|
|
26
|
-
/**
|
|
27
|
-
* @remarks
|
|
28
|
-
* The UUID of the database to which the table belongs.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* md-HZ-fp9K7r***
|
|
32
|
-
*/
|
|
33
9
|
databaseUuid?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @remarks
|
|
36
|
-
* The description of the table.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* Order table
|
|
40
|
-
*/
|
|
41
10
|
description?: string;
|
|
42
|
-
/**
|
|
43
|
-
* @remarks
|
|
44
|
-
* The engine metadata of the table.
|
|
45
|
-
*/
|
|
46
11
|
engineMeta?: AgenticTableEngineMeta;
|
|
47
|
-
/**
|
|
48
|
-
* @remarks
|
|
49
|
-
* The table name.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* orders
|
|
53
|
-
*/
|
|
54
12
|
name?: string;
|
|
55
|
-
/**
|
|
56
|
-
* @remarks
|
|
57
|
-
* The fully qualified name of the table. You can use this name as the TableQualifiedName parameter for GetAgenticTableColumn and GetAgenticTableIndex. For SQL Server, the format is schema name.table name.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* orders
|
|
61
|
-
*/
|
|
62
13
|
qualifiedName?: string;
|
|
63
|
-
/**
|
|
64
|
-
* @remarks
|
|
65
|
-
* The table type. Valid values:
|
|
66
|
-
* - **NORMAL**: regular table
|
|
67
|
-
* - **VIEW**: view
|
|
68
|
-
* - **FOREIGN**: foreign table
|
|
69
|
-
* - **SYNONYM**: synonym, supported only for Oracle data sources
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* NORMAL
|
|
73
|
-
*/
|
|
74
14
|
tableType?: string;
|
|
75
15
|
static names(): { [key: string]: string } {
|
|
76
16
|
return {
|
|
@@ -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 {
|
|
@@ -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
|
+
|