tencentcloud-sdk-nodejs 4.0.373 → 4.0.374
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/CHANGELOG.md +61 -0
- package/SERVICE_CHANGELOG.md +124 -506
- package/package.json +1 -1
- package/products.md +3 -2
- package/src/common/sdk_version.ts +1 -1
- package/src/services/dbdc/v20201029/dbdc_client.ts +33 -20
- package/src/services/dbdc/v20201029/dbdc_models.ts +339 -174
- package/src/services/index.ts +1 -0
- package/src/services/ms/v20180408/ms_client.ts +12 -0
- package/src/services/ms/v20180408/ms_models.ts +85 -0
- package/src/services/wedata/index.ts +5 -0
- package/src/services/wedata/v20210820/index.ts +6 -0
- package/src/services/wedata/v20210820/wedata_client.ts +58 -0
- package/src/services/wedata/v20210820/wedata_models.ts +338 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/dbdc/v20201029/dbdc_client.d.ts +11 -7
- package/tencentcloud/services/dbdc/v20201029/dbdc_client.js +15 -9
- package/tencentcloud/services/dbdc/v20201029/dbdc_models.d.ts +280 -145
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/ms/v20180408/ms_client.d.ts +5 -1
- package/tencentcloud/services/ms/v20180408/ms_client.js +6 -0
- package/tencentcloud/services/ms/v20180408/ms_models.d.ts +70 -0
- package/tencentcloud/services/wedata/index.d.ts +6 -0
- package/tencentcloud/services/wedata/index.js +7 -0
- package/tencentcloud/services/wedata/v20210820/index.d.ts +6 -0
- package/tencentcloud/services/wedata/v20210820/index.js +9 -0
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +18 -0
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +43 -0
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +269 -0
- package/tencentcloud/services/wedata/v20210820/wedata_models.js +18 -0
- package/test/dbdc.v20201029.test.js +18 -8
- package/test/ms.v20180408.test.js +10 -0
- package/test/wedata.v20210820.test.js +41 -0
package/src/services/index.ts
CHANGED
|
@@ -201,6 +201,7 @@ export { vod } from "./vod"
|
|
|
201
201
|
export { vpc } from "./vpc"
|
|
202
202
|
export { waf } from "./waf"
|
|
203
203
|
export { wav } from "./wav"
|
|
204
|
+
export { wedata } from "./wedata"
|
|
204
205
|
export { wss } from "./wss"
|
|
205
206
|
export { yinsuda } from "./yinsuda"
|
|
206
207
|
export { youmall } from "./youmall"
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
DescribeShieldInstancesRequest,
|
|
44
44
|
CreateScanInstancesResponse,
|
|
45
45
|
DescribeScanInstancesResponse,
|
|
46
|
+
DescribeUrlDetectionResultRequest,
|
|
46
47
|
VulInfo,
|
|
47
48
|
AppInfo,
|
|
48
49
|
ServiceInfo,
|
|
@@ -52,6 +53,7 @@ import {
|
|
|
52
53
|
ResourceServiceInfo,
|
|
53
54
|
DescribeResourceInstancesRequest,
|
|
54
55
|
AdInfo,
|
|
56
|
+
DescribeUrlDetectionResultResponse,
|
|
55
57
|
DescribeShieldPlanInstanceRequest,
|
|
56
58
|
ShieldInfo,
|
|
57
59
|
ScanPermissionList,
|
|
@@ -196,6 +198,16 @@ export class Client extends AbstractClient {
|
|
|
196
198
|
return this.request("DescribeShieldInstances", req, cb)
|
|
197
199
|
}
|
|
198
200
|
|
|
201
|
+
/**
|
|
202
|
+
* 移动安全-网址检测服务
|
|
203
|
+
*/
|
|
204
|
+
async DescribeUrlDetectionResult(
|
|
205
|
+
req: DescribeUrlDetectionResultRequest,
|
|
206
|
+
cb?: (error: string, rep: DescribeUrlDetectionResultResponse) => void
|
|
207
|
+
): Promise<DescribeUrlDetectionResultResponse> {
|
|
208
|
+
return this.request("DescribeUrlDetectionResult", req, cb)
|
|
209
|
+
}
|
|
210
|
+
|
|
199
211
|
/**
|
|
200
212
|
* 对资源进行策略新增
|
|
201
213
|
*/
|
|
@@ -680,6 +680,16 @@ export interface DescribeScanInstancesResponse {
|
|
|
680
680
|
RequestId?: string
|
|
681
681
|
}
|
|
682
682
|
|
|
683
|
+
/**
|
|
684
|
+
* DescribeUrlDetectionResult请求参数结构体
|
|
685
|
+
*/
|
|
686
|
+
export interface DescribeUrlDetectionResultRequest {
|
|
687
|
+
/**
|
|
688
|
+
* 查询的网址
|
|
689
|
+
*/
|
|
690
|
+
Url: string
|
|
691
|
+
}
|
|
692
|
+
|
|
683
693
|
/**
|
|
684
694
|
* 漏洞信息
|
|
685
695
|
*/
|
|
@@ -910,6 +920,81 @@ export interface AdInfo {
|
|
|
910
920
|
NotifyBars: Array<PluginInfo>
|
|
911
921
|
}
|
|
912
922
|
|
|
923
|
+
/**
|
|
924
|
+
* DescribeUrlDetectionResult返回参数结构体
|
|
925
|
+
*/
|
|
926
|
+
export interface DescribeUrlDetectionResultResponse {
|
|
927
|
+
/**
|
|
928
|
+
* [查询结果]查询结果;枚举值:0 查询成功,否则查询失败
|
|
929
|
+
*/
|
|
930
|
+
ResultCode: number
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* [固定信息]响应协议版本号;
|
|
934
|
+
*/
|
|
935
|
+
RespVer: number
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* [查询结果]url恶意状态;枚举值:1-灰, 2-黑(具体的恶意类型参考恶意类型定义Eviltype字段) ,3-非腾讯白名单,4-腾讯白名单。查询结果(level、evilclass、eviltype)这3个字段在Urltype=2(url状态为黑)下才有意义。
|
|
939
|
+
*/
|
|
940
|
+
UrlType: number
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* [查询结果]url恶意大类;枚举值:1-链接,2-Cgi,3-路劲,4-整站,5-整域。
|
|
944
|
+
*/
|
|
945
|
+
EvilClass: number
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* [查询结果]url恶意类型;枚举值:1-社工欺诈(仿冒、账号钓鱼、中奖诈骗);2-信息诈骗(虚假充值、虚假兼职、虚假金融投资、虚假信用卡代办、网络赌博诈骗;3-虚假销售(男女保健美容减肥产品、电子产品、虚假广告、违法销售);4-恶意文件(病毒文件,木马文件,恶意apk文件的下载链接以及站点,挂马网站);5-博彩网站(博彩网站,在线赌博网站);6-色情网站(涉嫌传播色情内容,提供色情服务的网站;7-风险网站(弱类型,传播垃圾信息的网站, 如果客户端有阻断,不建议使用这个数据);8-非法内容(根据法律法规不能传播的内容,主要为政治敏感内容,默认内部使用)
|
|
949
|
+
*/
|
|
950
|
+
EvilType: number
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* [查询结果]url恶意级别
|
|
954
|
+
*/
|
|
955
|
+
Level: number
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* [查询详情]url检出时间
|
|
959
|
+
*/
|
|
960
|
+
DetectTime: number
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* [查询详情]拦截Wording
|
|
964
|
+
*/
|
|
965
|
+
Wording: string
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* [查询详情]拦截Wording 标题
|
|
969
|
+
*/
|
|
970
|
+
WordingTitle: string
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* [查询结果]url恶意状态说明
|
|
974
|
+
*/
|
|
975
|
+
UrlTypeDesc: string
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* [查询结果]url恶意大类说明
|
|
979
|
+
*/
|
|
980
|
+
EvilClassDesc: string
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* [查询结果]url恶意类型说明
|
|
984
|
+
*/
|
|
985
|
+
EvilTypeDesc: string
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* [查询结果]url恶意级别说明
|
|
989
|
+
*/
|
|
990
|
+
LevelDesc: string
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
994
|
+
*/
|
|
995
|
+
RequestId?: string
|
|
996
|
+
}
|
|
997
|
+
|
|
913
998
|
/**
|
|
914
999
|
* DescribeShieldPlanInstance请求参数结构体
|
|
915
1000
|
*/
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
+
import { ClientConfig } from "../../../common/interface"
|
|
20
|
+
import {
|
|
21
|
+
DescribeTaskInstancesRequest,
|
|
22
|
+
DescribeTaskInstancesData,
|
|
23
|
+
TaskInstanceInfo,
|
|
24
|
+
DescribeTaskInstancesResponse,
|
|
25
|
+
OrderField,
|
|
26
|
+
DescribeRelatedInstancesRequest,
|
|
27
|
+
DescribeRelatedInstancesResponse,
|
|
28
|
+
} from "./wedata_models"
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* wedata client
|
|
32
|
+
* @class
|
|
33
|
+
*/
|
|
34
|
+
export class Client extends AbstractClient {
|
|
35
|
+
constructor(clientConfig: ClientConfig) {
|
|
36
|
+
super("wedata.tencentcloudapi.com", "2021-08-20", clientConfig)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 查询任务实例的关联实例列表
|
|
41
|
+
*/
|
|
42
|
+
async DescribeRelatedInstances(
|
|
43
|
+
req: DescribeRelatedInstancesRequest,
|
|
44
|
+
cb?: (error: string, rep: DescribeRelatedInstancesResponse) => void
|
|
45
|
+
): Promise<DescribeRelatedInstancesResponse> {
|
|
46
|
+
return this.request("DescribeRelatedInstances", req, cb)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 查询任务实例列表
|
|
51
|
+
*/
|
|
52
|
+
async DescribeTaskInstances(
|
|
53
|
+
req: DescribeTaskInstancesRequest,
|
|
54
|
+
cb?: (error: string, rep: DescribeTaskInstancesResponse) => void
|
|
55
|
+
): Promise<DescribeTaskInstancesResponse> {
|
|
56
|
+
return this.request("DescribeTaskInstances", req, cb)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* DescribeTaskInstances请求参数结构体
|
|
20
|
+
*/
|
|
21
|
+
export interface DescribeTaskInstancesRequest {
|
|
22
|
+
/**
|
|
23
|
+
* 项目id
|
|
24
|
+
*/
|
|
25
|
+
ProjectId: string
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 页号,默认为1
|
|
29
|
+
*/
|
|
30
|
+
PageNumber?: number
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 页大小,默认为10,最大不超过200
|
|
34
|
+
*/
|
|
35
|
+
PageSize?: number
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 工作流id列表
|
|
39
|
+
*/
|
|
40
|
+
WorkflowIdList?: Array<string>
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 工作流名称列表,支持模糊搜索
|
|
44
|
+
*/
|
|
45
|
+
WorkflowNameList?: Array<string>
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 起始数据时间,格式yyyy-MM-dd HH:mm:ss
|
|
49
|
+
*/
|
|
50
|
+
DateFrom?: string
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 结束数据时间,格式yyyy-MM-dd HH:mm:ss
|
|
54
|
+
*/
|
|
55
|
+
DateTo?: string
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 任务id列表
|
|
59
|
+
*/
|
|
60
|
+
TaskIdList?: Array<string>
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 任务名称列表,支持模糊搜索
|
|
64
|
+
*/
|
|
65
|
+
TaskNameList?: Array<string>
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 责任人名称列表
|
|
69
|
+
*/
|
|
70
|
+
InChargeList?: Array<string>
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 任务类型码列表,26离线同步,30Python,31PySpark,32DLC,33Impala,34Hive SQL,35Shell,36Spark SQL,39Spark,40CDW PG,92MapReduce
|
|
74
|
+
*/
|
|
75
|
+
TaskTypeIdList?: Array<number>
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 实例状态列表,0等待事件,1等待上游,2等待运行,3运行中,4正在终止,5失败重试,6失败,7成功
|
|
79
|
+
*/
|
|
80
|
+
StateList?: Array<string>
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 周期类型列表,I分钟,H小时,D天,W周,M月,Y年,O一次性,C crontab
|
|
84
|
+
*/
|
|
85
|
+
TaskCycleUnitList?: Array<string>
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 实例类型,0补录实例,1周期实例,2非周期实例
|
|
89
|
+
*/
|
|
90
|
+
InstanceType?: number
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 排序字段信息列表,ScheduleDateTime / CostTime / StartTime / EndTime
|
|
94
|
+
*/
|
|
95
|
+
OrderFields?: Array<OrderField>
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 查询任务实例列表
|
|
100
|
+
*/
|
|
101
|
+
export interface DescribeTaskInstancesData {
|
|
102
|
+
/**
|
|
103
|
+
* 实例列表
|
|
104
|
+
*/
|
|
105
|
+
Items: Array<TaskInstanceInfo>
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* 总条数
|
|
109
|
+
*/
|
|
110
|
+
TotalCount: number
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 页号
|
|
114
|
+
*/
|
|
115
|
+
PageNumber: number
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 页大小
|
|
119
|
+
*/
|
|
120
|
+
PageSize: number
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 任务实例信息
|
|
125
|
+
*/
|
|
126
|
+
export interface TaskInstanceInfo {
|
|
127
|
+
/**
|
|
128
|
+
* 任务Id
|
|
129
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
130
|
+
*/
|
|
131
|
+
TaskId: string
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* 任务名称
|
|
135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
136
|
+
*/
|
|
137
|
+
TaskName: string
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* 工作流id
|
|
141
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
142
|
+
*/
|
|
143
|
+
WorkflowId: string
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* 工作流名称
|
|
147
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
148
|
+
*/
|
|
149
|
+
WorkflowName: string
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 项目名称
|
|
153
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
154
|
+
*/
|
|
155
|
+
ProjectName: string
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* 项目标识
|
|
159
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
160
|
+
*/
|
|
161
|
+
ProjectIdent: string
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 实例状态,0等待事件,1等待上游,2等待运行,3运行中,4正在终止,5失败重试,6失败,7成功
|
|
165
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
166
|
+
*/
|
|
167
|
+
State: number
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* 任务类型id,26离线同步,30Python,31PySpark,32DLC,33Impala,34Hive SQL,35Shell,36Spark SQL,39Spark,40CDW PG,92MapReduce
|
|
171
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
172
|
+
*/
|
|
173
|
+
TaskTypeId: number
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* 任务类型描述
|
|
177
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
178
|
+
*/
|
|
179
|
+
TaskTypeDesc: string
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 项目id
|
|
183
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
184
|
+
*/
|
|
185
|
+
ProjectId: string
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* 文件夹名称
|
|
189
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
190
|
+
*/
|
|
191
|
+
FolderName: string
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* 文件夹id
|
|
195
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
196
|
+
*/
|
|
197
|
+
FolderId: string
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* 调度计划展示描述信息
|
|
201
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
202
|
+
*/
|
|
203
|
+
SchedulerDesc: string
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 负责人
|
|
207
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
208
|
+
*/
|
|
209
|
+
InCharge: string
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* 调度周期类型,I分钟,H小时,D天,W周,M月,Y年,O一次性,C crontab
|
|
213
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
214
|
+
*/
|
|
215
|
+
CycleType: string
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* 实例开始时间
|
|
219
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
220
|
+
*/
|
|
221
|
+
StartTime: string
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* 实例结束时间
|
|
225
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
226
|
+
*/
|
|
227
|
+
EndTime: string
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 实例类型,0补录实例,1周期实例,2非周期实例
|
|
231
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
232
|
+
*/
|
|
233
|
+
InstanceType: number
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* 最大重试次数
|
|
237
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
238
|
+
*/
|
|
239
|
+
TryLimit: number
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* 当前重试次数
|
|
243
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
244
|
+
*/
|
|
245
|
+
Tries: number
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* 计划调度时间
|
|
249
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
250
|
+
*/
|
|
251
|
+
SchedulerDateTime: string
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* 运行耗时
|
|
255
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
256
|
+
*/
|
|
257
|
+
CostTime: string
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* DescribeTaskInstances返回参数结构体
|
|
262
|
+
*/
|
|
263
|
+
export interface DescribeTaskInstancesResponse {
|
|
264
|
+
/**
|
|
265
|
+
* 无
|
|
266
|
+
*/
|
|
267
|
+
Data: DescribeTaskInstancesData
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
271
|
+
*/
|
|
272
|
+
RequestId?: string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* 通用排序字段
|
|
277
|
+
*/
|
|
278
|
+
export interface OrderField {
|
|
279
|
+
/**
|
|
280
|
+
* 排序字段名称
|
|
281
|
+
*/
|
|
282
|
+
Name: string
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* 排序方向:ASC|DESC
|
|
286
|
+
*/
|
|
287
|
+
Direction: string
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* DescribeRelatedInstances请求参数结构体
|
|
292
|
+
*/
|
|
293
|
+
export interface DescribeRelatedInstancesRequest {
|
|
294
|
+
/**
|
|
295
|
+
* 项目id
|
|
296
|
+
*/
|
|
297
|
+
ProjectId: string
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* 数据时间,格式yyyy-MM-dd HH:mm:ss
|
|
301
|
+
*/
|
|
302
|
+
CurRunDate: string
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* 任务id
|
|
306
|
+
*/
|
|
307
|
+
TaskId: number
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* 距离当前任务的层级距离,-1表示取父节点,1表示子节点
|
|
311
|
+
*/
|
|
312
|
+
Depth: number
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* 页号,默认为1
|
|
316
|
+
*/
|
|
317
|
+
PageNumber?: number
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* 页大小,默认为10,最大不超过200
|
|
321
|
+
*/
|
|
322
|
+
PageSize?: number
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* DescribeRelatedInstances返回参数结构体
|
|
327
|
+
*/
|
|
328
|
+
export interface DescribeRelatedInstancesResponse {
|
|
329
|
+
/**
|
|
330
|
+
* 无
|
|
331
|
+
*/
|
|
332
|
+
Data: DescribeTaskInstancesData
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
336
|
+
*/
|
|
337
|
+
RequestId?: string
|
|
338
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.374";
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { DescribeInstanceDetailResponse,
|
|
3
|
+
import { DescribeInstanceDetailResponse, DescribeDBInstancesRequest, DescribeInstanceDetailRequest, DescribeInstancesRequest, ModifyInstanceNameResponse, DescribeHostListResponse, DescribeInstanceListResponse, DescribeDBInstancesResponse, DescribeHostListRequest, DescribeInstancesResponse, DescribeInstanceListRequest, ModifyInstanceNameRequest } from "./dbdc_models";
|
|
4
4
|
/**
|
|
5
5
|
* dbdc client
|
|
6
6
|
* @class
|
|
7
7
|
*/
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 本接口用于查询独享集群实例列表
|
|
12
|
+
*/
|
|
13
|
+
DescribeInstanceList(req: DescribeInstanceListRequest, cb?: (error: string, rep: DescribeInstanceListResponse) => void): Promise<DescribeInstanceListResponse>;
|
|
10
14
|
/**
|
|
11
15
|
* 根据不同地域不同用户,获取集群列表信息
|
|
12
16
|
*/
|
|
13
17
|
DescribeInstances(req: DescribeInstancesRequest, cb?: (error: string, rep: DescribeInstancesResponse) => void): Promise<DescribeInstancesResponse>;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* 本接口用于查询主机列表
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
DescribeHostList(req: DescribeHostListRequest, cb?: (error: string, rep: DescribeHostListResponse) => void): Promise<DescribeHostListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* 本接口用于修改集群名称
|
|
24
|
+
*/
|
|
25
|
+
ModifyInstanceName(req: ModifyInstanceNameRequest, cb?: (error: string, rep: ModifyInstanceNameResponse) => void): Promise<ModifyInstanceNameResponse>;
|
|
18
26
|
/**
|
|
19
27
|
* 本接口用于查询独享集群详情
|
|
20
28
|
*/
|
|
@@ -23,8 +31,4 @@ export declare class Client extends AbstractClient {
|
|
|
23
31
|
* 本接口用于查询独享集群内的DB实例列表
|
|
24
32
|
*/
|
|
25
33
|
DescribeDBInstances(req: DescribeDBInstancesRequest, cb?: (error: string, rep: DescribeDBInstancesResponse) => void): Promise<DescribeDBInstancesResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* 本接口用于修改集群名称
|
|
28
|
-
*/
|
|
29
|
-
ModifyInstanceName(req: ModifyInstanceNameRequest, cb?: (error: string, rep: ModifyInstanceNameResponse) => void): Promise<ModifyInstanceNameResponse>;
|
|
30
34
|
}
|
|
@@ -27,6 +27,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("dbdc.tencentcloudapi.com", "2020-10-29", clientConfig);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* 本接口用于查询独享集群实例列表
|
|
32
|
+
*/
|
|
33
|
+
async DescribeInstanceList(req, cb) {
|
|
34
|
+
return this.request("DescribeInstanceList", req, cb);
|
|
35
|
+
}
|
|
30
36
|
/**
|
|
31
37
|
* 根据不同地域不同用户,获取集群列表信息
|
|
32
38
|
*/
|
|
@@ -34,10 +40,16 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
34
40
|
return this.request("DescribeInstances", req, cb);
|
|
35
41
|
}
|
|
36
42
|
/**
|
|
37
|
-
*
|
|
43
|
+
* 本接口用于查询主机列表
|
|
38
44
|
*/
|
|
39
|
-
async
|
|
40
|
-
return this.request("
|
|
45
|
+
async DescribeHostList(req, cb) {
|
|
46
|
+
return this.request("DescribeHostList", req, cb);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 本接口用于修改集群名称
|
|
50
|
+
*/
|
|
51
|
+
async ModifyInstanceName(req, cb) {
|
|
52
|
+
return this.request("ModifyInstanceName", req, cb);
|
|
41
53
|
}
|
|
42
54
|
/**
|
|
43
55
|
* 本接口用于查询独享集群详情
|
|
@@ -51,11 +63,5 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
51
63
|
async DescribeDBInstances(req, cb) {
|
|
52
64
|
return this.request("DescribeDBInstances", req, cb);
|
|
53
65
|
}
|
|
54
|
-
/**
|
|
55
|
-
* 本接口用于修改集群名称
|
|
56
|
-
*/
|
|
57
|
-
async ModifyInstanceName(req, cb) {
|
|
58
|
-
return this.request("ModifyInstanceName", req, cb);
|
|
59
|
-
}
|
|
60
66
|
}
|
|
61
67
|
exports.Client = Client;
|