tencentcloud-sdk-nodejs 4.0.434 → 4.0.437
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 +523 -0
- package/SERVICE_CHANGELOG.md +515 -46
- package/package.json +1 -1
- package/products.md +26 -26
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +0 -12
- package/src/services/antiddos/v20200309/antiddos_models.ts +0 -35
- package/src/services/as/v20180419/as_client.ts +3 -1
- package/src/services/as/v20180419/as_models.ts +16 -6
- package/src/services/asr/v20190614/asr_models.ts +11 -8
- package/src/services/bda/v20200324/bda_models.ts +31 -6
- package/src/services/bma/v20210624/bma_client.ts +45 -8
- package/src/services/bma/v20210624/bma_models.ts +217 -37
- package/src/services/ccc/v20200210/ccc_models.ts +5 -0
- package/src/services/cfw/v20190904/cfw_client.ts +0 -12
- package/src/services/cfw/v20190904/cfw_models.ts +2 -38
- package/src/services/cpdp/v20190820/cpdp_models.ts +21 -0
- package/src/services/cvm/v20170312/cvm_client.ts +1 -1
- package/src/services/cvm/v20170312/cvm_models.ts +1 -1
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +1 -1
- package/src/services/emr/v20190103/emr_models.ts +42 -3
- package/src/services/es/v20180416/es_models.ts +11 -0
- package/src/services/ess/v20201111/ess_client.ts +43 -11
- package/src/services/ess/v20201111/ess_models.ts +305 -57
- package/src/services/faceid/v20180301/faceid_models.ts +5 -0
- package/src/services/gme/v20180711/gme_models.ts +12 -2
- package/src/services/live/v20180801/live_client.ts +1 -1
- package/src/services/monitor/v20180724/monitor_models.ts +56 -0
- package/src/services/ses/v20201002/ses_models.ts +10 -8
- package/src/services/tag/v20180813/tag_models.ts +2 -2
- package/src/services/teo/v20220106/teo_client.ts +9 -3
- package/src/services/teo/v20220106/teo_models.ts +522 -250
- package/src/services/trp/v20210515/trp_models.ts +5 -0
- package/src/services/vm/index.ts +2 -0
- package/src/services/vm/v20210922/index.ts +6 -0
- package/src/services/vm/v20210922/vm_client.ts +100 -0
- package/src/services/vm/v20210922/vm_models.ts +1023 -0
- package/src/services/vod/v20180717/vod_models.ts +9 -0
- package/src/services/vpc/v20170312/vpc_client.ts +20 -7
- package/src/services/vpc/v20170312/vpc_models.ts +108 -3
- package/src/services/waf/v20180125/waf_client.ts +2 -1
- package/src/services/waf/v20180125/waf_models.ts +133 -91
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +1 -5
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +0 -6
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +0 -30
- package/tencentcloud/services/as/v20180419/as_client.d.ts +3 -1
- package/tencentcloud/services/as/v20180419/as_client.js +3 -1
- package/tencentcloud/services/as/v20180419/as_models.d.ts +14 -6
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +10 -8
- package/tencentcloud/services/bda/v20200324/bda_models.d.ts +23 -2
- package/tencentcloud/services/bma/v20210624/bma_client.d.ts +15 -3
- package/tencentcloud/services/bma/v20210624/bma_client.js +21 -3
- package/tencentcloud/services/bma/v20210624/bma_models.d.ts +184 -33
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +4 -0
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +1 -5
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +0 -6
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +2 -33
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +19 -0
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +1 -1
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +1 -1
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +1 -1
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +35 -3
- package/tencentcloud/services/es/v20180416/es_models.d.ts +9 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +19 -6
- package/tencentcloud/services/ess/v20201111/ess_client.js +23 -6
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +260 -49
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +4 -0
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +10 -2
- package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
- package/tencentcloud/services/live/v20180801/live_client.js +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +46 -0
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +10 -8
- package/tencentcloud/services/tag/v20180813/tag_models.d.ts +2 -2
- package/tencentcloud/services/teo/v20220106/teo_client.d.ts +1 -1
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +464 -218
- package/tencentcloud/services/trp/v20210515/trp_models.d.ts +4 -0
- package/tencentcloud/services/vm/index.d.ts +4 -0
- package/tencentcloud/services/vm/index.js +2 -0
- package/tencentcloud/services/vm/v20210922/index.d.ts +6 -0
- package/tencentcloud/services/vm/v20210922/index.js +9 -0
- package/tencentcloud/services/vm/v20210922/vm_client.d.ts +28 -0
- package/tencentcloud/services/vm/v20210922/vm_client.js +57 -0
- package/tencentcloud/services/vm/v20210922/vm_models.d.ts +866 -0
- package/tencentcloud/services/vm/v20210922/vm_models.js +18 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +8 -0
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +12 -8
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +13 -7
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +91 -3
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +110 -75
- package/test/antiddos.v20200309.test.js +0 -10
- package/test/bma.v20210624.test.js +32 -2
- package/test/cfw.v20190904.test.js +0 -10
- package/test/ess.v20201111.test.js +22 -2
- package/test/vm.v20210922.test.js +61 -0
- package/test/vpc.v20170312.test.js +10 -0
|
@@ -138,6 +138,26 @@ it("bma.v20210624.CreateBPFakeURL", async function () {
|
|
|
138
138
|
}
|
|
139
139
|
})
|
|
140
140
|
|
|
141
|
+
it("bma.v20210624.CreateCRRightFile", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.CreateCRRightFile({})
|
|
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("bma.v20210624.ModifyCRWhiteList", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.ModifyCRWhiteList({})
|
|
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
|
+
|
|
141
161
|
it("bma.v20210624.ModifyCRBlockStatus", async function () {
|
|
142
162
|
try {
|
|
143
163
|
const data = await client.ModifyCRBlockStatus({})
|
|
@@ -178,6 +198,16 @@ it("bma.v20210624.DescribeBPReportFakeURLs", async function () {
|
|
|
178
198
|
}
|
|
179
199
|
})
|
|
180
200
|
|
|
201
|
+
it("bma.v20210624.DescribeBPFakeURLs", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DescribeBPFakeURLs({})
|
|
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
|
+
|
|
181
211
|
it("bma.v20210624.DescribeCRWorkInfo", async function () {
|
|
182
212
|
try {
|
|
183
213
|
const data = await client.DescribeCRWorkInfo({})
|
|
@@ -228,9 +258,9 @@ it("bma.v20210624.DescribeBPProtectURLs", async function () {
|
|
|
228
258
|
}
|
|
229
259
|
})
|
|
230
260
|
|
|
231
|
-
it("bma.v20210624.
|
|
261
|
+
it("bma.v20210624.CreateCRTort", async function () {
|
|
232
262
|
try {
|
|
233
|
-
const data = await client.
|
|
263
|
+
const data = await client.CreateCRTort({})
|
|
234
264
|
expect(data).to.be.ok
|
|
235
265
|
} catch(error) {
|
|
236
266
|
expect(error.requestId).to.be.ok
|
|
@@ -358,16 +358,6 @@ it("cfw.v20190904.ModifyNatFwVpcDnsSwitch", async function () {
|
|
|
358
358
|
}
|
|
359
359
|
})
|
|
360
360
|
|
|
361
|
-
it("cfw.v20190904.ModifyVPCSwitchStatus", async function () {
|
|
362
|
-
try {
|
|
363
|
-
const data = await client.ModifyVPCSwitchStatus({})
|
|
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
361
|
it("cfw.v20190904.ModifyAllVPCSwitchStatus", async function () {
|
|
372
362
|
try {
|
|
373
363
|
const data = await client.ModifyAllVPCSwitchStatus({})
|
|
@@ -28,6 +28,16 @@ it("ess.v20201111.DescribeFileUrls", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
it("ess.v20201111.DescribeFlowInfo", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeFlowInfo({})
|
|
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("ess.v20201111.StartFlow", async function () {
|
|
32
42
|
try {
|
|
33
43
|
const data = await client.StartFlow({})
|
|
@@ -108,6 +118,16 @@ it("ess.v20201111.CreateFlow", async function () {
|
|
|
108
118
|
}
|
|
109
119
|
})
|
|
110
120
|
|
|
121
|
+
it("ess.v20201111.CreateFlowByFiles", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.CreateFlowByFiles({})
|
|
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.CancelMultiFlowSignQRCode", async function () {
|
|
112
132
|
try {
|
|
113
133
|
const data = await client.CancelMultiFlowSignQRCode({})
|
|
@@ -178,9 +198,9 @@ it("ess.v20201111.DescribeFlowBriefs", async function () {
|
|
|
178
198
|
}
|
|
179
199
|
})
|
|
180
200
|
|
|
181
|
-
it("ess.v20201111.
|
|
201
|
+
it("ess.v20201111.CreateFlowApprovers", async function () {
|
|
182
202
|
try {
|
|
183
|
-
const data = await client.
|
|
203
|
+
const data = await client.CreateFlowApprovers({})
|
|
184
204
|
expect(data).to.be.ok
|
|
185
205
|
} catch(error) {
|
|
186
206
|
expect(error.requestId).to.be.ok
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.vm.v20210922.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("vm.v20210922.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("vm.v20210922.DescribeTaskDetail", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeTaskDetail({})
|
|
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("vm.v20210922.CreateVideoModerationTask", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.CreateVideoModerationTask({})
|
|
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("vm.v20210922.DescribeTasks", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeTasks({})
|
|
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("vm.v20210922.CancelTask", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.CancelTask({})
|
|
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
|
+
})
|
|
@@ -2318,6 +2318,16 @@ it("vpc.v20170312.CreateVpnGateway", async function () {
|
|
|
2318
2318
|
}
|
|
2319
2319
|
})
|
|
2320
2320
|
|
|
2321
|
+
it("vpc.v20170312.DescribeTrafficPackages", async function () {
|
|
2322
|
+
try {
|
|
2323
|
+
const data = await client.DescribeTrafficPackages({})
|
|
2324
|
+
expect(data).to.be.ok
|
|
2325
|
+
} catch(error) {
|
|
2326
|
+
expect(error.requestId).to.be.ok
|
|
2327
|
+
expect(error.code).to.be.ok
|
|
2328
|
+
}
|
|
2329
|
+
})
|
|
2330
|
+
|
|
2321
2331
|
it("vpc.v20170312.DescribeSecurityGroupPolicies", async function () {
|
|
2322
2332
|
try {
|
|
2323
2333
|
const data = await client.DescribeSecurityGroupPolicies({})
|