tencentcloud-sdk-nodejs 4.0.298 → 4.0.301

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +609 -0
  2. package/SERVICE_CHANGELOG.md +629 -170
  3. package/package.json +1 -1
  4. package/products.md +29 -28
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ame/v20190916/ame_client.ts +1 -1
  7. package/src/services/antiddos/v20200309/antiddos_client.ts +127 -53
  8. package/src/services/antiddos/v20200309/antiddos_models.ts +355 -30
  9. package/src/services/api/v20201106/api_client.ts +13 -0
  10. package/src/services/api/v20201106/api_models.ts +45 -0
  11. package/src/services/apigateway/v20180808/apigateway_models.ts +5 -0
  12. package/src/services/billing/v20180709/billing_models.ts +12 -0
  13. package/src/services/ccc/v20200210/ccc_models.ts +12 -0
  14. package/src/services/cdb/v20170320/cdb_models.ts +6 -0
  15. package/src/services/ckafka/v20190819/ckafka_client.ts +44 -8
  16. package/src/services/ckafka/v20190819/ckafka_models.ts +123 -20
  17. package/src/services/clb/v20180317/clb_client.ts +20 -11
  18. package/src/services/clb/v20180317/clb_models.ts +25 -0
  19. package/src/services/cls/v20201016/cls_client.ts +1 -1
  20. package/src/services/cls/v20201016/cls_models.ts +5 -5
  21. package/src/services/cmq/v20190304/cmq_models.ts +94 -82
  22. package/src/services/cpdp/v20190820/cpdp_client.ts +66 -12
  23. package/src/services/cpdp/v20190820/cpdp_models.ts +957 -407
  24. package/src/services/dbbrain/v20210527/dbbrain_models.ts +5 -0
  25. package/src/services/emr/v20190103/emr_client.ts +1 -0
  26. package/src/services/emr/v20190103/emr_models.ts +46 -0
  27. package/src/services/gme/v20180711/gme_models.ts +10 -10
  28. package/src/services/index.ts +1 -0
  29. package/src/services/ivld/v20210903/ivld_client.ts +78 -4
  30. package/src/services/ivld/v20210903/ivld_models.ts +156 -38
  31. package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -0
  32. package/src/services/mariadb/v20170312/mariadb_models.ts +6 -7
  33. package/src/services/mongodb/v20190725/mongodb_client.ts +72 -60
  34. package/src/services/mongodb/v20190725/mongodb_models.ts +1022 -997
  35. package/src/services/monitor/v20180724/monitor_client.ts +1 -1
  36. package/src/services/monitor/v20180724/monitor_models.ts +8 -1
  37. package/src/services/oceanus/v20190422/oceanus_models.ts +84 -2
  38. package/src/services/postgres/v20170312/postgres_client.ts +85 -37
  39. package/src/services/postgres/v20170312/postgres_models.ts +258 -84
  40. package/src/services/sslpod/v20190605/sslpod_models.ts +7 -1
  41. package/src/services/tcss/v20201101/tcss_models.ts +26 -0
  42. package/src/services/tdcpg/index.ts +5 -0
  43. package/src/services/tdcpg/v20211118/index.ts +6 -0
  44. package/src/services/tdcpg/v20211118/tdcpg_client.ts +345 -0
  45. package/src/services/tdcpg/v20211118/tdcpg_models.ts +1320 -0
  46. package/src/services/tdid/v20210519/tdid_client.ts +64 -14
  47. package/src/services/tdid/v20210519/tdid_models.ts +205 -17
  48. package/src/services/tdmq/v20200217/tdmq_models.ts +41 -1
  49. package/tencentcloud/common/sdk_version.d.ts +1 -1
  50. package/tencentcloud/common/sdk_version.js +1 -1
  51. package/tencentcloud/services/ame/v20190916/ame_client.d.ts +1 -1
  52. package/tencentcloud/services/ame/v20190916/ame_client.js +1 -1
  53. package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +41 -17
  54. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +60 -24
  55. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +302 -28
  56. package/tencentcloud/services/api/v20201106/api_client.d.ts +5 -1
  57. package/tencentcloud/services/api/v20201106/api_client.js +6 -0
  58. package/tencentcloud/services/api/v20201106/api_models.d.ts +39 -0
  59. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +4 -0
  60. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +10 -0
  61. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +10 -0
  62. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +5 -0
  63. package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +15 -3
  64. package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +21 -3
  65. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +108 -19
  66. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +8 -7
  67. package/tencentcloud/services/clb/v20180317/clb_client.js +10 -7
  68. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +22 -0
  69. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  70. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  71. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +5 -5
  72. package/tencentcloud/services/cmq/v20190304/cmq_models.d.ts +89 -79
  73. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +20 -4
  74. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +28 -4
  75. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +868 -393
  76. package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +4 -0
  77. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +39 -0
  78. package/tencentcloud/services/gme/v20180711/gme_models.d.ts +10 -10
  79. package/tencentcloud/services/index.d.ts +1 -0
  80. package/tencentcloud/services/index.js +2 -0
  81. package/tencentcloud/services/ivld/v20210903/ivld_client.d.ts +52 -2
  82. package/tencentcloud/services/ivld/v20210903/ivld_client.js +57 -1
  83. package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +134 -34
  84. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +5 -0
  85. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +5 -6
  86. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +5 -1
  87. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +6 -0
  88. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +965 -943
  89. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
  90. package/tencentcloud/services/monitor/v20180724/monitor_client.js +1 -1
  91. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +7 -1
  92. package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +68 -2
  93. package/tencentcloud/services/postgres/v20170312/postgres_client.d.ts +29 -13
  94. package/tencentcloud/services/postgres/v20170312/postgres_client.js +42 -18
  95. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +219 -71
  96. package/tencentcloud/services/sslpod/v20190605/sslpod_models.d.ts +6 -1
  97. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +21 -0
  98. package/tencentcloud/services/tdcpg/index.d.ts +6 -0
  99. package/tencentcloud/services/tdcpg/index.js +7 -0
  100. package/tencentcloud/services/tdcpg/v20211118/index.d.ts +6 -0
  101. package/tencentcloud/services/tdcpg/v20211118/index.js +9 -0
  102. package/tencentcloud/services/tdcpg/v20211118/tdcpg_client.d.ts +116 -0
  103. package/tencentcloud/services/tdcpg/v20211118/tdcpg_client.js +187 -0
  104. package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.d.ts +1111 -0
  105. package/tencentcloud/services/tdcpg/v20211118/tdcpg_models.js +18 -0
  106. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +22 -5
  107. package/tencentcloud/services/tdid/v20210519/tdid_client.js +31 -6
  108. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +175 -15
  109. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +34 -1
  110. package/test/antiddos.v20200309.test.js +76 -16
  111. package/test/api.v20201106.test.js +10 -0
  112. package/test/ckafka.v20190819.test.js +32 -2
  113. package/test/clb.v20180317.test.js +12 -2
  114. package/test/cpdp.v20190820.test.js +42 -2
  115. package/test/ivld.v20210903.test.js +30 -0
  116. package/test/mongodb.v20190725.test.js +10 -0
  117. package/test/postgres.v20170312.test.js +58 -18
  118. package/test/tdcpg.v20211118.test.js +271 -0
  119. package/test/tdid.v20210519.test.js +44 -4
@@ -128,9 +128,9 @@ it("clb.v20180317.BatchDeregisterTargets", async function () {
128
128
  }
129
129
  })
130
130
 
131
- it("clb.v20180317.RegisterTargetGroupInstances", async function () {
131
+ it("clb.v20180317.ModifyLoadBalancerMixIpTarget", async function () {
132
132
  try {
133
- const data = await client.RegisterTargetGroupInstances({})
133
+ const data = await client.ModifyLoadBalancerMixIpTarget({})
134
134
  expect(data).to.be.ok
135
135
  } catch(error) {
136
136
  expect(error.requestId).to.be.ok
@@ -248,6 +248,16 @@ it("clb.v20180317.ModifyBlockIPList", async function () {
248
248
  }
249
249
  })
250
250
 
251
+ it("clb.v20180317.RegisterTargetGroupInstances", async function () {
252
+ try {
253
+ const data = await client.RegisterTargetGroupInstances({})
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
+
251
261
  it("clb.v20180317.DeregisterTargetsFromClassicalLB", async function () {
252
262
  try {
253
263
  const data = await client.DeregisterTargetsFromClassicalLB({})
@@ -38,6 +38,16 @@ it("cpdp.v20190820.DistributeAccreditQuery", async function () {
38
38
  }
39
39
  })
40
40
 
41
+ it("cpdp.v20190820.QueryMemberTransactionDetails", async function () {
42
+ try {
43
+ const data = await client.QueryMemberTransactionDetails({})
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("cpdp.v20190820.ModifyAgentTaxPaymentInfo", async function () {
42
52
  try {
43
53
  const data = await client.ModifyAgentTaxPaymentInfo({})
@@ -368,6 +378,16 @@ it("cpdp.v20190820.RefundTlinxOrder", async function () {
368
378
  }
369
379
  })
370
380
 
381
+ it("cpdp.v20190820.UnBindAcct", async function () {
382
+ try {
383
+ const data = await client.UnBindAcct({})
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
+
371
391
  it("cpdp.v20190820.DescribeChargeDetail", async function () {
372
392
  try {
373
393
  const data = await client.DescribeChargeDetail({})
@@ -598,9 +618,19 @@ it("cpdp.v20190820.QueryAcctInfo", async function () {
598
618
  }
599
619
  })
600
620
 
601
- it("cpdp.v20190820.UnBindAcct", async function () {
621
+ it("cpdp.v20190820.ApplyReconciliationFile", async function () {
602
622
  try {
603
- const data = await client.UnBindAcct({})
623
+ const data = await client.ApplyReconciliationFile({})
624
+ expect(data).to.be.ok
625
+ } catch(error) {
626
+ expect(error.requestId).to.be.ok
627
+ expect(error.code).to.be.ok
628
+ }
629
+ })
630
+
631
+ it("cpdp.v20190820.QueryReconciliationFileApplyInfo", async function () {
632
+ try {
633
+ const data = await client.QueryReconciliationFileApplyInfo({})
604
634
  expect(data).to.be.ok
605
635
  } catch(error) {
606
636
  expect(error.requestId).to.be.ok
@@ -858,6 +888,16 @@ it("cpdp.v20190820.QueryAcctBinding", async function () {
858
888
  }
859
889
  })
860
890
 
891
+ it("cpdp.v20190820.QueryFundsTransactionDetails", async function () {
892
+ try {
893
+ const data = await client.QueryFundsTransactionDetails({})
894
+ expect(data).to.be.ok
895
+ } catch(error) {
896
+ expect(error.requestId).to.be.ok
897
+ expect(error.code).to.be.ok
898
+ }
899
+ })
900
+
861
901
  it("cpdp.v20190820.ApplyReWithdrawal", async function () {
862
902
  try {
863
903
  const data = await client.ApplyReWithdrawal({})
@@ -58,6 +58,16 @@ it("ivld.v20210903.DeleteCustomPersonImage", async function () {
58
58
  }
59
59
  })
60
60
 
61
+ it("ivld.v20210903.QueryCallback", async function () {
62
+ try {
63
+ const data = await client.QueryCallback({})
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
+
61
71
  it("ivld.v20210903.UpdateCustomCategory", async function () {
62
72
  try {
63
73
  const data = await client.UpdateCustomCategory({})
@@ -188,6 +198,16 @@ it("ivld.v20210903.DeleteMedia", async function () {
188
198
  }
189
199
  })
190
200
 
201
+ it("ivld.v20210903.ModifyCallback", async function () {
202
+ try {
203
+ const data = await client.ModifyCallback({})
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
+
191
211
  it("ivld.v20210903.DescribeTasks", async function () {
192
212
  try {
193
213
  const data = await client.DescribeTasks({})
@@ -218,6 +238,16 @@ it("ivld.v20210903.DescribeCustomCategories", async function () {
218
238
  }
219
239
  })
220
240
 
241
+ it("ivld.v20210903.DeleteTask", async function () {
242
+ try {
243
+ const data = await client.DeleteTask({})
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
+
221
251
  it("ivld.v20210903.DescribeCustomGroup", async function () {
222
252
  try {
223
253
  const data = await client.DescribeCustomGroup({})
@@ -318,4 +318,14 @@ it("mongodb.v20190725.InquirePriceRenewDBInstances", async function () {
318
318
  }
319
319
  })
320
320
 
321
+ it("mongodb.v20190725.ModifyDBInstanceSecurityGroup", async function () {
322
+ try {
323
+ const data = await client.ModifyDBInstanceSecurityGroup({})
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
+
321
331
  })
@@ -18,6 +18,16 @@ const client = new tencentcloud.postgres.v20170312.Client({
18
18
  })
19
19
  describe("postgres.v20170312.test.js", function () {
20
20
 
21
+ it("postgres.v20170312.CreateReadOnlyGroupNetworkAccess", async function () {
22
+ try {
23
+ const data = await client.CreateReadOnlyGroupNetworkAccess({})
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
+
21
31
  it("postgres.v20170312.ModifyDBInstancesProject", async function () {
22
32
  try {
23
33
  const data = await client.ModifyDBInstancesProject({})
@@ -38,6 +48,36 @@ it("postgres.v20170312.DescribeOrders", async function () {
38
48
  }
39
49
  })
40
50
 
51
+ it("postgres.v20170312.DescribeDBInstances", async function () {
52
+ try {
53
+ const data = await client.DescribeDBInstances({})
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("postgres.v20170312.DeleteReadOnlyGroupNetworkAccess", async function () {
62
+ try {
63
+ const data = await client.DeleteReadOnlyGroupNetworkAccess({})
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("postgres.v20170312.UpgradeDBInstance", async function () {
72
+ try {
73
+ const data = await client.UpgradeDBInstance({})
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
+
41
81
  it("postgres.v20170312.ModifyDBInstanceParameters", async function () {
42
82
  try {
43
83
  const data = await client.ModifyDBInstanceParameters({})
@@ -138,9 +178,19 @@ it("postgres.v20170312.InquiryPriceCreateDBInstances", async function () {
138
178
  }
139
179
  })
140
180
 
141
- it("postgres.v20170312.DescribeDBInstanceParameters", async function () {
181
+ it("postgres.v20170312.OpenDBExtranetAccess", async function () {
142
182
  try {
143
- const data = await client.DescribeDBInstanceParameters({})
183
+ const data = await client.OpenDBExtranetAccess({})
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("postgres.v20170312.DeleteDBInstanceNetworkAccess", async function () {
192
+ try {
193
+ const data = await client.DeleteDBInstanceNetworkAccess({})
144
194
  expect(data).to.be.ok
145
195
  } catch(error) {
146
196
  expect(error.requestId).to.be.ok
@@ -228,9 +278,9 @@ it("postgres.v20170312.ModifyDBInstanceName", async function () {
228
278
  }
229
279
  })
230
280
 
231
- it("postgres.v20170312.UpgradeDBInstance", async function () {
281
+ it("postgres.v20170312.InquiryPriceUpgradeDBInstance", async function () {
232
282
  try {
233
- const data = await client.UpgradeDBInstance({})
283
+ const data = await client.InquiryPriceUpgradeDBInstance({})
234
284
  expect(data).to.be.ok
235
285
  } catch(error) {
236
286
  expect(error.requestId).to.be.ok
@@ -268,9 +318,9 @@ it("postgres.v20170312.CreateServerlessDBInstance", async function () {
268
318
  }
269
319
  })
270
320
 
271
- it("postgres.v20170312.DescribeDBInstances", async function () {
321
+ it("postgres.v20170312.DescribeDBInstanceParameters", async function () {
272
322
  try {
273
- const data = await client.DescribeDBInstances({})
323
+ const data = await client.DescribeDBInstanceParameters({})
274
324
  expect(data).to.be.ok
275
325
  } catch(error) {
276
326
  expect(error.requestId).to.be.ok
@@ -298,16 +348,6 @@ it("postgres.v20170312.RestartDBInstance", async function () {
298
348
  }
299
349
  })
300
350
 
301
- it("postgres.v20170312.OpenDBExtranetAccess", async function () {
302
- try {
303
- const data = await client.OpenDBExtranetAccess({})
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
351
  it("postgres.v20170312.IsolateDBInstances", async function () {
312
352
  try {
313
353
  const data = await client.IsolateDBInstances({})
@@ -338,9 +378,9 @@ it("postgres.v20170312.InitDBInstances", async function () {
338
378
  }
339
379
  })
340
380
 
341
- it("postgres.v20170312.InquiryPriceUpgradeDBInstance", async function () {
381
+ it("postgres.v20170312.CreateDBInstanceNetworkAccess", async function () {
342
382
  try {
343
- const data = await client.InquiryPriceUpgradeDBInstance({})
383
+ const data = await client.CreateDBInstanceNetworkAccess({})
344
384
  expect(data).to.be.ok
345
385
  } catch(error) {
346
386
  expect(error.requestId).to.be.ok
@@ -0,0 +1,271 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.tdcpg.v20211118.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("tdcpg.v20211118.test.js", function () {
20
+
21
+ it("tdcpg.v20211118.ModifyClusterInstancesSpec", async function () {
22
+ try {
23
+ const data = await client.ModifyClusterInstancesSpec({})
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("tdcpg.v20211118.CreateCluster", async function () {
32
+ try {
33
+ const data = await client.CreateCluster({})
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("tdcpg.v20211118.ModifyAccountDescription", async function () {
42
+ try {
43
+ const data = await client.ModifyAccountDescription({})
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("tdcpg.v20211118.ModifyClusterName", async function () {
52
+ try {
53
+ const data = await client.ModifyClusterName({})
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("tdcpg.v20211118.TransformClusterPayMode", async function () {
62
+ try {
63
+ const data = await client.TransformClusterPayMode({})
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("tdcpg.v20211118.ModifyClustersAutoRenewFlag", async function () {
72
+ try {
73
+ const data = await client.ModifyClustersAutoRenewFlag({})
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("tdcpg.v20211118.ResetAccountPassword", async function () {
82
+ try {
83
+ const data = await client.ResetAccountPassword({})
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("tdcpg.v20211118.CreateClusterInstances", async function () {
92
+ try {
93
+ const data = await client.CreateClusterInstances({})
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("tdcpg.v20211118.DeleteCluster", async function () {
102
+ try {
103
+ const data = await client.DeleteCluster({})
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("tdcpg.v20211118.DescribeClusterInstances", async function () {
112
+ try {
113
+ const data = await client.DescribeClusterInstances({})
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("tdcpg.v20211118.DescribeClusterRecoveryTimeRange", async function () {
122
+ try {
123
+ const data = await client.DescribeClusterRecoveryTimeRange({})
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("tdcpg.v20211118.IsolateCluster", async function () {
132
+ try {
133
+ const data = await client.IsolateCluster({})
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("tdcpg.v20211118.DescribeClusters", async function () {
142
+ try {
143
+ const data = await client.DescribeClusters({})
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("tdcpg.v20211118.RestartClusterInstances", async function () {
152
+ try {
153
+ const data = await client.RestartClusterInstances({})
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("tdcpg.v20211118.RecoverClusterInstances", async function () {
162
+ try {
163
+ const data = await client.RecoverClusterInstances({})
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("tdcpg.v20211118.ModifyClusterEndpointWanStatus", async function () {
172
+ try {
173
+ const data = await client.ModifyClusterEndpointWanStatus({})
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("tdcpg.v20211118.RecoverCluster", async function () {
182
+ try {
183
+ const data = await client.RecoverCluster({})
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("tdcpg.v20211118.CloneClusterToPointInTime", async function () {
192
+ try {
193
+ const data = await client.CloneClusterToPointInTime({})
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("tdcpg.v20211118.DescribeAccounts", async function () {
202
+ try {
203
+ const data = await client.DescribeAccounts({})
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("tdcpg.v20211118.DescribeResourcesByDealName", async function () {
212
+ try {
213
+ const data = await client.DescribeResourcesByDealName({})
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("tdcpg.v20211118.DeleteClusterInstances", async function () {
222
+ try {
223
+ const data = await client.DeleteClusterInstances({})
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("tdcpg.v20211118.DescribeClusterEndpoints", async function () {
232
+ try {
233
+ const data = await client.DescribeClusterEndpoints({})
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("tdcpg.v20211118.DescribeClusterBackups", async function () {
242
+ try {
243
+ const data = await client.DescribeClusterBackups({})
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("tdcpg.v20211118.RenewCluster", async function () {
252
+ try {
253
+ const data = await client.RenewCluster({})
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("tdcpg.v20211118.IsolateClusterInstances", async function () {
262
+ try {
263
+ const data = await client.IsolateClusterInstances({})
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
+ })
@@ -18,6 +18,46 @@ const client = new tencentcloud.tdid.v20210519.Client({
18
18
  })
19
19
  describe("tdid.v20210519.test.js", function () {
20
20
 
21
+ it("tdid.v20210519.GetDidDocument", async function () {
22
+ try {
23
+ const data = await client.GetDidDocument({})
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("tdid.v20210519.CreateSelectiveCredential", async function () {
32
+ try {
33
+ const data = await client.CreateSelectiveCredential({})
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("tdid.v20210519.CreateCredential", async function () {
42
+ try {
43
+ const data = await client.CreateCredential({})
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("tdid.v20210519.CreateTDidByPublicKey", async function () {
52
+ try {
53
+ const data = await client.CreateTDidByPublicKey({})
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
+
21
61
  it("tdid.v20210519.VerifyCredential", async function () {
22
62
  try {
23
63
  const data = await client.VerifyCredential({})
@@ -38,9 +78,9 @@ it("tdid.v20210519.CreateTDid", async function () {
38
78
  }
39
79
  })
40
80
 
41
- it("tdid.v20210519.CreateSelectiveCredential", async function () {
81
+ it("tdid.v20210519.GetAuthorityIssuer", async function () {
42
82
  try {
43
- const data = await client.CreateSelectiveCredential({})
83
+ const data = await client.GetAuthorityIssuer({})
44
84
  expect(data).to.be.ok
45
85
  } catch(error) {
46
86
  expect(error.requestId).to.be.ok
@@ -48,9 +88,9 @@ it("tdid.v20210519.CreateSelectiveCredential", async function () {
48
88
  }
49
89
  })
50
90
 
51
- it("tdid.v20210519.CreateCredential", async function () {
91
+ it("tdid.v20210519.SetCredentialStatus", async function () {
52
92
  try {
53
- const data = await client.CreateCredential({})
93
+ const data = await client.SetCredentialStatus({})
54
94
  expect(data).to.be.ok
55
95
  } catch(error) {
56
96
  expect(error.requestId).to.be.ok