tencentcloud-sdk-nodejs 4.0.233 → 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 +171 -113
- package/package.json +1 -1
- package/products.md +11 -10
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_client.ts +37 -12
- package/src/services/cdb/v20170320/cdb_models.ts +163 -68
- package/src/services/clb/v20180317/clb_client.ts +14 -1
- package/src/services/clb/v20180317/clb_models.ts +54 -19
- package/src/services/cvm/v20170312/cvm_models.ts +1 -1
- package/src/services/ecm/v20190719/ecm_models.ts +6 -1
- package/src/services/ie/v20200304/ie_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/ocr/v20181119/ocr_models.ts +1 -1
- package/src/services/postgres/v20170312/postgres_models.ts +12 -9
- package/src/services/sms/v20210111/sms_client.ts +1 -1
- 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/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/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/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/cvm/v20170312/cvm_models.d.ts +1 -1
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +5 -1
- 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/ocr/v20181119/ocr_models.d.ts +1 -1
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +12 -9
- package/tencentcloud/services/sms/v20210111/sms_client.d.ts +1 -1
- package/tencentcloud/services/sms/v20210111/sms_client.js +1 -1
- 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/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/cdb.v20170320.test.js +22 -2
- package/test/clb.v20180317.test.js +10 -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 });
|
|
@@ -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
|
*/
|
|
@@ -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({})
|
|
@@ -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({})
|
|
@@ -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
|
+
})
|