tencentcloud-sdk-nodejs 4.0.317 → 4.0.320

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 (178) hide show
  1. package/CHANGELOG.md +318 -0
  2. package/SERVICE_CHANGELOG.md +673 -292
  3. package/package.json +1 -1
  4. package/products.md +170 -168
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/ame/v20190916/ame_models.ts +14 -4
  7. package/src/services/ams/v20201229/ams_models.ts +14 -0
  8. package/src/services/apm/v20210622/apm_models.ts +5 -0
  9. package/src/services/as/v20180419/as_client.ts +19 -20
  10. package/src/services/as/v20180419/as_models.ts +38 -97
  11. package/src/services/batch/v20170312/batch_models.ts +96 -71
  12. package/src/services/billing/v20180709/billing_models.ts +13 -2
  13. package/src/services/bsca/index.ts +5 -0
  14. package/src/services/bsca/v20210811/bsca_client.ts +93 -0
  15. package/src/services/bsca/v20210811/bsca_models.ts +636 -0
  16. package/src/services/bsca/v20210811/index.ts +6 -0
  17. package/src/services/cam/v20190116/cam_client.ts +59 -11
  18. package/src/services/cam/v20190116/cam_models.ts +275 -68
  19. package/src/services/cat/v20180409/cat_client.ts +12 -0
  20. package/src/services/cat/v20180409/cat_models.ts +50 -0
  21. package/src/services/cdb/v20170320/cdb_models.ts +15 -5
  22. package/src/services/cdn/v20180606/cdn_client.ts +2 -2
  23. package/src/services/cdn/v20180606/cdn_models.ts +22 -16
  24. package/src/services/cfg/index.ts +5 -0
  25. package/src/services/cfg/v20210820/cfg_client.ts +169 -0
  26. package/src/services/cfg/v20210820/cfg_models.ts +1227 -0
  27. package/src/services/cfg/v20210820/index.ts +6 -0
  28. package/src/services/cls/v20201016/cls_client.ts +1 -1
  29. package/src/services/cls/v20201016/cls_models.ts +2 -2
  30. package/src/services/cvm/v20170312/cvm_models.ts +3 -2
  31. package/src/services/cwp/v20180228/cwp_models.ts +17 -9
  32. package/src/services/dcdb/v20180411/dcdb_models.ts +9 -9
  33. package/src/services/ess/v20201111/ess_models.ts +7 -3
  34. package/src/services/essbasic/v20210526/essbasic_models.ts +1 -1
  35. package/src/services/faceid/v20180301/faceid_models.ts +7 -1
  36. package/src/services/iecp/v20210914/iecp_models.ts +1 -1
  37. package/src/services/index.ts +2 -0
  38. package/src/services/iotcloud/v20180614/iotcloud_client.ts +24 -0
  39. package/src/services/iotcloud/v20180614/iotcloud_models.ts +85 -0
  40. package/src/services/iotcloud/v20210408/iotcloud_client.ts +175 -64
  41. package/src/services/iotcloud/v20210408/iotcloud_models.ts +579 -82
  42. package/src/services/lighthouse/v20200324/lighthouse_client.ts +1 -1
  43. package/src/services/lighthouse/v20200324/lighthouse_models.ts +13 -7
  44. package/src/services/live/v20180801/live_client.ts +1 -1
  45. package/src/services/mariadb/v20170312/mariadb_models.ts +29 -29
  46. package/src/services/mongodb/v20190725/mongodb_client.ts +13 -0
  47. package/src/services/mongodb/v20190725/mongodb_models.ts +55 -0
  48. package/src/services/nlp/v20190408/nlp_client.ts +6 -46
  49. package/src/services/nlp/v20190408/nlp_models.ts +37 -212
  50. package/src/services/ocr/v20181119/ocr_models.ts +5 -7
  51. package/src/services/partners/v20180321/partners_client.ts +4 -5
  52. package/src/services/partners/v20180321/partners_models.ts +18 -3
  53. package/src/services/privatedns/v20201028/privatedns_models.ts +7 -1
  54. package/src/services/redis/v20180412/redis_models.ts +1 -1
  55. package/src/services/ses/v20201002/ses_client.ts +3 -2
  56. package/src/services/ssa/v20180608/ssa_models.ts +70 -23
  57. package/src/services/ssl/v20191205/ssl_models.ts +2 -2
  58. package/src/services/tem/v20210701/tem_client.ts +1 -0
  59. package/src/services/tem/v20210701/tem_models.ts +51 -2
  60. package/src/services/thpc/index.ts +2 -0
  61. package/src/services/thpc/v20211109/thpc_client.ts +5 -2
  62. package/src/services/thpc/v20211109/thpc_models.ts +127 -28
  63. package/src/services/thpc/v20220401/index.ts +6 -0
  64. package/src/services/thpc/v20220401/thpc_client.ts +121 -0
  65. package/src/services/thpc/v20220401/thpc_models.ts +805 -0
  66. package/src/services/tke/v20180525/tke_client.ts +63 -11
  67. package/src/services/tke/v20180525/tke_models.ts +399 -118
  68. package/src/services/trtc/v20190722/trtc_models.ts +1 -1
  69. package/src/services/vpc/v20170312/vpc_models.ts +8 -8
  70. package/src/services/wav/v20210129/wav_client.ts +154 -76
  71. package/src/services/wav/v20210129/wav_models.ts +541 -25
  72. package/tencentcloud/common/sdk_version.d.ts +1 -1
  73. package/tencentcloud/common/sdk_version.js +1 -1
  74. package/tencentcloud/services/ame/v20190916/ame_models.d.ts +9 -0
  75. package/tencentcloud/services/ams/v20201229/ams_models.d.ts +12 -0
  76. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +4 -0
  77. package/tencentcloud/services/as/v20180419/as_client.d.ts +16 -8
  78. package/tencentcloud/services/as/v20180419/as_client.js +15 -9
  79. package/tencentcloud/services/as/v20180419/as_models.d.ts +33 -83
  80. package/tencentcloud/services/batch/v20170312/batch_models.d.ts +91 -69
  81. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +11 -2
  82. package/tencentcloud/services/bsca/index.d.ts +6 -0
  83. package/tencentcloud/services/bsca/index.js +7 -0
  84. package/tencentcloud/services/bsca/v20210811/bsca_client.d.ts +26 -0
  85. package/tencentcloud/services/bsca/v20210811/bsca_client.js +55 -0
  86. package/tencentcloud/services/bsca/v20210811/bsca_models.d.ts +533 -0
  87. package/tencentcloud/services/bsca/v20210811/bsca_models.js +18 -0
  88. package/tencentcloud/services/bsca/v20210811/index.d.ts +6 -0
  89. package/tencentcloud/services/bsca/v20210811/index.js +9 -0
  90. package/tencentcloud/services/cam/v20190116/cam_client.d.ts +19 -3
  91. package/tencentcloud/services/cam/v20190116/cam_client.js +27 -3
  92. package/tencentcloud/services/cam/v20190116/cam_models.d.ts +232 -60
  93. package/tencentcloud/services/cat/v20180409/cat_client.d.ts +5 -1
  94. package/tencentcloud/services/cat/v20180409/cat_client.js +6 -0
  95. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +42 -0
  96. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +13 -5
  97. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +2 -2
  98. package/tencentcloud/services/cdn/v20180606/cdn_client.js +2 -2
  99. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +20 -15
  100. package/tencentcloud/services/cfg/index.d.ts +6 -0
  101. package/tencentcloud/services/cfg/index.js +7 -0
  102. package/tencentcloud/services/cfg/v20210820/cfg_client.d.ts +50 -0
  103. package/tencentcloud/services/cfg/v20210820/cfg_client.js +91 -0
  104. package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +1015 -0
  105. package/tencentcloud/services/cfg/v20210820/cfg_models.js +18 -0
  106. package/tencentcloud/services/cfg/v20210820/index.d.ts +6 -0
  107. package/tencentcloud/services/cfg/v20210820/index.js +9 -0
  108. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  109. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  110. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +2 -2
  111. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -0
  112. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +16 -9
  113. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +9 -9
  114. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +6 -2
  115. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
  116. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +6 -1
  117. package/tencentcloud/services/iecp/v20210914/iecp_models.d.ts +1 -1
  118. package/tencentcloud/services/index.d.ts +2 -0
  119. package/tencentcloud/services/index.js +4 -0
  120. package/tencentcloud/services/iotcloud/v20180614/iotcloud_client.d.ts +9 -1
  121. package/tencentcloud/services/iotcloud/v20180614/iotcloud_client.js +12 -0
  122. package/tencentcloud/services/iotcloud/v20180614/iotcloud_models.d.ts +72 -0
  123. package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.d.ts +57 -21
  124. package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.js +84 -30
  125. package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +497 -77
  126. package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +1 -1
  127. package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +1 -1
  128. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +12 -7
  129. package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
  130. package/tencentcloud/services/live/v20180801/live_client.js +1 -1
  131. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +29 -29
  132. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +5 -1
  133. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +6 -0
  134. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +47 -0
  135. package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +1 -13
  136. package/tencentcloud/services/nlp/v20190408/nlp_client.js +0 -18
  137. package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +35 -187
  138. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +5 -7
  139. package/tencentcloud/services/partners/v20180321/partners_client.d.ts +3 -4
  140. package/tencentcloud/services/partners/v20180321/partners_client.js +3 -4
  141. package/tencentcloud/services/partners/v20180321/partners_models.d.ts +15 -3
  142. package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +6 -1
  143. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +1 -1
  144. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +1 -0
  145. package/tencentcloud/services/ses/v20201002/ses_client.js +1 -0
  146. package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +62 -23
  147. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +2 -2
  148. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +43 -2
  149. package/tencentcloud/services/thpc/index.d.ts +4 -0
  150. package/tencentcloud/services/thpc/index.js +2 -0
  151. package/tencentcloud/services/thpc/v20211109/thpc_client.d.ts +1 -1
  152. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +109 -25
  153. package/tencentcloud/services/thpc/v20220401/index.d.ts +6 -0
  154. package/tencentcloud/services/thpc/v20220401/index.js +9 -0
  155. package/tencentcloud/services/thpc/v20220401/thpc_client.d.ts +34 -0
  156. package/tencentcloud/services/thpc/v20220401/thpc_client.js +67 -0
  157. package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +671 -0
  158. package/tencentcloud/services/thpc/v20220401/thpc_models.js +18 -0
  159. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +19 -3
  160. package/tencentcloud/services/tke/v20180525/tke_client.js +27 -3
  161. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +338 -101
  162. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
  163. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +8 -8
  164. package/tencentcloud/services/wav/v20210129/wav_client.d.ts +51 -27
  165. package/tencentcloud/services/wav/v20210129/wav_client.js +75 -39
  166. package/tencentcloud/services/wav/v20210129/wav_models.d.ts +459 -24
  167. package/test/as.v20180419.test.js +0 -10
  168. package/test/bsca.v20210811.test.js +61 -0
  169. package/test/cam.v20190116.test.js +42 -2
  170. package/test/cat.v20180409.test.js +10 -0
  171. package/test/cfg.v20210820.test.js +121 -0
  172. package/test/iotcloud.v20180614.test.js +20 -0
  173. package/test/iotcloud.v20210408.test.js +110 -20
  174. package/test/mongodb.v20190725.test.js +10 -0
  175. package/test/nlp.v20190408.test.js +0 -30
  176. package/test/thpc.v20220401.test.js +81 -0
  177. package/test/tke.v20180525.test.js +42 -2
  178. package/test/wav.v20210129.test.js +86 -26
@@ -118,6 +118,16 @@ it("cam.v20190116.CreateRole", async function () {
118
118
  }
119
119
  })
120
120
 
121
+ it("cam.v20190116.UpdateUserOIDCConfig", async function () {
122
+ try {
123
+ const data = await client.UpdateUserOIDCConfig({})
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
+
121
131
  it("cam.v20190116.PutRolePermissionsBoundary", async function () {
122
132
  try {
123
133
  const data = await client.PutRolePermissionsBoundary({})
@@ -348,6 +358,16 @@ it("cam.v20190116.GetServiceLinkedRoleDeletionStatus", async function () {
348
358
  }
349
359
  })
350
360
 
361
+ it("cam.v20190116.DescribeUserOIDCConfig", async function () {
362
+ try {
363
+ const data = await client.DescribeUserOIDCConfig({})
364
+ expect(data).to.be.ok
365
+ } catch(error) {
366
+ expect(error.requestId).to.be.ok
367
+ expect(error.code).to.be.ok
368
+ }
369
+ })
370
+
351
371
  it("cam.v20190116.ListPoliciesGrantingServiceAccess", async function () {
352
372
  try {
353
373
  const data = await client.ListPoliciesGrantingServiceAccess({})
@@ -508,6 +528,16 @@ it("cam.v20190116.DescribeSafeAuthFlagIntl", async function () {
508
528
  }
509
529
  })
510
530
 
531
+ it("cam.v20190116.UpdateGroup", async function () {
532
+ try {
533
+ const data = await client.UpdateGroup({})
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
+
511
541
  it("cam.v20190116.GetRole", async function () {
512
542
  try {
513
543
  const data = await client.GetRole({})
@@ -648,6 +678,16 @@ it("cam.v20190116.ListEntitiesForPolicy", async function () {
648
678
  }
649
679
  })
650
680
 
681
+ it("cam.v20190116.CreateUserOIDCConfig", async function () {
682
+ try {
683
+ const data = await client.CreateUserOIDCConfig({})
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
+
651
691
  it("cam.v20190116.ListWeChatWorkSubAccounts", async function () {
652
692
  try {
653
693
  const data = await client.ListWeChatWorkSubAccounts({})
@@ -678,9 +718,9 @@ it("cam.v20190116.AttachGroupPolicy", async function () {
678
718
  }
679
719
  })
680
720
 
681
- it("cam.v20190116.UpdateGroup", async function () {
721
+ it("cam.v20190116.DisableUserSSO", async function () {
682
722
  try {
683
- const data = await client.UpdateGroup({})
723
+ const data = await client.DisableUserSSO({})
684
724
  expect(data).to.be.ok
685
725
  } catch(error) {
686
726
  expect(error.requestId).to.be.ok
@@ -188,6 +188,16 @@ it("cat.v20180409.GetDailyAvailRatio", async function () {
188
188
  }
189
189
  })
190
190
 
191
+ it("cat.v20180409.DescribeProbeMetricData", async function () {
192
+ try {
193
+ const data = await client.DescribeProbeMetricData({})
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
+
191
201
  it("cat.v20180409.ResumeProbeTask", async function () {
192
202
  try {
193
203
  const data = await client.ResumeProbeTask({})
@@ -0,0 +1,121 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.cfg.v20210820.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("cfg.v20210820.test.js", function () {
20
+
21
+ it("cfg.v20210820.CreateTaskFromTemplate", async function () {
22
+ try {
23
+ const data = await client.CreateTaskFromTemplate({})
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("cfg.v20210820.DescribeTemplate", async function () {
32
+ try {
33
+ const data = await client.DescribeTemplate({})
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("cfg.v20210820.ExecuteTaskInstance", async function () {
42
+ try {
43
+ const data = await client.ExecuteTaskInstance({})
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("cfg.v20210820.DescribeTemplateList", async function () {
52
+ try {
53
+ const data = await client.DescribeTemplateList({})
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("cfg.v20210820.ModifyTaskRunStatus", async function () {
62
+ try {
63
+ const data = await client.ModifyTaskRunStatus({})
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("cfg.v20210820.DescribeTaskList", async function () {
72
+ try {
73
+ const data = await client.DescribeTaskList({})
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("cfg.v20210820.DescribeTaskExecuteLogs", async function () {
82
+ try {
83
+ const data = await client.DescribeTaskExecuteLogs({})
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("cfg.v20210820.DescribeTask", async function () {
92
+ try {
93
+ const data = await client.DescribeTask({})
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("cfg.v20210820.ExecuteTask", async function () {
102
+ try {
103
+ const data = await client.ExecuteTask({})
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("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
+
121
+ })
@@ -138,6 +138,16 @@ it("iotcloud.v20180614.UpdateDeviceAvailableState", async function () {
138
138
  }
139
139
  })
140
140
 
141
+ it("iotcloud.v20180614.DescribeProduct", async function () {
142
+ try {
143
+ const data = await client.DescribeProduct({})
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
+
141
151
  it("iotcloud.v20180614.CreateTopicRule", async function () {
142
152
  try {
143
153
  const data = await client.CreateTopicRule({})
@@ -478,6 +488,16 @@ it("iotcloud.v20180614.DescribeDeviceResources", async function () {
478
488
  }
479
489
  })
480
490
 
491
+ it("iotcloud.v20180614.UpdateProductDynamicRegister", async function () {
492
+ try {
493
+ const data = await client.UpdateProductDynamicRegister({})
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
+
481
501
  it("iotcloud.v20180614.ListLog", async function () {
482
502
  try {
483
503
  const data = await client.ListLog({})
@@ -28,9 +28,9 @@ it("iotcloud.v20210408.UpdateDeviceLogLevel", async function () {
28
28
  }
29
29
  })
30
30
 
31
- it("iotcloud.v20210408.DescribePrivateCABindedProducts", async function () {
31
+ it("iotcloud.v20210408.DescribePrivateCAs", async function () {
32
32
  try {
33
- const data = await client.DescribePrivateCABindedProducts({})
33
+ const data = await client.DescribePrivateCAs({})
34
34
  expect(data).to.be.ok
35
35
  } catch(error) {
36
36
  expect(error.requestId).to.be.ok
@@ -38,9 +38,9 @@ it("iotcloud.v20210408.DescribePrivateCABindedProducts", async function () {
38
38
  }
39
39
  })
40
40
 
41
- it("iotcloud.v20210408.DescribeDevices", async function () {
41
+ it("iotcloud.v20210408.ListLogPayload", async function () {
42
42
  try {
43
- const data = await client.DescribeDevices({})
43
+ const data = await client.ListLogPayload({})
44
44
  expect(data).to.be.ok
45
45
  } catch(error) {
46
46
  expect(error.requestId).to.be.ok
@@ -48,9 +48,29 @@ it("iotcloud.v20210408.DescribeDevices", async function () {
48
48
  }
49
49
  })
50
50
 
51
- it("iotcloud.v20210408.CreateDevice", async function () {
51
+ it("iotcloud.v20210408.DescribeDevice", async function () {
52
52
  try {
53
- const data = await client.CreateDevice({})
53
+ const data = await client.DescribeDevice({})
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("iotcloud.v20210408.DescribeProduct", async function () {
62
+ try {
63
+ const data = await client.DescribeProduct({})
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("iotcloud.v20210408.UpdateProductPrivateCA", async function () {
72
+ try {
73
+ const data = await client.UpdateProductPrivateCA({})
54
74
  expect(data).to.be.ok
55
75
  } catch(error) {
56
76
  expect(error.requestId).to.be.ok
@@ -68,9 +88,59 @@ it("iotcloud.v20210408.DescribeProductCA", async function () {
68
88
  }
69
89
  })
70
90
 
71
- it("iotcloud.v20210408.DescribePrivateCA", async function () {
91
+ it("iotcloud.v20210408.DeleteProductPrivateCA", async function () {
72
92
  try {
73
- const data = await client.DescribePrivateCA({})
93
+ const data = await client.DeleteProductPrivateCA({})
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("iotcloud.v20210408.UpdateDevicesEnableState", async function () {
102
+ try {
103
+ const data = await client.UpdateDevicesEnableState({})
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("iotcloud.v20210408.DeleteDevice", async function () {
112
+ try {
113
+ const data = await client.DeleteDevice({})
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("iotcloud.v20210408.ListSDKLog", async function () {
122
+ try {
123
+ const data = await client.ListSDKLog({})
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("iotcloud.v20210408.CreateDevice", async function () {
132
+ try {
133
+ const data = await client.CreateDevice({})
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("iotcloud.v20210408.DescribePrivateCABindedProducts", async function () {
142
+ try {
143
+ const data = await client.DescribePrivateCABindedProducts({})
74
144
  expect(data).to.be.ok
75
145
  } catch(error) {
76
146
  expect(error.requestId).to.be.ok
@@ -108,9 +178,9 @@ it("iotcloud.v20210408.UpdatePrivateCA", async function () {
108
178
  }
109
179
  })
110
180
 
111
- it("iotcloud.v20210408.DescribePrivateCAs", async function () {
181
+ it("iotcloud.v20210408.DeletePrivateCA", async function () {
112
182
  try {
113
- const data = await client.DescribePrivateCAs({})
183
+ const data = await client.DeletePrivateCA({})
114
184
  expect(data).to.be.ok
115
185
  } catch(error) {
116
186
  expect(error.requestId).to.be.ok
@@ -118,9 +188,9 @@ it("iotcloud.v20210408.DescribePrivateCAs", async function () {
118
188
  }
119
189
  })
120
190
 
121
- it("iotcloud.v20210408.DeletePrivateCA", async function () {
191
+ it("iotcloud.v20210408.UpdateProductDynamicRegister", async function () {
122
192
  try {
123
- const data = await client.DeletePrivateCA({})
193
+ const data = await client.UpdateProductDynamicRegister({})
124
194
  expect(data).to.be.ok
125
195
  } catch(error) {
126
196
  expect(error.requestId).to.be.ok
@@ -128,9 +198,9 @@ it("iotcloud.v20210408.DeletePrivateCA", async function () {
128
198
  }
129
199
  })
130
200
 
131
- it("iotcloud.v20210408.DescribeDevice", async function () {
201
+ it("iotcloud.v20210408.ListLog", async function () {
132
202
  try {
133
- const data = await client.DescribeDevice({})
203
+ const data = await client.ListLog({})
134
204
  expect(data).to.be.ok
135
205
  } catch(error) {
136
206
  expect(error.requestId).to.be.ok
@@ -138,9 +208,9 @@ it("iotcloud.v20210408.DescribeDevice", async function () {
138
208
  }
139
209
  })
140
210
 
141
- it("iotcloud.v20210408.UpdateDevicesEnableState", async function () {
211
+ it("iotcloud.v20210408.DescribePrivateCA", async function () {
142
212
  try {
143
- const data = await client.UpdateDevicesEnableState({})
213
+ const data = await client.DescribePrivateCA({})
144
214
  expect(data).to.be.ok
145
215
  } catch(error) {
146
216
  expect(error.requestId).to.be.ok
@@ -148,9 +218,9 @@ it("iotcloud.v20210408.UpdateDevicesEnableState", async function () {
148
218
  }
149
219
  })
150
220
 
151
- it("iotcloud.v20210408.DeleteDevice", async function () {
221
+ it("iotcloud.v20210408.DescribeDevices", async function () {
152
222
  try {
153
- const data = await client.DeleteDevice({})
223
+ const data = await client.DescribeDevices({})
154
224
  expect(data).to.be.ok
155
225
  } catch(error) {
156
226
  expect(error.requestId).to.be.ok
@@ -158,9 +228,29 @@ it("iotcloud.v20210408.DeleteDevice", async function () {
158
228
  }
159
229
  })
160
230
 
161
- it("iotcloud.v20210408.DescribeProduct", async function () {
231
+ it("iotcloud.v20210408.SetProductsForbiddenStatus", async function () {
162
232
  try {
163
- const data = await client.DescribeProduct({})
233
+ const data = await client.SetProductsForbiddenStatus({})
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("iotcloud.v20210408.PublishBroadcastMessage", async function () {
242
+ try {
243
+ const data = await client.PublishBroadcastMessage({})
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("iotcloud.v20210408.UpdateDevicePSK", async function () {
252
+ try {
253
+ const data = await client.UpdateDevicePSK({})
164
254
  expect(data).to.be.ok
165
255
  } catch(error) {
166
256
  expect(error.requestId).to.be.ok
@@ -138,6 +138,16 @@ it("mongodb.v20190725.DescribeAsyncRequestInfo", async function () {
138
138
  }
139
139
  })
140
140
 
141
+ it("mongodb.v20190725.ModifyDBInstanceNetworkAddress", async function () {
142
+ try {
143
+ const data = await client.ModifyDBInstanceNetworkAddress({})
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
+
141
151
  it("mongodb.v20190725.CreateDBInstanceHour", async function () {
142
152
  try {
143
153
  const data = await client.CreateDBInstanceHour({})
@@ -28,16 +28,6 @@ it("nlp.v20190408.DescribeDict", async function () {
28
28
  }
29
29
  })
30
30
 
31
- it("nlp.v20190408.DescribeEntity", async function () {
32
- try {
33
- const data = await client.DescribeEntity({})
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
31
  it("nlp.v20190408.SearchWordItems", async function () {
42
32
  try {
43
33
  const data = await client.SearchWordItems({})
@@ -108,16 +98,6 @@ it("nlp.v20190408.CreateDict", async function () {
108
98
  }
109
99
  })
110
100
 
111
- it("nlp.v20190408.DescribeRelation", async function () {
112
- try {
113
- const data = await client.DescribeRelation({})
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
101
  it("nlp.v20190408.TextClassification", async function () {
122
102
  try {
123
103
  const data = await client.TextClassification({})
@@ -228,16 +208,6 @@ it("nlp.v20190408.LexicalAnalysis", async function () {
228
208
  }
229
209
  })
230
210
 
231
- it("nlp.v20190408.DescribeTriple", async function () {
232
- try {
233
- const data = await client.DescribeTriple({})
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
211
  it("nlp.v20190408.KeywordsExtraction", async function () {
242
212
  try {
243
213
  const data = await client.KeywordsExtraction({})
@@ -0,0 +1,81 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.thpc.v20220401.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("thpc.v20220401.test.js", function () {
20
+
21
+ it("thpc.v20220401.DeleteNodes", async function () {
22
+ try {
23
+ const data = await client.DeleteNodes({})
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("thpc.v20220401.BindAutoScalingGroup", async function () {
32
+ try {
33
+ const data = await client.BindAutoScalingGroup({})
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("thpc.v20220401.CreateCluster", async function () {
42
+ try {
43
+ const data = await client.CreateCluster({})
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("thpc.v20220401.AddNodes", async function () {
52
+ try {
53
+ const data = await client.AddNodes({})
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("thpc.v20220401.DescribeClusters", async function () {
62
+ try {
63
+ const data = await client.DescribeClusters({})
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("thpc.v20220401.DeleteCluster", async function () {
72
+ try {
73
+ const data = await client.DeleteCluster({})
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
+ })
@@ -478,9 +478,9 @@ it("tke.v20180525.DescribeClusterInstances", async function () {
478
478
  }
479
479
  })
480
480
 
481
- it("tke.v20180525.DescribeClusterControllers", async function () {
481
+ it("tke.v20180525.DescribeClusterLevelAttribute", async function () {
482
482
  try {
483
- const data = await client.DescribeClusterControllers({})
483
+ const data = await client.DescribeClusterLevelAttribute({})
484
484
  expect(data).to.be.ok
485
485
  } catch(error) {
486
486
  expect(error.requestId).to.be.ok
@@ -708,6 +708,16 @@ it("tke.v20180525.DeletePrometheusAlertRule", async function () {
708
708
  }
709
709
  })
710
710
 
711
+ it("tke.v20180525.DescribeClusterLevelChangeRecords", async function () {
712
+ try {
713
+ const data = await client.DescribeClusterLevelChangeRecords({})
714
+ expect(data).to.be.ok
715
+ } catch(error) {
716
+ expect(error.requestId).to.be.ok
717
+ expect(error.code).to.be.ok
718
+ }
719
+ })
720
+
711
721
  it("tke.v20180525.CreateClusterEndpoint", async function () {
712
722
  try {
713
723
  const data = await client.CreateClusterEndpoint({})
@@ -758,6 +768,16 @@ it("tke.v20180525.CreatePrometheusAlertRule", async function () {
758
768
  }
759
769
  })
760
770
 
771
+ it("tke.v20180525.DescribeClusterControllers", async function () {
772
+ try {
773
+ const data = await client.DescribeClusterControllers({})
774
+ expect(data).to.be.ok
775
+ } catch(error) {
776
+ expect(error.requestId).to.be.ok
777
+ expect(error.code).to.be.ok
778
+ }
779
+ })
780
+
761
781
  it("tke.v20180525.DescribeClusterSecurity", async function () {
762
782
  try {
763
783
  const data = await client.DescribeClusterSecurity({})
@@ -788,6 +808,16 @@ it("tke.v20180525.ScaleInClusterMaster", async function () {
788
808
  }
789
809
  })
790
810
 
811
+ it("tke.v20180525.DescribeResourceUsage", async function () {
812
+ try {
813
+ const data = await client.DescribeResourceUsage({})
814
+ expect(data).to.be.ok
815
+ } catch(error) {
816
+ expect(error.requestId).to.be.ok
817
+ expect(error.code).to.be.ok
818
+ }
819
+ })
820
+
791
821
  it("tke.v20180525.DeleteClusterEndpointVip", async function () {
792
822
  try {
793
823
  const data = await client.DeleteClusterEndpointVip({})
@@ -918,6 +948,16 @@ it("tke.v20180525.DeleteClusterEndpoint", async function () {
918
948
  }
919
949
  })
920
950
 
951
+ it("tke.v20180525.GetClusterLevelPrice", async function () {
952
+ try {
953
+ const data = await client.GetClusterLevelPrice({})
954
+ expect(data).to.be.ok
955
+ } catch(error) {
956
+ expect(error.requestId).to.be.ok
957
+ expect(error.code).to.be.ok
958
+ }
959
+ })
960
+
921
961
  it("tke.v20180525.ModifyPrometheusTemplate", async function () {
922
962
  try {
923
963
  const data = await client.ModifyPrometheusTemplate({})