tencentcloud-sdk-nodejs 4.0.389 → 4.0.393
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 +420 -0
- package/SERVICE_CHANGELOG.md +659 -173
- package/package.json +1 -1
- package/products.md +36 -34
- package/src/common/sdk_version.ts +1 -1
- package/src/services/acp/v20220105/acp_models.ts +15 -5
- package/src/services/bma/v20210624/bma_client.ts +109 -10
- package/src/services/bma/v20210624/bma_models.ts +579 -39
- package/src/services/btoe/index.ts +2 -2
- package/src/services/cdb/v20170320/cdb_client.ts +12 -0
- package/src/services/cdb/v20170320/cdb_models.ts +30 -0
- package/src/services/cdc/v20201214/cdc_models.ts +30 -0
- package/src/services/cdn/v20180606/cdn_models.ts +5 -0
- package/src/services/cfs/v20190719/cfs_models.ts +1 -1
- package/src/services/chdfs/index.ts +2 -2
- package/src/services/cii/index.ts +2 -2
- package/src/services/ckafka/v20190819/ckafka_models.ts +26 -1
- package/src/services/cls/v20201016/cls_models.ts +6 -0
- package/src/services/dlc/v20210125/dlc_models.ts +17 -1
- package/src/services/eis/index.ts +2 -2
- package/src/services/emr/v20190103/emr_client.ts +1 -1
- package/src/services/ess/v20201111/ess_client.ts +26 -1
- package/src/services/ess/v20201111/ess_models.ts +173 -31
- package/src/services/essbasic/v20210526/essbasic_models.ts +5 -0
- package/src/services/faceid/v20180301/faceid_client.ts +3 -1
- package/src/services/faceid/v20180301/faceid_models.ts +106 -18
- package/src/services/gaap/v20180529/gaap_models.ts +56 -9
- package/src/services/iai/index.ts +2 -2
- package/src/services/index.ts +2 -0
- package/src/services/iotvideo/index.ts +4 -4
- package/src/services/live/v20180801/live_models.ts +12 -0
- package/src/services/mmps/v20200710/mmps_models.ts +2 -2
- package/src/services/mongodb/index.ts +2 -2
- package/src/services/mps/v20190612/mps_models.ts +2 -2
- package/src/services/ocr/v20181119/ocr_models.ts +7 -6
- package/src/services/organization/index.ts +2 -2
- package/src/services/privatedns/v20201028/privatedns_models.ts +6 -0
- package/src/services/pts/index.ts +5 -0
- package/src/services/pts/v20210728/index.ts +6 -0
- package/src/services/pts/v20210728/pts_client.ts +597 -0
- package/src/services/pts/v20210728/pts_models.ts +3903 -0
- package/src/services/region/index.ts +5 -0
- package/src/services/region/v20220627/index.ts +6 -0
- package/src/services/region/v20220627/region_client.ts +70 -0
- package/src/services/region/v20220627/region_models.ts +210 -0
- package/src/services/sms/index.ts +2 -2
- package/src/services/sqlserver/v20180328/sqlserver_models.ts +10 -0
- package/src/services/tcb/v20180608/tcb_client.ts +25 -12
- package/src/services/tcb/v20180608/tcb_models.ts +233 -93
- package/src/services/tdmq/v20200217/tdmq_models.ts +3 -2
- package/src/services/tem/index.ts +2 -2
- package/src/services/tem/v20210701/tem_client.ts +99 -70
- package/src/services/tem/v20210701/tem_models.ts +1436 -1159
- package/src/services/teo/v20220106/teo_client.ts +2 -0
- package/src/services/teo/v20220106/teo_models.ts +90 -0
- package/src/services/tiia/v20190529/tiia_client.ts +11 -30
- package/src/services/tiia/v20190529/tiia_models.ts +30 -168
- package/src/services/tione/index.ts +2 -2
- package/src/services/tke/v20180525/tke_client.ts +31 -19
- package/src/services/tke/v20180525/tke_models.ts +40 -14
- package/src/services/tsw/index.ts +2 -2
- package/src/services/vod/v20180717/vod_models.ts +19 -4
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +28 -1
- package/src/services/waf/v20180125/waf_client.ts +21 -7
- package/src/services/waf/v20180125/waf_models.ts +174 -121
- package/src/services/yinsuda/v20220527/yinsuda_client.ts +1 -1
- package/src/services/yinsuda/v20220527/yinsuda_models.ts +7 -0
- package/src/services/yunsou/index.ts +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/acp/v20220105/acp_models.d.ts +13 -5
- package/tencentcloud/services/bma/v20210624/bma_client.d.ts +35 -3
- package/tencentcloud/services/bma/v20210624/bma_client.js +51 -3
- package/tencentcloud/services/bma/v20210624/bma_models.d.ts +484 -34
- package/tencentcloud/services/btoe/index.d.ts +4 -4
- package/tencentcloud/services/btoe/index.js +2 -2
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +5 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +6 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +26 -0
- package/tencentcloud/services/cdc/v20201214/cdc_models.d.ts +25 -0
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +4 -0
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +1 -1
- package/tencentcloud/services/chdfs/index.d.ts +4 -4
- package/tencentcloud/services/chdfs/index.js +2 -2
- package/tencentcloud/services/cii/index.d.ts +4 -4
- package/tencentcloud/services/cii/index.js +2 -2
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +21 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +5 -0
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +14 -1
- package/tencentcloud/services/eis/index.d.ts +4 -4
- package/tencentcloud/services/eis/index.js +2 -2
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +1 -1
- package/tencentcloud/services/emr/v20190103/emr_client.js +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +9 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +12 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +148 -28
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +4 -0
- package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +91 -14
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +52 -8
- package/tencentcloud/services/iai/index.d.ts +4 -4
- package/tencentcloud/services/iai/index.js +2 -2
- package/tencentcloud/services/index.d.ts +2 -0
- package/tencentcloud/services/index.js +4 -0
- package/tencentcloud/services/iotvideo/index.d.ts +6 -6
- package/tencentcloud/services/iotvideo/index.js +4 -4
- package/tencentcloud/services/live/v20180801/live_models.d.ts +10 -0
- package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +2 -2
- package/tencentcloud/services/mongodb/index.d.ts +4 -4
- package/tencentcloud/services/mongodb/index.js +2 -2
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +2 -2
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +7 -6
- package/tencentcloud/services/organization/index.d.ts +4 -4
- package/tencentcloud/services/organization/index.js +2 -2
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +5 -0
- package/tencentcloud/services/pts/index.d.ts +6 -0
- package/tencentcloud/services/pts/index.js +7 -0
- package/tencentcloud/services/pts/v20210728/index.d.ts +6 -0
- package/tencentcloud/services/pts/v20210728/index.js +9 -0
- package/tencentcloud/services/pts/v20210728/pts_client.d.ts +182 -0
- package/tencentcloud/services/pts/v20210728/pts_client.js +289 -0
- package/tencentcloud/services/pts/v20210728/pts_models.d.ts +3285 -0
- package/tencentcloud/services/pts/v20210728/pts_models.js +18 -0
- package/tencentcloud/services/region/index.d.ts +6 -0
- package/tencentcloud/services/region/index.js +7 -0
- package/tencentcloud/services/region/v20220627/index.d.ts +6 -0
- package/tencentcloud/services/region/v20220627/index.js +9 -0
- package/tencentcloud/services/region/v20220627/region_client.d.ts +22 -0
- package/tencentcloud/services/region/v20220627/region_client.js +49 -0
- package/tencentcloud/services/region/v20220627/region_models.d.ts +173 -0
- package/tencentcloud/services/region/v20220627/region_models.js +18 -0
- package/tencentcloud/services/sms/index.d.ts +4 -4
- package/tencentcloud/services/sms/index.js +2 -2
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +8 -0
- package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +7 -3
- package/tencentcloud/services/tcb/v20180608/tcb_client.js +9 -3
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +204 -85
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +2 -1
- package/tencentcloud/services/tem/index.d.ts +4 -4
- package/tencentcloud/services/tem/index.js +2 -2
- package/tencentcloud/services/tem/v20210701/tem_client.d.ts +13 -5
- package/tencentcloud/services/tem/v20210701/tem_client.js +18 -6
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +1343 -1108
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +76 -0
- package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +6 -14
- package/tencentcloud/services/tiia/v20190529/tiia_client.js +6 -16
- package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +30 -149
- package/tencentcloud/services/tione/index.d.ts +4 -4
- package/tencentcloud/services/tione/index.js +2 -2
- package/tencentcloud/services/tke/v20180525/tke_client.d.ts +11 -7
- package/tencentcloud/services/tke/v20180525/tke_client.js +15 -9
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +35 -12
- package/tencentcloud/services/tsw/index.d.ts +4 -4
- package/tencentcloud/services/tsw/index.js +2 -2
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +17 -4
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +25 -1
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +150 -104
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.d.ts +1 -1
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_client.js +1 -1
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +6 -0
- package/tencentcloud/services/yunsou/index.d.ts +4 -4
- package/tencentcloud/services/yunsou/index.js +2 -2
- package/test/bma.v20210624.test.js +82 -2
- package/test/cdb.v20170320.test.js +10 -0
- package/test/ess.v20201111.test.js +20 -0
- package/test/pts.v20210728.test.js +451 -0
- package/test/region.v20220627.test.js +51 -0
- package/test/tcb.v20180608.test.js +12 -2
- package/test/tem.v20210701.test.js +24 -4
- package/test/tiia.v20190529.test.js +2 -12
- package/test/tke.v20180525.test.js +16 -6
- package/test/waf.v20180125.test.js +10 -0
|
@@ -28,6 +28,26 @@ it("bma.v20210624.DescribeCRWorkInfo", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
it("bma.v20210624.ModifyCRObtainStatus", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ModifyCRObtainStatus({})
|
|
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
|
+
it("bma.v20210624.ModifyCRBlockStatus", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ModifyCRBlockStatus({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
31
51
|
it("bma.v20210624.CreateCRRight", async function () {
|
|
32
52
|
try {
|
|
33
53
|
const data = await client.CreateCRRight({})
|
|
@@ -38,9 +58,29 @@ it("bma.v20210624.CreateCRRight", async function () {
|
|
|
38
58
|
}
|
|
39
59
|
})
|
|
40
60
|
|
|
41
|
-
it("bma.v20210624.
|
|
61
|
+
it("bma.v20210624.DescribeCRMonitors", async function () {
|
|
42
62
|
try {
|
|
43
|
-
const data = await client.
|
|
63
|
+
const data = await client.DescribeCRMonitors({})
|
|
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
|
+
it("bma.v20210624.ModifyCRRightStatus", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.ModifyCRRightStatus({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("bma.v20210624.UpdateCRWork", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.UpdateCRWork({})
|
|
44
84
|
expect(data).to.be.ok
|
|
45
85
|
} catch(error) {
|
|
46
86
|
expect(error.requestId).to.be.ok
|
|
@@ -58,4 +98,44 @@ it("bma.v20210624.CreateCRCompanyVerify", async function () {
|
|
|
58
98
|
}
|
|
59
99
|
})
|
|
60
100
|
|
|
101
|
+
it("bma.v20210624.ModifyCRMonitor", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.ModifyCRMonitor({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
it("bma.v20210624.CreateCRBlock", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.CreateCRBlock({})
|
|
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
|
+
it("bma.v20210624.CreateCRWork", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.CreateCRWork({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
it("bma.v20210624.DescribeCRMonitorDetail", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeCRMonitorDetail({})
|
|
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
|
+
|
|
61
141
|
})
|
|
@@ -358,6 +358,16 @@ it("cdb.v20170320.ModifyAuditConfig", async function () {
|
|
|
358
358
|
}
|
|
359
359
|
})
|
|
360
360
|
|
|
361
|
+
it("cdb.v20170320.ModifyInstancePasswordComplexity", async function () {
|
|
362
|
+
try {
|
|
363
|
+
const data = await client.ModifyInstancePasswordComplexity({})
|
|
364
|
+
expect(data).to.be.ok
|
|
365
|
+
} catch(error) {
|
|
366
|
+
expect(error.requestId).to.be.ok
|
|
367
|
+
expect(error.code).to.be.ok
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
|
|
361
371
|
it("cdb.v20170320.ModifyTimeWindow", async function () {
|
|
362
372
|
try {
|
|
363
373
|
const data = await client.ModifyTimeWindow({})
|
|
@@ -108,6 +108,26 @@ it("ess.v20201111.CreateSchemeUrl", async function () {
|
|
|
108
108
|
}
|
|
109
109
|
})
|
|
110
110
|
|
|
111
|
+
it("ess.v20201111.GetTaskResultApi", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.GetTaskResultApi({})
|
|
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
|
+
it("ess.v20201111.CreateConvertTaskApi", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.CreateConvertTaskApi({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
111
131
|
it("ess.v20201111.DescribeFlowTemplates", async function () {
|
|
112
132
|
try {
|
|
113
133
|
const data = await client.DescribeFlowTemplates({})
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.pts.v20210728.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("pts.v20210728.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("pts.v20210728.DescribeScenarioWithJobs", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeScenarioWithJobs({})
|
|
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("pts.v20210728.UpdateJob", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.UpdateJob({})
|
|
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
|
+
it("pts.v20210728.UpdateCronJob", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.UpdateCronJob({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
it("pts.v20210728.StartJob", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.StartJob({})
|
|
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("pts.v20210728.UpdateScenario", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.UpdateScenario({})
|
|
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
|
+
it("pts.v20210728.DescribeFiles", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeFiles({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("pts.v20210728.DeleteProjects", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DeleteProjects({})
|
|
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
|
+
it("pts.v20210728.DescribeSampleQuery", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DescribeSampleQuery({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it("pts.v20210728.DescribeJobs", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.DescribeJobs({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
it("pts.v20210728.CreateScenario", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.CreateScenario({})
|
|
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
|
+
it("pts.v20210728.DeleteFiles", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DeleteFiles({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
it("pts.v20210728.DescribeCheckSummary", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeCheckSummary({})
|
|
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
|
+
|
|
141
|
+
it("pts.v20210728.DescribeSampleMatrixBatchQuery", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.DescribeSampleMatrixBatchQuery({})
|
|
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
|
+
|
|
151
|
+
it("pts.v20210728.DescribeSampleMatrixQuery", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.DescribeSampleMatrixQuery({})
|
|
154
|
+
expect(data).to.be.ok
|
|
155
|
+
} catch(error) {
|
|
156
|
+
expect(error.requestId).to.be.ok
|
|
157
|
+
expect(error.code).to.be.ok
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
it("pts.v20210728.DescribeRequestSummary", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.DescribeRequestSummary({})
|
|
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
|
+
|
|
171
|
+
it("pts.v20210728.DeleteScenarios", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.DeleteScenarios({})
|
|
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
|
+
it("pts.v20210728.DescribeProjects", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.DescribeProjects({})
|
|
184
|
+
expect(data).to.be.ok
|
|
185
|
+
} catch(error) {
|
|
186
|
+
expect(error.requestId).to.be.ok
|
|
187
|
+
expect(error.code).to.be.ok
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
|
|
191
|
+
it("pts.v20210728.DescribeAlertRecords", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.DescribeAlertRecords({})
|
|
194
|
+
expect(data).to.be.ok
|
|
195
|
+
} catch(error) {
|
|
196
|
+
expect(error.requestId).to.be.ok
|
|
197
|
+
expect(error.code).to.be.ok
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
it("pts.v20210728.DescribeAlertChannels", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DescribeAlertChannels({})
|
|
204
|
+
expect(data).to.be.ok
|
|
205
|
+
} catch(error) {
|
|
206
|
+
expect(error.requestId).to.be.ok
|
|
207
|
+
expect(error.code).to.be.ok
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
it("pts.v20210728.DescribeAvailableMetrics", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeAvailableMetrics({})
|
|
214
|
+
expect(data).to.be.ok
|
|
215
|
+
} catch(error) {
|
|
216
|
+
expect(error.requestId).to.be.ok
|
|
217
|
+
expect(error.code).to.be.ok
|
|
218
|
+
}
|
|
219
|
+
})
|
|
220
|
+
|
|
221
|
+
it("pts.v20210728.DescribeLabelValues", async function () {
|
|
222
|
+
try {
|
|
223
|
+
const data = await client.DescribeLabelValues({})
|
|
224
|
+
expect(data).to.be.ok
|
|
225
|
+
} catch(error) {
|
|
226
|
+
expect(error.requestId).to.be.ok
|
|
227
|
+
expect(error.code).to.be.ok
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
it("pts.v20210728.AbortCronJobs", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.AbortCronJobs({})
|
|
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
|
+
it("pts.v20210728.UpdateFileScenarioRelation", async function () {
|
|
242
|
+
try {
|
|
243
|
+
const data = await client.UpdateFileScenarioRelation({})
|
|
244
|
+
expect(data).to.be.ok
|
|
245
|
+
} catch(error) {
|
|
246
|
+
expect(error.requestId).to.be.ok
|
|
247
|
+
expect(error.code).to.be.ok
|
|
248
|
+
}
|
|
249
|
+
})
|
|
250
|
+
|
|
251
|
+
it("pts.v20210728.RestartCronJobs", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.RestartCronJobs({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
it("pts.v20210728.CreateAlertChannel", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.CreateAlertChannel({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
it("pts.v20210728.DescribeSampleBatchQuery", async function () {
|
|
272
|
+
try {
|
|
273
|
+
const data = await client.DescribeSampleBatchQuery({})
|
|
274
|
+
expect(data).to.be.ok
|
|
275
|
+
} catch(error) {
|
|
276
|
+
expect(error.requestId).to.be.ok
|
|
277
|
+
expect(error.code).to.be.ok
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
|
|
281
|
+
it("pts.v20210728.DeleteJobs", async function () {
|
|
282
|
+
try {
|
|
283
|
+
const data = await client.DeleteJobs({})
|
|
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
|
+
|
|
291
|
+
it("pts.v20210728.DescribeNormalLogs", async function () {
|
|
292
|
+
try {
|
|
293
|
+
const data = await client.DescribeNormalLogs({})
|
|
294
|
+
expect(data).to.be.ok
|
|
295
|
+
} catch(error) {
|
|
296
|
+
expect(error.requestId).to.be.ok
|
|
297
|
+
expect(error.code).to.be.ok
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
it("pts.v20210728.DescribeRegions", async function () {
|
|
302
|
+
try {
|
|
303
|
+
const data = await client.DescribeRegions({})
|
|
304
|
+
expect(data).to.be.ok
|
|
305
|
+
} catch(error) {
|
|
306
|
+
expect(error.requestId).to.be.ok
|
|
307
|
+
expect(error.code).to.be.ok
|
|
308
|
+
}
|
|
309
|
+
})
|
|
310
|
+
|
|
311
|
+
it("pts.v20210728.CopyScenario", async function () {
|
|
312
|
+
try {
|
|
313
|
+
const data = await client.CopyScenario({})
|
|
314
|
+
expect(data).to.be.ok
|
|
315
|
+
} catch(error) {
|
|
316
|
+
expect(error.requestId).to.be.ok
|
|
317
|
+
expect(error.code).to.be.ok
|
|
318
|
+
}
|
|
319
|
+
})
|
|
320
|
+
|
|
321
|
+
it("pts.v20210728.DescribeSampleLogs", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.DescribeSampleLogs({})
|
|
324
|
+
expect(data).to.be.ok
|
|
325
|
+
} catch(error) {
|
|
326
|
+
expect(error.requestId).to.be.ok
|
|
327
|
+
expect(error.code).to.be.ok
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
|
|
331
|
+
it("pts.v20210728.DescribeScenarios", async function () {
|
|
332
|
+
try {
|
|
333
|
+
const data = await client.DescribeScenarios({})
|
|
334
|
+
expect(data).to.be.ok
|
|
335
|
+
} catch(error) {
|
|
336
|
+
expect(error.requestId).to.be.ok
|
|
337
|
+
expect(error.code).to.be.ok
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
|
|
341
|
+
it("pts.v20210728.DeleteCronJobs", async function () {
|
|
342
|
+
try {
|
|
343
|
+
const data = await client.DeleteCronJobs({})
|
|
344
|
+
expect(data).to.be.ok
|
|
345
|
+
} catch(error) {
|
|
346
|
+
expect(error.requestId).to.be.ok
|
|
347
|
+
expect(error.code).to.be.ok
|
|
348
|
+
}
|
|
349
|
+
})
|
|
350
|
+
|
|
351
|
+
it("pts.v20210728.DescribeCronJobs", async function () {
|
|
352
|
+
try {
|
|
353
|
+
const data = await client.DescribeCronJobs({})
|
|
354
|
+
expect(data).to.be.ok
|
|
355
|
+
} catch(error) {
|
|
356
|
+
expect(error.requestId).to.be.ok
|
|
357
|
+
expect(error.code).to.be.ok
|
|
358
|
+
}
|
|
359
|
+
})
|
|
360
|
+
|
|
361
|
+
it("pts.v20210728.DeleteAlertChannel", async function () {
|
|
362
|
+
try {
|
|
363
|
+
const data = await client.DeleteAlertChannel({})
|
|
364
|
+
expect(data).to.be.ok
|
|
365
|
+
} catch(error) {
|
|
366
|
+
expect(error.requestId).to.be.ok
|
|
367
|
+
expect(error.code).to.be.ok
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
|
|
371
|
+
it("pts.v20210728.CreateFile", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.CreateFile({})
|
|
374
|
+
expect(data).to.be.ok
|
|
375
|
+
} catch(error) {
|
|
376
|
+
expect(error.requestId).to.be.ok
|
|
377
|
+
expect(error.code).to.be.ok
|
|
378
|
+
}
|
|
379
|
+
})
|
|
380
|
+
|
|
381
|
+
it("pts.v20210728.AdjustJobSpeed", async function () {
|
|
382
|
+
try {
|
|
383
|
+
const data = await client.AdjustJobSpeed({})
|
|
384
|
+
expect(data).to.be.ok
|
|
385
|
+
} catch(error) {
|
|
386
|
+
expect(error.requestId).to.be.ok
|
|
387
|
+
expect(error.code).to.be.ok
|
|
388
|
+
}
|
|
389
|
+
})
|
|
390
|
+
|
|
391
|
+
it("pts.v20210728.CreateProject", async function () {
|
|
392
|
+
try {
|
|
393
|
+
const data = await client.CreateProject({})
|
|
394
|
+
expect(data).to.be.ok
|
|
395
|
+
} catch(error) {
|
|
396
|
+
expect(error.requestId).to.be.ok
|
|
397
|
+
expect(error.code).to.be.ok
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
|
|
401
|
+
it("pts.v20210728.AbortJob", async function () {
|
|
402
|
+
try {
|
|
403
|
+
const data = await client.AbortJob({})
|
|
404
|
+
expect(data).to.be.ok
|
|
405
|
+
} catch(error) {
|
|
406
|
+
expect(error.requestId).to.be.ok
|
|
407
|
+
expect(error.code).to.be.ok
|
|
408
|
+
}
|
|
409
|
+
})
|
|
410
|
+
|
|
411
|
+
it("pts.v20210728.UpdateProject", async function () {
|
|
412
|
+
try {
|
|
413
|
+
const data = await client.UpdateProject({})
|
|
414
|
+
expect(data).to.be.ok
|
|
415
|
+
} catch(error) {
|
|
416
|
+
expect(error.requestId).to.be.ok
|
|
417
|
+
expect(error.code).to.be.ok
|
|
418
|
+
}
|
|
419
|
+
})
|
|
420
|
+
|
|
421
|
+
it("pts.v20210728.GenerateTmpKey", async function () {
|
|
422
|
+
try {
|
|
423
|
+
const data = await client.GenerateTmpKey({})
|
|
424
|
+
expect(data).to.be.ok
|
|
425
|
+
} catch(error) {
|
|
426
|
+
expect(error.requestId).to.be.ok
|
|
427
|
+
expect(error.code).to.be.ok
|
|
428
|
+
}
|
|
429
|
+
})
|
|
430
|
+
|
|
431
|
+
it("pts.v20210728.DescribeMetricLabelWithValues", async function () {
|
|
432
|
+
try {
|
|
433
|
+
const data = await client.DescribeMetricLabelWithValues({})
|
|
434
|
+
expect(data).to.be.ok
|
|
435
|
+
} catch(error) {
|
|
436
|
+
expect(error.requestId).to.be.ok
|
|
437
|
+
expect(error.code).to.be.ok
|
|
438
|
+
}
|
|
439
|
+
})
|
|
440
|
+
|
|
441
|
+
it("pts.v20210728.CreateCronJob", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.CreateCronJob({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
451
|
+
})
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.region.v20220627.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("region.v20220627.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("region.v20220627.DescribeProducts", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeProducts({})
|
|
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("region.v20220627.DescribeRegions", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeRegions({})
|
|
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
|
+
it("region.v20220627.DescribeZones", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeZones({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
})
|
|
@@ -88,6 +88,16 @@ it("tcb.v20180608.DeleteWxGatewayRoute", async function () {
|
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
90
|
|
|
91
|
+
it("tcb.v20180608.DescribeUserActivityInfo", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DescribeUserActivityInfo({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
91
101
|
it("tcb.v20180608.BindEnvGateway", async function () {
|
|
92
102
|
try {
|
|
93
103
|
const data = await client.BindEnvGateway({})
|
|
@@ -288,9 +298,9 @@ it("tcb.v20180608.ReplaceActivityRecord", async function () {
|
|
|
288
298
|
}
|
|
289
299
|
})
|
|
290
300
|
|
|
291
|
-
it("tcb.v20180608.
|
|
301
|
+
it("tcb.v20180608.DescribeBaasPackageList", async function () {
|
|
292
302
|
try {
|
|
293
|
-
const data = await client.
|
|
303
|
+
const data = await client.DescribeBaasPackageList({})
|
|
294
304
|
expect(data).to.be.ok
|
|
295
305
|
} catch(error) {
|
|
296
306
|
expect(error.requestId).to.be.ok
|