tencentcloud-sdk-nodejs 4.0.432 → 4.0.435

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 (68) hide show
  1. package/CHANGELOG.md +506 -0
  2. package/SERVICE_CHANGELOG.md +493 -52
  3. package/package.json +1 -1
  4. package/products.md +19 -19
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/as/v20180419/as_client.ts +3 -1
  7. package/src/services/as/v20180419/as_models.ts +18 -8
  8. package/src/services/asr/v20190614/asr_models.ts +13 -10
  9. package/src/services/clb/v20180317/clb_models.ts +2 -2
  10. package/src/services/cynosdb/v20190107/cynosdb_models.ts +1 -1
  11. package/src/services/es/v20180416/es_models.ts +11 -0
  12. package/src/services/ess/v20201111/ess_client.ts +43 -11
  13. package/src/services/ess/v20201111/ess_models.ts +289 -57
  14. package/src/services/essbasic/v20210526/essbasic_models.ts +1 -1
  15. package/src/services/faceid/v20180301/faceid_models.ts +5 -0
  16. package/src/services/gaap/v20180529/gaap_models.ts +9 -0
  17. package/src/services/live/v20180801/live_client.ts +1 -1
  18. package/src/services/monitor/v20180724/monitor_models.ts +12 -0
  19. package/src/services/tiia/v20190529/tiia_models.ts +5 -2
  20. package/src/services/tke/v20180525/tke_models.ts +6 -0
  21. package/src/services/trp/v20210515/trp_client.ts +1 -0
  22. package/src/services/trp/v20210515/trp_models.ts +62 -1
  23. package/src/services/trtc/v20190722/trtc_client.ts +1 -1
  24. package/src/services/vm/index.ts +2 -0
  25. package/src/services/vm/v20210922/index.ts +6 -0
  26. package/src/services/vm/v20210922/vm_client.ts +100 -0
  27. package/src/services/vm/v20210922/vm_models.ts +1023 -0
  28. package/src/services/vod/v20180717/vod_client.ts +3 -0
  29. package/src/services/vod/v20180717/vod_models.ts +201 -2
  30. package/src/services/vpc/v20170312/vpc_models.ts +2 -2
  31. package/src/services/waf/v20180125/waf_client.ts +2 -1
  32. package/src/services/waf/v20180125/waf_models.ts +133 -91
  33. package/tencentcloud/common/sdk_version.d.ts +1 -1
  34. package/tencentcloud/common/sdk_version.js +1 -1
  35. package/tencentcloud/services/as/v20180419/as_client.d.ts +3 -1
  36. package/tencentcloud/services/as/v20180419/as_client.js +3 -1
  37. package/tencentcloud/services/as/v20180419/as_models.d.ts +16 -8
  38. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +12 -10
  39. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2 -2
  40. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +1 -1
  41. package/tencentcloud/services/es/v20180416/es_models.d.ts +9 -0
  42. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +19 -6
  43. package/tencentcloud/services/ess/v20201111/ess_client.js +23 -6
  44. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +244 -49
  45. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
  46. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +4 -0
  47. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +8 -0
  48. package/tencentcloud/services/live/v20180801/live_client.d.ts +1 -1
  49. package/tencentcloud/services/live/v20180801/live_client.js +1 -1
  50. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +10 -0
  51. package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +5 -2
  52. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +5 -0
  53. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +51 -1
  54. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +1 -1
  55. package/tencentcloud/services/trtc/v20190722/trtc_client.js +1 -1
  56. package/tencentcloud/services/vm/index.d.ts +4 -0
  57. package/tencentcloud/services/vm/index.js +2 -0
  58. package/tencentcloud/services/vm/v20210922/index.d.ts +6 -0
  59. package/tencentcloud/services/vm/v20210922/index.js +9 -0
  60. package/tencentcloud/services/vm/v20210922/vm_client.d.ts +28 -0
  61. package/tencentcloud/services/vm/v20210922/vm_client.js +57 -0
  62. package/tencentcloud/services/vm/v20210922/vm_models.d.ts +866 -0
  63. package/tencentcloud/services/vm/v20210922/vm_models.js +18 -0
  64. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +175 -2
  65. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +2 -2
  66. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +110 -75
  67. package/test/ess.v20201111.test.js +22 -2
  68. package/test/vm.v20210922.test.js +61 -0
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3109,6 +3109,83 @@ export interface PornAsrReviewTemplateInfoForUpdate {
3109
3109
  */
3110
3110
  ReviewConfidence?: number;
3111
3111
  }
3112
+ /**
3113
+ * 音视频审核片段。
3114
+ */
3115
+ export interface ReviewAudioVideoSegmentItem {
3116
+ /**
3117
+ * 嫌疑片段起始的偏移时间,单位:秒。
3118
+ */
3119
+ StartTimeOffset: number;
3120
+ /**
3121
+ * 嫌疑片段结束的偏移时间,单位:秒。
3122
+ */
3123
+ EndTimeOffset: number;
3124
+ /**
3125
+ * 嫌疑片段涉及令人反感的信息的分数。
3126
+ */
3127
+ Confidence: number;
3128
+ /**
3129
+ * 嫌疑片段鉴别涉及违规信息的结果建议,取值范围:
3130
+ <li>review:疑似违规,建议复审;</li>
3131
+ <li>block:确认违规,建议封禁。</li>
3132
+ */
3133
+ Suggestion: string;
3134
+ /**
3135
+ * 嫌疑片段最可能的违规的标签,取值范围:
3136
+ <li>Porn:色情;</li>
3137
+ <li>Terrorism:暴恐;</li>
3138
+ <li>Political:令人不适宜的信息。</li>
3139
+ */
3140
+ Label: string;
3141
+ /**
3142
+ * 当 Form 为 Image 或 Voice 时有效,表示当前标签(Label)下的二级标签。
3143
+ 当 Form 为 Image 且 Label 为 Porn 时,取值范围:
3144
+ <li>porn:色情;</li>
3145
+ <li>vulgar:低俗。</li>
3146
+
3147
+ 当 Form 为 Image 且 Label 为 Terrorism 时,取值范围:
3148
+ <li>guns:武器枪支;</li>
3149
+ <li>bloody:血腥画面;</li>
3150
+ <li>banners:暴恐旗帜;</li>
3151
+ <li> scenario:暴恐画面;</li>
3152
+ <li>explosion:爆炸火灾。</li>
3153
+
3154
+ 当 Form 为 Image 且 Label 为 Political 时,取值范围:
3155
+ <li>violation_photo:违规图标;</li>
3156
+ <li>nation_politician:国家领导人;</li>
3157
+ <li>province_politician:省部级领导人;</li>
3158
+ <li>county_politician:市/县级领导人;</li>
3159
+ <li>sensitive_politician:敏感相关人物;</li>
3160
+ <li>foreign_politician:国外政治人物;</li>
3161
+ <li>sensitive_entertainment:敏感娱乐明星;</li>
3162
+ <li>sensitive_military:敏感军事人物。</li>
3163
+
3164
+ 当 Form 为 Voice 且 Label 为 Porn 时,取值范围:
3165
+ <li>moan:娇喘。</li>
3166
+ */
3167
+ SubLabel: string;
3168
+ /**
3169
+ * 嫌疑片段违禁的形式,取值范围:
3170
+ <li>Image:画面上的人物或图标;</li>
3171
+ <li>OCR:画面上的文字;</li>
3172
+ <li>ASR:语音中的文字;</li>
3173
+ <li>Voice:声音。</li>
3174
+ */
3175
+ Form: string;
3176
+ /**
3177
+ * 当 Form 为 Image 或 OCR 时有效,表示嫌疑人物、图标或文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
3178
+ */
3179
+ AreaCoordSet: Array<number>;
3180
+ /**
3181
+ * 当 Form 为 OCR 或 ASR 时有效,表示识别出来的 OCR 或 ASR 文本内容。
3182
+ */
3183
+ Text: string;
3184
+ /**
3185
+ * 当 Form 为 OCR 或 ASR 时有效,表示嫌疑片段命中的违规关键词列表。
3186
+ */
3187
+ KeywordSet: Array<string>;
3188
+ }
3112
3189
  /**
3113
3190
  * 点播文件视频转动图结果信息
3114
3191
  */
@@ -3203,6 +3280,14 @@ export interface ProductInstance {
3203
3280
  <li>Denied:不可退款。</li>
3204
3281
  */
3205
3282
  RefundStatus: string;
3283
+ /**
3284
+ * 自动续费状态,取值有:
3285
+ <li>Never:不自动续费。</li>
3286
+ <li>Expire:到期自动续费。</li>
3287
+ <li>ExpireOrUseOut:到期或用完自动续费。</li>
3288
+ <li>NotSupport:不支持。</li>
3289
+ */
3290
+ RenewStatus: string;
3206
3291
  }
3207
3292
  /**
3208
3293
  * CDN 日志信息
@@ -5371,6 +5456,46 @@ export interface SearchMediaResponse {
5371
5456
  */
5372
5457
  RequestId?: string;
5373
5458
  }
5459
+ /**
5460
+ * 音视频审核任务的输出。
5461
+ */
5462
+ export interface ReviewAudioVideoTaskOutput {
5463
+ /**
5464
+ * 音视频内容审核的结果建议,取值范围:
5465
+ <li>pass:建议通过;</li>
5466
+ <li>review:建议复审;</li>
5467
+ <li>block:建议封禁。</li>
5468
+ */
5469
+ Suggestion: string;
5470
+ /**
5471
+ * 当 Suggestion 为 review 或 block 时有效,表示音视频最可能的违规的标签,取值范围:
5472
+ <li>Porn:色情;</li>
5473
+ <li>Terrorism:暴恐;</li>
5474
+ <li>Political:令人不适宜的信息。</li>
5475
+ */
5476
+ Label: string;
5477
+ /**
5478
+ * 当 Suggestion 为 review 或 block 时有效,表示音视频最可能的违禁的形式,取值范围:
5479
+ <li>Image:画面上的人物或图标;</li>
5480
+ <li>OCR:画面上的文字;</li>
5481
+ <li>ASR:语音中的文字;</li>
5482
+ <li>Voice:声音。</li>
5483
+ */
5484
+ Form: string;
5485
+ /**
5486
+ * 有违规信息的嫌疑的视频片段列表。
5487
+ <font color=red>注意</font> :该列表最多仅展示前 10个 元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。
5488
+ */
5489
+ SegmentSet: Array<ReviewAudioVideoSegmentItem>;
5490
+ /**
5491
+ * 涉及违规信息的嫌疑的视频片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。
5492
+ */
5493
+ SegmentSetFileUrl: string;
5494
+ /**
5495
+ * 涉及违规信息的嫌疑的视频片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
5496
+ */
5497
+ SegmentSetFileUrlExpireTime: string;
5498
+ }
5374
5499
  /**
5375
5500
  * 智能去除水印任务的输出。
5376
5501
  */
@@ -9707,7 +9832,8 @@ export interface EventContent {
9707
9832
  <li>WechatPublishComplete:微信发布完成;</li>
9708
9833
  <li>ComposeMediaComplete:制作媒体文件完成;</li>
9709
9834
  <li>WechatMiniProgramPublishComplete:微信小程序发布完成。</li>
9710
- <li>FastClipMediaComplete:快速剪辑完成。</li>
9835
+ <li>FastClipMediaComplete:快速剪辑完成;</li>
9836
+ <li>ReviewAudioVideoComplete:音视频审核完成。</li>
9711
9837
  <b>兼容 2017 版的事件类型:</b>
9712
9838
  <li>TranscodeComplete:视频转码完成;</li>
9713
9839
  <li>ConcatComplete:视频拼接完成;</li>
@@ -9796,6 +9922,11 @@ export interface EventContent {
9796
9922
  注意:此字段可能返回 null,表示取不到有效值。
9797
9923
  */
9798
9924
  RestoreMediaCompleteEvent: RestoreMediaTask;
9925
+ /**
9926
+ * 音视频审核完成事件,当事件类型为 ReviewAudioVideoComplete 时有效。
9927
+ 注意:此字段可能返回 null,表示取不到有效值。
9928
+ */
9929
+ ReviewAudioVideoCompleteEvent: ReviewAudioVideoTask;
9799
9930
  }
9800
9931
  /**
9801
9932
  * 智能精彩片段任务控制参数
@@ -11052,7 +11183,8 @@ export interface DescribeTaskDetailResponse {
11052
11183
  <li>WechatMiniProgramPublish:微信小程序视频发布任务;</li>
11053
11184
  <li>PullUpload:拉取上传媒体文件任务;</li>
11054
11185
  <li>FastClipMedia:快速剪辑任务;</li>
11055
- <li>RemoveWatermarkTask:智能去除水印任务。</li>
11186
+ <li>RemoveWatermarkTask:智能去除水印任务;</li>
11187
+ <li> ReviewAudioVideo:音视频审核任务。</li>
11056
11188
  */
11057
11189
  TaskType: string;
11058
11190
  /**
@@ -11139,6 +11271,11 @@ export interface DescribeTaskDetailResponse {
11139
11271
  注意:此字段可能返回 null,表示取不到有效值。
11140
11272
  */
11141
11273
  RemoveWatermarkTask: RemoveWatermarkTask;
11274
+ /**
11275
+ * 音视频审核任务信息,仅当 TaskType 为 ReviewAudioVideo,该字段有值。
11276
+ 注意:此字段可能返回 null,表示取不到有效值。
11277
+ */
11278
+ ReviewAudioVideoTask: ReviewAudioVideoTask;
11142
11279
  /**
11143
11280
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11144
11281
  */
@@ -11772,6 +11909,42 @@ export interface TaskSimpleInfo {
11772
11909
  */
11773
11910
  SessionContext: string;
11774
11911
  }
11912
+ /**
11913
+ * 音视频审核任务信息。
11914
+ */
11915
+ export interface ReviewAudioVideoTask {
11916
+ /**
11917
+ * 任务 ID。
11918
+ */
11919
+ TaskId: string;
11920
+ /**
11921
+ * 任务状态,取值:
11922
+ <li>PROCESSING:处理中;</li>
11923
+ <li>FINISH:已完成。</li>
11924
+ */
11925
+ Status: string;
11926
+ /**
11927
+ * 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
11928
+ */
11929
+ ErrCodeExt: string;
11930
+ /**
11931
+ * 错误信息。
11932
+ */
11933
+ Message: string;
11934
+ /**
11935
+ * 音视频审核任务的输出。
11936
+ 注意:此字段可能返回 null,表示取不到有效值。
11937
+ */
11938
+ Output: ReviewAudioVideoTaskOutput;
11939
+ /**
11940
+ * 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
11941
+ */
11942
+ SessionId: string;
11943
+ /**
11944
+ * 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
11945
+ */
11946
+ SessionContext: string;
11947
+ }
11775
11948
  /**
11776
11949
  * DescribeSnapshotByTimeOffsetTemplates返回参数结构体
11777
11950
  */
@@ -5614,8 +5614,8 @@ export interface DescribeSecurityGroupPoliciesRequest {
5614
5614
  */
5615
5615
  SecurityGroupId: string;
5616
5616
  /**
5617
- * 过滤条件,不支持同时指定SecurityGroupId和Filters参数。
5618
- <li>security-group-id - String - 安全组ID。</li>
5617
+ * 过滤条件。
5618
+ <li>security-group-id - String - 规则中的安全组ID。</li>
5619
5619
  <li>ip - String - IP,支持IPV4和IPV6模糊匹配。</li>
5620
5620
  <li>address-module - String - IP地址模板或IP地址组模板ID。</li>
5621
5621
  <li>service-module - String - 协议端口模板或协议端口组模板ID。</li>
@@ -1077,95 +1077,29 @@ export interface ModifyAccessPeriodRequest {
1077
1077
  TopicId: string;
1078
1078
  }
1079
1079
  /**
1080
- * 一个实例的详细信息
1080
+ * bot的qps详情
1081
1081
  */
1082
- export interface InstanceInfo {
1083
- /**
1084
- * id
1085
- */
1086
- InstanceId: string;
1087
- /**
1088
- * name
1089
- */
1090
- InstanceName: string;
1082
+ export interface BotQPS {
1091
1083
  /**
1092
1084
  * 资源id
1093
1085
  */
1094
1086
  ResourceIds: string;
1095
1087
  /**
1096
- * 地域
1097
- */
1098
- Region: string;
1099
- /**
1100
- * 付费模式
1101
- */
1102
- PayMode: number;
1103
- /**
1104
- * 自动续费
1105
- */
1106
- RenewFlag: number;
1107
- /**
1108
- * 弹性计费
1109
- */
1110
- Mode: number;
1111
- /**
1112
- * 套餐版本
1113
- */
1114
- Level: number;
1115
- /**
1116
- * 过期时间
1088
+ * 有效时间
1117
1089
  */
1118
1090
  ValidTime: string;
1119
1091
  /**
1120
- * 开始时间
1121
- */
1122
- BeginTime: string;
1123
- /**
1124
- * 已用
1125
- */
1126
- DomainCount: number;
1127
- /**
1128
- * 上限
1129
- */
1130
- SubDomainLimit: number;
1131
- /**
1132
- * 已用
1092
+ * 资源数量
1133
1093
  */
1134
- MainDomainCount: number;
1135
- /**
1136
- * 上限
1137
- */
1138
- MainDomainLimit: number;
1139
- /**
1140
- * 峰值
1141
- */
1142
- MaxQPS: number;
1143
- /**
1144
- * qps套餐
1145
- */
1146
- QPS: QPSPackageNew;
1147
- /**
1148
- * 域名套餐
1149
- */
1150
- DomainPkg: DomainPackageNew;
1151
- /**
1152
- * 用户appid
1153
- */
1154
- AppId: number;
1155
- /**
1156
- * clb或saas
1157
- */
1158
- Edition: string;
1094
+ Count: number;
1159
1095
  /**
1160
- * 业务安全包
1161
- 注意:此字段可能返回 null,表示取不到有效值。
1096
+ * 资源所在地区
1162
1097
  */
1163
- FraudPkg?: FraudPkg;
1098
+ Region: string;
1164
1099
  /**
1165
- * Bot资源包
1166
- 注意:此字段可能返回 null,表示取不到有效值。
1100
+ * 使用qps的最大值
1167
1101
  */
1168
- BotPkg?: BotPkg;
1102
+ MaxBotQPS: number;
1169
1103
  }
1170
1104
  /**
1171
1105
  * ModifyWafAutoDenyRules返回参数结构体
@@ -1302,6 +1236,102 @@ export interface AccessLogInfo {
1302
1236
  */
1303
1237
  LogJson: string;
1304
1238
  }
1239
+ /**
1240
+ * 一个实例的详细信息
1241
+ */
1242
+ export interface InstanceInfo {
1243
+ /**
1244
+ * id
1245
+ */
1246
+ InstanceId: string;
1247
+ /**
1248
+ * name
1249
+ */
1250
+ InstanceName: string;
1251
+ /**
1252
+ * 资源id
1253
+ */
1254
+ ResourceIds: string;
1255
+ /**
1256
+ * 地域
1257
+ */
1258
+ Region: string;
1259
+ /**
1260
+ * 付费模式
1261
+ */
1262
+ PayMode: number;
1263
+ /**
1264
+ * 自动续费
1265
+ */
1266
+ RenewFlag: number;
1267
+ /**
1268
+ * 弹性计费
1269
+ */
1270
+ Mode: number;
1271
+ /**
1272
+ * 套餐版本
1273
+ */
1274
+ Level: number;
1275
+ /**
1276
+ * 过期时间
1277
+ */
1278
+ ValidTime: string;
1279
+ /**
1280
+ * 开始时间
1281
+ */
1282
+ BeginTime: string;
1283
+ /**
1284
+ * 已用
1285
+ */
1286
+ DomainCount: number;
1287
+ /**
1288
+ * 上限
1289
+ */
1290
+ SubDomainLimit: number;
1291
+ /**
1292
+ * 已用
1293
+ */
1294
+ MainDomainCount: number;
1295
+ /**
1296
+ * 上限
1297
+ */
1298
+ MainDomainLimit: number;
1299
+ /**
1300
+ * 峰值
1301
+ */
1302
+ MaxQPS: number;
1303
+ /**
1304
+ * qps套餐
1305
+ */
1306
+ QPS: QPSPackageNew;
1307
+ /**
1308
+ * 域名套餐
1309
+ */
1310
+ DomainPkg: DomainPackageNew;
1311
+ /**
1312
+ * 用户appid
1313
+ */
1314
+ AppId: number;
1315
+ /**
1316
+ * clb或saas
1317
+ */
1318
+ Edition: string;
1319
+ /**
1320
+ * 业务安全包
1321
+ 注意:此字段可能返回 null,表示取不到有效值。
1322
+ */
1323
+ FraudPkg?: FraudPkg;
1324
+ /**
1325
+ * Bot资源包
1326
+ 注意:此字段可能返回 null,表示取不到有效值。
1327
+ */
1328
+ BotPkg?: BotPkg;
1329
+ /**
1330
+ * bot的qps详情
1331
+ 注意:此字段可能返回 null,表示取不到有效值。
1332
+ */
1333
+ BotQPS?: BotQPS;
1334
+ }
1305
1335
  /**
1306
1336
  * 用于 DescribeAccessIndex 的出参
1307
1337
  */
@@ -2079,6 +2109,11 @@ export interface BotPkg {
2079
2109
  注意:此字段可能返回 null,表示取不到有效值。
2080
2110
  */
2081
2111
  UsedNum?: number;
2112
+ /**
2113
+ * 子产品code
2114
+ 注意:此字段可能返回 null,表示取不到有效值。
2115
+ */
2116
+ Type?: string;
2082
2117
  }
2083
2118
  /**
2084
2119
  * ModifyWafThreatenIntelligence返回参数结构体
@@ -28,6 +28,16 @@ it("ess.v20201111.DescribeFileUrls", async function () {
28
28
  }
29
29
  })
30
30
 
31
+ it("ess.v20201111.DescribeFlowInfo", async function () {
32
+ try {
33
+ const data = await client.DescribeFlowInfo({})
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
+
31
41
  it("ess.v20201111.StartFlow", async function () {
32
42
  try {
33
43
  const data = await client.StartFlow({})
@@ -108,6 +118,16 @@ it("ess.v20201111.CreateFlow", async function () {
108
118
  }
109
119
  })
110
120
 
121
+ it("ess.v20201111.CreateFlowByFiles", async function () {
122
+ try {
123
+ const data = await client.CreateFlowByFiles({})
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("ess.v20201111.CancelMultiFlowSignQRCode", async function () {
112
132
  try {
113
133
  const data = await client.CancelMultiFlowSignQRCode({})
@@ -178,9 +198,9 @@ it("ess.v20201111.DescribeFlowBriefs", async function () {
178
198
  }
179
199
  })
180
200
 
181
- it("ess.v20201111.CreateFlowByFiles", async function () {
201
+ it("ess.v20201111.CreateFlowApprovers", async function () {
182
202
  try {
183
- const data = await client.CreateFlowByFiles({})
203
+ const data = await client.CreateFlowApprovers({})
184
204
  expect(data).to.be.ok
185
205
  } catch(error) {
186
206
  expect(error.requestId).to.be.ok
@@ -0,0 +1,61 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.vm.v20210922.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("vm.v20210922.test.js", function () {
20
+
21
+ it("vm.v20210922.DescribeTaskDetail", async function () {
22
+ try {
23
+ const data = await client.DescribeTaskDetail({})
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("vm.v20210922.CreateVideoModerationTask", async function () {
32
+ try {
33
+ const data = await client.CreateVideoModerationTask({})
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("vm.v20210922.DescribeTasks", async function () {
42
+ try {
43
+ const data = await client.DescribeTasks({})
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("vm.v20210922.CancelTask", async function () {
52
+ try {
53
+ const data = await client.CancelTask({})
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
+ })