@alicloud/adb20211201 5.0.2 → 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.
- package/dist/client.d.ts +75 -0
- package/dist/client.js +186 -12
- package/dist/client.js.map +1 -1
- package/dist/models/CloseLogSyncToSlsrequest.d.ts +46 -0
- package/dist/models/CloseLogSyncToSlsrequest.js +62 -0
- package/dist/models/CloseLogSyncToSlsrequest.js.map +1 -0
- package/dist/models/CloseLogSyncToSlsresponse.d.ts +19 -0
- package/dist/models/CloseLogSyncToSlsresponse.js +69 -0
- package/dist/models/CloseLogSyncToSlsresponse.js.map +1 -0
- package/dist/models/CloseLogSyncToSlsresponseBody.d.ts +21 -0
- package/dist/models/CloseLogSyncToSlsresponseBody.js +58 -0
- package/dist/models/CloseLogSyncToSlsresponseBody.js.map +1 -0
- package/dist/models/DescribeAuditLogRecordsRequest.d.ts +4 -0
- package/dist/models/DescribeAuditLogRecordsRequest.js.map +1 -1
- package/dist/models/GetKnowledgeRecallRequest.d.ts +5 -0
- package/dist/models/GetKnowledgeRecallRequest.js +2 -0
- package/dist/models/GetKnowledgeRecallRequest.js.map +1 -1
- package/dist/models/GetKnowledgeRecallResponseBody.d.ts +1 -1
- package/dist/models/GetLogSyncToSlsrequest.d.ts +46 -0
- package/dist/models/GetLogSyncToSlsrequest.js +62 -0
- package/dist/models/GetLogSyncToSlsrequest.js.map +1 -0
- package/dist/models/GetLogSyncToSlsresponse.d.ts +19 -0
- package/dist/models/GetLogSyncToSlsresponse.js +69 -0
- package/dist/models/GetLogSyncToSlsresponse.js.map +1 -0
- package/dist/models/GetLogSyncToSlsresponseBody.d.ts +64 -0
- package/dist/models/GetLogSyncToSlsresponseBody.js +86 -0
- package/dist/models/GetLogSyncToSlsresponseBody.js.map +1 -0
- package/dist/models/OpenLogSyncToSlsrequest.d.ts +66 -0
- package/dist/models/OpenLogSyncToSlsrequest.js +66 -0
- package/dist/models/OpenLogSyncToSlsrequest.js.map +1 -0
- package/dist/models/OpenLogSyncToSlsresponse.d.ts +19 -0
- package/dist/models/OpenLogSyncToSlsresponse.js +69 -0
- package/dist/models/OpenLogSyncToSlsresponse.js.map +1 -0
- package/dist/models/OpenLogSyncToSlsresponseBody.d.ts +21 -0
- package/dist/models/OpenLogSyncToSlsresponseBody.js +58 -0
- package/dist/models/OpenLogSyncToSlsresponseBody.js.map +1 -0
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +39 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +204 -12
- package/src/models/CloseLogSyncToSlsrequest.ts +63 -0
- package/src/models/CloseLogSyncToSlsresponse.ts +40 -0
- package/src/models/CloseLogSyncToSlsresponseBody.ts +34 -0
- package/src/models/DescribeAuditLogRecordsRequest.ts +4 -0
- package/src/models/GetKnowledgeRecallRequest.ts +7 -0
- package/src/models/GetKnowledgeRecallResponseBody.ts +1 -1
- package/src/models/GetLogSyncToSlsrequest.ts +63 -0
- package/src/models/GetLogSyncToSlsresponse.ts +40 -0
- package/src/models/GetLogSyncToSlsresponseBody.ts +96 -0
- package/src/models/OpenLogSyncToSlsrequest.ts +87 -0
- package/src/models/OpenLogSyncToSlsresponse.ts +40 -0
- package/src/models/OpenLogSyncToSlsresponseBody.ts +34 -0
- 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
|
-
'
|
|
70
|
-
'
|
|
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
|
*
|
|
@@ -10843,6 +10903,10 @@ export default class Client extends OpenApi {
|
|
|
10843
10903
|
query["Topk"] = request.topk;
|
|
10844
10904
|
}
|
|
10845
10905
|
|
|
10906
|
+
if (!$dara.isNull(request.user)) {
|
|
10907
|
+
query["User"] = request.user;
|
|
10908
|
+
}
|
|
10909
|
+
|
|
10846
10910
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10847
10911
|
query: OpenApiUtil.query(query),
|
|
10848
10912
|
});
|
|
@@ -10923,6 +10987,66 @@ export default class Client extends OpenApi {
|
|
|
10923
10987
|
return await this.getLakeStorageWithOptions(request, runtime);
|
|
10924
10988
|
}
|
|
10925
10989
|
|
|
10990
|
+
/**
|
|
10991
|
+
* Retrieves the log synchronization configuration.
|
|
10992
|
+
*
|
|
10993
|
+
* @remarks
|
|
10994
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
10995
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
10996
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
10997
|
+
*
|
|
10998
|
+
* @param request - GetLogSyncToSLSRequest
|
|
10999
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11000
|
+
* @returns GetLogSyncToSLSResponse
|
|
11001
|
+
*/
|
|
11002
|
+
async getLogSyncToSLSWithOptions(request: $_model.GetLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLogSyncToSLSResponse> {
|
|
11003
|
+
request.validate();
|
|
11004
|
+
let query = { };
|
|
11005
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
11006
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
11007
|
+
}
|
|
11008
|
+
|
|
11009
|
+
if (!$dara.isNull(request.logType)) {
|
|
11010
|
+
query["LogType"] = request.logType;
|
|
11011
|
+
}
|
|
11012
|
+
|
|
11013
|
+
if (!$dara.isNull(request.regionId)) {
|
|
11014
|
+
query["RegionId"] = request.regionId;
|
|
11015
|
+
}
|
|
11016
|
+
|
|
11017
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
11018
|
+
query: OpenApiUtil.query(query),
|
|
11019
|
+
});
|
|
11020
|
+
let params = new $OpenApiUtil.Params({
|
|
11021
|
+
action: "GetLogSyncToSLS",
|
|
11022
|
+
version: "2021-12-01",
|
|
11023
|
+
protocol: "HTTPS",
|
|
11024
|
+
pathname: "/",
|
|
11025
|
+
method: "POST",
|
|
11026
|
+
authType: "AK",
|
|
11027
|
+
style: "RPC",
|
|
11028
|
+
reqBodyType: "formData",
|
|
11029
|
+
bodyType: "json",
|
|
11030
|
+
});
|
|
11031
|
+
return $dara.cast<$_model.GetLogSyncToSLSResponse>(await this.callApi(params, req, runtime), new $_model.GetLogSyncToSLSResponse({}));
|
|
11032
|
+
}
|
|
11033
|
+
|
|
11034
|
+
/**
|
|
11035
|
+
* Retrieves the log synchronization configuration.
|
|
11036
|
+
*
|
|
11037
|
+
* @remarks
|
|
11038
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
11039
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
11040
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
11041
|
+
*
|
|
11042
|
+
* @param request - GetLogSyncToSLSRequest
|
|
11043
|
+
* @returns GetLogSyncToSLSResponse
|
|
11044
|
+
*/
|
|
11045
|
+
async getLogSyncToSLS(request: $_model.GetLogSyncToSLSRequest): Promise<$_model.GetLogSyncToSLSResponse> {
|
|
11046
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
11047
|
+
return await this.getLogSyncToSLSWithOptions(request, runtime);
|
|
11048
|
+
}
|
|
11049
|
+
|
|
10926
11050
|
/**
|
|
10927
11051
|
* Retrieves the details of a semantic view.
|
|
10928
11052
|
*
|
|
@@ -15131,6 +15255,74 @@ export default class Client extends OpenApi {
|
|
|
15131
15255
|
return await this.modifyUserEniVswitchOptionsWithOptions(request, runtime);
|
|
15132
15256
|
}
|
|
15133
15257
|
|
|
15258
|
+
/**
|
|
15259
|
+
* Enables log synchronization to Simple Log Service (SLS).
|
|
15260
|
+
*
|
|
15261
|
+
* @remarks
|
|
15262
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
15263
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
15264
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
15265
|
+
*
|
|
15266
|
+
* @param request - OpenLogSyncToSLSRequest
|
|
15267
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
15268
|
+
* @returns OpenLogSyncToSLSResponse
|
|
15269
|
+
*/
|
|
15270
|
+
async openLogSyncToSLSWithOptions(request: $_model.OpenLogSyncToSLSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OpenLogSyncToSLSResponse> {
|
|
15271
|
+
request.validate();
|
|
15272
|
+
let query = { };
|
|
15273
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
15274
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
15275
|
+
}
|
|
15276
|
+
|
|
15277
|
+
if (!$dara.isNull(request.logType)) {
|
|
15278
|
+
query["LogType"] = request.logType;
|
|
15279
|
+
}
|
|
15280
|
+
|
|
15281
|
+
if (!$dara.isNull(request.regionId)) {
|
|
15282
|
+
query["RegionId"] = request.regionId;
|
|
15283
|
+
}
|
|
15284
|
+
|
|
15285
|
+
if (!$dara.isNull(request.targetLogStore)) {
|
|
15286
|
+
query["TargetLogStore"] = request.targetLogStore;
|
|
15287
|
+
}
|
|
15288
|
+
|
|
15289
|
+
if (!$dara.isNull(request.targetProject)) {
|
|
15290
|
+
query["TargetProject"] = request.targetProject;
|
|
15291
|
+
}
|
|
15292
|
+
|
|
15293
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
15294
|
+
query: OpenApiUtil.query(query),
|
|
15295
|
+
});
|
|
15296
|
+
let params = new $OpenApiUtil.Params({
|
|
15297
|
+
action: "OpenLogSyncToSLS",
|
|
15298
|
+
version: "2021-12-01",
|
|
15299
|
+
protocol: "HTTPS",
|
|
15300
|
+
pathname: "/",
|
|
15301
|
+
method: "POST",
|
|
15302
|
+
authType: "AK",
|
|
15303
|
+
style: "RPC",
|
|
15304
|
+
reqBodyType: "formData",
|
|
15305
|
+
bodyType: "json",
|
|
15306
|
+
});
|
|
15307
|
+
return $dara.cast<$_model.OpenLogSyncToSLSResponse>(await this.callApi(params, req, runtime), new $_model.OpenLogSyncToSLSResponse({}));
|
|
15308
|
+
}
|
|
15309
|
+
|
|
15310
|
+
/**
|
|
15311
|
+
* Enables log synchronization to Simple Log Service (SLS).
|
|
15312
|
+
*
|
|
15313
|
+
* @remarks
|
|
15314
|
+
* - Central public endpoint: `adb.aliyuncs.com`.
|
|
15315
|
+
* - Regional public endpoint: `adb.<region-id>.aliyuncs.com`. Example: `adb.cn-hangzhou.aliyuncs.com`.
|
|
15316
|
+
* - Regional VPC endpoint: `adb-vpc.<region-id>.aliyuncs.com`. Example: `adb-vpc.cn-hangzhou.aliyuncs.com`.
|
|
15317
|
+
*
|
|
15318
|
+
* @param request - OpenLogSyncToSLSRequest
|
|
15319
|
+
* @returns OpenLogSyncToSLSResponse
|
|
15320
|
+
*/
|
|
15321
|
+
async openLogSyncToSLS(request: $_model.OpenLogSyncToSLSRequest): Promise<$_model.OpenLogSyncToSLSResponse> {
|
|
15322
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
15323
|
+
return await this.openLogSyncToSLSWithOptions(request, runtime);
|
|
15324
|
+
}
|
|
15325
|
+
|
|
15134
15326
|
/**
|
|
15135
15327
|
* Preloads metrics for a Spark application.
|
|
15136
15328
|
*
|
|
@@ -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
|
+
|
|
@@ -31,11 +31,17 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
|
|
|
31
31
|
* 5
|
|
32
32
|
*/
|
|
33
33
|
topk?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* The username. Only files that this user has permission to access are recalled.
|
|
37
|
+
*/
|
|
38
|
+
user?: string;
|
|
34
39
|
static names(): { [key: string]: string } {
|
|
35
40
|
return {
|
|
36
41
|
DBClusterId: 'DBClusterId',
|
|
37
42
|
question: 'Question',
|
|
38
43
|
topk: 'Topk',
|
|
44
|
+
user: 'User',
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
|
|
@@ -44,6 +50,7 @@ export class GetKnowledgeRecallRequest extends $dara.Model {
|
|
|
44
50
|
DBClusterId: 'string',
|
|
45
51
|
question: 'string',
|
|
46
52
|
topk: 'number',
|
|
53
|
+
user: 'string',
|
|
47
54
|
};
|
|
48
55
|
}
|
|
49
56
|
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetLogSyncToSLSResponseBody } from "./GetLogSyncToSlsresponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetLogSyncToSLSResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetLogSyncToSLSResponseBody;
|
|
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: GetLogSyncToSLSResponseBody,
|
|
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,96 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetLogSyncToSLSResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The log synchronization status. Valid values:
|
|
9
|
+
* - on: Synchronization is enabled.
|
|
10
|
+
* - off: Synchronization is disabled.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* off
|
|
14
|
+
*/
|
|
15
|
+
status?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The Simple Log Service Logstore.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* adbmysql-audit-log
|
|
22
|
+
*/
|
|
23
|
+
targetLogStore?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The Simple Log Service project.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* log-service-****-cn-shenzhen
|
|
30
|
+
*/
|
|
31
|
+
targetProject?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
status: 'Status',
|
|
35
|
+
targetLogStore: 'TargetLogStore',
|
|
36
|
+
targetProject: 'TargetProject',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static types(): { [key: string]: any } {
|
|
41
|
+
return {
|
|
42
|
+
status: 'string',
|
|
43
|
+
targetLogStore: 'string',
|
|
44
|
+
targetProject: 'string',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
super.validate();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
constructor(map?: { [key: string]: any }) {
|
|
53
|
+
super(map);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class GetLogSyncToSLSResponseBody extends $dara.Model {
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The returned data.
|
|
61
|
+
*/
|
|
62
|
+
data?: GetLogSyncToSLSResponseBodyData;
|
|
63
|
+
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* The request ID.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* 1AD222E9-E606-4A42-BF6D-8A4442913CEF
|
|
69
|
+
*/
|
|
70
|
+
requestId?: string;
|
|
71
|
+
static names(): { [key: string]: string } {
|
|
72
|
+
return {
|
|
73
|
+
data: 'Data',
|
|
74
|
+
requestId: 'RequestId',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static types(): { [key: string]: any } {
|
|
79
|
+
return {
|
|
80
|
+
data: GetLogSyncToSLSResponseBodyData,
|
|
81
|
+
requestId: 'string',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
validate() {
|
|
86
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
87
|
+
(this.data as any).validate();
|
|
88
|
+
}
|
|
89
|
+
super.validate();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
constructor(map?: { [key: string]: any }) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|