tencentcloud-sdk-nodejs 4.0.321 → 4.0.324
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 +510 -0
- package/SERVICE_CHANGELOG.md +556 -94
- package/package.json +1 -1
- package/products.md +26 -25
- package/src/common/abstract_client.ts +5 -1
- package/src/common/interface.ts +2 -2
- package/src/common/sdk_version.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +6 -0
- package/src/services/captcha/v20190722/captcha_client.ts +1 -1
- package/src/services/cbs/v20170312/cbs_client.ts +1 -0
- package/src/services/cbs/v20170312/cbs_models.ts +48 -23
- package/src/services/ccc/v20200210/ccc_models.ts +6 -6
- package/src/services/cdb/v20170320/cdb_models.ts +3 -3
- package/src/services/cdn/v20180606/cdn_models.ts +7 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +1 -1
- package/src/services/cls/v20201016/cls_client.ts +37 -13
- package/src/services/cls/v20201016/cls_models.ts +107 -30
- package/src/services/cvm/v20170312/cvm_models.ts +13 -3
- package/src/services/dc/v20180410/dc_models.ts +21 -1
- package/src/services/dcdb/v20180411/dcdb_client.ts +8 -33
- package/src/services/dcdb/v20180411/dcdb_models.ts +19 -121
- package/src/services/gaap/v20180529/gaap_models.ts +2 -1
- package/src/services/icr/index.ts +5 -0
- package/src/services/icr/v20211014/icr_client.ts +54 -0
- package/src/services/icr/v20211014/icr_models.ts +363 -0
- package/src/services/icr/v20211014/index.ts +6 -0
- package/src/services/iecp/v20210914/iecp_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +63 -56
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +13 -2
- package/src/services/mariadb/v20170312/mariadb_client.ts +9 -34
- package/src/services/mariadb/v20170312/mariadb_models.ts +11 -119
- package/src/services/nlp/v20190408/nlp_client.ts +0 -3
- package/src/services/nlp/v20190408/nlp_models.ts +1 -1
- package/src/services/postgres/v20170312/postgres_models.ts +38 -5
- package/src/services/ssa/v20180608/ssa_client.ts +30 -1
- package/src/services/ssa/v20180608/ssa_models.ts +254 -13
- package/src/services/tcss/v20201101/tcss_models.ts +13 -0
- package/src/services/tdmq/v20200217/tdmq_models.ts +20 -4
- package/src/services/tsf/v20180326/tsf_client.ts +15 -0
- package/src/services/tsf/v20180326/tsf_models.ts +248 -1
- package/src/services/vod/v20180717/vod_client.ts +60 -18
- package/src/services/vod/v20180717/vod_models.ts +131 -29
- package/tencentcloud/common/abstract_client.js +1 -1
- package/tencentcloud/common/interface.d.ts +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +5 -0
- package/tencentcloud/services/captcha/v20190722/captcha_client.d.ts +1 -1
- package/tencentcloud/services/captcha/v20190722/captcha_client.js +1 -1
- package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +1 -0
- package/tencentcloud/services/cbs/v20170312/cbs_client.js +1 -0
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +43 -23
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +6 -6
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +3 -3
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +6 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +13 -5
- package/tencentcloud/services/cls/v20201016/cls_client.js +18 -6
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +91 -25
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +11 -3
- package/tencentcloud/services/dc/v20180410/dc_models.d.ts +17 -1
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +3 -11
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +3 -15
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +17 -104
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +2 -1
- package/tencentcloud/services/icr/index.d.ts +6 -0
- package/tencentcloud/services/icr/index.js +7 -0
- package/tencentcloud/services/icr/v20211014/icr_client.d.ts +14 -0
- package/tencentcloud/services/icr/v20211014/icr_client.js +37 -0
- package/tencentcloud/services/icr/v20211014/icr_models.d.ts +297 -0
- package/tencentcloud/services/icr/v20211014/icr_models.js +18 -0
- package/tencentcloud/services/icr/v20211014/index.d.ts +6 -0
- package/tencentcloud/services/icr/v20211014/index.js +9 -0
- package/tencentcloud/services/iecp/v20210914/iecp_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +62 -56
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +12 -1
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +4 -12
- package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +4 -16
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +10 -102
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +0 -3
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +0 -3
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +1 -1
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +32 -5
- package/tencentcloud/services/ssa/v20180608/ssa_client.d.ts +9 -1
- package/tencentcloud/services/ssa/v20180608/ssa_client.js +12 -0
- package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +218 -13
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +11 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +17 -4
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +5 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +6 -0
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +210 -1
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +24 -7
- package/tencentcloud/services/vod/v20180717/vod_client.js +31 -8
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +114 -25
- package/test/cls.v20201016.test.js +24 -4
- package/test/dcdb.v20180411.test.js +2 -22
- package/test/icr.v20211014.test.js +31 -0
- package/test/mariadb.v20170312.test.js +2 -22
- package/test/ssa.v20180608.test.js +20 -0
- package/test/tsf.v20180326.test.js +10 -0
- package/test/vod.v20180717.test.js +34 -4
|
@@ -388,6 +388,16 @@ it("cls.v20201016.DescribeLogHistogram", async function () {
|
|
|
388
388
|
}
|
|
389
389
|
})
|
|
390
390
|
|
|
391
|
+
it("cls.v20201016.SearchLog", async function () {
|
|
392
|
+
try {
|
|
393
|
+
const data = await client.SearchLog({})
|
|
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
|
+
|
|
391
401
|
it("cls.v20201016.ModifyAlarmNotice", async function () {
|
|
392
402
|
try {
|
|
393
403
|
const data = await client.ModifyAlarmNotice({})
|
|
@@ -398,9 +408,9 @@ it("cls.v20201016.ModifyAlarmNotice", async function () {
|
|
|
398
408
|
}
|
|
399
409
|
})
|
|
400
410
|
|
|
401
|
-
it("cls.v20201016.
|
|
411
|
+
it("cls.v20201016.OpenKafkaConsumer", async function () {
|
|
402
412
|
try {
|
|
403
|
-
const data = await client.
|
|
413
|
+
const data = await client.OpenKafkaConsumer({})
|
|
404
414
|
expect(data).to.be.ok
|
|
405
415
|
} catch(error) {
|
|
406
416
|
expect(error.requestId).to.be.ok
|
|
@@ -528,6 +538,16 @@ it("cls.v20201016.DescribeConsumer", async function () {
|
|
|
528
538
|
}
|
|
529
539
|
})
|
|
530
540
|
|
|
541
|
+
it("cls.v20201016.SplitPartition", async function () {
|
|
542
|
+
try {
|
|
543
|
+
const data = await client.SplitPartition({})
|
|
544
|
+
expect(data).to.be.ok
|
|
545
|
+
} catch(error) {
|
|
546
|
+
expect(error.requestId).to.be.ok
|
|
547
|
+
expect(error.code).to.be.ok
|
|
548
|
+
}
|
|
549
|
+
})
|
|
550
|
+
|
|
531
551
|
it("cls.v20201016.DescribeConfigs", async function () {
|
|
532
552
|
try {
|
|
533
553
|
const data = await client.DescribeConfigs({})
|
|
@@ -618,9 +638,9 @@ it("cls.v20201016.CreateExport", async function () {
|
|
|
618
638
|
}
|
|
619
639
|
})
|
|
620
640
|
|
|
621
|
-
it("cls.v20201016.
|
|
641
|
+
it("cls.v20201016.CloseKafkaConsumer", async function () {
|
|
622
642
|
try {
|
|
623
|
-
const data = await client.
|
|
643
|
+
const data = await client.CloseKafkaConsumer({})
|
|
624
644
|
expect(data).to.be.ok
|
|
625
645
|
} catch(error) {
|
|
626
646
|
expect(error.requestId).to.be.ok
|
|
@@ -48,16 +48,6 @@ it("dcdb.v20180411.DescribeDatabaseObjects", async function () {
|
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
|
-
it("dcdb.v20180411.DescribeDatabaseTable", async function () {
|
|
52
|
-
try {
|
|
53
|
-
const data = await client.DescribeDatabaseTable({})
|
|
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
51
|
it("dcdb.v20180411.DescribeShardSpec", async function () {
|
|
62
52
|
try {
|
|
63
53
|
const data = await client.DescribeShardSpec({})
|
|
@@ -118,16 +108,6 @@ it("dcdb.v20180411.ModifyAccountDescription", async function () {
|
|
|
118
108
|
}
|
|
119
109
|
})
|
|
120
110
|
|
|
121
|
-
it("dcdb.v20180411.DescribeOrders", async function () {
|
|
122
|
-
try {
|
|
123
|
-
const data = await client.DescribeOrders({})
|
|
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
111
|
it("dcdb.v20180411.DescribeUserTasks", async function () {
|
|
132
112
|
try {
|
|
133
113
|
const data = await client.DescribeUserTasks({})
|
|
@@ -488,9 +468,9 @@ it("dcdb.v20180411.DestroyHourDCDBInstance", async function () {
|
|
|
488
468
|
}
|
|
489
469
|
})
|
|
490
470
|
|
|
491
|
-
it("dcdb.v20180411.
|
|
471
|
+
it("dcdb.v20180411.DescribeDatabaseTable", async function () {
|
|
492
472
|
try {
|
|
493
|
-
const data = await client.
|
|
473
|
+
const data = await client.DescribeDatabaseTable({})
|
|
494
474
|
expect(data).to.be.ok
|
|
495
475
|
} catch(error) {
|
|
496
476
|
expect(error.requestId).to.be.ok
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.icr.v20211014.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("icr.v20211014.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("icr.v20211014.GetIndustryV1HomeMembers", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.GetIndustryV1HomeMembers({})
|
|
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
|
+
})
|
|
@@ -248,9 +248,9 @@ it("mariadb.v20170312.RestartDBInstances", async function () {
|
|
|
248
248
|
}
|
|
249
249
|
})
|
|
250
250
|
|
|
251
|
-
it("mariadb.v20170312.
|
|
251
|
+
it("mariadb.v20170312.GrantAccountPrivileges", async function () {
|
|
252
252
|
try {
|
|
253
|
-
const data = await client.
|
|
253
|
+
const data = await client.GrantAccountPrivileges({})
|
|
254
254
|
expect(data).to.be.ok
|
|
255
255
|
} catch(error) {
|
|
256
256
|
expect(error.requestId).to.be.ok
|
|
@@ -508,16 +508,6 @@ it("mariadb.v20170312.FlushBinlog", async function () {
|
|
|
508
508
|
}
|
|
509
509
|
})
|
|
510
510
|
|
|
511
|
-
it("mariadb.v20170312.GrantAccountPrivileges", async function () {
|
|
512
|
-
try {
|
|
513
|
-
const data = await client.GrantAccountPrivileges({})
|
|
514
|
-
expect(data).to.be.ok
|
|
515
|
-
} catch(error) {
|
|
516
|
-
expect(error.requestId).to.be.ok
|
|
517
|
-
expect(error.code).to.be.ok
|
|
518
|
-
}
|
|
519
|
-
})
|
|
520
|
-
|
|
521
511
|
it("mariadb.v20170312.CopyAccountPrivileges", async function () {
|
|
522
512
|
try {
|
|
523
513
|
const data = await client.CopyAccountPrivileges({})
|
|
@@ -558,16 +548,6 @@ it("mariadb.v20170312.DescribePrice", async function () {
|
|
|
558
548
|
}
|
|
559
549
|
})
|
|
560
550
|
|
|
561
|
-
it("mariadb.v20170312.DescribeDBSecurityGroups", async function () {
|
|
562
|
-
try {
|
|
563
|
-
const data = await client.DescribeDBSecurityGroups({})
|
|
564
|
-
expect(data).to.be.ok
|
|
565
|
-
} catch(error) {
|
|
566
|
-
expect(error.requestId).to.be.ok
|
|
567
|
-
expect(error.code).to.be.ok
|
|
568
|
-
}
|
|
569
|
-
})
|
|
570
|
-
|
|
571
551
|
it("mariadb.v20170312.DescribeDatabaseTable", async function () {
|
|
572
552
|
try {
|
|
573
553
|
const data = await client.DescribeDatabaseTable({})
|
|
@@ -118,6 +118,26 @@ it("ssa.v20180608.DescribeSocCspmCompliance", async function () {
|
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
120
|
|
|
121
|
+
it("ssa.v20180608.DescribeMappingResults", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribeMappingResults({})
|
|
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("ssa.v20180608.DescribeSocCheckItemList", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeSocCheckItemList({})
|
|
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
|
+
|
|
121
141
|
it("ssa.v20180608.DescribeVulList", async function () {
|
|
122
142
|
try {
|
|
123
143
|
const data = await client.DescribeVulList({})
|
|
@@ -1568,6 +1568,16 @@ it("tsf.v20180326.DeleteUnitNamespaces", async function () {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
})
|
|
1570
1570
|
|
|
1571
|
+
it("tsf.v20180326.DescribeInstances", async function () {
|
|
1572
|
+
try {
|
|
1573
|
+
const data = await client.DescribeInstances({})
|
|
1574
|
+
expect(data).to.be.ok
|
|
1575
|
+
} catch(error) {
|
|
1576
|
+
expect(error.requestId).to.be.ok
|
|
1577
|
+
expect(error.code).to.be.ok
|
|
1578
|
+
}
|
|
1579
|
+
})
|
|
1580
|
+
|
|
1571
1581
|
it("tsf.v20180326.DraftApiGroup", async function () {
|
|
1572
1582
|
try {
|
|
1573
1583
|
const data = await client.DraftApiGroup({})
|
|
@@ -38,6 +38,16 @@ it("vod.v20180717.CreateSnapshotByTimeOffsetTemplate", async function () {
|
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
+
it("vod.v20180717.ModifyDefaultStorageRegion", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ModifyDefaultStorageRegion({})
|
|
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
|
+
|
|
41
51
|
it("vod.v20180717.EditMedia", async function () {
|
|
42
52
|
try {
|
|
43
53
|
const data = await client.EditMedia({})
|
|
@@ -168,9 +178,9 @@ it("vod.v20180717.SplitMedia", async function () {
|
|
|
168
178
|
}
|
|
169
179
|
})
|
|
170
180
|
|
|
171
|
-
it("vod.v20180717.
|
|
181
|
+
it("vod.v20180717.DescribeImageProcessingTemplates", async function () {
|
|
172
182
|
try {
|
|
173
|
-
const data = await client.
|
|
183
|
+
const data = await client.DescribeImageProcessingTemplates({})
|
|
174
184
|
expect(data).to.be.ok
|
|
175
185
|
} catch(error) {
|
|
176
186
|
expect(error.requestId).to.be.ok
|
|
@@ -258,6 +268,16 @@ it("vod.v20180717.DescribeTasks", async function () {
|
|
|
258
268
|
}
|
|
259
269
|
})
|
|
260
270
|
|
|
271
|
+
it("vod.v20180717.CreateStorageRegion", async function () {
|
|
272
|
+
try {
|
|
273
|
+
const data = await client.CreateStorageRegion({})
|
|
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
|
+
|
|
261
281
|
it("vod.v20180717.ResetProcedureTemplate", async function () {
|
|
262
282
|
try {
|
|
263
283
|
const data = await client.ResetProcedureTemplate({})
|
|
@@ -618,6 +638,16 @@ it("vod.v20180717.DescribeDailyMostPlayedStat", async function () {
|
|
|
618
638
|
}
|
|
619
639
|
})
|
|
620
640
|
|
|
641
|
+
it("vod.v20180717.DescribeStorageRegions", async function () {
|
|
642
|
+
try {
|
|
643
|
+
const data = await client.DescribeStorageRegions({})
|
|
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
|
+
|
|
621
651
|
it("vod.v20180717.DescribeEventsState", async function () {
|
|
622
652
|
try {
|
|
623
653
|
const data = await client.DescribeEventsState({})
|
|
@@ -818,9 +848,9 @@ it("vod.v20180717.ManageTask", async function () {
|
|
|
818
848
|
}
|
|
819
849
|
})
|
|
820
850
|
|
|
821
|
-
it("vod.v20180717.
|
|
851
|
+
it("vod.v20180717.ModifyAIAnalysisTemplate", async function () {
|
|
822
852
|
try {
|
|
823
|
-
const data = await client.
|
|
853
|
+
const data = await client.ModifyAIAnalysisTemplate({})
|
|
824
854
|
expect(data).to.be.ok
|
|
825
855
|
} catch(error) {
|
|
826
856
|
expect(error.requestId).to.be.ok
|