tencentcloud-sdk-nodejs 4.0.230 → 4.0.234
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 +505 -41
- package/package.json +1 -1
- package/products.md +154 -153
- package/src/common/sdk_version.ts +1 -1
- package/src/services/advisor/v20200721/advisor_client.ts +1 -0
- package/src/services/advisor/v20200721/advisor_models.ts +21 -0
- package/src/services/antiddos/v20200309/antiddos_client.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +2 -2
- package/src/services/apigateway/v20180808/apigateway_client.ts +60 -17
- package/src/services/apigateway/v20180808/apigateway_models.ts +420 -70
- package/src/services/cam/v20190116/cam_models.ts +10 -5
- package/src/services/cdb/v20170320/cdb_client.ts +37 -12
- package/src/services/cdb/v20170320/cdb_models.ts +163 -68
- package/src/services/cdn/v20180606/cdn_client.ts +18 -4
- package/src/services/cdn/v20180606/cdn_models.ts +139 -53
- package/src/services/clb/v20180317/clb_client.ts +14 -1
- package/src/services/clb/v20180317/clb_models.ts +54 -19
- package/src/services/cme/v20191029/cme_models.ts +1 -1
- package/src/services/cpdp/v20190820/cpdp_client.ts +1 -1
- package/src/services/cvm/v20170312/cvm_client.ts +1 -0
- package/src/services/cvm/v20170312/cvm_models.ts +12 -9
- package/src/services/cwp/v20180228/cwp_models.ts +7 -7
- package/src/services/dts/v20180330/dts_client.ts +8 -119
- package/src/services/dts/v20180330/dts_models.ts +371 -875
- package/src/services/ecm/v20190719/ecm_models.ts +12 -1
- package/src/services/eiam/v20210420/eiam_models.ts +1 -1
- package/src/services/es/v20180416/es_models.ts +37 -0
- package/src/services/essbasic/v20210526/essbasic_models.ts +6 -0
- package/src/services/ie/v20200304/ie_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/iotcloud/v20180614/iotcloud_models.ts +6 -6
- package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +46 -9
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +252 -61
- package/src/services/iotvideo/v20201215/iotvideo_models.ts +6 -1
- package/src/services/ocr/v20181119/ocr_client.ts +13 -0
- package/src/services/ocr/v20181119/ocr_models.ts +212 -26
- package/src/services/postgres/v20170312/postgres_models.ts +14 -11
- package/src/services/scf/v20180416/scf_client.ts +2 -0
- package/src/services/scf/v20180416/scf_models.ts +49 -0
- package/src/services/ses/v20201002/ses_models.ts +2 -1
- package/src/services/sms/v20210111/sms_client.ts +1 -1
- package/src/services/sms/v20210111/sms_models.ts +8 -6
- package/src/services/tcb/v20180608/tcb_client.ts +28 -4
- package/src/services/tcb/v20180608/tcb_models.ts +148 -21
- package/src/services/tcm/index.ts +5 -0
- package/src/services/tcm/v20210413/index.ts +6 -0
- package/src/services/tcm/v20210413/tcm_client.ts +88 -0
- package/src/services/tcm/v20210413/tcm_models.ts +891 -0
- package/src/services/tdmq/v20200217/tdmq_client.ts +4 -2
- package/src/services/tiia/v20190529/tiia_client.ts +1 -0
- package/src/services/tiia/v20190529/tiia_models.ts +34 -0
- package/src/services/trtc/v20190722/trtc_client.ts +1 -1
- package/src/services/trtc/v20190722/trtc_models.ts +6 -6
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/advisor/v20200721/advisor_models.d.ts +18 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +2 -2
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +17 -5
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +24 -6
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +354 -60
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +9 -5
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +11 -3
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +15 -3
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +141 -61
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +5 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +6 -0
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +118 -45
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +5 -1
- package/tencentcloud/services/clb/v20180317/clb_client.js +6 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +47 -16
- package/tencentcloud/services/cme/v20191029/cme_models.d.ts +1 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +1 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +1 -1
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +1 -0
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +1 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +7 -4
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +7 -7
- package/tencentcloud/services/dts/v20180330/dts_client.d.ts +1 -42
- package/tencentcloud/services/dts/v20180330/dts_client.js +0 -57
- package/tencentcloud/services/dts/v20180330/dts_models.d.ts +219 -645
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +10 -1
- package/tencentcloud/services/eiam/v20210420/eiam_models.d.ts +1 -1
- package/tencentcloud/services/es/v20180416/es_models.d.ts +30 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -0
- package/tencentcloud/services/ie/v20200304/ie_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/iotcloud/v20180614/iotcloud_models.d.ts +6 -6
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +15 -3
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +21 -3
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +214 -54
- package/tencentcloud/services/iotvideo/v20201215/iotvideo_models.d.ts +5 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +6 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +7 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +180 -26
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +14 -11
- package/tencentcloud/services/scf/v20180416/scf_models.d.ts +42 -0
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +2 -1
- package/tencentcloud/services/sms/v20210111/sms_client.d.ts +1 -1
- package/tencentcloud/services/sms/v20210111/sms_client.js +1 -1
- package/tencentcloud/services/sms/v20210111/sms_models.d.ts +8 -6
- package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +9 -1
- package/tencentcloud/services/tcb/v20180608/tcb_client.js +12 -0
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +128 -21
- package/tencentcloud/services/tcm/index.d.ts +6 -0
- package/tencentcloud/services/tcm/index.js +7 -0
- package/tencentcloud/services/tcm/v20210413/index.d.ts +6 -0
- package/tencentcloud/services/tcm/v20210413/index.js +9 -0
- package/tencentcloud/services/tcm/v20210413/tcm_client.d.ts +18 -0
- package/tencentcloud/services/tcm/v20210413/tcm_client.js +43 -0
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +746 -0
- package/tencentcloud/services/tcm/v20210413/tcm_models.js +18 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +2 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +2 -0
- package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +29 -0
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +1 -1
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +1 -1
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +6 -6
- package/test/apigateway.v20180808.test.js +34 -4
- package/test/cdb.v20170320.test.js +22 -2
- package/test/cdn.v20180606.test.js +10 -0
- package/test/clb.v20180317.test.js +10 -0
- package/test/dts.v20180330.test.js +0 -80
- package/test/iotexplorer.v20190423.test.js +32 -2
- package/test/ocr.v20181119.test.js +10 -0
- package/test/tcb.v20180608.test.js +20 -0
- package/test/tcm.v20210413.test.js +41 -0
|
@@ -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 });
|
|
@@ -269,6 +269,8 @@ export declare class Client extends AbstractClient {
|
|
|
269
269
|
DescribeRocketMQCluster(req: DescribeRocketMQClusterRequest, cb?: (error: string, rep: DescribeRocketMQClusterResponse) => void): Promise<DescribeRocketMQClusterResponse>;
|
|
270
270
|
/**
|
|
271
271
|
* 批量发送消息
|
|
272
|
+
|
|
273
|
+
注意:TDMQ 批量发送消息的接口是在 TDMQ-HTTP 的服务侧将消息打包为一个 Batch,然后将该 Batch 在服务内部当作一次 TCP 请求发送出去。所以在使用过程中,用户还是按照单条消息发送的逻辑,每一条消息是一个独立的 HTTP 的请求,在 TDMQ-HTTP 的服务内部,会将多个 HTTP 的请求聚合为一个 Batch 发送到服务端。即,批量发送消息在使用上与发送单条消息是一致的,batch 的聚合是在 TDMQ-HTTP 的服务内部完成的。
|
|
272
274
|
*/
|
|
273
275
|
SendBatchMessages(req: SendBatchMessagesRequest, cb?: (error: string, rep: SendBatchMessagesResponse) => void): Promise<SendBatchMessagesResponse>;
|
|
274
276
|
/**
|
|
@@ -419,6 +419,8 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
421
|
* 批量发送消息
|
|
422
|
+
|
|
423
|
+
注意:TDMQ 批量发送消息的接口是在 TDMQ-HTTP 的服务侧将消息打包为一个 Batch,然后将该 Batch 在服务内部当作一次 TCP 请求发送出去。所以在使用过程中,用户还是按照单条消息发送的逻辑,每一条消息是一个独立的 HTTP 的请求,在 TDMQ-HTTP 的服务内部,会将多个 HTTP 的请求聚合为一个 Batch 发送到服务端。即,批量发送消息在使用上与发送单条消息是一致的,batch 的聚合是在 TDMQ-HTTP 的服务内部完成的。
|
|
422
424
|
*/
|
|
423
425
|
async SendBatchMessages(req, cb) {
|
|
424
426
|
return this.request("SendBatchMessages", req, cb);
|
|
@@ -411,6 +411,11 @@ export interface ProductInfo {
|
|
|
411
411
|
* 搜索到的商品配图URL。
|
|
412
412
|
*/
|
|
413
413
|
Image: string;
|
|
414
|
+
/**
|
|
415
|
+
* 百科词条列表
|
|
416
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
417
|
+
*/
|
|
418
|
+
LemmaInfoList: Array<LemmaInfo>;
|
|
414
419
|
}
|
|
415
420
|
/**
|
|
416
421
|
* AssessQuality请求参数结构体
|
|
@@ -513,6 +518,10 @@ export interface DetectProductBetaRequest {
|
|
|
513
518
|
与ImageUrl同时存在时优先使用ImageUrl字段。
|
|
514
519
|
*/
|
|
515
520
|
ImageBase64?: string;
|
|
521
|
+
/**
|
|
522
|
+
* 是否需要百科信息 1:是,0: 否,默认是0
|
|
523
|
+
*/
|
|
524
|
+
NeedLemma?: number;
|
|
516
525
|
}
|
|
517
526
|
/**
|
|
518
527
|
* DetectMisbehavior返回参数结构体
|
|
@@ -1087,6 +1096,26 @@ export interface Threshold {
|
|
|
1087
1096
|
*/
|
|
1088
1097
|
FalseRate1Permil: number;
|
|
1089
1098
|
}
|
|
1099
|
+
/**
|
|
1100
|
+
* 百科词条信息
|
|
1101
|
+
*/
|
|
1102
|
+
export interface LemmaInfo {
|
|
1103
|
+
/**
|
|
1104
|
+
* 词条
|
|
1105
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1106
|
+
*/
|
|
1107
|
+
LemmaTitle: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* 词条描述
|
|
1110
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1111
|
+
*/
|
|
1112
|
+
LemmaAbstract: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* 标签
|
|
1115
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1116
|
+
*/
|
|
1117
|
+
Tag: string;
|
|
1118
|
+
}
|
|
1090
1119
|
/**
|
|
1091
1120
|
* DescribeImages返回参数结构体
|
|
1092
1121
|
*/
|
|
@@ -61,7 +61,7 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
61
61
|
*/
|
|
62
62
|
RemoveUser(req: RemoveUserRequest, cb?: (error: string, rep: RemoveUserResponse) => void): Promise<RemoveUserResponse>;
|
|
63
63
|
/**
|
|
64
|
-
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null
|
|
64
|
+
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType,UserIds为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。
|
|
65
65
|
**注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
66
66
|
*/
|
|
67
67
|
DescribeCallDetail(req: DescribeCallDetailRequest, cb?: (error: string, rep: DescribeCallDetailResponse) => void): Promise<DescribeCallDetailResponse>;
|
|
@@ -97,7 +97,7 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
97
97
|
return this.request("RemoveUser", req, cb);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null
|
|
100
|
+
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType,UserIds为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。
|
|
101
101
|
**注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
102
102
|
*/
|
|
103
103
|
async DescribeCallDetail(req, cb) {
|
|
@@ -356,15 +356,15 @@ export interface DescribeCallDetailRequest {
|
|
|
356
356
|
* 需查询的指标,不填则只返回用户列表,填all则返回所有指标。
|
|
357
357
|
appCpu:APP CPU使用率;
|
|
358
358
|
sysCpu:系统 CPU使用率;
|
|
359
|
-
aBit
|
|
360
|
-
aBlock
|
|
361
|
-
bigvBit
|
|
359
|
+
aBit:上/下行音频码率;单位:bps
|
|
360
|
+
aBlock:音频卡顿时长;单位:ms
|
|
361
|
+
bigvBit:上/下行视频码率;单位:bps
|
|
362
362
|
bigvCapFps:视频采集帧率;
|
|
363
363
|
bigvEncFps:视频发送帧率;
|
|
364
364
|
bigvDecFps:渲染帧率;
|
|
365
|
-
bigvBlock
|
|
366
|
-
aLoss
|
|
367
|
-
bigvLoss
|
|
365
|
+
bigvBlock:视频卡顿时长;单位:ms
|
|
366
|
+
aLoss:上/下行音频丢包率;
|
|
367
|
+
bigvLoss:上/下行视频丢包率;
|
|
368
368
|
bigvWidth:上/下行分辨率宽;
|
|
369
369
|
bigvHeight:上/下行分辨率高
|
|
370
370
|
*/
|
|
@@ -338,9 +338,9 @@ it("apigateway.v20180808.DeleteApi", async function () {
|
|
|
338
338
|
}
|
|
339
339
|
})
|
|
340
340
|
|
|
341
|
-
it("apigateway.v20180808.
|
|
341
|
+
it("apigateway.v20180808.UpdateApiAppKey", async function () {
|
|
342
342
|
try {
|
|
343
|
-
const data = await client.
|
|
343
|
+
const data = await client.UpdateApiAppKey({})
|
|
344
344
|
expect(data).to.be.ok
|
|
345
345
|
} catch(error) {
|
|
346
346
|
expect(error.requestId).to.be.ok
|
|
@@ -458,6 +458,16 @@ it("apigateway.v20180808.ModifyService", async function () {
|
|
|
458
458
|
}
|
|
459
459
|
})
|
|
460
460
|
|
|
461
|
+
it("apigateway.v20180808.DescribeExclusiveInstances", async function () {
|
|
462
|
+
try {
|
|
463
|
+
const data = await client.DescribeExclusiveInstances({})
|
|
464
|
+
expect(data).to.be.ok
|
|
465
|
+
} catch(error) {
|
|
466
|
+
expect(error.requestId).to.be.ok
|
|
467
|
+
expect(error.code).to.be.ok
|
|
468
|
+
}
|
|
469
|
+
})
|
|
470
|
+
|
|
461
471
|
it("apigateway.v20180808.DescribeService", async function () {
|
|
462
472
|
try {
|
|
463
473
|
const data = await client.DescribeService({})
|
|
@@ -508,6 +518,16 @@ it("apigateway.v20180808.CreateApi", async function () {
|
|
|
508
518
|
}
|
|
509
519
|
})
|
|
510
520
|
|
|
521
|
+
it("apigateway.v20180808.DescribeExclusiveInstanceDetail", async function () {
|
|
522
|
+
try {
|
|
523
|
+
const data = await client.DescribeExclusiveInstanceDetail({})
|
|
524
|
+
expect(data).to.be.ok
|
|
525
|
+
} catch(error) {
|
|
526
|
+
expect(error.requestId).to.be.ok
|
|
527
|
+
expect(error.code).to.be.ok
|
|
528
|
+
}
|
|
529
|
+
})
|
|
530
|
+
|
|
511
531
|
it("apigateway.v20180808.AttachPlugin", async function () {
|
|
512
532
|
try {
|
|
513
533
|
const data = await client.AttachPlugin({})
|
|
@@ -598,6 +618,16 @@ it("apigateway.v20180808.ModifyServiceEnvironmentStrategy", async function () {
|
|
|
598
618
|
}
|
|
599
619
|
})
|
|
600
620
|
|
|
621
|
+
it("apigateway.v20180808.ModifyExclusiveInstance", async function () {
|
|
622
|
+
try {
|
|
623
|
+
const data = await client.ModifyExclusiveInstance({})
|
|
624
|
+
expect(data).to.be.ok
|
|
625
|
+
} catch(error) {
|
|
626
|
+
expect(error.requestId).to.be.ok
|
|
627
|
+
expect(error.code).to.be.ok
|
|
628
|
+
}
|
|
629
|
+
})
|
|
630
|
+
|
|
601
631
|
it("apigateway.v20180808.DescribeUsagePlanEnvironments", async function () {
|
|
602
632
|
try {
|
|
603
633
|
const data = await client.DescribeUsagePlanEnvironments({})
|
|
@@ -808,9 +838,9 @@ it("apigateway.v20180808.BindIPStrategy", async function () {
|
|
|
808
838
|
}
|
|
809
839
|
})
|
|
810
840
|
|
|
811
|
-
it("apigateway.v20180808.
|
|
841
|
+
it("apigateway.v20180808.EnableApiKey", async function () {
|
|
812
842
|
try {
|
|
813
|
-
const data = await client.
|
|
843
|
+
const data = await client.EnableApiKey({})
|
|
814
844
|
expect(data).to.be.ok
|
|
815
845
|
} catch(error) {
|
|
816
846
|
expect(error.requestId).to.be.ok
|
|
@@ -178,9 +178,9 @@ it("cdb.v20170320.DescribeRollbackTaskDetail", async function () {
|
|
|
178
178
|
}
|
|
179
179
|
})
|
|
180
180
|
|
|
181
|
-
it("cdb.v20170320.
|
|
181
|
+
it("cdb.v20170320.ModifyBackupDownloadRestriction", async function () {
|
|
182
182
|
try {
|
|
183
|
-
const data = await client.
|
|
183
|
+
const data = await client.ModifyBackupDownloadRestriction({})
|
|
184
184
|
expect(data).to.be.ok
|
|
185
185
|
} catch(error) {
|
|
186
186
|
expect(error.requestId).to.be.ok
|
|
@@ -888,6 +888,16 @@ it("cdb.v20170320.VerifyRootAccount", async function () {
|
|
|
888
888
|
}
|
|
889
889
|
})
|
|
890
890
|
|
|
891
|
+
it("cdb.v20170320.DescribeBackupDownloadRestriction", async function () {
|
|
892
|
+
try {
|
|
893
|
+
const data = await client.DescribeBackupDownloadRestriction({})
|
|
894
|
+
expect(data).to.be.ok
|
|
895
|
+
} catch(error) {
|
|
896
|
+
expect(error.requestId).to.be.ok
|
|
897
|
+
expect(error.code).to.be.ok
|
|
898
|
+
}
|
|
899
|
+
})
|
|
900
|
+
|
|
891
901
|
it("cdb.v20170320.StartDelayReplication", async function () {
|
|
892
902
|
try {
|
|
893
903
|
const data = await client.StartDelayReplication({})
|
|
@@ -1058,6 +1068,16 @@ it("cdb.v20170320.ModifyAuditRule", async function () {
|
|
|
1058
1068
|
}
|
|
1059
1069
|
})
|
|
1060
1070
|
|
|
1071
|
+
it("cdb.v20170320.ModifyDBInstanceSecurityGroups", async function () {
|
|
1072
|
+
try {
|
|
1073
|
+
const data = await client.ModifyDBInstanceSecurityGroups({})
|
|
1074
|
+
expect(data).to.be.ok
|
|
1075
|
+
} catch(error) {
|
|
1076
|
+
expect(error.requestId).to.be.ok
|
|
1077
|
+
expect(error.code).to.be.ok
|
|
1078
|
+
}
|
|
1079
|
+
})
|
|
1080
|
+
|
|
1061
1081
|
it("cdb.v20170320.DeleteAuditRule", async function () {
|
|
1062
1082
|
try {
|
|
1063
1083
|
const data = await client.DeleteAuditRule({})
|
|
@@ -738,6 +738,16 @@ it("cdn.v20180606.DescribeDistrictIspData", async function () {
|
|
|
738
738
|
}
|
|
739
739
|
})
|
|
740
740
|
|
|
741
|
+
it("cdn.v20180606.DescribeScdnBotData", async function () {
|
|
742
|
+
try {
|
|
743
|
+
const data = await client.DescribeScdnBotData({})
|
|
744
|
+
expect(data).to.be.ok
|
|
745
|
+
} catch(error) {
|
|
746
|
+
expect(error.requestId).to.be.ok
|
|
747
|
+
expect(error.code).to.be.ok
|
|
748
|
+
}
|
|
749
|
+
})
|
|
750
|
+
|
|
741
751
|
it("cdn.v20180606.UpdatePayType", async function () {
|
|
742
752
|
try {
|
|
743
753
|
const data = await client.UpdatePayType({})
|
|
@@ -28,6 +28,16 @@ it("clb.v20180317.RegisterTargets", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
it("clb.v20180317.ModifyLoadBalancerSla", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ModifyLoadBalancerSla({})
|
|
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
|
+
|
|
31
41
|
it("clb.v20180317.DescribeLoadBalancerListByCertId", async function () {
|
|
32
42
|
try {
|
|
33
43
|
const data = await client.DescribeLoadBalancerListByCertId({})
|
|
@@ -18,26 +18,6 @@ const client = new tencentcloud.dts.v20180330.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("dts.v20180330.test.js", function () {
|
|
20
20
|
|
|
21
|
-
it("dts.v20180330.DeleteSyncJob", async function () {
|
|
22
|
-
try {
|
|
23
|
-
const data = await client.DeleteSyncJob({})
|
|
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("dts.v20180330.DescribeSyncJobs", async function () {
|
|
32
|
-
try {
|
|
33
|
-
const data = await client.DescribeSyncJobs({})
|
|
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
21
|
it("dts.v20180330.ActivateSubscribe", async function () {
|
|
42
22
|
try {
|
|
43
23
|
const data = await client.ActivateSubscribe({})
|
|
@@ -48,26 +28,6 @@ it("dts.v20180330.ActivateSubscribe", async function () {
|
|
|
48
28
|
}
|
|
49
29
|
})
|
|
50
30
|
|
|
51
|
-
it("dts.v20180330.ModifySyncJob", async function () {
|
|
52
|
-
try {
|
|
53
|
-
const data = await client.ModifySyncJob({})
|
|
54
|
-
expect(data).to.be.ok
|
|
55
|
-
} catch(error) {
|
|
56
|
-
expect(error.requestId).to.be.ok
|
|
57
|
-
expect(error.code).to.be.ok
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it("dts.v20180330.CreateSyncJob", async function () {
|
|
62
|
-
try {
|
|
63
|
-
const data = await client.CreateSyncJob({})
|
|
64
|
-
expect(data).to.be.ok
|
|
65
|
-
} catch(error) {
|
|
66
|
-
expect(error.requestId).to.be.ok
|
|
67
|
-
expect(error.code).to.be.ok
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
|
|
71
31
|
it("dts.v20180330.ModifySubscribeObjects", async function () {
|
|
72
32
|
try {
|
|
73
33
|
const data = await client.ModifySubscribeObjects({})
|
|
@@ -78,16 +38,6 @@ it("dts.v20180330.ModifySubscribeObjects", async function () {
|
|
|
78
38
|
}
|
|
79
39
|
})
|
|
80
40
|
|
|
81
|
-
it("dts.v20180330.StartSyncJob", async function () {
|
|
82
|
-
try {
|
|
83
|
-
const data = await client.StartSyncJob({})
|
|
84
|
-
expect(data).to.be.ok
|
|
85
|
-
} catch(error) {
|
|
86
|
-
expect(error.requestId).to.be.ok
|
|
87
|
-
expect(error.code).to.be.ok
|
|
88
|
-
}
|
|
89
|
-
})
|
|
90
|
-
|
|
91
41
|
it("dts.v20180330.DescribeMigrateCheckJob", async function () {
|
|
92
42
|
try {
|
|
93
43
|
const data = await client.DescribeMigrateCheckJob({})
|
|
@@ -108,16 +58,6 @@ it("dts.v20180330.DescribeAsyncRequestInfo", async function () {
|
|
|
108
58
|
}
|
|
109
59
|
})
|
|
110
60
|
|
|
111
|
-
it("dts.v20180330.SwitchDrToMaster", async function () {
|
|
112
|
-
try {
|
|
113
|
-
const data = await client.SwitchDrToMaster({})
|
|
114
|
-
expect(data).to.be.ok
|
|
115
|
-
} catch(error) {
|
|
116
|
-
expect(error.requestId).to.be.ok
|
|
117
|
-
expect(error.code).to.be.ok
|
|
118
|
-
}
|
|
119
|
-
})
|
|
120
|
-
|
|
121
61
|
it("dts.v20180330.ModifySubscribeAutoRenewFlag", async function () {
|
|
122
62
|
try {
|
|
123
63
|
const data = await client.ModifySubscribeAutoRenewFlag({})
|
|
@@ -168,16 +108,6 @@ it("dts.v20180330.DescribeSubscribes", async function () {
|
|
|
168
108
|
}
|
|
169
109
|
})
|
|
170
110
|
|
|
171
|
-
it("dts.v20180330.DescribeSyncCheckJob", async function () {
|
|
172
|
-
try {
|
|
173
|
-
const data = await client.DescribeSyncCheckJob({})
|
|
174
|
-
expect(data).to.be.ok
|
|
175
|
-
} catch(error) {
|
|
176
|
-
expect(error.requestId).to.be.ok
|
|
177
|
-
expect(error.code).to.be.ok
|
|
178
|
-
}
|
|
179
|
-
})
|
|
180
|
-
|
|
181
111
|
it("dts.v20180330.CreateMigrateJob", async function () {
|
|
182
112
|
try {
|
|
183
113
|
const data = await client.CreateMigrateJob({})
|
|
@@ -228,16 +158,6 @@ it("dts.v20180330.ModifySubscribeName", async function () {
|
|
|
228
158
|
}
|
|
229
159
|
})
|
|
230
160
|
|
|
231
|
-
it("dts.v20180330.CreateSyncCheckJob", async function () {
|
|
232
|
-
try {
|
|
233
|
-
const data = await client.CreateSyncCheckJob({})
|
|
234
|
-
expect(data).to.be.ok
|
|
235
|
-
} catch(error) {
|
|
236
|
-
expect(error.requestId).to.be.ok
|
|
237
|
-
expect(error.code).to.be.ok
|
|
238
|
-
}
|
|
239
|
-
})
|
|
240
|
-
|
|
241
161
|
it("dts.v20180330.CreateSubscribe", async function () {
|
|
242
162
|
try {
|
|
243
163
|
const data = await client.CreateSubscribe({})
|
|
@@ -68,9 +68,9 @@ it("iotexplorer.v20190423.SearchPositionSpace", async function () {
|
|
|
68
68
|
}
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
-
it("iotexplorer.v20190423.
|
|
71
|
+
it("iotexplorer.v20190423.DescribeBatchProduction", async function () {
|
|
72
72
|
try {
|
|
73
|
-
const data = await client.
|
|
73
|
+
const data = await client.DescribeBatchProduction({})
|
|
74
74
|
expect(data).to.be.ok
|
|
75
75
|
} catch(error) {
|
|
76
76
|
expect(error.requestId).to.be.ok
|
|
@@ -278,6 +278,16 @@ it("iotexplorer.v20190423.ModifyTopicRule", async function () {
|
|
|
278
278
|
}
|
|
279
279
|
})
|
|
280
280
|
|
|
281
|
+
it("iotexplorer.v20190423.DescribeDeviceData", async function () {
|
|
282
|
+
try {
|
|
283
|
+
const data = await client.DescribeDeviceData({})
|
|
284
|
+
expect(data).to.be.ok
|
|
285
|
+
} catch(error) {
|
|
286
|
+
expect(error.requestId).to.be.ok
|
|
287
|
+
expect(error.code).to.be.ok
|
|
288
|
+
}
|
|
289
|
+
})
|
|
290
|
+
|
|
281
291
|
it("iotexplorer.v20190423.DescribeTopicPolicy", async function () {
|
|
282
292
|
try {
|
|
283
293
|
const data = await client.DescribeTopicPolicy({})
|
|
@@ -618,6 +628,16 @@ it("iotexplorer.v20190423.ModifyModelDefinition", async function () {
|
|
|
618
628
|
}
|
|
619
629
|
})
|
|
620
630
|
|
|
631
|
+
it("iotexplorer.v20190423.CreateBatchProduction", async function () {
|
|
632
|
+
try {
|
|
633
|
+
const data = await client.CreateBatchProduction({})
|
|
634
|
+
expect(data).to.be.ok
|
|
635
|
+
} catch(error) {
|
|
636
|
+
expect(error.requestId).to.be.ok
|
|
637
|
+
expect(error.code).to.be.ok
|
|
638
|
+
}
|
|
639
|
+
})
|
|
640
|
+
|
|
621
641
|
it("iotexplorer.v20190423.DeletePositionSpace", async function () {
|
|
622
642
|
try {
|
|
623
643
|
const data = await client.DeletePositionSpace({})
|
|
@@ -638,6 +658,16 @@ it("iotexplorer.v20190423.DescribeModelDefinition", async function () {
|
|
|
638
658
|
}
|
|
639
659
|
})
|
|
640
660
|
|
|
661
|
+
it("iotexplorer.v20190423.GetBatchProductionsList", async function () {
|
|
662
|
+
try {
|
|
663
|
+
const data = await client.GetBatchProductionsList({})
|
|
664
|
+
expect(data).to.be.ok
|
|
665
|
+
} catch(error) {
|
|
666
|
+
expect(error.requestId).to.be.ok
|
|
667
|
+
expect(error.code).to.be.ok
|
|
668
|
+
}
|
|
669
|
+
})
|
|
670
|
+
|
|
641
671
|
it("iotexplorer.v20190423.CreateProject", async function () {
|
|
642
672
|
try {
|
|
643
673
|
const data = await client.CreateProject({})
|
|
@@ -138,6 +138,16 @@ it("ocr.v20181119.FlightInvoiceOCR", async function () {
|
|
|
138
138
|
}
|
|
139
139
|
})
|
|
140
140
|
|
|
141
|
+
it("ocr.v20181119.RecognizeContainerOCR", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.RecognizeContainerOCR({})
|
|
144
|
+
expect(data).to.be.ok
|
|
145
|
+
} catch(error) {
|
|
146
|
+
expect(error.requestId).to.be.ok
|
|
147
|
+
expect(error.code).to.be.ok
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
|
|
141
151
|
it("ocr.v20181119.MixedInvoiceDetect", async function () {
|
|
142
152
|
try {
|
|
143
153
|
const data = await client.MixedInvoiceDetect({})
|
|
@@ -158,6 +158,16 @@ it("tcb.v20180608.DescribeEnvs", async function () {
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
|
|
161
|
+
it("tcb.v20180608.DescribeCloudBaseRunServerDomainName", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.DescribeCloudBaseRunServerDomainName({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
161
171
|
it("tcb.v20180608.DescribeCloudBaseRunResource", async function () {
|
|
162
172
|
try {
|
|
163
173
|
const data = await client.DescribeCloudBaseRunResource({})
|
|
@@ -628,6 +638,16 @@ it("tcb.v20180608.DescribeCloudBaseBuildService", async function () {
|
|
|
628
638
|
}
|
|
629
639
|
})
|
|
630
640
|
|
|
641
|
+
it("tcb.v20180608.DescribeCloudBaseRunOneClickTaskExternal", async function () {
|
|
642
|
+
try {
|
|
643
|
+
const data = await client.DescribeCloudBaseRunOneClickTaskExternal({})
|
|
644
|
+
expect(data).to.be.ok
|
|
645
|
+
} catch(error) {
|
|
646
|
+
expect(error.requestId).to.be.ok
|
|
647
|
+
expect(error.code).to.be.ok
|
|
648
|
+
}
|
|
649
|
+
})
|
|
650
|
+
|
|
631
651
|
it("tcb.v20180608.DescribeCloudBaseRunVersionSnapshot", async function () {
|
|
632
652
|
try {
|
|
633
653
|
const data = await client.DescribeCloudBaseRunVersionSnapshot({})
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.tcm.v20210413.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("tcm.v20210413.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("tcm.v20210413.DescribeMeshList", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeMeshList({})
|
|
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("tcm.v20210413.DescribeMesh", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeMesh({})
|
|
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
|
+
})
|