tencentcloud-sdk-nodejs 4.0.360 → 4.0.363

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 (130) hide show
  1. package/CHANGELOG.md +663 -0
  2. package/SERVICE_CHANGELOG.md +685 -39
  3. package/package.json +1 -1
  4. package/products.md +29 -27
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/acp/v20220105/acp_client.ts +25 -12
  7. package/src/services/acp/v20220105/acp_models.ts +50 -0
  8. package/src/services/ams/v20201229/ams_models.ts +7 -1
  9. package/src/services/antiddos/v20200309/antiddos_client.ts +3 -1
  10. package/src/services/antiddos/v20200309/antiddos_models.ts +68 -2
  11. package/src/services/cat/v20180409/cat_client.ts +38 -377
  12. package/src/services/cat/v20180409/cat_models.ts +385 -2403
  13. package/src/services/cdb/v20170320/cdb_models.ts +2 -2
  14. package/src/services/ciam/index.ts +5 -0
  15. package/src/services/ciam/v20220331/ciam_client.ts +198 -0
  16. package/src/services/ciam/v20220331/ciam_models.ts +1087 -0
  17. package/src/services/ciam/v20220331/index.ts +6 -0
  18. package/src/services/cii/v20210408/cii_client.ts +3 -0
  19. package/src/services/cii/v20210408/cii_models.ts +61 -0
  20. package/src/services/cvm/v20170312/cvm_models.ts +18 -8
  21. package/src/services/dlc/v20210125/dlc_client.ts +13 -0
  22. package/src/services/dlc/v20210125/dlc_models.ts +94 -7
  23. package/src/services/eis/v20210601/eis_models.ts +39 -0
  24. package/src/services/ess/v20201111/ess_client.ts +1 -1
  25. package/src/services/ess/v20201111/ess_models.ts +1 -1
  26. package/src/services/facefusion/v20181201/facefusion_models.ts +1 -1
  27. package/src/services/index.ts +2 -0
  28. package/src/services/live/v20180801/live_client.ts +1 -1
  29. package/src/services/live/v20180801/live_models.ts +1 -1
  30. package/src/services/mmps/v20200710/mmps_client.ts +30 -5
  31. package/src/services/mmps/v20200710/mmps_models.ts +193 -103
  32. package/src/services/oceanus/v20190422/oceanus_client.ts +22 -0
  33. package/src/services/oceanus/v20190422/oceanus_models.ts +40 -0
  34. package/src/services/ocr/v20181119/ocr_client.ts +1 -1
  35. package/src/services/ocr/v20181119/ocr_models.ts +5 -0
  36. package/src/services/postgres/v20170312/postgres_models.ts +53 -38
  37. package/src/services/redis/v20180412/redis_models.ts +10 -0
  38. package/src/services/ses/v20201002/ses_client.ts +1 -1
  39. package/src/services/tbaas/v20180416/tbaas_models.ts +1 -1
  40. package/src/services/tcbr/index.ts +5 -0
  41. package/src/services/tcbr/v20220217/index.ts +6 -0
  42. package/src/services/tcbr/v20220217/tcbr_client.ts +130 -0
  43. package/src/services/tcbr/v20220217/tcbr_models.ts +876 -0
  44. package/src/services/teo/v20220106/teo_client.ts +680 -412
  45. package/src/services/teo/v20220106/teo_models.ts +2927 -579
  46. package/src/services/tiia/v20190529/tiia_client.ts +17 -1
  47. package/src/services/tiia/v20190529/tiia_models.ts +70 -14
  48. package/src/services/vm/v20201229/vm_models.ts +7 -1
  49. package/src/services/vod/v20180717/vod_client.ts +27 -0
  50. package/src/services/vod/v20180717/vod_models.ts +232 -158
  51. package/src/services/vpc/v20170312/vpc_models.ts +2 -2
  52. package/tencentcloud/common/sdk_version.d.ts +1 -1
  53. package/tencentcloud/common/sdk_version.js +1 -1
  54. package/tencentcloud/services/acp/v20220105/acp_client.d.ts +9 -5
  55. package/tencentcloud/services/acp/v20220105/acp_client.js +12 -6
  56. package/tencentcloud/services/acp/v20220105/acp_models.d.ts +43 -0
  57. package/tencentcloud/services/ams/v20201229/ams_models.d.ts +6 -1
  58. package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +1 -1
  59. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +1 -1
  60. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +57 -2
  61. package/tencentcloud/services/cat/v20180409/cat_client.d.ts +9 -117
  62. package/tencentcloud/services/cat/v20180409/cat_client.js +12 -174
  63. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +348 -2028
  64. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
  65. package/tencentcloud/services/ciam/index.d.ts +6 -0
  66. package/tencentcloud/services/ciam/index.js +7 -0
  67. package/tencentcloud/services/ciam/v20220331/ciam_client.d.ts +62 -0
  68. package/tencentcloud/services/ciam/v20220331/ciam_client.js +109 -0
  69. package/tencentcloud/services/ciam/v20220331/ciam_models.d.ts +910 -0
  70. package/tencentcloud/services/ciam/v20220331/ciam_models.js +18 -0
  71. package/tencentcloud/services/ciam/v20220331/index.d.ts +6 -0
  72. package/tencentcloud/services/ciam/v20220331/index.js +9 -0
  73. package/tencentcloud/services/cii/v20210408/cii_models.d.ts +52 -0
  74. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +17 -8
  75. package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +5 -1
  76. package/tencentcloud/services/dlc/v20210125/dlc_client.js +6 -0
  77. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +81 -7
  78. package/tencentcloud/services/eis/v20210601/eis_models.d.ts +32 -0
  79. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
  80. package/tencentcloud/services/ess/v20201111/ess_client.js +1 -1
  81. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
  82. package/tencentcloud/services/facefusion/v20181201/facefusion_models.d.ts +1 -1
  83. package/tencentcloud/services/index.d.ts +2 -0
  84. package/tencentcloud/services/index.js +4 -0
  85. package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
  86. package/tencentcloud/services/live/v20180801/live_client.js +1 -1
  87. package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -1
  88. package/tencentcloud/services/mmps/v20200710/mmps_client.d.ts +9 -1
  89. package/tencentcloud/services/mmps/v20200710/mmps_client.js +12 -0
  90. package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +164 -88
  91. package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +15 -1
  92. package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +16 -0
  93. package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +34 -0
  94. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +1 -1
  95. package/tencentcloud/services/ocr/v20181119/ocr_client.js +1 -1
  96. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -0
  97. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +50 -38
  98. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +8 -0
  99. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +1 -1
  100. package/tencentcloud/services/ses/v20201002/ses_client.js +1 -1
  101. package/tencentcloud/services/tbaas/v20180416/tbaas_models.d.ts +1 -1
  102. package/tencentcloud/services/tcbr/index.d.ts +6 -0
  103. package/tencentcloud/services/tcbr/index.js +7 -0
  104. package/tencentcloud/services/tcbr/v20220217/index.d.ts +6 -0
  105. package/tencentcloud/services/tcbr/v20220217/index.js +9 -0
  106. package/tencentcloud/services/tcbr/v20220217/tcbr_client.d.ts +38 -0
  107. package/tencentcloud/services/tcbr/v20220217/tcbr_client.js +73 -0
  108. package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +723 -0
  109. package/tencentcloud/services/tcbr/v20220217/tcbr_models.js +18 -0
  110. package/tencentcloud/services/teo/v20220106/teo_client.d.ts +205 -125
  111. package/tencentcloud/services/teo/v20220106/teo_client.js +306 -186
  112. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +2539 -562
  113. package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +8 -1
  114. package/tencentcloud/services/tiia/v20190529/tiia_client.js +9 -0
  115. package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +61 -12
  116. package/tencentcloud/services/vm/v20201229/vm_models.d.ts +6 -1
  117. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +12 -1
  118. package/tencentcloud/services/vod/v20180717/vod_client.js +15 -0
  119. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +200 -136
  120. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +2 -2
  121. package/test/acp.v20220105.test.js +14 -4
  122. package/test/cat.v20180409.test.js +8 -278
  123. package/test/ciam.v20220331.test.js +151 -0
  124. package/test/dlc.v20210125.test.js +10 -0
  125. package/test/mmps.v20200710.test.js +20 -0
  126. package/test/oceanus.v20190422.test.js +10 -0
  127. package/test/tcbr.v20220217.test.js +91 -0
  128. package/test/teo.v20220106.test.js +324 -124
  129. package/test/tiia.v20190529.test.js +10 -0
  130. package/test/vod.v20180717.test.js +20 -0
@@ -5362,11 +5362,11 @@ export interface DescribeAddressesRequest {
5362
5362
  */
5363
5363
  Filters?: Array<Filter>;
5364
5364
  /**
5365
- * 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。
5365
+ * 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API 中的相关小节。
5366
5366
  */
5367
5367
  Offset?: number;
5368
5368
  /**
5369
- * 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。
5369
+ * 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API 中的相关小节。
5370
5370
  */
5371
5371
  Limit?: number;
5372
5372
  }
@@ -38,9 +38,19 @@ it("acp.v20220105.CreateAppScanTaskRepeat", async function () {
38
38
  }
39
39
  })
40
40
 
41
- it("acp.v20220105.DescribeFileTicket", async function () {
41
+ it("acp.v20220105.DescribeResourceUsageInfo", async function () {
42
42
  try {
43
- const data = await client.DescribeFileTicket({})
43
+ const data = await client.DescribeResourceUsageInfo({})
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("acp.v20220105.DescribeScanTaskStatus", async function () {
52
+ try {
53
+ const data = await client.DescribeScanTaskStatus({})
44
54
  expect(data).to.be.ok
45
55
  } catch(error) {
46
56
  expect(error.requestId).to.be.ok
@@ -58,9 +68,9 @@ it("acp.v20220105.DescribeScanTaskReportUrl", async function () {
58
68
  }
59
69
  })
60
70
 
61
- it("acp.v20220105.DescribeScanTaskStatus", async function () {
71
+ it("acp.v20220105.DescribeFileTicket", async function () {
62
72
  try {
63
- const data = await client.DescribeScanTaskStatus({})
73
+ const data = await client.DescribeFileTicket({})
64
74
  expect(data).to.be.ok
65
75
  } catch(error) {
66
76
  expect(error.requestId).to.be.ok
@@ -28,166 +28,6 @@ it("cat.v20180409.SuspendProbeTask", async function () {
28
28
  }
29
29
  })
30
30
 
31
- it("cat.v20180409.GetRespTimeTrendEx", async function () {
32
- try {
33
- const data = await client.GetRespTimeTrendEx({})
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("cat.v20180409.ModifyAgentGroup", async function () {
42
- try {
43
- const data = await client.ModifyAgentGroup({})
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("cat.v20180409.DescribeTasksByType", async function () {
52
- try {
53
- const data = await client.DescribeTasksByType({})
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("cat.v20180409.VerifyResult", async function () {
62
- try {
63
- const data = await client.VerifyResult({})
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("cat.v20180409.CreateTaskEx", async function () {
72
- try {
73
- const data = await client.CreateTaskEx({})
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("cat.v20180409.PauseTask", async function () {
82
- try {
83
- const data = await client.PauseTask({})
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("cat.v20180409.DescribeAgentGroups", async function () {
92
- try {
93
- const data = await client.DescribeAgentGroups({})
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("cat.v20180409.GetRealAvailRatio", async function () {
102
- try {
103
- const data = await client.GetRealAvailRatio({})
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("cat.v20180409.CreateAgentGroup", async function () {
112
- try {
113
- const data = await client.CreateAgentGroup({})
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("cat.v20180409.DescribeTaskDetail", async function () {
122
- try {
123
- const data = await client.DescribeTaskDetail({})
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("cat.v20180409.CreateProbeTasks", async function () {
132
- try {
133
- const data = await client.CreateProbeTasks({})
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("cat.v20180409.DescribeAlarmTopic", async function () {
142
- try {
143
- const data = await client.DescribeAlarmTopic({})
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("cat.v20180409.DescribeAlarms", async function () {
152
- try {
153
- const data = await client.DescribeAlarms({})
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("cat.v20180409.GetReturnCodeHistory", async function () {
162
- try {
163
- const data = await client.GetReturnCodeHistory({})
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("cat.v20180409.DeleteTasks", async function () {
172
- try {
173
- const data = await client.DeleteTasks({})
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("cat.v20180409.GetDailyAvailRatio", async function () {
182
- try {
183
- const data = await client.GetDailyAvailRatio({})
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
31
  it("cat.v20180409.DescribeProbeMetricData", async function () {
192
32
  try {
193
33
  const data = await client.DescribeProbeMetricData({})
@@ -198,86 +38,6 @@ it("cat.v20180409.DescribeProbeMetricData", async function () {
198
38
  }
199
39
  })
200
40
 
201
- it("cat.v20180409.ResumeProbeTask", async function () {
202
- try {
203
- const data = await client.ResumeProbeTask({})
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("cat.v20180409.ModifyTaskEx", async function () {
212
- try {
213
- const data = await client.ModifyTaskEx({})
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("cat.v20180409.DescribeAgents", async function () {
222
- try {
223
- const data = await client.DescribeAgents({})
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("cat.v20180409.DescribeUserLimit", async function () {
232
- try {
233
- const data = await client.DescribeUserLimit({})
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("cat.v20180409.DescribeCatLogs", async function () {
242
- try {
243
- const data = await client.DescribeCatLogs({})
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("cat.v20180409.UpdateProbeTaskConfigurationList", async function () {
252
- try {
253
- const data = await client.UpdateProbeTaskConfigurationList({})
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("cat.v20180409.DescribeDetailedSingleProbeData", async function () {
262
- try {
263
- const data = await client.DescribeDetailedSingleProbeData({})
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
- it("cat.v20180409.BindAlarmPolicy", async function () {
272
- try {
273
- const data = await client.BindAlarmPolicy({})
274
- expect(data).to.be.ok
275
- } catch(error) {
276
- expect(error.requestId).to.be.ok
277
- expect(error.code).to.be.ok
278
- }
279
- })
280
-
281
41
  it("cat.v20180409.DescribeProbeTasks", async function () {
282
42
  try {
283
43
  const data = await client.DescribeProbeTasks({})
@@ -288,39 +48,9 @@ it("cat.v20180409.DescribeProbeTasks", async function () {
288
48
  }
289
49
  })
290
50
 
291
- it("cat.v20180409.GetResultSummary", async function () {
292
- try {
293
- const data = await client.GetResultSummary({})
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
-
301
- it("cat.v20180409.DeleteAgentGroup", async function () {
302
- try {
303
- const data = await client.DeleteAgentGroup({})
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
- it("cat.v20180409.GetAvailRatioHistory", async function () {
312
- try {
313
- const data = await client.GetAvailRatioHistory({})
314
- expect(data).to.be.ok
315
- } catch(error) {
316
- expect(error.requestId).to.be.ok
317
- expect(error.code).to.be.ok
318
- }
319
- })
320
-
321
- it("cat.v20180409.RunTask", async function () {
51
+ it("cat.v20180409.UpdateProbeTaskConfigurationList", async function () {
322
52
  try {
323
- const data = await client.RunTask({})
53
+ const data = await client.UpdateProbeTaskConfigurationList({})
324
54
  expect(data).to.be.ok
325
55
  } catch(error) {
326
56
  expect(error.requestId).to.be.ok
@@ -338,9 +68,9 @@ it("cat.v20180409.DescribeProbeNodes", async function () {
338
68
  }
339
69
  })
340
70
 
341
- it("cat.v20180409.GetReturnCodeInfo", async function () {
71
+ it("cat.v20180409.CreateProbeTasks", async function () {
342
72
  try {
343
- const data = await client.GetReturnCodeInfo({})
73
+ const data = await client.CreateProbeTasks({})
344
74
  expect(data).to.be.ok
345
75
  } catch(error) {
346
76
  expect(error.requestId).to.be.ok
@@ -348,9 +78,9 @@ it("cat.v20180409.GetReturnCodeInfo", async function () {
348
78
  }
349
79
  })
350
80
 
351
- it("cat.v20180409.DescribeAlarmsByTask", async function () {
81
+ it("cat.v20180409.DescribeDetailedSingleProbeData", async function () {
352
82
  try {
353
- const data = await client.DescribeAlarmsByTask({})
83
+ const data = await client.DescribeDetailedSingleProbeData({})
354
84
  expect(data).to.be.ok
355
85
  } catch(error) {
356
86
  expect(error.requestId).to.be.ok
@@ -368,9 +98,9 @@ it("cat.v20180409.DeleteProbeTask", async function () {
368
98
  }
369
99
  })
370
100
 
371
- it("cat.v20180409.GetTaskTotalNumber", async function () {
101
+ it("cat.v20180409.ResumeProbeTask", async function () {
372
102
  try {
373
- const data = await client.GetTaskTotalNumber({})
103
+ const data = await client.ResumeProbeTask({})
374
104
  expect(data).to.be.ok
375
105
  } catch(error) {
376
106
  expect(error.requestId).to.be.ok
@@ -0,0 +1,151 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.ciam.v20220331.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("ciam.v20220331.test.js", function () {
20
+
21
+ it("ciam.v20220331.DeleteUsers", async function () {
22
+ try {
23
+ const data = await client.DeleteUsers({})
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("ciam.v20220331.ListJobs", async function () {
32
+ try {
33
+ const data = await client.ListJobs({})
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("ciam.v20220331.UpdateUser", async function () {
42
+ try {
43
+ const data = await client.UpdateUser({})
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("ciam.v20220331.ListUser", async function () {
52
+ try {
53
+ const data = await client.ListUser({})
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("ciam.v20220331.UpdateUserStatus", async function () {
62
+ try {
63
+ const data = await client.UpdateUserStatus({})
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("ciam.v20220331.ListUserByProperty", async function () {
72
+ try {
73
+ const data = await client.ListUserByProperty({})
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("ciam.v20220331.DescribeUserById", async function () {
82
+ try {
83
+ const data = await client.DescribeUserById({})
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("ciam.v20220331.CreateUser", async function () {
92
+ try {
93
+ const data = await client.CreateUser({})
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("ciam.v20220331.SetPassword", async function () {
102
+ try {
103
+ const data = await client.SetPassword({})
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("ciam.v20220331.CreateFileExportUserJob", async function () {
112
+ try {
113
+ const data = await client.CreateFileExportUserJob({})
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("ciam.v20220331.CreateApiImportUserJob", async function () {
122
+ try {
123
+ const data = await client.CreateApiImportUserJob({})
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("ciam.v20220331.LinkAccount", async function () {
132
+ try {
133
+ const data = await client.LinkAccount({})
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("ciam.v20220331.ResetPassword", async function () {
142
+ try {
143
+ const data = await client.ResetPassword({})
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
+ })
@@ -178,6 +178,16 @@ it("dlc.v20210125.CreateWorkGroup", async function () {
178
178
  }
179
179
  })
180
180
 
181
+ it("dlc.v20210125.ListTaskJobLogDetail", async function () {
182
+ try {
183
+ const data = await client.ListTaskJobLogDetail({})
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("dlc.v20210125.UnbindWorkGroupsFromUser", async function () {
182
192
  try {
183
193
  const data = await client.UnbindWorkGroupsFromUser({})
@@ -58,6 +58,16 @@ it("mmps.v20200710.DescribeFlySecMiniAppScanTaskStatus", async function () {
58
58
  }
59
59
  })
60
60
 
61
+ it("mmps.v20200710.DescribeResourceUsageInfo", async function () {
62
+ try {
63
+ const data = await client.DescribeResourceUsageInfo({})
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("mmps.v20200710.CreateFlySecMiniAppScanTask", async function () {
62
72
  try {
63
73
  const data = await client.CreateFlySecMiniAppScanTask({})
@@ -108,6 +118,16 @@ it("mmps.v20200710.DescribeScanTaskStatus", async function () {
108
118
  }
109
119
  })
110
120
 
121
+ it("mmps.v20200710.DescribeBasicDiagnosisResourceUsageInfo", async function () {
122
+ try {
123
+ const data = await client.DescribeBasicDiagnosisResourceUsageInfo({})
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
+
111
131
  it("mmps.v20200710.CreateAppScanTaskRepeat", async function () {
112
132
  try {
113
133
  const data = await client.CreateAppScanTaskRepeat({})
@@ -128,6 +128,16 @@ it("oceanus.v20190422.DescribeSystemResources", async function () {
128
128
  }
129
129
  })
130
130
 
131
+ it("oceanus.v20190422.ModifyJob", async function () {
132
+ try {
133
+ const data = await client.ModifyJob({})
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
+
131
141
  it("oceanus.v20190422.DeleteResourceConfigs", async function () {
132
142
  try {
133
143
  const data = await client.DeleteResourceConfigs({})
@@ -0,0 +1,91 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.tcbr.v20220217.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("tcbr.v20220217.test.js", function () {
20
+
21
+ it("tcbr.v20220217.CreateCloudRunServer", async function () {
22
+ try {
23
+ const data = await client.CreateCloudRunServer({})
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("tcbr.v20220217.UpdateCloudRunServer", async function () {
32
+ try {
33
+ const data = await client.UpdateCloudRunServer({})
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("tcbr.v20220217.DescribeEnvBaseInfo", async function () {
42
+ try {
43
+ const data = await client.DescribeEnvBaseInfo({})
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("tcbr.v20220217.DescribeCloudRunServers", async function () {
52
+ try {
53
+ const data = await client.DescribeCloudRunServers({})
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("tcbr.v20220217.CreateCloudRunEnv", async function () {
62
+ try {
63
+ const data = await client.CreateCloudRunEnv({})
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("tcbr.v20220217.DescribeCloudRunEnvs", async function () {
72
+ try {
73
+ const data = await client.DescribeCloudRunEnvs({})
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("tcbr.v20220217.DescribeCloudRunServerDetail", async function () {
82
+ try {
83
+ const data = await client.DescribeCloudRunServerDetail({})
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
+ })