tencentcloud-sdk-nodejs 4.0.378 → 4.0.379

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 +230 -0
  2. package/SERVICE_CHANGELOG.md +707 -69
  3. package/package.json +1 -1
  4. package/products.md +33 -32
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_client.ts +25 -0
  7. package/src/services/antiddos/v20200309/antiddos_models.ts +160 -0
  8. package/src/services/apm/v20210622/apm_models.ts +25 -10
  9. package/src/services/cat/v20180409/cat_models.ts +59 -14
  10. package/src/services/cdb/v20170320/cdb_models.ts +1 -1
  11. package/src/services/cdn/v20180606/cdn_client.ts +273 -272
  12. package/src/services/cdn/v20180606/cdn_models.ts +6322 -6296
  13. package/src/services/clb/v20180317/clb_client.ts +2 -2
  14. package/src/services/clb/v20180317/clb_models.ts +2 -2
  15. package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +2 -2
  16. package/src/services/cls/v20201016/cls_client.ts +1 -0
  17. package/src/services/cls/v20201016/cls_models.ts +21 -1
  18. package/src/services/cpdp/v20190820/cpdp_client.ts +40 -1
  19. package/src/services/cpdp/v20190820/cpdp_models.ts +352 -11
  20. package/src/services/cvm/v20170312/cvm_client.ts +0 -2
  21. package/src/services/cvm/v20170312/cvm_models.ts +11 -1
  22. package/src/services/cynosdb/v20190107/cynosdb_models.ts +24 -9
  23. package/src/services/dlc/v20210125/dlc_models.ts +46 -2
  24. package/src/services/es/v20180416/es_client.ts +4 -2
  25. package/src/services/es/v20180416/es_models.ts +100 -23
  26. package/src/services/ess/v20201111/ess_models.ts +6 -3
  27. package/src/services/essbasic/v20210526/essbasic_models.ts +5 -3
  28. package/src/services/gaap/v20180529/gaap_models.ts +16 -0
  29. package/src/services/gpm/v20200820/gpm_client.ts +72 -36
  30. package/src/services/gse/v20191112/gse_client.ts +288 -140
  31. package/src/services/iai/v20180301/iai_client.ts +11 -1
  32. package/src/services/index.ts +1 -0
  33. package/src/services/iotvideo/index.ts +2 -0
  34. package/src/services/iotvideo/v20211125/index.ts +6 -0
  35. package/src/services/iotvideo/v20211125/iotvideo_client.ts +81 -0
  36. package/src/services/iotvideo/v20211125/iotvideo_models.ts +262 -0
  37. package/src/services/irp/index.ts +5 -0
  38. package/src/services/irp/v20220324/index.ts +6 -0
  39. package/src/services/irp/v20220324/irp_client.ts +87 -0
  40. package/src/services/irp/v20220324/irp_models.ts +708 -0
  41. package/src/services/live/v20180801/live_client.ts +28 -89
  42. package/src/services/live/v20180801/live_models.ts +235 -406
  43. package/src/services/mgobe/v20201014/mgobe_client.ts +28 -14
  44. package/src/services/oceanus/v20190422/oceanus_client.ts +140 -99
  45. package/src/services/oceanus/v20190422/oceanus_models.ts +435 -54
  46. package/src/services/ocr/v20181119/ocr_models.ts +17 -7
  47. package/src/services/redis/v20180412/redis_models.ts +6 -1
  48. package/src/services/rum/v20210622/rum_models.ts +25 -0
  49. package/src/services/tem/v20210701/tem_models.ts +9 -3
  50. package/src/services/teo/v20220106/teo_client.ts +2 -1
  51. package/src/services/teo/v20220106/teo_models.ts +44 -8
  52. package/src/services/tke/v20180525/tke_models.ts +8 -1
  53. package/src/services/tse/v20201207/tse_models.ts +16 -0
  54. package/src/services/vod/v20180717/vod_models.ts +43 -12
  55. package/src/services/yinsuda/v20220527/yinsuda_models.ts +10 -0
  56. package/tencentcloud/common/sdk_version.d.ts +1 -1
  57. package/tencentcloud/common/sdk_version.js +1 -1
  58. package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +9 -1
  59. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +12 -0
  60. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +133 -0
  61. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +23 -10
  62. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +45 -0
  63. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
  64. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
  65. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +5485 -5463
  66. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +2 -2
  67. package/tencentcloud/services/clb/v20180317/clb_client.js +2 -2
  68. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2 -2
  69. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +2 -2
  70. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +18 -1
  71. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +14 -2
  72. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +19 -1
  73. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +297 -8
  74. package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +0 -2
  75. package/tencentcloud/services/cvm/v20170312/cvm_client.js +0 -2
  76. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +9 -1
  77. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +21 -9
  78. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +38 -2
  79. package/tencentcloud/services/es/v20180416/es_client.d.ts +1 -1
  80. package/tencentcloud/services/es/v20180416/es_models.d.ts +84 -20
  81. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -2
  82. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -3
  83. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +13 -0
  84. package/tencentcloud/services/gpm/v20200820/gpm_client.d.ts +54 -18
  85. package/tencentcloud/services/gpm/v20200820/gpm_client.js +54 -18
  86. package/tencentcloud/services/gse/v20191112/gse_client.d.ts +222 -74
  87. package/tencentcloud/services/gse/v20191112/gse_client.js +222 -74
  88. package/tencentcloud/services/iai/v20180301/iai_client.d.ts +10 -0
  89. package/tencentcloud/services/iai/v20180301/iai_client.js +10 -0
  90. package/tencentcloud/services/index.d.ts +1 -0
  91. package/tencentcloud/services/index.js +2 -0
  92. package/tencentcloud/services/iotvideo/index.d.ts +4 -0
  93. package/tencentcloud/services/iotvideo/index.js +2 -0
  94. package/tencentcloud/services/iotvideo/v20211125/index.d.ts +6 -0
  95. package/tencentcloud/services/iotvideo/v20211125/index.js +9 -0
  96. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +26 -0
  97. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +55 -0
  98. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +210 -0
  99. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.js +18 -0
  100. package/tencentcloud/services/irp/index.d.ts +6 -0
  101. package/tencentcloud/services/irp/index.js +7 -0
  102. package/tencentcloud/services/irp/v20220324/index.d.ts +6 -0
  103. package/tencentcloud/services/irp/v20220324/index.js +9 -0
  104. package/tencentcloud/services/irp/v20220324/irp_client.d.ts +26 -0
  105. package/tencentcloud/services/irp/v20220324/irp_client.js +55 -0
  106. package/tencentcloud/services/irp/v20220324/irp_models.d.ts +572 -0
  107. package/tencentcloud/services/irp/v20220324/irp_models.js +18 -0
  108. package/tencentcloud/services/live/v20180801/live_client.d.ts +7 -28
  109. package/tencentcloud/services/live/v20180801/live_client.js +8 -39
  110. package/tencentcloud/services/live/v20180801/live_models.d.ts +207 -354
  111. package/tencentcloud/services/mgobe/v20201014/mgobe_client.d.ts +21 -7
  112. package/tencentcloud/services/mgobe/v20201014/mgobe_client.js +21 -7
  113. package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +49 -37
  114. package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +72 -54
  115. package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +366 -46
  116. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -6
  117. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +5 -1
  118. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +20 -0
  119. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +7 -2
  120. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +37 -6
  121. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +7 -1
  122. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +13 -0
  123. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +38 -11
  124. package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +8 -0
  125. package/test/antiddos.v20200309.test.js +20 -0
  126. package/test/cpdp.v20190820.test.js +30 -0
  127. package/test/iotvideo.v20211125.test.js +61 -0
  128. package/test/irp.v20220324.test.js +61 -0
  129. package/test/live.v20180801.test.js +4 -54
  130. package/test/oceanus.v20190422.test.js +64 -34
@@ -1133,6 +1133,12 @@ export interface ExistedInstance {
1133
1133
  注意:此字段可能返回 null,表示取不到有效值。
1134
1134
  */
1135
1135
  InstanceChargeType: string;
1136
+ /**
1137
+ * 实例的IPv6地址。
1138
+ 注意:此字段可能返回 null,表示取不到有效值。
1139
+ 注意:此字段可能返回 null,表示取不到有效值。
1140
+ */
1141
+ IPv6Addresses: Array<string>;
1136
1142
  }
1137
1143
  /**
1138
1144
  * AddNodeToNodePool返回参数结构体
@@ -3234,7 +3240,7 @@ export interface ClusterCIDRSettings {
3234
3240
  */
3235
3241
  IgnoreClusterCIDRConflict?: boolean;
3236
3242
  /**
3237
- * 集群中每个Node上最大的Pod数量。取值范围4~256。不为2的幂值时会向上取最接近的2的幂值。
3243
+ * 集群中每个Node上最大的Pod数量。取值范围16~256。不为2的幂值时会向上取最接近的2的幂值。
3238
3244
  */
3239
3245
  MaxNodePodNum?: number;
3240
3246
  /**
@@ -424,6 +424,10 @@ export interface ServiceGovernanceInfo {
424
424
  * 主账户名默认为 polaris,该值为主账户的默认密码
425
425
  */
426
426
  MainPassword?: string;
427
+ /**
428
+ * 服务治理pushgateway引擎绑定的网络信息
429
+ */
430
+ PgwVpcInfos?: Array<VpcInfo>;
427
431
  }
428
432
  /**
429
433
  * DescribeNacosReplicas返回参数结构体
@@ -685,6 +689,10 @@ export interface DescribeSREInstanceAccessAddressRequest {
685
689
  * 子网ID
686
690
  */
687
691
  SubnetId?: string;
692
+ /**
693
+ * 引擎其他组件名称(pushgateway)
694
+ */
695
+ Workload?: string;
688
696
  }
689
697
  /**
690
698
  * DescribeNacosServerInterfaces返回参数结构体
@@ -816,6 +824,11 @@ export interface EnvAddressInfo {
816
824
  * config公网ip
817
825
  */
818
826
  ConfigInternetServiceIp: string;
827
+ /**
828
+ * config内网访问地址
829
+ 注意:此字段可能返回 null,表示取不到有效值。
830
+ */
831
+ ConfigIntranetAddress: string;
819
832
  }
820
833
  /**
821
834
  * 引擎实例的标签信息
@@ -2088,6 +2088,10 @@ export interface DescribeMediaProcessUsageDataRequest {
2088
2088
  * 结束日期,需大于等于起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。
2089
2089
  */
2090
2090
  EndTime: string;
2091
+ /**
2092
+ * <b>点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
2093
+ */
2094
+ SubAppId?: number;
2091
2095
  /**
2092
2096
  * 查询视频处理任务类型,目前支持的任务类型包括:
2093
2097
  <li> Transcoding: 普通转码</li>
@@ -2096,14 +2100,12 @@ export interface DescribeMediaProcessUsageDataRequest {
2096
2100
  <li> Editing-TESHD: 极速高清视频编辑</li>
2097
2101
  <li> AdaptiveBitrateStreaming: 自适应码流</li>
2098
2102
  <li> ContentAudit: 内容审核</li>
2103
+ <li> ContentRecognition: 内容识别</li>
2099
2104
  <li> RemoveWatermark: 去除水印</li>
2105
+ <li> ExtractTraceWatermark: 提取水印</li>
2100
2106
  <li>Transcode: 转码,包含普通转码、极速高清和视频编辑(不推荐使用)</li>
2101
2107
  */
2102
2108
  Type?: string;
2103
- /**
2104
- * 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
2105
- */
2106
- SubAppId?: number;
2107
2109
  }
2108
2110
  /**
2109
2111
  * CreatePersonSample请求参数结构体
@@ -3201,8 +3203,10 @@ export interface TaskStatData {
3201
3203
  <li> Editing: 视频编辑</li>
3202
3204
  <li> Editing-TESHD: 极速高清视频编辑</li>
3203
3205
  <li> AdaptiveBitrateStreaming: 自适应码流</li>
3204
- <li> ContentAudit: 智能识别</li>
3206
+ <li> ContentAudit: 内容审核</li>
3207
+ <li> ContentRecognition: 内容识别</li>
3205
3208
  <li> RemoveWatermark: 去水印</li>
3209
+ <li> ExtractTraceWatermark: 提取水印</li>
3206
3210
  <li>Transcode: 转码,包含普通转码、极速高清和视频编辑(不推荐使用)</li>
3207
3211
  */
3208
3212
  TaskType: string;
@@ -3257,12 +3261,12 @@ export interface TaskStatData {
3257
3261
  <li>Edit.TESHD-10.H265.2K: H.265编码方式2K极速高清视频编辑</li>
3258
3262
  <li>Edit.TESHD-10.H265.4K: H.265编码方式4K极速高清视频编辑</li>
3259
3263
  去水印规格:
3260
- <li>480P: 分辨率640*480及以下</li>
3261
- <li>720P: 分辨率1280*720及以下</li>
3262
- <li>1080P: 分辨率1920*1080及以下</li>
3263
- <li>2K: 分辨率2560*1440及以下</li>
3264
- <li>4K: 分辨率3840*2160及以下</li>
3265
- <li>8K: 分辨率7680*4320及以下</li>
3264
+ <li>480P: 短边 ≤ 480px</li>
3265
+ <li>720P: 短边 ≤ 720px</li>
3266
+ <li>1080P: 短边 ≤ 1080px</li>
3267
+ <li>2K: 短边 ≤ 1440px</li>
3268
+ <li>4K: 短边 ≤ 2160px</li>
3269
+ <li>8K: 短边 ≤ 4320px</li>
3266
3270
  */
3267
3271
  Details: Array<SpecificationDataItem>;
3268
3272
  }
@@ -4224,6 +4228,13 @@ export interface ImageWatermarkInput {
4224
4228
  <li>repeat:水印循环播放,直到视频结束(默认值)。</li>
4225
4229
  */
4226
4230
  RepeatType?: string;
4231
+ /**
4232
+ * 图片透明度,取值范围:[0, 100]
4233
+ <li>0:完全不透明</li>
4234
+ <li>100:完全透明</li>
4235
+ 默认值:0。
4236
+ */
4237
+ Transparency?: number;
4227
4238
  }
4228
4239
  /**
4229
4240
  * 物体识别任务控制参数
@@ -5918,6 +5929,12 @@ export interface ImageWatermarkTemplate {
5918
5929
  <li>repeat:水印循环播放,直到视频结束。</li>
5919
5930
  */
5920
5931
  RepeatType: string;
5932
+ /**
5933
+ * 图片透明度,取值范围:[0, 100]
5934
+ <li>0:完全不透明</li>
5935
+ <li>100:完全透明。</li>
5936
+ */
5937
+ Transparency: number;
5921
5938
  }
5922
5939
  /**
5923
5940
  * ModifySubAppIdInfo返回参数结构体
@@ -7314,6 +7331,12 @@ export interface ImageWatermarkInputForUpdate {
7314
7331
  <li>repeat:水印循环播放,直到视频结束。</li>
7315
7332
  */
7316
7333
  RepeatType?: string;
7334
+ /**
7335
+ * 图片透明度,取值范围:[0, 100]
7336
+ <li>0:完全不透明</li>
7337
+ <li>100:完全透明。</li>
7338
+ */
7339
+ Transparency?: number;
7317
7340
  }
7318
7341
  /**
7319
7342
  * DescribeAIAnalysisTemplates请求参数结构体
@@ -10014,6 +10037,10 @@ export interface AiRecognitionTaskAsrFullTextResult {
10014
10037
  注意:此字段可能返回 null,表示取不到有效值。
10015
10038
  */
10016
10039
  Output: AiRecognitionTaskAsrFullTextResultOutput;
10040
+ /**
10041
+ * 任务进度,取值范围 [0-100] 。
10042
+ */
10043
+ Progress: number;
10017
10044
  }
10018
10045
  /**
10019
10046
  * 图片智能内容识别任务输入
@@ -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({})
@@ -0,0 +1,61 @@
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.CallDeviceActionAsync", async function () {
32
+ try {
33
+ const data = await client.CallDeviceActionAsync({})
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.CallDeviceActionSync", async function () {
42
+ try {
43
+ const data = await client.CallDeviceActionSync({})
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.DescribeDeviceDataStats", async function () {
52
+ try {
53
+ const data = await client.DescribeDeviceDataStats({})
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
+ })
@@ -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
+ })
@@ -108,9 +108,9 @@ it("live.v20180801.DescribeLiveStreamEventList", async function () {
108
108
  }
109
109
  })
110
110
 
111
- it("live.v20180801.CreateCommonMixStream", async function () {
111
+ it("live.v20180801.DescribePullStreamConfigs", async function () {
112
112
  try {
113
- const data = await client.CreateCommonMixStream({})
113
+ const data = await client.DescribePullStreamConfigs({})
114
114
  expect(data).to.be.ok
115
115
  } catch(error) {
116
116
  expect(error.requestId).to.be.ok
@@ -228,16 +228,6 @@ it("live.v20180801.DescribeLiveRecordTemplates", async function () {
228
228
  }
229
229
  })
230
230
 
231
- it("live.v20180801.ModifyLiveDomainCert", async function () {
232
- try {
233
- const data = await client.ModifyLiveDomainCert({})
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
231
  it("live.v20180801.DescribeVisitTopSumInfoList", async function () {
242
232
  try {
243
233
  const data = await client.DescribeVisitTopSumInfoList({})
@@ -388,9 +378,9 @@ it("live.v20180801.StopScreenshotTask", async function () {
388
378
  }
389
379
  })
390
380
 
391
- it("live.v20180801.DescribePullStreamConfigs", async function () {
381
+ it("live.v20180801.CreateCommonMixStream", async function () {
392
382
  try {
393
- const data = await client.DescribePullStreamConfigs({})
383
+ const data = await client.CreateCommonMixStream({})
394
384
  expect(data).to.be.ok
395
385
  } catch(error) {
396
386
  expect(error.requestId).to.be.ok
@@ -538,16 +528,6 @@ it("live.v20180801.DescribeLiveCert", async function () {
538
528
  }
539
529
  })
540
530
 
541
- it("live.v20180801.ModifyLiveCert", async function () {
542
- try {
543
- const data = await client.ModifyLiveCert({})
544
- expect(data).to.be.ok
545
- } catch(error) {
546
- expect(error.requestId).to.be.ok
547
- expect(error.code).to.be.ok
548
- }
549
- })
550
-
551
531
  it("live.v20180801.DescribeLiveDomains", async function () {
552
532
  try {
553
533
  const data = await client.DescribeLiveDomains({})
@@ -568,16 +548,6 @@ it("live.v20180801.ModifyLivePullStreamTask", async function () {
568
548
  }
569
549
  })
570
550
 
571
- it("live.v20180801.DeleteLiveCert", async function () {
572
- try {
573
- const data = await client.DeleteLiveCert({})
574
- expect(data).to.be.ok
575
- } catch(error) {
576
- expect(error.requestId).to.be.ok
577
- expect(error.code).to.be.ok
578
- }
579
- })
580
-
581
551
  it("live.v20180801.CreateLiveCallbackTemplate", async function () {
582
552
  try {
583
553
  const data = await client.CreateLiveCallbackTemplate({})
@@ -658,16 +628,6 @@ it("live.v20180801.DescribeStreamPlayInfoList", async function () {
658
628
  }
659
629
  })
660
630
 
661
- it("live.v20180801.CreateLiveCert", async function () {
662
- try {
663
- const data = await client.CreateLiveCert({})
664
- expect(data).to.be.ok
665
- } catch(error) {
666
- expect(error.requestId).to.be.ok
667
- expect(error.code).to.be.ok
668
- }
669
- })
670
-
671
631
  it("live.v20180801.DescribeLiveTranscodeRules", async function () {
672
632
  try {
673
633
  const data = await client.DescribeLiveTranscodeRules({})
@@ -848,16 +808,6 @@ it("live.v20180801.CreateLiveCallbackRule", async function () {
848
808
  }
849
809
  })
850
810
 
851
- it("live.v20180801.BindLiveDomainCert", async function () {
852
- try {
853
- const data = await client.BindLiveDomainCert({})
854
- expect(data).to.be.ok
855
- } catch(error) {
856
- expect(error.requestId).to.be.ok
857
- expect(error.code).to.be.ok
858
- }
859
- })
860
-
861
811
  it("live.v20180801.DescribeLiveCallbackRules", async function () {
862
812
  try {
863
813
  const data = await client.DescribeLiveCallbackRules({})