tencentcloud-sdk-nodejs 4.0.377 → 4.0.380

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 (169) hide show
  1. package/CHANGELOG.md +591 -0
  2. package/SERVICE_CHANGELOG.md +966 -84
  3. package/package.json +1 -1
  4. package/products.md +44 -43
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/acp/v20220105/acp_models.ts +16 -16
  7. package/src/services/antiddos/v20200309/antiddos_client.ts +25 -0
  8. package/src/services/antiddos/v20200309/antiddos_models.ts +160 -0
  9. package/src/services/apm/v20210622/apm_models.ts +25 -10
  10. package/src/services/cat/v20180409/cat_models.ts +59 -14
  11. package/src/services/cdb/v20170320/cdb_models.ts +1 -1
  12. package/src/services/cdn/v20180606/cdn_client.ts +273 -272
  13. package/src/services/cdn/v20180606/cdn_models.ts +6322 -6296
  14. package/src/services/clb/v20180317/clb_client.ts +2 -2
  15. package/src/services/clb/v20180317/clb_models.ts +2 -2
  16. package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +2 -2
  17. package/src/services/cls/v20201016/cls_client.ts +1 -0
  18. package/src/services/cls/v20201016/cls_models.ts +21 -1
  19. package/src/services/cpdp/v20190820/cpdp_client.ts +40 -1
  20. package/src/services/cpdp/v20190820/cpdp_models.ts +352 -11
  21. package/src/services/cvm/v20170312/cvm_client.ts +0 -2
  22. package/src/services/cvm/v20170312/cvm_models.ts +12 -2
  23. package/src/services/cynosdb/v20190107/cynosdb_models.ts +24 -9
  24. package/src/services/dlc/v20210125/dlc_models.ts +46 -2
  25. package/src/services/emr/v20190103/emr_models.ts +5 -0
  26. package/src/services/es/v20180416/es_client.ts +247 -78
  27. package/src/services/es/v20180416/es_models.ts +2070 -1136
  28. package/src/services/ess/v20201111/ess_client.ts +1 -1
  29. package/src/services/ess/v20201111/ess_models.ts +6 -3
  30. package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
  31. package/src/services/essbasic/v20210526/essbasic_models.ts +13 -5
  32. package/src/services/gaap/v20180529/gaap_client.ts +25 -1
  33. package/src/services/gaap/v20180529/gaap_models.ts +78 -32
  34. package/src/services/gpm/v20200820/gpm_client.ts +72 -36
  35. package/src/services/gse/v20191112/gse_client.ts +288 -140
  36. package/src/services/iai/v20180301/iai_client.ts +11 -1
  37. package/src/services/index.ts +1 -0
  38. package/src/services/iotvideo/index.ts +2 -0
  39. package/src/services/iotvideo/v20211125/index.ts +6 -0
  40. package/src/services/iotvideo/v20211125/iotvideo_client.ts +107 -0
  41. package/src/services/iotvideo/v20211125/iotvideo_models.ts +448 -0
  42. package/src/services/irp/index.ts +5 -0
  43. package/src/services/irp/v20220324/index.ts +6 -0
  44. package/src/services/irp/v20220324/irp_client.ts +87 -0
  45. package/src/services/irp/v20220324/irp_models.ts +708 -0
  46. package/src/services/live/v20180801/live_client.ts +28 -89
  47. package/src/services/live/v20180801/live_models.ts +235 -406
  48. package/src/services/mgobe/v20201014/mgobe_client.ts +28 -14
  49. package/src/services/mmps/v20200710/mmps_models.ts +6 -6
  50. package/src/services/ms/v20180408/ms_models.ts +23 -23
  51. package/src/services/oceanus/v20190422/oceanus_client.ts +140 -99
  52. package/src/services/oceanus/v20190422/oceanus_models.ts +435 -54
  53. package/src/services/ocr/v20181119/ocr_models.ts +17 -7
  54. package/src/services/redis/v20180412/redis_models.ts +6 -1
  55. package/src/services/rum/v20210622/rum_models.ts +26 -1
  56. package/src/services/ssl/v20191205/ssl_models.ts +12 -1
  57. package/src/services/sts/v20180813/sts_models.ts +5 -0
  58. package/src/services/tan/v20220420/tan_client.ts +1 -1
  59. package/src/services/tcr/v20190924/tcr_models.ts +22 -1
  60. package/src/services/tcss/v20201101/tcss_models.ts +69 -2
  61. package/src/services/tem/v20210701/tem_models.ts +9 -3
  62. package/src/services/teo/v20220106/teo_client.ts +2 -1
  63. package/src/services/teo/v20220106/teo_models.ts +64 -16
  64. package/src/services/tiia/v20190529/tiia_models.ts +6 -0
  65. package/src/services/tke/v20180525/tke_models.ts +58 -1
  66. package/src/services/tse/v20201207/tse_models.ts +16 -0
  67. package/src/services/vod/v20180717/vod_models.ts +43 -12
  68. package/src/services/waf/v20180125/waf_client.ts +14 -28
  69. package/src/services/waf/v20180125/waf_models.ts +27 -147
  70. package/src/services/yinsuda/v20220527/yinsuda_models.ts +10 -0
  71. package/tencentcloud/common/sdk_version.d.ts +1 -1
  72. package/tencentcloud/common/sdk_version.js +1 -1
  73. package/tencentcloud/services/acp/v20220105/acp_models.d.ts +16 -16
  74. package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +9 -1
  75. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +12 -0
  76. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +133 -0
  77. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +23 -10
  78. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +45 -0
  79. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
  80. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
  81. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +5485 -5463
  82. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +2 -2
  83. package/tencentcloud/services/clb/v20180317/clb_client.js +2 -2
  84. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2 -2
  85. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +2 -2
  86. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +18 -1
  87. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +14 -2
  88. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +19 -1
  89. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +297 -8
  90. package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +0 -2
  91. package/tencentcloud/services/cvm/v20170312/cvm_client.js +0 -2
  92. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +10 -2
  93. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +21 -9
  94. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +38 -2
  95. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +4 -0
  96. package/tencentcloud/services/es/v20180416/es_client.d.ts +66 -9
  97. package/tencentcloud/services/es/v20180416/es_client.js +95 -12
  98. package/tencentcloud/services/es/v20180416/es_models.d.ts +2021 -1235
  99. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
  100. package/tencentcloud/services/ess/v20201111/ess_client.js +1 -1
  101. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -2
  102. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
  103. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
  104. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +12 -5
  105. package/tencentcloud/services/gaap/v20180529/gaap_client.d.ts +9 -1
  106. package/tencentcloud/services/gaap/v20180529/gaap_client.js +12 -0
  107. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +66 -27
  108. package/tencentcloud/services/gpm/v20200820/gpm_client.d.ts +54 -18
  109. package/tencentcloud/services/gpm/v20200820/gpm_client.js +54 -18
  110. package/tencentcloud/services/gse/v20191112/gse_client.d.ts +222 -74
  111. package/tencentcloud/services/gse/v20191112/gse_client.js +222 -74
  112. package/tencentcloud/services/iai/v20180301/iai_client.d.ts +10 -0
  113. package/tencentcloud/services/iai/v20180301/iai_client.js +10 -0
  114. package/tencentcloud/services/index.d.ts +1 -0
  115. package/tencentcloud/services/index.js +2 -0
  116. package/tencentcloud/services/iotvideo/index.d.ts +4 -0
  117. package/tencentcloud/services/iotvideo/index.js +2 -0
  118. package/tencentcloud/services/iotvideo/v20211125/index.d.ts +6 -0
  119. package/tencentcloud/services/iotvideo/v20211125/index.js +9 -0
  120. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +34 -0
  121. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +67 -0
  122. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +365 -0
  123. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.js +18 -0
  124. package/tencentcloud/services/irp/index.d.ts +6 -0
  125. package/tencentcloud/services/irp/index.js +7 -0
  126. package/tencentcloud/services/irp/v20220324/index.d.ts +6 -0
  127. package/tencentcloud/services/irp/v20220324/index.js +9 -0
  128. package/tencentcloud/services/irp/v20220324/irp_client.d.ts +26 -0
  129. package/tencentcloud/services/irp/v20220324/irp_client.js +55 -0
  130. package/tencentcloud/services/irp/v20220324/irp_models.d.ts +572 -0
  131. package/tencentcloud/services/irp/v20220324/irp_models.js +18 -0
  132. package/tencentcloud/services/live/v20180801/live_client.d.ts +7 -28
  133. package/tencentcloud/services/live/v20180801/live_client.js +8 -39
  134. package/tencentcloud/services/live/v20180801/live_models.d.ts +207 -354
  135. package/tencentcloud/services/mgobe/v20201014/mgobe_client.d.ts +21 -7
  136. package/tencentcloud/services/mgobe/v20201014/mgobe_client.js +21 -7
  137. package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +6 -6
  138. package/tencentcloud/services/ms/v20180408/ms_models.d.ts +22 -22
  139. package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +49 -37
  140. package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +72 -54
  141. package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +366 -46
  142. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -6
  143. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +5 -1
  144. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +21 -1
  145. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +10 -1
  146. package/tencentcloud/services/sts/v20180813/sts_models.d.ts +4 -0
  147. package/tencentcloud/services/tan/v20220420/tan_client.d.ts +1 -1
  148. package/tencentcloud/services/tan/v20220420/tan_client.js +1 -1
  149. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +18 -1
  150. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +64 -2
  151. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +7 -2
  152. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +53 -10
  153. package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +5 -0
  154. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +48 -1
  155. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +13 -0
  156. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +38 -11
  157. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -9
  158. package/tencentcloud/services/waf/v20180125/waf_client.js +6 -12
  159. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +24 -124
  160. package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +8 -0
  161. package/test/antiddos.v20200309.test.js +20 -0
  162. package/test/cpdp.v20190820.test.js +30 -0
  163. package/test/es.v20180416.test.js +138 -8
  164. package/test/gaap.v20180529.test.js +20 -0
  165. package/test/iotvideo.v20211125.test.js +81 -0
  166. package/test/irp.v20220324.test.js +61 -0
  167. package/test/live.v20180801.test.js +4 -54
  168. package/test/oceanus.v20190422.test.js +64 -34
  169. package/test/waf.v20180125.test.js +4 -14
@@ -70,51 +70,6 @@ export interface DescribeIpHitItemsResponse {
70
70
  */
71
71
  RequestId?: string;
72
72
  }
73
- /**
74
- * DescribeCustomRules接口回包中的复杂类型
75
- */
76
- export interface DescribeCustomRulesRspRuleListItem {
77
- /**
78
- * 动作类型
79
- */
80
- ActionType: string;
81
- /**
82
- * 跳过的策略
83
- */
84
- Bypass: string;
85
- /**
86
- * 创建时间
87
- */
88
- CreateTime: string;
89
- /**
90
- * 过期时间
91
- */
92
- ExpireTime: string;
93
- /**
94
- * 策略名称
95
- */
96
- Name: string;
97
- /**
98
- * 重定向地址
99
- */
100
- Redirect: string;
101
- /**
102
- * 策略ID
103
- */
104
- RuleId: string;
105
- /**
106
- * 优先级
107
- */
108
- SortId: string;
109
- /**
110
- * 状态
111
- */
112
- Status: string;
113
- /**
114
- * 策略详情
115
- */
116
- Strategies: Array<Strategy>;
117
- }
118
73
  /**
119
74
  * DescribeUserClbWafRegions返回参数结构体
120
75
  */
@@ -289,23 +244,6 @@ export interface AccessLogItem {
289
244
  */
290
245
  Value: string;
291
246
  }
292
- /**
293
- * DescribeCustomRules返回参数结构体
294
- */
295
- export interface DescribeCustomRulesResponse {
296
- /**
297
- * 规则详情
298
- */
299
- RuleList: Array<DescribeCustomRulesRspRuleListItem>;
300
- /**
301
- * 规则条数
302
- */
303
- TotalCount: string;
304
- /**
305
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
306
- */
307
- RequestId?: string;
308
- }
309
247
  /**
310
248
  * DeleteSession请求参数结构体
311
249
  */
@@ -376,19 +314,6 @@ export interface UpsertIpAccessControlRequest {
376
314
  */
377
315
  Edition?: string;
378
316
  }
379
- /**
380
- * DescribeCustomRules接口的翻页参数
381
- */
382
- export interface DescribeCustomRulesPagingInfo {
383
- /**
384
- * 当前页码
385
- */
386
- Offset: number;
387
- /**
388
- * 当前页的最大数据条数
389
- */
390
- Limit: number;
391
- }
392
317
  /**
393
318
  * DeleteDownloadRecord请求参数结构体
394
319
  */
@@ -443,29 +368,17 @@ export interface ModifyAccessPeriodResponse {
443
368
  RequestId?: string;
444
369
  }
445
370
  /**
446
- * clb-waf QPS套餐 New
371
+ * DescribeWafThreatenIntelligence返回参数结构体
447
372
  */
448
- export interface QPSPackageNew {
449
- /**
450
- * 资源ID
451
- */
452
- ResourceIds: string;
453
- /**
454
- * 过期时间
455
- */
456
- ValidTime: string;
457
- /**
458
- * 是否自动续费,1:自动续费,0:不自动续费
459
- */
460
- RenewFlag: number;
373
+ export interface DescribeWafThreatenIntelligenceResponse {
461
374
  /**
462
- * 套餐购买个数
375
+ * WAF 威胁情报封禁信息
463
376
  */
464
- Count: number;
377
+ WafThreatenIntelligenceDetails?: WafThreatenIntelligenceDetails;
465
378
  /**
466
- * 套餐购买地域,clb-waf暂时没有用到
379
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
467
380
  */
468
- Region: string;
381
+ RequestId?: string;
469
382
  }
470
383
  /**
471
384
  * 实例入参过滤器
@@ -1422,31 +1335,6 @@ export interface FraudPkg {
1422
1335
  */
1423
1336
  UsedNum?: number;
1424
1337
  }
1425
- /**
1426
- * DescribeCustomRules请求参数结构体
1427
- */
1428
- export interface DescribeCustomRulesRequest {
1429
- /**
1430
- * 域名
1431
- */
1432
- Domain: string;
1433
- /**
1434
- * 分页参数
1435
- */
1436
- Paging: DescribeCustomRulesPagingInfo;
1437
- /**
1438
- * clb-waf或者sparta-waf
1439
- */
1440
- Edition?: string;
1441
- /**
1442
- * 过滤参数:动作类型:0放行,1阻断,2人机识别,3观察,4重定向
1443
- */
1444
- ActionType?: string;
1445
- /**
1446
- * 过滤参数:规则名称过滤条件
1447
- */
1448
- Search?: string;
1449
- }
1450
1338
  /**
1451
1339
  * ModifyDomainWhiteRule返回参数结构体
1452
1340
  */
@@ -1784,17 +1672,29 @@ export interface DeleteAttackDownloadRecordRequest {
1784
1672
  Id: number;
1785
1673
  }
1786
1674
  /**
1787
- * DescribeWafThreatenIntelligence返回参数结构体
1675
+ * clb-waf QPS套餐 New
1788
1676
  */
1789
- export interface DescribeWafThreatenIntelligenceResponse {
1677
+ export interface QPSPackageNew {
1790
1678
  /**
1791
- * WAF 威胁情报封禁信息
1679
+ * 资源ID
1792
1680
  */
1793
- WafThreatenIntelligenceDetails?: WafThreatenIntelligenceDetails;
1681
+ ResourceIds: string;
1794
1682
  /**
1795
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1683
+ * 过期时间
1796
1684
  */
1797
- RequestId?: string;
1685
+ ValidTime: string;
1686
+ /**
1687
+ * 是否自动续费,1:自动续费,0:不自动续费
1688
+ */
1689
+ RenewFlag: number;
1690
+ /**
1691
+ * 套餐购买个数
1692
+ */
1693
+ Count: number;
1694
+ /**
1695
+ * 套餐购买地域,clb-waf暂时没有用到
1696
+ */
1697
+ Region: string;
1798
1698
  }
1799
1699
  /**
1800
1700
  * AddDomainWhiteRule请求参数结构体
@@ -227,6 +227,14 @@ export interface KTVMusicDetailInfo {
227
227
  * 副歌片段信息。
228
228
  */
229
229
  ChorusClipSet: Array<ChorusClip>;
230
+ /**
231
+ * 前奏间隔。
232
+ */
233
+ PreludeInterval: number;
234
+ /**
235
+ * 歌曲流派列表。
236
+ */
237
+ GenreSet: Array<string>;
230
238
  }
231
239
  /**
232
240
  * 副歌片段信息。
@@ -178,6 +178,16 @@ it("antiddos.v20200309.AssociateDDoSEipLoadBalancer", async function () {
178
178
  }
179
179
  })
180
180
 
181
+ it("antiddos.v20200309.CreateNewL7Rules", async function () {
182
+ try {
183
+ const data = await client.CreateNewL7Rules({})
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("antiddos.v20200309.DeleteWaterPrintConfig", async function () {
182
192
  try {
183
193
  const data = await client.DeleteWaterPrintConfig({})
@@ -308,6 +318,16 @@ it("antiddos.v20200309.DeleteDDoSSpeedLimitConfig", async function () {
308
318
  }
309
319
  })
310
320
 
321
+ it("antiddos.v20200309.DescribeNewL7Rules", async function () {
322
+ try {
323
+ const data = await client.DescribeNewL7Rules({})
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
+
311
331
  it("antiddos.v20200309.ModifyCCLevelPolicy", async function () {
312
332
  try {
313
333
  const data = await client.ModifyCCLevelPolicy({})
@@ -138,6 +138,16 @@ it("cpdp.v20190820.QueryOpenBankRefundOrder", async function () {
138
138
  }
139
139
  })
140
140
 
141
+ it("cpdp.v20190820.QueryOpenBankVerificationOrder", async function () {
142
+ try {
143
+ const data = await client.QueryOpenBankVerificationOrder({})
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("cpdp.v20190820.QueryCloudOrder", async function () {
142
152
  try {
143
153
  const data = await client.QueryCloudOrder({})
@@ -1028,6 +1038,16 @@ it("cpdp.v20190820.QueryMerchantOrder", async function () {
1028
1038
  }
1029
1039
  })
1030
1040
 
1041
+ it("cpdp.v20190820.VerifyOpenBankAccount", async function () {
1042
+ try {
1043
+ const data = await client.VerifyOpenBankAccount({})
1044
+ expect(data).to.be.ok
1045
+ } catch(error) {
1046
+ expect(error.requestId).to.be.ok
1047
+ expect(error.code).to.be.ok
1048
+ }
1049
+ })
1050
+
1031
1051
  it("cpdp.v20190820.CreateFlexPayee", async function () {
1032
1052
  try {
1033
1053
  const data = await client.CreateFlexPayee({})
@@ -1268,6 +1288,16 @@ it("cpdp.v20190820.QueryFundsTransactionDetails", async function () {
1268
1288
  }
1269
1289
  })
1270
1290
 
1291
+ it("cpdp.v20190820.CreateOpenBankVerificationOrder", async function () {
1292
+ try {
1293
+ const data = await client.CreateOpenBankVerificationOrder({})
1294
+ expect(data).to.be.ok
1295
+ } catch(error) {
1296
+ expect(error.requestId).to.be.ok
1297
+ expect(error.code).to.be.ok
1298
+ }
1299
+ })
1300
+
1271
1301
  it("cpdp.v20190820.ApplyReWithdrawal", async function () {
1272
1302
  try {
1273
1303
  const data = await client.ApplyReWithdrawal({})
@@ -28,6 +28,26 @@ it("es.v20180416.DiagnoseInstance", async function () {
28
28
  }
29
29
  })
30
30
 
31
+ it("es.v20180416.DeleteLogstashInstance", async function () {
32
+ try {
33
+ const data = await client.DeleteLogstashInstance({})
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("es.v20180416.UpdateIndex", async function () {
42
+ try {
43
+ const data = await client.UpdateIndex({})
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
+
31
51
  it("es.v20180416.GetRequestTargetNodeTypes", async function () {
32
52
  try {
33
53
  const data = await client.GetRequestTargetNodeTypes({})
@@ -38,6 +58,16 @@ it("es.v20180416.GetRequestTargetNodeTypes", async function () {
38
58
  }
39
59
  })
40
60
 
61
+ it("es.v20180416.StopLogstashPipelines", async function () {
62
+ try {
63
+ const data = await client.StopLogstashPipelines({})
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
+
41
71
  it("es.v20180416.DescribeIndexList", async function () {
42
72
  try {
43
73
  const data = await client.DescribeIndexList({})
@@ -68,6 +98,16 @@ it("es.v20180416.CreateIndex", async function () {
68
98
  }
69
99
  })
70
100
 
101
+ it("es.v20180416.UpdateRequestTargetNodeTypes", async function () {
102
+ try {
103
+ const data = await client.UpdateRequestTargetNodeTypes({})
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
+
71
111
  it("es.v20180416.UpdateDiagnoseSettings", async function () {
72
112
  try {
73
113
  const data = await client.UpdateDiagnoseSettings({})
@@ -98,6 +138,16 @@ it("es.v20180416.UpdatePlugins", async function () {
98
138
  }
99
139
  })
100
140
 
141
+ it("es.v20180416.UpdateLogstashInstance", async function () {
142
+ try {
143
+ const data = await client.UpdateLogstashInstance({})
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
+
101
151
  it("es.v20180416.UpdateJdk", async function () {
102
152
  try {
103
153
  const data = await client.UpdateJdk({})
@@ -118,6 +168,16 @@ it("es.v20180416.UpdateInstance", async function () {
118
168
  }
119
169
  })
120
170
 
171
+ it("es.v20180416.CreateLogstashInstance", async function () {
172
+ try {
173
+ const data = await client.CreateLogstashInstance({})
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
+
121
181
  it("es.v20180416.RestartInstance", async function () {
122
182
  try {
123
183
  const data = await client.RestartInstance({})
@@ -148,9 +208,9 @@ it("es.v20180416.RestartKibana", async function () {
148
208
  }
149
209
  })
150
210
 
151
- it("es.v20180416.UpdateDictionaries", async function () {
211
+ it("es.v20180416.SaveAndDeployLogstashPipeline", async function () {
152
212
  try {
153
- const data = await client.UpdateDictionaries({})
213
+ const data = await client.SaveAndDeployLogstashPipeline({})
154
214
  expect(data).to.be.ok
155
215
  } catch(error) {
156
216
  expect(error.requestId).to.be.ok
@@ -158,9 +218,19 @@ it("es.v20180416.UpdateDictionaries", async function () {
158
218
  }
159
219
  })
160
220
 
161
- it("es.v20180416.UpdateRequestTargetNodeTypes", async function () {
221
+ it("es.v20180416.DescribeLogstashInstanceOperations", async function () {
162
222
  try {
163
- const data = await client.UpdateRequestTargetNodeTypes({})
223
+ const data = await client.DescribeLogstashInstanceOperations({})
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("es.v20180416.StartLogstashPipelines", async function () {
232
+ try {
233
+ const data = await client.StartLogstashPipelines({})
164
234
  expect(data).to.be.ok
165
235
  } catch(error) {
166
236
  expect(error.requestId).to.be.ok
@@ -178,6 +248,36 @@ it("es.v20180416.DescribeInstanceOperations", async function () {
178
248
  }
179
249
  })
180
250
 
251
+ it("es.v20180416.DescribeLogstashPipelines", async function () {
252
+ try {
253
+ const data = await client.DescribeLogstashPipelines({})
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("es.v20180416.DescribeLogstashInstances", async function () {
262
+ try {
263
+ const data = await client.DescribeLogstashInstances({})
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("es.v20180416.UpdateLogstashPipelineDesc", async function () {
272
+ try {
273
+ const data = await client.UpdateLogstashPipelineDesc({})
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
+
181
281
  it("es.v20180416.DescribeViews", async function () {
182
282
  try {
183
283
  const data = await client.DescribeViews({})
@@ -198,9 +298,19 @@ it("es.v20180416.CreateInstance", async function () {
198
298
  }
199
299
  })
200
300
 
201
- it("es.v20180416.UpdateIndex", async function () {
301
+ it("es.v20180416.UpgradeInstance", async function () {
202
302
  try {
203
- const data = await client.UpdateIndex({})
303
+ const data = await client.UpgradeInstance({})
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("es.v20180416.DeleteLogstashPipelines", async function () {
312
+ try {
313
+ const data = await client.DeleteLogstashPipelines({})
204
314
  expect(data).to.be.ok
205
315
  } catch(error) {
206
316
  expect(error.requestId).to.be.ok
@@ -228,9 +338,29 @@ it("es.v20180416.DeleteIndex", async function () {
228
338
  }
229
339
  })
230
340
 
231
- it("es.v20180416.UpgradeInstance", async function () {
341
+ it("es.v20180416.RestartLogstashInstance", async function () {
232
342
  try {
233
- const data = await client.UpgradeInstance({})
343
+ const data = await client.RestartLogstashInstance({})
344
+ expect(data).to.be.ok
345
+ } catch(error) {
346
+ expect(error.requestId).to.be.ok
347
+ expect(error.code).to.be.ok
348
+ }
349
+ })
350
+
351
+ it("es.v20180416.DescribeLogstashInstanceLogs", async function () {
352
+ try {
353
+ const data = await client.DescribeLogstashInstanceLogs({})
354
+ expect(data).to.be.ok
355
+ } catch(error) {
356
+ expect(error.requestId).to.be.ok
357
+ expect(error.code).to.be.ok
358
+ }
359
+ })
360
+
361
+ it("es.v20180416.UpdateDictionaries", async function () {
362
+ try {
363
+ const data = await client.UpdateDictionaries({})
234
364
  expect(data).to.be.ok
235
365
  } catch(error) {
236
366
  expect(error.requestId).to.be.ok
@@ -108,6 +108,16 @@ it("gaap.v20180529.CreateCustomHeader", async function () {
108
108
  }
109
109
  })
110
110
 
111
+ it("gaap.v20180529.DescribeCrossBorderProxies", async function () {
112
+ try {
113
+ const data = await client.DescribeCrossBorderProxies({})
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
+
111
121
  it("gaap.v20180529.DescribeGroupAndStatisticsProxy", async function () {
112
122
  try {
113
123
  const data = await client.DescribeGroupAndStatisticsProxy({})
@@ -828,6 +838,16 @@ it("gaap.v20180529.DescribeDomainErrorPageInfo", async function () {
828
838
  }
829
839
  })
830
840
 
841
+ it("gaap.v20180529.BanAndRecoverProxy", async function () {
842
+ try {
843
+ const data = await client.BanAndRecoverProxy({})
844
+ expect(data).to.be.ok
845
+ } catch(error) {
846
+ expect(error.requestId).to.be.ok
847
+ expect(error.code).to.be.ok
848
+ }
849
+ })
850
+
831
851
  it("gaap.v20180529.ModifyProxyGroupAttribute", async function () {
832
852
  try {
833
853
  const data = await client.ModifyProxyGroupAttribute({})
@@ -0,0 +1,81 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.iotvideo.v20211125.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("iotvideo.v20211125.test.js", function () {
20
+
21
+ it("iotvideo.v20211125.DescribeMessageDataStats", async function () {
22
+ try {
23
+ const data = await client.DescribeMessageDataStats({})
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("iotvideo.v20211125.CreateProduct", async function () {
32
+ try {
33
+ const data = await client.CreateProduct({})
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("iotvideo.v20211125.DescribeDeviceDataStats", async function () {
42
+ try {
43
+ const data = await client.DescribeDeviceDataStats({})
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("iotvideo.v20211125.GenSingleDeviceSignatureOfPublic", async function () {
52
+ try {
53
+ const data = await client.GenSingleDeviceSignatureOfPublic({})
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("iotvideo.v20211125.CallDeviceActionAsync", async function () {
62
+ try {
63
+ const data = await client.CallDeviceActionAsync({})
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("iotvideo.v20211125.CallDeviceActionSync", async function () {
72
+ try {
73
+ const data = await client.CallDeviceActionSync({})
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
+ })
@@ -0,0 +1,61 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.irp.v20220324.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("irp.v20220324.test.js", function () {
20
+
21
+ it("irp.v20220324.RecommendContent", async function () {
22
+ try {
23
+ const data = await client.RecommendContent({})
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("irp.v20220324.ReportMaterial", async function () {
32
+ try {
33
+ const data = await client.ReportMaterial({})
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("irp.v20220324.ReportAction", async function () {
42
+ try {
43
+ const data = await client.ReportAction({})
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("irp.v20220324.ReportPortrait", async function () {
52
+ try {
53
+ const data = await client.ReportPortrait({})
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
+ })