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.
Files changed (35) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/SERVICE_CHANGELOG.md +124 -506
  3. package/package.json +1 -1
  4. package/products.md +3 -2
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/dbdc/v20201029/dbdc_client.ts +33 -20
  7. package/src/services/dbdc/v20201029/dbdc_models.ts +339 -174
  8. package/src/services/index.ts +1 -0
  9. package/src/services/ms/v20180408/ms_client.ts +12 -0
  10. package/src/services/ms/v20180408/ms_models.ts +85 -0
  11. package/src/services/wedata/index.ts +5 -0
  12. package/src/services/wedata/v20210820/index.ts +6 -0
  13. package/src/services/wedata/v20210820/wedata_client.ts +58 -0
  14. package/src/services/wedata/v20210820/wedata_models.ts +338 -0
  15. package/tencentcloud/common/sdk_version.d.ts +1 -1
  16. package/tencentcloud/common/sdk_version.js +1 -1
  17. package/tencentcloud/services/dbdc/v20201029/dbdc_client.d.ts +11 -7
  18. package/tencentcloud/services/dbdc/v20201029/dbdc_client.js +15 -9
  19. package/tencentcloud/services/dbdc/v20201029/dbdc_models.d.ts +280 -145
  20. package/tencentcloud/services/index.d.ts +1 -0
  21. package/tencentcloud/services/index.js +2 -0
  22. package/tencentcloud/services/ms/v20180408/ms_client.d.ts +5 -1
  23. package/tencentcloud/services/ms/v20180408/ms_client.js +6 -0
  24. package/tencentcloud/services/ms/v20180408/ms_models.d.ts +70 -0
  25. package/tencentcloud/services/wedata/index.d.ts +6 -0
  26. package/tencentcloud/services/wedata/index.js +7 -0
  27. package/tencentcloud/services/wedata/v20210820/index.d.ts +6 -0
  28. package/tencentcloud/services/wedata/v20210820/index.js +9 -0
  29. package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +18 -0
  30. package/tencentcloud/services/wedata/v20210820/wedata_client.js +43 -0
  31. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +269 -0
  32. package/tencentcloud/services/wedata/v20210820/wedata_models.js +18 -0
  33. package/test/dbdc.v20201029.test.js +18 -8
  34. package/test/ms.v20180408.test.js +10 -0
  35. package/test/wedata.v20210820.test.js +41 -0
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * wedata client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("wedata.tencentcloudapi.com", "2021-08-20", clientConfig);
29
+ }
30
+ /**
31
+ * 查询任务实例的关联实例列表
32
+ */
33
+ async DescribeRelatedInstances(req, cb) {
34
+ return this.request("DescribeRelatedInstances", req, cb);
35
+ }
36
+ /**
37
+ * 查询任务实例列表
38
+ */
39
+ async DescribeTaskInstances(req, cb) {
40
+ return this.request("DescribeTaskInstances", req, cb);
41
+ }
42
+ }
43
+ exports.Client = Client;
@@ -0,0 +1,269 @@
1
+ /**
2
+ * DescribeTaskInstances请求参数结构体
3
+ */
4
+ export interface DescribeTaskInstancesRequest {
5
+ /**
6
+ * 项目id
7
+ */
8
+ ProjectId: string;
9
+ /**
10
+ * 页号,默认为1
11
+ */
12
+ PageNumber?: number;
13
+ /**
14
+ * 页大小,默认为10,最大不超过200
15
+ */
16
+ PageSize?: number;
17
+ /**
18
+ * 工作流id列表
19
+ */
20
+ WorkflowIdList?: Array<string>;
21
+ /**
22
+ * 工作流名称列表,支持模糊搜索
23
+ */
24
+ WorkflowNameList?: Array<string>;
25
+ /**
26
+ * 起始数据时间,格式yyyy-MM-dd HH:mm:ss
27
+ */
28
+ DateFrom?: string;
29
+ /**
30
+ * 结束数据时间,格式yyyy-MM-dd HH:mm:ss
31
+ */
32
+ DateTo?: string;
33
+ /**
34
+ * 任务id列表
35
+ */
36
+ TaskIdList?: Array<string>;
37
+ /**
38
+ * 任务名称列表,支持模糊搜索
39
+ */
40
+ TaskNameList?: Array<string>;
41
+ /**
42
+ * 责任人名称列表
43
+ */
44
+ InChargeList?: Array<string>;
45
+ /**
46
+ * 任务类型码列表,26离线同步,30Python,31PySpark,32DLC,33Impala,34Hive SQL,35Shell,36Spark SQL,39Spark,40CDW PG,92MapReduce
47
+ */
48
+ TaskTypeIdList?: Array<number>;
49
+ /**
50
+ * 实例状态列表,0等待事件,1等待上游,2等待运行,3运行中,4正在终止,5失败重试,6失败,7成功
51
+ */
52
+ StateList?: Array<string>;
53
+ /**
54
+ * 周期类型列表,I分钟,H小时,D天,W周,M月,Y年,O一次性,C crontab
55
+ */
56
+ TaskCycleUnitList?: Array<string>;
57
+ /**
58
+ * 实例类型,0补录实例,1周期实例,2非周期实例
59
+ */
60
+ InstanceType?: number;
61
+ /**
62
+ * 排序字段信息列表,ScheduleDateTime / CostTime / StartTime / EndTime
63
+ */
64
+ OrderFields?: Array<OrderField>;
65
+ }
66
+ /**
67
+ * 查询任务实例列表
68
+ */
69
+ export interface DescribeTaskInstancesData {
70
+ /**
71
+ * 实例列表
72
+ */
73
+ Items: Array<TaskInstanceInfo>;
74
+ /**
75
+ * 总条数
76
+ */
77
+ TotalCount: number;
78
+ /**
79
+ * 页号
80
+ */
81
+ PageNumber: number;
82
+ /**
83
+ * 页大小
84
+ */
85
+ PageSize: number;
86
+ }
87
+ /**
88
+ * 任务实例信息
89
+ */
90
+ export interface TaskInstanceInfo {
91
+ /**
92
+ * 任务Id
93
+ 注意:此字段可能返回 null,表示取不到有效值。
94
+ */
95
+ TaskId: string;
96
+ /**
97
+ * 任务名称
98
+ 注意:此字段可能返回 null,表示取不到有效值。
99
+ */
100
+ TaskName: string;
101
+ /**
102
+ * 工作流id
103
+ 注意:此字段可能返回 null,表示取不到有效值。
104
+ */
105
+ WorkflowId: string;
106
+ /**
107
+ * 工作流名称
108
+ 注意:此字段可能返回 null,表示取不到有效值。
109
+ */
110
+ WorkflowName: string;
111
+ /**
112
+ * 项目名称
113
+ 注意:此字段可能返回 null,表示取不到有效值。
114
+ */
115
+ ProjectName: string;
116
+ /**
117
+ * 项目标识
118
+ 注意:此字段可能返回 null,表示取不到有效值。
119
+ */
120
+ ProjectIdent: string;
121
+ /**
122
+ * 实例状态,0等待事件,1等待上游,2等待运行,3运行中,4正在终止,5失败重试,6失败,7成功
123
+ 注意:此字段可能返回 null,表示取不到有效值。
124
+ */
125
+ State: number;
126
+ /**
127
+ * 任务类型id,26离线同步,30Python,31PySpark,32DLC,33Impala,34Hive SQL,35Shell,36Spark SQL,39Spark,40CDW PG,92MapReduce
128
+ 注意:此字段可能返回 null,表示取不到有效值。
129
+ */
130
+ TaskTypeId: number;
131
+ /**
132
+ * 任务类型描述
133
+ 注意:此字段可能返回 null,表示取不到有效值。
134
+ */
135
+ TaskTypeDesc: string;
136
+ /**
137
+ * 项目id
138
+ 注意:此字段可能返回 null,表示取不到有效值。
139
+ */
140
+ ProjectId: string;
141
+ /**
142
+ * 文件夹名称
143
+ 注意:此字段可能返回 null,表示取不到有效值。
144
+ */
145
+ FolderName: string;
146
+ /**
147
+ * 文件夹id
148
+ 注意:此字段可能返回 null,表示取不到有效值。
149
+ */
150
+ FolderId: string;
151
+ /**
152
+ * 调度计划展示描述信息
153
+ 注意:此字段可能返回 null,表示取不到有效值。
154
+ */
155
+ SchedulerDesc: string;
156
+ /**
157
+ * 负责人
158
+ 注意:此字段可能返回 null,表示取不到有效值。
159
+ */
160
+ InCharge: string;
161
+ /**
162
+ * 调度周期类型,I分钟,H小时,D天,W周,M月,Y年,O一次性,C crontab
163
+ 注意:此字段可能返回 null,表示取不到有效值。
164
+ */
165
+ CycleType: string;
166
+ /**
167
+ * 实例开始时间
168
+ 注意:此字段可能返回 null,表示取不到有效值。
169
+ */
170
+ StartTime: string;
171
+ /**
172
+ * 实例结束时间
173
+ 注意:此字段可能返回 null,表示取不到有效值。
174
+ */
175
+ EndTime: string;
176
+ /**
177
+ * 实例类型,0补录实例,1周期实例,2非周期实例
178
+ 注意:此字段可能返回 null,表示取不到有效值。
179
+ */
180
+ InstanceType: number;
181
+ /**
182
+ * 最大重试次数
183
+ 注意:此字段可能返回 null,表示取不到有效值。
184
+ */
185
+ TryLimit: number;
186
+ /**
187
+ * 当前重试次数
188
+ 注意:此字段可能返回 null,表示取不到有效值。
189
+ */
190
+ Tries: number;
191
+ /**
192
+ * 计划调度时间
193
+ 注意:此字段可能返回 null,表示取不到有效值。
194
+ */
195
+ SchedulerDateTime: string;
196
+ /**
197
+ * 运行耗时
198
+ 注意:此字段可能返回 null,表示取不到有效值。
199
+ */
200
+ CostTime: string;
201
+ }
202
+ /**
203
+ * DescribeTaskInstances返回参数结构体
204
+ */
205
+ export interface DescribeTaskInstancesResponse {
206
+ /**
207
+ * 无
208
+ */
209
+ Data: DescribeTaskInstancesData;
210
+ /**
211
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
212
+ */
213
+ RequestId?: string;
214
+ }
215
+ /**
216
+ * 通用排序字段
217
+ */
218
+ export interface OrderField {
219
+ /**
220
+ * 排序字段名称
221
+ */
222
+ Name: string;
223
+ /**
224
+ * 排序方向:ASC|DESC
225
+ */
226
+ Direction: string;
227
+ }
228
+ /**
229
+ * DescribeRelatedInstances请求参数结构体
230
+ */
231
+ export interface DescribeRelatedInstancesRequest {
232
+ /**
233
+ * 项目id
234
+ */
235
+ ProjectId: string;
236
+ /**
237
+ * 数据时间,格式yyyy-MM-dd HH:mm:ss
238
+ */
239
+ CurRunDate: string;
240
+ /**
241
+ * 任务id
242
+ */
243
+ TaskId: number;
244
+ /**
245
+ * 距离当前任务的层级距离,-1表示取父节点,1表示子节点
246
+ */
247
+ Depth: number;
248
+ /**
249
+ * 页号,默认为1
250
+ */
251
+ PageNumber?: number;
252
+ /**
253
+ * 页大小,默认为10,最大不超过200
254
+ */
255
+ PageSize?: number;
256
+ }
257
+ /**
258
+ * DescribeRelatedInstances返回参数结构体
259
+ */
260
+ export interface DescribeRelatedInstancesResponse {
261
+ /**
262
+ * 无
263
+ */
264
+ Data: DescribeTaskInstancesData;
265
+ /**
266
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
267
+ */
268
+ RequestId?: string;
269
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,6 +18,16 @@ const client = new tencentcloud.dbdc.v20201029.Client({
18
18
  })
19
19
  describe("dbdc.v20201029.test.js", function () {
20
20
 
21
+ it("dbdc.v20201029.DescribeInstanceList", async function () {
22
+ try {
23
+ const data = await client.DescribeInstanceList({})
24
+ expect(data).to.be.ok
25
+ } catch(error) {
26
+ expect(error.requestId).to.be.ok
27
+ expect(error.code).to.be.ok
28
+ }
29
+ })
30
+
21
31
  it("dbdc.v20201029.DescribeInstances", async function () {
22
32
  try {
23
33
  const data = await client.DescribeInstances({})
@@ -28,9 +38,9 @@ it("dbdc.v20201029.DescribeInstances", async function () {
28
38
  }
29
39
  })
30
40
 
31
- it("dbdc.v20201029.DescribeInstanceList", async function () {
41
+ it("dbdc.v20201029.DescribeHostList", async function () {
32
42
  try {
33
- const data = await client.DescribeInstanceList({})
43
+ const data = await client.DescribeHostList({})
34
44
  expect(data).to.be.ok
35
45
  } catch(error) {
36
46
  expect(error.requestId).to.be.ok
@@ -38,9 +48,9 @@ it("dbdc.v20201029.DescribeInstanceList", async function () {
38
48
  }
39
49
  })
40
50
 
41
- it("dbdc.v20201029.DescribeInstanceDetail", async function () {
51
+ it("dbdc.v20201029.ModifyInstanceName", async function () {
42
52
  try {
43
- const data = await client.DescribeInstanceDetail({})
53
+ const data = await client.ModifyInstanceName({})
44
54
  expect(data).to.be.ok
45
55
  } catch(error) {
46
56
  expect(error.requestId).to.be.ok
@@ -48,9 +58,9 @@ it("dbdc.v20201029.DescribeInstanceDetail", async function () {
48
58
  }
49
59
  })
50
60
 
51
- it("dbdc.v20201029.DescribeDBInstances", async function () {
61
+ it("dbdc.v20201029.DescribeInstanceDetail", async function () {
52
62
  try {
53
- const data = await client.DescribeDBInstances({})
63
+ const data = await client.DescribeInstanceDetail({})
54
64
  expect(data).to.be.ok
55
65
  } catch(error) {
56
66
  expect(error.requestId).to.be.ok
@@ -58,9 +68,9 @@ it("dbdc.v20201029.DescribeDBInstances", async function () {
58
68
  }
59
69
  })
60
70
 
61
- it("dbdc.v20201029.ModifyInstanceName", async function () {
71
+ it("dbdc.v20201029.DescribeDBInstances", async function () {
62
72
  try {
63
- const data = await client.ModifyInstanceName({})
73
+ const data = await client.DescribeDBInstances({})
64
74
  expect(data).to.be.ok
65
75
  } catch(error) {
66
76
  expect(error.requestId).to.be.ok
@@ -128,6 +128,16 @@ it("ms.v20180408.DescribeShieldInstances", async function () {
128
128
  }
129
129
  })
130
130
 
131
+ it("ms.v20180408.DescribeUrlDetectionResult", async function () {
132
+ try {
133
+ const data = await client.DescribeUrlDetectionResult({})
134
+ expect(data).to.be.ok
135
+ } catch(error) {
136
+ expect(error.requestId).to.be.ok
137
+ expect(error.code).to.be.ok
138
+ }
139
+ })
140
+
131
141
  it("ms.v20180408.CreateShieldPlanInstance", async function () {
132
142
  try {
133
143
  const data = await client.CreateShieldPlanInstance({})
@@ -0,0 +1,41 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.wedata.v20210820.Client({
5
+ credential: {
6
+ secretId: process.env.secretId,
7
+ secretKey: process.env.secretKey,
8
+ },
9
+ region: "ap-shanghai",
10
+ profile: {
11
+ signMethod: "TC3-HMAC-SHA256",
12
+ httpProfile: {
13
+ reqMethod: "POST",
14
+ reqTimeout: 30,
15
+ endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
16
+ },
17
+ },
18
+ })
19
+ describe("wedata.v20210820.test.js", function () {
20
+
21
+ it("wedata.v20210820.DescribeRelatedInstances", async function () {
22
+ try {
23
+ const data = await client.DescribeRelatedInstances({})
24
+ expect(data).to.be.ok
25
+ } catch(error) {
26
+ expect(error.requestId).to.be.ok
27
+ expect(error.code).to.be.ok
28
+ }
29
+ })
30
+
31
+ it("wedata.v20210820.DescribeTaskInstances", async function () {
32
+ try {
33
+ const data = await client.DescribeTaskInstances({})
34
+ expect(data).to.be.ok
35
+ } catch(error) {
36
+ expect(error.requestId).to.be.ok
37
+ expect(error.code).to.be.ok
38
+ }
39
+ })
40
+
41
+ })