@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
|
@@ -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
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -83,6 +83,7 @@ export { GetWorkspaceCodePublishSettingResponseBodyData } from './GetWorkspaceCo
|
|
|
83
83
|
export { GetWorkspaceQuotaResponseBodyData } from './GetWorkspaceQuotaResponseBody';
|
|
84
84
|
export { ListAgenticDataSourcesResponseBodyData } from './ListAgenticDataSourcesResponseBody';
|
|
85
85
|
export { ListAgenticGlobalSqlExecutionHistoriesResponseBodyData } from './ListAgenticGlobalSqlExecutionHistoriesResponseBody';
|
|
86
|
+
export { ListAgenticSecurityPoliciesResponseBodyData } from './ListAgenticSecurityPoliciesResponseBody';
|
|
86
87
|
export { ListAgenticSqlExecutionHistoriesResponseBodyData } from './ListAgenticSqlExecutionHistoriesResponseBody';
|
|
87
88
|
export { ListAirflowsResponseBodyRootList } from './ListAirflowsResponseBody';
|
|
88
89
|
export { ListAirflowsResponseBodyRoot } from './ListAirflowsResponseBody';
|
|
@@ -446,6 +447,9 @@ export { ListAgenticDatabaseResponse } from './ListAgenticDatabaseResponse';
|
|
|
446
447
|
export { ListAgenticGlobalSqlExecutionHistoriesRequest } from './ListAgenticGlobalSqlExecutionHistoriesRequest';
|
|
447
448
|
export { ListAgenticGlobalSqlExecutionHistoriesResponseBody } from './ListAgenticGlobalSqlExecutionHistoriesResponseBody';
|
|
448
449
|
export { ListAgenticGlobalSqlExecutionHistoriesResponse } from './ListAgenticGlobalSqlExecutionHistoriesResponse';
|
|
450
|
+
export { ListAgenticSecurityPoliciesRequest } from './ListAgenticSecurityPoliciesRequest';
|
|
451
|
+
export { ListAgenticSecurityPoliciesResponseBody } from './ListAgenticSecurityPoliciesResponseBody';
|
|
452
|
+
export { ListAgenticSecurityPoliciesResponse } from './ListAgenticSecurityPoliciesResponse';
|
|
449
453
|
export { ListAgenticSqlExecutionHistoriesRequest } from './ListAgenticSqlExecutionHistoriesRequest';
|
|
450
454
|
export { ListAgenticSqlExecutionHistoriesResponseBody } from './ListAgenticSqlExecutionHistoriesResponseBody';
|
|
451
455
|
export { ListAgenticSqlExecutionHistoriesResponse } from './ListAgenticSqlExecutionHistoriesResponse';
|