@alicloud/adb20211201 5.0.0 → 5.0.2

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.
Files changed (40) hide show
  1. package/dist/client.d.ts +26 -26
  2. package/dist/client.js +38 -26
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateApsSlsAdbjobRequest.d.ts +34 -34
  5. package/dist/models/CreateApsSlsAdbjobResponseBody.d.ts +8 -9
  6. package/dist/models/CreateApsSlsAdbjobResponseBody.js.map +1 -1
  7. package/dist/models/CreateApsSlsAdbjobShrinkRequest.d.ts +25 -25
  8. package/dist/models/DescribeAdbMySqlColumnsRequest.d.ts +11 -6
  9. package/dist/models/DescribeAdbMySqlColumnsRequest.js +2 -0
  10. package/dist/models/DescribeAdbMySqlColumnsRequest.js.map +1 -1
  11. package/dist/models/DescribeAdbMySqlColumnsResponseBody.d.ts +12 -14
  12. package/dist/models/DescribeAdbMySqlColumnsResponseBody.js.map +1 -1
  13. package/dist/models/DescribeAdbMySqlSchemasRequest.d.ts +8 -3
  14. package/dist/models/DescribeAdbMySqlSchemasRequest.js +2 -0
  15. package/dist/models/DescribeAdbMySqlSchemasRequest.js.map +1 -1
  16. package/dist/models/DescribeAdbMySqlSchemasResponseBody.d.ts +7 -9
  17. package/dist/models/DescribeAdbMySqlSchemasResponseBody.js.map +1 -1
  18. package/dist/models/DescribeAdbMySqlTablesRequest.d.ts +7 -3
  19. package/dist/models/DescribeAdbMySqlTablesRequest.js +2 -0
  20. package/dist/models/DescribeAdbMySqlTablesRequest.js.map +1 -1
  21. package/dist/models/DescribeAdbMySqlTablesResponseBody.d.ts +5 -9
  22. package/dist/models/DescribeAdbMySqlTablesResponseBody.js.map +1 -1
  23. package/dist/models/DescribeAuditLogRecordsRequest.d.ts +37 -70
  24. package/dist/models/DescribeAuditLogRecordsRequest.js +2 -0
  25. package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
  26. package/dist/models/DescribeAuditLogRecordsResponseBody.d.ts +17 -19
  27. package/dist/models/DescribeAuditLogRecordsResponseBody.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +42 -26
  30. package/src/models/CreateApsSlsAdbjobRequest.ts +34 -34
  31. package/src/models/CreateApsSlsAdbjobResponseBody.ts +8 -9
  32. package/src/models/CreateApsSlsAdbjobShrinkRequest.ts +25 -25
  33. package/src/models/DescribeAdbMySqlColumnsRequest.ts +13 -6
  34. package/src/models/DescribeAdbMySqlColumnsResponseBody.ts +12 -14
  35. package/src/models/DescribeAdbMySqlSchemasRequest.ts +10 -3
  36. package/src/models/DescribeAdbMySqlSchemasResponseBody.ts +7 -9
  37. package/src/models/DescribeAdbMySqlTablesRequest.ts +9 -3
  38. package/src/models/DescribeAdbMySqlTablesResponseBody.ts +5 -9
  39. package/src/models/DescribeAuditLogRecordsRequest.ts +39 -70
  40. package/src/models/DescribeAuditLogRecordsResponseBody.ts +17 -19
@@ -5,10 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeAuditLogRecordsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * <props="china">The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
8
+ * <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
9
9
  * <props="intl">The ID of the Data Lakehouse Edition cluster.
10
- *
11
- * > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/454250.html) operation to query the IDs of all clusters in a region.
10
+ * > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/454250.html) operation to query the cluster IDs of all clusters in a region.
12
11
  *
13
12
  * This parameter is required.
14
13
  *
@@ -26,19 +25,18 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
26
25
  DBName?: string;
27
26
  /**
28
27
  * @remarks
29
- * The end of the time range to query. The time must be in UTC and in the `yyyy-MM-ddTHH:mmZ` format.
30
- *
28
+ * The end of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format.
31
29
  * > - The end time must be later than the start time.
32
- * >
33
- * > - The time range cannot exceed 24 hours.
30
+ * > - The interval between the start time and the end time cannot exceed 24 hours.
34
31
  *
35
32
  * @example
36
33
  * 2022-08-12T17:08Z
37
34
  */
38
35
  endTime?: string;
36
+ engineType?: string;
39
37
  /**
40
38
  * @remarks
41
- * The client IP address and port number.
39
+ * The IP address and port number of the client that executed the SQL statement.
42
40
  *
43
41
  * @example
44
42
  * 100.104.XX.XX:43908
@@ -46,37 +44,23 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
46
44
  hostAddress?: string;
47
45
  /**
48
46
  * @remarks
49
- * Specifies the fields for sorting the results. The value is a JSON string that is an array of objects. The order of objects in the array defines the sort priority. Each object contains the`Field` and`Type` parameters. Example: `[{"Field":"ExecutionStartTime","Type":"Desc"},{"Field":"ScanRows","Type":"Asc"}]`.
50
- *
51
- * - `Field`: the field by which to sort the results. Valid values:
52
- *
53
- * - **HostAddress**: the client IP address.
54
- *
55
- * - **UserName**: the username.
56
- *
57
- * - **ExecutionStartTime**: the execution start time of the SQL statement.
58
- *
59
- * - **QueryTime**: the execution duration.
60
- *
61
- * - **PeakMemoryUsage**: the peak memory usage of the SQL statement.
62
- *
63
- * - **ScanRows**: the number of rows scanned by a task that involves a data source.
64
- *
65
- * - **ScanSize**: the amount of data scanned.
66
- *
67
- * - **ScanTime**: the time taken for the data scan.
68
- *
69
- * - **PlanningTime**: the time taken to generate the execution plan.
70
- *
71
- * - **WallTime**: the total CPU time of all operators on all nodes.
72
- *
73
- * - **ProcessID**: the process ID.
74
- *
75
- * - `Type`: the sort order. Valid values:
76
- *
77
- * - **Desc**: descending order.
78
- *
79
- * - **Asc**: ascending order.
47
+ * The sorting order based on specified fields. The value is in JSON format and is an ordered JSON array. Compound sorting is performed in the order of the input array. The array contains the `Field` and `Type` fields. Example: `[{"Field":"ExecutionStartTime","Type":"Desc"},{"Field":"ScanRows","Type":"Asc"}]`.
48
+ * * `Field` specifies the field name for sorting. Valid values:
49
+ * * **HostAddress**: the address of the client that connects to the database.
50
+ * * **UserName**: the username.
51
+ * * **ExecutionStartTime**: the execution start time of the SQL statement.
52
+ * * **QueryTime**: the execution duration of the SQL statement.
53
+ * * **PeakMemoryUsage**: the peak memory usage during the execution of the SQL statement.
54
+ * * **ScanRows**: the number of rows scanned by the task with a data source.
55
+ * * **ScanSize**: the amount of scanned data.
56
+ * * **ScanTime**: the total time consumed for scanning data.
57
+ * * **PlanningTime**: the time consumed for generating the execution plan.
58
+ * * **WallTime**: the cumulative CPU time of all operators across all nodes in the query.
59
+ * * **ProcessID**: the process ID.
60
+ *
61
+ * * `Type` specifies the sorting type. Valid values:
62
+ * * **Desc**: descending order.
63
+ * * **Asc**: ascending order.
80
64
  *
81
65
  * @example
82
66
  * [{"Field":"ExecuteTime","Type":"Desc"},{"Field":"HostAddress","Type":"Asc"}]
@@ -84,11 +68,9 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
84
68
  order?: string;
85
69
  /**
86
70
  * @remarks
87
- * The sort order for the results based on execution time. Valid values:
88
- *
89
- * - **asc**: ascending order.
90
- *
91
- * - **desc**: descending order.
71
+ * The order in which the results are sorted by SQL execution time. Valid values:
72
+ * * **asc**: ascending order.
73
+ * * **desc**: descending order.
92
74
  *
93
75
  * @example
94
76
  * asc
@@ -98,7 +80,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
98
80
  ownerId?: number;
99
81
  /**
100
82
  * @remarks
101
- * The page number. The value must be an integer that is greater than 0. Default value: **1**.
83
+ * The page number. The value must be a positive integer that does not exceed the maximum value of the Integer data type. Default value: **1**.
102
84
  *
103
85
  * @example
104
86
  * 1
@@ -106,14 +88,10 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
106
88
  pageNumber?: number;
107
89
  /**
108
90
  * @remarks
109
- * The page size. Valid values:
110
- *
91
+ * The number of entries per page. Valid values:
111
92
  * - **10** (default)
112
- *
113
93
  * - **30**
114
- *
115
94
  * - **50**
116
- *
117
95
  * - **100**
118
96
  *
119
97
  * @example
@@ -125,12 +103,12 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
125
103
  * A reserved parameter.
126
104
  *
127
105
  * @example
128
- * 无
106
+ * None
129
107
  */
130
108
  proxyUser?: string;
131
109
  /**
132
110
  * @remarks
133
- * A keyword used to perform a fuzzy search on the returned results.
111
+ * The keyword used to filter the returned results.
134
112
  *
135
113
  * @example
136
114
  * adb
@@ -139,8 +117,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
139
117
  /**
140
118
  * @remarks
141
119
  * The region ID.
142
- *
143
- * > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query available regions.
120
+ * > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/454314.html) operation to query the region ID of the cluster.
144
121
  *
145
122
  * This parameter is required.
146
123
  *
@@ -153,22 +130,15 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
153
130
  /**
154
131
  * @remarks
155
132
  * The type of the SQL statement. Valid values:
156
- *
157
133
  * - **DELETE**
158
- *
159
134
  * - **SELECT**
160
- *
161
135
  * - **UPDATE**
162
- *
163
136
  * - **INSERT INTO SELECT**
164
- *
165
137
  * - **ALTER**
166
- *
167
138
  * - **DROP**
168
- *
169
139
  * - **CREATE**
170
140
  *
171
- * > You can specify only one type per request. If this parameter is not specified, all types are queried by default.
141
+ * > Only one type can be specified per request. If this parameter is left empty, all types are queried by default.
172
142
  *
173
143
  * @example
174
144
  * SELECT
@@ -176,9 +146,8 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
176
146
  sqlType?: string;
177
147
  /**
178
148
  * @remarks
179
- * The start of the time range to query. The time must be in UTC and in the `yyyy-MM-ddTHH:mmZ` format.
180
- *
181
- * > You can query SQL audit logs only when this feature is enabled. Logs are available for the last 30 days. If you disable and then re-enable SQL audit, only logs generated after the feature was re-enabled are returned.
149
+ * The beginning of the time range to query. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ format.
150
+ * > SQL Audit Log entries can be queried only when SQL audit is enabled, and only entries from the last 30 days are supported. If SQL audit is disabled and then re-enabled, only entries recorded after re-enabling are available.
182
151
  *
183
152
  * @example
184
153
  * 2022-08-12T04:17Z
@@ -186,11 +155,9 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
186
155
  startTime?: string;
187
156
  /**
188
157
  * @remarks
189
- * Indicates whether the SQL statement was successfully executed. Valid values:
190
- *
191
- * - **true**: The SQL statement succeeded.
192
- *
193
- * - **false**: The SQL statement failed.
158
+ * Specifies whether the SQL statement was executed successfully. Valid values:
159
+ * * **true**: The SQL statement was executed successfully.
160
+ * * **false**: The SQL statement failed to be executed.
194
161
  *
195
162
  * @example
196
163
  * true
@@ -209,6 +176,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
209
176
  DBClusterId: 'DBClusterId',
210
177
  DBName: 'DBName',
211
178
  endTime: 'EndTime',
179
+ engineType: 'EngineType',
212
180
  hostAddress: 'HostAddress',
213
181
  order: 'Order',
214
182
  orderType: 'OrderType',
@@ -233,6 +201,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
233
201
  DBClusterId: 'string',
234
202
  DBName: 'string',
235
203
  endTime: 'string',
204
+ engineType: 'string',
236
205
  hostAddress: 'string',
237
206
  order: 'string',
238
207
  orderType: 'string',
@@ -13,7 +13,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
13
13
  connId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The name of the database on which the SQL statement ran.
16
+ * The name of the database on which the SQL statement was executed.
17
17
  *
18
18
  * @example
19
19
  * adb_demo
@@ -21,7 +21,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
21
21
  DBName?: string;
22
22
  /**
23
23
  * @remarks
24
- * The execution start time of the SQL statement. The time is in the `yyyy-MM-dd HH:mm:ss` format and in the local time zone.
24
+ * The execution start time of the SQL statement in local time. The time is in the yyyy-MM-dd HH:mm:ss format.
25
25
  *
26
26
  * @example
27
27
  * 2022-08-12 10:10:00
@@ -29,7 +29,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
29
29
  executeTime?: string;
30
30
  /**
31
31
  * @remarks
32
- * The execution start time of the SQL statement, as a millisecond timestamp.
32
+ * The execution start time of the SQL statement, in millisecond-precision UNIX timestamp.
33
33
  *
34
34
  * @example
35
35
  * 1774600396584
@@ -37,7 +37,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
37
37
  executeTimestamp?: number;
38
38
  /**
39
39
  * @remarks
40
- * Specifies whether the response contains diagnostic information.
40
+ * Indicates whether diagnostic information is included.
41
41
  *
42
42
  * @example
43
43
  * true
@@ -48,7 +48,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
48
48
  hasDiagnosticInfo?: boolean;
49
49
  /**
50
50
  * @remarks
51
- * The IP address and port of the client that ran the SQL statement.
51
+ * The IP address and port number of the client that executed the SQL statement.
52
52
  *
53
53
  * @example
54
54
  * 100.104.XX.XX:43908
@@ -56,7 +56,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
56
56
  hostAddress?: string;
57
57
  /**
58
58
  * @remarks
59
- * The process ID.
59
+ * The task ID.
60
60
  *
61
61
  * @example
62
62
  * 202106081752021720161662490345362390
@@ -64,7 +64,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
64
64
  processID?: string;
65
65
  /**
66
66
  * @remarks
67
- * The SQL statement.
67
+ * The details of the SQL statement.
68
68
  *
69
69
  * @example
70
70
  * SELECT * FROM adb_hdfs_import_source
@@ -72,7 +72,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
72
72
  SQLText?: string;
73
73
  /**
74
74
  * @remarks
75
- * The SQL type.
75
+ * The type of the SQL statement.
76
76
  *
77
77
  * @example
78
78
  * SELECT
@@ -80,11 +80,9 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
80
80
  SQLType?: string;
81
81
  /**
82
82
  * @remarks
83
- * Indicates whether the SQL statement succeeded. Valid values:
84
- *
85
- * - **true**: The SQL statement succeeded.
86
- *
87
- * - **false**: The SQL statement failed.
83
+ * Indicates whether the SQL statement was executed successfully. Valid values:
84
+ * - **true**: The SQL statement was executed successfully.
85
+ * - **false**: The SQL statement failed to be executed.
88
86
  *
89
87
  * @example
90
88
  * true
@@ -92,7 +90,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
92
90
  succeed?: string;
93
91
  /**
94
92
  * @remarks
95
- * The execution duration of the SQL statement in milliseconds (ms).
93
+ * The execution duration of the SQL statement. Unit: milliseconds (ms).
96
94
  *
97
95
  * @example
98
96
  * 216
@@ -100,7 +98,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
100
98
  totalTime?: string;
101
99
  /**
102
100
  * @remarks
103
- * The username of the account that ran the SQL statement.
101
+ * The username that executed the SQL statement.
104
102
  *
105
103
  * @example
106
104
  * test
@@ -152,7 +150,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
152
150
  export class DescribeAuditLogRecordsResponseBody extends $dara.Model {
153
151
  /**
154
152
  * @remarks
155
- * <props="china">The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
153
+ * <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
156
154
  * <props="intl">The ID of the Data Lakehouse Edition cluster.
157
155
  *
158
156
  * @example
@@ -161,7 +159,7 @@ export class DescribeAuditLogRecordsResponseBody extends $dara.Model {
161
159
  DBClusterId?: string;
162
160
  /**
163
161
  * @remarks
164
- * A list of audit log records.
162
+ * The list.
165
163
  */
166
164
  items?: DescribeAuditLogRecordsResponseBodyItems[];
167
165
  /**
@@ -174,7 +172,7 @@ export class DescribeAuditLogRecordsResponseBody extends $dara.Model {
174
172
  pageNumber?: string;
175
173
  /**
176
174
  * @remarks
177
- * The number of records per page.
175
+ * The number of entries per page.
178
176
  *
179
177
  * @example
180
178
  * 10
@@ -190,7 +188,7 @@ export class DescribeAuditLogRecordsResponseBody extends $dara.Model {
190
188
  requestId?: string;
191
189
  /**
192
190
  * @remarks
193
- * The total number of records.
191
+ * The total number of entries.
194
192
  *
195
193
  * @example
196
194
  * 6974