@alicloud/adb20211201 5.0.3 → 5.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.
Files changed (48) hide show
  1. package/dist/client.d.ts +75 -0
  2. package/dist/client.js +183 -12
  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 +4 -0
  14. package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
  15. package/dist/models/GetLogSyncToSlsrequest.d.ts +46 -0
  16. package/dist/models/GetLogSyncToSlsrequest.js +62 -0
  17. package/dist/models/GetLogSyncToSlsrequest.js.map +1 -0
  18. package/dist/models/GetLogSyncToSlsresponse.d.ts +19 -0
  19. package/dist/models/GetLogSyncToSlsresponse.js +69 -0
  20. package/dist/models/GetLogSyncToSlsresponse.js.map +1 -0
  21. package/dist/models/GetLogSyncToSlsresponseBody.d.ts +64 -0
  22. package/dist/models/GetLogSyncToSlsresponseBody.js +86 -0
  23. package/dist/models/GetLogSyncToSlsresponseBody.js.map +1 -0
  24. package/dist/models/OpenLogSyncToSlsrequest.d.ts +66 -0
  25. package/dist/models/OpenLogSyncToSlsrequest.js +66 -0
  26. package/dist/models/OpenLogSyncToSlsrequest.js.map +1 -0
  27. package/dist/models/OpenLogSyncToSlsresponse.d.ts +19 -0
  28. package/dist/models/OpenLogSyncToSlsresponse.js +69 -0
  29. package/dist/models/OpenLogSyncToSlsresponse.js.map +1 -0
  30. package/dist/models/OpenLogSyncToSlsresponseBody.d.ts +21 -0
  31. package/dist/models/OpenLogSyncToSlsresponseBody.js +58 -0
  32. package/dist/models/OpenLogSyncToSlsresponseBody.js.map +1 -0
  33. package/dist/models/model.d.ts +10 -0
  34. package/dist/models/model.js +39 -19
  35. package/dist/models/model.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/client.ts +200 -12
  38. package/src/models/CloseLogSyncToSlsrequest.ts +63 -0
  39. package/src/models/CloseLogSyncToSlsresponse.ts +40 -0
  40. package/src/models/CloseLogSyncToSlsresponseBody.ts +34 -0
  41. package/src/models/DescribeAuditLogRecordsRequest.ts +4 -0
  42. package/src/models/GetLogSyncToSlsrequest.ts +63 -0
  43. package/src/models/GetLogSyncToSlsresponse.ts +40 -0
  44. package/src/models/GetLogSyncToSlsresponseBody.ts +96 -0
  45. package/src/models/OpenLogSyncToSlsrequest.ts +87 -0
  46. package/src/models/OpenLogSyncToSlsresponse.ts +40 -0
  47. package/src/models/OpenLogSyncToSlsresponseBody.ts +34 -0
  48. package/src/models/model.ts +10 -0
@@ -0,0 +1,66 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class OpenLogSyncToSLSRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The cluster ID.
6
+ *
7
+ * This parameter is required.
8
+ *
9
+ * @example
10
+ * am-bp1ub9grke1****
11
+ */
12
+ DBClusterId?: string;
13
+ /**
14
+ * @remarks
15
+ * The log type. Valid values:
16
+ *
17
+ * - **ADBMYSQL_AUDIT_LOG**
18
+ * - **ADBMYSQL_INSERT_LOG**
19
+ *
20
+ * Default value: `ADBMYSQL_AUDIT_LOG`.
21
+ *
22
+ * @example
23
+ * ADBMYSQL_AUDIT_LOG
24
+ */
25
+ logType?: string;
26
+ /**
27
+ * @remarks
28
+ * The region ID.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * cn-beijing
34
+ */
35
+ regionId?: string;
36
+ /**
37
+ * @remarks
38
+ * The Simple Log Service LogStore.
39
+ *
40
+ * This parameter is required.
41
+ *
42
+ * @example
43
+ * adbmysql-audit-log
44
+ */
45
+ targetLogStore?: string;
46
+ /**
47
+ * @remarks
48
+ * The Simple Log Service project.
49
+ *
50
+ * This parameter is required.
51
+ *
52
+ * @example
53
+ * log-service-****-cn-shenzhen
54
+ */
55
+ targetProject?: string;
56
+ static names(): {
57
+ [key: string]: string;
58
+ };
59
+ static types(): {
60
+ [key: string]: any;
61
+ };
62
+ validate(): void;
63
+ constructor(map?: {
64
+ [key: string]: any;
65
+ });
66
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.OpenLogSyncToSLSRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class OpenLogSyncToSLSRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ DBClusterId: 'DBClusterId',
43
+ logType: 'LogType',
44
+ regionId: 'RegionId',
45
+ targetLogStore: 'TargetLogStore',
46
+ targetProject: 'TargetProject',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ DBClusterId: 'string',
52
+ logType: 'string',
53
+ regionId: 'string',
54
+ targetLogStore: 'string',
55
+ targetProject: 'string',
56
+ };
57
+ }
58
+ validate() {
59
+ super.validate();
60
+ }
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ }
65
+ exports.OpenLogSyncToSLSRequest = OpenLogSyncToSLSRequest;
66
+ //# sourceMappingURL=OpenLogSyncToSlsrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenLogSyncToSlsrequest.js","sourceRoot":"","sources":["../../src/models/OpenLogSyncToSlsrequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAsDtD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,aAAa,EAAE,eAAe;SAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,OAAO,EAAE,QAAQ;YACjB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,aAAa,EAAE,QAAQ;SACxB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjFD,0DAiFC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { OpenLogSyncToSLSResponseBody } from "./OpenLogSyncToSlsresponseBody";
3
+ export declare class OpenLogSyncToSLSResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: OpenLogSyncToSLSResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.OpenLogSyncToSLSResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const OpenLogSyncToSlsresponseBody_1 = require("./OpenLogSyncToSlsresponseBody");
40
+ class OpenLogSyncToSLSResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: OpenLogSyncToSlsresponseBody_1.OpenLogSyncToSLSResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.OpenLogSyncToSLSResponse = OpenLogSyncToSLSResponse;
69
+ //# sourceMappingURL=OpenLogSyncToSlsresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenLogSyncToSlsresponse.js","sourceRoot":"","sources":["../../src/models/OpenLogSyncToSlsresponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,iFAA8E;AAG9E,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAIvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,2DAA4B;SACnC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,4DAiCC"}
@@ -0,0 +1,21 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class OpenLogSyncToSLSResponseBody extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The request ID.
6
+ *
7
+ * @example
8
+ * 1AD222E9-E606-4A42-BF6D-8A4442913CEF
9
+ */
10
+ requestId?: string;
11
+ static names(): {
12
+ [key: string]: string;
13
+ };
14
+ static types(): {
15
+ [key: string]: any;
16
+ };
17
+ validate(): void;
18
+ constructor(map?: {
19
+ [key: string]: any;
20
+ });
21
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.OpenLogSyncToSLSResponseBody = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class OpenLogSyncToSLSResponseBody extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ requestId: 'RequestId',
43
+ };
44
+ }
45
+ static types() {
46
+ return {
47
+ requestId: 'string',
48
+ };
49
+ }
50
+ validate() {
51
+ super.validate();
52
+ }
53
+ constructor(map) {
54
+ super(map);
55
+ }
56
+ }
57
+ exports.OpenLogSyncToSLSResponseBody = OpenLogSyncToSLSResponseBody;
58
+ //# sourceMappingURL=OpenLogSyncToSlsresponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenLogSyncToSlsresponseBody.js","sourceRoot":"","sources":["../../src/models/OpenLogSyncToSlsresponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAS3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oEA4BC"}
@@ -221,6 +221,7 @@ export { GetDatabaseObjectsResponseBodyData } from './GetDatabaseObjectsResponse
221
221
  export { GetKnowledgeRecallResponseBodyData } from './GetKnowledgeRecallResponseBody';
222
222
  export { GetLakeStorageResponseBodyDataPermissions } from './GetLakeStorageResponseBody';
223
223
  export { GetLakeStorageResponseBodyData } from './GetLakeStorageResponseBody';
224
+ export { GetLogSyncToSLSResponseBodyData } from './GetLogSyncToSlsresponseBody';
224
225
  export { GetSparkAppAttemptLogResponseBodyData } from './GetSparkAppAttemptLogResponseBody';
225
226
  export { GetSparkAppLogResponseBodyData } from './GetSparkAppLogResponseBody';
226
227
  export { GetSparkAppMetricsResponseBodyDataScanMetrics } from './GetSparkAppMetricsResponseBody';
@@ -352,6 +353,9 @@ export { CheckFormationSchemaExistsResponse } from './CheckFormationSchemaExists
352
353
  export { CheckSampleDataSetRequest } from './CheckSampleDataSetRequest';
353
354
  export { CheckSampleDataSetResponseBody } from './CheckSampleDataSetResponseBody';
354
355
  export { CheckSampleDataSetResponse } from './CheckSampleDataSetResponse';
356
+ export { CloseLogSyncToSLSRequest } from './CloseLogSyncToSlsrequest';
357
+ export { CloseLogSyncToSLSResponseBody } from './CloseLogSyncToSlsresponseBody';
358
+ export { CloseLogSyncToSLSResponse } from './CloseLogSyncToSlsresponse';
355
359
  export { ConfigureResultExportRequest } from './ConfigureResultExportRequest';
356
360
  export { ConfigureResultExportShrinkRequest } from './ConfigureResultExportShrinkRequest';
357
361
  export { ConfigureResultExportResponseBody } from './ConfigureResultExportResponseBody';
@@ -809,6 +813,9 @@ export { GetKnowledgeRecallResponse } from './GetKnowledgeRecallResponse';
809
813
  export { GetLakeStorageRequest } from './GetLakeStorageRequest';
810
814
  export { GetLakeStorageResponseBody } from './GetLakeStorageResponseBody';
811
815
  export { GetLakeStorageResponse } from './GetLakeStorageResponse';
816
+ export { GetLogSyncToSLSRequest } from './GetLogSyncToSlsrequest';
817
+ export { GetLogSyncToSLSResponseBody } from './GetLogSyncToSlsresponseBody';
818
+ export { GetLogSyncToSLSResponse } from './GetLogSyncToSlsresponse';
812
819
  export { GetSemanticViewRequest } from './GetSemanticViewRequest';
813
820
  export { GetSemanticViewResponseBody } from './GetSemanticViewResponseBody';
814
821
  export { GetSemanticViewResponse } from './GetSemanticViewResponse';
@@ -1010,6 +1017,9 @@ export { ModifySqlTemplatePositionResponse } from './ModifySqlTemplatePositionRe
1010
1017
  export { ModifyUserEniVswitchOptionsRequest } from './ModifyUserEniVswitchOptionsRequest';
1011
1018
  export { ModifyUserEniVswitchOptionsResponseBody } from './ModifyUserEniVswitchOptionsResponseBody';
1012
1019
  export { ModifyUserEniVswitchOptionsResponse } from './ModifyUserEniVswitchOptionsResponse';
1020
+ export { OpenLogSyncToSLSRequest } from './OpenLogSyncToSlsrequest';
1021
+ export { OpenLogSyncToSLSResponseBody } from './OpenLogSyncToSlsresponseBody';
1022
+ export { OpenLogSyncToSLSResponse } from './OpenLogSyncToSlsresponse';
1013
1023
  export { PreloadSparkAppMetricsRequest } from './PreloadSparkAppMetricsRequest';
1014
1024
  export { PreloadSparkAppMetricsResponseBody } from './PreloadSparkAppMetricsResponseBody';
1015
1025
  export { PreloadSparkAppMetricsResponse } from './PreloadSparkAppMetricsResponse';