tencentcloud-sdk-nodejs 4.0.562 → 4.0.563
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 +160 -0
- package/SERVICE_CHANGELOG.md +205 -200
- package/package.json +1 -1
- package/products.md +42 -41
- package/src/common/sdk_version.ts +1 -1
- package/src/services/aiart/v20221229/aiart_models.ts +14 -22
- package/src/services/apm/v20210622/apm_client.ts +24 -0
- package/src/services/apm/v20210622/apm_models.ts +115 -0
- package/src/services/as/v20180419/as_models.ts +4 -6
- package/src/services/bma/v20221115/bma_models.ts +4 -6
- package/src/services/ccc/v20200210/ccc_models.ts +4 -6
- package/src/services/cfw/v20190904/cfw_models.ts +24 -36
- package/src/services/ckafka/v20190819/ckafka_client.ts +19 -5
- package/src/services/ckafka/v20190819/ckafka_models.ts +171 -77
- package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +6 -9
- package/src/services/cloudstudio/v20210524/cloudstudio_models.ts +4 -6
- package/src/services/cpdp/v20190820/cpdp_models.ts +0 -2
- package/src/services/cwp/v20180228/cwp_models.ts +2 -3
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +1 -1
- package/src/services/dlc/v20210125/dlc_models.ts +4 -6
- package/src/services/dnspod/v20210323/dnspod_models.ts +2 -3
- package/src/services/dts/v20211206/dts_models.ts +26 -22
- package/src/services/ecm/v20190719/ecm_models.ts +24 -36
- package/src/services/ess/v20201111/ess_models.ts +30 -53
- package/src/services/essbasic/v20210526/essbasic_models.ts +48 -76
- package/src/services/gme/v20180711/gme_models.ts +2 -3
- package/src/services/iai/v20180301/iai_models.ts +4 -6
- package/src/services/iai/v20200303/iai_models.ts +4 -6
- package/src/services/index.ts +1 -0
- package/src/services/ivld/v20210903/ivld_models.ts +10 -15
- package/src/services/lcic/v20220817/lcic_models.ts +36 -58
- package/src/services/memcached/v20190318/memcached_models.ts +2 -3
- package/src/services/mrs/v20200910/mrs_models.ts +4 -6
- package/src/services/nlp/v20190408/nlp_models.ts +36 -54
- package/src/services/oceanus/v20190422/oceanus_models.ts +2 -3
- package/src/services/postgres/v20170312/postgres_client.ts +226 -77
- package/src/services/postgres/v20170312/postgres_models.ts +1000 -274
- package/src/services/smop/index.ts +5 -0
- package/src/services/smop/v20201203/index.ts +6 -0
- package/src/services/smop/v20201203/smop_client.ts +40 -0
- package/src/services/smop/v20201203/smop_models.ts +167 -0
- package/src/services/teo/v20220901/teo_models.ts +6 -11
- package/src/services/thpc/v20220401/thpc_models.ts +6 -8
- package/src/services/tke/v20180525/tke_models.ts +5 -0
- package/src/services/trp/v20210515/trp_client.ts +3 -2
- package/src/services/trp/v20210515/trp_models.ts +25 -5
- package/src/services/trtc/v20190722/trtc_models.ts +42 -63
- package/src/services/tse/v20201207/tse_models.ts +6 -9
- package/src/services/vm/v20201229/vm_models.ts +2 -3
- package/src/services/vod/v20180717/vod_models.ts +2 -2
- package/src/services/vpc/v20170312/vpc_models.ts +6 -9
- package/src/services/wedata/v20210820/wedata_models.ts +4 -6
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +0 -8
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +9 -1
- package/tencentcloud/services/apm/v20210622/apm_client.js +12 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +96 -0
- package/tencentcloud/services/as/v20180419/as_models.d.ts +0 -2
- package/tencentcloud/services/bma/v20221115/bma_models.d.ts +0 -2
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +0 -2
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +0 -12
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +5 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +6 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +131 -53
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +0 -3
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.d.ts +0 -2
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +0 -2
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +0 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +1 -1
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +0 -2
- package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +0 -1
- package/tencentcloud/services/dts/v20211206/dts_models.d.ts +26 -22
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +0 -12
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +0 -23
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +0 -28
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +0 -1
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +0 -2
- package/tencentcloud/services/iai/v20200303/iai_models.d.ts +0 -2
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +0 -5
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +0 -22
- package/tencentcloud/services/memcached/v20190318/memcached_models.d.ts +0 -1
- package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +0 -2
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +0 -18
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +0 -1
- package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +71 -23
- package/tencentcloud/services/postgres/v20170312/postgres_client.js +105 -33
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +788 -176
- package/tencentcloud/services/smop/index.d.ts +6 -0
- package/tencentcloud/services/smop/index.js +7 -0
- package/tencentcloud/services/smop/v20201203/index.d.ts +6 -0
- package/tencentcloud/services/smop/v20201203/index.js +9 -0
- package/tencentcloud/services/smop/v20201203/smop_client.d.ts +14 -0
- package/tencentcloud/services/smop/v20201203/smop_client.js +37 -0
- package/tencentcloud/services/smop/v20201203/smop_models.d.ts +127 -0
- package/tencentcloud/services/smop/v20201203/smop_models.js +18 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +0 -5
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +2 -4
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +4 -0
- package/tencentcloud/services/trp/v20210515/trp_client.d.ts +2 -1
- package/tencentcloud/services/trp/v20210515/trp_client.js +2 -1
- package/tencentcloud/services/trp/v20210515/trp_models.d.ts +20 -4
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +0 -21
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +0 -3
- package/tencentcloud/services/vm/v20201229/vm_models.d.ts +0 -1
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +2 -2
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +0 -3
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +0 -2
- package/test/apm.v20210622.test.js +20 -0
- package/test/ckafka.v20190819.test.js +10 -0
- package/test/postgres.v20170312.test.js +142 -22
- package/test/smop.v20201203.test.js +31 -0
|
@@ -58,9 +58,9 @@ it("postgres.v20170312.DescribeOrders", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
-
it("postgres.v20170312.
|
|
61
|
+
it("postgres.v20170312.DescribeBackupDownloadURL", async function () {
|
|
62
62
|
try {
|
|
63
|
-
const data = await client.
|
|
63
|
+
const data = await client.DescribeBackupDownloadURL({})
|
|
64
64
|
expect(data).to.be.ok
|
|
65
65
|
} catch(error) {
|
|
66
66
|
expect(error.requestId).to.be.ok
|
|
@@ -178,9 +178,9 @@ it("postgres.v20170312.DescribeDBErrlogs", async function () {
|
|
|
178
178
|
}
|
|
179
179
|
})
|
|
180
180
|
|
|
181
|
-
it("postgres.v20170312.
|
|
181
|
+
it("postgres.v20170312.DescribeParameterTemplates", async function () {
|
|
182
182
|
try {
|
|
183
|
-
const data = await client.
|
|
183
|
+
const data = await client.DescribeParameterTemplates({})
|
|
184
184
|
expect(data).to.be.ok
|
|
185
185
|
} catch(error) {
|
|
186
186
|
expect(error.requestId).to.be.ok
|
|
@@ -218,9 +218,19 @@ it("postgres.v20170312.DescribeDBInstanceSecurityGroups", async function () {
|
|
|
218
218
|
}
|
|
219
219
|
})
|
|
220
220
|
|
|
221
|
-
it("postgres.v20170312.
|
|
221
|
+
it("postgres.v20170312.DescribeDBInstanceParameters", async function () {
|
|
222
222
|
try {
|
|
223
|
-
const data = await client.
|
|
223
|
+
const data = await client.DescribeDBInstanceParameters({})
|
|
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("postgres.v20170312.CreateBaseBackup", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.CreateBaseBackup({})
|
|
224
234
|
expect(data).to.be.ok
|
|
225
235
|
} catch(error) {
|
|
226
236
|
expect(error.requestId).to.be.ok
|
|
@@ -248,9 +258,9 @@ it("postgres.v20170312.DeleteDBInstanceNetworkAccess", async function () {
|
|
|
248
258
|
}
|
|
249
259
|
})
|
|
250
260
|
|
|
251
|
-
it("postgres.v20170312.
|
|
261
|
+
it("postgres.v20170312.ModifyBaseBackupExpireTime", async function () {
|
|
252
262
|
try {
|
|
253
|
-
const data = await client.
|
|
263
|
+
const data = await client.ModifyBaseBackupExpireTime({})
|
|
254
264
|
expect(data).to.be.ok
|
|
255
265
|
} catch(error) {
|
|
256
266
|
expect(error.requestId).to.be.ok
|
|
@@ -378,9 +388,9 @@ it("postgres.v20170312.RebalanceReadOnlyGroup", async function () {
|
|
|
378
388
|
}
|
|
379
389
|
})
|
|
380
390
|
|
|
381
|
-
it("postgres.v20170312.
|
|
391
|
+
it("postgres.v20170312.DescribeReadOnlyGroups", async function () {
|
|
382
392
|
try {
|
|
383
|
-
const data = await client.
|
|
393
|
+
const data = await client.DescribeReadOnlyGroups({})
|
|
384
394
|
expect(data).to.be.ok
|
|
385
395
|
} catch(error) {
|
|
386
396
|
expect(error.requestId).to.be.ok
|
|
@@ -388,9 +398,19 @@ it("postgres.v20170312.CreateServerlessDBInstance", async function () {
|
|
|
388
398
|
}
|
|
389
399
|
})
|
|
390
400
|
|
|
391
|
-
it("postgres.v20170312.
|
|
401
|
+
it("postgres.v20170312.DeleteParameterTemplate", async function () {
|
|
392
402
|
try {
|
|
393
|
-
const data = await client.
|
|
403
|
+
const data = await client.DeleteParameterTemplate({})
|
|
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("postgres.v20170312.DeleteLogBackup", async function () {
|
|
412
|
+
try {
|
|
413
|
+
const data = await client.DeleteLogBackup({})
|
|
394
414
|
expect(data).to.be.ok
|
|
395
415
|
} catch(error) {
|
|
396
416
|
expect(error.requestId).to.be.ok
|
|
@@ -408,9 +428,29 @@ it("postgres.v20170312.DescribeZones", async function () {
|
|
|
408
428
|
}
|
|
409
429
|
})
|
|
410
430
|
|
|
411
|
-
it("postgres.v20170312.
|
|
431
|
+
it("postgres.v20170312.RestartDBInstance", async function () {
|
|
412
432
|
try {
|
|
413
|
-
const data = await client.
|
|
433
|
+
const data = await client.RestartDBInstance({})
|
|
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("postgres.v20170312.DescribeDBInstances", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.DescribeDBInstances({})
|
|
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
|
+
it("postgres.v20170312.OpenDBExtranetAccess", async function () {
|
|
452
|
+
try {
|
|
453
|
+
const data = await client.OpenDBExtranetAccess({})
|
|
414
454
|
expect(data).to.be.ok
|
|
415
455
|
} catch(error) {
|
|
416
456
|
expect(error.requestId).to.be.ok
|
|
@@ -468,6 +508,16 @@ it("postgres.v20170312.ModifyDBInstanceSpec", async function () {
|
|
|
468
508
|
}
|
|
469
509
|
})
|
|
470
510
|
|
|
511
|
+
it("postgres.v20170312.DescribeBaseBackups", async function () {
|
|
512
|
+
try {
|
|
513
|
+
const data = await client.DescribeBaseBackups({})
|
|
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
|
+
|
|
471
521
|
it("postgres.v20170312.DescribeAvailableRecoveryTime", async function () {
|
|
472
522
|
try {
|
|
473
523
|
const data = await client.DescribeAvailableRecoveryTime({})
|
|
@@ -498,6 +548,16 @@ it("postgres.v20170312.DescribeRegions", async function () {
|
|
|
498
548
|
}
|
|
499
549
|
})
|
|
500
550
|
|
|
551
|
+
it("postgres.v20170312.DescribeLogBackups", async function () {
|
|
552
|
+
try {
|
|
553
|
+
const data = await client.DescribeLogBackups({})
|
|
554
|
+
expect(data).to.be.ok
|
|
555
|
+
} catch(error) {
|
|
556
|
+
expect(error.requestId).to.be.ok
|
|
557
|
+
expect(error.code).to.be.ok
|
|
558
|
+
}
|
|
559
|
+
})
|
|
560
|
+
|
|
501
561
|
it("postgres.v20170312.DescribeSlowQueryList", async function () {
|
|
502
562
|
try {
|
|
503
563
|
const data = await client.DescribeSlowQueryList({})
|
|
@@ -508,6 +568,16 @@ it("postgres.v20170312.DescribeSlowQueryList", async function () {
|
|
|
508
568
|
}
|
|
509
569
|
})
|
|
510
570
|
|
|
571
|
+
it("postgres.v20170312.DeleteBaseBackup", async function () {
|
|
572
|
+
try {
|
|
573
|
+
const data = await client.DeleteBaseBackup({})
|
|
574
|
+
expect(data).to.be.ok
|
|
575
|
+
} catch(error) {
|
|
576
|
+
expect(error.requestId).to.be.ok
|
|
577
|
+
expect(error.code).to.be.ok
|
|
578
|
+
}
|
|
579
|
+
})
|
|
580
|
+
|
|
511
581
|
it("postgres.v20170312.ModifyDBInstanceReadOnlyGroup", async function () {
|
|
512
582
|
try {
|
|
513
583
|
const data = await client.ModifyDBInstanceReadOnlyGroup({})
|
|
@@ -528,6 +598,26 @@ it("postgres.v20170312.CloseDBExtranetAccess", async function () {
|
|
|
528
598
|
}
|
|
529
599
|
})
|
|
530
600
|
|
|
601
|
+
it("postgres.v20170312.DescribeCloneDBInstanceSpec", async function () {
|
|
602
|
+
try {
|
|
603
|
+
const data = await client.DescribeCloneDBInstanceSpec({})
|
|
604
|
+
expect(data).to.be.ok
|
|
605
|
+
} catch(error) {
|
|
606
|
+
expect(error.requestId).to.be.ok
|
|
607
|
+
expect(error.code).to.be.ok
|
|
608
|
+
}
|
|
609
|
+
})
|
|
610
|
+
|
|
611
|
+
it("postgres.v20170312.UpgradeDBInstanceKernelVersion", async function () {
|
|
612
|
+
try {
|
|
613
|
+
const data = await client.UpgradeDBInstanceKernelVersion({})
|
|
614
|
+
expect(data).to.be.ok
|
|
615
|
+
} catch(error) {
|
|
616
|
+
expect(error.requestId).to.be.ok
|
|
617
|
+
expect(error.code).to.be.ok
|
|
618
|
+
}
|
|
619
|
+
})
|
|
620
|
+
|
|
531
621
|
it("postgres.v20170312.CloneDBInstance", async function () {
|
|
532
622
|
try {
|
|
533
623
|
const data = await client.CloneDBInstance({})
|
|
@@ -588,6 +678,16 @@ it("postgres.v20170312.DescribeServerlessDBInstances", async function () {
|
|
|
588
678
|
}
|
|
589
679
|
})
|
|
590
680
|
|
|
681
|
+
it("postgres.v20170312.DescribeDBVersions", async function () {
|
|
682
|
+
try {
|
|
683
|
+
const data = await client.DescribeDBVersions({})
|
|
684
|
+
expect(data).to.be.ok
|
|
685
|
+
} catch(error) {
|
|
686
|
+
expect(error.requestId).to.be.ok
|
|
687
|
+
expect(error.code).to.be.ok
|
|
688
|
+
}
|
|
689
|
+
})
|
|
690
|
+
|
|
591
691
|
it("postgres.v20170312.ModifyParameterTemplate", async function () {
|
|
592
692
|
try {
|
|
593
693
|
const data = await client.ModifyParameterTemplate({})
|
|
@@ -598,9 +698,9 @@ it("postgres.v20170312.ModifyParameterTemplate", async function () {
|
|
|
598
698
|
}
|
|
599
699
|
})
|
|
600
700
|
|
|
601
|
-
it("postgres.v20170312.
|
|
701
|
+
it("postgres.v20170312.CreateServerlessDBInstance", async function () {
|
|
602
702
|
try {
|
|
603
|
-
const data = await client.
|
|
703
|
+
const data = await client.CreateServerlessDBInstance({})
|
|
604
704
|
expect(data).to.be.ok
|
|
605
705
|
} catch(error) {
|
|
606
706
|
expect(error.requestId).to.be.ok
|
|
@@ -638,6 +738,16 @@ it("postgres.v20170312.DescribeDatabases", async function () {
|
|
|
638
738
|
}
|
|
639
739
|
})
|
|
640
740
|
|
|
741
|
+
it("postgres.v20170312.ModifyDBInstanceSecurityGroups", async function () {
|
|
742
|
+
try {
|
|
743
|
+
const data = await client.ModifyDBInstanceSecurityGroups({})
|
|
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
|
+
|
|
641
751
|
it("postgres.v20170312.CreateReadOnlyDBInstance", async function () {
|
|
642
752
|
try {
|
|
643
753
|
const data = await client.CreateReadOnlyDBInstance({})
|
|
@@ -648,9 +758,9 @@ it("postgres.v20170312.CreateReadOnlyDBInstance", async function () {
|
|
|
648
758
|
}
|
|
649
759
|
})
|
|
650
760
|
|
|
651
|
-
it("postgres.v20170312.
|
|
761
|
+
it("postgres.v20170312.DescribeDBSlowlogs", async function () {
|
|
652
762
|
try {
|
|
653
|
-
const data = await client.
|
|
763
|
+
const data = await client.DescribeDBSlowlogs({})
|
|
654
764
|
expect(data).to.be.ok
|
|
655
765
|
} catch(error) {
|
|
656
766
|
expect(error.requestId).to.be.ok
|
|
@@ -678,6 +788,16 @@ it("postgres.v20170312.CreateInstances", async function () {
|
|
|
678
788
|
}
|
|
679
789
|
})
|
|
680
790
|
|
|
791
|
+
it("postgres.v20170312.DescribeBackupSummaries", async function () {
|
|
792
|
+
try {
|
|
793
|
+
const data = await client.DescribeBackupSummaries({})
|
|
794
|
+
expect(data).to.be.ok
|
|
795
|
+
} catch(error) {
|
|
796
|
+
expect(error.requestId).to.be.ok
|
|
797
|
+
expect(error.code).to.be.ok
|
|
798
|
+
}
|
|
799
|
+
})
|
|
800
|
+
|
|
681
801
|
it("postgres.v20170312.RemoveDBInstanceFromReadOnlyGroup", async function () {
|
|
682
802
|
try {
|
|
683
803
|
const data = await client.RemoveDBInstanceFromReadOnlyGroup({})
|
|
@@ -708,9 +828,9 @@ it("postgres.v20170312.DescribeParamsEvent", async function () {
|
|
|
708
828
|
}
|
|
709
829
|
})
|
|
710
830
|
|
|
711
|
-
it("postgres.v20170312.
|
|
831
|
+
it("postgres.v20170312.DescribeBackupOverview", async function () {
|
|
712
832
|
try {
|
|
713
|
-
const data = await client.
|
|
833
|
+
const data = await client.DescribeBackupOverview({})
|
|
714
834
|
expect(data).to.be.ok
|
|
715
835
|
} catch(error) {
|
|
716
836
|
expect(error.requestId).to.be.ok
|
|
@@ -718,9 +838,9 @@ it("postgres.v20170312.DescribeDBSlowlogs", async function () {
|
|
|
718
838
|
}
|
|
719
839
|
})
|
|
720
840
|
|
|
721
|
-
it("postgres.v20170312.
|
|
841
|
+
it("postgres.v20170312.DescribeClasses", async function () {
|
|
722
842
|
try {
|
|
723
|
-
const data = await client.
|
|
843
|
+
const data = await client.DescribeClasses({})
|
|
724
844
|
expect(data).to.be.ok
|
|
725
845
|
} catch(error) {
|
|
726
846
|
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.smop.v20201203.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("smop.v20201203.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("smop.v20201203.SubmitTaskEvent", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.SubmitTaskEvent({})
|
|
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
|
+
})
|