@alicloud/das20200116 3.0.0 → 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 +15 -0
- package/dist/client.js +114 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeAuditLogsRequest.d.ts +139 -0
- package/dist/models/DescribeAuditLogsRequest.js +108 -0
- package/dist/models/DescribeAuditLogsRequest.js.map +1 -0
- package/dist/models/DescribeAuditLogsResponse.d.ts +19 -0
- package/dist/models/DescribeAuditLogsResponse.js +69 -0
- package/dist/models/DescribeAuditLogsResponse.js.map +1 -0
- package/dist/models/DescribeAuditLogsResponseBody.d.ts +199 -0
- package/dist/models/DescribeAuditLogsResponseBody.js +152 -0
- package/dist/models/DescribeAuditLogsResponseBody.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 +142 -0
- package/src/models/DescribeAuditLogsRequest.ts +202 -0
- package/src/models/DescribeAuditLogsResponse.ts +40 -0
- package/src/models/DescribeAuditLogsResponseBody.ts +297 -0
- package/src/models/model.ts +4 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAuditLogsResponseBody } from "./DescribeAuditLogsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAuditLogsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeAuditLogsResponseBody;
|
|
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: DescribeAuditLogsResponseBody,
|
|
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,297 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAuditLogsResponseBodyItems extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 100.104.16.251
|
|
9
|
+
*/
|
|
10
|
+
clientIp?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 53815
|
|
14
|
+
*/
|
|
15
|
+
clientPort?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* mysql
|
|
19
|
+
*/
|
|
20
|
+
clientUa?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* ds
|
|
24
|
+
*/
|
|
25
|
+
columnName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 1536751124000
|
|
29
|
+
*/
|
|
30
|
+
creationTime?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* chngc_b2b_migration_sh
|
|
34
|
+
*/
|
|
35
|
+
databaseName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 10
|
|
39
|
+
*/
|
|
40
|
+
effectRow?: number;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* 1
|
|
44
|
+
*/
|
|
45
|
+
executeStatus?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* 1751870592000
|
|
49
|
+
*/
|
|
50
|
+
executeTime?: number;
|
|
51
|
+
id?: number;
|
|
52
|
+
/**
|
|
53
|
+
* @example
|
|
54
|
+
* True
|
|
55
|
+
*/
|
|
56
|
+
inWhiteList?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* @example
|
|
59
|
+
* 2
|
|
60
|
+
*/
|
|
61
|
+
instanceAuditStatus?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @example
|
|
64
|
+
* instance dscription
|
|
65
|
+
*/
|
|
66
|
+
instanceDescription?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @example
|
|
69
|
+
* test-instance-003
|
|
70
|
+
*/
|
|
71
|
+
instanceName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @example
|
|
74
|
+
* aliyun
|
|
75
|
+
*/
|
|
76
|
+
ipType?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @example
|
|
79
|
+
* SLOW_SQL
|
|
80
|
+
*/
|
|
81
|
+
logSource?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @example
|
|
84
|
+
* 1751870592000
|
|
85
|
+
*/
|
|
86
|
+
logTime?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @example
|
|
89
|
+
* success
|
|
90
|
+
*/
|
|
91
|
+
message?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @example
|
|
94
|
+
* Drop
|
|
95
|
+
*/
|
|
96
|
+
operateType?: string;
|
|
97
|
+
ossObjectKey?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @example
|
|
100
|
+
* test01
|
|
101
|
+
*/
|
|
102
|
+
packageName?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @example
|
|
105
|
+
* RDS
|
|
106
|
+
*/
|
|
107
|
+
productCode?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @example
|
|
110
|
+
* 5
|
|
111
|
+
*/
|
|
112
|
+
productId?: number;
|
|
113
|
+
/**
|
|
114
|
+
* @example
|
|
115
|
+
* 10
|
|
116
|
+
*/
|
|
117
|
+
ruleCategory?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @example
|
|
120
|
+
* 9953411
|
|
121
|
+
*/
|
|
122
|
+
ruleId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @example
|
|
125
|
+
* name
|
|
126
|
+
*/
|
|
127
|
+
ruleName?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @example
|
|
130
|
+
* select * from test03
|
|
131
|
+
*/
|
|
132
|
+
sqlText?: string;
|
|
133
|
+
/**
|
|
134
|
+
* @example
|
|
135
|
+
* it_table
|
|
136
|
+
*/
|
|
137
|
+
tableName?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @example
|
|
140
|
+
* 19********94
|
|
141
|
+
*/
|
|
142
|
+
userId?: string;
|
|
143
|
+
/**
|
|
144
|
+
* @example
|
|
145
|
+
* admin
|
|
146
|
+
*/
|
|
147
|
+
userName?: string;
|
|
148
|
+
/**
|
|
149
|
+
* @example
|
|
150
|
+
* 1
|
|
151
|
+
*/
|
|
152
|
+
warnLevel?: string;
|
|
153
|
+
warnLevelName?: string;
|
|
154
|
+
static names(): { [key: string]: string } {
|
|
155
|
+
return {
|
|
156
|
+
clientIp: 'ClientIp',
|
|
157
|
+
clientPort: 'ClientPort',
|
|
158
|
+
clientUa: 'ClientUa',
|
|
159
|
+
columnName: 'ColumnName',
|
|
160
|
+
creationTime: 'CreationTime',
|
|
161
|
+
databaseName: 'DatabaseName',
|
|
162
|
+
effectRow: 'EffectRow',
|
|
163
|
+
executeStatus: 'ExecuteStatus',
|
|
164
|
+
executeTime: 'ExecuteTime',
|
|
165
|
+
id: 'Id',
|
|
166
|
+
inWhiteList: 'InWhiteList',
|
|
167
|
+
instanceAuditStatus: 'InstanceAuditStatus',
|
|
168
|
+
instanceDescription: 'InstanceDescription',
|
|
169
|
+
instanceName: 'InstanceName',
|
|
170
|
+
ipType: 'IpType',
|
|
171
|
+
logSource: 'LogSource',
|
|
172
|
+
logTime: 'LogTime',
|
|
173
|
+
message: 'Message',
|
|
174
|
+
operateType: 'OperateType',
|
|
175
|
+
ossObjectKey: 'OssObjectKey',
|
|
176
|
+
packageName: 'PackageName',
|
|
177
|
+
productCode: 'ProductCode',
|
|
178
|
+
productId: 'ProductId',
|
|
179
|
+
ruleCategory: 'RuleCategory',
|
|
180
|
+
ruleId: 'RuleId',
|
|
181
|
+
ruleName: 'RuleName',
|
|
182
|
+
sqlText: 'SqlText',
|
|
183
|
+
tableName: 'TableName',
|
|
184
|
+
userId: 'UserId',
|
|
185
|
+
userName: 'UserName',
|
|
186
|
+
warnLevel: 'WarnLevel',
|
|
187
|
+
warnLevelName: 'WarnLevelName',
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static types(): { [key: string]: any } {
|
|
192
|
+
return {
|
|
193
|
+
clientIp: 'string',
|
|
194
|
+
clientPort: 'string',
|
|
195
|
+
clientUa: 'string',
|
|
196
|
+
columnName: 'string',
|
|
197
|
+
creationTime: 'number',
|
|
198
|
+
databaseName: 'string',
|
|
199
|
+
effectRow: 'number',
|
|
200
|
+
executeStatus: 'number',
|
|
201
|
+
executeTime: 'number',
|
|
202
|
+
id: 'number',
|
|
203
|
+
inWhiteList: 'boolean',
|
|
204
|
+
instanceAuditStatus: 'string',
|
|
205
|
+
instanceDescription: 'string',
|
|
206
|
+
instanceName: 'string',
|
|
207
|
+
ipType: 'string',
|
|
208
|
+
logSource: 'string',
|
|
209
|
+
logTime: 'number',
|
|
210
|
+
message: 'string',
|
|
211
|
+
operateType: 'string',
|
|
212
|
+
ossObjectKey: 'string',
|
|
213
|
+
packageName: 'string',
|
|
214
|
+
productCode: 'string',
|
|
215
|
+
productId: 'number',
|
|
216
|
+
ruleCategory: 'string',
|
|
217
|
+
ruleId: 'string',
|
|
218
|
+
ruleName: 'string',
|
|
219
|
+
sqlText: 'string',
|
|
220
|
+
tableName: 'string',
|
|
221
|
+
userId: 'string',
|
|
222
|
+
userName: 'string',
|
|
223
|
+
warnLevel: 'string',
|
|
224
|
+
warnLevelName: 'string',
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
validate() {
|
|
229
|
+
super.validate();
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
constructor(map?: { [key: string]: any }) {
|
|
233
|
+
super(map);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export class DescribeAuditLogsResponseBody extends $dara.Model {
|
|
238
|
+
/**
|
|
239
|
+
* @example
|
|
240
|
+
* 3926fba5-1774-44f4-af2d-ac7b33e86c3b
|
|
241
|
+
*/
|
|
242
|
+
asyncRequestId?: string;
|
|
243
|
+
/**
|
|
244
|
+
* @example
|
|
245
|
+
* 1
|
|
246
|
+
*/
|
|
247
|
+
currentPage?: number;
|
|
248
|
+
items?: DescribeAuditLogsResponseBodyItems[];
|
|
249
|
+
/**
|
|
250
|
+
* @example
|
|
251
|
+
* 10
|
|
252
|
+
*/
|
|
253
|
+
pageSize?: number;
|
|
254
|
+
/**
|
|
255
|
+
* @example
|
|
256
|
+
* A7021857-AFD9-5AD6-979D-AA7DFC5AFADF
|
|
257
|
+
*/
|
|
258
|
+
requestId?: string;
|
|
259
|
+
/**
|
|
260
|
+
* @example
|
|
261
|
+
* 12
|
|
262
|
+
*/
|
|
263
|
+
totalCount?: number;
|
|
264
|
+
static names(): { [key: string]: string } {
|
|
265
|
+
return {
|
|
266
|
+
asyncRequestId: 'AsyncRequestId',
|
|
267
|
+
currentPage: 'CurrentPage',
|
|
268
|
+
items: 'Items',
|
|
269
|
+
pageSize: 'PageSize',
|
|
270
|
+
requestId: 'RequestId',
|
|
271
|
+
totalCount: 'TotalCount',
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
static types(): { [key: string]: any } {
|
|
276
|
+
return {
|
|
277
|
+
asyncRequestId: 'string',
|
|
278
|
+
currentPage: 'number',
|
|
279
|
+
items: { 'type': 'array', 'itemType': DescribeAuditLogsResponseBodyItems },
|
|
280
|
+
pageSize: 'number',
|
|
281
|
+
requestId: 'string',
|
|
282
|
+
totalCount: 'number',
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
validate() {
|
|
287
|
+
if(Array.isArray(this.items)) {
|
|
288
|
+
$dara.Model.validateArray(this.items);
|
|
289
|
+
}
|
|
290
|
+
super.validate();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
constructor(map?: { [key: string]: any }) {
|
|
294
|
+
super(map);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { CreateSqlLogTaskResponseBodyData } from './CreateSqlLogTaskResponseBody
|
|
|
10
10
|
export { CreateStorageAnalysisTaskResponseBodyData } from './CreateStorageAnalysisTaskResponseBody';
|
|
11
11
|
export { DeleteSecurityIPGroupResponseBodyDataGlobalSecurityIPGroup } from './DeleteSecurityIpgroupResponseBody';
|
|
12
12
|
export { DeleteSecurityIPGroupResponseBodyData } from './DeleteSecurityIpgroupResponseBody';
|
|
13
|
+
export { DescribeAuditLogsResponseBodyItems } from './DescribeAuditLogsResponseBody';
|
|
13
14
|
export { DescribeAutoScalingConfigResponseBodyDataBandwidth } from './DescribeAutoScalingConfigResponseBody';
|
|
14
15
|
export { DescribeAutoScalingConfigResponseBodyDataResource } from './DescribeAutoScalingConfigResponseBody';
|
|
15
16
|
export { DescribeAutoScalingConfigResponseBodyDataShard } from './DescribeAutoScalingConfigResponseBody';
|
|
@@ -272,6 +273,9 @@ export { DeleteSecurityIPGroupResponse } from './DeleteSecurityIpgroupResponse';
|
|
|
272
273
|
export { DeleteStopGatewayRequest } from './DeleteStopGatewayRequest';
|
|
273
274
|
export { DeleteStopGatewayResponseBody } from './DeleteStopGatewayResponseBody';
|
|
274
275
|
export { DeleteStopGatewayResponse } from './DeleteStopGatewayResponse';
|
|
276
|
+
export { DescribeAuditLogsRequest } from './DescribeAuditLogsRequest';
|
|
277
|
+
export { DescribeAuditLogsResponseBody } from './DescribeAuditLogsResponseBody';
|
|
278
|
+
export { DescribeAuditLogsResponse } from './DescribeAuditLogsResponse';
|
|
275
279
|
export { DescribeAutoScalingConfigRequest } from './DescribeAutoScalingConfigRequest';
|
|
276
280
|
export { DescribeAutoScalingConfigResponseBody } from './DescribeAutoScalingConfigResponseBody';
|
|
277
281
|
export { DescribeAutoScalingConfigResponse } from './DescribeAutoScalingConfigResponse';
|