tencentcloud-sdk-nodejs 4.0.738 → 4.0.740
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 +635 -0
- package/SERVICE_CHANGELOG.md +751 -220
- package/package.json +1 -1
- package/products.md +27 -27
- package/src/common/sdk_version.ts +1 -1
- package/src/services/billing/v20180709/billing_models.ts +10 -6
- package/src/services/cdb/v20170320/cdb_client.ts +168 -54
- package/src/services/cdb/v20170320/cdb_models.ts +721 -136
- package/src/services/cfg/v20210820/cfg_client.ts +32 -7
- package/src/services/cfg/v20210820/cfg_models.ts +108 -3
- package/src/services/cloudstudio/index.ts +0 -2
- package/src/services/config/index.ts +5 -0
- package/src/services/{casb/v20200507/casb_client.ts → config/v20220802/config_client.ts} +30 -19
- package/src/services/config/v20220802/config_models.ts +424 -0
- package/src/services/config/v20220802/index.ts +6 -0
- package/src/services/cvm/v20170312/cvm_client.ts +4 -4
- package/src/services/cvm/v20170312/cvm_models.ts +17 -17
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +6 -6
- package/src/services/dsgc/v20190723/dsgc_models.ts +38 -38
- package/src/services/ess/v20201111/ess_models.ts +8 -7
- package/src/services/essbasic/v20210526/essbasic_models.ts +7 -7
- package/src/services/hai/v20230812/hai_models.ts +9 -4
- package/src/services/index.ts +1 -1
- package/src/services/sqlserver/v20180328/sqlserver_client.ts +539 -291
- package/src/services/sqlserver/v20180328/sqlserver_models.ts +4781 -3669
- package/src/services/tbaas/v20180416/tbaas_client.ts +154 -105
- package/src/services/tbaas/v20180416/tbaas_models.ts +429 -173
- package/src/services/tcss/v20201101/tcss_client.ts +2 -1
- package/src/services/tcss/v20201101/tcss_models.ts +235 -83
- package/src/services/tdmq/v20200217/tdmq_models.ts +42 -32
- package/src/services/teo/v20220901/teo_client.ts +3 -3
- package/src/services/teo/v20220901/teo_models.ts +34 -33
- package/src/services/tke/v20180525/tke_client.ts +38 -1
- package/src/services/tke/v20180525/tke_models.ts +206 -10
- package/src/services/trocket/v20230308/trocket_client.ts +141 -115
- package/src/services/trocket/v20230308/trocket_models.ts +149 -8
- package/src/services/tse/v20201207/tse_client.ts +43 -7
- package/src/services/tse/v20201207/tse_models.ts +137 -39
- package/src/services/vod/v20180717/vod_client.ts +4 -1
- package/src/services/vod/v20180717/vod_models.ts +129 -19
- package/src/services/vrs/v20200824/vrs_models.ts +4 -0
- package/src/services/waf/v20180125/waf_client.ts +1 -1
- package/src/services/waf/v20180125/waf_models.ts +105 -31
- package/src/services/wedata/v20210820/wedata_client.ts +19 -6
- package/src/services/wedata/v20210820/wedata_models.ts +250 -184
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +10 -6
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +59 -23
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +82 -28
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +685 -124
- package/tencentcloud/services/cfg/v20210820/cfg_client.d.ts +11 -3
- package/tencentcloud/services/cfg/v20210820/cfg_client.js +15 -3
- package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +103 -3
- package/tencentcloud/services/cloudstudio/index.d.ts +0 -4
- package/tencentcloud/services/cloudstudio/index.js +0 -2
- package/tencentcloud/services/config/index.d.ts +6 -0
- package/tencentcloud/services/config/index.js +7 -0
- package/tencentcloud/services/config/v20220802/config_client.d.ts +18 -0
- package/tencentcloud/services/{casb/v20200507/casb_client.js → config/v20220802/config_client.js} +11 -12
- package/tencentcloud/services/config/v20220802/config_models.d.ts +397 -0
- package/tencentcloud/services/config/v20220802/index.d.ts +6 -0
- package/tencentcloud/services/config/v20220802/index.js +9 -0
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +4 -4
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +4 -4
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +17 -17
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +6 -6
- package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +38 -38
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +8 -7
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +7 -7
- package/tencentcloud/services/hai/v20230812/hai_models.d.ts +9 -4
- package/tencentcloud/services/index.d.ts +1 -1
- package/tencentcloud/services/index.js +2 -2
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_client.d.ts +97 -17
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_client.js +144 -24
- package/tencentcloud/services/sqlserver/v20180328/sqlserver_models.d.ts +4674 -3610
- package/tencentcloud/services/tbaas/v20180416/tbaas_client.d.ts +51 -35
- package/tencentcloud/services/tbaas/v20180416/tbaas_client.js +75 -51
- package/tencentcloud/services/tbaas/v20180416/tbaas_models.d.ts +412 -165
- package/tencentcloud/services/tcss/v20201101/tcss_client.d.ts +1 -1
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +234 -83
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +42 -32
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +3 -3
- package/tencentcloud/services/teo/v20220901/teo_client.js +3 -3
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +34 -33
- package/tencentcloud/services/tke/v20180525/tke_client.d.ts +13 -1
- package/tencentcloud/services/tke/v20180525/tke_client.js +18 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +199 -10
- package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +55 -47
- package/tencentcloud/services/trocket/v20230308/trocket_client.js +78 -66
- package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +143 -8
- package/tencentcloud/services/tse/v20201207/tse_client.d.ts +15 -3
- package/tencentcloud/services/tse/v20201207/tse_client.js +21 -3
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +131 -39
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +126 -19
- package/tencentcloud/services/vrs/v20200824/vrs_models.d.ts +4 -0
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +1 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +1 -1
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +105 -31
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +5 -1
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +6 -0
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +247 -184
- package/test/cdb.v20170320.test.js +102 -12
- package/test/cfg.v20210820.test.js +22 -2
- package/test/{casb.v20200507.test.js → config.v20220802.test.js} +14 -4
- package/test/sqlserver.v20180328.test.js +216 -16
- package/test/tbaas.v20180416.test.js +74 -34
- package/test/tke.v20180525.test.js +30 -0
- package/test/trocket.v20230308.test.js +58 -38
- package/test/tse.v20201207.test.js +32 -2
- package/test/wedata.v20210820.test.js +10 -0
- package/src/services/casb/index.ts +0 -5
- package/src/services/casb/v20200507/casb_models.ts +0 -70
- package/src/services/casb/v20200507/index.ts +0 -6
- package/src/services/cloudstudio/v20210524/cloudstudio_client.ts +0 -312
- package/src/services/cloudstudio/v20210524/cloudstudio_models.ts +0 -1335
- package/src/services/cloudstudio/v20210524/index.ts +0 -6
- package/tencentcloud/services/casb/index.d.ts +0 -6
- package/tencentcloud/services/casb/index.js +0 -7
- package/tencentcloud/services/casb/v20200507/casb_client.d.ts +0 -21
- package/tencentcloud/services/casb/v20200507/casb_models.d.ts +0 -51
- package/tencentcloud/services/casb/v20200507/index.d.ts +0 -6
- package/tencentcloud/services/casb/v20200507/index.js +0 -9
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.d.ts +0 -99
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.js +0 -164
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.d.ts +0 -1259
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.js +0 -18
- package/tencentcloud/services/cloudstudio/v20210524/index.d.ts +0 -6
- package/tencentcloud/services/cloudstudio/v20210524/index.js +0 -9
- package/test/cloudstudio.v20210524.test.js +0 -241
- /package/tencentcloud/services/{casb/v20200507/casb_models.js → config/v20220802/config_models.js} +0 -0
|
@@ -58,9 +58,9 @@ it("cdb.v20170320.DescribeDBFeatures", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
-
it("cdb.v20170320.
|
|
61
|
+
it("cdb.v20170320.CreateAuditRuleTemplate", async function () {
|
|
62
62
|
try {
|
|
63
|
-
const data = await client.
|
|
63
|
+
const data = await client.CreateAuditRuleTemplate({})
|
|
64
64
|
expect(data).to.be.ok
|
|
65
65
|
} catch(error) {
|
|
66
66
|
expect(error.requestId).to.be.ok
|
|
@@ -178,6 +178,16 @@ it("cdb.v20170320.DescribeCdbZoneConfig", async function () {
|
|
|
178
178
|
}
|
|
179
179
|
})
|
|
180
180
|
|
|
181
|
+
it("cdb.v20170320.CloseAuditService", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.CloseAuditService({})
|
|
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
|
+
|
|
181
191
|
it("cdb.v20170320.StopRollback", async function () {
|
|
182
192
|
try {
|
|
183
193
|
const data = await client.StopRollback({})
|
|
@@ -278,6 +288,16 @@ it("cdb.v20170320.DescribeBackupConfig", async function () {
|
|
|
278
288
|
}
|
|
279
289
|
})
|
|
280
290
|
|
|
291
|
+
it("cdb.v20170320.OpenDBInstanceEncryption", async function () {
|
|
292
|
+
try {
|
|
293
|
+
const data = await client.OpenDBInstanceEncryption({})
|
|
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
|
+
|
|
281
301
|
it("cdb.v20170320.CloseWanService", async function () {
|
|
282
302
|
try {
|
|
283
303
|
const data = await client.CloseWanService({})
|
|
@@ -308,9 +328,9 @@ it("cdb.v20170320.DescribeAuditPolicies", async function () {
|
|
|
308
328
|
}
|
|
309
329
|
})
|
|
310
330
|
|
|
311
|
-
it("cdb.v20170320.
|
|
331
|
+
it("cdb.v20170320.DeleteDatabase", async function () {
|
|
312
332
|
try {
|
|
313
|
-
const data = await client.
|
|
333
|
+
const data = await client.DeleteDatabase({})
|
|
314
334
|
expect(data).to.be.ok
|
|
315
335
|
} catch(error) {
|
|
316
336
|
expect(error.requestId).to.be.ok
|
|
@@ -358,9 +378,9 @@ it("cdb.v20170320.SwitchDBInstanceMasterSlave", async function () {
|
|
|
358
378
|
}
|
|
359
379
|
})
|
|
360
380
|
|
|
361
|
-
it("cdb.v20170320.
|
|
381
|
+
it("cdb.v20170320.CreateDatabase", async function () {
|
|
362
382
|
try {
|
|
363
|
-
const data = await client.
|
|
383
|
+
const data = await client.CreateDatabase({})
|
|
364
384
|
expect(data).to.be.ok
|
|
365
385
|
} catch(error) {
|
|
366
386
|
expect(error.requestId).to.be.ok
|
|
@@ -408,6 +428,16 @@ it("cdb.v20170320.DescribeAccountPrivileges", async function () {
|
|
|
408
428
|
}
|
|
409
429
|
})
|
|
410
430
|
|
|
431
|
+
it("cdb.v20170320.DescribeDataBackupOverview", async function () {
|
|
432
|
+
try {
|
|
433
|
+
const data = await client.DescribeDataBackupOverview({})
|
|
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
|
+
|
|
411
441
|
it("cdb.v20170320.ReleaseIsolatedDBInstances", async function () {
|
|
412
442
|
try {
|
|
413
443
|
const data = await client.ReleaseIsolatedDBInstances({})
|
|
@@ -478,9 +508,9 @@ it("cdb.v20170320.SwitchForUpgrade", async function () {
|
|
|
478
508
|
}
|
|
479
509
|
})
|
|
480
510
|
|
|
481
|
-
it("cdb.v20170320.
|
|
511
|
+
it("cdb.v20170320.DeleteAuditRuleTemplates", async function () {
|
|
482
512
|
try {
|
|
483
|
-
const data = await client.
|
|
513
|
+
const data = await client.DeleteAuditRuleTemplates({})
|
|
484
514
|
expect(data).to.be.ok
|
|
485
515
|
} catch(error) {
|
|
486
516
|
expect(error.requestId).to.be.ok
|
|
@@ -498,6 +528,16 @@ it("cdb.v20170320.DescribeBackups", async function () {
|
|
|
498
528
|
}
|
|
499
529
|
})
|
|
500
530
|
|
|
531
|
+
it("cdb.v20170320.DescribeCdbProxyInfo", async function () {
|
|
532
|
+
try {
|
|
533
|
+
const data = await client.DescribeCdbProxyInfo({})
|
|
534
|
+
expect(data).to.be.ok
|
|
535
|
+
} catch(error) {
|
|
536
|
+
expect(error.requestId).to.be.ok
|
|
537
|
+
expect(error.code).to.be.ok
|
|
538
|
+
}
|
|
539
|
+
})
|
|
540
|
+
|
|
501
541
|
it("cdb.v20170320.CreateParamTemplate", async function () {
|
|
502
542
|
try {
|
|
503
543
|
const data = await client.CreateParamTemplate({})
|
|
@@ -588,9 +628,9 @@ it("cdb.v20170320.CreateCdbProxyAddress", async function () {
|
|
|
588
628
|
}
|
|
589
629
|
})
|
|
590
630
|
|
|
591
|
-
it("cdb.v20170320.
|
|
631
|
+
it("cdb.v20170320.DeleteAuditPolicy", async function () {
|
|
592
632
|
try {
|
|
593
|
-
const data = await client.
|
|
633
|
+
const data = await client.DeleteAuditPolicy({})
|
|
594
634
|
expect(data).to.be.ok
|
|
595
635
|
} catch(error) {
|
|
596
636
|
expect(error.requestId).to.be.ok
|
|
@@ -918,9 +958,9 @@ it("cdb.v20170320.AdjustCdbProxyAddress", async function () {
|
|
|
918
958
|
}
|
|
919
959
|
})
|
|
920
960
|
|
|
921
|
-
it("cdb.v20170320.
|
|
961
|
+
it("cdb.v20170320.DescribeAuditInstanceList", async function () {
|
|
922
962
|
try {
|
|
923
|
-
const data = await client.
|
|
963
|
+
const data = await client.DescribeAuditInstanceList({})
|
|
924
964
|
expect(data).to.be.ok
|
|
925
965
|
} catch(error) {
|
|
926
966
|
expect(error.requestId).to.be.ok
|
|
@@ -1158,6 +1198,16 @@ it("cdb.v20170320.ResetRootAccount", async function () {
|
|
|
1158
1198
|
}
|
|
1159
1199
|
})
|
|
1160
1200
|
|
|
1201
|
+
it("cdb.v20170320.ModifyAuditRuleTemplates", async function () {
|
|
1202
|
+
try {
|
|
1203
|
+
const data = await client.ModifyAuditRuleTemplates({})
|
|
1204
|
+
expect(data).to.be.ok
|
|
1205
|
+
} catch(error) {
|
|
1206
|
+
expect(error.requestId).to.be.ok
|
|
1207
|
+
expect(error.code).to.be.ok
|
|
1208
|
+
}
|
|
1209
|
+
})
|
|
1210
|
+
|
|
1161
1211
|
it("cdb.v20170320.ModifyAccountPassword", async function () {
|
|
1162
1212
|
try {
|
|
1163
1213
|
const data = await client.ModifyAccountPassword({})
|
|
@@ -1218,6 +1268,16 @@ it("cdb.v20170320.DeleteAuditLogFile", async function () {
|
|
|
1218
1268
|
}
|
|
1219
1269
|
})
|
|
1220
1270
|
|
|
1271
|
+
it("cdb.v20170320.DescribeAuditRuleTemplates", async function () {
|
|
1272
|
+
try {
|
|
1273
|
+
const data = await client.DescribeAuditRuleTemplates({})
|
|
1274
|
+
expect(data).to.be.ok
|
|
1275
|
+
} catch(error) {
|
|
1276
|
+
expect(error.requestId).to.be.ok
|
|
1277
|
+
expect(error.code).to.be.ok
|
|
1278
|
+
}
|
|
1279
|
+
})
|
|
1280
|
+
|
|
1221
1281
|
it("cdb.v20170320.ModifyBackupConfig", async function () {
|
|
1222
1282
|
try {
|
|
1223
1283
|
const data = await client.ModifyBackupConfig({})
|
|
@@ -1278,6 +1338,16 @@ it("cdb.v20170320.DescribeDBInstanceLogToCLS", async function () {
|
|
|
1278
1338
|
}
|
|
1279
1339
|
})
|
|
1280
1340
|
|
|
1341
|
+
it("cdb.v20170320.DescribeAuditRuleTemplateModifyHistory", async function () {
|
|
1342
|
+
try {
|
|
1343
|
+
const data = await client.DescribeAuditRuleTemplateModifyHistory({})
|
|
1344
|
+
expect(data).to.be.ok
|
|
1345
|
+
} catch(error) {
|
|
1346
|
+
expect(error.requestId).to.be.ok
|
|
1347
|
+
expect(error.code).to.be.ok
|
|
1348
|
+
}
|
|
1349
|
+
})
|
|
1350
|
+
|
|
1281
1351
|
it("cdb.v20170320.CreateCdbProxy", async function () {
|
|
1282
1352
|
try {
|
|
1283
1353
|
const data = await client.CreateCdbProxy({})
|
|
@@ -1308,6 +1378,16 @@ it("cdb.v20170320.SwitchCDBProxy", async function () {
|
|
|
1308
1378
|
}
|
|
1309
1379
|
})
|
|
1310
1380
|
|
|
1381
|
+
it("cdb.v20170320.ModifyAuditService", async function () {
|
|
1382
|
+
try {
|
|
1383
|
+
const data = await client.ModifyAuditService({})
|
|
1384
|
+
expect(data).to.be.ok
|
|
1385
|
+
} catch(error) {
|
|
1386
|
+
expect(error.requestId).to.be.ok
|
|
1387
|
+
expect(error.code).to.be.ok
|
|
1388
|
+
}
|
|
1389
|
+
})
|
|
1390
|
+
|
|
1311
1391
|
it("cdb.v20170320.ModifyCdbProxyParam", async function () {
|
|
1312
1392
|
try {
|
|
1313
1393
|
const data = await client.ModifyCdbProxyParam({})
|
|
@@ -1408,6 +1488,16 @@ it("cdb.v20170320.DescribeSupportedPrivileges", async function () {
|
|
|
1408
1488
|
}
|
|
1409
1489
|
})
|
|
1410
1490
|
|
|
1491
|
+
it("cdb.v20170320.DeleteParamTemplate", async function () {
|
|
1492
|
+
try {
|
|
1493
|
+
const data = await client.DeleteParamTemplate({})
|
|
1494
|
+
expect(data).to.be.ok
|
|
1495
|
+
} catch(error) {
|
|
1496
|
+
expect(error.requestId).to.be.ok
|
|
1497
|
+
expect(error.code).to.be.ok
|
|
1498
|
+
}
|
|
1499
|
+
})
|
|
1500
|
+
|
|
1411
1501
|
it("cdb.v20170320.UpgradeCDBProxyVersion", async function () {
|
|
1412
1502
|
try {
|
|
1413
1503
|
const data = await client.UpgradeCDBProxyVersion({})
|
|
@@ -68,6 +68,16 @@ it("cfg.v20210820.ModifyTaskRunStatus", async function () {
|
|
|
68
68
|
}
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
+
it("cfg.v20210820.TriggerPolicy", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.TriggerPolicy({})
|
|
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
|
+
|
|
71
81
|
it("cfg.v20210820.DescribeTaskList", async function () {
|
|
72
82
|
try {
|
|
73
83
|
const data = await client.DescribeTaskList({})
|
|
@@ -98,6 +108,16 @@ it("cfg.v20210820.DescribeTask", async function () {
|
|
|
98
108
|
}
|
|
99
109
|
})
|
|
100
110
|
|
|
111
|
+
it("cfg.v20210820.DeleteTask", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.DeleteTask({})
|
|
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
|
+
|
|
101
121
|
it("cfg.v20210820.ExecuteTask", async function () {
|
|
102
122
|
try {
|
|
103
123
|
const data = await client.ExecuteTask({})
|
|
@@ -108,9 +128,9 @@ it("cfg.v20210820.ExecuteTask", async function () {
|
|
|
108
128
|
}
|
|
109
129
|
})
|
|
110
130
|
|
|
111
|
-
it("cfg.v20210820.
|
|
131
|
+
it("cfg.v20210820.DescribeTaskPolicyTriggerLog", async function () {
|
|
112
132
|
try {
|
|
113
|
-
const data = await client.
|
|
133
|
+
const data = await client.DescribeTaskPolicyTriggerLog({})
|
|
114
134
|
expect(data).to.be.ok
|
|
115
135
|
} catch(error) {
|
|
116
136
|
expect(error.requestId).to.be.ok
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
const expect = require("chai").expect
|
|
3
3
|
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
-
const client = new tencentcloud.
|
|
4
|
+
const client = new tencentcloud.config.v20220802.Client({
|
|
5
5
|
credential: {
|
|
6
6
|
secretId: process.env.secretId,
|
|
7
7
|
secretKey: process.env.secretKey,
|
|
@@ -16,11 +16,21 @@ const client = new tencentcloud.casb.v20200507.Client({
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
})
|
|
19
|
-
describe("
|
|
19
|
+
describe("config.v20220802.test.js", function () {
|
|
20
20
|
|
|
21
|
-
it("
|
|
21
|
+
it("config.v20220802.ListConfigRules", async function () {
|
|
22
22
|
try {
|
|
23
|
-
const data = await client.
|
|
23
|
+
const data = await client.ListConfigRules({})
|
|
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("config.v20220802.ListAggregateConfigRules", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ListAggregateConfigRules({})
|
|
24
34
|
expect(data).to.be.ok
|
|
25
35
|
} catch(error) {
|
|
26
36
|
expect(error.requestId).to.be.ok
|
|
@@ -18,9 +18,9 @@ const client = new tencentcloud.sqlserver.v20180328.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("sqlserver.v20180328.test.js", function () {
|
|
20
20
|
|
|
21
|
-
it("sqlserver.v20180328.
|
|
21
|
+
it("sqlserver.v20180328.ModifyAccountPrivilege", async function () {
|
|
22
22
|
try {
|
|
23
|
-
const data = await client.
|
|
23
|
+
const data = await client.ModifyAccountPrivilege({})
|
|
24
24
|
expect(data).to.be.ok
|
|
25
25
|
} catch(error) {
|
|
26
26
|
expect(error.requestId).to.be.ok
|
|
@@ -38,6 +38,26 @@ it("sqlserver.v20180328.RecycleReadOnlyGroup", async function () {
|
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
+
it("sqlserver.v20180328.ModifyBackupName", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ModifyBackupName({})
|
|
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("sqlserver.v20180328.DescribeSpecSellStatus", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeSpecSellStatus({})
|
|
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
|
+
|
|
41
61
|
it("sqlserver.v20180328.StartIncrementalMigration", async function () {
|
|
42
62
|
try {
|
|
43
63
|
const data = await client.StartIncrementalMigration({})
|
|
@@ -68,6 +88,16 @@ it("sqlserver.v20180328.ModifyAccountRemark", async function () {
|
|
|
68
88
|
}
|
|
69
89
|
})
|
|
70
90
|
|
|
91
|
+
it("sqlserver.v20180328.ModifyPublishSubscribe", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.ModifyPublishSubscribe({})
|
|
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
|
+
|
|
71
101
|
it("sqlserver.v20180328.ModifyDBInstanceName", async function () {
|
|
72
102
|
try {
|
|
73
103
|
const data = await client.ModifyDBInstanceName({})
|
|
@@ -118,6 +148,16 @@ it("sqlserver.v20180328.DeleteIncrementalMigration", async function () {
|
|
|
118
148
|
}
|
|
119
149
|
})
|
|
120
150
|
|
|
151
|
+
it("sqlserver.v20180328.RunMigration", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.RunMigration({})
|
|
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
|
+
|
|
121
161
|
it("sqlserver.v20180328.ModifyDBInstanceNetwork", async function () {
|
|
122
162
|
try {
|
|
123
163
|
const data = await client.ModifyDBInstanceNetwork({})
|
|
@@ -128,6 +168,16 @@ it("sqlserver.v20180328.ModifyDBInstanceNetwork", async function () {
|
|
|
128
168
|
}
|
|
129
169
|
})
|
|
130
170
|
|
|
171
|
+
it("sqlserver.v20180328.CreateCloudReadOnlyDBInstances", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.CreateCloudReadOnlyDBInstances({})
|
|
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
|
+
|
|
131
181
|
it("sqlserver.v20180328.ModifyDBInstanceSecurityGroups", async function () {
|
|
132
182
|
try {
|
|
133
183
|
const data = await client.ModifyDBInstanceSecurityGroups({})
|
|
@@ -268,6 +318,16 @@ it("sqlserver.v20180328.DescribeProductConfig", async function () {
|
|
|
268
318
|
}
|
|
269
319
|
})
|
|
270
320
|
|
|
321
|
+
it("sqlserver.v20180328.DescribeUpgradeInstanceCheck", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.DescribeUpgradeInstanceCheck({})
|
|
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
|
+
|
|
271
331
|
it("sqlserver.v20180328.DisassociateSecurityGroups", async function () {
|
|
272
332
|
try {
|
|
273
333
|
const data = await client.DisassociateSecurityGroups({})
|
|
@@ -288,6 +348,16 @@ it("sqlserver.v20180328.TerminateDBInstance", async function () {
|
|
|
288
348
|
}
|
|
289
349
|
})
|
|
290
350
|
|
|
351
|
+
it("sqlserver.v20180328.ModifyDBInstanceNote", async function () {
|
|
352
|
+
try {
|
|
353
|
+
const data = await client.ModifyDBInstanceNote({})
|
|
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
|
+
|
|
291
361
|
it("sqlserver.v20180328.DeleteDBInstance", async function () {
|
|
292
362
|
try {
|
|
293
363
|
const data = await client.DeleteDBInstance({})
|
|
@@ -398,6 +468,16 @@ it("sqlserver.v20180328.CreateBackup", async function () {
|
|
|
398
468
|
}
|
|
399
469
|
})
|
|
400
470
|
|
|
471
|
+
it("sqlserver.v20180328.DescribeDBRestoreTime", async function () {
|
|
472
|
+
try {
|
|
473
|
+
const data = await client.DescribeDBRestoreTime({})
|
|
474
|
+
expect(data).to.be.ok
|
|
475
|
+
} catch(error) {
|
|
476
|
+
expect(error.requestId).to.be.ok
|
|
477
|
+
expect(error.code).to.be.ok
|
|
478
|
+
}
|
|
479
|
+
})
|
|
480
|
+
|
|
401
481
|
it("sqlserver.v20180328.DescribeBackupMigration", async function () {
|
|
402
482
|
try {
|
|
403
483
|
const data = await client.DescribeBackupMigration({})
|
|
@@ -408,6 +488,16 @@ it("sqlserver.v20180328.DescribeBackupMigration", async function () {
|
|
|
408
488
|
}
|
|
409
489
|
})
|
|
410
490
|
|
|
491
|
+
it("sqlserver.v20180328.BalanceReadOnlyGroup", async function () {
|
|
492
|
+
try {
|
|
493
|
+
const data = await client.BalanceReadOnlyGroup({})
|
|
494
|
+
expect(data).to.be.ok
|
|
495
|
+
} catch(error) {
|
|
496
|
+
expect(error.requestId).to.be.ok
|
|
497
|
+
expect(error.code).to.be.ok
|
|
498
|
+
}
|
|
499
|
+
})
|
|
500
|
+
|
|
411
501
|
it("sqlserver.v20180328.ModifyDatabaseCDC", async function () {
|
|
412
502
|
try {
|
|
413
503
|
const data = await client.ModifyDatabaseCDC({})
|
|
@@ -418,9 +508,19 @@ it("sqlserver.v20180328.ModifyDatabaseCDC", async function () {
|
|
|
418
508
|
}
|
|
419
509
|
})
|
|
420
510
|
|
|
421
|
-
it("sqlserver.v20180328.
|
|
511
|
+
it("sqlserver.v20180328.DeleteRestoreTask", async function () {
|
|
422
512
|
try {
|
|
423
|
-
const data = await client.
|
|
513
|
+
const data = await client.DeleteRestoreTask({})
|
|
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
|
+
it("sqlserver.v20180328.CompleteMigration", async function () {
|
|
522
|
+
try {
|
|
523
|
+
const data = await client.CompleteMigration({})
|
|
424
524
|
expect(data).to.be.ok
|
|
425
525
|
} catch(error) {
|
|
426
526
|
expect(error.requestId).to.be.ok
|
|
@@ -468,6 +568,16 @@ it("sqlserver.v20180328.DescribeRegions", async function () {
|
|
|
468
568
|
}
|
|
469
569
|
})
|
|
470
570
|
|
|
571
|
+
it("sqlserver.v20180328.DescribeRestoreTask", async function () {
|
|
572
|
+
try {
|
|
573
|
+
const data = await client.DescribeRestoreTask({})
|
|
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
|
+
|
|
471
581
|
it("sqlserver.v20180328.DescribeInstanceParams", async function () {
|
|
472
582
|
try {
|
|
473
583
|
const data = await client.DescribeInstanceParams({})
|
|
@@ -478,6 +588,16 @@ it("sqlserver.v20180328.DescribeInstanceParams", async function () {
|
|
|
478
588
|
}
|
|
479
589
|
})
|
|
480
590
|
|
|
591
|
+
it("sqlserver.v20180328.ModifyCloseWanIp", async function () {
|
|
592
|
+
try {
|
|
593
|
+
const data = await client.ModifyCloseWanIp({})
|
|
594
|
+
expect(data).to.be.ok
|
|
595
|
+
} catch(error) {
|
|
596
|
+
expect(error.requestId).to.be.ok
|
|
597
|
+
expect(error.code).to.be.ok
|
|
598
|
+
}
|
|
599
|
+
})
|
|
600
|
+
|
|
481
601
|
it("sqlserver.v20180328.CompleteExpansion", async function () {
|
|
482
602
|
try {
|
|
483
603
|
const data = await client.CompleteExpansion({})
|
|
@@ -518,9 +638,9 @@ it("sqlserver.v20180328.CreateCloudDBInstances", async function () {
|
|
|
518
638
|
}
|
|
519
639
|
})
|
|
520
640
|
|
|
521
|
-
it("sqlserver.v20180328.
|
|
641
|
+
it("sqlserver.v20180328.DescribeCollationTimeZone", async function () {
|
|
522
642
|
try {
|
|
523
|
-
const data = await client.
|
|
643
|
+
const data = await client.DescribeCollationTimeZone({})
|
|
524
644
|
expect(data).to.be.ok
|
|
525
645
|
} catch(error) {
|
|
526
646
|
expect(error.requestId).to.be.ok
|
|
@@ -548,6 +668,16 @@ it("sqlserver.v20180328.CreateBusinessIntelligenceFile", async function () {
|
|
|
548
668
|
}
|
|
549
669
|
})
|
|
550
670
|
|
|
671
|
+
it("sqlserver.v20180328.DescribeInstanceTasks", async function () {
|
|
672
|
+
try {
|
|
673
|
+
const data = await client.DescribeInstanceTasks({})
|
|
674
|
+
expect(data).to.be.ok
|
|
675
|
+
} catch(error) {
|
|
676
|
+
expect(error.requestId).to.be.ok
|
|
677
|
+
expect(error.code).to.be.ok
|
|
678
|
+
}
|
|
679
|
+
})
|
|
680
|
+
|
|
551
681
|
it("sqlserver.v20180328.DescribeHASwitchLog", async function () {
|
|
552
682
|
try {
|
|
553
683
|
const data = await client.DescribeHASwitchLog({})
|
|
@@ -818,9 +948,9 @@ it("sqlserver.v20180328.ModifyInstanceEncryptAttributes", async function () {
|
|
|
818
948
|
}
|
|
819
949
|
})
|
|
820
950
|
|
|
821
|
-
it("sqlserver.v20180328.
|
|
951
|
+
it("sqlserver.v20180328.DescribeDatabaseNames", async function () {
|
|
822
952
|
try {
|
|
823
|
-
const data = await client.
|
|
953
|
+
const data = await client.DescribeDatabaseNames({})
|
|
824
954
|
expect(data).to.be.ok
|
|
825
955
|
} catch(error) {
|
|
826
956
|
expect(error.requestId).to.be.ok
|
|
@@ -868,6 +998,16 @@ it("sqlserver.v20180328.ModifyDBEncryptAttributes", async function () {
|
|
|
868
998
|
}
|
|
869
999
|
})
|
|
870
1000
|
|
|
1001
|
+
it("sqlserver.v20180328.DescribeCrossRegions", async function () {
|
|
1002
|
+
try {
|
|
1003
|
+
const data = await client.DescribeCrossRegions({})
|
|
1004
|
+
expect(data).to.be.ok
|
|
1005
|
+
} catch(error) {
|
|
1006
|
+
expect(error.requestId).to.be.ok
|
|
1007
|
+
expect(error.code).to.be.ok
|
|
1008
|
+
}
|
|
1009
|
+
})
|
|
1010
|
+
|
|
871
1011
|
it("sqlserver.v20180328.RemoveBackups", async function () {
|
|
872
1012
|
try {
|
|
873
1013
|
const data = await client.RemoveBackups({})
|
|
@@ -898,6 +1038,16 @@ it("sqlserver.v20180328.DescribeDBInstanceInter", async function () {
|
|
|
898
1038
|
}
|
|
899
1039
|
})
|
|
900
1040
|
|
|
1041
|
+
it("sqlserver.v20180328.RecycleDBInstance", async function () {
|
|
1042
|
+
try {
|
|
1043
|
+
const data = await client.RecycleDBInstance({})
|
|
1044
|
+
expect(data).to.be.ok
|
|
1045
|
+
} catch(error) {
|
|
1046
|
+
expect(error.requestId).to.be.ok
|
|
1047
|
+
expect(error.code).to.be.ok
|
|
1048
|
+
}
|
|
1049
|
+
})
|
|
1050
|
+
|
|
901
1051
|
it("sqlserver.v20180328.CreateReadOnlyDBInstances", async function () {
|
|
902
1052
|
try {
|
|
903
1053
|
const data = await client.CreateReadOnlyDBInstances({})
|
|
@@ -918,9 +1068,9 @@ it("sqlserver.v20180328.SwitchCloudInstanceHA", async function () {
|
|
|
918
1068
|
}
|
|
919
1069
|
})
|
|
920
1070
|
|
|
921
|
-
it("sqlserver.v20180328.
|
|
1071
|
+
it("sqlserver.v20180328.DescribeInquiryPriceParameter", async function () {
|
|
922
1072
|
try {
|
|
923
|
-
const data = await client.
|
|
1073
|
+
const data = await client.DescribeInquiryPriceParameter({})
|
|
924
1074
|
expect(data).to.be.ok
|
|
925
1075
|
} catch(error) {
|
|
926
1076
|
expect(error.requestId).to.be.ok
|
|
@@ -968,9 +1118,9 @@ it("sqlserver.v20180328.DescribeOrders", async function () {
|
|
|
968
1118
|
}
|
|
969
1119
|
})
|
|
970
1120
|
|
|
971
|
-
it("sqlserver.v20180328.
|
|
1121
|
+
it("sqlserver.v20180328.DescribeInstanceTradeParameter", async function () {
|
|
972
1122
|
try {
|
|
973
|
-
const data = await client.
|
|
1123
|
+
const data = await client.DescribeInstanceTradeParameter({})
|
|
974
1124
|
expect(data).to.be.ok
|
|
975
1125
|
} catch(error) {
|
|
976
1126
|
expect(error.requestId).to.be.ok
|
|
@@ -998,6 +1148,16 @@ it("sqlserver.v20180328.CloneDB", async function () {
|
|
|
998
1148
|
}
|
|
999
1149
|
})
|
|
1000
1150
|
|
|
1151
|
+
it("sqlserver.v20180328.RestoreInstance", async function () {
|
|
1152
|
+
try {
|
|
1153
|
+
const data = await client.RestoreInstance({})
|
|
1154
|
+
expect(data).to.be.ok
|
|
1155
|
+
} catch(error) {
|
|
1156
|
+
expect(error.requestId).to.be.ok
|
|
1157
|
+
expect(error.code).to.be.ok
|
|
1158
|
+
}
|
|
1159
|
+
})
|
|
1160
|
+
|
|
1001
1161
|
it("sqlserver.v20180328.ModifyDBInstanceProject", async function () {
|
|
1002
1162
|
try {
|
|
1003
1163
|
const data = await client.ModifyDBInstanceProject({})
|
|
@@ -1048,9 +1208,19 @@ it("sqlserver.v20180328.DescribeDBsNormal", async function () {
|
|
|
1048
1208
|
}
|
|
1049
1209
|
})
|
|
1050
1210
|
|
|
1051
|
-
it("sqlserver.v20180328.
|
|
1211
|
+
it("sqlserver.v20180328.ModifyOpenWanIp", async function () {
|
|
1052
1212
|
try {
|
|
1053
|
-
const data = await client.
|
|
1213
|
+
const data = await client.ModifyOpenWanIp({})
|
|
1214
|
+
expect(data).to.be.ok
|
|
1215
|
+
} catch(error) {
|
|
1216
|
+
expect(error.requestId).to.be.ok
|
|
1217
|
+
expect(error.code).to.be.ok
|
|
1218
|
+
}
|
|
1219
|
+
})
|
|
1220
|
+
|
|
1221
|
+
it("sqlserver.v20180328.DescribeMigrations", async function () {
|
|
1222
|
+
try {
|
|
1223
|
+
const data = await client.DescribeMigrations({})
|
|
1054
1224
|
expect(data).to.be.ok
|
|
1055
1225
|
} catch(error) {
|
|
1056
1226
|
expect(error.requestId).to.be.ok
|
|
@@ -1118,6 +1288,16 @@ it("sqlserver.v20180328.InquiryPriceUpgradeDBInstance", async function () {
|
|
|
1118
1288
|
}
|
|
1119
1289
|
})
|
|
1120
1290
|
|
|
1291
|
+
it("sqlserver.v20180328.DescribeReadOnlyGroupAutoWeight", async function () {
|
|
1292
|
+
try {
|
|
1293
|
+
const data = await client.DescribeReadOnlyGroupAutoWeight({})
|
|
1294
|
+
expect(data).to.be.ok
|
|
1295
|
+
} catch(error) {
|
|
1296
|
+
expect(error.requestId).to.be.ok
|
|
1297
|
+
expect(error.code).to.be.ok
|
|
1298
|
+
}
|
|
1299
|
+
})
|
|
1300
|
+
|
|
1121
1301
|
it("sqlserver.v20180328.InquiryPriceRenewDBInstance", async function () {
|
|
1122
1302
|
try {
|
|
1123
1303
|
const data = await client.InquiryPriceRenewDBInstance({})
|
|
@@ -1148,9 +1328,29 @@ it("sqlserver.v20180328.ModifyBackupMigration", async function () {
|
|
|
1148
1328
|
}
|
|
1149
1329
|
})
|
|
1150
1330
|
|
|
1151
|
-
it("sqlserver.v20180328.
|
|
1331
|
+
it("sqlserver.v20180328.DescribeDBPrivilegeByAccount", async function () {
|
|
1152
1332
|
try {
|
|
1153
|
-
const data = await client.
|
|
1333
|
+
const data = await client.DescribeDBPrivilegeByAccount({})
|
|
1334
|
+
expect(data).to.be.ok
|
|
1335
|
+
} catch(error) {
|
|
1336
|
+
expect(error.requestId).to.be.ok
|
|
1337
|
+
expect(error.code).to.be.ok
|
|
1338
|
+
}
|
|
1339
|
+
})
|
|
1340
|
+
|
|
1341
|
+
it("sqlserver.v20180328.DescribeAccountPrivilegeByDB", async function () {
|
|
1342
|
+
try {
|
|
1343
|
+
const data = await client.DescribeAccountPrivilegeByDB({})
|
|
1344
|
+
expect(data).to.be.ok
|
|
1345
|
+
} catch(error) {
|
|
1346
|
+
expect(error.requestId).to.be.ok
|
|
1347
|
+
expect(error.code).to.be.ok
|
|
1348
|
+
}
|
|
1349
|
+
})
|
|
1350
|
+
|
|
1351
|
+
it("sqlserver.v20180328.DescribeProductSpec", async function () {
|
|
1352
|
+
try {
|
|
1353
|
+
const data = await client.DescribeProductSpec({})
|
|
1154
1354
|
expect(data).to.be.ok
|
|
1155
1355
|
} catch(error) {
|
|
1156
1356
|
expect(error.requestId).to.be.ok
|