@alicloud/adb20211201 5.0.3 → 5.1.1

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 (51) hide show
  1. package/dist/client.d.ts +81 -6
  2. package/dist/client.js +192 -18
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CloseLogSyncToSlsrequest.d.ts +46 -0
  5. package/dist/models/CloseLogSyncToSlsrequest.js +62 -0
  6. package/dist/models/CloseLogSyncToSlsrequest.js.map +1 -0
  7. package/dist/models/CloseLogSyncToSlsresponse.d.ts +19 -0
  8. package/dist/models/CloseLogSyncToSlsresponse.js +69 -0
  9. package/dist/models/CloseLogSyncToSlsresponse.js.map +1 -0
  10. package/dist/models/CloseLogSyncToSlsresponseBody.d.ts +21 -0
  11. package/dist/models/CloseLogSyncToSlsresponseBody.js +58 -0
  12. package/dist/models/CloseLogSyncToSlsresponseBody.js.map +1 -0
  13. package/dist/models/DescribeAuditLogRecordsRequest.d.ts +24 -12
  14. package/dist/models/DescribeAuditLogRecordsRequest.js +2 -0
  15. package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
  16. package/dist/models/DescribeAuditLogRecordsResponseBody.d.ts +9 -9
  17. package/dist/models/GetLogSyncToSlsrequest.d.ts +46 -0
  18. package/dist/models/GetLogSyncToSlsrequest.js +62 -0
  19. package/dist/models/GetLogSyncToSlsrequest.js.map +1 -0
  20. package/dist/models/GetLogSyncToSlsresponse.d.ts +19 -0
  21. package/dist/models/GetLogSyncToSlsresponse.js +69 -0
  22. package/dist/models/GetLogSyncToSlsresponse.js.map +1 -0
  23. package/dist/models/GetLogSyncToSlsresponseBody.d.ts +64 -0
  24. package/dist/models/GetLogSyncToSlsresponseBody.js +86 -0
  25. package/dist/models/GetLogSyncToSlsresponseBody.js.map +1 -0
  26. package/dist/models/OpenLogSyncToSlsrequest.d.ts +66 -0
  27. package/dist/models/OpenLogSyncToSlsrequest.js +66 -0
  28. package/dist/models/OpenLogSyncToSlsrequest.js.map +1 -0
  29. package/dist/models/OpenLogSyncToSlsresponse.d.ts +19 -0
  30. package/dist/models/OpenLogSyncToSlsresponse.js +69 -0
  31. package/dist/models/OpenLogSyncToSlsresponse.js.map +1 -0
  32. package/dist/models/OpenLogSyncToSlsresponseBody.d.ts +21 -0
  33. package/dist/models/OpenLogSyncToSlsresponseBody.js +58 -0
  34. package/dist/models/OpenLogSyncToSlsresponseBody.js.map +1 -0
  35. package/dist/models/model.d.ts +10 -0
  36. package/dist/models/model.js +39 -19
  37. package/dist/models/model.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/client.ts +210 -18
  40. package/src/models/CloseLogSyncToSlsrequest.ts +63 -0
  41. package/src/models/CloseLogSyncToSlsresponse.ts +40 -0
  42. package/src/models/CloseLogSyncToSlsresponseBody.ts +34 -0
  43. package/src/models/DescribeAuditLogRecordsRequest.ts +26 -12
  44. package/src/models/DescribeAuditLogRecordsResponseBody.ts +9 -9
  45. package/src/models/GetLogSyncToSlsrequest.ts +63 -0
  46. package/src/models/GetLogSyncToSlsresponse.ts +40 -0
  47. package/src/models/GetLogSyncToSlsresponseBody.ts +96 -0
  48. package/src/models/OpenLogSyncToSlsrequest.ts +87 -0
  49. package/src/models/OpenLogSyncToSlsresponse.ts +40 -0
  50. package/src/models/OpenLogSyncToSlsresponseBody.ts +34 -0
  51. package/src/models/model.ts +10 -0
package/src/client.ts CHANGED
@@ -57,21 +57,21 @@ export default class Client extends OpenApi {
57
57
  'eu-west-1-oxs': "adb.ap-northeast-1.aliyuncs.com",
58
58
  'me-east-1': "adb.ap-northeast-1.aliyuncs.com",
59
59
  'rus-west-1-pop': "adb.ap-northeast-1.aliyuncs.com",
60
- 'na-south-1': "adb.na-south-1.aliyuncs.com",
61
- 'me-central-1': "adb.me-central-1.aliyuncs.com",
62
- 'eu-west-1': "adb.eu-west-1.aliyuncs.com",
63
- 'eu-central-1': "adb.eu-central-1.aliyuncs.com",
64
- 'cn-zhangjiakou': "adb.cn-zhangjiakou.aliyuncs.com",
65
- 'cn-wulanchabu': "adb.cn-wulanchabu.aliyuncs.com",
66
- 'cn-huhehaote': "adb.cn-huhehaote.aliyuncs.com",
67
- 'cn-guangzhou': "adb.cn-guangzhou.aliyuncs.com",
68
60
  'cn-chengdu': "adb.cn-chengdu.aliyuncs.com",
69
- 'ap-southeast-7': "adb.ap-southeast-7.aliyuncs.com",
70
- 'ap-southeast-6': "adb.ap-southeast-6.aliyuncs.com",
71
- 'ap-southeast-5': "adb.ap-southeast-5.aliyuncs.com",
72
- 'ap-southeast-3': "adb.ap-southeast-3.aliyuncs.com",
61
+ 'cn-wulanchabu': "adb.cn-wulanchabu.aliyuncs.com",
62
+ 'cn-zhangjiakou': "adb.cn-zhangjiakou.aliyuncs.com",
73
63
  'ap-northeast-2': "adb.ap-northeast-2.aliyuncs.com",
74
64
  'ap-northeast-1': "adb.ap-northeast-1.aliyuncs.com",
65
+ 'cn-guangzhou': "adb.cn-guangzhou.aliyuncs.com",
66
+ 'ap-southeast-3': "adb.ap-southeast-3.aliyuncs.com",
67
+ 'cn-huhehaote': "adb.cn-huhehaote.aliyuncs.com",
68
+ 'ap-southeast-5': "adb.ap-southeast-5.aliyuncs.com",
69
+ 'ap-southeast-6': "adb.ap-southeast-6.aliyuncs.com",
70
+ 'ap-southeast-7': "adb.ap-southeast-7.aliyuncs.com",
71
+ 'eu-west-1': "adb.eu-west-1.aliyuncs.com",
72
+ 'eu-central-1': "adb.eu-central-1.aliyuncs.com",
73
+ 'na-south-1': "adb.na-south-1.aliyuncs.com",
74
+ 'me-central-1': "adb.me-central-1.aliyuncs.com",
75
75
  };
76
76
  this.checkConfig(config);
77
77
  this._endpoint = this.getEndpoint("adb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -778,6 +778,66 @@ export default class Client extends OpenApi {
778
778
  return await this.checkSampleDataSetWithOptions(request, runtime);
779
779
  }
780
780
 
781
+ /**
782
+ * Disables log synchronization to Simple Log Service (SLS).
783
+ *
784
+ * @remarks
785
+ * - Central public endpoint: `adb.aliyuncs.com`.
786
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
787
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
788
+ *
789
+ * @param request - CloseLogSyncToSLSRequest
790
+ * @param runtime - runtime options for this request RuntimeOptions
791
+ * @returns CloseLogSyncToSLSResponse
792
+ */
793
+ async closeLogSyncToSLSWithOptions(request: $_model.CloseLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloseLogSyncToSLSResponse> {
794
+ request.validate();
795
+ let query = { };
796
+ if (!$dara.isNull(request.DBClusterId)) {
797
+ query["DBClusterId"] = request.DBClusterId;
798
+ }
799
+
800
+ if (!$dara.isNull(request.logType)) {
801
+ query["LogType"] = request.logType;
802
+ }
803
+
804
+ if (!$dara.isNull(request.regionId)) {
805
+ query["RegionId"] = request.regionId;
806
+ }
807
+
808
+ let req = new $OpenApiUtil.OpenApiRequest({
809
+ query: OpenApiUtil.query(query),
810
+ });
811
+ let params = new $OpenApiUtil.Params({
812
+ action: "CloseLogSyncToSLS",
813
+ version: "2021-12-01",
814
+ protocol: "HTTPS",
815
+ pathname: "/",
816
+ method: "POST",
817
+ authType: "AK",
818
+ style: "RPC",
819
+ reqBodyType: "formData",
820
+ bodyType: "json",
821
+ });
822
+ return $dara.cast<$_model.CloseLogSyncToSLSResponse>(await this.callApi(params, req, runtime), new $_model.CloseLogSyncToSLSResponse({}));
823
+ }
824
+
825
+ /**
826
+ * Disables log synchronization to Simple Log Service (SLS).
827
+ *
828
+ * @remarks
829
+ * - Central public endpoint: `adb.aliyuncs.com`.
830
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
831
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
832
+ *
833
+ * @param request - CloseLogSyncToSLSRequest
834
+ * @returns CloseLogSyncToSLSResponse
835
+ */
836
+ async closeLogSyncToSLS(request: $_model.CloseLogSyncToSLSRequest): Promise<$_model.CloseLogSyncToSLSResponse> {
837
+ let runtime = new $dara.RuntimeOptions({ });
838
+ return await this.closeLogSyncToSLSWithOptions(request, runtime);
839
+ }
840
+
781
841
  /**
782
842
  * Configures the export destination (SLS or OSS) at the instance level. The configuration is unique per instance and follows the "configure once, use multiple times" principle.
783
843
  *
@@ -4997,11 +5057,11 @@ export default class Client extends OpenApi {
4997
5057
  }
4998
5058
 
4999
5059
  /**
5000
- * Queries the SQL Audit Log of a cluster.
5060
+ * Queries the SQL audit logs of a cluster.
5001
5061
  *
5002
5062
  * @remarks
5003
- * - 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 shutdown and then re-enabled, only entries recorded after re-enabling are available. SQL Audit Log does not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
5004
- * - For the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
5063
+ * - SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only logs generated after re-enabling can be queried. SQL audit logs do not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
5064
+ * - For the service registration of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
5005
5065
  *
5006
5066
  * @param request - DescribeAuditLogRecordsRequest
5007
5067
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5054,6 +5114,10 @@ export default class Client extends OpenApi {
5054
5114
  query["PageSize"] = request.pageSize;
5055
5115
  }
5056
5116
 
5117
+ if (!$dara.isNull(request.processId)) {
5118
+ query["ProcessId"] = request.processId;
5119
+ }
5120
+
5057
5121
  if (!$dara.isNull(request.proxyUser)) {
5058
5122
  query["ProxyUser"] = request.proxyUser;
5059
5123
  }
@@ -5108,11 +5172,11 @@ export default class Client extends OpenApi {
5108
5172
  }
5109
5173
 
5110
5174
  /**
5111
- * Queries the SQL Audit Log of a cluster.
5175
+ * Queries the SQL audit logs of a cluster.
5112
5176
  *
5113
5177
  * @remarks
5114
- * - 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 shutdown and then re-enabled, only entries recorded after re-enabling are available. SQL Audit Log does not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
5115
- * - For the endpoints of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
5178
+ * - SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is shutdown and then re-enabled, only logs generated after re-enabling can be queried. SQL audit logs do not record **INSERT INTO VALUES**, **REPLACE INTO VALUES**, or **UPSERT INTO VALUES** operations.
5179
+ * - For the service registration of this service, see [Service registration](https://help.aliyun.com/document_detail/612373.html).
5116
5180
  *
5117
5181
  * @param request - DescribeAuditLogRecordsRequest
5118
5182
  * @returns DescribeAuditLogRecordsResponse
@@ -10927,6 +10991,66 @@ export default class Client extends OpenApi {
10927
10991
  return await this.getLakeStorageWithOptions(request, runtime);
10928
10992
  }
10929
10993
 
10994
+ /**
10995
+ * Retrieves the log synchronization configuration.
10996
+ *
10997
+ * @remarks
10998
+ * - Central public endpoint: `adb.aliyuncs.com`.
10999
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
11000
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
11001
+ *
11002
+ * @param request - GetLogSyncToSLSRequest
11003
+ * @param runtime - runtime options for this request RuntimeOptions
11004
+ * @returns GetLogSyncToSLSResponse
11005
+ */
11006
+ async getLogSyncToSLSWithOptions(request: $_model.GetLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLogSyncToSLSResponse> {
11007
+ request.validate();
11008
+ let query = { };
11009
+ if (!$dara.isNull(request.DBClusterId)) {
11010
+ query["DBClusterId"] = request.DBClusterId;
11011
+ }
11012
+
11013
+ if (!$dara.isNull(request.logType)) {
11014
+ query["LogType"] = request.logType;
11015
+ }
11016
+
11017
+ if (!$dara.isNull(request.regionId)) {
11018
+ query["RegionId"] = request.regionId;
11019
+ }
11020
+
11021
+ let req = new $OpenApiUtil.OpenApiRequest({
11022
+ query: OpenApiUtil.query(query),
11023
+ });
11024
+ let params = new $OpenApiUtil.Params({
11025
+ action: "GetLogSyncToSLS",
11026
+ version: "2021-12-01",
11027
+ protocol: "HTTPS",
11028
+ pathname: "/",
11029
+ method: "POST",
11030
+ authType: "AK",
11031
+ style: "RPC",
11032
+ reqBodyType: "formData",
11033
+ bodyType: "json",
11034
+ });
11035
+ return $dara.cast<$_model.GetLogSyncToSLSResponse>(await this.callApi(params, req, runtime), new $_model.GetLogSyncToSLSResponse({}));
11036
+ }
11037
+
11038
+ /**
11039
+ * Retrieves the log synchronization configuration.
11040
+ *
11041
+ * @remarks
11042
+ * - Central public endpoint: `adb.aliyuncs.com`.
11043
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
11044
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
11045
+ *
11046
+ * @param request - GetLogSyncToSLSRequest
11047
+ * @returns GetLogSyncToSLSResponse
11048
+ */
11049
+ async getLogSyncToSLS(request: $_model.GetLogSyncToSLSRequest): Promise<$_model.GetLogSyncToSLSResponse> {
11050
+ let runtime = new $dara.RuntimeOptions({ });
11051
+ return await this.getLogSyncToSLSWithOptions(request, runtime);
11052
+ }
11053
+
10930
11054
  /**
10931
11055
  * Retrieves the details of a semantic view.
10932
11056
  *
@@ -15135,6 +15259,74 @@ export default class Client extends OpenApi {
15135
15259
  return await this.modifyUserEniVswitchOptionsWithOptions(request, runtime);
15136
15260
  }
15137
15261
 
15262
+ /**
15263
+ * Enables log synchronization to Simple Log Service (SLS).
15264
+ *
15265
+ * @remarks
15266
+ * - Central public endpoint: `adb.aliyuncs.com`.
15267
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
15268
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
15269
+ *
15270
+ * @param request - OpenLogSyncToSLSRequest
15271
+ * @param runtime - runtime options for this request RuntimeOptions
15272
+ * @returns OpenLogSyncToSLSResponse
15273
+ */
15274
+ async openLogSyncToSLSWithOptions(request: $_model.OpenLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OpenLogSyncToSLSResponse> {
15275
+ request.validate();
15276
+ let query = { };
15277
+ if (!$dara.isNull(request.DBClusterId)) {
15278
+ query["DBClusterId"] = request.DBClusterId;
15279
+ }
15280
+
15281
+ if (!$dara.isNull(request.logType)) {
15282
+ query["LogType"] = request.logType;
15283
+ }
15284
+
15285
+ if (!$dara.isNull(request.regionId)) {
15286
+ query["RegionId"] = request.regionId;
15287
+ }
15288
+
15289
+ if (!$dara.isNull(request.targetLogStore)) {
15290
+ query["TargetLogStore"] = request.targetLogStore;
15291
+ }
15292
+
15293
+ if (!$dara.isNull(request.targetProject)) {
15294
+ query["TargetProject"] = request.targetProject;
15295
+ }
15296
+
15297
+ let req = new $OpenApiUtil.OpenApiRequest({
15298
+ query: OpenApiUtil.query(query),
15299
+ });
15300
+ let params = new $OpenApiUtil.Params({
15301
+ action: "OpenLogSyncToSLS",
15302
+ version: "2021-12-01",
15303
+ protocol: "HTTPS",
15304
+ pathname: "/",
15305
+ method: "POST",
15306
+ authType: "AK",
15307
+ style: "RPC",
15308
+ reqBodyType: "formData",
15309
+ bodyType: "json",
15310
+ });
15311
+ return $dara.cast<$_model.OpenLogSyncToSLSResponse>(await this.callApi(params, req, runtime), new $_model.OpenLogSyncToSLSResponse({}));
15312
+ }
15313
+
15314
+ /**
15315
+ * Enables log synchronization to Simple Log Service (SLS).
15316
+ *
15317
+ * @remarks
15318
+ * - Central public endpoint: `adb.aliyuncs.com`.
15319
+ * - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
15320
+ * - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
15321
+ *
15322
+ * @param request - OpenLogSyncToSLSRequest
15323
+ * @returns OpenLogSyncToSLSResponse
15324
+ */
15325
+ async openLogSyncToSLS(request: $_model.OpenLogSyncToSLSRequest): Promise<$_model.OpenLogSyncToSLSResponse> {
15326
+ let runtime = new $dara.RuntimeOptions({ });
15327
+ return await this.openLogSyncToSLSWithOptions(request, runtime);
15328
+ }
15329
+
15138
15330
  /**
15139
15331
  * Preloads metrics for a Spark application.
15140
15332
  *
@@ -0,0 +1,63 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloseLogSyncToSLSRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The cluster ID.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * am-bp198m028ih55****
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The log type. Valid values:
19
+ *
20
+ * - **ADBMYSQL_AUDIT_LOG**
21
+ * - **ADBMYSQL_INSERT_LOG**
22
+ *
23
+ * Default value: `ADBMYSQL_AUDIT_LOG`.
24
+ *
25
+ * @example
26
+ * ADBMYSQL_AUDIT_LOG
27
+ */
28
+ logType?: string;
29
+ /**
30
+ * @remarks
31
+ * The region ID.
32
+ *
33
+ * This parameter is required.
34
+ *
35
+ * @example
36
+ * cn-hangzhou
37
+ */
38
+ regionId?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ DBClusterId: 'DBClusterId',
42
+ logType: 'LogType',
43
+ regionId: 'RegionId',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ DBClusterId: 'string',
50
+ logType: 'string',
51
+ regionId: 'string',
52
+ };
53
+ }
54
+
55
+ validate() {
56
+ super.validate();
57
+ }
58
+
59
+ constructor(map?: { [key: string]: any }) {
60
+ super(map);
61
+ }
62
+ }
63
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CloseLogSyncToSLSResponseBody } from "./CloseLogSyncToSlsresponseBody";
4
+
5
+
6
+ export class CloseLogSyncToSLSResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CloseLogSyncToSLSResponseBody;
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: CloseLogSyncToSLSResponseBody,
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,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CloseLogSyncToSLSResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The request ID.
9
+ *
10
+ * @example
11
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
12
+ */
13
+ requestId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ requestId: 'RequestId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ requestId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -6,8 +6,8 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
9
- * <props="intl">The ID of the Data Lakehouse Edition cluster.
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.
9
+ * <props="intl">The cluster ID of the Data Lakehouse Edition cluster.
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 specified region.
11
11
  *
12
12
  * This parameter is required.
13
13
  *
@@ -17,7 +17,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
17
17
  DBClusterId?: string;
18
18
  /**
19
19
  * @remarks
20
- * The name of the database on which the SQL statement was executed.
20
+ * The name of the database on which the SQL statement is executed.
21
21
  *
22
22
  * @example
23
23
  * adb_demo
@@ -33,10 +33,21 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
33
33
  * 2022-08-12T17:08Z
34
34
  */
35
35
  endTime?: string;
36
+ /**
37
+ * @remarks
38
+ * The engine type. Valid values:
39
+ * - XIHE: audit logs of the default compute engine.
40
+ * - AGENT_SERVERLESS: audit logs of the Serverless analytics feature.
41
+ *
42
+ * If this parameter is not specified, the default value is XIHE.
43
+ *
44
+ * @example
45
+ * XIHE
46
+ */
36
47
  engineType?: string;
37
48
  /**
38
49
  * @remarks
39
- * The IP address and port number of the client that executed the SQL statement.
50
+ * The IP address and port number of the client that executes the SQL statement.
40
51
  *
41
52
  * @example
42
53
  * 100.104.XX.XX:43908
@@ -51,7 +62,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
51
62
  * * **ExecutionStartTime**: the execution start time of the SQL statement.
52
63
  * * **QueryTime**: the execution duration of the SQL statement.
53
64
  * * **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.
65
+ * * **ScanRows**: the number of rows scanned by tasks with data sources.
55
66
  * * **ScanSize**: the amount of scanned data.
56
67
  * * **ScanTime**: the total time consumed for scanning data.
57
68
  * * **PlanningTime**: the time consumed for generating the execution plan.
@@ -98,6 +109,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
98
109
  * 10
99
110
  */
100
111
  pageSize?: number;
112
+ processId?: string;
101
113
  /**
102
114
  * @remarks
103
115
  * A reserved parameter.
@@ -108,7 +120,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
108
120
  proxyUser?: string;
109
121
  /**
110
122
  * @remarks
111
- * The keyword used to filter the returned results.
123
+ * The keyword used to search the returned results.
112
124
  *
113
125
  * @example
114
126
  * adb
@@ -138,7 +150,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
138
150
  * - **DROP**
139
151
  * - **CREATE**
140
152
  *
141
- * > Only one type can be specified per request. If this parameter is left empty, all types are queried by default.
153
+ * > Only one type can be specified per request. If this parameter is not specified, all types are queried by default.
142
154
  *
143
155
  * @example
144
156
  * SELECT
@@ -147,7 +159,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
147
159
  /**
148
160
  * @remarks
149
161
  * 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.
162
+ * > SQL audit logs can be queried only when SQL audit is enabled, and only logs from the last 30 days are supported. If SQL audit is disabled and then re-enabled, only logs generated after re-enabling can be queried.
151
163
  *
152
164
  * @example
153
165
  * 2022-08-12T04:17Z
@@ -155,9 +167,9 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
155
167
  startTime?: string;
156
168
  /**
157
169
  * @remarks
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.
170
+ * Specifies whether the SQL statement is executed successfully. Valid values:
171
+ * * **true**: Executed successfully.
172
+ * * **false**: Execution failed.
161
173
  *
162
174
  * @example
163
175
  * true
@@ -165,7 +177,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
165
177
  succeed?: string;
166
178
  /**
167
179
  * @remarks
168
- * The username that executed the SQL statement.
180
+ * The username that executes the SQL statement.
169
181
  *
170
182
  * @example
171
183
  * test
@@ -184,6 +196,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
184
196
  ownerId: 'OwnerId',
185
197
  pageNumber: 'PageNumber',
186
198
  pageSize: 'PageSize',
199
+ processId: 'ProcessId',
187
200
  proxyUser: 'ProxyUser',
188
201
  queryKeyword: 'QueryKeyword',
189
202
  regionId: 'RegionId',
@@ -209,6 +222,7 @@ export class DescribeAuditLogRecordsRequest extends $dara.Model {
209
222
  ownerId: 'number',
210
223
  pageNumber: 'number',
211
224
  pageSize: 'number',
225
+ processId: 'string',
212
226
  proxyUser: 'string',
213
227
  queryKeyword: 'string',
214
228
  regionId: '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 was executed.
16
+ * The name of the database on which the SQL statement is 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 in local time. The time is in the yyyy-MM-dd HH:mm:ss format.
24
+ * The execution start time of the SQL statement in local time. Format: yyyy-MM-dd HH:mm:ss.
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, in millisecond-precision UNIX timestamp.
32
+ * The execution start time of the SQL statement. The value is a UNIX timestamp in milliseconds.
33
33
  *
34
34
  * @example
35
35
  * 1774600396584
@@ -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 number of the client that executed the SQL statement.
51
+ * The IP address and port number of the client that executes the SQL statement.
52
52
  *
53
53
  * @example
54
54
  * 100.104.XX.XX:43908
@@ -80,9 +80,9 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
80
80
  SQLType?: string;
81
81
  /**
82
82
  * @remarks
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.
83
+ * Indicates whether the SQL statement is executed successfully. Valid values:
84
+ * - **true**: Executed successfully.
85
+ * - **false**: Execution failed.
86
86
  *
87
87
  * @example
88
88
  * true
@@ -98,7 +98,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
98
98
  totalTime?: string;
99
99
  /**
100
100
  * @remarks
101
- * The username that executed the SQL statement.
101
+ * The username that executes the SQL statement.
102
102
  *
103
103
  * @example
104
104
  * test
@@ -151,7 +151,7 @@ export class DescribeAuditLogRecordsResponseBody extends $dara.Model {
151
151
  /**
152
152
  * @remarks
153
153
  * <props="china">The cluster ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.
154
- * <props="intl">The ID of the Data Lakehouse Edition cluster.
154
+ * <props="intl">The cluster ID of the Data Lakehouse Edition cluster.
155
155
  *
156
156
  * @example
157
157
  * amv-t4nj8619bz2w3****
@@ -0,0 +1,63 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class GetLogSyncToSLSRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The cluster ID.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * am-uf6g8w25jacm7****
14
+ */
15
+ DBClusterId?: string;
16
+ /**
17
+ * @remarks
18
+ * The log type. Valid values:
19
+ *
20
+ * - **ADBMYSQL_AUDIT_LOG**
21
+ * - **ADBMYSQL_INSERT_LOG**
22
+ *
23
+ * Default value: `ADBMYSQL_AUDIT_LOG`.
24
+ *
25
+ * @example
26
+ * ADBMYSQL_AUDIT_LOG
27
+ */
28
+ logType?: string;
29
+ /**
30
+ * @remarks
31
+ * The region ID.
32
+ *
33
+ * This parameter is required.
34
+ *
35
+ * @example
36
+ * cn-hangzhou
37
+ */
38
+ regionId?: string;
39
+ static names(): { [key: string]: string } {
40
+ return {
41
+ DBClusterId: 'DBClusterId',
42
+ logType: 'LogType',
43
+ regionId: 'RegionId',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ DBClusterId: 'string',
50
+ logType: 'string',
51
+ regionId: 'string',
52
+ };
53
+ }
54
+
55
+ validate() {
56
+ super.validate();
57
+ }
58
+
59
+ constructor(map?: { [key: string]: any }) {
60
+ super(map);
61
+ }
62
+ }
63
+