1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package v20180717 16 17import ( 18 "encoding/json" 19 tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" 20 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 21) 22 23type AIAnalysisTemplateItem struct { 24 25 // 智能分析模板唯一标识。 26 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 27 28 // 智能分析模板名称。 29 Name *string `json:"Name,omitempty" name:"Name"` 30 31 // 智能分析模板描述信息。 32 Comment *string `json:"Comment,omitempty" name:"Comment"` 33 34 // 智能分类任务控制参数。 35 // 注意:此字段可能返回 null,表示取不到有效值。 36 ClassificationConfigure *ClassificationConfigureInfo `json:"ClassificationConfigure,omitempty" name:"ClassificationConfigure"` 37 38 // 智能标签任务控制参数。 39 // 注意:此字段可能返回 null,表示取不到有效值。 40 TagConfigure *TagConfigureInfo `json:"TagConfigure,omitempty" name:"TagConfigure"` 41 42 // 智能封面任务控制参数。 43 // 注意:此字段可能返回 null,表示取不到有效值。 44 CoverConfigure *CoverConfigureInfo `json:"CoverConfigure,omitempty" name:"CoverConfigure"` 45 46 // 智能按帧标签任务控制参数。 47 // 注意:此字段可能返回 null,表示取不到有效值。 48 FrameTagConfigure *FrameTagConfigureInfo `json:"FrameTagConfigure,omitempty" name:"FrameTagConfigure"` 49 50 // 智能精彩集锦任务控制参数。 51 HighlightConfigure *HighlightsConfigureInfo `json:"HighlightConfigure,omitempty" name:"HighlightConfigure"` 52 53 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 54 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 55 56 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 57 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 58} 59 60type AIRecognitionTemplateItem struct { 61 62 // 视频内容识别模板唯一标识。 63 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 64 65 // 视频内容识别模板名称。 66 Name *string `json:"Name,omitempty" name:"Name"` 67 68 // 视频内容识别模板描述信息。 69 Comment *string `json:"Comment,omitempty" name:"Comment"` 70 71 // 头尾识别控制参数。 72 // 注意:此字段可能返回 null,表示取不到有效值。 73 HeadTailConfigure *HeadTailConfigureInfo `json:"HeadTailConfigure,omitempty" name:"HeadTailConfigure"` 74 75 // 拆条识别控制参数。 76 // 注意:此字段可能返回 null,表示取不到有效值。 77 SegmentConfigure *SegmentConfigureInfo `json:"SegmentConfigure,omitempty" name:"SegmentConfigure"` 78 79 // 人脸识别控制参数。 80 // 注意:此字段可能返回 null,表示取不到有效值。 81 FaceConfigure *FaceConfigureInfo `json:"FaceConfigure,omitempty" name:"FaceConfigure"` 82 83 // 文本全文识别控制参数。 84 // 注意:此字段可能返回 null,表示取不到有效值。 85 OcrFullTextConfigure *OcrFullTextConfigureInfo `json:"OcrFullTextConfigure,omitempty" name:"OcrFullTextConfigure"` 86 87 // 文本关键词识别控制参数。 88 // 注意:此字段可能返回 null,表示取不到有效值。 89 OcrWordsConfigure *OcrWordsConfigureInfo `json:"OcrWordsConfigure,omitempty" name:"OcrWordsConfigure"` 90 91 // 语音全文识别控制参数。 92 // 注意:此字段可能返回 null,表示取不到有效值。 93 AsrFullTextConfigure *AsrFullTextConfigureInfo `json:"AsrFullTextConfigure,omitempty" name:"AsrFullTextConfigure"` 94 95 // 语音关键词识别控制参数。 96 // 注意:此字段可能返回 null,表示取不到有效值。 97 AsrWordsConfigure *AsrWordsConfigureInfo `json:"AsrWordsConfigure,omitempty" name:"AsrWordsConfigure"` 98 99 // 物体识别控制参数。 100 // 注意:此字段可能返回 null,表示取不到有效值。 101 ObjectConfigure *ObjectConfigureInfo `json:"ObjectConfigure,omitempty" name:"ObjectConfigure"` 102 103 // 截图时间间隔,单位:秒。 104 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 105 106 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 107 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 108 109 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 110 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 111} 112 113type AccelerateAreaInfo struct { 114 115 // 加速地区,可选值: 116 // <li>Chinese Mainland:中国境内(不包含港澳台)。</li> 117 // <li>Outside Chinese Mainland:中国境外。</li> 118 Area *string `json:"Area,omitempty" name:"Area"` 119 120 // 腾讯禁用原因,可选值: 121 // <li>ForLegalReasons:因法律原因导致关闭加速;</li> 122 // <li>ForOverdueBills:因欠费停服导致关闭加速。</li> 123 TencentDisableReason *string `json:"TencentDisableReason,omitempty" name:"TencentDisableReason"` 124 125 // 加速域名对应的 CNAME 域名。 126 TencentEdgeDomain *string `json:"TencentEdgeDomain,omitempty" name:"TencentEdgeDomain"` 127} 128 129type AdaptiveDynamicStreamingInfoItem struct { 130 131 // 转自适应码流规格。 132 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 133 134 // 打包格式,只能为 HLS。 135 Package *string `json:"Package,omitempty" name:"Package"` 136 137 // 加密类型。 138 DrmType *string `json:"DrmType,omitempty" name:"DrmType"` 139 140 // 播放地址。 141 Url *string `json:"Url,omitempty" name:"Url"` 142} 143 144type AdaptiveDynamicStreamingTaskInput struct { 145 146 // 转自适应码流模板 ID。 147 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 148 149 // 水印列表,支持多张图片或文字水印,最大可支持 10 张。 150 WatermarkSet []*WatermarkInput `json:"WatermarkSet,omitempty" name:"WatermarkSet"` 151 152 // 字幕列表,元素为字幕 ID,支持多个字幕,最大可支持16个。 153 SubtitleSet []*string `json:"SubtitleSet,omitempty" name:"SubtitleSet"` 154} 155 156type AdaptiveDynamicStreamingTemplate struct { 157 158 // 转自适应码流模板唯一标识。 159 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 160 161 // 模板类型,取值范围: 162 // <li>Preset:系统预置模板;</li> 163 // <li>Custom:用户自定义模板。</li> 164 Type *string `json:"Type,omitempty" name:"Type"` 165 166 // 转自适应码流模板名称。 167 Name *string `json:"Name,omitempty" name:"Name"` 168 169 // 转自适应码流模板描述信息。 170 Comment *string `json:"Comment,omitempty" name:"Comment"` 171 172 // 自适应转码格式,取值范围: 173 // <li>HLS。</li> 174 Format *string `json:"Format,omitempty" name:"Format"` 175 176 // DRM 类型,取值范围: 177 // <li>FairPlay;</li> 178 // <li>SimpleAES;</li> 179 // <li>Widevine。</li> 180 // 如果取值为空字符串,代表不对视频做 DRM 保护。 181 DrmType *string `json:"DrmType,omitempty" name:"DrmType"` 182 183 // 自适应转码输入流参数信息,最多输入10路流。 184 StreamInfos []*AdaptiveStreamTemplate `json:"StreamInfos,omitempty" name:"StreamInfos"` 185 186 // 是否禁止视频低码率转高码率,取值范围: 187 // <li>0:否,</li> 188 // <li>1:是。</li> 189 DisableHigherVideoBitrate *uint64 `json:"DisableHigherVideoBitrate,omitempty" name:"DisableHigherVideoBitrate"` 190 191 // 是否禁止视频分辨率转高分辨率,取值范围: 192 // <li>0:否,</li> 193 // <li>1:是。</li> 194 DisableHigherVideoResolution *uint64 `json:"DisableHigherVideoResolution,omitempty" name:"DisableHigherVideoResolution"` 195 196 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 197 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 198 199 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 200 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 201} 202 203type AdaptiveStreamTemplate struct { 204 205 // 视频参数信息。 206 Video *VideoTemplateInfo `json:"Video,omitempty" name:"Video"` 207 208 // 音频参数信息。 209 Audio *AudioTemplateInfo `json:"Audio,omitempty" name:"Audio"` 210 211 // 是否移除音频流,取值范围: 212 // <li>0:否,</li> 213 // <li>1:是。</li> 214 RemoveAudio *uint64 `json:"RemoveAudio,omitempty" name:"RemoveAudio"` 215 216 // 是否移除视频流,取值范围: 217 // <li>0:否,</li> 218 // <li>1:是。</li> 219 RemoveVideo *uint64 `json:"RemoveVideo,omitempty" name:"RemoveVideo"` 220} 221 222type AiAnalysisResult struct { 223 224 // 任务的类型,可以取的值有: 225 // <li>Classification:智能分类</li> 226 // <li>Cover:智能封面</li> 227 // <li>Tag:智能标签</li> 228 // <li>FrameTag:智能按帧标签</li> 229 // <li>Highlight:智能精彩集锦</li> 230 Type *string `json:"Type,omitempty" name:"Type"` 231 232 // 视频内容分析智能分类任务的查询结果,当任务类型为 Classification 时有效。 233 // 注意:此字段可能返回 null,表示取不到有效值。 234 ClassificationTask *AiAnalysisTaskClassificationResult `json:"ClassificationTask,omitempty" name:"ClassificationTask"` 235 236 // 视频内容分析智能封面任务的查询结果,当任务类型为 Cover 时有效。 237 // 注意:此字段可能返回 null,表示取不到有效值。 238 CoverTask *AiAnalysisTaskCoverResult `json:"CoverTask,omitempty" name:"CoverTask"` 239 240 // 视频内容分析智能标签任务的查询结果,当任务类型为 Tag 时有效。 241 // 注意:此字段可能返回 null,表示取不到有效值。 242 TagTask *AiAnalysisTaskTagResult `json:"TagTask,omitempty" name:"TagTask"` 243 244 // 视频内容分析智能按帧标签任务的查询结果,当任务类型为 FrameTag 时有效。 245 // 注意:此字段可能返回 null,表示取不到有效值。 246 FrameTagTask *AiAnalysisTaskFrameTagResult `json:"FrameTagTask,omitempty" name:"FrameTagTask"` 247 248 // 视频内容分析智能精彩集锦任务的查询结果,当任务类型为 Highlight 时有效。 249 // 注意:此字段可能返回 null,表示取不到有效值。 250 HighlightTask *AiAnalysisTaskHighlightResult `json:"HighlightTask,omitempty" name:"HighlightTask"` 251} 252 253type AiAnalysisTaskClassificationInput struct { 254 255 // 视频智能分类模板 ID。 256 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 257} 258 259type AiAnalysisTaskClassificationOutput struct { 260 261 // 视频智能分类列表。 262 ClassificationSet []*MediaAiAnalysisClassificationItem `json:"ClassificationSet,omitempty" name:"ClassificationSet"` 263} 264 265type AiAnalysisTaskClassificationResult struct { 266 267 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 268 Status *string `json:"Status,omitempty" name:"Status"` 269 270 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 271 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 272 273 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 274 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 275 276 // 错误信息。 277 Message *string `json:"Message,omitempty" name:"Message"` 278 279 // 智能分类任务输入。 280 Input *AiAnalysisTaskClassificationInput `json:"Input,omitempty" name:"Input"` 281 282 // 智能分类任务输出。 283 // 注意:此字段可能返回 null,表示取不到有效值。 284 Output *AiAnalysisTaskClassificationOutput `json:"Output,omitempty" name:"Output"` 285} 286 287type AiAnalysisTaskCoverInput struct { 288 289 // 视频智能封面模板 ID。 290 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 291} 292 293type AiAnalysisTaskCoverOutput struct { 294 295 // 智能封面列表。 296 CoverSet []*MediaAiAnalysisCoverItem `json:"CoverSet,omitempty" name:"CoverSet"` 297} 298 299type AiAnalysisTaskCoverResult struct { 300 301 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 302 Status *string `json:"Status,omitempty" name:"Status"` 303 304 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 305 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 306 307 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 308 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 309 310 // 错误信息。 311 Message *string `json:"Message,omitempty" name:"Message"` 312 313 // 智能封面任务输入。 314 Input *AiAnalysisTaskCoverInput `json:"Input,omitempty" name:"Input"` 315 316 // 智能封面任务输出。 317 // 注意:此字段可能返回 null,表示取不到有效值。 318 Output *AiAnalysisTaskCoverOutput `json:"Output,omitempty" name:"Output"` 319} 320 321type AiAnalysisTaskFrameTagInput struct { 322 323 // 视频智能按帧标签模板 ID。 324 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 325} 326 327type AiAnalysisTaskFrameTagOutput struct { 328 329 // 视频按帧标签列表。 330 SegmentSet []*MediaAiAnalysisFrameTagSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 331} 332 333type AiAnalysisTaskFrameTagResult struct { 334 335 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 336 Status *string `json:"Status,omitempty" name:"Status"` 337 338 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 339 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 340 341 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 342 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 343 344 // 错误信息。 345 Message *string `json:"Message,omitempty" name:"Message"` 346 347 // 智能按帧标签任务输入。 348 Input *AiAnalysisTaskFrameTagInput `json:"Input,omitempty" name:"Input"` 349 350 // 智能按帧标签任务输出。 351 // 注意:此字段可能返回 null,表示取不到有效值。 352 Output *AiAnalysisTaskFrameTagOutput `json:"Output,omitempty" name:"Output"` 353} 354 355type AiAnalysisTaskHighlightInput struct { 356 357 // 视频智能精彩片段模板 ID。 358 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 359} 360 361type AiAnalysisTaskHighlightOutput struct { 362 363 // 视频智能精彩片段列表。 364 HighlightSet []*MediaAiAnalysisHighlightItem `json:"HighlightSet,omitempty" name:"HighlightSet"` 365} 366 367type AiAnalysisTaskHighlightResult struct { 368 369 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 370 Status *string `json:"Status,omitempty" name:"Status"` 371 372 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 373 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 374 375 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 376 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 377 378 // 错误信息。 379 Message *string `json:"Message,omitempty" name:"Message"` 380 381 // 智能精彩片段任务输入。 382 Input *AiAnalysisTaskHighlightInput `json:"Input,omitempty" name:"Input"` 383 384 // 智能精彩片段任务输出。 385 // 注意:此字段可能返回 null,表示取不到有效值。 386 Output *AiAnalysisTaskHighlightOutput `json:"Output,omitempty" name:"Output"` 387} 388 389type AiAnalysisTaskInput struct { 390 391 // 视频内容分析模板 ID。 392 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 393} 394 395type AiAnalysisTaskTagInput struct { 396 397 // 视频智能标签模板 ID。 398 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 399} 400 401type AiAnalysisTaskTagOutput struct { 402 403 // 视频智能标签列表。 404 TagSet []*MediaAiAnalysisTagItem `json:"TagSet,omitempty" name:"TagSet"` 405} 406 407type AiAnalysisTaskTagResult struct { 408 409 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 410 Status *string `json:"Status,omitempty" name:"Status"` 411 412 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 413 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 414 415 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 416 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 417 418 // 错误信息。 419 Message *string `json:"Message,omitempty" name:"Message"` 420 421 // 智能标签任务输入。 422 Input *AiAnalysisTaskTagInput `json:"Input,omitempty" name:"Input"` 423 424 // 智能标签任务输出。 425 // 注意:此字段可能返回 null,表示取不到有效值。 426 Output *AiAnalysisTaskTagOutput `json:"Output,omitempty" name:"Output"` 427} 428 429type AiContentReviewResult struct { 430 431 // 任务的类型,可以取的值有: 432 // <li>Porn:图片鉴黄</li> 433 // <li>Terrorism:图片鉴恐</li> 434 // <li>Political:图片鉴政</li> 435 // <li>Porn.Asr:Asr 文字( 音频中的文字)鉴黄</li> 436 // <li>Porn.Ocr:Ocr 文字鉴黄</li> 437 // <li>Political.Asr:Asr 文字( 音频中的文字)鉴政</li> 438 // <li>Political.Ocr:Ocr 文字鉴政</li> 439 // <li>Terrorism.Ocr:Ocr 文字鉴恐</li> 440 // <li>Prohibited.Asr:Asr 文字( 音频中的文字)鉴违禁</li> 441 // <li>Prohibited.Ocr:Ocr 文字鉴违禁</li> 442 Type *string `json:"Type,omitempty" name:"Type"` 443 444 // 视频内容审核智能画面鉴黄任务的查询结果,当任务类型为 Porn 时有效。 445 // 注意:此字段可能返回 null,表示取不到有效值。 446 PornTask *AiReviewTaskPornResult `json:"PornTask,omitempty" name:"PornTask"` 447 448 // 视频内容审核智能画面鉴恐任务的查询结果,当任务类型为 Terrorism 时有效。 449 // 注意:此字段可能返回 null,表示取不到有效值。 450 TerrorismTask *AiReviewTaskTerrorismResult `json:"TerrorismTask,omitempty" name:"TerrorismTask"` 451 452 // 视频内容审核智能画面鉴政任务的查询结果,当任务类型为 Political 时有效。 453 // 注意:此字段可能返回 null,表示取不到有效值。 454 PoliticalTask *AiReviewTaskPoliticalResult `json:"PoliticalTask,omitempty" name:"PoliticalTask"` 455 456 // 视频内容审核 Asr 文字鉴黄任务的查询结果,当任务类型为 Porn.Asr 时有效。 457 // 注意:此字段可能返回 null,表示取不到有效值。 458 PornAsrTask *AiReviewTaskPornAsrResult `json:"PornAsrTask,omitempty" name:"PornAsrTask"` 459 460 // 视频内容审核 Ocr 文字鉴黄任务的查询结果,当任务类型为 Porn.Ocr 时有效。 461 // 注意:此字段可能返回 null,表示取不到有效值。 462 PornOcrTask *AiReviewTaskPornOcrResult `json:"PornOcrTask,omitempty" name:"PornOcrTask"` 463 464 // 视频内容审核 Asr 文字鉴政任务的查询结果,当任务类型为 Political.Asr 时有效。 465 // 注意:此字段可能返回 null,表示取不到有效值。 466 PoliticalAsrTask *AiReviewTaskPoliticalAsrResult `json:"PoliticalAsrTask,omitempty" name:"PoliticalAsrTask"` 467 468 // 视频内容审核 Ocr 文字鉴政任务的查询结果,当任务类型为 Political.Ocr 时有效。 469 // 注意:此字段可能返回 null,表示取不到有效值。 470 PoliticalOcrTask *AiReviewTaskPoliticalOcrResult `json:"PoliticalOcrTask,omitempty" name:"PoliticalOcrTask"` 471 472 // 视频内容审核 Ocr 文字鉴恐任务的查询结果,当任务类型为 Terrorism.Ocr 时有效。 473 // 注意:此字段可能返回 null,表示取不到有效值。 474 TerrorismOcrTask *AiReviewTaskTerrorismOcrResult `json:"TerrorismOcrTask,omitempty" name:"TerrorismOcrTask"` 475 476 // 视频内容审核 Asr 文字鉴违禁任务的查询结果,当任务类型为 Prohibited.Asr 时有效。 477 // 注意:此字段可能返回 null,表示取不到有效值。 478 ProhibitedAsrTask *AiReviewTaskProhibitedAsrResult `json:"ProhibitedAsrTask,omitempty" name:"ProhibitedAsrTask"` 479 480 // 视频内容审核 Ocr 文字鉴违禁任务的查询结果,当任务类型为 Prohibited.Ocr 时有效。 481 // 注意:此字段可能返回 null,表示取不到有效值。 482 ProhibitedOcrTask *AiReviewTaskProhibitedOcrResult `json:"ProhibitedOcrTask,omitempty" name:"ProhibitedOcrTask"` 483} 484 485type AiContentReviewTaskInput struct { 486 487 // 视频内容审核模板 ID。 488 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 489} 490 491type AiRecognitionResult struct { 492 493 // 任务的类型,取值范围: 494 // <li>FaceRecognition:人脸识别,</li> 495 // <li>AsrWordsRecognition:语音关键词识别,</li> 496 // <li>OcrWordsRecognition:文本关键词识别,</li> 497 // <li>AsrFullTextRecognition:语音全文识别,</li> 498 // <li>OcrFullTextRecognition:文本全文识别,</li> 499 // <li>HeadTailRecognition:视频片头片尾识别,</li> 500 // <li>ObjectRecognition:物体识别。</li> 501 Type *string `json:"Type,omitempty" name:"Type"` 502 503 // 视频片头片尾识别结果,当 Type 为 504 // HeadTailRecognition 时有效。 505 // 注意:此字段可能返回 null,表示取不到有效值。 506 HeadTailTask *AiRecognitionTaskHeadTailResult `json:"HeadTailTask,omitempty" name:"HeadTailTask"` 507 508 // 视频拆条识别结果,当 Type 为 509 // SegmentRecognition 时有效。 510 // 注意:此字段可能返回 null,表示取不到有效值。 511 SegmentTask *AiRecognitionTaskSegmentResult `json:"SegmentTask,omitempty" name:"SegmentTask"` 512 513 // 人脸识别结果,当 Type 为 514 // FaceRecognition 时有效。 515 // 注意:此字段可能返回 null,表示取不到有效值。 516 FaceTask *AiRecognitionTaskFaceResult `json:"FaceTask,omitempty" name:"FaceTask"` 517 518 // 语音关键词识别结果,当 Type 为 519 // AsrWordsRecognition 时有效。 520 // 注意:此字段可能返回 null,表示取不到有效值。 521 AsrWordsTask *AiRecognitionTaskAsrWordsResult `json:"AsrWordsTask,omitempty" name:"AsrWordsTask"` 522 523 // 语音全文识别结果,当 Type 为 524 // AsrFullTextRecognition 时有效。 525 // 注意:此字段可能返回 null,表示取不到有效值。 526 AsrFullTextTask *AiRecognitionTaskAsrFullTextResult `json:"AsrFullTextTask,omitempty" name:"AsrFullTextTask"` 527 528 // 文本关键词识别结果,当 Type 为 529 // OcrWordsRecognition 时有效。 530 // 注意:此字段可能返回 null,表示取不到有效值。 531 OcrWordsTask *AiRecognitionTaskOcrWordsResult `json:"OcrWordsTask,omitempty" name:"OcrWordsTask"` 532 533 // 文本全文识别结果,当 Type 为 534 // OcrFullTextRecognition 时有效。 535 // 注意:此字段可能返回 null,表示取不到有效值。 536 OcrFullTextTask *AiRecognitionTaskOcrFullTextResult `json:"OcrFullTextTask,omitempty" name:"OcrFullTextTask"` 537 538 // 物体识别结果,当 Type 为 539 // ObjectRecognition 时有效。 540 // 注意:此字段可能返回 null,表示取不到有效值。 541 ObjectTask *AiRecognitionTaskObjectResult `json:"ObjectTask,omitempty" name:"ObjectTask"` 542} 543 544type AiRecognitionTaskAsrFullTextResult struct { 545 546 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 547 Status *string `json:"Status,omitempty" name:"Status"` 548 549 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 550 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 551 552 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 553 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 554 555 // 错误信息。 556 Message *string `json:"Message,omitempty" name:"Message"` 557 558 // 语音全文识别任务输入信息。 559 Input *AiRecognitionTaskAsrFullTextResultInput `json:"Input,omitempty" name:"Input"` 560 561 // 语音全文识别任务输出信息。 562 // 注意:此字段可能返回 null,表示取不到有效值。 563 Output *AiRecognitionTaskAsrFullTextResultOutput `json:"Output,omitempty" name:"Output"` 564} 565 566type AiRecognitionTaskAsrFullTextResultInput struct { 567 568 // 语音全文识别模板 ID。 569 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 570} 571 572type AiRecognitionTaskAsrFullTextResultOutput struct { 573 574 // 语音全文识别片段列表。 575 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。 576 SegmentSet []*AiRecognitionTaskAsrFullTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 577 578 // 语音全文识别片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。 579 SegmentSetFileUrl *string `json:"SegmentSetFileUrl,omitempty" name:"SegmentSetFileUrl"` 580 581 // 语音全文识别片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。。 582 SegmentSetFileUrlExpireTime *string `json:"SegmentSetFileUrlExpireTime,omitempty" name:"SegmentSetFileUrlExpireTime"` 583 584 // 字幕文件 Url。 585 SubtitleUrl *string `json:"SubtitleUrl,omitempty" name:"SubtitleUrl"` 586} 587 588type AiRecognitionTaskAsrFullTextSegmentItem struct { 589 590 // 识别片段置信度。取值:0~100。 591 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 592 593 // 识别片段起始的偏移时间,单位:秒。 594 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 595 596 // 识别片段终止的偏移时间,单位:秒。 597 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 598 599 // 识别文本。 600 Text *string `json:"Text,omitempty" name:"Text"` 601} 602 603type AiRecognitionTaskAsrWordsResult struct { 604 605 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 606 Status *string `json:"Status,omitempty" name:"Status"` 607 608 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 609 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 610 611 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 612 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 613 614 // 错误信息。 615 Message *string `json:"Message,omitempty" name:"Message"` 616 617 // 语音关键词识别任务输入信息。 618 Input *AiRecognitionTaskAsrWordsResultInput `json:"Input,omitempty" name:"Input"` 619 620 // 语音关键词识别任务输出信息。 621 // 注意:此字段可能返回 null,表示取不到有效值。 622 Output *AiRecognitionTaskAsrWordsResultOutput `json:"Output,omitempty" name:"Output"` 623} 624 625type AiRecognitionTaskAsrWordsResultInput struct { 626 627 // 语音关键词识别模板 ID。 628 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 629} 630 631type AiRecognitionTaskAsrWordsResultItem struct { 632 633 // 语音关键词。 634 Word *string `json:"Word,omitempty" name:"Word"` 635 636 // 语音关键词出现的时间片段列表。 637 SegmentSet []*AiRecognitionTaskAsrWordsSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 638} 639 640type AiRecognitionTaskAsrWordsResultOutput struct { 641 642 // 语音关键词识别结果集。 643 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 ResultSetFileUrl 对应的文件中获取。 644 ResultSet []*AiRecognitionTaskAsrWordsResultItem `json:"ResultSet,omitempty" name:"ResultSet"` 645 646 // 语音关键词识别结果集文件 URL。文件的内容为 JSON,数据结构与 ResultSet 字段一致。 (文件不会永久存储,到达ResultSetFileUrlExpireTime 时间点后文件将被删除)。 647 ResultSetFileUrl *string `json:"ResultSetFileUrl,omitempty" name:"ResultSetFileUrl"` 648 649 // 语音关键词识别结果集文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 650 ResultSetFileUrlExpireTime *string `json:"ResultSetFileUrlExpireTime,omitempty" name:"ResultSetFileUrlExpireTime"` 651} 652 653type AiRecognitionTaskAsrWordsSegmentItem struct { 654 655 // 识别片段起始的偏移时间,单位:秒。 656 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 657 658 // 识别片段终止的偏移时间,单位:秒。 659 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 660 661 // 识别片段置信度。取值:0~100。 662 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 663} 664 665type AiRecognitionTaskFaceResult struct { 666 667 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 668 Status *string `json:"Status,omitempty" name:"Status"` 669 670 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 671 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 672 673 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 674 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 675 676 // 错误信息。 677 Message *string `json:"Message,omitempty" name:"Message"` 678 679 // 人脸识别任务输入信息。 680 Input *AiRecognitionTaskFaceResultInput `json:"Input,omitempty" name:"Input"` 681 682 // 人脸识别任务输出信息。 683 // 注意:此字段可能返回 null,表示取不到有效值。 684 Output *AiRecognitionTaskFaceResultOutput `json:"Output,omitempty" name:"Output"` 685} 686 687type AiRecognitionTaskFaceResultInput struct { 688 689 // 人脸识别模板 ID。 690 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 691} 692 693type AiRecognitionTaskFaceResultItem struct { 694 695 // 人物唯一标识 ID。 696 Id *string `json:"Id,omitempty" name:"Id"` 697 698 // 人物库类型,表示识别出的人物来自哪个人物库: 699 // <li>Default:默认人物库;</li> 700 // <li>UserDefine:用户自定义人物库。</li> 701 Type *string `json:"Type,omitempty" name:"Type"` 702 703 // 人物名称。 704 Name *string `json:"Name,omitempty" name:"Name"` 705 706 // 人物出现的片段结果集。 707 SegmentSet []*AiRecognitionTaskFaceSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 708} 709 710type AiRecognitionTaskFaceResultOutput struct { 711 712 // 智能人脸识别结果集。 713 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 ResultSetFileUrl 对应的文件中获取。 714 ResultSet []*AiRecognitionTaskFaceResultItem `json:"ResultSet,omitempty" name:"ResultSet"` 715 716 // 智能人脸识别结果集文件 URL。文件的内容为 JSON,数据结构与 ResultSet 字段一致。 (文件不会永久存储,到达ResultSetFileUrlExpireTime 时间点后文件将被删除)。 717 ResultSetFileUrl *string `json:"ResultSetFileUrl,omitempty" name:"ResultSetFileUrl"` 718 719 // 智能人脸识别结果集文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 720 ResultSetFileUrlExpireTime *string `json:"ResultSetFileUrlExpireTime,omitempty" name:"ResultSetFileUrlExpireTime"` 721} 722 723type AiRecognitionTaskFaceSegmentItem struct { 724 725 // 识别片段起始的偏移时间,单位:秒。 726 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 727 728 // 识别片段终止的偏移时间,单位:秒。 729 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 730 731 // 识别片段置信度。取值:0~100。 732 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 733 734 // 识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。 735 AreaCoordSet []*int64 `json:"AreaCoordSet,omitempty" name:"AreaCoordSet"` 736} 737 738type AiRecognitionTaskHeadTailResult struct { 739 740 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 741 Status *string `json:"Status,omitempty" name:"Status"` 742 743 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 744 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 745 746 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 747 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 748 749 // 错误信息。 750 Message *string `json:"Message,omitempty" name:"Message"` 751 752 // 视频片头片尾识别任务输入信息。 753 Input *AiRecognitionTaskHeadTailResultInput `json:"Input,omitempty" name:"Input"` 754 755 // 视频片头片尾识别任务输出信息。 756 // 注意:此字段可能返回 null,表示取不到有效值。 757 Output *AiRecognitionTaskHeadTailResultOutput `json:"Output,omitempty" name:"Output"` 758} 759 760type AiRecognitionTaskHeadTailResultInput struct { 761 762 // 视频片头片尾识别模板 ID。 763 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 764} 765 766type AiRecognitionTaskHeadTailResultOutput struct { 767 768 // 片头识别置信度。取值:0~100。 769 HeadConfidence *float64 `json:"HeadConfidence,omitempty" name:"HeadConfidence"` 770 771 // 视频片头的结束时间点,单位:秒。 772 HeadTimeOffset *float64 `json:"HeadTimeOffset,omitempty" name:"HeadTimeOffset"` 773 774 // 片尾识别置信度。取值:0~100。 775 TailConfidence *float64 `json:"TailConfidence,omitempty" name:"TailConfidence"` 776 777 // 视频片尾的开始时间点,单位:秒。 778 TailTimeOffset *float64 `json:"TailTimeOffset,omitempty" name:"TailTimeOffset"` 779} 780 781type AiRecognitionTaskInput struct { 782 783 // 视频智能识别模板 ID 。 784 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 785} 786 787type AiRecognitionTaskObjectResult struct { 788 789 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 790 Status *string `json:"Status,omitempty" name:"Status"` 791 792 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 793 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 794 795 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 796 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 797 798 // 错误信息。 799 Message *string `json:"Message,omitempty" name:"Message"` 800 801 // 物体识别任务输入信息。 802 Input *AiRecognitionTaskObjectResultInput `json:"Input,omitempty" name:"Input"` 803 804 // 物体识别任务输出信息。 805 // 注意:此字段可能返回 null,表示取不到有效值。 806 Output *AiRecognitionTaskObjectResultOutput `json:"Output,omitempty" name:"Output"` 807} 808 809type AiRecognitionTaskObjectResultInput struct { 810 811 // 物体识别模板 ID。 812 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 813} 814 815type AiRecognitionTaskObjectResultItem struct { 816 817 // 识别的物体名称。 818 Name *string `json:"Name,omitempty" name:"Name"` 819 820 // 物体出现的片段列表。 821 SegmentSet []*AiRecognitionTaskObjectSeqmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 822} 823 824type AiRecognitionTaskObjectResultOutput struct { 825 826 // 智能物体识别结果集。 827 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 ResultSetFileUrl 对应的文件中获取。 828 ResultSet []*AiRecognitionTaskObjectResultItem `json:"ResultSet,omitempty" name:"ResultSet"` 829 830 // 智能物体识别结果集文件 URL。文件的内容为 JSON,数据结构与 ResultSet 字段一致。 (文件不会永久存储,到达ResultSetFileUrlExpireTime 时间点后文件将被删除)。 831 ResultSetFileUrl *string `json:"ResultSetFileUrl,omitempty" name:"ResultSetFileUrl"` 832 833 // 智能物体识别结果集文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 834 ResultSetFileUrlExpireTime *string `json:"ResultSetFileUrlExpireTime,omitempty" name:"ResultSetFileUrlExpireTime"` 835} 836 837type AiRecognitionTaskObjectSeqmentItem struct { 838 839 // 识别片段起始的偏移时间,单位:秒。 840 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 841 842 // 识别片段终止的偏移时间,单位:秒。 843 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 844 845 // 识别片段置信度。取值:0~100。 846 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 847 848 // 识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。 849 AreaCoordSet []*int64 `json:"AreaCoordSet,omitempty" name:"AreaCoordSet"` 850} 851 852type AiRecognitionTaskOcrFullTextResult struct { 853 854 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 855 Status *string `json:"Status,omitempty" name:"Status"` 856 857 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 858 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 859 860 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 861 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 862 863 // 错误信息。 864 Message *string `json:"Message,omitempty" name:"Message"` 865 866 // 文本全文识别任务输入信息。 867 Input *AiRecognitionTaskOcrFullTextResultInput `json:"Input,omitempty" name:"Input"` 868 869 // 文本全文识别任务输出信息。 870 // 注意:此字段可能返回 null,表示取不到有效值。 871 Output *AiRecognitionTaskOcrFullTextResultOutput `json:"Output,omitempty" name:"Output"` 872} 873 874type AiRecognitionTaskOcrFullTextResultInput struct { 875 876 // 文本全文识别模板 ID。 877 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 878} 879 880type AiRecognitionTaskOcrFullTextResultOutput struct { 881 882 // 文本全文识别结果集。 883 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。 884 SegmentSet []*AiRecognitionTaskOcrFullTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 885 886 // 文本全文识别结果集文件 URL。文件的内容为 JSON,数据结构与 ResultSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。 887 SegmentSetFileUrl *string `json:"SegmentSetFileUrl,omitempty" name:"SegmentSetFileUrl"` 888 889 // 文本全文识别结果集文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 890 SegmentSetFileUrlExpireTime *string `json:"SegmentSetFileUrlExpireTime,omitempty" name:"SegmentSetFileUrlExpireTime"` 891} 892 893type AiRecognitionTaskOcrFullTextSegmentItem struct { 894 895 // 识别片段起始的偏移时间,单位:秒。 896 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 897 898 // 识别片段终止的偏移时间,单位:秒。 899 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 900 901 // 识别片段结果集。 902 TextSet []*AiRecognitionTaskOcrFullTextSegmentTextItem `json:"TextSet,omitempty" name:"TextSet"` 903} 904 905type AiRecognitionTaskOcrFullTextSegmentTextItem struct { 906 907 // 识别片段置信度。取值:0~100。 908 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 909 910 // 识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。 911 AreaCoordSet []*int64 `json:"AreaCoordSet,omitempty" name:"AreaCoordSet"` 912 913 // 识别文本。 914 Text *string `json:"Text,omitempty" name:"Text"` 915} 916 917type AiRecognitionTaskOcrWordsResult struct { 918 919 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 920 Status *string `json:"Status,omitempty" name:"Status"` 921 922 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 923 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 924 925 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 926 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 927 928 // 错误信息。 929 Message *string `json:"Message,omitempty" name:"Message"` 930 931 // 文本关键词识别任务输入信息。 932 Input *AiRecognitionTaskOcrWordsResultInput `json:"Input,omitempty" name:"Input"` 933 934 // 文本关键词识别任务输出信息。 935 // 注意:此字段可能返回 null,表示取不到有效值。 936 Output *AiRecognitionTaskOcrWordsResultOutput `json:"Output,omitempty" name:"Output"` 937} 938 939type AiRecognitionTaskOcrWordsResultInput struct { 940 941 // 文本关键词识别模板 ID。 942 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 943} 944 945type AiRecognitionTaskOcrWordsResultItem struct { 946 947 // 文本关键词。 948 Word *string `json:"Word,omitempty" name:"Word"` 949 950 // 文本关键出现的片段列表。 951 SegmentSet []*AiRecognitionTaskOcrWordsSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 952} 953 954type AiRecognitionTaskOcrWordsResultOutput struct { 955 956 // 文本关键词识别结果集。 957 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 ResultSetFileUrl 对应的文件中获取。 958 ResultSet []*AiRecognitionTaskOcrWordsResultItem `json:"ResultSet,omitempty" name:"ResultSet"` 959 960 // 文本关键词识别结果集文件 URL。文件的内容为 JSON,数据结构与 ResultSet 字段一致。 (文件不会永久存储,到达ResultSetFileUrlExpireTime 时间点后文件将被删除)。 961 ResultSetFileUrl *string `json:"ResultSetFileUrl,omitempty" name:"ResultSetFileUrl"` 962 963 // 文本关键词识别结果集文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 964 ResultSetFileUrlExpireTime *string `json:"ResultSetFileUrlExpireTime,omitempty" name:"ResultSetFileUrlExpireTime"` 965} 966 967type AiRecognitionTaskOcrWordsSegmentItem struct { 968 969 // 识别片段起始的偏移时间,单位:秒。 970 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 971 972 // 识别片段终止的偏移时间,单位:秒。 973 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 974 975 // 识别片段置信度。取值:0~100。 976 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 977 978 // 识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。 979 AreaCoordSet []*int64 `json:"AreaCoordSet,omitempty" name:"AreaCoordSet"` 980} 981 982type AiRecognitionTaskSegmentResult struct { 983 984 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 985 Status *string `json:"Status,omitempty" name:"Status"` 986 987 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 988 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 989 990 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 991 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 992 993 // 错误信息。 994 Message *string `json:"Message,omitempty" name:"Message"` 995 996 // 视频拆条任务输入信息。 997 // 注意:此字段可能返回 null,表示取不到有效值。 998 Input *AiRecognitionTaskSegmentResultInput `json:"Input,omitempty" name:"Input"` 999 1000 // 视频拆条任务输出信息。 1001 // 注意:此字段可能返回 null,表示取不到有效值。 1002 Output *AiRecognitionTaskSegmentResultOutput `json:"Output,omitempty" name:"Output"` 1003} 1004 1005type AiRecognitionTaskSegmentResultInput struct { 1006 1007 // 视频拆条模板 ID。 1008 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 1009} 1010 1011type AiRecognitionTaskSegmentResultOutput struct { 1012 1013 // 视频拆条片段列表。 1014 // <font color=red>注意</font> :该列表最多仅展示前 100 个元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。 1015 SegmentSet []*AiRecognitionTaskSegmentSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1016 1017 // 视频拆条片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。 1018 SegmentSetFileUrl *string `json:"SegmentSetFileUrl,omitempty" name:"SegmentSetFileUrl"` 1019 1020 // 视频拆条片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1021 SegmentSetFileUrlExpireTime *string `json:"SegmentSetFileUrlExpireTime,omitempty" name:"SegmentSetFileUrlExpireTime"` 1022} 1023 1024type AiRecognitionTaskSegmentSegmentItem struct { 1025 1026 // 文件 ID。仅当处理的是点播文件并且拆条生成的子片段为点播文件时有效。 1027 FileId *string `json:"FileId,omitempty" name:"FileId"` 1028 1029 // 视频拆条片段 Url。 1030 SegmentUrl *string `json:"SegmentUrl,omitempty" name:"SegmentUrl"` 1031 1032 // 拆条片段置信度。取值:0~100。 1033 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1034 1035 // 拆条片段起始的偏移时间,单位:秒。 1036 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 1037 1038 // 拆条片段终止的偏移时间,单位:秒。 1039 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 1040 1041 // 拆条封面图片 Url。 1042 CovImgUrl *string `json:"CovImgUrl,omitempty" name:"CovImgUrl"` 1043 1044 // 特殊字段,请忽略。 1045 SpecialInfo *string `json:"SpecialInfo,omitempty" name:"SpecialInfo"` 1046} 1047 1048type AiReviewPoliticalAsrTaskInput struct { 1049 1050 // 鉴政模板 ID。 1051 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1052} 1053 1054type AiReviewPoliticalAsrTaskOutput struct { 1055 1056 // Asr 文字涉政、敏感评分,分值为0到100。 1057 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1058 1059 // Asr 文字涉政、敏感结果建议,取值范围: 1060 // <li>pass。</li> 1061 // <li>review。</li> 1062 // <li>block。</li> 1063 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1064 1065 // Asr 文字有涉政、敏感嫌疑的视频片段列表。 1066 SegmentSet []*MediaContentReviewAsrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1067} 1068 1069type AiReviewPoliticalOcrTaskInput struct { 1070 1071 // 鉴政模板 ID。 1072 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1073} 1074 1075type AiReviewPoliticalOcrTaskOutput struct { 1076 1077 // Ocr 文字涉政、敏感评分,分值为0到100。 1078 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1079 1080 // Ocr 文字涉政、敏感结果建议,取值范围: 1081 // <li>pass。</li> 1082 // <li>review。</li> 1083 // <li>block。</li> 1084 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1085 1086 // Ocr 文字有涉政、敏感嫌疑的视频片段列表。 1087 SegmentSet []*MediaContentReviewOcrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1088} 1089 1090type AiReviewPoliticalTaskInput struct { 1091 1092 // 鉴政模板 ID。 1093 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1094} 1095 1096type AiReviewPoliticalTaskOutput struct { 1097 1098 // 视频涉政评分,分值为0到100。 1099 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1100 1101 // 涉政结果建议,取值范围: 1102 // <li>pass。</li> 1103 // <li>review。</li> 1104 // <li>block。</li> 1105 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1106 1107 // 视频鉴政结果标签。内容审核模板[画面鉴政任务控制参数](https://cloud.tencent.com/document/api/266/31773#PoliticalImgReviewTemplateInfo)里 LabelSet 参数与此参数取值范围的对应关系: 1108 // violation_photo: 1109 // <li>violation_photo:违规图标。</li> 1110 // 其他(即 politician/entertainment/sport/entrepreneur/scholar/celebrity/military): 1111 // <li>politician:政治人物。</li> 1112 Label *string `json:"Label,omitempty" name:"Label"` 1113 1114 // 有涉政嫌疑的视频片段列表。 1115 SegmentSet []*MediaContentReviewPoliticalSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1116} 1117 1118type AiReviewPornAsrTaskInput struct { 1119 1120 // 鉴黄模板 ID。 1121 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1122} 1123 1124type AiReviewPornAsrTaskOutput struct { 1125 1126 // Asr 文字涉黄评分,分值为0到100。 1127 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1128 1129 // Asr 文字涉黄结果建议,取值范围: 1130 // <li>pass。</li> 1131 // <li>review。</li> 1132 // <li>block。</li> 1133 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1134 1135 // Asr 文字有涉黄嫌疑的视频片段列表。 1136 SegmentSet []*MediaContentReviewAsrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1137} 1138 1139type AiReviewPornOcrTaskInput struct { 1140 1141 // 鉴黄模板 ID。 1142 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1143} 1144 1145type AiReviewPornOcrTaskOutput struct { 1146 1147 // Ocr 文字涉黄评分,分值为0到100。 1148 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1149 1150 // Ocr 文字涉黄结果建议,取值范围: 1151 // <li>pass。</li> 1152 // <li>review。</li> 1153 // <li>block。</li> 1154 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1155 1156 // Ocr 文字有涉黄嫌疑的视频片段列表。 1157 SegmentSet []*MediaContentReviewOcrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1158} 1159 1160type AiReviewPornTaskInput struct { 1161 1162 // 鉴黄模板 ID。 1163 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1164} 1165 1166type AiReviewPornTaskOutput struct { 1167 1168 // 视频鉴黄评分,分值为0到100。 1169 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1170 1171 // 鉴黄结果建议,取值范围: 1172 // <li>pass。</li> 1173 // <li>review。</li> 1174 // <li>block。</li> 1175 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1176 1177 // 视频鉴黄结果标签,取值范围: 1178 // <li>porn:色情。</li> 1179 // <li>sexy:性感。</li> 1180 // <li>vulgar:低俗。</li> 1181 // <li>intimacy:亲密行为。</li> 1182 Label *string `json:"Label,omitempty" name:"Label"` 1183 1184 // 有涉黄嫌疑的视频片段列表。 1185 SegmentSet []*MediaContentReviewSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1186} 1187 1188type AiReviewProhibitedAsrTaskInput struct { 1189 1190 // 鉴违禁模板 ID。 1191 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1192} 1193 1194type AiReviewProhibitedAsrTaskOutput struct { 1195 1196 // Asr 文字涉违禁评分,分值为0到100。 1197 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1198 1199 // Asr 文字涉违禁结果建议,取值范围: 1200 // <li>pass。</li> 1201 // <li>review。</li> 1202 // <li>block。</li> 1203 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1204 1205 // Asr 文字有涉违禁嫌疑的视频片段列表。 1206 SegmentSet []*MediaContentReviewAsrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1207} 1208 1209type AiReviewProhibitedOcrTaskInput struct { 1210 1211 // 鉴违禁模板 ID。 1212 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1213} 1214 1215type AiReviewProhibitedOcrTaskOutput struct { 1216 1217 // Ocr 文字涉违禁评分,分值为0到100。 1218 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1219 1220 // Ocr 文字涉违禁结果建议,取值范围: 1221 // <li>pass。</li> 1222 // <li>review。</li> 1223 // <li>block。</li> 1224 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1225 1226 // Ocr 文字有涉违禁嫌疑的视频片段列表。 1227 SegmentSet []*MediaContentReviewOcrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1228} 1229 1230type AiReviewTaskPoliticalAsrResult struct { 1231 1232 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1233 Status *string `json:"Status,omitempty" name:"Status"` 1234 1235 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1236 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1237 1238 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1239 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1240 1241 // 错误信息。 1242 Message *string `json:"Message,omitempty" name:"Message"` 1243 1244 // 内容审核 Asr 文字鉴政任务输入。 1245 Input *AiReviewPoliticalAsrTaskInput `json:"Input,omitempty" name:"Input"` 1246 1247 // 内容审核 Asr 文字鉴政任务输出。 1248 Output *AiReviewPoliticalAsrTaskOutput `json:"Output,omitempty" name:"Output"` 1249} 1250 1251type AiReviewTaskPoliticalOcrResult struct { 1252 1253 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1254 Status *string `json:"Status,omitempty" name:"Status"` 1255 1256 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1257 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1258 1259 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1260 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1261 1262 // 错误信息。 1263 Message *string `json:"Message,omitempty" name:"Message"` 1264 1265 // 内容审核 Ocr 文字鉴政任务输入。 1266 Input *AiReviewPoliticalOcrTaskInput `json:"Input,omitempty" name:"Input"` 1267 1268 // 内容审核 Ocr 文字鉴政任务输出。 1269 // 注意:此字段可能返回 null,表示取不到有效值。 1270 Output *AiReviewPoliticalOcrTaskOutput `json:"Output,omitempty" name:"Output"` 1271} 1272 1273type AiReviewTaskPoliticalResult struct { 1274 1275 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1276 Status *string `json:"Status,omitempty" name:"Status"` 1277 1278 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1279 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1280 1281 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1282 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1283 1284 // 错误信息。 1285 Message *string `json:"Message,omitempty" name:"Message"` 1286 1287 // 内容审核鉴政任务输入。 1288 Input *AiReviewPoliticalTaskInput `json:"Input,omitempty" name:"Input"` 1289 1290 // 内容审核鉴政任务输出。 1291 // 注意:此字段可能返回 null,表示取不到有效值。 1292 Output *AiReviewPoliticalTaskOutput `json:"Output,omitempty" name:"Output"` 1293} 1294 1295type AiReviewTaskPornAsrResult struct { 1296 1297 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1298 Status *string `json:"Status,omitempty" name:"Status"` 1299 1300 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1301 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1302 1303 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1304 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1305 1306 // 错误信息。 1307 Message *string `json:"Message,omitempty" name:"Message"` 1308 1309 // 内容审核 Asr 文字鉴黄任务输入。 1310 Input *AiReviewPornAsrTaskInput `json:"Input,omitempty" name:"Input"` 1311 1312 // 内容审核 Asr 文字鉴黄任务输出。 1313 // 注意:此字段可能返回 null,表示取不到有效值。 1314 Output *AiReviewPornAsrTaskOutput `json:"Output,omitempty" name:"Output"` 1315} 1316 1317type AiReviewTaskPornOcrResult struct { 1318 1319 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1320 Status *string `json:"Status,omitempty" name:"Status"` 1321 1322 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1323 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1324 1325 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1326 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1327 1328 // 错误信息。 1329 Message *string `json:"Message,omitempty" name:"Message"` 1330 1331 // 内容审核 Ocr 文字鉴黄任务输入。 1332 Input *AiReviewPornOcrTaskInput `json:"Input,omitempty" name:"Input"` 1333 1334 // 内容审核 Ocr 文字鉴黄任务输出。 1335 // 注意:此字段可能返回 null,表示取不到有效值。 1336 Output *AiReviewPornOcrTaskOutput `json:"Output,omitempty" name:"Output"` 1337} 1338 1339type AiReviewTaskPornResult struct { 1340 1341 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1342 Status *string `json:"Status,omitempty" name:"Status"` 1343 1344 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1345 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1346 1347 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1348 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1349 1350 // 错误信息。 1351 Message *string `json:"Message,omitempty" name:"Message"` 1352 1353 // 内容审核鉴黄任务输入。 1354 Input *AiReviewPornTaskInput `json:"Input,omitempty" name:"Input"` 1355 1356 // 内容审核鉴黄任务输出。 1357 // 注意:此字段可能返回 null,表示取不到有效值。 1358 Output *AiReviewPornTaskOutput `json:"Output,omitempty" name:"Output"` 1359} 1360 1361type AiReviewTaskProhibitedAsrResult struct { 1362 1363 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1364 Status *string `json:"Status,omitempty" name:"Status"` 1365 1366 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1367 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1368 1369 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1370 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1371 1372 // 错误信息。 1373 Message *string `json:"Message,omitempty" name:"Message"` 1374 1375 // 内容审核 Asr 文字鉴违禁任务输入。 1376 Input *AiReviewProhibitedAsrTaskInput `json:"Input,omitempty" name:"Input"` 1377 1378 // 内容审核 Asr 文字鉴违禁任务输出。 1379 // 注意:此字段可能返回 null,表示取不到有效值。 1380 Output *AiReviewProhibitedAsrTaskOutput `json:"Output,omitempty" name:"Output"` 1381} 1382 1383type AiReviewTaskProhibitedOcrResult struct { 1384 1385 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1386 Status *string `json:"Status,omitempty" name:"Status"` 1387 1388 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1389 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1390 1391 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1392 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1393 1394 // 错误信息。 1395 Message *string `json:"Message,omitempty" name:"Message"` 1396 1397 // 内容审核 Ocr 文字鉴违禁任务输入。 1398 Input *AiReviewProhibitedOcrTaskInput `json:"Input,omitempty" name:"Input"` 1399 1400 // 内容审核 Ocr 文字鉴违禁任务输出。 1401 // 注意:此字段可能返回 null,表示取不到有效值。 1402 Output *AiReviewProhibitedOcrTaskOutput `json:"Output,omitempty" name:"Output"` 1403} 1404 1405type AiReviewTaskTerrorismOcrResult struct { 1406 1407 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1408 Status *string `json:"Status,omitempty" name:"Status"` 1409 1410 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1411 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1412 1413 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1414 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1415 1416 // 错误信息。 1417 Message *string `json:"Message,omitempty" name:"Message"` 1418 1419 // 内容审核 Ocr 文字鉴恐任务输入。 1420 Input *AiReviewTerrorismOcrTaskInput `json:"Input,omitempty" name:"Input"` 1421 1422 // 内容审核 Ocr 文字鉴恐任务输出。 1423 // 注意:此字段可能返回 null,表示取不到有效值。 1424 Output *AiReviewTerrorismOcrTaskOutput `json:"Output,omitempty" name:"Output"` 1425} 1426 1427type AiReviewTaskTerrorismResult struct { 1428 1429 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 1430 Status *string `json:"Status,omitempty" name:"Status"` 1431 1432 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 1433 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 1434 1435 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 1436 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1437 1438 // 错误信息。 1439 Message *string `json:"Message,omitempty" name:"Message"` 1440 1441 // 内容审核鉴恐任务输入。 1442 Input *AiReviewTerrorismTaskInput `json:"Input,omitempty" name:"Input"` 1443 1444 // 内容审核鉴恐任务输出。 1445 // 注意:此字段可能返回 null,表示取不到有效值。 1446 Output *AiReviewTerrorismTaskOutput `json:"Output,omitempty" name:"Output"` 1447} 1448 1449type AiReviewTerrorismOcrTaskInput struct { 1450 1451 // 鉴恐模板 ID。 1452 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1453} 1454 1455type AiReviewTerrorismOcrTaskOutput struct { 1456 1457 // Ocr 文字涉恐评分,分值为0到100。 1458 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1459 1460 // Ocr 文字涉恐结果建议,取值范围: 1461 // <li>pass。</li> 1462 // <li>review。</li> 1463 // <li>block。</li> 1464 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1465 1466 // Ocr 文字有涉恐嫌疑的视频片段列表。 1467 SegmentSet []*MediaContentReviewOcrTextSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1468} 1469 1470type AiReviewTerrorismTaskInput struct { 1471 1472 // 鉴恐模板 ID。 1473 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1474} 1475 1476type AiReviewTerrorismTaskOutput struct { 1477 1478 // 视频暴恐评分,分值为0到100。 1479 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 1480 1481 // 暴恐结果建议,取值范围: 1482 // <li>pass。</li> 1483 // <li>review。</li> 1484 // <li>block。</li> 1485 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 1486 1487 // 视频暴恐结果标签,取值范围: 1488 // <li>guns:武器枪支。</li> 1489 // <li>crowd:人群聚集。</li> 1490 // <li>police:警察部队。</li> 1491 // <li>bloody:血腥画面。</li> 1492 // <li>banners:暴恐旗帜。</li> 1493 // <li>militant:武装分子。</li> 1494 // <li>explosion:爆炸火灾。</li> 1495 // <li>terrorists:暴恐人物。</li> 1496 // <li>scenario:暴恐画面。</li> 1497 Label *string `json:"Label,omitempty" name:"Label"` 1498 1499 // 有暴恐嫌疑的视频片段列表。 1500 SegmentSet []*MediaContentReviewSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 1501} 1502 1503type AiSampleFaceInfo struct { 1504 1505 // 人脸图片 ID。 1506 FaceId *string `json:"FaceId,omitempty" name:"FaceId"` 1507 1508 // 人脸图片地址。 1509 Url *string `json:"Url,omitempty" name:"Url"` 1510} 1511 1512type AiSampleFaceOperation struct { 1513 1514 // 操作类型,可选值:add(添加)、delete(删除)、reset(重置)。重置操作将清空该人物已有人脸数据,并添加 FaceContents 指定人脸数据。 1515 Type *string `json:"Type,omitempty" name:"Type"` 1516 1517 // 人脸 ID 集合,当 Type为delete 时,该字段必填。 1518 FaceIds []*string `json:"FaceIds,omitempty" name:"FaceIds"` 1519 1520 // 人脸图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串集合。 1521 // <li>当 Type为add 或 reset 时,该字段必填;</li> 1522 // <li>数组长度限制:5 张图片。</li> 1523 // 注意:图片必须是单人像正面人脸较清晰的照片,像素不低于 200*200。 1524 FaceContents []*string `json:"FaceContents,omitempty" name:"FaceContents"` 1525} 1526 1527type AiSampleFailFaceInfo struct { 1528 1529 // 对应入参 FaceContents 中错误图片下标,从 0 开始。 1530 Index *uint64 `json:"Index,omitempty" name:"Index"` 1531 1532 // 错误码,取值: 1533 // <li>0:成功;</li> 1534 // <li>其他:失败。</li> 1535 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 1536 1537 // 错误描述。 1538 Message *string `json:"Message,omitempty" name:"Message"` 1539} 1540 1541type AiSamplePerson struct { 1542 1543 // 人物 ID。 1544 PersonId *string `json:"PersonId,omitempty" name:"PersonId"` 1545 1546 // 人物名称。 1547 Name *string `json:"Name,omitempty" name:"Name"` 1548 1549 // 人物描述。 1550 Description *string `json:"Description,omitempty" name:"Description"` 1551 1552 // 人脸信息。 1553 FaceInfoSet []*AiSampleFaceInfo `json:"FaceInfoSet,omitempty" name:"FaceInfoSet"` 1554 1555 // 人物标签。 1556 TagSet []*string `json:"TagSet,omitempty" name:"TagSet"` 1557 1558 // 应用场景。 1559 UsageSet []*string `json:"UsageSet,omitempty" name:"UsageSet"` 1560 1561 // 创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1562 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 1563 1564 // 最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1565 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 1566} 1567 1568type AiSampleTagOperation struct { 1569 1570 // 操作类型,可选值:add(添加)、delete(删除)、reset(重置)。 1571 Type *string `json:"Type,omitempty" name:"Type"` 1572 1573 // 标签,长度限制:128 个字符。 1574 Tags []*string `json:"Tags,omitempty" name:"Tags"` 1575} 1576 1577type AiSampleWord struct { 1578 1579 // 关键词。 1580 Keyword *string `json:"Keyword,omitempty" name:"Keyword"` 1581 1582 // 关键词标签。 1583 TagSet []*string `json:"TagSet,omitempty" name:"TagSet"` 1584 1585 // 关键词应用场景。 1586 UsageSet []*string `json:"UsageSet,omitempty" name:"UsageSet"` 1587 1588 // 创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1589 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 1590 1591 // 最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1592 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 1593} 1594 1595type AiSampleWordInfo struct { 1596 1597 // 关键词,长度限制:20 个字符。 1598 Keyword *string `json:"Keyword,omitempty" name:"Keyword"` 1599 1600 // 关键词标签 1601 // <li>数组长度限制:20 个标签;</li> 1602 // <li>单个标签长度限制:128 个字符。</li> 1603 Tags []*string `json:"Tags,omitempty" name:"Tags"` 1604} 1605 1606type AnimatedGraphicTaskInput struct { 1607 1608 // 视频转动图模板 ID 1609 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1610 1611 // 动图在视频中的起始时间偏移,单位为秒。 1612 // <li>不填或填0,表示从视频的起始位置开始;</li> 1613 // <li>当数值大于0时(假设为 n),表示从视频的第 n 秒位置开始;</li> 1614 // <li>当数值小于0时(假设为 -n),表示从视频结束 n 秒前的位置开始。</li> 1615 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 1616 1617 // 动图在视频中的终止时间偏移,单位为秒。 1618 // <li>不填或填0,表示持续到视频的末尾终止;</li> 1619 // <li>当数值大于0时(假设为 n),表示持续到视频第 n 秒时终止;</li> 1620 // <li>当数值小于0时(假设为 -n),表示持续到视频结束 n 秒前终止。</li> 1621 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 1622} 1623 1624type AnimatedGraphicsTemplate struct { 1625 1626 // 转动图模板唯一标识。 1627 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 1628 1629 // 模板类型,取值范围: 1630 // <li>Preset:系统预置模板;</li> 1631 // <li>Custom:用户自定义模板。</li> 1632 Type *string `json:"Type,omitempty" name:"Type"` 1633 1634 // 转动图模板名称。 1635 Name *string `json:"Name,omitempty" name:"Name"` 1636 1637 // 转动图模板描述信息。 1638 Comment *string `json:"Comment,omitempty" name:"Comment"` 1639 1640 // 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 1641 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 1642 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 1643 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 1644 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 1645 // 默认值:0。 1646 Width *uint64 `json:"Width,omitempty" name:"Width"` 1647 1648 // 动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 1649 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 1650 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 1651 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 1652 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 1653 // 默认值:0。 1654 Height *uint64 `json:"Height,omitempty" name:"Height"` 1655 1656 // 分辨率自适应,可选值: 1657 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 1658 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 1659 // 默认值:open。 1660 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 1661 1662 // 动图格式。 1663 Format *string `json:"Format,omitempty" name:"Format"` 1664 1665 // 帧率。 1666 Fps *uint64 `json:"Fps,omitempty" name:"Fps"` 1667 1668 // 图片质量。 1669 Quality *float64 `json:"Quality,omitempty" name:"Quality"` 1670 1671 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1672 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 1673 1674 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 1675 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 1676} 1677 1678type ApplyUploadRequest struct { 1679 *tchttp.BaseRequest 1680 1681 // 媒体类型,可选值请参考 [上传能力综述](/document/product/266/9760#.E6.96.87.E4.BB.B6.E7.B1.BB.E5.9E.8B)。 1682 MediaType *string `json:"MediaType,omitempty" name:"MediaType"` 1683 1684 // 媒体名称。 1685 MediaName *string `json:"MediaName,omitempty" name:"MediaName"` 1686 1687 // 封面类型,可选值请参考 [上传能力综述](/document/product/266/9760#.E6.96.87.E4.BB.B6.E7.B1.BB.E5.9E.8B)。 1688 CoverType *string `json:"CoverType,omitempty" name:"CoverType"` 1689 1690 // 媒体后续任务处理操作,即完成媒体上传后,可自动发起任务流操作。参数值为任务流模板名,云点播支持 [创建任务流模板](/document/product/266/33819) 并为模板命名。 1691 Procedure *string `json:"Procedure,omitempty" name:"Procedure"` 1692 1693 // 媒体文件过期时间,格式按照 ISO 8601 标准表示,详见 [ISO 日期格式说明](/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 1694 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 1695 1696 // 指定上传园区,仅适用于对上传地域有特殊需求的用户。 1697 StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` 1698 1699 // 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。 1700 // <li>默认值:0,表示其他分类。</li> 1701 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 1702 1703 // 来源上下文,用于透传用户请求信息,[上传完成回调](/document/product/266/7830) 将返回该字段值,最长 250 个字符。 1704 SourceContext *string `json:"SourceContext,omitempty" name:"SourceContext"` 1705 1706 // 会话上下文,用于透传用户请求信息,当指定 Procedure 参数后,[任务流状态变更回调](/document/product/266/9636) 将返回该字段值,最长 1000 个字符。 1707 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 1708 1709 // 保留字段,特殊用途时使用。 1710 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 1711 1712 // 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 1713 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 1714} 1715 1716func (r *ApplyUploadRequest) ToJsonString() string { 1717 b, _ := json.Marshal(r) 1718 return string(b) 1719} 1720 1721// FromJsonString It is highly **NOT** recommended to use this function 1722// because it has no param check, nor strict type check 1723func (r *ApplyUploadRequest) FromJsonString(s string) error { 1724 f := make(map[string]interface{}) 1725 if err := json.Unmarshal([]byte(s), &f); err != nil { 1726 return err 1727 } 1728 delete(f, "MediaType") 1729 delete(f, "MediaName") 1730 delete(f, "CoverType") 1731 delete(f, "Procedure") 1732 delete(f, "ExpireTime") 1733 delete(f, "StorageRegion") 1734 delete(f, "ClassId") 1735 delete(f, "SourceContext") 1736 delete(f, "SessionContext") 1737 delete(f, "ExtInfo") 1738 delete(f, "SubAppId") 1739 if len(f) > 0 { 1740 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ApplyUploadRequest has unknown keys!", "") 1741 } 1742 return json.Unmarshal([]byte(s), &r) 1743} 1744 1745type ApplyUploadResponse struct { 1746 *tchttp.BaseResponse 1747 Response *struct { 1748 1749 // 存储桶,用于上传接口 URL 的 bucket_name。 1750 StorageBucket *string `json:"StorageBucket,omitempty" name:"StorageBucket"` 1751 1752 // 存储园区,用于上传接口 Host 的 Region。 1753 StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` 1754 1755 // 点播会话,用于确认上传接口的参数 VodSessionKey。 1756 VodSessionKey *string `json:"VodSessionKey,omitempty" name:"VodSessionKey"` 1757 1758 // 媒体存储路径,用于上传接口存储媒体的对象键(Key)。 1759 MediaStoragePath *string `json:"MediaStoragePath,omitempty" name:"MediaStoragePath"` 1760 1761 // 封面存储路径,用于上传接口存储封面的对象键(Key)。 1762 CoverStoragePath *string `json:"CoverStoragePath,omitempty" name:"CoverStoragePath"` 1763 1764 // 临时凭证,用于上传接口的权限验证。 1765 TempCertificate *TempCertificate `json:"TempCertificate,omitempty" name:"TempCertificate"` 1766 1767 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1768 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1769 } `json:"Response"` 1770} 1771 1772func (r *ApplyUploadResponse) ToJsonString() string { 1773 b, _ := json.Marshal(r) 1774 return string(b) 1775} 1776 1777// FromJsonString It is highly **NOT** recommended to use this function 1778// because it has no param check, nor strict type check 1779func (r *ApplyUploadResponse) FromJsonString(s string) error { 1780 return json.Unmarshal([]byte(s), &r) 1781} 1782 1783type AsrFullTextConfigureInfo struct { 1784 1785 // 语音全文识别任务开关,可选值: 1786 // <li>ON:开启智能语音全文识别任务;</li> 1787 // <li>OFF:关闭智能语音全文识别任务。</li> 1788 Switch *string `json:"Switch,omitempty" name:"Switch"` 1789 1790 // 生成的字幕文件格式,不填或者填空字符串表示不生成字幕文件,可选值: 1791 // <li>vtt:生成 WebVTT 字幕文件。</li> 1792 SubtitleFormat *string `json:"SubtitleFormat,omitempty" name:"SubtitleFormat"` 1793} 1794 1795type AsrFullTextConfigureInfoForUpdate struct { 1796 1797 // 语音全文识别任务开关,可选值: 1798 // <li>ON:开启智能语音全文识别任务;</li> 1799 // <li>OFF:关闭智能语音全文识别任务。</li> 1800 Switch *string `json:"Switch,omitempty" name:"Switch"` 1801 1802 // 生成的字幕文件格式,填空字符串表示不生成字幕文件,可选值: 1803 // <li>vtt:生成 WebVTT 字幕文件。</li> 1804 SubtitleFormat *string `json:"SubtitleFormat,omitempty" name:"SubtitleFormat"` 1805} 1806 1807type AsrWordsConfigureInfo struct { 1808 1809 // 语音关键词识别任务开关,可选值: 1810 // <li>ON:开启语音关键词识别任务;</li> 1811 // <li>OFF:关闭语音关键词识别任务。</li> 1812 Switch *string `json:"Switch,omitempty" name:"Switch"` 1813 1814 // 关键词过滤标签,指定需要返回的关键词的标签。如果未填或者为空,则全部结果都返回。 1815 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 1816 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 1817} 1818 1819type AsrWordsConfigureInfoForUpdate struct { 1820 1821 // 语音关键词识别任务开关,可选值: 1822 // <li>ON:开启语音关键词识别任务;</li> 1823 // <li>OFF:关闭语音关键词识别任务。</li> 1824 Switch *string `json:"Switch,omitempty" name:"Switch"` 1825 1826 // 关键词过滤标签,指定需要返回的关键词的标签。如果未填或者为空,则全部结果都返回。 1827 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 1828 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 1829} 1830 1831type AttachMediaSubtitlesRequest struct { 1832 *tchttp.BaseRequest 1833 1834 // 媒体文件唯一标识。 1835 FileId *string `json:"FileId,omitempty" name:"FileId"` 1836 1837 // 操作。取值如下: 1838 // <li>Attach:关联字幕。</li> 1839 // <li>Detach:解除关联字幕。</li> 1840 Operation *string `json:"Operation,omitempty" name:"Operation"` 1841 1842 // [转自适应码流模板号](https://cloud.tencent.com/document/product/266/34071#zsy)。 1843 AdaptiveDynamicStreamingDefinition *uint64 `json:"AdaptiveDynamicStreamingDefinition,omitempty" name:"AdaptiveDynamicStreamingDefinition"` 1844 1845 // 字幕的唯一标识。 1846 SubtitleIds []*string `json:"SubtitleIds,omitempty" name:"SubtitleIds"` 1847 1848 // 点播[子应用](/document/product/266/14574) ID 。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 1849 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 1850} 1851 1852func (r *AttachMediaSubtitlesRequest) ToJsonString() string { 1853 b, _ := json.Marshal(r) 1854 return string(b) 1855} 1856 1857// FromJsonString It is highly **NOT** recommended to use this function 1858// because it has no param check, nor strict type check 1859func (r *AttachMediaSubtitlesRequest) FromJsonString(s string) error { 1860 f := make(map[string]interface{}) 1861 if err := json.Unmarshal([]byte(s), &f); err != nil { 1862 return err 1863 } 1864 delete(f, "FileId") 1865 delete(f, "Operation") 1866 delete(f, "AdaptiveDynamicStreamingDefinition") 1867 delete(f, "SubtitleIds") 1868 delete(f, "SubAppId") 1869 if len(f) > 0 { 1870 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AttachMediaSubtitlesRequest has unknown keys!", "") 1871 } 1872 return json.Unmarshal([]byte(s), &r) 1873} 1874 1875type AttachMediaSubtitlesResponse struct { 1876 *tchttp.BaseResponse 1877 Response *struct { 1878 1879 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1880 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1881 } `json:"Response"` 1882} 1883 1884func (r *AttachMediaSubtitlesResponse) ToJsonString() string { 1885 b, _ := json.Marshal(r) 1886 return string(b) 1887} 1888 1889// FromJsonString It is highly **NOT** recommended to use this function 1890// because it has no param check, nor strict type check 1891func (r *AttachMediaSubtitlesResponse) FromJsonString(s string) error { 1892 return json.Unmarshal([]byte(s), &r) 1893} 1894 1895type AudioTemplateInfo struct { 1896 1897 // 音频流的编码格式。 1898 // 当外层参数 Container 为 mp3 时,可选值为: 1899 // <li>libmp3lame。</li> 1900 // 当外层参数 Container 为 ogg 或 flac 时,可选值为: 1901 // <li>flac。</li> 1902 // 当外层参数 Container 为 m4a 时,可选值为: 1903 // <li>libfdk_aac;</li> 1904 // <li>libmp3lame;</li> 1905 // <li>ac3。</li> 1906 // 当外层参数 Container 为 mp4 或 flv 时,可选值为: 1907 // <li>libfdk_aac:更适合 mp4;</li> 1908 // <li>libmp3lame:更适合 flv;</li> 1909 // <li>mp2。</li> 1910 // 当外层参数 Container 为 hls 时,可选值为: 1911 // <li>libfdk_aac;</li> 1912 // <li>libmp3lame。</li> 1913 Codec *string `json:"Codec,omitempty" name:"Codec"` 1914 1915 // 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。 1916 // 当取值为 0,表示音频码率和原始音频保持一致。 1917 Bitrate *uint64 `json:"Bitrate,omitempty" name:"Bitrate"` 1918 1919 // 音频流的采样率,可选值: 1920 // <li>32000</li> 1921 // <li>44100</li> 1922 // <li>48000</li> 1923 // 单位:Hz。 1924 SampleRate *uint64 `json:"SampleRate,omitempty" name:"SampleRate"` 1925 1926 // 音频通道方式,可选值: 1927 // <li>1:单通道</li> 1928 // <li>2:双通道</li> 1929 // <li>6:立体声</li> 1930 // 当媒体的封装格式是音频格式时(flac,ogg,mp3,m4a)时,声道数不允许设为立体声。 1931 // 默认值:2。 1932 AudioChannel *int64 `json:"AudioChannel,omitempty" name:"AudioChannel"` 1933} 1934 1935type AudioTemplateInfoForUpdate struct { 1936 1937 // 音频流的编码格式。 1938 // 当外层参数 Container 为 mp3 时,可选值为: 1939 // <li>libmp3lame。</li> 1940 // 当外层参数 Container 为 ogg 或 flac 时,可选值为: 1941 // <li>flac。</li> 1942 // 当外层参数 Container 为 m4a 时,可选值为: 1943 // <li>libfdk_aac;</li> 1944 // <li>libmp3lame;</li> 1945 // <li>ac3。</li> 1946 // 当外层参数 Container 为 mp4 或 flv 时,可选值为: 1947 // <li>libfdk_aac:更适合 mp4;</li> 1948 // <li>libmp3lame:更适合 flv;</li> 1949 // <li>mp2。</li> 1950 // 当外层参数 Container 为 hls 时,可选值为: 1951 // <li>libfdk_aac;</li> 1952 // <li>libmp3lame。</li> 1953 Codec *string `json:"Codec,omitempty" name:"Codec"` 1954 1955 // 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。 当取值为 0,表示音频码率和原始音频保持一致。 1956 Bitrate *uint64 `json:"Bitrate,omitempty" name:"Bitrate"` 1957 1958 // 音频流的采样率,可选值: 1959 // <li>32000</li> 1960 // <li>44100</li> 1961 // <li>48000</li> 1962 // 单位:Hz。 1963 SampleRate *uint64 `json:"SampleRate,omitempty" name:"SampleRate"` 1964 1965 // 音频通道方式,可选值: 1966 // <li>1:单通道</li> 1967 // <li>2:双通道</li> 1968 // <li>6:立体声</li> 1969 // 当媒体的封装格式是音频格式时(flac,ogg,mp3,m4a)时,声道数不允许设为立体声。 1970 AudioChannel *int64 `json:"AudioChannel,omitempty" name:"AudioChannel"` 1971} 1972 1973type AudioTrackItem struct { 1974 1975 // 音频片段的媒体素材来源,可以是: 1976 // <li>点播的媒体文件 ID;</li> 1977 // <li>其他媒体文件的下载 URL。</li> 1978 // 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 1979 SourceMedia *string `json:"SourceMedia,omitempty" name:"SourceMedia"` 1980 1981 // 音频片段取自素材文件的起始时间,单位为秒。0 表示从素材开始位置截取。默认为0。 1982 SourceMediaStartTime *float64 `json:"SourceMediaStartTime,omitempty" name:"SourceMediaStartTime"` 1983 1984 // 音频片段的时长,单位为秒。默认和素材本身长度一致,表示截取全部素材。 1985 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 1986 1987 // 对音频片段进行的操作,如音量调节等。 1988 AudioOperations []*AudioTransform `json:"AudioOperations,omitempty" name:"AudioOperations"` 1989} 1990 1991type AudioTransform struct { 1992 1993 // 音频操作类型,取值有: 1994 // <li>Volume:音量调节。</li> 1995 Type *string `json:"Type,omitempty" name:"Type"` 1996 1997 // 音量调节参数, 当 Type = Volume 时有效。 1998 // 注意:此字段可能返回 null,表示取不到有效值。 1999 VolumeParam *AudioVolumeParam `json:"VolumeParam,omitempty" name:"VolumeParam"` 2000} 2001 2002type AudioVolumeParam struct { 2003 2004 // 是否静音,取值范围0或1。 2005 // <li>0表示不静音。</li> 2006 // <li>1表示静音。</li> 2007 // 默认是0。 2008 Mute *int64 `json:"Mute,omitempty" name:"Mute"` 2009 2010 // 音频增益,取值范围0~10。 2011 // <li>大于1表示增加音量。</li> 2012 // <li>小于1表示降低音量。</li> 2013 // <li>0和1:表示不改变。</li> 2014 // 默认是0。 2015 Gain *float64 `json:"Gain,omitempty" name:"Gain"` 2016} 2017 2018type Canvas struct { 2019 2020 // 背景颜色,取值有: 2021 // <li>Black:黑色背景</li> 2022 // <li>White:白色背景</li> 2023 // 默认值:Black。 2024 Color *string `json:"Color,omitempty" name:"Color"` 2025 2026 // 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。 2027 // 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。 2028 Width *int64 `json:"Width,omitempty" name:"Width"` 2029 2030 // 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。 2031 // 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。 2032 Height *int64 `json:"Height,omitempty" name:"Height"` 2033} 2034 2035type CdnLogInfo struct { 2036 2037 // 日志所属日期, 格式为:yyyy-MM-dd ,如2018-03-01。 2038 Date *string `json:"Date,omitempty" name:"Date"` 2039 2040 // 日志名称,格式为:日期小时-域名 2041 // 如 2018120101-test.vod2.mqcloud.com。 2042 Name *string `json:"Name,omitempty" name:"Name"` 2043 2044 // 日志下载链接,24小时内下载有效。 2045 Url *string `json:"Url,omitempty" name:"Url"` 2046 2047 // 日志起始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 2048 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 2049 2050 // 日志结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 2051 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 2052} 2053 2054type ClassificationConfigureInfo struct { 2055 2056 // 智能分类任务开关,可选值: 2057 // <li>ON:开启智能分类任务;</li> 2058 // <li>OFF:关闭智能分类任务。</li> 2059 Switch *string `json:"Switch,omitempty" name:"Switch"` 2060} 2061 2062type ClassificationConfigureInfoForUpdate struct { 2063 2064 // 智能分类任务开关,可选值: 2065 // <li>ON:开启智能分类任务;</li> 2066 // <li>OFF:关闭智能分类任务。</li> 2067 Switch *string `json:"Switch,omitempty" name:"Switch"` 2068} 2069 2070type ClipFileInfo2017 struct { 2071 2072 // 错误码 2073 // <li>0:成功;</li> 2074 // <li>其他值:失败。</li> 2075 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 2076 2077 // 错误描述。 2078 Message *string `json:"Message,omitempty" name:"Message"` 2079 2080 // 输出目标文件的文件 ID。 2081 FileId *string `json:"FileId,omitempty" name:"FileId"` 2082 2083 // 输出目标文件的文件地址。 2084 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` 2085 2086 // 输出目标文件的文件类型。 2087 FileType *string `json:"FileType,omitempty" name:"FileType"` 2088} 2089 2090type ClipTask2017 struct { 2091 2092 // 视频剪辑任务 ID。 2093 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2094 2095 // 视频剪辑任务源文件 ID。 2096 SrcFileId *string `json:"SrcFileId,omitempty" name:"SrcFileId"` 2097 2098 // 视频剪辑输出的文件信息。 2099 FileInfo *ClipFileInfo2017 `json:"FileInfo,omitempty" name:"FileInfo"` 2100} 2101 2102type CommitUploadRequest struct { 2103 *tchttp.BaseRequest 2104 2105 // 点播会话,取申请上传接口的返回值 VodSessionKey。 2106 VodSessionKey *string `json:"VodSessionKey,omitempty" name:"VodSessionKey"` 2107 2108 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2109 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2110} 2111 2112func (r *CommitUploadRequest) ToJsonString() string { 2113 b, _ := json.Marshal(r) 2114 return string(b) 2115} 2116 2117// FromJsonString It is highly **NOT** recommended to use this function 2118// because it has no param check, nor strict type check 2119func (r *CommitUploadRequest) FromJsonString(s string) error { 2120 f := make(map[string]interface{}) 2121 if err := json.Unmarshal([]byte(s), &f); err != nil { 2122 return err 2123 } 2124 delete(f, "VodSessionKey") 2125 delete(f, "SubAppId") 2126 if len(f) > 0 { 2127 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CommitUploadRequest has unknown keys!", "") 2128 } 2129 return json.Unmarshal([]byte(s), &r) 2130} 2131 2132type CommitUploadResponse struct { 2133 *tchttp.BaseResponse 2134 Response *struct { 2135 2136 // 媒体文件的唯一标识。 2137 FileId *string `json:"FileId,omitempty" name:"FileId"` 2138 2139 // 媒体播放地址。 2140 // 注意:此字段可能返回 null,表示取不到有效值。 2141 MediaUrl *string `json:"MediaUrl,omitempty" name:"MediaUrl"` 2142 2143 // 媒体封面地址。 2144 // 注意:此字段可能返回 null,表示取不到有效值。 2145 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 2146 2147 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2148 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2149 } `json:"Response"` 2150} 2151 2152func (r *CommitUploadResponse) ToJsonString() string { 2153 b, _ := json.Marshal(r) 2154 return string(b) 2155} 2156 2157// FromJsonString It is highly **NOT** recommended to use this function 2158// because it has no param check, nor strict type check 2159func (r *CommitUploadResponse) FromJsonString(s string) error { 2160 return json.Unmarshal([]byte(s), &r) 2161} 2162 2163type ComposeMediaOutput struct { 2164 2165 // 文件名称,最长 64 个字符。 2166 FileName *string `json:"FileName,omitempty" name:"FileName"` 2167 2168 // 描述信息,最长 128 个字符。 2169 Description *string `json:"Description,omitempty" name:"Description"` 2170 2171 // 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。 2172 // <li>默认值:0,表示其他分类。</li> 2173 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 2174 2175 // 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 2176 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 2177 2178 // 封装格式,可选值:mp4、mp3。其中,mp3 为纯音频文件。 2179 Container *string `json:"Container,omitempty" name:"Container"` 2180 2181 // 输出的视频信息。 2182 // 注意:此字段可能返回 null,表示取不到有效值。 2183 VideoStream *OutputVideoStream `json:"VideoStream,omitempty" name:"VideoStream"` 2184 2185 // 输出的音频信息。 2186 // 注意:此字段可能返回 null,表示取不到有效值。 2187 AudioStream *OutputAudioStream `json:"AudioStream,omitempty" name:"AudioStream"` 2188 2189 // 是否去除视频数据,可选值: 2190 // <li>0:保留</li> 2191 // <li>1:去除</li> 2192 // 默认值:0。 2193 RemoveVideo *int64 `json:"RemoveVideo,omitempty" name:"RemoveVideo"` 2194 2195 // 是否去除音频数据,可选值: 2196 // <li>0:保留</li> 2197 // <li>1:去除</li> 2198 // 默认值:0。 2199 RemoveAudio *int64 `json:"RemoveAudio,omitempty" name:"RemoveAudio"` 2200} 2201 2202type ComposeMediaRequest struct { 2203 *tchttp.BaseRequest 2204 2205 // 输入的媒体轨道列表,包括视频、音频、图片等素材组成的多个轨道信息,其中:<li>输入的多个轨道在时间轴上和输出媒体文件的时间轴对齐;</li><li>时间轴上相同时间点的各个轨道的素材进行重叠,视频或者图片按轨道顺序进行图像的叠加,轨道顺序高的素材叠加在上面,音频素材进行混音;</li><li>视频、音频、图片,每一种类型的轨道最多支持10个。</li> 2206 Tracks []*MediaTrack `json:"Tracks,omitempty" name:"Tracks"` 2207 2208 // 输出的媒体文件信息。 2209 Output *ComposeMediaOutput `json:"Output,omitempty" name:"Output"` 2210 2211 // 制作视频文件时使用的画布。 2212 Canvas *Canvas `json:"Canvas,omitempty" name:"Canvas"` 2213 2214 // 标识来源上下文,用于透传用户请求信息,在ComposeMediaComplete回调将返回该字段值,最长 1000个字符。 2215 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 2216 2217 // 用于任务去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 2218 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 2219 2220 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2221 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2222} 2223 2224func (r *ComposeMediaRequest) ToJsonString() string { 2225 b, _ := json.Marshal(r) 2226 return string(b) 2227} 2228 2229// FromJsonString It is highly **NOT** recommended to use this function 2230// because it has no param check, nor strict type check 2231func (r *ComposeMediaRequest) FromJsonString(s string) error { 2232 f := make(map[string]interface{}) 2233 if err := json.Unmarshal([]byte(s), &f); err != nil { 2234 return err 2235 } 2236 delete(f, "Tracks") 2237 delete(f, "Output") 2238 delete(f, "Canvas") 2239 delete(f, "SessionContext") 2240 delete(f, "SessionId") 2241 delete(f, "SubAppId") 2242 if len(f) > 0 { 2243 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ComposeMediaRequest has unknown keys!", "") 2244 } 2245 return json.Unmarshal([]byte(s), &r) 2246} 2247 2248type ComposeMediaResponse struct { 2249 *tchttp.BaseResponse 2250 Response *struct { 2251 2252 // 制作媒体文件的任务 ID,可以通过该 ID 查询制作任务(任务类型为 MakeMedia)的状态。 2253 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2254 2255 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2256 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2257 } `json:"Response"` 2258} 2259 2260func (r *ComposeMediaResponse) ToJsonString() string { 2261 b, _ := json.Marshal(r) 2262 return string(b) 2263} 2264 2265// FromJsonString It is highly **NOT** recommended to use this function 2266// because it has no param check, nor strict type check 2267func (r *ComposeMediaResponse) FromJsonString(s string) error { 2268 return json.Unmarshal([]byte(s), &r) 2269} 2270 2271type ComposeMediaTask struct { 2272 2273 // 任务 ID。 2274 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2275 2276 // 任务流状态,取值: 2277 // <li>PROCESSING:处理中;</li> 2278 // <li>FINISH:已完成。</li> 2279 Status *string `json:"Status,omitempty" name:"Status"` 2280 2281 // 错误码 2282 // <li>0:成功;</li> 2283 // <li>其他值:失败。</li> 2284 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 2285 2286 // 错误信息。 2287 Message *string `json:"Message,omitempty" name:"Message"` 2288 2289 // 制作媒体文件任务的输入。 2290 // 注意:此字段可能返回 null,表示取不到有效值。 2291 Input *ComposeMediaTaskInput `json:"Input,omitempty" name:"Input"` 2292 2293 // 制作媒体文件任务的输出。 2294 // 注意:此字段可能返回 null,表示取不到有效值。 2295 Output *ComposeMediaTaskOutput `json:"Output,omitempty" name:"Output"` 2296 2297 // 原始视频的元信息。 2298 // 注意:此字段可能返回 null,表示取不到有效值。 2299 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 2300 2301 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 2302 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 2303 2304 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 2305 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 2306} 2307 2308type ComposeMediaTaskInput struct { 2309 2310 // 输入的媒体轨道列表,包括视频、音频、图片等素材组成的多个轨道信息。 2311 Tracks []*MediaTrack `json:"Tracks,omitempty" name:"Tracks"` 2312 2313 // 制作视频文件时使用的画布。 2314 // 注意:此字段可能返回 null,表示取不到有效值。 2315 Canvas *Canvas `json:"Canvas,omitempty" name:"Canvas"` 2316 2317 // 输出的媒体文件信息。 2318 Output *ComposeMediaOutput `json:"Output,omitempty" name:"Output"` 2319} 2320 2321type ComposeMediaTaskOutput struct { 2322 2323 // 文件类型,例如 mp4、mp3 等。 2324 FileType *string `json:"FileType,omitempty" name:"FileType"` 2325 2326 // 媒体文件 ID。 2327 FileId *string `json:"FileId,omitempty" name:"FileId"` 2328 2329 // 媒体文件播放地址。 2330 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` 2331 2332 // 文件名称,最长 64 个字符。 2333 MediaName *string `json:"MediaName,omitempty" name:"MediaName"` 2334 2335 // 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。 2336 // <li>默认值:0,表示其他分类。</li> 2337 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 2338 2339 // 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 2340 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 2341} 2342 2343type ConcatFileInfo2017 struct { 2344 2345 // 错误码 2346 // <li>0:成功;</li> 2347 // <li>其他值:失败。</li> 2348 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 2349 2350 // 错误信息。 2351 Message *string `json:"Message,omitempty" name:"Message"` 2352 2353 // 视频拼接源文件的 ID。 2354 FileId *string `json:"FileId,omitempty" name:"FileId"` 2355 2356 // 视频拼接源文件的地址。 2357 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` 2358 2359 // 视频拼接源文件的格式。 2360 FileType *string `json:"FileType,omitempty" name:"FileType"` 2361} 2362 2363type ConcatTask2017 struct { 2364 2365 // 视频拼接任务 ID。 2366 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 2367 2368 // 视频拼接源文件信息。 2369 FileInfoSet []*ConcatFileInfo2017 `json:"FileInfoSet,omitempty" name:"FileInfoSet"` 2370} 2371 2372type ConfirmEventsRequest struct { 2373 *tchttp.BaseRequest 2374 2375 // 事件句柄,即 [拉取事件通知](/document/product/266/33433) 接口输出参数中的 EventSet. EventHandle 字段。 2376 // 数组长度限制:16。 2377 EventHandles []*string `json:"EventHandles,omitempty" name:"EventHandles"` 2378 2379 // 保留字段,特殊用途时使用。 2380 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 2381 2382 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2383 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2384} 2385 2386func (r *ConfirmEventsRequest) ToJsonString() string { 2387 b, _ := json.Marshal(r) 2388 return string(b) 2389} 2390 2391// FromJsonString It is highly **NOT** recommended to use this function 2392// because it has no param check, nor strict type check 2393func (r *ConfirmEventsRequest) FromJsonString(s string) error { 2394 f := make(map[string]interface{}) 2395 if err := json.Unmarshal([]byte(s), &f); err != nil { 2396 return err 2397 } 2398 delete(f, "EventHandles") 2399 delete(f, "ExtInfo") 2400 delete(f, "SubAppId") 2401 if len(f) > 0 { 2402 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ConfirmEventsRequest has unknown keys!", "") 2403 } 2404 return json.Unmarshal([]byte(s), &r) 2405} 2406 2407type ConfirmEventsResponse struct { 2408 *tchttp.BaseResponse 2409 Response *struct { 2410 2411 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2412 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2413 } `json:"Response"` 2414} 2415 2416func (r *ConfirmEventsResponse) ToJsonString() string { 2417 b, _ := json.Marshal(r) 2418 return string(b) 2419} 2420 2421// FromJsonString It is highly **NOT** recommended to use this function 2422// because it has no param check, nor strict type check 2423func (r *ConfirmEventsResponse) FromJsonString(s string) error { 2424 return json.Unmarshal([]byte(s), &r) 2425} 2426 2427type ContentReviewTemplateItem struct { 2428 2429 // 内容审核模板唯一标识。 2430 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 2431 2432 // 内容审核模板名称,长度限制:64 个字符。 2433 Name *string `json:"Name,omitempty" name:"Name"` 2434 2435 // 内容审核模板描述信息,长度限制:256 个字符。 2436 Comment *string `json:"Comment,omitempty" name:"Comment"` 2437 2438 // 鉴黄控制参数。 2439 // 注意:此字段可能返回 null,表示取不到有效值。 2440 PornConfigure *PornConfigureInfo `json:"PornConfigure,omitempty" name:"PornConfigure"` 2441 2442 // 鉴恐控制参数。 2443 // 注意:此字段可能返回 null,表示取不到有效值。 2444 TerrorismConfigure *TerrorismConfigureInfo `json:"TerrorismConfigure,omitempty" name:"TerrorismConfigure"` 2445 2446 // 鉴政控制参数。 2447 // 注意:此字段可能返回 null,表示取不到有效值。 2448 PoliticalConfigure *PoliticalConfigureInfo `json:"PoliticalConfigure,omitempty" name:"PoliticalConfigure"` 2449 2450 // 违禁控制参数。违禁内容包括: 2451 // <li>谩骂;</li> 2452 // <li>涉毒违法。</li> 2453 // 注意:此字段可能返回 null,表示取不到有效值。 2454 ProhibitedConfigure *ProhibitedConfigureInfo `json:"ProhibitedConfigure,omitempty" name:"ProhibitedConfigure"` 2455 2456 // 用户自定义内容审核控制参数。 2457 // 注意:此字段可能返回 null,表示取不到有效值。 2458 UserDefineConfigure *UserDefineConfigureInfo `json:"UserDefineConfigure,omitempty" name:"UserDefineConfigure"` 2459 2460 // 审核结果是否进入审核墙(对审核结果进行人工复核)的开关。 2461 // <li>ON:是;</li> 2462 // <li>OFF:否。</li> 2463 ReviewWallSwitch *string `json:"ReviewWallSwitch,omitempty" name:"ReviewWallSwitch"` 2464 2465 // 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。 2466 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 2467 2468 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 2469 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 2470 2471 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 2472 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 2473} 2474 2475type CoverBySnapshotTaskInput struct { 2476 2477 // 指定时间点截图模板 ID。 2478 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 2479 2480 // 截图方式。包含: 2481 // <li>Time:依照时间点截图</li> 2482 // <li>Percent:依照百分比截图</li> 2483 PositionType *string `json:"PositionType,omitempty" name:"PositionType"` 2484 2485 // 截图位置: 2486 // <li>对于依照时间点截图,该值表示指定视频第几秒的截图作为封面</li> 2487 // <li>对于依照百分比截图,该值表示使用视频百分之多少的截图作为封面</li> 2488 PositionValue *float64 `json:"PositionValue,omitempty" name:"PositionValue"` 2489 2490 // 水印列表,支持多张图片或文字水印,最大可支持 10 张。 2491 WatermarkSet []*WatermarkInput `json:"WatermarkSet,omitempty" name:"WatermarkSet"` 2492} 2493 2494type CoverBySnapshotTaskOutput struct { 2495 2496 // 封面 URL。 2497 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 2498} 2499 2500type CoverConfigureInfo struct { 2501 2502 // 智能封面任务开关,可选值: 2503 // <li>ON:开启智能封面任务;</li> 2504 // <li>OFF:关闭智能封面任务。</li> 2505 Switch *string `json:"Switch,omitempty" name:"Switch"` 2506} 2507 2508type CoverConfigureInfoForUpdate struct { 2509 2510 // 智能封面任务开关,可选值: 2511 // <li>ON:开启智能封面任务;</li> 2512 // <li>OFF:关闭智能封面任务。</li> 2513 Switch *string `json:"Switch,omitempty" name:"Switch"` 2514} 2515 2516type CreateAIAnalysisTemplateRequest struct { 2517 *tchttp.BaseRequest 2518 2519 // 视频内容分析模板名称,长度限制:64 个字符。 2520 Name *string `json:"Name,omitempty" name:"Name"` 2521 2522 // 视频内容分析模板描述信息,长度限制:256 个字符。 2523 Comment *string `json:"Comment,omitempty" name:"Comment"` 2524 2525 // 智能分类任务控制参数。 2526 ClassificationConfigure *ClassificationConfigureInfo `json:"ClassificationConfigure,omitempty" name:"ClassificationConfigure"` 2527 2528 // 智能标签任务控制参数。 2529 TagConfigure *TagConfigureInfo `json:"TagConfigure,omitempty" name:"TagConfigure"` 2530 2531 // 智能封面任务控制参数。 2532 CoverConfigure *CoverConfigureInfo `json:"CoverConfigure,omitempty" name:"CoverConfigure"` 2533 2534 // 智能按帧标签任务控制参数。 2535 FrameTagConfigure *FrameTagConfigureInfo `json:"FrameTagConfigure,omitempty" name:"FrameTagConfigure"` 2536 2537 // 智能精彩集锦任务控制参数。 2538 HighlightConfigure *HighlightsConfigureInfo `json:"HighlightConfigure,omitempty" name:"HighlightConfigure"` 2539 2540 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2541 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2542} 2543 2544func (r *CreateAIAnalysisTemplateRequest) ToJsonString() string { 2545 b, _ := json.Marshal(r) 2546 return string(b) 2547} 2548 2549// FromJsonString It is highly **NOT** recommended to use this function 2550// because it has no param check, nor strict type check 2551func (r *CreateAIAnalysisTemplateRequest) FromJsonString(s string) error { 2552 f := make(map[string]interface{}) 2553 if err := json.Unmarshal([]byte(s), &f); err != nil { 2554 return err 2555 } 2556 delete(f, "Name") 2557 delete(f, "Comment") 2558 delete(f, "ClassificationConfigure") 2559 delete(f, "TagConfigure") 2560 delete(f, "CoverConfigure") 2561 delete(f, "FrameTagConfigure") 2562 delete(f, "HighlightConfigure") 2563 delete(f, "SubAppId") 2564 if len(f) > 0 { 2565 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAIAnalysisTemplateRequest has unknown keys!", "") 2566 } 2567 return json.Unmarshal([]byte(s), &r) 2568} 2569 2570type CreateAIAnalysisTemplateResponse struct { 2571 *tchttp.BaseResponse 2572 Response *struct { 2573 2574 // 视频内容分析模板唯一标识。 2575 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 2576 2577 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2578 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2579 } `json:"Response"` 2580} 2581 2582func (r *CreateAIAnalysisTemplateResponse) ToJsonString() string { 2583 b, _ := json.Marshal(r) 2584 return string(b) 2585} 2586 2587// FromJsonString It is highly **NOT** recommended to use this function 2588// because it has no param check, nor strict type check 2589func (r *CreateAIAnalysisTemplateResponse) FromJsonString(s string) error { 2590 return json.Unmarshal([]byte(s), &r) 2591} 2592 2593type CreateAIRecognitionTemplateRequest struct { 2594 *tchttp.BaseRequest 2595 2596 // 视频内容识别模板名称,长度限制:64 个字符。 2597 Name *string `json:"Name,omitempty" name:"Name"` 2598 2599 // 视频内容识别模板描述信息,长度限制:256 个字符。 2600 Comment *string `json:"Comment,omitempty" name:"Comment"` 2601 2602 // 视频片头片尾识别控制参数。 2603 HeadTailConfigure *HeadTailConfigureInfo `json:"HeadTailConfigure,omitempty" name:"HeadTailConfigure"` 2604 2605 // 视频拆条识别控制参数。 2606 SegmentConfigure *SegmentConfigureInfo `json:"SegmentConfigure,omitempty" name:"SegmentConfigure"` 2607 2608 // 人脸识别控制参数。 2609 FaceConfigure *FaceConfigureInfo `json:"FaceConfigure,omitempty" name:"FaceConfigure"` 2610 2611 // 文本全文识别控制参数。 2612 OcrFullTextConfigure *OcrFullTextConfigureInfo `json:"OcrFullTextConfigure,omitempty" name:"OcrFullTextConfigure"` 2613 2614 // 文本关键词识别控制参数。 2615 OcrWordsConfigure *OcrWordsConfigureInfo `json:"OcrWordsConfigure,omitempty" name:"OcrWordsConfigure"` 2616 2617 // 语音全文识别控制参数。 2618 AsrFullTextConfigure *AsrFullTextConfigureInfo `json:"AsrFullTextConfigure,omitempty" name:"AsrFullTextConfigure"` 2619 2620 // 语音关键词识别控制参数。 2621 AsrWordsConfigure *AsrWordsConfigureInfo `json:"AsrWordsConfigure,omitempty" name:"AsrWordsConfigure"` 2622 2623 // 物体识别控制参数。 2624 ObjectConfigure *ObjectConfigureInfo `json:"ObjectConfigure,omitempty" name:"ObjectConfigure"` 2625 2626 // 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。 2627 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 2628 2629 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2630 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2631} 2632 2633func (r *CreateAIRecognitionTemplateRequest) ToJsonString() string { 2634 b, _ := json.Marshal(r) 2635 return string(b) 2636} 2637 2638// FromJsonString It is highly **NOT** recommended to use this function 2639// because it has no param check, nor strict type check 2640func (r *CreateAIRecognitionTemplateRequest) FromJsonString(s string) error { 2641 f := make(map[string]interface{}) 2642 if err := json.Unmarshal([]byte(s), &f); err != nil { 2643 return err 2644 } 2645 delete(f, "Name") 2646 delete(f, "Comment") 2647 delete(f, "HeadTailConfigure") 2648 delete(f, "SegmentConfigure") 2649 delete(f, "FaceConfigure") 2650 delete(f, "OcrFullTextConfigure") 2651 delete(f, "OcrWordsConfigure") 2652 delete(f, "AsrFullTextConfigure") 2653 delete(f, "AsrWordsConfigure") 2654 delete(f, "ObjectConfigure") 2655 delete(f, "ScreenshotInterval") 2656 delete(f, "SubAppId") 2657 if len(f) > 0 { 2658 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAIRecognitionTemplateRequest has unknown keys!", "") 2659 } 2660 return json.Unmarshal([]byte(s), &r) 2661} 2662 2663type CreateAIRecognitionTemplateResponse struct { 2664 *tchttp.BaseResponse 2665 Response *struct { 2666 2667 // 视频内容识别模板唯一标识。 2668 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 2669 2670 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2671 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2672 } `json:"Response"` 2673} 2674 2675func (r *CreateAIRecognitionTemplateResponse) ToJsonString() string { 2676 b, _ := json.Marshal(r) 2677 return string(b) 2678} 2679 2680// FromJsonString It is highly **NOT** recommended to use this function 2681// because it has no param check, nor strict type check 2682func (r *CreateAIRecognitionTemplateResponse) FromJsonString(s string) error { 2683 return json.Unmarshal([]byte(s), &r) 2684} 2685 2686type CreateAdaptiveDynamicStreamingTemplateRequest struct { 2687 *tchttp.BaseRequest 2688 2689 // 自适应转码格式,取值范围: 2690 // <li>HLS。</li> 2691 Format *string `json:"Format,omitempty" name:"Format"` 2692 2693 // 自适应转码输出子流参数信息,最多输出10路子流。 2694 // 注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。 2695 StreamInfos []*AdaptiveStreamTemplate `json:"StreamInfos,omitempty" name:"StreamInfos"` 2696 2697 // 模板名称,长度限制:64 个字符。 2698 Name *string `json:"Name,omitempty" name:"Name"` 2699 2700 // DRM方案类型,取值范围: 2701 // <li>SimpleAES。</li> 2702 // 如果取值为空字符串,代表不对视频做 DRM 保护。 2703 DrmType *string `json:"DrmType,omitempty" name:"DrmType"` 2704 2705 // 是否禁止视频低码率转高码率,取值范围: 2706 // <li>0:否,</li> 2707 // <li>1:是。</li> 2708 // 默认为否。 2709 DisableHigherVideoBitrate *uint64 `json:"DisableHigherVideoBitrate,omitempty" name:"DisableHigherVideoBitrate"` 2710 2711 // 是否禁止视频分辨率转高分辨率,取值范围: 2712 // <li>0:否,</li> 2713 // <li>1:是。</li> 2714 // 默认为否。 2715 DisableHigherVideoResolution *uint64 `json:"DisableHigherVideoResolution,omitempty" name:"DisableHigherVideoResolution"` 2716 2717 // 模板描述信息,长度限制:256 个字符。 2718 Comment *string `json:"Comment,omitempty" name:"Comment"` 2719 2720 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2721 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2722} 2723 2724func (r *CreateAdaptiveDynamicStreamingTemplateRequest) ToJsonString() string { 2725 b, _ := json.Marshal(r) 2726 return string(b) 2727} 2728 2729// FromJsonString It is highly **NOT** recommended to use this function 2730// because it has no param check, nor strict type check 2731func (r *CreateAdaptiveDynamicStreamingTemplateRequest) FromJsonString(s string) error { 2732 f := make(map[string]interface{}) 2733 if err := json.Unmarshal([]byte(s), &f); err != nil { 2734 return err 2735 } 2736 delete(f, "Format") 2737 delete(f, "StreamInfos") 2738 delete(f, "Name") 2739 delete(f, "DrmType") 2740 delete(f, "DisableHigherVideoBitrate") 2741 delete(f, "DisableHigherVideoResolution") 2742 delete(f, "Comment") 2743 delete(f, "SubAppId") 2744 if len(f) > 0 { 2745 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAdaptiveDynamicStreamingTemplateRequest has unknown keys!", "") 2746 } 2747 return json.Unmarshal([]byte(s), &r) 2748} 2749 2750type CreateAdaptiveDynamicStreamingTemplateResponse struct { 2751 *tchttp.BaseResponse 2752 Response *struct { 2753 2754 // 自适应转码模板唯一标识。 2755 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 2756 2757 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2758 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2759 } `json:"Response"` 2760} 2761 2762func (r *CreateAdaptiveDynamicStreamingTemplateResponse) ToJsonString() string { 2763 b, _ := json.Marshal(r) 2764 return string(b) 2765} 2766 2767// FromJsonString It is highly **NOT** recommended to use this function 2768// because it has no param check, nor strict type check 2769func (r *CreateAdaptiveDynamicStreamingTemplateResponse) FromJsonString(s string) error { 2770 return json.Unmarshal([]byte(s), &r) 2771} 2772 2773type CreateAnimatedGraphicsTemplateRequest struct { 2774 *tchttp.BaseRequest 2775 2776 // 帧率,取值范围:[1, 30],单位:Hz。 2777 Fps *uint64 `json:"Fps,omitempty" name:"Fps"` 2778 2779 // 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 2780 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 2781 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 2782 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 2783 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 2784 // 默认值:0。 2785 Width *uint64 `json:"Width,omitempty" name:"Width"` 2786 2787 // 动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 2788 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 2789 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 2790 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 2791 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 2792 // 默认值:0。 2793 Height *uint64 `json:"Height,omitempty" name:"Height"` 2794 2795 // 分辨率自适应,可选值: 2796 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 2797 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 2798 // 默认值:open。 2799 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 2800 2801 // 动图格式,取值为 gif 和 webp。默认为 gif。 2802 Format *string `json:"Format,omitempty" name:"Format"` 2803 2804 // 图片质量,取值范围:[1, 100],默认值为 75。 2805 Quality *float64 `json:"Quality,omitempty" name:"Quality"` 2806 2807 // 转动图模板名称,长度限制:64 个字符。 2808 Name *string `json:"Name,omitempty" name:"Name"` 2809 2810 // 模板描述信息,长度限制:256 个字符。 2811 Comment *string `json:"Comment,omitempty" name:"Comment"` 2812 2813 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2814 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2815} 2816 2817func (r *CreateAnimatedGraphicsTemplateRequest) ToJsonString() string { 2818 b, _ := json.Marshal(r) 2819 return string(b) 2820} 2821 2822// FromJsonString It is highly **NOT** recommended to use this function 2823// because it has no param check, nor strict type check 2824func (r *CreateAnimatedGraphicsTemplateRequest) FromJsonString(s string) error { 2825 f := make(map[string]interface{}) 2826 if err := json.Unmarshal([]byte(s), &f); err != nil { 2827 return err 2828 } 2829 delete(f, "Fps") 2830 delete(f, "Width") 2831 delete(f, "Height") 2832 delete(f, "ResolutionAdaptive") 2833 delete(f, "Format") 2834 delete(f, "Quality") 2835 delete(f, "Name") 2836 delete(f, "Comment") 2837 delete(f, "SubAppId") 2838 if len(f) > 0 { 2839 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAnimatedGraphicsTemplateRequest has unknown keys!", "") 2840 } 2841 return json.Unmarshal([]byte(s), &r) 2842} 2843 2844type CreateAnimatedGraphicsTemplateResponse struct { 2845 *tchttp.BaseResponse 2846 Response *struct { 2847 2848 // 转动图模板唯一标识。 2849 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 2850 2851 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2852 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2853 } `json:"Response"` 2854} 2855 2856func (r *CreateAnimatedGraphicsTemplateResponse) ToJsonString() string { 2857 b, _ := json.Marshal(r) 2858 return string(b) 2859} 2860 2861// FromJsonString It is highly **NOT** recommended to use this function 2862// because it has no param check, nor strict type check 2863func (r *CreateAnimatedGraphicsTemplateResponse) FromJsonString(s string) error { 2864 return json.Unmarshal([]byte(s), &r) 2865} 2866 2867type CreateClassRequest struct { 2868 *tchttp.BaseRequest 2869 2870 // 父类 ID,一级分类填写 -1。 2871 ParentId *int64 `json:"ParentId,omitempty" name:"ParentId"` 2872 2873 // 分类名称,长度限制:1-64 个字符。 2874 ClassName *string `json:"ClassName,omitempty" name:"ClassName"` 2875 2876 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2877 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2878} 2879 2880func (r *CreateClassRequest) ToJsonString() string { 2881 b, _ := json.Marshal(r) 2882 return string(b) 2883} 2884 2885// FromJsonString It is highly **NOT** recommended to use this function 2886// because it has no param check, nor strict type check 2887func (r *CreateClassRequest) FromJsonString(s string) error { 2888 f := make(map[string]interface{}) 2889 if err := json.Unmarshal([]byte(s), &f); err != nil { 2890 return err 2891 } 2892 delete(f, "ParentId") 2893 delete(f, "ClassName") 2894 delete(f, "SubAppId") 2895 if len(f) > 0 { 2896 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateClassRequest has unknown keys!", "") 2897 } 2898 return json.Unmarshal([]byte(s), &r) 2899} 2900 2901type CreateClassResponse struct { 2902 *tchttp.BaseResponse 2903 Response *struct { 2904 2905 // 分类 ID 2906 ClassId *uint64 `json:"ClassId,omitempty" name:"ClassId"` 2907 2908 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2909 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2910 } `json:"Response"` 2911} 2912 2913func (r *CreateClassResponse) ToJsonString() string { 2914 b, _ := json.Marshal(r) 2915 return string(b) 2916} 2917 2918// FromJsonString It is highly **NOT** recommended to use this function 2919// because it has no param check, nor strict type check 2920func (r *CreateClassResponse) FromJsonString(s string) error { 2921 return json.Unmarshal([]byte(s), &r) 2922} 2923 2924type CreateContentReviewTemplateRequest struct { 2925 *tchttp.BaseRequest 2926 2927 // 智能识别结果是否进入智能识别墙(对识别结果进行人工复核)的开关。 2928 // <li>ON:是;</li> 2929 // <li>OFF:否。</li> 2930 ReviewWallSwitch *string `json:"ReviewWallSwitch,omitempty" name:"ReviewWallSwitch"` 2931 2932 // 内容智能识别模板名称,长度限制:64 个字符。 2933 Name *string `json:"Name,omitempty" name:"Name"` 2934 2935 // 内容智能识别模板描述信息,长度限制:256 个字符。 2936 Comment *string `json:"Comment,omitempty" name:"Comment"` 2937 2938 // 令人反感的信息的控制参数。 2939 PornConfigure *PornConfigureInfo `json:"PornConfigure,omitempty" name:"PornConfigure"` 2940 2941 // 令人不安全的信息的控制参数。 2942 TerrorismConfigure *TerrorismConfigureInfo `json:"TerrorismConfigure,omitempty" name:"TerrorismConfigure"` 2943 2944 // 令人不适宜的控制参数。 2945 PoliticalConfigure *PoliticalConfigureInfo `json:"PoliticalConfigure,omitempty" name:"PoliticalConfigure"` 2946 2947 // 违禁控制参数。违禁内容包括: 2948 // <li>谩骂;</li> 2949 // <li>涉毒违法。</li> 2950 ProhibitedConfigure *ProhibitedConfigureInfo `json:"ProhibitedConfigure,omitempty" name:"ProhibitedConfigure"` 2951 2952 // 用户自定义内容智能识别控制参数。 2953 UserDefineConfigure *UserDefineConfigureInfo `json:"UserDefineConfigure,omitempty" name:"UserDefineConfigure"` 2954 2955 // 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。 2956 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 2957 2958 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 2959 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 2960} 2961 2962func (r *CreateContentReviewTemplateRequest) ToJsonString() string { 2963 b, _ := json.Marshal(r) 2964 return string(b) 2965} 2966 2967// FromJsonString It is highly **NOT** recommended to use this function 2968// because it has no param check, nor strict type check 2969func (r *CreateContentReviewTemplateRequest) FromJsonString(s string) error { 2970 f := make(map[string]interface{}) 2971 if err := json.Unmarshal([]byte(s), &f); err != nil { 2972 return err 2973 } 2974 delete(f, "ReviewWallSwitch") 2975 delete(f, "Name") 2976 delete(f, "Comment") 2977 delete(f, "PornConfigure") 2978 delete(f, "TerrorismConfigure") 2979 delete(f, "PoliticalConfigure") 2980 delete(f, "ProhibitedConfigure") 2981 delete(f, "UserDefineConfigure") 2982 delete(f, "ScreenshotInterval") 2983 delete(f, "SubAppId") 2984 if len(f) > 0 { 2985 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateContentReviewTemplateRequest has unknown keys!", "") 2986 } 2987 return json.Unmarshal([]byte(s), &r) 2988} 2989 2990type CreateContentReviewTemplateResponse struct { 2991 *tchttp.BaseResponse 2992 Response *struct { 2993 2994 // 内容智能识别模板唯一标识。 2995 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 2996 2997 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2998 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2999 } `json:"Response"` 3000} 3001 3002func (r *CreateContentReviewTemplateResponse) ToJsonString() string { 3003 b, _ := json.Marshal(r) 3004 return string(b) 3005} 3006 3007// FromJsonString It is highly **NOT** recommended to use this function 3008// because it has no param check, nor strict type check 3009func (r *CreateContentReviewTemplateResponse) FromJsonString(s string) error { 3010 return json.Unmarshal([]byte(s), &r) 3011} 3012 3013type CreateHeadTailTemplateRequest struct { 3014 *tchttp.BaseRequest 3015 3016 // 模板名,长度限制 64 个字符。 3017 Name *string `json:"Name,omitempty" name:"Name"` 3018 3019 // 模板描述信息,长度限制 256 个字符。 3020 Comment *string `json:"Comment,omitempty" name:"Comment"` 3021 3022 // 片头候选列表,填写视频的 FileId。转码时将自动选择与正片宽高比最接近的一个片头(相同宽高比时,靠前的候选项优先)。最多支持 5 个候选片头。 3023 HeadCandidateSet []*string `json:"HeadCandidateSet,omitempty" name:"HeadCandidateSet"` 3024 3025 // 片尾候选列表,填写视频的 FileId。转码时将自动选择与正片宽高比最接近的一个片尾(相同宽高比时,靠前的候选项优先)。最多支持 5 个候选片尾。 3026 TailCandidateSet []*string `json:"TailCandidateSet,omitempty" name:"TailCandidateSet"` 3027 3028 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 3029 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 3030 // <li> gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;</li> 3031 // <li> white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;</li> 3032 // <li> black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 3033 // 默认值:stretch 。 3034 FillType *string `json:"FillType,omitempty" name:"FillType"` 3035 3036 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3037 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3038} 3039 3040func (r *CreateHeadTailTemplateRequest) ToJsonString() string { 3041 b, _ := json.Marshal(r) 3042 return string(b) 3043} 3044 3045// FromJsonString It is highly **NOT** recommended to use this function 3046// because it has no param check, nor strict type check 3047func (r *CreateHeadTailTemplateRequest) FromJsonString(s string) error { 3048 f := make(map[string]interface{}) 3049 if err := json.Unmarshal([]byte(s), &f); err != nil { 3050 return err 3051 } 3052 delete(f, "Name") 3053 delete(f, "Comment") 3054 delete(f, "HeadCandidateSet") 3055 delete(f, "TailCandidateSet") 3056 delete(f, "FillType") 3057 delete(f, "SubAppId") 3058 if len(f) > 0 { 3059 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateHeadTailTemplateRequest has unknown keys!", "") 3060 } 3061 return json.Unmarshal([]byte(s), &r) 3062} 3063 3064type CreateHeadTailTemplateResponse struct { 3065 *tchttp.BaseResponse 3066 Response *struct { 3067 3068 // 片头片尾模板号。 3069 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 3070 3071 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3072 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3073 } `json:"Response"` 3074} 3075 3076func (r *CreateHeadTailTemplateResponse) ToJsonString() string { 3077 b, _ := json.Marshal(r) 3078 return string(b) 3079} 3080 3081// FromJsonString It is highly **NOT** recommended to use this function 3082// because it has no param check, nor strict type check 3083func (r *CreateHeadTailTemplateResponse) FromJsonString(s string) error { 3084 return json.Unmarshal([]byte(s), &r) 3085} 3086 3087type CreateImageProcessingTemplateRequest struct { 3088 *tchttp.BaseRequest 3089 3090 // 图片处理操作数组,操作将以其在数组中的顺序执行。 3091 // <li>长度限制:3。</li> 3092 Operations []*ImageOperation `json:"Operations,omitempty" name:"Operations"` 3093 3094 // 图片处理模板名称,长度限制:64 个字符。 3095 Name *string `json:"Name,omitempty" name:"Name"` 3096 3097 // 模板描述信息,长度限制:256 个字符。 3098 Comment *string `json:"Comment,omitempty" name:"Comment"` 3099 3100 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3101 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3102} 3103 3104func (r *CreateImageProcessingTemplateRequest) ToJsonString() string { 3105 b, _ := json.Marshal(r) 3106 return string(b) 3107} 3108 3109// FromJsonString It is highly **NOT** recommended to use this function 3110// because it has no param check, nor strict type check 3111func (r *CreateImageProcessingTemplateRequest) FromJsonString(s string) error { 3112 f := make(map[string]interface{}) 3113 if err := json.Unmarshal([]byte(s), &f); err != nil { 3114 return err 3115 } 3116 delete(f, "Operations") 3117 delete(f, "Name") 3118 delete(f, "Comment") 3119 delete(f, "SubAppId") 3120 if len(f) > 0 { 3121 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateImageProcessingTemplateRequest has unknown keys!", "") 3122 } 3123 return json.Unmarshal([]byte(s), &r) 3124} 3125 3126type CreateImageProcessingTemplateResponse struct { 3127 *tchttp.BaseResponse 3128 Response *struct { 3129 3130 // 图片处理模板唯一标识。 3131 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 3132 3133 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3134 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3135 } `json:"Response"` 3136} 3137 3138func (r *CreateImageProcessingTemplateResponse) ToJsonString() string { 3139 b, _ := json.Marshal(r) 3140 return string(b) 3141} 3142 3143// FromJsonString It is highly **NOT** recommended to use this function 3144// because it has no param check, nor strict type check 3145func (r *CreateImageProcessingTemplateResponse) FromJsonString(s string) error { 3146 return json.Unmarshal([]byte(s), &r) 3147} 3148 3149type CreateImageSpriteTask2017 struct { 3150 3151 // 截图雪碧图任务 ID。 3152 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 3153 3154 // 错误码 3155 // <li>0:成功;</li> 3156 // <li>其他值:失败。</li> 3157 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 3158 3159 // 错误信息。 3160 Message *string `json:"Message,omitempty" name:"Message"` 3161 3162 // 截取雪碧图文件 ID。 3163 FileId *string `json:"FileId,omitempty" name:"FileId"` 3164 3165 // 雪碧图规格,参见[雪碧图截图模板](https://cloud.tencent.com/document/product/266/33480#.E9.9B.AA.E7.A2.A7.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 3166 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 3167 3168 // 雪碧图小图总数量。 3169 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 3170 3171 // 截取雪碧图输出的地址。 3172 ImageSpriteUrlSet []*string `json:"ImageSpriteUrlSet,omitempty" name:"ImageSpriteUrlSet"` 3173 3174 // 雪碧图子图位置与时间关系 WebVtt 文件地址。 3175 WebVttUrl *string `json:"WebVttUrl,omitempty" name:"WebVttUrl"` 3176} 3177 3178type CreateImageSpriteTemplateRequest struct { 3179 *tchttp.BaseRequest 3180 3181 // 采样类型,取值: 3182 // <li>Percent:按百分比。</li> 3183 // <li>Time:按时间间隔。</li> 3184 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 3185 3186 // 采样间隔。 3187 // <li>当 SampleType 为 Percent 时,指定采样间隔的百分比。</li> 3188 // <li>当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。</li> 3189 SampleInterval *uint64 `json:"SampleInterval,omitempty" name:"SampleInterval"` 3190 3191 // 雪碧图中小图的行数。 3192 RowCount *uint64 `json:"RowCount,omitempty" name:"RowCount"` 3193 3194 // 雪碧图中小图的列数。 3195 ColumnCount *uint64 `json:"ColumnCount,omitempty" name:"ColumnCount"` 3196 3197 // 雪碧图模板名称,长度限制:64 个字符。 3198 Name *string `json:"Name,omitempty" name:"Name"` 3199 3200 // 模板描述信息,长度限制:256 个字符。 3201 Comment *string `json:"Comment,omitempty" name:"Comment"` 3202 3203 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 3204 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 3205 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 3206 // 默认值:black 。 3207 FillType *string `json:"FillType,omitempty" name:"FillType"` 3208 3209 // 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 3210 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 3211 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 3212 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 3213 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 3214 // 默认值:0。 3215 Width *uint64 `json:"Width,omitempty" name:"Width"` 3216 3217 // 雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 3218 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 3219 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 3220 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 3221 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 3222 // 默认值:0。 3223 Height *uint64 `json:"Height,omitempty" name:"Height"` 3224 3225 // 分辨率自适应,可选值: 3226 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 3227 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 3228 // 默认值:open。 3229 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 3230 3231 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3232 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3233} 3234 3235func (r *CreateImageSpriteTemplateRequest) ToJsonString() string { 3236 b, _ := json.Marshal(r) 3237 return string(b) 3238} 3239 3240// FromJsonString It is highly **NOT** recommended to use this function 3241// because it has no param check, nor strict type check 3242func (r *CreateImageSpriteTemplateRequest) FromJsonString(s string) error { 3243 f := make(map[string]interface{}) 3244 if err := json.Unmarshal([]byte(s), &f); err != nil { 3245 return err 3246 } 3247 delete(f, "SampleType") 3248 delete(f, "SampleInterval") 3249 delete(f, "RowCount") 3250 delete(f, "ColumnCount") 3251 delete(f, "Name") 3252 delete(f, "Comment") 3253 delete(f, "FillType") 3254 delete(f, "Width") 3255 delete(f, "Height") 3256 delete(f, "ResolutionAdaptive") 3257 delete(f, "SubAppId") 3258 if len(f) > 0 { 3259 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateImageSpriteTemplateRequest has unknown keys!", "") 3260 } 3261 return json.Unmarshal([]byte(s), &r) 3262} 3263 3264type CreateImageSpriteTemplateResponse struct { 3265 *tchttp.BaseResponse 3266 Response *struct { 3267 3268 // 雪碧图模板唯一标识。 3269 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 3270 3271 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3272 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3273 } `json:"Response"` 3274} 3275 3276func (r *CreateImageSpriteTemplateResponse) ToJsonString() string { 3277 b, _ := json.Marshal(r) 3278 return string(b) 3279} 3280 3281// FromJsonString It is highly **NOT** recommended to use this function 3282// because it has no param check, nor strict type check 3283func (r *CreateImageSpriteTemplateResponse) FromJsonString(s string) error { 3284 return json.Unmarshal([]byte(s), &r) 3285} 3286 3287type CreatePersonSampleRequest struct { 3288 *tchttp.BaseRequest 3289 3290 // 素材名称,长度限制:20 个字符。 3291 Name *string `json:"Name,omitempty" name:"Name"` 3292 3293 // 素材应用场景,可选值: 3294 // 1. Recognition:用于内容识别,等价于 Recognition.Face。 3295 // 2. Review:用于内容不适宜,等价于 Review.Face。 3296 // 3. All:包含以上全部,等价于 1+2。 3297 Usages []*string `json:"Usages,omitempty" name:"Usages"` 3298 3299 // 素材描述,长度限制:1024 个字符。 3300 Description *string `json:"Description,omitempty" name:"Description"` 3301 3302 // 素材图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串,仅支持 jpeg、png 图片格式。数组长度限制:5 张图片。 3303 // 注意:图片必须是单人像五官较清晰的照片,像素不低于 200*200。 3304 FaceContents []*string `json:"FaceContents,omitempty" name:"FaceContents"` 3305 3306 // 素材标签 3307 // <li>数组长度限制:20 个标签;</li> 3308 // <li>单个标签长度限制:128 个字符。</li> 3309 Tags []*string `json:"Tags,omitempty" name:"Tags"` 3310 3311 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3312 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3313} 3314 3315func (r *CreatePersonSampleRequest) ToJsonString() string { 3316 b, _ := json.Marshal(r) 3317 return string(b) 3318} 3319 3320// FromJsonString It is highly **NOT** recommended to use this function 3321// because it has no param check, nor strict type check 3322func (r *CreatePersonSampleRequest) FromJsonString(s string) error { 3323 f := make(map[string]interface{}) 3324 if err := json.Unmarshal([]byte(s), &f); err != nil { 3325 return err 3326 } 3327 delete(f, "Name") 3328 delete(f, "Usages") 3329 delete(f, "Description") 3330 delete(f, "FaceContents") 3331 delete(f, "Tags") 3332 delete(f, "SubAppId") 3333 if len(f) > 0 { 3334 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePersonSampleRequest has unknown keys!", "") 3335 } 3336 return json.Unmarshal([]byte(s), &r) 3337} 3338 3339type CreatePersonSampleResponse struct { 3340 *tchttp.BaseResponse 3341 Response *struct { 3342 3343 // 素材信息。 3344 Person *AiSamplePerson `json:"Person,omitempty" name:"Person"` 3345 3346 // 处理失败的五官定位信息。 3347 FailFaceInfoSet []*AiSampleFailFaceInfo `json:"FailFaceInfoSet,omitempty" name:"FailFaceInfoSet"` 3348 3349 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3350 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3351 } `json:"Response"` 3352} 3353 3354func (r *CreatePersonSampleResponse) ToJsonString() string { 3355 b, _ := json.Marshal(r) 3356 return string(b) 3357} 3358 3359// FromJsonString It is highly **NOT** recommended to use this function 3360// because it has no param check, nor strict type check 3361func (r *CreatePersonSampleResponse) FromJsonString(s string) error { 3362 return json.Unmarshal([]byte(s), &r) 3363} 3364 3365type CreateProcedureTemplateRequest struct { 3366 *tchttp.BaseRequest 3367 3368 // 任务流名字(支持中文,不超过20个字)。 3369 Name *string `json:"Name,omitempty" name:"Name"` 3370 3371 // 模板描述信息,长度限制:256 个字符。 3372 Comment *string `json:"Comment,omitempty" name:"Comment"` 3373 3374 // 视频处理类型任务参数。 3375 MediaProcessTask *MediaProcessTaskInput `json:"MediaProcessTask,omitempty" name:"MediaProcessTask"` 3376 3377 // AI 智能内容审核类型任务参数。 3378 AiContentReviewTask *AiContentReviewTaskInput `json:"AiContentReviewTask,omitempty" name:"AiContentReviewTask"` 3379 3380 // AI 智能内容分析类型任务参数。 3381 AiAnalysisTask *AiAnalysisTaskInput `json:"AiAnalysisTask,omitempty" name:"AiAnalysisTask"` 3382 3383 // AI 内容识别类型任务参数。 3384 AiRecognitionTask *AiRecognitionTaskInput `json:"AiRecognitionTask,omitempty" name:"AiRecognitionTask"` 3385 3386 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3387 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3388} 3389 3390func (r *CreateProcedureTemplateRequest) ToJsonString() string { 3391 b, _ := json.Marshal(r) 3392 return string(b) 3393} 3394 3395// FromJsonString It is highly **NOT** recommended to use this function 3396// because it has no param check, nor strict type check 3397func (r *CreateProcedureTemplateRequest) FromJsonString(s string) error { 3398 f := make(map[string]interface{}) 3399 if err := json.Unmarshal([]byte(s), &f); err != nil { 3400 return err 3401 } 3402 delete(f, "Name") 3403 delete(f, "Comment") 3404 delete(f, "MediaProcessTask") 3405 delete(f, "AiContentReviewTask") 3406 delete(f, "AiAnalysisTask") 3407 delete(f, "AiRecognitionTask") 3408 delete(f, "SubAppId") 3409 if len(f) > 0 { 3410 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateProcedureTemplateRequest has unknown keys!", "") 3411 } 3412 return json.Unmarshal([]byte(s), &r) 3413} 3414 3415type CreateProcedureTemplateResponse struct { 3416 *tchttp.BaseResponse 3417 Response *struct { 3418 3419 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3420 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3421 } `json:"Response"` 3422} 3423 3424func (r *CreateProcedureTemplateResponse) ToJsonString() string { 3425 b, _ := json.Marshal(r) 3426 return string(b) 3427} 3428 3429// FromJsonString It is highly **NOT** recommended to use this function 3430// because it has no param check, nor strict type check 3431func (r *CreateProcedureTemplateResponse) FromJsonString(s string) error { 3432 return json.Unmarshal([]byte(s), &r) 3433} 3434 3435type CreateSampleSnapshotTemplateRequest struct { 3436 *tchttp.BaseRequest 3437 3438 // 采样截图类型,取值: 3439 // <li>Percent:按百分比。</li> 3440 // <li>Time:按时间间隔。</li> 3441 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 3442 3443 // 采样间隔。 3444 // <li>当 SampleType 为 Percent 时,指定采样间隔的百分比。</li> 3445 // <li>当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。</li> 3446 SampleInterval *uint64 `json:"SampleInterval,omitempty" name:"SampleInterval"` 3447 3448 // 采样截图模板名称,长度限制:64 个字符。 3449 Name *string `json:"Name,omitempty" name:"Name"` 3450 3451 // 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 3452 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 3453 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 3454 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 3455 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 3456 // 默认值:0。 3457 Width *uint64 `json:"Width,omitempty" name:"Width"` 3458 3459 // 截图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 3460 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 3461 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 3462 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 3463 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 3464 // 默认值:0。 3465 Height *uint64 `json:"Height,omitempty" name:"Height"` 3466 3467 // 分辨率自适应,可选值: 3468 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 3469 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 3470 // 默认值:open。 3471 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 3472 3473 // 图片格式,取值为 jpg 和 png。默认为 jpg。 3474 Format *string `json:"Format,omitempty" name:"Format"` 3475 3476 // 模板描述信息,长度限制:256 个字符。 3477 Comment *string `json:"Comment,omitempty" name:"Comment"` 3478 3479 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3480 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3481 3482 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 3483 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 3484 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 3485 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 3486 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li> 3487 // 默认值:black 。 3488 FillType *string `json:"FillType,omitempty" name:"FillType"` 3489} 3490 3491func (r *CreateSampleSnapshotTemplateRequest) ToJsonString() string { 3492 b, _ := json.Marshal(r) 3493 return string(b) 3494} 3495 3496// FromJsonString It is highly **NOT** recommended to use this function 3497// because it has no param check, nor strict type check 3498func (r *CreateSampleSnapshotTemplateRequest) FromJsonString(s string) error { 3499 f := make(map[string]interface{}) 3500 if err := json.Unmarshal([]byte(s), &f); err != nil { 3501 return err 3502 } 3503 delete(f, "SampleType") 3504 delete(f, "SampleInterval") 3505 delete(f, "Name") 3506 delete(f, "Width") 3507 delete(f, "Height") 3508 delete(f, "ResolutionAdaptive") 3509 delete(f, "Format") 3510 delete(f, "Comment") 3511 delete(f, "SubAppId") 3512 delete(f, "FillType") 3513 if len(f) > 0 { 3514 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSampleSnapshotTemplateRequest has unknown keys!", "") 3515 } 3516 return json.Unmarshal([]byte(s), &r) 3517} 3518 3519type CreateSampleSnapshotTemplateResponse struct { 3520 *tchttp.BaseResponse 3521 Response *struct { 3522 3523 // 采样截图模板唯一标识。 3524 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 3525 3526 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3527 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3528 } `json:"Response"` 3529} 3530 3531func (r *CreateSampleSnapshotTemplateResponse) ToJsonString() string { 3532 b, _ := json.Marshal(r) 3533 return string(b) 3534} 3535 3536// FromJsonString It is highly **NOT** recommended to use this function 3537// because it has no param check, nor strict type check 3538func (r *CreateSampleSnapshotTemplateResponse) FromJsonString(s string) error { 3539 return json.Unmarshal([]byte(s), &r) 3540} 3541 3542type CreateSnapshotByTimeOffsetTemplateRequest struct { 3543 *tchttp.BaseRequest 3544 3545 // 指定时间点截图模板名称,长度限制:64 个字符。 3546 Name *string `json:"Name,omitempty" name:"Name"` 3547 3548 // 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 3549 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 3550 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 3551 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 3552 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 3553 // 默认值:0。 3554 Width *uint64 `json:"Width,omitempty" name:"Width"` 3555 3556 // 截图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 3557 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 3558 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 3559 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 3560 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 3561 // 默认值:0。 3562 Height *uint64 `json:"Height,omitempty" name:"Height"` 3563 3564 // 分辨率自适应,可选值: 3565 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 3566 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 3567 // 默认值:open。 3568 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 3569 3570 // 图片格式,取值可以为 jpg 和 png。默认为 jpg。 3571 Format *string `json:"Format,omitempty" name:"Format"` 3572 3573 // 模板描述信息,长度限制:256 个字符。 3574 Comment *string `json:"Comment,omitempty" name:"Comment"` 3575 3576 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3577 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3578 3579 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 3580 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 3581 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 3582 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 3583 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li> 3584 // 默认值:black 。 3585 FillType *string `json:"FillType,omitempty" name:"FillType"` 3586} 3587 3588func (r *CreateSnapshotByTimeOffsetTemplateRequest) ToJsonString() string { 3589 b, _ := json.Marshal(r) 3590 return string(b) 3591} 3592 3593// FromJsonString It is highly **NOT** recommended to use this function 3594// because it has no param check, nor strict type check 3595func (r *CreateSnapshotByTimeOffsetTemplateRequest) FromJsonString(s string) error { 3596 f := make(map[string]interface{}) 3597 if err := json.Unmarshal([]byte(s), &f); err != nil { 3598 return err 3599 } 3600 delete(f, "Name") 3601 delete(f, "Width") 3602 delete(f, "Height") 3603 delete(f, "ResolutionAdaptive") 3604 delete(f, "Format") 3605 delete(f, "Comment") 3606 delete(f, "SubAppId") 3607 delete(f, "FillType") 3608 if len(f) > 0 { 3609 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSnapshotByTimeOffsetTemplateRequest has unknown keys!", "") 3610 } 3611 return json.Unmarshal([]byte(s), &r) 3612} 3613 3614type CreateSnapshotByTimeOffsetTemplateResponse struct { 3615 *tchttp.BaseResponse 3616 Response *struct { 3617 3618 // 时间点截图模板唯一标识。 3619 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 3620 3621 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3622 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3623 } `json:"Response"` 3624} 3625 3626func (r *CreateSnapshotByTimeOffsetTemplateResponse) ToJsonString() string { 3627 b, _ := json.Marshal(r) 3628 return string(b) 3629} 3630 3631// FromJsonString It is highly **NOT** recommended to use this function 3632// because it has no param check, nor strict type check 3633func (r *CreateSnapshotByTimeOffsetTemplateResponse) FromJsonString(s string) error { 3634 return json.Unmarshal([]byte(s), &r) 3635} 3636 3637type CreateSubAppIdRequest struct { 3638 *tchttp.BaseRequest 3639 3640 // 子应用名称,长度限制:40个字符。 3641 Name *string `json:"Name,omitempty" name:"Name"` 3642 3643 // 子应用简介,长度限制: 300个字符。 3644 Description *string `json:"Description,omitempty" name:"Description"` 3645} 3646 3647func (r *CreateSubAppIdRequest) ToJsonString() string { 3648 b, _ := json.Marshal(r) 3649 return string(b) 3650} 3651 3652// FromJsonString It is highly **NOT** recommended to use this function 3653// because it has no param check, nor strict type check 3654func (r *CreateSubAppIdRequest) FromJsonString(s string) error { 3655 f := make(map[string]interface{}) 3656 if err := json.Unmarshal([]byte(s), &f); err != nil { 3657 return err 3658 } 3659 delete(f, "Name") 3660 delete(f, "Description") 3661 if len(f) > 0 { 3662 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSubAppIdRequest has unknown keys!", "") 3663 } 3664 return json.Unmarshal([]byte(s), &r) 3665} 3666 3667type CreateSubAppIdResponse struct { 3668 *tchttp.BaseResponse 3669 Response *struct { 3670 3671 // 新创建的子应用 ID。 3672 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3673 3674 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3675 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3676 } `json:"Response"` 3677} 3678 3679func (r *CreateSubAppIdResponse) ToJsonString() string { 3680 b, _ := json.Marshal(r) 3681 return string(b) 3682} 3683 3684// FromJsonString It is highly **NOT** recommended to use this function 3685// because it has no param check, nor strict type check 3686func (r *CreateSubAppIdResponse) FromJsonString(s string) error { 3687 return json.Unmarshal([]byte(s), &r) 3688} 3689 3690type CreateSuperPlayerConfigRequest struct { 3691 *tchttp.BaseRequest 3692 3693 // 播放器配置名称,长度限制:64 个字符。只允许出现 [0-9a-zA-Z] 及 _- 字符(如 test_ABC-123),同一个用户该名称唯一。 3694 Name *string `json:"Name,omitempty" name:"Name"` 3695 3696 // 播放 DRM 保护的自适应码流开关: 3697 // <li>ON:开启,表示仅播放 DRM 保护的自适应码流输出;</li> 3698 // <li>OFF:关闭,表示播放未加密的自适应码流输出。</li> 3699 // 默认为 OFF。 3700 DrmSwitch *string `json:"DrmSwitch,omitempty" name:"DrmSwitch"` 3701 3702 // 允许输出的未加密的自适应码流模板 ID,当 DrmSwitch 为 OFF 时必填。 3703 AdaptiveDynamicStreamingDefinition *uint64 `json:"AdaptiveDynamicStreamingDefinition,omitempty" name:"AdaptiveDynamicStreamingDefinition"` 3704 3705 // 允许输出的 DRM 自适应码流模板内容,当 DrmSwitch 为 ON 时必填。 3706 DrmStreamingsInfo *DrmStreamingsInfo `json:"DrmStreamingsInfo,omitempty" name:"DrmStreamingsInfo"` 3707 3708 // 允许输出的雪碧图模板 ID。 3709 ImageSpriteDefinition *uint64 `json:"ImageSpriteDefinition,omitempty" name:"ImageSpriteDefinition"` 3710 3711 // 播放器对不于不同分辨率的子流展示名字,不填或者填空数组则使用默认配置: 3712 // <li>MinEdgeLength:240,Name:流畅;</li> 3713 // <li>MinEdgeLength:480,Name:标清;</li> 3714 // <li>MinEdgeLength:720,Name:高清;</li> 3715 // <li>MinEdgeLength:1080,Name:全高清;</li> 3716 // <li>MinEdgeLength:1440,Name:2K;</li> 3717 // <li>MinEdgeLength:2160,Name:4K;</li> 3718 // <li>MinEdgeLength:4320,Name:8K。</li> 3719 ResolutionNames []*ResolutionNameInfo `json:"ResolutionNames,omitempty" name:"ResolutionNames"` 3720 3721 // 播放时使用的域名。不填或者填 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 3722 Domain *string `json:"Domain,omitempty" name:"Domain"` 3723 3724 // 播放时使用的 Scheme。不填或者填 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme。其他可选值: 3725 // <li>HTTP;</li> 3726 // <li>HTTPS。</li> 3727 Scheme *string `json:"Scheme,omitempty" name:"Scheme"` 3728 3729 // 模板描述信息,长度限制:256 个字符。 3730 Comment *string `json:"Comment,omitempty" name:"Comment"` 3731 3732 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3733 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3734} 3735 3736func (r *CreateSuperPlayerConfigRequest) ToJsonString() string { 3737 b, _ := json.Marshal(r) 3738 return string(b) 3739} 3740 3741// FromJsonString It is highly **NOT** recommended to use this function 3742// because it has no param check, nor strict type check 3743func (r *CreateSuperPlayerConfigRequest) FromJsonString(s string) error { 3744 f := make(map[string]interface{}) 3745 if err := json.Unmarshal([]byte(s), &f); err != nil { 3746 return err 3747 } 3748 delete(f, "Name") 3749 delete(f, "DrmSwitch") 3750 delete(f, "AdaptiveDynamicStreamingDefinition") 3751 delete(f, "DrmStreamingsInfo") 3752 delete(f, "ImageSpriteDefinition") 3753 delete(f, "ResolutionNames") 3754 delete(f, "Domain") 3755 delete(f, "Scheme") 3756 delete(f, "Comment") 3757 delete(f, "SubAppId") 3758 if len(f) > 0 { 3759 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSuperPlayerConfigRequest has unknown keys!", "") 3760 } 3761 return json.Unmarshal([]byte(s), &r) 3762} 3763 3764type CreateSuperPlayerConfigResponse struct { 3765 *tchttp.BaseResponse 3766 Response *struct { 3767 3768 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3769 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3770 } `json:"Response"` 3771} 3772 3773func (r *CreateSuperPlayerConfigResponse) ToJsonString() string { 3774 b, _ := json.Marshal(r) 3775 return string(b) 3776} 3777 3778// FromJsonString It is highly **NOT** recommended to use this function 3779// because it has no param check, nor strict type check 3780func (r *CreateSuperPlayerConfigResponse) FromJsonString(s string) error { 3781 return json.Unmarshal([]byte(s), &r) 3782} 3783 3784type CreateTranscodeTemplateRequest struct { 3785 *tchttp.BaseRequest 3786 3787 // 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。 3788 Container *string `json:"Container,omitempty" name:"Container"` 3789 3790 // 转码模板名称,长度限制:64 个字符。 3791 Name *string `json:"Name,omitempty" name:"Name"` 3792 3793 // 模板描述信息,长度限制:256 个字符。 3794 Comment *string `json:"Comment,omitempty" name:"Comment"` 3795 3796 // 是否去除视频数据,可选值: 3797 // <li>0:保留</li> 3798 // <li>1:去除</li> 3799 // 默认值:0。 3800 RemoveVideo *int64 `json:"RemoveVideo,omitempty" name:"RemoveVideo"` 3801 3802 // 是否去除音频数据,可选值: 3803 // <li>0:保留</li> 3804 // <li>1:去除</li> 3805 // 默认值:0。 3806 RemoveAudio *int64 `json:"RemoveAudio,omitempty" name:"RemoveAudio"` 3807 3808 // 视频流配置参数,当 RemoveVideo 为 0,该字段必填。 3809 VideoTemplate *VideoTemplateInfo `json:"VideoTemplate,omitempty" name:"VideoTemplate"` 3810 3811 // 音频流配置参数,当 RemoveAudio 为 0,该字段必填。 3812 AudioTemplate *AudioTemplateInfo `json:"AudioTemplate,omitempty" name:"AudioTemplate"` 3813 3814 // 极速高清转码参数。 3815 TEHDConfig *TEHDConfig `json:"TEHDConfig,omitempty" name:"TEHDConfig"` 3816 3817 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3818 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3819} 3820 3821func (r *CreateTranscodeTemplateRequest) ToJsonString() string { 3822 b, _ := json.Marshal(r) 3823 return string(b) 3824} 3825 3826// FromJsonString It is highly **NOT** recommended to use this function 3827// because it has no param check, nor strict type check 3828func (r *CreateTranscodeTemplateRequest) FromJsonString(s string) error { 3829 f := make(map[string]interface{}) 3830 if err := json.Unmarshal([]byte(s), &f); err != nil { 3831 return err 3832 } 3833 delete(f, "Container") 3834 delete(f, "Name") 3835 delete(f, "Comment") 3836 delete(f, "RemoveVideo") 3837 delete(f, "RemoveAudio") 3838 delete(f, "VideoTemplate") 3839 delete(f, "AudioTemplate") 3840 delete(f, "TEHDConfig") 3841 delete(f, "SubAppId") 3842 if len(f) > 0 { 3843 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTranscodeTemplateRequest has unknown keys!", "") 3844 } 3845 return json.Unmarshal([]byte(s), &r) 3846} 3847 3848type CreateTranscodeTemplateResponse struct { 3849 *tchttp.BaseResponse 3850 Response *struct { 3851 3852 // 转码模板唯一标识。 3853 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 3854 3855 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3856 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3857 } `json:"Response"` 3858} 3859 3860func (r *CreateTranscodeTemplateResponse) ToJsonString() string { 3861 b, _ := json.Marshal(r) 3862 return string(b) 3863} 3864 3865// FromJsonString It is highly **NOT** recommended to use this function 3866// because it has no param check, nor strict type check 3867func (r *CreateTranscodeTemplateResponse) FromJsonString(s string) error { 3868 return json.Unmarshal([]byte(s), &r) 3869} 3870 3871type CreateWatermarkTemplateRequest struct { 3872 *tchttp.BaseRequest 3873 3874 // 水印类型,可选值: 3875 // <li>image:图片水印;</li> 3876 // <li>text:文字水印;</li> 3877 // <li>svg:SVG 水印。</li> 3878 Type *string `json:"Type,omitempty" name:"Type"` 3879 3880 // 水印模板名称,长度限制:64 个字符。 3881 Name *string `json:"Name,omitempty" name:"Name"` 3882 3883 // 模板描述信息,长度限制:256 个字符。 3884 Comment *string `json:"Comment,omitempty" name:"Comment"` 3885 3886 // 原点位置,可选值: 3887 // <li>TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角;</li> 3888 // <li>TopRight:表示坐标原点位于视频图像的右上角,水印原点为图片或文字的右上角;</li> 3889 // <li>BottomLeft:表示坐标原点位于视频图像的左下角,水印原点为图片或文字的左下角;</li> 3890 // <li>BottomRight:表示坐标原点位于视频图像的右下角,水印原点为图片或文字的右下角。</li> 3891 // 默认值:TopLeft。 3892 CoordinateOrigin *string `json:"CoordinateOrigin,omitempty" name:"CoordinateOrigin"` 3893 3894 // 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式: 3895 // <li>当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;</li> 3896 // <li>当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。</li> 3897 // 默认值:0px。 3898 XPos *string `json:"XPos,omitempty" name:"XPos"` 3899 3900 // 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式: 3901 // <li>当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;</li> 3902 // <li>当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。</li> 3903 // 默认值:0px。 3904 YPos *string `json:"YPos,omitempty" name:"YPos"` 3905 3906 // 图片水印模板,当 Type 为 image,该字段必填。当 Type 为 text,该字段无效。 3907 ImageTemplate *ImageWatermarkInput `json:"ImageTemplate,omitempty" name:"ImageTemplate"` 3908 3909 // 文字水印模板,当 Type 为 text,该字段必填。当 Type 为 image,该字段无效。 3910 TextTemplate *TextWatermarkTemplateInput `json:"TextTemplate,omitempty" name:"TextTemplate"` 3911 3912 // SVG水印模板,当 Type 为 svg,该字段必填。当 Type 为 image 或 text,该字段无效。 3913 SvgTemplate *SvgWatermarkInput `json:"SvgTemplate,omitempty" name:"SvgTemplate"` 3914 3915 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3916 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3917} 3918 3919func (r *CreateWatermarkTemplateRequest) ToJsonString() string { 3920 b, _ := json.Marshal(r) 3921 return string(b) 3922} 3923 3924// FromJsonString It is highly **NOT** recommended to use this function 3925// because it has no param check, nor strict type check 3926func (r *CreateWatermarkTemplateRequest) FromJsonString(s string) error { 3927 f := make(map[string]interface{}) 3928 if err := json.Unmarshal([]byte(s), &f); err != nil { 3929 return err 3930 } 3931 delete(f, "Type") 3932 delete(f, "Name") 3933 delete(f, "Comment") 3934 delete(f, "CoordinateOrigin") 3935 delete(f, "XPos") 3936 delete(f, "YPos") 3937 delete(f, "ImageTemplate") 3938 delete(f, "TextTemplate") 3939 delete(f, "SvgTemplate") 3940 delete(f, "SubAppId") 3941 if len(f) > 0 { 3942 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateWatermarkTemplateRequest has unknown keys!", "") 3943 } 3944 return json.Unmarshal([]byte(s), &r) 3945} 3946 3947type CreateWatermarkTemplateResponse struct { 3948 *tchttp.BaseResponse 3949 Response *struct { 3950 3951 // 水印模板唯一标识。 3952 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 3953 3954 // 水印图片地址,仅当 Type 为 image,该字段有效。 3955 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` 3956 3957 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3958 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3959 } `json:"Response"` 3960} 3961 3962func (r *CreateWatermarkTemplateResponse) ToJsonString() string { 3963 b, _ := json.Marshal(r) 3964 return string(b) 3965} 3966 3967// FromJsonString It is highly **NOT** recommended to use this function 3968// because it has no param check, nor strict type check 3969func (r *CreateWatermarkTemplateResponse) FromJsonString(s string) error { 3970 return json.Unmarshal([]byte(s), &r) 3971} 3972 3973type CreateWordSamplesRequest struct { 3974 *tchttp.BaseRequest 3975 3976 // <b>关键词应用场景,可选值:</b> 3977 // 1. Recognition.Ocr:通过光学字符识别技术,进行内容识别; 3978 // 2. Recognition.Asr:通过音频识别技术,进行内容识别; 3979 // 3. Review.Ocr:通过光学字符识别技术,进行不适宜内容识别; 3980 // 4. Review.Asr:通过音频识别技术,进行不适宜内容识别; 3981 // <b>可合并简写为:</b> 3982 // 5. Recognition:通过光学字符识别技术、音频识别技术,进行内容识别,等价于 1+2; 3983 // 6. Review:通过光学字符识别技术、音频识别技术,进行不适宜内容识别,等价于 3+4; 3984 // 7. All:通过光学字符识别技术、音频识别技术,进行内容识别、不适宜内容识别,等价于 1+2+3+4。 3985 Usages []*string `json:"Usages,omitempty" name:"Usages"` 3986 3987 // 关键词,数组长度限制:100。 3988 Words []*AiSampleWordInfo `json:"Words,omitempty" name:"Words"` 3989 3990 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 3991 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 3992} 3993 3994func (r *CreateWordSamplesRequest) ToJsonString() string { 3995 b, _ := json.Marshal(r) 3996 return string(b) 3997} 3998 3999// FromJsonString It is highly **NOT** recommended to use this function 4000// because it has no param check, nor strict type check 4001func (r *CreateWordSamplesRequest) FromJsonString(s string) error { 4002 f := make(map[string]interface{}) 4003 if err := json.Unmarshal([]byte(s), &f); err != nil { 4004 return err 4005 } 4006 delete(f, "Usages") 4007 delete(f, "Words") 4008 delete(f, "SubAppId") 4009 if len(f) > 0 { 4010 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateWordSamplesRequest has unknown keys!", "") 4011 } 4012 return json.Unmarshal([]byte(s), &r) 4013} 4014 4015type CreateWordSamplesResponse struct { 4016 *tchttp.BaseResponse 4017 Response *struct { 4018 4019 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4020 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4021 } `json:"Response"` 4022} 4023 4024func (r *CreateWordSamplesResponse) ToJsonString() string { 4025 b, _ := json.Marshal(r) 4026 return string(b) 4027} 4028 4029// FromJsonString It is highly **NOT** recommended to use this function 4030// because it has no param check, nor strict type check 4031func (r *CreateWordSamplesResponse) FromJsonString(s string) error { 4032 return json.Unmarshal([]byte(s), &r) 4033} 4034 4035type DailyPlayStatInfo struct { 4036 4037 // 播放媒体文件的日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 4038 Date *string `json:"Date,omitempty" name:"Date"` 4039 4040 // 媒体文件ID。 4041 FileId *string `json:"FileId,omitempty" name:"FileId"` 4042 4043 // 播放次数。 4044 PlayTimes *uint64 `json:"PlayTimes,omitempty" name:"PlayTimes"` 4045 4046 // 播放流量,单位:字节。 4047 Traffic *uint64 `json:"Traffic,omitempty" name:"Traffic"` 4048} 4049 4050type DeleteAIAnalysisTemplateRequest struct { 4051 *tchttp.BaseRequest 4052 4053 // 视频内容分析模板唯一标识。 4054 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 4055 4056 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4057 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4058} 4059 4060func (r *DeleteAIAnalysisTemplateRequest) ToJsonString() string { 4061 b, _ := json.Marshal(r) 4062 return string(b) 4063} 4064 4065// FromJsonString It is highly **NOT** recommended to use this function 4066// because it has no param check, nor strict type check 4067func (r *DeleteAIAnalysisTemplateRequest) FromJsonString(s string) error { 4068 f := make(map[string]interface{}) 4069 if err := json.Unmarshal([]byte(s), &f); err != nil { 4070 return err 4071 } 4072 delete(f, "Definition") 4073 delete(f, "SubAppId") 4074 if len(f) > 0 { 4075 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAIAnalysisTemplateRequest has unknown keys!", "") 4076 } 4077 return json.Unmarshal([]byte(s), &r) 4078} 4079 4080type DeleteAIAnalysisTemplateResponse struct { 4081 *tchttp.BaseResponse 4082 Response *struct { 4083 4084 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4085 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4086 } `json:"Response"` 4087} 4088 4089func (r *DeleteAIAnalysisTemplateResponse) ToJsonString() string { 4090 b, _ := json.Marshal(r) 4091 return string(b) 4092} 4093 4094// FromJsonString It is highly **NOT** recommended to use this function 4095// because it has no param check, nor strict type check 4096func (r *DeleteAIAnalysisTemplateResponse) FromJsonString(s string) error { 4097 return json.Unmarshal([]byte(s), &r) 4098} 4099 4100type DeleteAIRecognitionTemplateRequest struct { 4101 *tchttp.BaseRequest 4102 4103 // 视频内容识别模板唯一标识。 4104 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 4105 4106 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4107 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4108} 4109 4110func (r *DeleteAIRecognitionTemplateRequest) ToJsonString() string { 4111 b, _ := json.Marshal(r) 4112 return string(b) 4113} 4114 4115// FromJsonString It is highly **NOT** recommended to use this function 4116// because it has no param check, nor strict type check 4117func (r *DeleteAIRecognitionTemplateRequest) FromJsonString(s string) error { 4118 f := make(map[string]interface{}) 4119 if err := json.Unmarshal([]byte(s), &f); err != nil { 4120 return err 4121 } 4122 delete(f, "Definition") 4123 delete(f, "SubAppId") 4124 if len(f) > 0 { 4125 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAIRecognitionTemplateRequest has unknown keys!", "") 4126 } 4127 return json.Unmarshal([]byte(s), &r) 4128} 4129 4130type DeleteAIRecognitionTemplateResponse struct { 4131 *tchttp.BaseResponse 4132 Response *struct { 4133 4134 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4135 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4136 } `json:"Response"` 4137} 4138 4139func (r *DeleteAIRecognitionTemplateResponse) ToJsonString() string { 4140 b, _ := json.Marshal(r) 4141 return string(b) 4142} 4143 4144// FromJsonString It is highly **NOT** recommended to use this function 4145// because it has no param check, nor strict type check 4146func (r *DeleteAIRecognitionTemplateResponse) FromJsonString(s string) error { 4147 return json.Unmarshal([]byte(s), &r) 4148} 4149 4150type DeleteAdaptiveDynamicStreamingTemplateRequest struct { 4151 *tchttp.BaseRequest 4152 4153 // 自适应转码模板唯一标识。 4154 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 4155 4156 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4157 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4158} 4159 4160func (r *DeleteAdaptiveDynamicStreamingTemplateRequest) ToJsonString() string { 4161 b, _ := json.Marshal(r) 4162 return string(b) 4163} 4164 4165// FromJsonString It is highly **NOT** recommended to use this function 4166// because it has no param check, nor strict type check 4167func (r *DeleteAdaptiveDynamicStreamingTemplateRequest) FromJsonString(s string) error { 4168 f := make(map[string]interface{}) 4169 if err := json.Unmarshal([]byte(s), &f); err != nil { 4170 return err 4171 } 4172 delete(f, "Definition") 4173 delete(f, "SubAppId") 4174 if len(f) > 0 { 4175 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAdaptiveDynamicStreamingTemplateRequest has unknown keys!", "") 4176 } 4177 return json.Unmarshal([]byte(s), &r) 4178} 4179 4180type DeleteAdaptiveDynamicStreamingTemplateResponse struct { 4181 *tchttp.BaseResponse 4182 Response *struct { 4183 4184 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4185 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4186 } `json:"Response"` 4187} 4188 4189func (r *DeleteAdaptiveDynamicStreamingTemplateResponse) ToJsonString() string { 4190 b, _ := json.Marshal(r) 4191 return string(b) 4192} 4193 4194// FromJsonString It is highly **NOT** recommended to use this function 4195// because it has no param check, nor strict type check 4196func (r *DeleteAdaptiveDynamicStreamingTemplateResponse) FromJsonString(s string) error { 4197 return json.Unmarshal([]byte(s), &r) 4198} 4199 4200type DeleteAnimatedGraphicsTemplateRequest struct { 4201 *tchttp.BaseRequest 4202 4203 // 转动图模板唯一标识。 4204 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 4205 4206 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4207 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4208} 4209 4210func (r *DeleteAnimatedGraphicsTemplateRequest) ToJsonString() string { 4211 b, _ := json.Marshal(r) 4212 return string(b) 4213} 4214 4215// FromJsonString It is highly **NOT** recommended to use this function 4216// because it has no param check, nor strict type check 4217func (r *DeleteAnimatedGraphicsTemplateRequest) FromJsonString(s string) error { 4218 f := make(map[string]interface{}) 4219 if err := json.Unmarshal([]byte(s), &f); err != nil { 4220 return err 4221 } 4222 delete(f, "Definition") 4223 delete(f, "SubAppId") 4224 if len(f) > 0 { 4225 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAnimatedGraphicsTemplateRequest has unknown keys!", "") 4226 } 4227 return json.Unmarshal([]byte(s), &r) 4228} 4229 4230type DeleteAnimatedGraphicsTemplateResponse struct { 4231 *tchttp.BaseResponse 4232 Response *struct { 4233 4234 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4235 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4236 } `json:"Response"` 4237} 4238 4239func (r *DeleteAnimatedGraphicsTemplateResponse) ToJsonString() string { 4240 b, _ := json.Marshal(r) 4241 return string(b) 4242} 4243 4244// FromJsonString It is highly **NOT** recommended to use this function 4245// because it has no param check, nor strict type check 4246func (r *DeleteAnimatedGraphicsTemplateResponse) FromJsonString(s string) error { 4247 return json.Unmarshal([]byte(s), &r) 4248} 4249 4250type DeleteClassRequest struct { 4251 *tchttp.BaseRequest 4252 4253 // 分类 ID 4254 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 4255 4256 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4257 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4258} 4259 4260func (r *DeleteClassRequest) ToJsonString() string { 4261 b, _ := json.Marshal(r) 4262 return string(b) 4263} 4264 4265// FromJsonString It is highly **NOT** recommended to use this function 4266// because it has no param check, nor strict type check 4267func (r *DeleteClassRequest) FromJsonString(s string) error { 4268 f := make(map[string]interface{}) 4269 if err := json.Unmarshal([]byte(s), &f); err != nil { 4270 return err 4271 } 4272 delete(f, "ClassId") 4273 delete(f, "SubAppId") 4274 if len(f) > 0 { 4275 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteClassRequest has unknown keys!", "") 4276 } 4277 return json.Unmarshal([]byte(s), &r) 4278} 4279 4280type DeleteClassResponse struct { 4281 *tchttp.BaseResponse 4282 Response *struct { 4283 4284 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4285 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4286 } `json:"Response"` 4287} 4288 4289func (r *DeleteClassResponse) ToJsonString() string { 4290 b, _ := json.Marshal(r) 4291 return string(b) 4292} 4293 4294// FromJsonString It is highly **NOT** recommended to use this function 4295// because it has no param check, nor strict type check 4296func (r *DeleteClassResponse) FromJsonString(s string) error { 4297 return json.Unmarshal([]byte(s), &r) 4298} 4299 4300type DeleteContentReviewTemplateRequest struct { 4301 *tchttp.BaseRequest 4302 4303 // 内容智能识别模板唯一标识。 4304 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 4305 4306 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4307 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4308} 4309 4310func (r *DeleteContentReviewTemplateRequest) ToJsonString() string { 4311 b, _ := json.Marshal(r) 4312 return string(b) 4313} 4314 4315// FromJsonString It is highly **NOT** recommended to use this function 4316// because it has no param check, nor strict type check 4317func (r *DeleteContentReviewTemplateRequest) FromJsonString(s string) error { 4318 f := make(map[string]interface{}) 4319 if err := json.Unmarshal([]byte(s), &f); err != nil { 4320 return err 4321 } 4322 delete(f, "Definition") 4323 delete(f, "SubAppId") 4324 if len(f) > 0 { 4325 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteContentReviewTemplateRequest has unknown keys!", "") 4326 } 4327 return json.Unmarshal([]byte(s), &r) 4328} 4329 4330type DeleteContentReviewTemplateResponse struct { 4331 *tchttp.BaseResponse 4332 Response *struct { 4333 4334 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4335 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4336 } `json:"Response"` 4337} 4338 4339func (r *DeleteContentReviewTemplateResponse) ToJsonString() string { 4340 b, _ := json.Marshal(r) 4341 return string(b) 4342} 4343 4344// FromJsonString It is highly **NOT** recommended to use this function 4345// because it has no param check, nor strict type check 4346func (r *DeleteContentReviewTemplateResponse) FromJsonString(s string) error { 4347 return json.Unmarshal([]byte(s), &r) 4348} 4349 4350type DeleteHeadTailTemplateRequest struct { 4351 *tchttp.BaseRequest 4352 4353 // 片头片尾模板号。 4354 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 4355 4356 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4357 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4358} 4359 4360func (r *DeleteHeadTailTemplateRequest) ToJsonString() string { 4361 b, _ := json.Marshal(r) 4362 return string(b) 4363} 4364 4365// FromJsonString It is highly **NOT** recommended to use this function 4366// because it has no param check, nor strict type check 4367func (r *DeleteHeadTailTemplateRequest) FromJsonString(s string) error { 4368 f := make(map[string]interface{}) 4369 if err := json.Unmarshal([]byte(s), &f); err != nil { 4370 return err 4371 } 4372 delete(f, "Definition") 4373 delete(f, "SubAppId") 4374 if len(f) > 0 { 4375 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteHeadTailTemplateRequest has unknown keys!", "") 4376 } 4377 return json.Unmarshal([]byte(s), &r) 4378} 4379 4380type DeleteHeadTailTemplateResponse struct { 4381 *tchttp.BaseResponse 4382 Response *struct { 4383 4384 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4385 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4386 } `json:"Response"` 4387} 4388 4389func (r *DeleteHeadTailTemplateResponse) ToJsonString() string { 4390 b, _ := json.Marshal(r) 4391 return string(b) 4392} 4393 4394// FromJsonString It is highly **NOT** recommended to use this function 4395// because it has no param check, nor strict type check 4396func (r *DeleteHeadTailTemplateResponse) FromJsonString(s string) error { 4397 return json.Unmarshal([]byte(s), &r) 4398} 4399 4400type DeleteImageProcessingTemplateRequest struct { 4401 *tchttp.BaseRequest 4402 4403 // 图片处理模板唯一标识。 4404 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 4405 4406 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4407 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4408} 4409 4410func (r *DeleteImageProcessingTemplateRequest) ToJsonString() string { 4411 b, _ := json.Marshal(r) 4412 return string(b) 4413} 4414 4415// FromJsonString It is highly **NOT** recommended to use this function 4416// because it has no param check, nor strict type check 4417func (r *DeleteImageProcessingTemplateRequest) FromJsonString(s string) error { 4418 f := make(map[string]interface{}) 4419 if err := json.Unmarshal([]byte(s), &f); err != nil { 4420 return err 4421 } 4422 delete(f, "Definition") 4423 delete(f, "SubAppId") 4424 if len(f) > 0 { 4425 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteImageProcessingTemplateRequest has unknown keys!", "") 4426 } 4427 return json.Unmarshal([]byte(s), &r) 4428} 4429 4430type DeleteImageProcessingTemplateResponse struct { 4431 *tchttp.BaseResponse 4432 Response *struct { 4433 4434 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4435 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4436 } `json:"Response"` 4437} 4438 4439func (r *DeleteImageProcessingTemplateResponse) ToJsonString() string { 4440 b, _ := json.Marshal(r) 4441 return string(b) 4442} 4443 4444// FromJsonString It is highly **NOT** recommended to use this function 4445// because it has no param check, nor strict type check 4446func (r *DeleteImageProcessingTemplateResponse) FromJsonString(s string) error { 4447 return json.Unmarshal([]byte(s), &r) 4448} 4449 4450type DeleteImageSpriteTemplateRequest struct { 4451 *tchttp.BaseRequest 4452 4453 // 雪碧图模板唯一标识。 4454 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 4455 4456 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4457 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4458} 4459 4460func (r *DeleteImageSpriteTemplateRequest) ToJsonString() string { 4461 b, _ := json.Marshal(r) 4462 return string(b) 4463} 4464 4465// FromJsonString It is highly **NOT** recommended to use this function 4466// because it has no param check, nor strict type check 4467func (r *DeleteImageSpriteTemplateRequest) FromJsonString(s string) error { 4468 f := make(map[string]interface{}) 4469 if err := json.Unmarshal([]byte(s), &f); err != nil { 4470 return err 4471 } 4472 delete(f, "Definition") 4473 delete(f, "SubAppId") 4474 if len(f) > 0 { 4475 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteImageSpriteTemplateRequest has unknown keys!", "") 4476 } 4477 return json.Unmarshal([]byte(s), &r) 4478} 4479 4480type DeleteImageSpriteTemplateResponse struct { 4481 *tchttp.BaseResponse 4482 Response *struct { 4483 4484 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4485 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4486 } `json:"Response"` 4487} 4488 4489func (r *DeleteImageSpriteTemplateResponse) ToJsonString() string { 4490 b, _ := json.Marshal(r) 4491 return string(b) 4492} 4493 4494// FromJsonString It is highly **NOT** recommended to use this function 4495// because it has no param check, nor strict type check 4496func (r *DeleteImageSpriteTemplateResponse) FromJsonString(s string) error { 4497 return json.Unmarshal([]byte(s), &r) 4498} 4499 4500type DeleteMediaRequest struct { 4501 *tchttp.BaseRequest 4502 4503 // 媒体文件的唯一标识。 4504 FileId *string `json:"FileId,omitempty" name:"FileId"` 4505 4506 // 指定本次需要删除的部分。默认值为 "[]", 表示删除媒体及其对应的全部视频处理文件。 4507 DeleteParts []*MediaDeleteItem `json:"DeleteParts,omitempty" name:"DeleteParts"` 4508 4509 // 点播[子应用](/document/product/266/14574) ID 。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4510 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4511} 4512 4513func (r *DeleteMediaRequest) ToJsonString() string { 4514 b, _ := json.Marshal(r) 4515 return string(b) 4516} 4517 4518// FromJsonString It is highly **NOT** recommended to use this function 4519// because it has no param check, nor strict type check 4520func (r *DeleteMediaRequest) FromJsonString(s string) error { 4521 f := make(map[string]interface{}) 4522 if err := json.Unmarshal([]byte(s), &f); err != nil { 4523 return err 4524 } 4525 delete(f, "FileId") 4526 delete(f, "DeleteParts") 4527 delete(f, "SubAppId") 4528 if len(f) > 0 { 4529 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteMediaRequest has unknown keys!", "") 4530 } 4531 return json.Unmarshal([]byte(s), &r) 4532} 4533 4534type DeleteMediaResponse struct { 4535 *tchttp.BaseResponse 4536 Response *struct { 4537 4538 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4539 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4540 } `json:"Response"` 4541} 4542 4543func (r *DeleteMediaResponse) ToJsonString() string { 4544 b, _ := json.Marshal(r) 4545 return string(b) 4546} 4547 4548// FromJsonString It is highly **NOT** recommended to use this function 4549// because it has no param check, nor strict type check 4550func (r *DeleteMediaResponse) FromJsonString(s string) error { 4551 return json.Unmarshal([]byte(s), &r) 4552} 4553 4554type DeletePersonSampleRequest struct { 4555 *tchttp.BaseRequest 4556 4557 // 素材 ID。 4558 PersonId *string `json:"PersonId,omitempty" name:"PersonId"` 4559 4560 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4561 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4562} 4563 4564func (r *DeletePersonSampleRequest) ToJsonString() string { 4565 b, _ := json.Marshal(r) 4566 return string(b) 4567} 4568 4569// FromJsonString It is highly **NOT** recommended to use this function 4570// because it has no param check, nor strict type check 4571func (r *DeletePersonSampleRequest) FromJsonString(s string) error { 4572 f := make(map[string]interface{}) 4573 if err := json.Unmarshal([]byte(s), &f); err != nil { 4574 return err 4575 } 4576 delete(f, "PersonId") 4577 delete(f, "SubAppId") 4578 if len(f) > 0 { 4579 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePersonSampleRequest has unknown keys!", "") 4580 } 4581 return json.Unmarshal([]byte(s), &r) 4582} 4583 4584type DeletePersonSampleResponse struct { 4585 *tchttp.BaseResponse 4586 Response *struct { 4587 4588 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4589 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4590 } `json:"Response"` 4591} 4592 4593func (r *DeletePersonSampleResponse) ToJsonString() string { 4594 b, _ := json.Marshal(r) 4595 return string(b) 4596} 4597 4598// FromJsonString It is highly **NOT** recommended to use this function 4599// because it has no param check, nor strict type check 4600func (r *DeletePersonSampleResponse) FromJsonString(s string) error { 4601 return json.Unmarshal([]byte(s), &r) 4602} 4603 4604type DeleteProcedureTemplateRequest struct { 4605 *tchttp.BaseRequest 4606 4607 // 任务流名字。 4608 Name *string `json:"Name,omitempty" name:"Name"` 4609 4610 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4611 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4612} 4613 4614func (r *DeleteProcedureTemplateRequest) ToJsonString() string { 4615 b, _ := json.Marshal(r) 4616 return string(b) 4617} 4618 4619// FromJsonString It is highly **NOT** recommended to use this function 4620// because it has no param check, nor strict type check 4621func (r *DeleteProcedureTemplateRequest) FromJsonString(s string) error { 4622 f := make(map[string]interface{}) 4623 if err := json.Unmarshal([]byte(s), &f); err != nil { 4624 return err 4625 } 4626 delete(f, "Name") 4627 delete(f, "SubAppId") 4628 if len(f) > 0 { 4629 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteProcedureTemplateRequest has unknown keys!", "") 4630 } 4631 return json.Unmarshal([]byte(s), &r) 4632} 4633 4634type DeleteProcedureTemplateResponse struct { 4635 *tchttp.BaseResponse 4636 Response *struct { 4637 4638 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4639 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4640 } `json:"Response"` 4641} 4642 4643func (r *DeleteProcedureTemplateResponse) ToJsonString() string { 4644 b, _ := json.Marshal(r) 4645 return string(b) 4646} 4647 4648// FromJsonString It is highly **NOT** recommended to use this function 4649// because it has no param check, nor strict type check 4650func (r *DeleteProcedureTemplateResponse) FromJsonString(s string) error { 4651 return json.Unmarshal([]byte(s), &r) 4652} 4653 4654type DeleteSampleSnapshotTemplateRequest struct { 4655 *tchttp.BaseRequest 4656 4657 // 采样截图模板唯一标识。 4658 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 4659 4660 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4661 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4662} 4663 4664func (r *DeleteSampleSnapshotTemplateRequest) ToJsonString() string { 4665 b, _ := json.Marshal(r) 4666 return string(b) 4667} 4668 4669// FromJsonString It is highly **NOT** recommended to use this function 4670// because it has no param check, nor strict type check 4671func (r *DeleteSampleSnapshotTemplateRequest) FromJsonString(s string) error { 4672 f := make(map[string]interface{}) 4673 if err := json.Unmarshal([]byte(s), &f); err != nil { 4674 return err 4675 } 4676 delete(f, "Definition") 4677 delete(f, "SubAppId") 4678 if len(f) > 0 { 4679 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSampleSnapshotTemplateRequest has unknown keys!", "") 4680 } 4681 return json.Unmarshal([]byte(s), &r) 4682} 4683 4684type DeleteSampleSnapshotTemplateResponse struct { 4685 *tchttp.BaseResponse 4686 Response *struct { 4687 4688 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4689 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4690 } `json:"Response"` 4691} 4692 4693func (r *DeleteSampleSnapshotTemplateResponse) ToJsonString() string { 4694 b, _ := json.Marshal(r) 4695 return string(b) 4696} 4697 4698// FromJsonString It is highly **NOT** recommended to use this function 4699// because it has no param check, nor strict type check 4700func (r *DeleteSampleSnapshotTemplateResponse) FromJsonString(s string) error { 4701 return json.Unmarshal([]byte(s), &r) 4702} 4703 4704type DeleteSnapshotByTimeOffsetTemplateRequest struct { 4705 *tchttp.BaseRequest 4706 4707 // 指定时间点截图模板唯一标识。 4708 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 4709 4710 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4711 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4712} 4713 4714func (r *DeleteSnapshotByTimeOffsetTemplateRequest) ToJsonString() string { 4715 b, _ := json.Marshal(r) 4716 return string(b) 4717} 4718 4719// FromJsonString It is highly **NOT** recommended to use this function 4720// because it has no param check, nor strict type check 4721func (r *DeleteSnapshotByTimeOffsetTemplateRequest) FromJsonString(s string) error { 4722 f := make(map[string]interface{}) 4723 if err := json.Unmarshal([]byte(s), &f); err != nil { 4724 return err 4725 } 4726 delete(f, "Definition") 4727 delete(f, "SubAppId") 4728 if len(f) > 0 { 4729 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSnapshotByTimeOffsetTemplateRequest has unknown keys!", "") 4730 } 4731 return json.Unmarshal([]byte(s), &r) 4732} 4733 4734type DeleteSnapshotByTimeOffsetTemplateResponse struct { 4735 *tchttp.BaseResponse 4736 Response *struct { 4737 4738 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4739 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4740 } `json:"Response"` 4741} 4742 4743func (r *DeleteSnapshotByTimeOffsetTemplateResponse) ToJsonString() string { 4744 b, _ := json.Marshal(r) 4745 return string(b) 4746} 4747 4748// FromJsonString It is highly **NOT** recommended to use this function 4749// because it has no param check, nor strict type check 4750func (r *DeleteSnapshotByTimeOffsetTemplateResponse) FromJsonString(s string) error { 4751 return json.Unmarshal([]byte(s), &r) 4752} 4753 4754type DeleteSuperPlayerConfigRequest struct { 4755 *tchttp.BaseRequest 4756 4757 // 播放器配置名称。 4758 Name *string `json:"Name,omitempty" name:"Name"` 4759 4760 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4761 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4762} 4763 4764func (r *DeleteSuperPlayerConfigRequest) ToJsonString() string { 4765 b, _ := json.Marshal(r) 4766 return string(b) 4767} 4768 4769// FromJsonString It is highly **NOT** recommended to use this function 4770// because it has no param check, nor strict type check 4771func (r *DeleteSuperPlayerConfigRequest) FromJsonString(s string) error { 4772 f := make(map[string]interface{}) 4773 if err := json.Unmarshal([]byte(s), &f); err != nil { 4774 return err 4775 } 4776 delete(f, "Name") 4777 delete(f, "SubAppId") 4778 if len(f) > 0 { 4779 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSuperPlayerConfigRequest has unknown keys!", "") 4780 } 4781 return json.Unmarshal([]byte(s), &r) 4782} 4783 4784type DeleteSuperPlayerConfigResponse struct { 4785 *tchttp.BaseResponse 4786 Response *struct { 4787 4788 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4789 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4790 } `json:"Response"` 4791} 4792 4793func (r *DeleteSuperPlayerConfigResponse) ToJsonString() string { 4794 b, _ := json.Marshal(r) 4795 return string(b) 4796} 4797 4798// FromJsonString It is highly **NOT** recommended to use this function 4799// because it has no param check, nor strict type check 4800func (r *DeleteSuperPlayerConfigResponse) FromJsonString(s string) error { 4801 return json.Unmarshal([]byte(s), &r) 4802} 4803 4804type DeleteTranscodeTemplateRequest struct { 4805 *tchttp.BaseRequest 4806 4807 // 转码模板唯一标识。 4808 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 4809 4810 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4811 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4812} 4813 4814func (r *DeleteTranscodeTemplateRequest) ToJsonString() string { 4815 b, _ := json.Marshal(r) 4816 return string(b) 4817} 4818 4819// FromJsonString It is highly **NOT** recommended to use this function 4820// because it has no param check, nor strict type check 4821func (r *DeleteTranscodeTemplateRequest) FromJsonString(s string) error { 4822 f := make(map[string]interface{}) 4823 if err := json.Unmarshal([]byte(s), &f); err != nil { 4824 return err 4825 } 4826 delete(f, "Definition") 4827 delete(f, "SubAppId") 4828 if len(f) > 0 { 4829 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTranscodeTemplateRequest has unknown keys!", "") 4830 } 4831 return json.Unmarshal([]byte(s), &r) 4832} 4833 4834type DeleteTranscodeTemplateResponse struct { 4835 *tchttp.BaseResponse 4836 Response *struct { 4837 4838 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4839 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4840 } `json:"Response"` 4841} 4842 4843func (r *DeleteTranscodeTemplateResponse) ToJsonString() string { 4844 b, _ := json.Marshal(r) 4845 return string(b) 4846} 4847 4848// FromJsonString It is highly **NOT** recommended to use this function 4849// because it has no param check, nor strict type check 4850func (r *DeleteTranscodeTemplateResponse) FromJsonString(s string) error { 4851 return json.Unmarshal([]byte(s), &r) 4852} 4853 4854type DeleteWatermarkTemplateRequest struct { 4855 *tchttp.BaseRequest 4856 4857 // 水印模板唯一标识。 4858 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 4859 4860 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4861 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4862} 4863 4864func (r *DeleteWatermarkTemplateRequest) ToJsonString() string { 4865 b, _ := json.Marshal(r) 4866 return string(b) 4867} 4868 4869// FromJsonString It is highly **NOT** recommended to use this function 4870// because it has no param check, nor strict type check 4871func (r *DeleteWatermarkTemplateRequest) FromJsonString(s string) error { 4872 f := make(map[string]interface{}) 4873 if err := json.Unmarshal([]byte(s), &f); err != nil { 4874 return err 4875 } 4876 delete(f, "Definition") 4877 delete(f, "SubAppId") 4878 if len(f) > 0 { 4879 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteWatermarkTemplateRequest has unknown keys!", "") 4880 } 4881 return json.Unmarshal([]byte(s), &r) 4882} 4883 4884type DeleteWatermarkTemplateResponse struct { 4885 *tchttp.BaseResponse 4886 Response *struct { 4887 4888 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4889 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4890 } `json:"Response"` 4891} 4892 4893func (r *DeleteWatermarkTemplateResponse) ToJsonString() string { 4894 b, _ := json.Marshal(r) 4895 return string(b) 4896} 4897 4898// FromJsonString It is highly **NOT** recommended to use this function 4899// because it has no param check, nor strict type check 4900func (r *DeleteWatermarkTemplateResponse) FromJsonString(s string) error { 4901 return json.Unmarshal([]byte(s), &r) 4902} 4903 4904type DeleteWordSamplesRequest struct { 4905 *tchttp.BaseRequest 4906 4907 // 关键词,数组长度限制:100 个词。 4908 Keywords []*string `json:"Keywords,omitempty" name:"Keywords"` 4909 4910 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4911 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4912} 4913 4914func (r *DeleteWordSamplesRequest) ToJsonString() string { 4915 b, _ := json.Marshal(r) 4916 return string(b) 4917} 4918 4919// FromJsonString It is highly **NOT** recommended to use this function 4920// because it has no param check, nor strict type check 4921func (r *DeleteWordSamplesRequest) FromJsonString(s string) error { 4922 f := make(map[string]interface{}) 4923 if err := json.Unmarshal([]byte(s), &f); err != nil { 4924 return err 4925 } 4926 delete(f, "Keywords") 4927 delete(f, "SubAppId") 4928 if len(f) > 0 { 4929 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteWordSamplesRequest has unknown keys!", "") 4930 } 4931 return json.Unmarshal([]byte(s), &r) 4932} 4933 4934type DeleteWordSamplesResponse struct { 4935 *tchttp.BaseResponse 4936 Response *struct { 4937 4938 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 4939 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 4940 } `json:"Response"` 4941} 4942 4943func (r *DeleteWordSamplesResponse) ToJsonString() string { 4944 b, _ := json.Marshal(r) 4945 return string(b) 4946} 4947 4948// FromJsonString It is highly **NOT** recommended to use this function 4949// because it has no param check, nor strict type check 4950func (r *DeleteWordSamplesResponse) FromJsonString(s string) error { 4951 return json.Unmarshal([]byte(s), &r) 4952} 4953 4954type DescribeAIAnalysisTemplatesRequest struct { 4955 *tchttp.BaseRequest 4956 4957 // 视频内容分析模板唯一标识过滤条件,数组长度最大值:100。 4958 Definitions []*int64 `json:"Definitions,omitempty" name:"Definitions"` 4959 4960 // 分页偏移量,默认值:0。 4961 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 4962 4963 // 返回记录条数,默认值:10,最大值:100。 4964 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 4965 4966 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 4967 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 4968} 4969 4970func (r *DescribeAIAnalysisTemplatesRequest) ToJsonString() string { 4971 b, _ := json.Marshal(r) 4972 return string(b) 4973} 4974 4975// FromJsonString It is highly **NOT** recommended to use this function 4976// because it has no param check, nor strict type check 4977func (r *DescribeAIAnalysisTemplatesRequest) FromJsonString(s string) error { 4978 f := make(map[string]interface{}) 4979 if err := json.Unmarshal([]byte(s), &f); err != nil { 4980 return err 4981 } 4982 delete(f, "Definitions") 4983 delete(f, "Offset") 4984 delete(f, "Limit") 4985 delete(f, "SubAppId") 4986 if len(f) > 0 { 4987 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAIAnalysisTemplatesRequest has unknown keys!", "") 4988 } 4989 return json.Unmarshal([]byte(s), &r) 4990} 4991 4992type DescribeAIAnalysisTemplatesResponse struct { 4993 *tchttp.BaseResponse 4994 Response *struct { 4995 4996 // 符合过滤条件的记录总数。 4997 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 4998 4999 // 视频内容分析模板详情列表。 5000 AIAnalysisTemplateSet []*AIAnalysisTemplateItem `json:"AIAnalysisTemplateSet,omitempty" name:"AIAnalysisTemplateSet"` 5001 5002 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5003 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5004 } `json:"Response"` 5005} 5006 5007func (r *DescribeAIAnalysisTemplatesResponse) ToJsonString() string { 5008 b, _ := json.Marshal(r) 5009 return string(b) 5010} 5011 5012// FromJsonString It is highly **NOT** recommended to use this function 5013// because it has no param check, nor strict type check 5014func (r *DescribeAIAnalysisTemplatesResponse) FromJsonString(s string) error { 5015 return json.Unmarshal([]byte(s), &r) 5016} 5017 5018type DescribeAIRecognitionTemplatesRequest struct { 5019 *tchttp.BaseRequest 5020 5021 // 视频内容识别模板唯一标识过滤条件,数组长度限制:100。 5022 Definitions []*int64 `json:"Definitions,omitempty" name:"Definitions"` 5023 5024 // 分页偏移量,默认值:0。 5025 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 5026 5027 // 返回记录条数,默认值:10,最大值:100。 5028 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 5029 5030 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5031 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5032} 5033 5034func (r *DescribeAIRecognitionTemplatesRequest) ToJsonString() string { 5035 b, _ := json.Marshal(r) 5036 return string(b) 5037} 5038 5039// FromJsonString It is highly **NOT** recommended to use this function 5040// because it has no param check, nor strict type check 5041func (r *DescribeAIRecognitionTemplatesRequest) FromJsonString(s string) error { 5042 f := make(map[string]interface{}) 5043 if err := json.Unmarshal([]byte(s), &f); err != nil { 5044 return err 5045 } 5046 delete(f, "Definitions") 5047 delete(f, "Offset") 5048 delete(f, "Limit") 5049 delete(f, "SubAppId") 5050 if len(f) > 0 { 5051 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAIRecognitionTemplatesRequest has unknown keys!", "") 5052 } 5053 return json.Unmarshal([]byte(s), &r) 5054} 5055 5056type DescribeAIRecognitionTemplatesResponse struct { 5057 *tchttp.BaseResponse 5058 Response *struct { 5059 5060 // 符合过滤条件的记录总数。 5061 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 5062 5063 // 视频内容识别模板详情列表。 5064 AIRecognitionTemplateSet []*AIRecognitionTemplateItem `json:"AIRecognitionTemplateSet,omitempty" name:"AIRecognitionTemplateSet"` 5065 5066 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5067 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5068 } `json:"Response"` 5069} 5070 5071func (r *DescribeAIRecognitionTemplatesResponse) ToJsonString() string { 5072 b, _ := json.Marshal(r) 5073 return string(b) 5074} 5075 5076// FromJsonString It is highly **NOT** recommended to use this function 5077// because it has no param check, nor strict type check 5078func (r *DescribeAIRecognitionTemplatesResponse) FromJsonString(s string) error { 5079 return json.Unmarshal([]byte(s), &r) 5080} 5081 5082type DescribeAdaptiveDynamicStreamingTemplatesRequest struct { 5083 *tchttp.BaseRequest 5084 5085 // 转自适应码流模板唯一标识过滤条件,数组长度限制:100。 5086 Definitions []*uint64 `json:"Definitions,omitempty" name:"Definitions"` 5087 5088 // 分页偏移量,默认值:0。 5089 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 5090 5091 // 返回记录条数,默认值:10,最大值:100。 5092 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 5093 5094 // 模板类型过滤条件,可选值: 5095 // <li>Preset:系统预置模板;</li> 5096 // <li>Custom:用户自定义模板。</li> 5097 Type *string `json:"Type,omitempty" name:"Type"` 5098 5099 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5100 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5101} 5102 5103func (r *DescribeAdaptiveDynamicStreamingTemplatesRequest) ToJsonString() string { 5104 b, _ := json.Marshal(r) 5105 return string(b) 5106} 5107 5108// FromJsonString It is highly **NOT** recommended to use this function 5109// because it has no param check, nor strict type check 5110func (r *DescribeAdaptiveDynamicStreamingTemplatesRequest) FromJsonString(s string) error { 5111 f := make(map[string]interface{}) 5112 if err := json.Unmarshal([]byte(s), &f); err != nil { 5113 return err 5114 } 5115 delete(f, "Definitions") 5116 delete(f, "Offset") 5117 delete(f, "Limit") 5118 delete(f, "Type") 5119 delete(f, "SubAppId") 5120 if len(f) > 0 { 5121 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAdaptiveDynamicStreamingTemplatesRequest has unknown keys!", "") 5122 } 5123 return json.Unmarshal([]byte(s), &r) 5124} 5125 5126type DescribeAdaptiveDynamicStreamingTemplatesResponse struct { 5127 *tchttp.BaseResponse 5128 Response *struct { 5129 5130 // 符合过滤条件的记录总数。 5131 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 5132 5133 // 转自适应码流模板详情列表。 5134 AdaptiveDynamicStreamingTemplateSet []*AdaptiveDynamicStreamingTemplate `json:"AdaptiveDynamicStreamingTemplateSet,omitempty" name:"AdaptiveDynamicStreamingTemplateSet"` 5135 5136 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5137 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5138 } `json:"Response"` 5139} 5140 5141func (r *DescribeAdaptiveDynamicStreamingTemplatesResponse) ToJsonString() string { 5142 b, _ := json.Marshal(r) 5143 return string(b) 5144} 5145 5146// FromJsonString It is highly **NOT** recommended to use this function 5147// because it has no param check, nor strict type check 5148func (r *DescribeAdaptiveDynamicStreamingTemplatesResponse) FromJsonString(s string) error { 5149 return json.Unmarshal([]byte(s), &r) 5150} 5151 5152type DescribeAllClassRequest struct { 5153 *tchttp.BaseRequest 5154 5155 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5156 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5157} 5158 5159func (r *DescribeAllClassRequest) ToJsonString() string { 5160 b, _ := json.Marshal(r) 5161 return string(b) 5162} 5163 5164// FromJsonString It is highly **NOT** recommended to use this function 5165// because it has no param check, nor strict type check 5166func (r *DescribeAllClassRequest) FromJsonString(s string) error { 5167 f := make(map[string]interface{}) 5168 if err := json.Unmarshal([]byte(s), &f); err != nil { 5169 return err 5170 } 5171 delete(f, "SubAppId") 5172 if len(f) > 0 { 5173 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAllClassRequest has unknown keys!", "") 5174 } 5175 return json.Unmarshal([]byte(s), &r) 5176} 5177 5178type DescribeAllClassResponse struct { 5179 *tchttp.BaseResponse 5180 Response *struct { 5181 5182 // 分类信息集合 5183 // 注意:此字段可能返回 null,表示取不到有效值。 5184 ClassInfoSet []*MediaClassInfo `json:"ClassInfoSet,omitempty" name:"ClassInfoSet"` 5185 5186 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5187 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5188 } `json:"Response"` 5189} 5190 5191func (r *DescribeAllClassResponse) ToJsonString() string { 5192 b, _ := json.Marshal(r) 5193 return string(b) 5194} 5195 5196// FromJsonString It is highly **NOT** recommended to use this function 5197// because it has no param check, nor strict type check 5198func (r *DescribeAllClassResponse) FromJsonString(s string) error { 5199 return json.Unmarshal([]byte(s), &r) 5200} 5201 5202type DescribeAnimatedGraphicsTemplatesRequest struct { 5203 *tchttp.BaseRequest 5204 5205 // 转动图模板唯一标识过滤条件,数组长度限制:100。 5206 Definitions []*uint64 `json:"Definitions,omitempty" name:"Definitions"` 5207 5208 // 分页偏移量,默认值:0。 5209 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 5210 5211 // 返回记录条数,默认值:10,最大值:100。 5212 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 5213 5214 // 模板类型过滤条件,可选值: 5215 // <li>Preset:系统预置模板;</li> 5216 // <li>Custom:用户自定义模板。</li> 5217 Type *string `json:"Type,omitempty" name:"Type"` 5218 5219 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5220 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5221} 5222 5223func (r *DescribeAnimatedGraphicsTemplatesRequest) ToJsonString() string { 5224 b, _ := json.Marshal(r) 5225 return string(b) 5226} 5227 5228// FromJsonString It is highly **NOT** recommended to use this function 5229// because it has no param check, nor strict type check 5230func (r *DescribeAnimatedGraphicsTemplatesRequest) FromJsonString(s string) error { 5231 f := make(map[string]interface{}) 5232 if err := json.Unmarshal([]byte(s), &f); err != nil { 5233 return err 5234 } 5235 delete(f, "Definitions") 5236 delete(f, "Offset") 5237 delete(f, "Limit") 5238 delete(f, "Type") 5239 delete(f, "SubAppId") 5240 if len(f) > 0 { 5241 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAnimatedGraphicsTemplatesRequest has unknown keys!", "") 5242 } 5243 return json.Unmarshal([]byte(s), &r) 5244} 5245 5246type DescribeAnimatedGraphicsTemplatesResponse struct { 5247 *tchttp.BaseResponse 5248 Response *struct { 5249 5250 // 符合过滤条件的记录总数。 5251 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 5252 5253 // 转动图模板详情列表。 5254 AnimatedGraphicsTemplateSet []*AnimatedGraphicsTemplate `json:"AnimatedGraphicsTemplateSet,omitempty" name:"AnimatedGraphicsTemplateSet"` 5255 5256 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5257 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5258 } `json:"Response"` 5259} 5260 5261func (r *DescribeAnimatedGraphicsTemplatesResponse) ToJsonString() string { 5262 b, _ := json.Marshal(r) 5263 return string(b) 5264} 5265 5266// FromJsonString It is highly **NOT** recommended to use this function 5267// because it has no param check, nor strict type check 5268func (r *DescribeAnimatedGraphicsTemplatesResponse) FromJsonString(s string) error { 5269 return json.Unmarshal([]byte(s), &r) 5270} 5271 5272type DescribeCDNStatDetailsRequest struct { 5273 *tchttp.BaseRequest 5274 5275 // 查询指标,取值有: 5276 // <li>Traffic:流量,单位为 Byte。</li> 5277 // <li>Bandwidth:带宽,单位为 Bps。</li> 5278 // <li>Requests:请求数。</li> 5279 Metric *string `json:"Metric,omitempty" name:"Metric"` 5280 5281 // 起始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 5282 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 5283 5284 // 结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 5285 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 5286 5287 // 域名列表。一次最多查询20个域名的数据。默认返回所有域名叠加的用量数据。 5288 DomainNames []*string `json:"DomainNames,omitempty" name:"DomainNames"` 5289 5290 // 服务区域,取值有: 5291 // <li>Chinese Mainland:中国大陆。 </li> 5292 // <li>Asia Pacific Region 1:亚太一区,包括中国香港、中国澳门、新加坡、越南、泰国。 </li> 5293 // <li>Asia Pacific Region 2:亚太二区,包括中国台湾、日本、马来西亚、印度尼西亚、韩国。 </li> 5294 // <li>Asia Pacific Region 3:亚太三区,包括菲律宾、印度、澳大利亚和亚太其它国家和地区。 </li> 5295 // <li>Middle East:中东。 </li> 5296 // <li>Europe:欧洲。</li> 5297 // <li>North America:北美。</li> 5298 // <li>South America:南美。</li> 5299 // <li>Africa:非洲。</li> 5300 // 默认为中国大陆。 5301 Area *string `json:"Area,omitempty" name:"Area"` 5302 5303 // 用户所在地区,Area 为 Chinese Mainland 时,取值为以下地区信息,当 Area 为其它值时, 忽略 Districts 参数。 5304 // <li>Beijing:北京。</li> 5305 // <li>Inner Mongolia:内蒙古。</li> 5306 // <li>Shanxi:山西。</li> 5307 // <li>Hebei:河北。</li> 5308 // <li>Tianjin:天津。</li> 5309 // <li>Ningxia:宁夏。</li> 5310 // <li>Shaanxi:陕西。</li> 5311 // <li>Gansu:甘肃。</li> 5312 // <li>Qinghai:青海。</li> 5313 // <li>Xinjiang:新疆。</li> 5314 // <li>Heilongjiang:黑龙江。</li> 5315 // <li>Jilin:吉林。</li> 5316 // <li>Liaoning:辽宁。</li> 5317 // <li>Fujian:福建。</li> 5318 // <li>Jiangsu:江苏。</li> 5319 // <li>Anhui:安徽。</li> 5320 // <li>Shandong:山东。</li> 5321 // <li>Shanghai:上海。</li> 5322 // <li>Zhejiang:浙江。</li> 5323 // <li>Henan:河南。</li> 5324 // <li>Hubei:湖北。</li> 5325 // <li>Jiangxi:江西。</li> 5326 // <li>Hunan:湖南。</li> 5327 // <li>Guizhou:贵州。</li> 5328 // <li>Yunnan:云南。</li> 5329 // <li>Chongqing:重庆。</li> 5330 // <li>Sichuan:四川。</li> 5331 // <li>Tibet:西藏。</li> 5332 // <li>Guangdong:广东。</li> 5333 // <li>Guangxi:广西。</li> 5334 // <li>Hainan:海南。</li> 5335 // <li>Hong Kong, Macao and Taiwan:港澳台。</li> 5336 // <li>Outside Chinese Mainland:海外。</li> 5337 // <li>Other:其他 。</li> 5338 Districts []*string `json:"Districts,omitempty" name:"Districts"` 5339 5340 // 用户所属运营商信息,Area 为 Chinese Mainland 时,取值为以下运营商信息。当 Area 为其它值时忽略 Isps 参数。 5341 // <li>China Telecom:中国电信。 </li> 5342 // <li>China Unicom:中国联通。 </li> 5343 // <li>CERNET:教育网。</li> 5344 // <li>Great Wall Broadband Network:长城宽带。</li> 5345 // <li>China Mobile:中国移动。</li> 5346 // <li>China Mobile Tietong:中国铁通。</li> 5347 // <li>ISPs outside Chinese Mainland:海外运营商。</li> 5348 // <li>Other ISPs:其他运营商。</li> 5349 Isps []*string `json:"Isps,omitempty" name:"Isps"` 5350 5351 // 每条数据的时间粒度,单位:分钟,取值有: 5352 // <li>5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。</li> 5353 // <li>1440:天粒度,返回指定查询时间内1天粒度的数据。起始时间和结束时间跨度大于24小时,只支持天粒度的数据。</li> 5354 // 当 StartTime 和 EndTime 时间跨度大于24小时时,DataInterval 默认为 1440。 5355 DataInterval *uint64 `json:"DataInterval,omitempty" name:"DataInterval"` 5356 5357 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5358 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5359} 5360 5361func (r *DescribeCDNStatDetailsRequest) ToJsonString() string { 5362 b, _ := json.Marshal(r) 5363 return string(b) 5364} 5365 5366// FromJsonString It is highly **NOT** recommended to use this function 5367// because it has no param check, nor strict type check 5368func (r *DescribeCDNStatDetailsRequest) FromJsonString(s string) error { 5369 f := make(map[string]interface{}) 5370 if err := json.Unmarshal([]byte(s), &f); err != nil { 5371 return err 5372 } 5373 delete(f, "Metric") 5374 delete(f, "StartTime") 5375 delete(f, "EndTime") 5376 delete(f, "DomainNames") 5377 delete(f, "Area") 5378 delete(f, "Districts") 5379 delete(f, "Isps") 5380 delete(f, "DataInterval") 5381 delete(f, "SubAppId") 5382 if len(f) > 0 { 5383 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCDNStatDetailsRequest has unknown keys!", "") 5384 } 5385 return json.Unmarshal([]byte(s), &r) 5386} 5387 5388type DescribeCDNStatDetailsResponse struct { 5389 *tchttp.BaseResponse 5390 Response *struct { 5391 5392 // 每条数据的时间粒度,单位:分钟。 5393 DataInterval *uint64 `json:"DataInterval,omitempty" name:"DataInterval"` 5394 5395 // CDN 用量数据。 5396 Data []*StatDataItem `json:"Data,omitempty" name:"Data"` 5397 5398 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5399 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5400 } `json:"Response"` 5401} 5402 5403func (r *DescribeCDNStatDetailsResponse) ToJsonString() string { 5404 b, _ := json.Marshal(r) 5405 return string(b) 5406} 5407 5408// FromJsonString It is highly **NOT** recommended to use this function 5409// because it has no param check, nor strict type check 5410func (r *DescribeCDNStatDetailsResponse) FromJsonString(s string) error { 5411 return json.Unmarshal([]byte(s), &r) 5412} 5413 5414type DescribeCDNUsageDataRequest struct { 5415 *tchttp.BaseRequest 5416 5417 // 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 5418 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 5419 5420 // 结束日期,需大于开始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 5421 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 5422 5423 // CDN 统计数据类型,有效值: 5424 // <li>Flux:流量,单位为 byte。</li> 5425 // <li>Bandwidth:带宽,单位为 bps。</li> 5426 DataType *string `json:"DataType,omitempty" name:"DataType"` 5427 5428 // 用量数据的时间粒度,单位:分钟,取值有: 5429 // <li>5:5 分钟粒度,返回指定查询时间内5分钟粒度的明细数据。</li> 5430 // <li>60:小时粒度,返回指定查询时间内1小时粒度的数据。</li> 5431 // <li>1440:天粒度,返回指定查询时间内1天粒度的数据。</li> 5432 // 默认值为1440,返回天粒度的数据。 5433 DataInterval *uint64 `json:"DataInterval,omitempty" name:"DataInterval"` 5434 5435 // 域名列表。一次最多查询20个域名的用量数据。可以指定多个域名,查询这些域名叠加的用量数据。默认返回所有域名叠加的用量数据。 5436 DomainNames []*string `json:"DomainNames,omitempty" name:"DomainNames"` 5437 5438 // 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5439 // 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计,此时时间粒度只支持天粒度。 5440 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5441} 5442 5443func (r *DescribeCDNUsageDataRequest) ToJsonString() string { 5444 b, _ := json.Marshal(r) 5445 return string(b) 5446} 5447 5448// FromJsonString It is highly **NOT** recommended to use this function 5449// because it has no param check, nor strict type check 5450func (r *DescribeCDNUsageDataRequest) FromJsonString(s string) error { 5451 f := make(map[string]interface{}) 5452 if err := json.Unmarshal([]byte(s), &f); err != nil { 5453 return err 5454 } 5455 delete(f, "StartTime") 5456 delete(f, "EndTime") 5457 delete(f, "DataType") 5458 delete(f, "DataInterval") 5459 delete(f, "DomainNames") 5460 delete(f, "SubAppId") 5461 if len(f) > 0 { 5462 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCDNUsageDataRequest has unknown keys!", "") 5463 } 5464 return json.Unmarshal([]byte(s), &r) 5465} 5466 5467type DescribeCDNUsageDataResponse struct { 5468 *tchttp.BaseResponse 5469 Response *struct { 5470 5471 // 时间粒度,单位:分钟。 5472 DataInterval *int64 `json:"DataInterval,omitempty" name:"DataInterval"` 5473 5474 // CDN 统计数据。 5475 Data []*StatDataItem `json:"Data,omitempty" name:"Data"` 5476 5477 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5478 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5479 } `json:"Response"` 5480} 5481 5482func (r *DescribeCDNUsageDataResponse) ToJsonString() string { 5483 b, _ := json.Marshal(r) 5484 return string(b) 5485} 5486 5487// FromJsonString It is highly **NOT** recommended to use this function 5488// because it has no param check, nor strict type check 5489func (r *DescribeCDNUsageDataResponse) FromJsonString(s string) error { 5490 return json.Unmarshal([]byte(s), &r) 5491} 5492 5493type DescribeCdnLogsRequest struct { 5494 *tchttp.BaseRequest 5495 5496 // 域名。 5497 DomainName *string `json:"DomainName,omitempty" name:"DomainName"` 5498 5499 // 获取日志起始时间点,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 5500 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 5501 5502 // 结束时间需大于起始时间;使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 5503 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 5504 5505 // 分页拉取的最大返回结果数。默认值:100;最大值:1000。 5506 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 5507 5508 // 分页拉取的起始偏移量。默认值:0。 5509 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 5510 5511 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5512 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5513} 5514 5515func (r *DescribeCdnLogsRequest) ToJsonString() string { 5516 b, _ := json.Marshal(r) 5517 return string(b) 5518} 5519 5520// FromJsonString It is highly **NOT** recommended to use this function 5521// because it has no param check, nor strict type check 5522func (r *DescribeCdnLogsRequest) FromJsonString(s string) error { 5523 f := make(map[string]interface{}) 5524 if err := json.Unmarshal([]byte(s), &f); err != nil { 5525 return err 5526 } 5527 delete(f, "DomainName") 5528 delete(f, "StartTime") 5529 delete(f, "EndTime") 5530 delete(f, "Limit") 5531 delete(f, "Offset") 5532 delete(f, "SubAppId") 5533 if len(f) > 0 { 5534 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCdnLogsRequest has unknown keys!", "") 5535 } 5536 return json.Unmarshal([]byte(s), &r) 5537} 5538 5539type DescribeCdnLogsResponse struct { 5540 *tchttp.BaseResponse 5541 Response *struct { 5542 5543 // 日志下载链接总数量。 5544 // 注意:此字段可能返回 null,表示取不到有效值。 5545 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 5546 5547 // 海外CDN节点的日志下载列表。如果域名没有开启海外加速,忽略该参数。 5548 // 注意:此字段可能返回 null,表示取不到有效值。 5549 OverseaCdnLogs []*CdnLogInfo `json:"OverseaCdnLogs,omitempty" name:"OverseaCdnLogs"` 5550 5551 // 国内CDN节点的日志下载列表。 5552 // 注意:此字段可能返回 null,表示取不到有效值。 5553 DomesticCdnLogs []*CdnLogInfo `json:"DomesticCdnLogs,omitempty" name:"DomesticCdnLogs"` 5554 5555 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5556 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5557 } `json:"Response"` 5558} 5559 5560func (r *DescribeCdnLogsResponse) ToJsonString() string { 5561 b, _ := json.Marshal(r) 5562 return string(b) 5563} 5564 5565// FromJsonString It is highly **NOT** recommended to use this function 5566// because it has no param check, nor strict type check 5567func (r *DescribeCdnLogsResponse) FromJsonString(s string) error { 5568 return json.Unmarshal([]byte(s), &r) 5569} 5570 5571type DescribeContentReviewTemplatesRequest struct { 5572 *tchttp.BaseRequest 5573 5574 // 内容智能识别模板唯一标识过滤条件,数组长度限制:100。 5575 Definitions []*int64 `json:"Definitions,omitempty" name:"Definitions"` 5576 5577 // 分页偏移量,默认值:0。 5578 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 5579 5580 // 返回记录条数,默认值:10,最大值:100。 5581 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 5582 5583 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5584 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5585} 5586 5587func (r *DescribeContentReviewTemplatesRequest) ToJsonString() string { 5588 b, _ := json.Marshal(r) 5589 return string(b) 5590} 5591 5592// FromJsonString It is highly **NOT** recommended to use this function 5593// because it has no param check, nor strict type check 5594func (r *DescribeContentReviewTemplatesRequest) FromJsonString(s string) error { 5595 f := make(map[string]interface{}) 5596 if err := json.Unmarshal([]byte(s), &f); err != nil { 5597 return err 5598 } 5599 delete(f, "Definitions") 5600 delete(f, "Offset") 5601 delete(f, "Limit") 5602 delete(f, "SubAppId") 5603 if len(f) > 0 { 5604 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeContentReviewTemplatesRequest has unknown keys!", "") 5605 } 5606 return json.Unmarshal([]byte(s), &r) 5607} 5608 5609type DescribeContentReviewTemplatesResponse struct { 5610 *tchttp.BaseResponse 5611 Response *struct { 5612 5613 // 符合过滤条件的记录总数。 5614 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 5615 5616 // 内容智能识别模板详情列表。 5617 ContentReviewTemplateSet []*ContentReviewTemplateItem `json:"ContentReviewTemplateSet,omitempty" name:"ContentReviewTemplateSet"` 5618 5619 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5620 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5621 } `json:"Response"` 5622} 5623 5624func (r *DescribeContentReviewTemplatesResponse) ToJsonString() string { 5625 b, _ := json.Marshal(r) 5626 return string(b) 5627} 5628 5629// FromJsonString It is highly **NOT** recommended to use this function 5630// because it has no param check, nor strict type check 5631func (r *DescribeContentReviewTemplatesResponse) FromJsonString(s string) error { 5632 return json.Unmarshal([]byte(s), &r) 5633} 5634 5635type DescribeDailyMediaPlayStatRequest struct { 5636 *tchttp.BaseRequest 5637 5638 // 媒体文件 ID 。 5639 FileId *string `json:"FileId,omitempty" name:"FileId"` 5640 5641 // 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。该参数仅日期部分有效。 5642 StartDate *string `json:"StartDate,omitempty" name:"StartDate"` 5643 5644 // 结束日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。该参数仅日期部分有效。 5645 EndDate *string `json:"EndDate,omitempty" name:"EndDate"` 5646 5647 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5648 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5649} 5650 5651func (r *DescribeDailyMediaPlayStatRequest) ToJsonString() string { 5652 b, _ := json.Marshal(r) 5653 return string(b) 5654} 5655 5656// FromJsonString It is highly **NOT** recommended to use this function 5657// because it has no param check, nor strict type check 5658func (r *DescribeDailyMediaPlayStatRequest) FromJsonString(s string) error { 5659 f := make(map[string]interface{}) 5660 if err := json.Unmarshal([]byte(s), &f); err != nil { 5661 return err 5662 } 5663 delete(f, "FileId") 5664 delete(f, "StartDate") 5665 delete(f, "EndDate") 5666 delete(f, "SubAppId") 5667 if len(f) > 0 { 5668 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDailyMediaPlayStatRequest has unknown keys!", "") 5669 } 5670 return json.Unmarshal([]byte(s), &r) 5671} 5672 5673type DescribeDailyMediaPlayStatResponse struct { 5674 *tchttp.BaseResponse 5675 Response *struct { 5676 5677 // 播放统计数据。 5678 DailyPlayStatInfoSet []*DailyPlayStatInfo `json:"DailyPlayStatInfoSet,omitempty" name:"DailyPlayStatInfoSet"` 5679 5680 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5681 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5682 } `json:"Response"` 5683} 5684 5685func (r *DescribeDailyMediaPlayStatResponse) ToJsonString() string { 5686 b, _ := json.Marshal(r) 5687 return string(b) 5688} 5689 5690// FromJsonString It is highly **NOT** recommended to use this function 5691// because it has no param check, nor strict type check 5692func (r *DescribeDailyMediaPlayStatResponse) FromJsonString(s string) error { 5693 return json.Unmarshal([]byte(s), &r) 5694} 5695 5696type DescribeDailyMostPlayedStatRequest struct { 5697 *tchttp.BaseRequest 5698 5699 // 查询日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。该参数仅日期部分有效。 5700 Date *string `json:"Date,omitempty" name:"Date"` 5701 5702 // 域名。查询该域名播放 Top100 的媒体文件的统计数据。默认查询所有域名的播放统计数据。 5703 DomainName *string `json:"DomainName,omitempty" name:"DomainName"` 5704 5705 // Top 数据的统计指标,取值有: 5706 // <li>Traffic:播放流量,按播放流量统计 Top100 的数据。</li> 5707 // <li>PlayTimes:播放次数,按播放次数统计播放 Top100 的数据。</li> 5708 Metric *string `json:"Metric,omitempty" name:"Metric"` 5709 5710 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5711 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5712} 5713 5714func (r *DescribeDailyMostPlayedStatRequest) ToJsonString() string { 5715 b, _ := json.Marshal(r) 5716 return string(b) 5717} 5718 5719// FromJsonString It is highly **NOT** recommended to use this function 5720// because it has no param check, nor strict type check 5721func (r *DescribeDailyMostPlayedStatRequest) FromJsonString(s string) error { 5722 f := make(map[string]interface{}) 5723 if err := json.Unmarshal([]byte(s), &f); err != nil { 5724 return err 5725 } 5726 delete(f, "Date") 5727 delete(f, "DomainName") 5728 delete(f, "Metric") 5729 delete(f, "SubAppId") 5730 if len(f) > 0 { 5731 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDailyMostPlayedStatRequest has unknown keys!", "") 5732 } 5733 return json.Unmarshal([]byte(s), &r) 5734} 5735 5736type DescribeDailyMostPlayedStatResponse struct { 5737 *tchttp.BaseResponse 5738 Response *struct { 5739 5740 // 媒体文件播放统计信息。 5741 DailyPlayStatInfoSet []*DailyPlayStatInfo `json:"DailyPlayStatInfoSet,omitempty" name:"DailyPlayStatInfoSet"` 5742 5743 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5744 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5745 } `json:"Response"` 5746} 5747 5748func (r *DescribeDailyMostPlayedStatResponse) ToJsonString() string { 5749 b, _ := json.Marshal(r) 5750 return string(b) 5751} 5752 5753// FromJsonString It is highly **NOT** recommended to use this function 5754// because it has no param check, nor strict type check 5755func (r *DescribeDailyMostPlayedStatResponse) FromJsonString(s string) error { 5756 return json.Unmarshal([]byte(s), &r) 5757} 5758 5759type DescribeDailyPlayStatFileListRequest struct { 5760 *tchttp.BaseRequest 5761 5762 // 起始日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 5763 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 5764 5765 // 结束日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 5766 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 5767 5768 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5769 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5770} 5771 5772func (r *DescribeDailyPlayStatFileListRequest) ToJsonString() string { 5773 b, _ := json.Marshal(r) 5774 return string(b) 5775} 5776 5777// FromJsonString It is highly **NOT** recommended to use this function 5778// because it has no param check, nor strict type check 5779func (r *DescribeDailyPlayStatFileListRequest) FromJsonString(s string) error { 5780 f := make(map[string]interface{}) 5781 if err := json.Unmarshal([]byte(s), &f); err != nil { 5782 return err 5783 } 5784 delete(f, "StartTime") 5785 delete(f, "EndTime") 5786 delete(f, "SubAppId") 5787 if len(f) > 0 { 5788 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDailyPlayStatFileListRequest has unknown keys!", "") 5789 } 5790 return json.Unmarshal([]byte(s), &r) 5791} 5792 5793type DescribeDailyPlayStatFileListResponse struct { 5794 *tchttp.BaseResponse 5795 Response *struct { 5796 5797 // 播放统计文件列表。 5798 PlayStatFileSet []*PlayStatFileInfo `json:"PlayStatFileSet,omitempty" name:"PlayStatFileSet"` 5799 5800 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5801 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5802 } `json:"Response"` 5803} 5804 5805func (r *DescribeDailyPlayStatFileListResponse) ToJsonString() string { 5806 b, _ := json.Marshal(r) 5807 return string(b) 5808} 5809 5810// FromJsonString It is highly **NOT** recommended to use this function 5811// because it has no param check, nor strict type check 5812func (r *DescribeDailyPlayStatFileListResponse) FromJsonString(s string) error { 5813 return json.Unmarshal([]byte(s), &r) 5814} 5815 5816type DescribeDrmDataKeyRequest struct { 5817 *tchttp.BaseRequest 5818 5819 // 加密后的数据密钥列表,最大支持10个。 5820 EdkList []*string `json:"EdkList,omitempty" name:"EdkList"` 5821} 5822 5823func (r *DescribeDrmDataKeyRequest) ToJsonString() string { 5824 b, _ := json.Marshal(r) 5825 return string(b) 5826} 5827 5828// FromJsonString It is highly **NOT** recommended to use this function 5829// because it has no param check, nor strict type check 5830func (r *DescribeDrmDataKeyRequest) FromJsonString(s string) error { 5831 f := make(map[string]interface{}) 5832 if err := json.Unmarshal([]byte(s), &f); err != nil { 5833 return err 5834 } 5835 delete(f, "EdkList") 5836 if len(f) > 0 { 5837 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDrmDataKeyRequest has unknown keys!", "") 5838 } 5839 return json.Unmarshal([]byte(s), &r) 5840} 5841 5842type DescribeDrmDataKeyResponse struct { 5843 *tchttp.BaseResponse 5844 Response *struct { 5845 5846 // 密钥列表,包含加密的数据密钥。 5847 KeyList []*SimpleAesEdkPair `json:"KeyList,omitempty" name:"KeyList"` 5848 5849 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5850 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5851 } `json:"Response"` 5852} 5853 5854func (r *DescribeDrmDataKeyResponse) ToJsonString() string { 5855 b, _ := json.Marshal(r) 5856 return string(b) 5857} 5858 5859// FromJsonString It is highly **NOT** recommended to use this function 5860// because it has no param check, nor strict type check 5861func (r *DescribeDrmDataKeyResponse) FromJsonString(s string) error { 5862 return json.Unmarshal([]byte(s), &r) 5863} 5864 5865type DescribeEventConfigRequest struct { 5866 *tchttp.BaseRequest 5867 5868 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5869 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5870} 5871 5872func (r *DescribeEventConfigRequest) ToJsonString() string { 5873 b, _ := json.Marshal(r) 5874 return string(b) 5875} 5876 5877// FromJsonString It is highly **NOT** recommended to use this function 5878// because it has no param check, nor strict type check 5879func (r *DescribeEventConfigRequest) FromJsonString(s string) error { 5880 f := make(map[string]interface{}) 5881 if err := json.Unmarshal([]byte(s), &f); err != nil { 5882 return err 5883 } 5884 delete(f, "SubAppId") 5885 if len(f) > 0 { 5886 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEventConfigRequest has unknown keys!", "") 5887 } 5888 return json.Unmarshal([]byte(s), &r) 5889} 5890 5891type DescribeEventConfigResponse struct { 5892 *tchttp.BaseResponse 5893 Response *struct { 5894 5895 // 接收事件通知的方式。"PUSH" 为 [HTTP 回调通知](https://cloud.tencent.com/document/product/266/7829#http.E5.9B.9E.E8.B0.83),"PULL" 为 [基于消息队列的可靠通知](https://cloud.tencent.com/document/product/266/7829#.E5.9F.BA.E4.BA.8E.E6.B6.88.E6.81.AF.E9.98.9F.E5.88.97.E7.9A.84.E5.8F.AF.E9.9D.A0.E9.80.9A.E7.9F.A5)。 5896 Mode *string `json:"Mode,omitempty" name:"Mode"` 5897 5898 // 采用 [HTTP 回调通知](https://cloud.tencent.com/document/product/266/7829#http.E5.9B.9E.E8.B0.83) 接收方式时,用于接收 V3 版本事件通知的地址。 5899 NotificationUrl *string `json:"NotificationUrl,omitempty" name:"NotificationUrl"` 5900 5901 // 是否接收 [视频上传完成](https://cloud.tencent.com/document/product/266/7830) 事件通知,"OFF" 为忽略该事件通知,"ON" 为接收事件通知。 5902 UploadMediaCompleteEventSwitch *string `json:"UploadMediaCompleteEventSwitch,omitempty" name:"UploadMediaCompleteEventSwitch"` 5903 5904 // 是否接收 [视频删除完成](https://cloud.tencent.com/document/product/266/13434) 事件通知,"OFF" 为忽略该事件通知,"ON" 为接收事件通知。 5905 DeleteMediaCompleteEventSwitch *string `json:"DeleteMediaCompleteEventSwitch,omitempty" name:"DeleteMediaCompleteEventSwitch"` 5906 5907 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5908 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5909 } `json:"Response"` 5910} 5911 5912func (r *DescribeEventConfigResponse) ToJsonString() string { 5913 b, _ := json.Marshal(r) 5914 return string(b) 5915} 5916 5917// FromJsonString It is highly **NOT** recommended to use this function 5918// because it has no param check, nor strict type check 5919func (r *DescribeEventConfigResponse) FromJsonString(s string) error { 5920 return json.Unmarshal([]byte(s), &r) 5921} 5922 5923type DescribeEventsStateRequest struct { 5924 *tchttp.BaseRequest 5925 5926 // 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5927 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5928} 5929 5930func (r *DescribeEventsStateRequest) ToJsonString() string { 5931 b, _ := json.Marshal(r) 5932 return string(b) 5933} 5934 5935// FromJsonString It is highly **NOT** recommended to use this function 5936// because it has no param check, nor strict type check 5937func (r *DescribeEventsStateRequest) FromJsonString(s string) error { 5938 f := make(map[string]interface{}) 5939 if err := json.Unmarshal([]byte(s), &f); err != nil { 5940 return err 5941 } 5942 delete(f, "SubAppId") 5943 if len(f) > 0 { 5944 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEventsStateRequest has unknown keys!", "") 5945 } 5946 return json.Unmarshal([]byte(s), &r) 5947} 5948 5949type DescribeEventsStateResponse struct { 5950 *tchttp.BaseResponse 5951 Response *struct { 5952 5953 // 待进行拉取的事件通知数,为近似值,约5秒延迟。 5954 CountOfEventsToPull *uint64 `json:"CountOfEventsToPull,omitempty" name:"CountOfEventsToPull"` 5955 5956 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 5957 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 5958 } `json:"Response"` 5959} 5960 5961func (r *DescribeEventsStateResponse) ToJsonString() string { 5962 b, _ := json.Marshal(r) 5963 return string(b) 5964} 5965 5966// FromJsonString It is highly **NOT** recommended to use this function 5967// because it has no param check, nor strict type check 5968func (r *DescribeEventsStateResponse) FromJsonString(s string) error { 5969 return json.Unmarshal([]byte(s), &r) 5970} 5971 5972type DescribeHeadTailTemplatesRequest struct { 5973 *tchttp.BaseRequest 5974 5975 // 片头片尾模板号,数组长度限制:100。 5976 Definitions []*int64 `json:"Definitions,omitempty" name:"Definitions"` 5977 5978 // 分页偏移量,默认值:0。 5979 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 5980 5981 // 返回记录条数,默认值:10,最大值:100。 5982 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 5983 5984 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 5985 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 5986} 5987 5988func (r *DescribeHeadTailTemplatesRequest) ToJsonString() string { 5989 b, _ := json.Marshal(r) 5990 return string(b) 5991} 5992 5993// FromJsonString It is highly **NOT** recommended to use this function 5994// because it has no param check, nor strict type check 5995func (r *DescribeHeadTailTemplatesRequest) FromJsonString(s string) error { 5996 f := make(map[string]interface{}) 5997 if err := json.Unmarshal([]byte(s), &f); err != nil { 5998 return err 5999 } 6000 delete(f, "Definitions") 6001 delete(f, "Offset") 6002 delete(f, "Limit") 6003 delete(f, "SubAppId") 6004 if len(f) > 0 { 6005 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeHeadTailTemplatesRequest has unknown keys!", "") 6006 } 6007 return json.Unmarshal([]byte(s), &r) 6008} 6009 6010type DescribeHeadTailTemplatesResponse struct { 6011 *tchttp.BaseResponse 6012 Response *struct { 6013 6014 // 符合过滤条件的记录总数。 6015 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6016 6017 // 片头片尾模板详情列表。 6018 HeadTailTemplateSet []*HeadTailTemplate `json:"HeadTailTemplateSet,omitempty" name:"HeadTailTemplateSet"` 6019 6020 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6021 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6022 } `json:"Response"` 6023} 6024 6025func (r *DescribeHeadTailTemplatesResponse) ToJsonString() string { 6026 b, _ := json.Marshal(r) 6027 return string(b) 6028} 6029 6030// FromJsonString It is highly **NOT** recommended to use this function 6031// because it has no param check, nor strict type check 6032func (r *DescribeHeadTailTemplatesResponse) FromJsonString(s string) error { 6033 return json.Unmarshal([]byte(s), &r) 6034} 6035 6036type DescribeImageProcessingTemplatesRequest struct { 6037 *tchttp.BaseRequest 6038 6039 // 图片处理模板标识列表。长度限制:100。 6040 Definitions []*uint64 `json:"Definitions,omitempty" name:"Definitions"` 6041 6042 // 模板类型过滤条件,可选值: 6043 // <li>Preset:系统预置模板;</li> 6044 // <li>Custom:用户自定义模板。</li> 6045 Type *string `json:"Type,omitempty" name:"Type"` 6046 6047 // 分页偏移量,默认值:0。 6048 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6049 6050 // 返回记录条数,默认值:10,最大值:100。 6051 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6052 6053 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6054 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6055} 6056 6057func (r *DescribeImageProcessingTemplatesRequest) ToJsonString() string { 6058 b, _ := json.Marshal(r) 6059 return string(b) 6060} 6061 6062// FromJsonString It is highly **NOT** recommended to use this function 6063// because it has no param check, nor strict type check 6064func (r *DescribeImageProcessingTemplatesRequest) FromJsonString(s string) error { 6065 f := make(map[string]interface{}) 6066 if err := json.Unmarshal([]byte(s), &f); err != nil { 6067 return err 6068 } 6069 delete(f, "Definitions") 6070 delete(f, "Type") 6071 delete(f, "Offset") 6072 delete(f, "Limit") 6073 delete(f, "SubAppId") 6074 if len(f) > 0 { 6075 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImageProcessingTemplatesRequest has unknown keys!", "") 6076 } 6077 return json.Unmarshal([]byte(s), &r) 6078} 6079 6080type DescribeImageProcessingTemplatesResponse struct { 6081 *tchttp.BaseResponse 6082 Response *struct { 6083 6084 // 符合过滤条件的记录总数。 6085 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6086 6087 // 图片处理模板详情列表。 6088 ImageProcessingTemplateSet []*ImageProcessingTemplate `json:"ImageProcessingTemplateSet,omitempty" name:"ImageProcessingTemplateSet"` 6089 6090 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6091 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6092 } `json:"Response"` 6093} 6094 6095func (r *DescribeImageProcessingTemplatesResponse) ToJsonString() string { 6096 b, _ := json.Marshal(r) 6097 return string(b) 6098} 6099 6100// FromJsonString It is highly **NOT** recommended to use this function 6101// because it has no param check, nor strict type check 6102func (r *DescribeImageProcessingTemplatesResponse) FromJsonString(s string) error { 6103 return json.Unmarshal([]byte(s), &r) 6104} 6105 6106type DescribeImageSpriteTemplatesRequest struct { 6107 *tchttp.BaseRequest 6108 6109 // 雪碧图模板唯一标识过滤条件,数组长度限制:100。 6110 Definitions []*uint64 `json:"Definitions,omitempty" name:"Definitions"` 6111 6112 // 分页偏移量,默认值:0。 6113 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6114 6115 // 返回记录条数,默认值:10,最大值:100。 6116 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6117 6118 // 模板类型过滤条件,可选值: 6119 // <li>Preset:系统预置模板;</li> 6120 // <li>Custom:用户自定义模板。</li> 6121 Type *string `json:"Type,omitempty" name:"Type"` 6122 6123 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6124 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6125} 6126 6127func (r *DescribeImageSpriteTemplatesRequest) ToJsonString() string { 6128 b, _ := json.Marshal(r) 6129 return string(b) 6130} 6131 6132// FromJsonString It is highly **NOT** recommended to use this function 6133// because it has no param check, nor strict type check 6134func (r *DescribeImageSpriteTemplatesRequest) FromJsonString(s string) error { 6135 f := make(map[string]interface{}) 6136 if err := json.Unmarshal([]byte(s), &f); err != nil { 6137 return err 6138 } 6139 delete(f, "Definitions") 6140 delete(f, "Offset") 6141 delete(f, "Limit") 6142 delete(f, "Type") 6143 delete(f, "SubAppId") 6144 if len(f) > 0 { 6145 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImageSpriteTemplatesRequest has unknown keys!", "") 6146 } 6147 return json.Unmarshal([]byte(s), &r) 6148} 6149 6150type DescribeImageSpriteTemplatesResponse struct { 6151 *tchttp.BaseResponse 6152 Response *struct { 6153 6154 // 符合过滤条件的记录总数。 6155 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6156 6157 // 雪碧图模板详情列表。 6158 ImageSpriteTemplateSet []*ImageSpriteTemplate `json:"ImageSpriteTemplateSet,omitempty" name:"ImageSpriteTemplateSet"` 6159 6160 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6161 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6162 } `json:"Response"` 6163} 6164 6165func (r *DescribeImageSpriteTemplatesResponse) ToJsonString() string { 6166 b, _ := json.Marshal(r) 6167 return string(b) 6168} 6169 6170// FromJsonString It is highly **NOT** recommended to use this function 6171// because it has no param check, nor strict type check 6172func (r *DescribeImageSpriteTemplatesResponse) FromJsonString(s string) error { 6173 return json.Unmarshal([]byte(s), &r) 6174} 6175 6176type DescribeMediaInfosRequest struct { 6177 *tchttp.BaseRequest 6178 6179 // 媒体文件 ID 列表,N 从 0 开始取值,最大 19。 6180 FileIds []*string `json:"FileIds,omitempty" name:"FileIds"` 6181 6182 // 指定所有媒体文件需要返回的信息,可同时指定多个信息,N 从 0 开始递增。如果未填写该字段,默认返回所有信息。选项有: 6183 // <li>basicInfo(视频基础信息)。</li> 6184 // <li>metaData(视频元信息)。</li> 6185 // <li>transcodeInfo(视频转码结果信息)。</li> 6186 // <li>animatedGraphicsInfo(视频转动图结果信息)。</li> 6187 // <li>imageSpriteInfo(视频雪碧图信息)。</li> 6188 // <li>snapshotByTimeOffsetInfo(视频指定时间点截图信息)。</li> 6189 // <li>sampleSnapshotInfo(采样截图信息)。</li> 6190 // <li>keyFrameDescInfo(打点信息)。</li> 6191 // <li>adaptiveDynamicStreamingInfo(转自适应码流信息)。</li> 6192 // <li>miniProgramReviewInfo(小程序审核信息)。</li> 6193 Filters []*string `json:"Filters,omitempty" name:"Filters"` 6194 6195 // 点播[子应用](/document/product/266/14574) ID 。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6196 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6197} 6198 6199func (r *DescribeMediaInfosRequest) ToJsonString() string { 6200 b, _ := json.Marshal(r) 6201 return string(b) 6202} 6203 6204// FromJsonString It is highly **NOT** recommended to use this function 6205// because it has no param check, nor strict type check 6206func (r *DescribeMediaInfosRequest) FromJsonString(s string) error { 6207 f := make(map[string]interface{}) 6208 if err := json.Unmarshal([]byte(s), &f); err != nil { 6209 return err 6210 } 6211 delete(f, "FileIds") 6212 delete(f, "Filters") 6213 delete(f, "SubAppId") 6214 if len(f) > 0 { 6215 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeMediaInfosRequest has unknown keys!", "") 6216 } 6217 return json.Unmarshal([]byte(s), &r) 6218} 6219 6220type DescribeMediaInfosResponse struct { 6221 *tchttp.BaseResponse 6222 Response *struct { 6223 6224 // 媒体文件信息列表。 6225 MediaInfoSet []*MediaInfo `json:"MediaInfoSet,omitempty" name:"MediaInfoSet"` 6226 6227 // 不存在的文件 ID 列表。 6228 NotExistFileIdSet []*string `json:"NotExistFileIdSet,omitempty" name:"NotExistFileIdSet"` 6229 6230 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6231 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6232 } `json:"Response"` 6233} 6234 6235func (r *DescribeMediaInfosResponse) ToJsonString() string { 6236 b, _ := json.Marshal(r) 6237 return string(b) 6238} 6239 6240// FromJsonString It is highly **NOT** recommended to use this function 6241// because it has no param check, nor strict type check 6242func (r *DescribeMediaInfosResponse) FromJsonString(s string) error { 6243 return json.Unmarshal([]byte(s), &r) 6244} 6245 6246type DescribeMediaProcessUsageDataRequest struct { 6247 *tchttp.BaseRequest 6248 6249 // 起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。 6250 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 6251 6252 // 结束日期,需大于等于起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。 6253 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 6254 6255 // 查询视频处理任务类型,目前支持的任务类型包括: 6256 // <li> Transcoding: 普通转码</li> 6257 // <li> Transcoding-TESHD: 极速高清转码</li> 6258 // <li> Editing: 视频编辑</li> 6259 // <li> AdaptiveBitrateStreaming: 自适应码流</li> 6260 // <li> ContentAudit: 内容审核</li> 6261 // <li>Transcode: 转码,包含普通转码、极速高清和视频编辑(不推荐使用)</li> 6262 Type *string `json:"Type,omitempty" name:"Type"` 6263 6264 // 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6265 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6266} 6267 6268func (r *DescribeMediaProcessUsageDataRequest) ToJsonString() string { 6269 b, _ := json.Marshal(r) 6270 return string(b) 6271} 6272 6273// FromJsonString It is highly **NOT** recommended to use this function 6274// because it has no param check, nor strict type check 6275func (r *DescribeMediaProcessUsageDataRequest) FromJsonString(s string) error { 6276 f := make(map[string]interface{}) 6277 if err := json.Unmarshal([]byte(s), &f); err != nil { 6278 return err 6279 } 6280 delete(f, "StartTime") 6281 delete(f, "EndTime") 6282 delete(f, "Type") 6283 delete(f, "SubAppId") 6284 if len(f) > 0 { 6285 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeMediaProcessUsageDataRequest has unknown keys!", "") 6286 } 6287 return json.Unmarshal([]byte(s), &r) 6288} 6289 6290type DescribeMediaProcessUsageDataResponse struct { 6291 *tchttp.BaseResponse 6292 Response *struct { 6293 6294 // 视频处理统计数据概览,展示所查询任务的概览以及详细数据。 6295 MediaProcessDataSet []*TaskStatData `json:"MediaProcessDataSet,omitempty" name:"MediaProcessDataSet"` 6296 6297 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6298 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6299 } `json:"Response"` 6300} 6301 6302func (r *DescribeMediaProcessUsageDataResponse) ToJsonString() string { 6303 b, _ := json.Marshal(r) 6304 return string(b) 6305} 6306 6307// FromJsonString It is highly **NOT** recommended to use this function 6308// because it has no param check, nor strict type check 6309func (r *DescribeMediaProcessUsageDataResponse) FromJsonString(s string) error { 6310 return json.Unmarshal([]byte(s), &r) 6311} 6312 6313type DescribePersonSamplesRequest struct { 6314 *tchttp.BaseRequest 6315 6316 // 拉取的素材类型,可选值: 6317 // <li>UserDefine:用户自定义素材库;</li> 6318 // <li>Default:系统默认素材库。</li> 6319 // 6320 // 默认值:UserDefine,拉取用户自定义素材库素材。 6321 // 说明:如果是拉取系统默认素材库,只能使用素材名字或者素材 ID + 素材名字的方式进行拉取,且五官图片只返回一张。 6322 Type *string `json:"Type,omitempty" name:"Type"` 6323 6324 // 素材 ID,数组长度限制:100。 6325 PersonIds []*string `json:"PersonIds,omitempty" name:"PersonIds"` 6326 6327 // 素材名称,数组长度限制:20。 6328 Names []*string `json:"Names,omitempty" name:"Names"` 6329 6330 // 素材标签,数组长度限制:20。 6331 Tags []*string `json:"Tags,omitempty" name:"Tags"` 6332 6333 // 分页偏移量,默认值:0。 6334 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6335 6336 // 返回记录条数,默认值:100,最大值:100。 6337 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6338 6339 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6340 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6341} 6342 6343func (r *DescribePersonSamplesRequest) ToJsonString() string { 6344 b, _ := json.Marshal(r) 6345 return string(b) 6346} 6347 6348// FromJsonString It is highly **NOT** recommended to use this function 6349// because it has no param check, nor strict type check 6350func (r *DescribePersonSamplesRequest) FromJsonString(s string) error { 6351 f := make(map[string]interface{}) 6352 if err := json.Unmarshal([]byte(s), &f); err != nil { 6353 return err 6354 } 6355 delete(f, "Type") 6356 delete(f, "PersonIds") 6357 delete(f, "Names") 6358 delete(f, "Tags") 6359 delete(f, "Offset") 6360 delete(f, "Limit") 6361 delete(f, "SubAppId") 6362 if len(f) > 0 { 6363 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePersonSamplesRequest has unknown keys!", "") 6364 } 6365 return json.Unmarshal([]byte(s), &r) 6366} 6367 6368type DescribePersonSamplesResponse struct { 6369 *tchttp.BaseResponse 6370 Response *struct { 6371 6372 // 符合条件的记录总数。 6373 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6374 6375 // 人物信息。 6376 PersonSet []*AiSamplePerson `json:"PersonSet,omitempty" name:"PersonSet"` 6377 6378 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6379 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6380 } `json:"Response"` 6381} 6382 6383func (r *DescribePersonSamplesResponse) ToJsonString() string { 6384 b, _ := json.Marshal(r) 6385 return string(b) 6386} 6387 6388// FromJsonString It is highly **NOT** recommended to use this function 6389// because it has no param check, nor strict type check 6390func (r *DescribePersonSamplesResponse) FromJsonString(s string) error { 6391 return json.Unmarshal([]byte(s), &r) 6392} 6393 6394type DescribePrepaidProductsRequest struct { 6395 *tchttp.BaseRequest 6396} 6397 6398func (r *DescribePrepaidProductsRequest) ToJsonString() string { 6399 b, _ := json.Marshal(r) 6400 return string(b) 6401} 6402 6403// FromJsonString It is highly **NOT** recommended to use this function 6404// because it has no param check, nor strict type check 6405func (r *DescribePrepaidProductsRequest) FromJsonString(s string) error { 6406 f := make(map[string]interface{}) 6407 if err := json.Unmarshal([]byte(s), &f); err != nil { 6408 return err 6409 } 6410 if len(f) > 0 { 6411 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrepaidProductsRequest has unknown keys!", "") 6412 } 6413 return json.Unmarshal([]byte(s), &r) 6414} 6415 6416type DescribePrepaidProductsResponse struct { 6417 *tchttp.BaseResponse 6418 Response *struct { 6419 6420 // 购买的预付费商品实例列表。 6421 ProductInstanceSet []*ProductInstance `json:"ProductInstanceSet,omitempty" name:"ProductInstanceSet"` 6422 6423 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6424 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6425 } `json:"Response"` 6426} 6427 6428func (r *DescribePrepaidProductsResponse) ToJsonString() string { 6429 b, _ := json.Marshal(r) 6430 return string(b) 6431} 6432 6433// FromJsonString It is highly **NOT** recommended to use this function 6434// because it has no param check, nor strict type check 6435func (r *DescribePrepaidProductsResponse) FromJsonString(s string) error { 6436 return json.Unmarshal([]byte(s), &r) 6437} 6438 6439type DescribeProcedureTemplatesRequest struct { 6440 *tchttp.BaseRequest 6441 6442 // 任务流模板名字过滤条件,数组长度限制:100。 6443 Names []*string `json:"Names,omitempty" name:"Names"` 6444 6445 // 任务流模板类型过滤条件,可选值: 6446 // <li>Preset:系统预置任务流模板;</li> 6447 // <li>Custom:用户自定义任务流模板。</li> 6448 Type *string `json:"Type,omitempty" name:"Type"` 6449 6450 // 分页偏移量,默认值:0。 6451 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6452 6453 // 返回记录条数,默认值:10,最大值:100。 6454 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6455 6456 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6457 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6458} 6459 6460func (r *DescribeProcedureTemplatesRequest) ToJsonString() string { 6461 b, _ := json.Marshal(r) 6462 return string(b) 6463} 6464 6465// FromJsonString It is highly **NOT** recommended to use this function 6466// because it has no param check, nor strict type check 6467func (r *DescribeProcedureTemplatesRequest) FromJsonString(s string) error { 6468 f := make(map[string]interface{}) 6469 if err := json.Unmarshal([]byte(s), &f); err != nil { 6470 return err 6471 } 6472 delete(f, "Names") 6473 delete(f, "Type") 6474 delete(f, "Offset") 6475 delete(f, "Limit") 6476 delete(f, "SubAppId") 6477 if len(f) > 0 { 6478 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProcedureTemplatesRequest has unknown keys!", "") 6479 } 6480 return json.Unmarshal([]byte(s), &r) 6481} 6482 6483type DescribeProcedureTemplatesResponse struct { 6484 *tchttp.BaseResponse 6485 Response *struct { 6486 6487 // 符合过滤条件的记录总数。 6488 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6489 6490 // 任务流模板详情列表。 6491 ProcedureTemplateSet []*ProcedureTemplate `json:"ProcedureTemplateSet,omitempty" name:"ProcedureTemplateSet"` 6492 6493 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6494 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6495 } `json:"Response"` 6496} 6497 6498func (r *DescribeProcedureTemplatesResponse) ToJsonString() string { 6499 b, _ := json.Marshal(r) 6500 return string(b) 6501} 6502 6503// FromJsonString It is highly **NOT** recommended to use this function 6504// because it has no param check, nor strict type check 6505func (r *DescribeProcedureTemplatesResponse) FromJsonString(s string) error { 6506 return json.Unmarshal([]byte(s), &r) 6507} 6508 6509type DescribeReviewDetailsRequest struct { 6510 *tchttp.BaseRequest 6511 6512 // 起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 6513 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 6514 6515 // 结束日期,需大于起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 6516 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 6517 6518 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6519 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6520} 6521 6522func (r *DescribeReviewDetailsRequest) ToJsonString() string { 6523 b, _ := json.Marshal(r) 6524 return string(b) 6525} 6526 6527// FromJsonString It is highly **NOT** recommended to use this function 6528// because it has no param check, nor strict type check 6529func (r *DescribeReviewDetailsRequest) FromJsonString(s string) error { 6530 f := make(map[string]interface{}) 6531 if err := json.Unmarshal([]byte(s), &f); err != nil { 6532 return err 6533 } 6534 delete(f, "StartTime") 6535 delete(f, "EndTime") 6536 delete(f, "SubAppId") 6537 if len(f) > 0 { 6538 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeReviewDetailsRequest has unknown keys!", "") 6539 } 6540 return json.Unmarshal([]byte(s), &r) 6541} 6542 6543type DescribeReviewDetailsResponse struct { 6544 *tchttp.BaseResponse 6545 Response *struct { 6546 6547 // 发起内容智能识别次数。 6548 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 6549 6550 // 内容智能识别总时长。 6551 TotalDuration *int64 `json:"TotalDuration,omitempty" name:"TotalDuration"` 6552 6553 // 内容智能识别时长统计数据,每天一个数据。 6554 Data []*StatDataItem `json:"Data,omitempty" name:"Data"` 6555 6556 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6557 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6558 } `json:"Response"` 6559} 6560 6561func (r *DescribeReviewDetailsResponse) ToJsonString() string { 6562 b, _ := json.Marshal(r) 6563 return string(b) 6564} 6565 6566// FromJsonString It is highly **NOT** recommended to use this function 6567// because it has no param check, nor strict type check 6568func (r *DescribeReviewDetailsResponse) FromJsonString(s string) error { 6569 return json.Unmarshal([]byte(s), &r) 6570} 6571 6572type DescribeSampleSnapshotTemplatesRequest struct { 6573 *tchttp.BaseRequest 6574 6575 // 采样截图模板唯一标识过滤条件,数组长度限制:100。 6576 Definitions []*uint64 `json:"Definitions,omitempty" name:"Definitions"` 6577 6578 // 分页偏移量,默认值:0。 6579 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6580 6581 // 返回记录条数,默认值:10,最大值:100。 6582 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6583 6584 // 模板类型过滤条件,可选值: 6585 // <li>Preset:系统预置模板;</li> 6586 // <li>Custom:用户自定义模板。</li> 6587 Type *string `json:"Type,omitempty" name:"Type"` 6588 6589 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6590 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6591} 6592 6593func (r *DescribeSampleSnapshotTemplatesRequest) ToJsonString() string { 6594 b, _ := json.Marshal(r) 6595 return string(b) 6596} 6597 6598// FromJsonString It is highly **NOT** recommended to use this function 6599// because it has no param check, nor strict type check 6600func (r *DescribeSampleSnapshotTemplatesRequest) FromJsonString(s string) error { 6601 f := make(map[string]interface{}) 6602 if err := json.Unmarshal([]byte(s), &f); err != nil { 6603 return err 6604 } 6605 delete(f, "Definitions") 6606 delete(f, "Offset") 6607 delete(f, "Limit") 6608 delete(f, "Type") 6609 delete(f, "SubAppId") 6610 if len(f) > 0 { 6611 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSampleSnapshotTemplatesRequest has unknown keys!", "") 6612 } 6613 return json.Unmarshal([]byte(s), &r) 6614} 6615 6616type DescribeSampleSnapshotTemplatesResponse struct { 6617 *tchttp.BaseResponse 6618 Response *struct { 6619 6620 // 符合过滤条件的记录总数。 6621 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6622 6623 // 采样截图模板详情列表。 6624 SampleSnapshotTemplateSet []*SampleSnapshotTemplate `json:"SampleSnapshotTemplateSet,omitempty" name:"SampleSnapshotTemplateSet"` 6625 6626 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6627 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6628 } `json:"Response"` 6629} 6630 6631func (r *DescribeSampleSnapshotTemplatesResponse) ToJsonString() string { 6632 b, _ := json.Marshal(r) 6633 return string(b) 6634} 6635 6636// FromJsonString It is highly **NOT** recommended to use this function 6637// because it has no param check, nor strict type check 6638func (r *DescribeSampleSnapshotTemplatesResponse) FromJsonString(s string) error { 6639 return json.Unmarshal([]byte(s), &r) 6640} 6641 6642type DescribeSnapshotByTimeOffsetTemplatesRequest struct { 6643 *tchttp.BaseRequest 6644 6645 // 指定时间点截图模板唯一标识过滤条件,数组长度限制:100。 6646 Definitions []*uint64 `json:"Definitions,omitempty" name:"Definitions"` 6647 6648 // 分页偏移量,默认值:0。 6649 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6650 6651 // 返回记录条数,默认值:10,最大值:100。 6652 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6653 6654 // 模板类型过滤条件,可选值: 6655 // <li>Preset:系统预置模板;</li> 6656 // <li>Custom:用户自定义模板。</li> 6657 Type *string `json:"Type,omitempty" name:"Type"` 6658 6659 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6660 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6661} 6662 6663func (r *DescribeSnapshotByTimeOffsetTemplatesRequest) ToJsonString() string { 6664 b, _ := json.Marshal(r) 6665 return string(b) 6666} 6667 6668// FromJsonString It is highly **NOT** recommended to use this function 6669// because it has no param check, nor strict type check 6670func (r *DescribeSnapshotByTimeOffsetTemplatesRequest) FromJsonString(s string) error { 6671 f := make(map[string]interface{}) 6672 if err := json.Unmarshal([]byte(s), &f); err != nil { 6673 return err 6674 } 6675 delete(f, "Definitions") 6676 delete(f, "Offset") 6677 delete(f, "Limit") 6678 delete(f, "Type") 6679 delete(f, "SubAppId") 6680 if len(f) > 0 { 6681 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSnapshotByTimeOffsetTemplatesRequest has unknown keys!", "") 6682 } 6683 return json.Unmarshal([]byte(s), &r) 6684} 6685 6686type DescribeSnapshotByTimeOffsetTemplatesResponse struct { 6687 *tchttp.BaseResponse 6688 Response *struct { 6689 6690 // 符合过滤条件的记录总数。 6691 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6692 6693 // 指定时间点截图模板详情列表。 6694 SnapshotByTimeOffsetTemplateSet []*SnapshotByTimeOffsetTemplate `json:"SnapshotByTimeOffsetTemplateSet,omitempty" name:"SnapshotByTimeOffsetTemplateSet"` 6695 6696 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6697 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6698 } `json:"Response"` 6699} 6700 6701func (r *DescribeSnapshotByTimeOffsetTemplatesResponse) ToJsonString() string { 6702 b, _ := json.Marshal(r) 6703 return string(b) 6704} 6705 6706// FromJsonString It is highly **NOT** recommended to use this function 6707// because it has no param check, nor strict type check 6708func (r *DescribeSnapshotByTimeOffsetTemplatesResponse) FromJsonString(s string) error { 6709 return json.Unmarshal([]byte(s), &r) 6710} 6711 6712type DescribeStorageDataRequest struct { 6713 *tchttp.BaseRequest 6714 6715 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6716 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6717} 6718 6719func (r *DescribeStorageDataRequest) ToJsonString() string { 6720 b, _ := json.Marshal(r) 6721 return string(b) 6722} 6723 6724// FromJsonString It is highly **NOT** recommended to use this function 6725// because it has no param check, nor strict type check 6726func (r *DescribeStorageDataRequest) FromJsonString(s string) error { 6727 f := make(map[string]interface{}) 6728 if err := json.Unmarshal([]byte(s), &f); err != nil { 6729 return err 6730 } 6731 delete(f, "SubAppId") 6732 if len(f) > 0 { 6733 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeStorageDataRequest has unknown keys!", "") 6734 } 6735 return json.Unmarshal([]byte(s), &r) 6736} 6737 6738type DescribeStorageDataResponse struct { 6739 *tchttp.BaseResponse 6740 Response *struct { 6741 6742 // 当前媒体总量。 6743 MediaCount *uint64 `json:"MediaCount,omitempty" name:"MediaCount"` 6744 6745 // 当前总存储量,单位是字节。 6746 TotalStorage *uint64 `json:"TotalStorage,omitempty" name:"TotalStorage"` 6747 6748 // 当前低频存储量,单位是字节。 6749 InfrequentStorage *uint64 `json:"InfrequentStorage,omitempty" name:"InfrequentStorage"` 6750 6751 // 当前标准存储量,单位是字节。 6752 StandardStorage *uint64 `json:"StandardStorage,omitempty" name:"StandardStorage"` 6753 6754 // 各计费区域的存储用量。 6755 StorageStat []*StorageStatData `json:"StorageStat,omitempty" name:"StorageStat"` 6756 6757 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6758 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6759 } `json:"Response"` 6760} 6761 6762func (r *DescribeStorageDataResponse) ToJsonString() string { 6763 b, _ := json.Marshal(r) 6764 return string(b) 6765} 6766 6767// FromJsonString It is highly **NOT** recommended to use this function 6768// because it has no param check, nor strict type check 6769func (r *DescribeStorageDataResponse) FromJsonString(s string) error { 6770 return json.Unmarshal([]byte(s), &r) 6771} 6772 6773type DescribeStorageDetailsRequest struct { 6774 *tchttp.BaseRequest 6775 6776 // 起始时间,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#52)。 6777 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 6778 6779 // 结束时间,需大于开始日期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#52)。 6780 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 6781 6782 // 统计时间粒度,有效值: 6783 // <li>Minute:以5分钟为粒度。</li> 6784 // <li>Day:以天为粒度。</li> 6785 // 默认按时间跨度决定,小于等于1天以5分钟为粒度,大于1天则以天为粒度。 6786 Interval *string `json:"Interval,omitempty" name:"Interval"` 6787 6788 // 查询的存储类型,有效值: 6789 // <li>TotalStorage:存储总量,标准、低频、归档和深度归档存储量之和,不含提前删除量。</li> 6790 // <li>StandardStorage:标准存储。</li> 6791 // <li>InfrequentStorage:低频存储。</li> 6792 // <li>ArchiveStorage:归档存储。</li> 6793 // <li>DeepArchiveStorage:深度归档存储。</li> 6794 // <li>DeletedInfrequentStorage:低频存储提前删除量。</li> 6795 // <li>DeletedArchiveStorage:归档提前删除量。</li> 6796 // <li>DeletedDeepArchiveStorage:深度归档提前删除量。 6797 // <li>ArchiveStandardRetrieval:归档标准取回量。</li> 6798 // <li>ArchiveExpeditedRetrieval:归档快速取回量。</li> 6799 // <li>ArchiveBulkRetrieval:归档批量取回量。</li> 6800 // <li>DeepArchiveStandardRetrieval:深度归档标准取回量。</li> 6801 // <li>DeepArchiveBulkRetrieval:深度归档批量取回量。</li> 6802 // 默认值为 TotalStorage。 6803 StorageType *string `json:"StorageType,omitempty" name:"StorageType"` 6804 6805 // 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6806 // 当该字段为1时,表示以管理员身份查询所有子应用(含主应用)的用量合计。 6807 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6808 6809 // 查询的存储区域,有效值: 6810 // <li>Chinese Mainland:中国境内(不包含港澳台)。</li> 6811 // <li>Outside Chinese Mainland:中国境外。</li> 6812 // 默认值为 Chinese Mainland。 6813 Area *string `json:"Area,omitempty" name:"Area"` 6814} 6815 6816func (r *DescribeStorageDetailsRequest) ToJsonString() string { 6817 b, _ := json.Marshal(r) 6818 return string(b) 6819} 6820 6821// FromJsonString It is highly **NOT** recommended to use this function 6822// because it has no param check, nor strict type check 6823func (r *DescribeStorageDetailsRequest) FromJsonString(s string) error { 6824 f := make(map[string]interface{}) 6825 if err := json.Unmarshal([]byte(s), &f); err != nil { 6826 return err 6827 } 6828 delete(f, "StartTime") 6829 delete(f, "EndTime") 6830 delete(f, "Interval") 6831 delete(f, "StorageType") 6832 delete(f, "SubAppId") 6833 delete(f, "Area") 6834 if len(f) > 0 { 6835 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeStorageDetailsRequest has unknown keys!", "") 6836 } 6837 return json.Unmarshal([]byte(s), &r) 6838} 6839 6840type DescribeStorageDetailsResponse struct { 6841 *tchttp.BaseResponse 6842 Response *struct { 6843 6844 // 存储统计数据,每5分钟或每天一条数据。 6845 Data []*StatDataItem `json:"Data,omitempty" name:"Data"` 6846 6847 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6848 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6849 } `json:"Response"` 6850} 6851 6852func (r *DescribeStorageDetailsResponse) ToJsonString() string { 6853 b, _ := json.Marshal(r) 6854 return string(b) 6855} 6856 6857// FromJsonString It is highly **NOT** recommended to use this function 6858// because it has no param check, nor strict type check 6859func (r *DescribeStorageDetailsResponse) FromJsonString(s string) error { 6860 return json.Unmarshal([]byte(s), &r) 6861} 6862 6863type DescribeSubAppIdsRequest struct { 6864 *tchttp.BaseRequest 6865 6866 // 子应用名称。 6867 Name *string `json:"Name,omitempty" name:"Name"` 6868 6869 // 标签信息,查询指定标签的子应用列表。 6870 Tags []*ResourceTag `json:"Tags,omitempty" name:"Tags"` 6871 6872 // 分页拉取的起始偏移量。默认值:0。 6873 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6874 6875 // 分页拉取的最大返回结果数。默认值:200;最大值:200。 6876 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6877} 6878 6879func (r *DescribeSubAppIdsRequest) ToJsonString() string { 6880 b, _ := json.Marshal(r) 6881 return string(b) 6882} 6883 6884// FromJsonString It is highly **NOT** recommended to use this function 6885// because it has no param check, nor strict type check 6886func (r *DescribeSubAppIdsRequest) FromJsonString(s string) error { 6887 f := make(map[string]interface{}) 6888 if err := json.Unmarshal([]byte(s), &f); err != nil { 6889 return err 6890 } 6891 delete(f, "Name") 6892 delete(f, "Tags") 6893 delete(f, "Offset") 6894 delete(f, "Limit") 6895 if len(f) > 0 { 6896 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSubAppIdsRequest has unknown keys!", "") 6897 } 6898 return json.Unmarshal([]byte(s), &r) 6899} 6900 6901type DescribeSubAppIdsResponse struct { 6902 *tchttp.BaseResponse 6903 Response *struct { 6904 6905 // 子应用信息集合。 6906 SubAppIdInfoSet []*SubAppIdInfo `json:"SubAppIdInfoSet,omitempty" name:"SubAppIdInfoSet"` 6907 6908 // 子应用总数量。 6909 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6910 6911 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6912 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6913 } `json:"Response"` 6914} 6915 6916func (r *DescribeSubAppIdsResponse) ToJsonString() string { 6917 b, _ := json.Marshal(r) 6918 return string(b) 6919} 6920 6921// FromJsonString It is highly **NOT** recommended to use this function 6922// because it has no param check, nor strict type check 6923func (r *DescribeSubAppIdsResponse) FromJsonString(s string) error { 6924 return json.Unmarshal([]byte(s), &r) 6925} 6926 6927type DescribeSuperPlayerConfigsRequest struct { 6928 *tchttp.BaseRequest 6929 6930 // 播放器配置名字过滤条件,数组长度限制:100。 6931 Names []*string `json:"Names,omitempty" name:"Names"` 6932 6933 // 分页偏移量,默认值:0。 6934 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 6935 6936 // 返回记录条数,默认值:10,最大值:100。 6937 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 6938 6939 // 播放器配置类型过滤条件,可选值: 6940 // <li>Preset:系统预置配置;</li> 6941 // <li>Custom:用户自定义配置。</li> 6942 Type *string `json:"Type,omitempty" name:"Type"` 6943 6944 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 6945 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 6946} 6947 6948func (r *DescribeSuperPlayerConfigsRequest) ToJsonString() string { 6949 b, _ := json.Marshal(r) 6950 return string(b) 6951} 6952 6953// FromJsonString It is highly **NOT** recommended to use this function 6954// because it has no param check, nor strict type check 6955func (r *DescribeSuperPlayerConfigsRequest) FromJsonString(s string) error { 6956 f := make(map[string]interface{}) 6957 if err := json.Unmarshal([]byte(s), &f); err != nil { 6958 return err 6959 } 6960 delete(f, "Names") 6961 delete(f, "Offset") 6962 delete(f, "Limit") 6963 delete(f, "Type") 6964 delete(f, "SubAppId") 6965 if len(f) > 0 { 6966 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSuperPlayerConfigsRequest has unknown keys!", "") 6967 } 6968 return json.Unmarshal([]byte(s), &r) 6969} 6970 6971type DescribeSuperPlayerConfigsResponse struct { 6972 *tchttp.BaseResponse 6973 Response *struct { 6974 6975 // 符合过滤条件的记录总数。 6976 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 6977 6978 // 播放器配置数组。 6979 PlayerConfigSet []*PlayerConfig `json:"PlayerConfigSet,omitempty" name:"PlayerConfigSet"` 6980 6981 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 6982 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 6983 } `json:"Response"` 6984} 6985 6986func (r *DescribeSuperPlayerConfigsResponse) ToJsonString() string { 6987 b, _ := json.Marshal(r) 6988 return string(b) 6989} 6990 6991// FromJsonString It is highly **NOT** recommended to use this function 6992// because it has no param check, nor strict type check 6993func (r *DescribeSuperPlayerConfigsResponse) FromJsonString(s string) error { 6994 return json.Unmarshal([]byte(s), &r) 6995} 6996 6997type DescribeTaskDetailRequest struct { 6998 *tchttp.BaseRequest 6999 7000 // 视频处理任务的任务 ID。 7001 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 7002 7003 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7004 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7005} 7006 7007func (r *DescribeTaskDetailRequest) ToJsonString() string { 7008 b, _ := json.Marshal(r) 7009 return string(b) 7010} 7011 7012// FromJsonString It is highly **NOT** recommended to use this function 7013// because it has no param check, nor strict type check 7014func (r *DescribeTaskDetailRequest) FromJsonString(s string) error { 7015 f := make(map[string]interface{}) 7016 if err := json.Unmarshal([]byte(s), &f); err != nil { 7017 return err 7018 } 7019 delete(f, "TaskId") 7020 delete(f, "SubAppId") 7021 if len(f) > 0 { 7022 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTaskDetailRequest has unknown keys!", "") 7023 } 7024 return json.Unmarshal([]byte(s), &r) 7025} 7026 7027type DescribeTaskDetailResponse struct { 7028 *tchttp.BaseResponse 7029 Response *struct { 7030 7031 // 任务类型,取值: 7032 // <li>Procedure:视频处理任务;</li> 7033 // <li>EditMedia:视频编辑任务;</li> 7034 // <li>SplitMedia:视频拆条任务;</li> 7035 // <li>ComposeMedia:制作媒体文件任务;</li> 7036 // <li>WechatPublish:微信发布任务;</li> 7037 // <li>WechatMiniProgramPublish:微信小程序视频发布任务;</li> 7038 // <li>PullUpload:拉取上传媒体文件任务。</li> 7039 // 7040 // 兼容 2017 版的任务类型: 7041 // <li>Transcode:视频转码任务;</li> 7042 // <li>SnapshotByTimeOffset:视频截图任务;</li> 7043 // <li>Concat:视频拼接任务;</li> 7044 // <li>Clip:视频剪辑任务;</li> 7045 // <li>ImageSprites:截取雪碧图任务。</li> 7046 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 7047 7048 // 任务状态,取值: 7049 // <li>WAITING:等待中;</li> 7050 // <li>PROCESSING:处理中;</li> 7051 // <li>FINISH:已完成。</li> 7052 Status *string `json:"Status,omitempty" name:"Status"` 7053 7054 // 任务的创建时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 7055 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 7056 7057 // 任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 7058 BeginProcessTime *string `json:"BeginProcessTime,omitempty" name:"BeginProcessTime"` 7059 7060 // 任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 7061 FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` 7062 7063 // 视频处理任务信息,仅当 TaskType 为 Procedure,该字段有值。 7064 // 注意:此字段可能返回 null,表示取不到有效值。 7065 ProcedureTask *ProcedureTask `json:"ProcedureTask,omitempty" name:"ProcedureTask"` 7066 7067 // 视频编辑任务信息,仅当 TaskType 为 EditMedia,该字段有值。 7068 // 注意:此字段可能返回 null,表示取不到有效值。 7069 EditMediaTask *EditMediaTask `json:"EditMediaTask,omitempty" name:"EditMediaTask"` 7070 7071 // 微信发布任务信息,仅当 TaskType 为 WechatPublish,该字段有值。 7072 // 注意:此字段可能返回 null,表示取不到有效值。 7073 WechatPublishTask *WechatPublishTask `json:"WechatPublishTask,omitempty" name:"WechatPublishTask"` 7074 7075 // 制作媒体文件任务信息,仅当 TaskType 为 ComposeMedia,该字段有值。 7076 // 注意:此字段可能返回 null,表示取不到有效值。 7077 ComposeMediaTask *ComposeMediaTask `json:"ComposeMediaTask,omitempty" name:"ComposeMediaTask"` 7078 7079 // 视频拆条任务信息,仅当 TaskType 为 SplitMedia,该字段有值。 7080 // 注意:此字段可能返回 null,表示取不到有效值。 7081 SplitMediaTask *SplitMediaTask `json:"SplitMediaTask,omitempty" name:"SplitMediaTask"` 7082 7083 // 微信小程序发布任务信息,仅当 TaskType 为 WechatMiniProgramPublish,该字段有值。 7084 // 注意:此字段可能返回 null,表示取不到有效值。 7085 WechatMiniProgramPublishTask *WechatMiniProgramPublishTask `json:"WechatMiniProgramPublishTask,omitempty" name:"WechatMiniProgramPublishTask"` 7086 7087 // 拉取上传媒体文件任务信息,仅当 TaskType 为 PullUpload,该字段有值。 7088 // 注意:此字段可能返回 null,表示取不到有效值。 7089 PullUploadTask *PullUploadTask `json:"PullUploadTask,omitempty" name:"PullUploadTask"` 7090 7091 // 视频转码任务信息,仅当 TaskType 为 Transcode,该字段有值。 7092 // 注意:此字段可能返回 null,表示取不到有效值。 7093 TranscodeTask *TranscodeTask2017 `json:"TranscodeTask,omitempty" name:"TranscodeTask"` 7094 7095 // 视频拼接任务信息,仅当 TaskType 为 Concat,该字段有值。 7096 // 注意:此字段可能返回 null,表示取不到有效值。 7097 ConcatTask *ConcatTask2017 `json:"ConcatTask,omitempty" name:"ConcatTask"` 7098 7099 // 视频剪辑任务信息,仅当 TaskType 为 Clip,该字段有值。 7100 // 注意:此字段可能返回 null,表示取不到有效值。 7101 ClipTask *ClipTask2017 `json:"ClipTask,omitempty" name:"ClipTask"` 7102 7103 // 截取雪碧图任务信息,仅当 TaskType 为 ImageSprite,该字段有值。 7104 // 注意:此字段可能返回 null,表示取不到有效值。 7105 CreateImageSpriteTask *CreateImageSpriteTask2017 `json:"CreateImageSpriteTask,omitempty" name:"CreateImageSpriteTask"` 7106 7107 // 视频指定时间点截图任务信息,仅当 TaskType 为 SnapshotByTimeOffset,该字段有值。 7108 // 注意:此字段可能返回 null,表示取不到有效值。 7109 SnapshotByTimeOffsetTask *SnapshotByTimeOffsetTask2017 `json:"SnapshotByTimeOffsetTask,omitempty" name:"SnapshotByTimeOffsetTask"` 7110 7111 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7112 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7113 } `json:"Response"` 7114} 7115 7116func (r *DescribeTaskDetailResponse) ToJsonString() string { 7117 b, _ := json.Marshal(r) 7118 return string(b) 7119} 7120 7121// FromJsonString It is highly **NOT** recommended to use this function 7122// because it has no param check, nor strict type check 7123func (r *DescribeTaskDetailResponse) FromJsonString(s string) error { 7124 return json.Unmarshal([]byte(s), &r) 7125} 7126 7127type DescribeTasksRequest struct { 7128 *tchttp.BaseRequest 7129 7130 // 过滤条件:任务状态,可选值:WAITING(等待中)、PROCESSING(处理中)、FINISH(已完成)。 7131 Status *string `json:"Status,omitempty" name:"Status"` 7132 7133 // 过滤条件:文件 ID。 7134 FileId *string `json:"FileId,omitempty" name:"FileId"` 7135 7136 // 过滤条件:任务创建时间。 7137 CreateTime *TimeRange `json:"CreateTime,omitempty" name:"CreateTime"` 7138 7139 // 过滤条件:任务结束时间。 7140 FinishTime *TimeRange `json:"FinishTime,omitempty" name:"FinishTime"` 7141 7142 // 排序方式。Sort.Field 可选: 7143 // <li> CreateTime 任务创建时间。</li> 7144 // <li>FinishTime 任务结束时间。</li> 7145 Sort *SortBy `json:"Sort,omitempty" name:"Sort"` 7146 7147 // 返回记录条数,默认值:10,最大值:100。 7148 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 7149 7150 // 翻页标识,分批拉取时使用:当单次请求无法拉取所有数据,接口将会返回 ScrollToken,下一次请求携带该 Token,将会从下一条记录开始获取。 7151 ScrollToken *string `json:"ScrollToken,omitempty" name:"ScrollToken"` 7152 7153 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7154 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7155} 7156 7157func (r *DescribeTasksRequest) ToJsonString() string { 7158 b, _ := json.Marshal(r) 7159 return string(b) 7160} 7161 7162// FromJsonString It is highly **NOT** recommended to use this function 7163// because it has no param check, nor strict type check 7164func (r *DescribeTasksRequest) FromJsonString(s string) error { 7165 f := make(map[string]interface{}) 7166 if err := json.Unmarshal([]byte(s), &f); err != nil { 7167 return err 7168 } 7169 delete(f, "Status") 7170 delete(f, "FileId") 7171 delete(f, "CreateTime") 7172 delete(f, "FinishTime") 7173 delete(f, "Sort") 7174 delete(f, "Limit") 7175 delete(f, "ScrollToken") 7176 delete(f, "SubAppId") 7177 if len(f) > 0 { 7178 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTasksRequest has unknown keys!", "") 7179 } 7180 return json.Unmarshal([]byte(s), &r) 7181} 7182 7183type DescribeTasksResponse struct { 7184 *tchttp.BaseResponse 7185 Response *struct { 7186 7187 // 任务概要列表。 7188 TaskSet []*TaskSimpleInfo `json:"TaskSet,omitempty" name:"TaskSet"` 7189 7190 // 翻页标识,当请求未返回所有数据,该字段表示下一条记录的 ID。当该字段为空,说明已无更多数据。 7191 ScrollToken *string `json:"ScrollToken,omitempty" name:"ScrollToken"` 7192 7193 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7194 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7195 } `json:"Response"` 7196} 7197 7198func (r *DescribeTasksResponse) ToJsonString() string { 7199 b, _ := json.Marshal(r) 7200 return string(b) 7201} 7202 7203// FromJsonString It is highly **NOT** recommended to use this function 7204// because it has no param check, nor strict type check 7205func (r *DescribeTasksResponse) FromJsonString(s string) error { 7206 return json.Unmarshal([]byte(s), &r) 7207} 7208 7209type DescribeTranscodeTemplatesRequest struct { 7210 *tchttp.BaseRequest 7211 7212 // 转码模板唯一标识过滤条件,数组长度限制:100。 7213 Definitions []*int64 `json:"Definitions,omitempty" name:"Definitions"` 7214 7215 // 模板类型过滤条件,可选值: 7216 // <li>Preset:系统预置模板;</li> 7217 // <li>Custom:用户自定义模板。</li> 7218 Type *string `json:"Type,omitempty" name:"Type"` 7219 7220 // 封装格式过滤条件,可选值: 7221 // <li>Video:视频格式,可以同时包含视频流和音频流的封装格式板;</li> 7222 // <li>PureAudio:纯音频格式,只能包含音频流的封装格式。</li> 7223 ContainerType *string `json:"ContainerType,omitempty" name:"ContainerType"` 7224 7225 // 极速高清过滤条件,用于过滤普通转码或极速高清转码模板,可选值: 7226 // <li>Common:普通转码模板;</li> 7227 // <li>TEHD:极速高清模板。</li> 7228 TEHDType *string `json:"TEHDType,omitempty" name:"TEHDType"` 7229 7230 // 分页偏移量,默认值:0。 7231 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 7232 7233 // 返回记录条数,默认值:10,最大值:100。 7234 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 7235 7236 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7237 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7238} 7239 7240func (r *DescribeTranscodeTemplatesRequest) ToJsonString() string { 7241 b, _ := json.Marshal(r) 7242 return string(b) 7243} 7244 7245// FromJsonString It is highly **NOT** recommended to use this function 7246// because it has no param check, nor strict type check 7247func (r *DescribeTranscodeTemplatesRequest) FromJsonString(s string) error { 7248 f := make(map[string]interface{}) 7249 if err := json.Unmarshal([]byte(s), &f); err != nil { 7250 return err 7251 } 7252 delete(f, "Definitions") 7253 delete(f, "Type") 7254 delete(f, "ContainerType") 7255 delete(f, "TEHDType") 7256 delete(f, "Offset") 7257 delete(f, "Limit") 7258 delete(f, "SubAppId") 7259 if len(f) > 0 { 7260 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTranscodeTemplatesRequest has unknown keys!", "") 7261 } 7262 return json.Unmarshal([]byte(s), &r) 7263} 7264 7265type DescribeTranscodeTemplatesResponse struct { 7266 *tchttp.BaseResponse 7267 Response *struct { 7268 7269 // 符合过滤条件的记录总数。 7270 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 7271 7272 // 转码模板详情列表。 7273 // 注意:此字段可能返回 null,表示取不到有效值。 7274 TranscodeTemplateSet []*TranscodeTemplate `json:"TranscodeTemplateSet,omitempty" name:"TranscodeTemplateSet"` 7275 7276 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7277 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7278 } `json:"Response"` 7279} 7280 7281func (r *DescribeTranscodeTemplatesResponse) ToJsonString() string { 7282 b, _ := json.Marshal(r) 7283 return string(b) 7284} 7285 7286// FromJsonString It is highly **NOT** recommended to use this function 7287// because it has no param check, nor strict type check 7288func (r *DescribeTranscodeTemplatesResponse) FromJsonString(s string) error { 7289 return json.Unmarshal([]byte(s), &r) 7290} 7291 7292type DescribeVodDomainsRequest struct { 7293 *tchttp.BaseRequest 7294 7295 // 域名列表。当该字段不填时,则默认列出所有域名信息。本字段字段限制如下: 7296 // <li>域名个数度最大为 20。</li> 7297 Domains []*string `json:"Domains,omitempty" name:"Domains"` 7298 7299 // 分页拉取的最大返回结果数。默认值:20。 7300 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 7301 7302 // 分页拉取的起始偏移量。默认值:0。 7303 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 7304 7305 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7306 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7307} 7308 7309func (r *DescribeVodDomainsRequest) ToJsonString() string { 7310 b, _ := json.Marshal(r) 7311 return string(b) 7312} 7313 7314// FromJsonString It is highly **NOT** recommended to use this function 7315// because it has no param check, nor strict type check 7316func (r *DescribeVodDomainsRequest) FromJsonString(s string) error { 7317 f := make(map[string]interface{}) 7318 if err := json.Unmarshal([]byte(s), &f); err != nil { 7319 return err 7320 } 7321 delete(f, "Domains") 7322 delete(f, "Limit") 7323 delete(f, "Offset") 7324 delete(f, "SubAppId") 7325 if len(f) > 0 { 7326 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVodDomainsRequest has unknown keys!", "") 7327 } 7328 return json.Unmarshal([]byte(s), &r) 7329} 7330 7331type DescribeVodDomainsResponse struct { 7332 *tchttp.BaseResponse 7333 Response *struct { 7334 7335 // 域名总数量。 7336 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 7337 7338 // 域名信息列表。 7339 DomainSet []*DomainDetailInfo `json:"DomainSet,omitempty" name:"DomainSet"` 7340 7341 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7342 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7343 } `json:"Response"` 7344} 7345 7346func (r *DescribeVodDomainsResponse) ToJsonString() string { 7347 b, _ := json.Marshal(r) 7348 return string(b) 7349} 7350 7351// FromJsonString It is highly **NOT** recommended to use this function 7352// because it has no param check, nor strict type check 7353func (r *DescribeVodDomainsResponse) FromJsonString(s string) error { 7354 return json.Unmarshal([]byte(s), &r) 7355} 7356 7357type DescribeWatermarkTemplatesRequest struct { 7358 *tchttp.BaseRequest 7359 7360 // 水印模板唯一标识过滤条件,数组长度限制:100。 7361 Definitions []*int64 `json:"Definitions,omitempty" name:"Definitions"` 7362 7363 // 水印类型过滤条件,可选值: 7364 // <li>image:图片水印;</li> 7365 // <li>text:文字水印;</li> 7366 // <li>svg:SVG 水印。</li> 7367 Type *string `json:"Type,omitempty" name:"Type"` 7368 7369 // 分页偏移量,默认值:0。 7370 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 7371 7372 // 返回记录条数 7373 // <li>默认值:10;</li> 7374 // <li>最大值:100。</li> 7375 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 7376 7377 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7378 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7379} 7380 7381func (r *DescribeWatermarkTemplatesRequest) ToJsonString() string { 7382 b, _ := json.Marshal(r) 7383 return string(b) 7384} 7385 7386// FromJsonString It is highly **NOT** recommended to use this function 7387// because it has no param check, nor strict type check 7388func (r *DescribeWatermarkTemplatesRequest) FromJsonString(s string) error { 7389 f := make(map[string]interface{}) 7390 if err := json.Unmarshal([]byte(s), &f); err != nil { 7391 return err 7392 } 7393 delete(f, "Definitions") 7394 delete(f, "Type") 7395 delete(f, "Offset") 7396 delete(f, "Limit") 7397 delete(f, "SubAppId") 7398 if len(f) > 0 { 7399 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeWatermarkTemplatesRequest has unknown keys!", "") 7400 } 7401 return json.Unmarshal([]byte(s), &r) 7402} 7403 7404type DescribeWatermarkTemplatesResponse struct { 7405 *tchttp.BaseResponse 7406 Response *struct { 7407 7408 // 符合过滤条件的记录总数。 7409 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 7410 7411 // 水印模板详情列表。 7412 // 注意:此字段可能返回 null,表示取不到有效值。 7413 WatermarkTemplateSet []*WatermarkTemplate `json:"WatermarkTemplateSet,omitempty" name:"WatermarkTemplateSet"` 7414 7415 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7416 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7417 } `json:"Response"` 7418} 7419 7420func (r *DescribeWatermarkTemplatesResponse) ToJsonString() string { 7421 b, _ := json.Marshal(r) 7422 return string(b) 7423} 7424 7425// FromJsonString It is highly **NOT** recommended to use this function 7426// because it has no param check, nor strict type check 7427func (r *DescribeWatermarkTemplatesResponse) FromJsonString(s string) error { 7428 return json.Unmarshal([]byte(s), &r) 7429} 7430 7431type DescribeWordSamplesRequest struct { 7432 *tchttp.BaseRequest 7433 7434 // <b>关键词应用场景过滤条件,可选值:</b> 7435 // 1. Recognition.Ocr:通过光学字符识别技术,进行内容识别; 7436 // 2. Recognition.Asr:通过音频识别技术,进行内容识别; 7437 // 3. Review.Ocr:通过光学字符识别技术,进行不适宜的内容识别; 7438 // 4. Review.Asr:通过音频识别技术,进行不适宜的内容识别; 7439 // <b>可合并简写为:</b> 7440 // 5. Recognition:通过光学字符识别技术、音频识别技术,进行内容识别,等价于 1+2; 7441 // 6. Review:通过光学字符识别技术、音频识别技术,进行不适宜的内容识别,等价于 3+4; 7442 // 可多选,元素间关系为 or,即关键词的应用场景包含该字段集合中任意元素的记录,均符合该条件。 7443 Usages []*string `json:"Usages,omitempty" name:"Usages"` 7444 7445 // 关键词过滤条件,数组长度限制:100 个词。 7446 Keywords []*string `json:"Keywords,omitempty" name:"Keywords"` 7447 7448 // 标签过滤条件,数组长度限制:20 个词。 7449 Tags []*string `json:"Tags,omitempty" name:"Tags"` 7450 7451 // 分页偏移量,默认值:0。 7452 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 7453 7454 // 返回记录条数,默认值:100,最大值:100。 7455 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 7456 7457 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7458 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7459} 7460 7461func (r *DescribeWordSamplesRequest) ToJsonString() string { 7462 b, _ := json.Marshal(r) 7463 return string(b) 7464} 7465 7466// FromJsonString It is highly **NOT** recommended to use this function 7467// because it has no param check, nor strict type check 7468func (r *DescribeWordSamplesRequest) FromJsonString(s string) error { 7469 f := make(map[string]interface{}) 7470 if err := json.Unmarshal([]byte(s), &f); err != nil { 7471 return err 7472 } 7473 delete(f, "Usages") 7474 delete(f, "Keywords") 7475 delete(f, "Tags") 7476 delete(f, "Offset") 7477 delete(f, "Limit") 7478 delete(f, "SubAppId") 7479 if len(f) > 0 { 7480 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeWordSamplesRequest has unknown keys!", "") 7481 } 7482 return json.Unmarshal([]byte(s), &r) 7483} 7484 7485type DescribeWordSamplesResponse struct { 7486 *tchttp.BaseResponse 7487 Response *struct { 7488 7489 // 符合条件的记录总数。 7490 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 7491 7492 // 关键词信息。 7493 WordSet []*AiSampleWord `json:"WordSet,omitempty" name:"WordSet"` 7494 7495 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7496 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7497 } `json:"Response"` 7498} 7499 7500func (r *DescribeWordSamplesResponse) ToJsonString() string { 7501 b, _ := json.Marshal(r) 7502 return string(b) 7503} 7504 7505// FromJsonString It is highly **NOT** recommended to use this function 7506// because it has no param check, nor strict type check 7507func (r *DescribeWordSamplesResponse) FromJsonString(s string) error { 7508 return json.Unmarshal([]byte(s), &r) 7509} 7510 7511type DomainDetailInfo struct { 7512 7513 // 域名名称。 7514 Domain *string `json:"Domain,omitempty" name:"Domain"` 7515 7516 // 加速地区信息。 7517 // 注意:此字段可能返回 null,表示取不到有效值。 7518 AccelerateAreaInfos []*AccelerateAreaInfo `json:"AccelerateAreaInfos,omitempty" name:"AccelerateAreaInfos"` 7519 7520 // 部署状态,取值有: 7521 // <li>Online:上线;</li> 7522 // <li>Deploying:部署中;</li> 7523 // <li>Locked: 锁定中,出现该状态时,无法对该域名进行部署变更。</li> 7524 DeployStatus *string `json:"DeployStatus,omitempty" name:"DeployStatus"` 7525 7526 // HTTPS 配置信息。 7527 // 注意:此字段可能返回 null,表示取不到有效值。 7528 HTTPSConfig *DomainHTTPSConfig `json:"HTTPSConfig,omitempty" name:"HTTPSConfig"` 7529 7530 // [Key 防盗链](https://cloud.tencent.com/document/product/266/14047)配置信息。 7531 // 注意:此字段可能返回 null,表示取不到有效值。 7532 UrlSignatureAuthPolicy *UrlSignatureAuthPolicy `json:"UrlSignatureAuthPolicy,omitempty" name:"UrlSignatureAuthPolicy"` 7533 7534 // [Referer 防盗链](https://cloud.tencent.com/document/product/266/14046)配置信息。 7535 // 注意:此字段可能返回 null,表示取不到有效值。 7536 RefererAuthPolicy *RefererAuthPolicy `json:"RefererAuthPolicy,omitempty" name:"RefererAuthPolicy"` 7537 7538 // 域名添加到腾讯云点播系统中的时间。 7539 // <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。</li> 7540 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 7541} 7542 7543type DomainHTTPSConfig struct { 7544 7545 // 证书过期时间。 7546 // <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。</li> 7547 CertExpireTime *string `json:"CertExpireTime,omitempty" name:"CertExpireTime"` 7548} 7549 7550type DrmStreamingsInfo struct { 7551 7552 // 保护类型为 SimpleAES 的转自适应码流模板 ID。 7553 SimpleAesDefinition *uint64 `json:"SimpleAesDefinition,omitempty" name:"SimpleAesDefinition"` 7554} 7555 7556type DrmStreamingsInfoForUpdate struct { 7557 7558 // 保护类型为 SimpleAES 的转自适应码流模板 ID。 7559 SimpleAesDefinition *uint64 `json:"SimpleAesDefinition,omitempty" name:"SimpleAesDefinition"` 7560} 7561 7562type EditMediaFileInfo struct { 7563 7564 // 视频的 ID。 7565 FileId *string `json:"FileId,omitempty" name:"FileId"` 7566 7567 // 视频剪辑的起始偏移时间偏移,单位:秒。 7568 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 7569 7570 // 视频剪辑的起始结束时间偏移,单位:秒。 7571 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 7572} 7573 7574type EditMediaOutputConfig struct { 7575 7576 // 输出文件名,最长 64 个字符。缺省由系统指定生成文件名。 7577 MediaName *string `json:"MediaName,omitempty" name:"MediaName"` 7578 7579 // 输出文件格式,可选值:mp4、hls。默认是 mp4。 7580 Type *string `json:"Type,omitempty" name:"Type"` 7581 7582 // 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。 7583 // <li>默认值:0,表示其他分类。</li> 7584 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 7585 7586 // 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 7587 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 7588} 7589 7590type EditMediaRequest struct { 7591 *tchttp.BaseRequest 7592 7593 // 输入视频的类型,可以取的值为 File,Stream 两种。 7594 InputType *string `json:"InputType,omitempty" name:"InputType"` 7595 7596 // 输入的视频文件信息,当 InputType 为 File 时必填。 7597 FileInfos []*EditMediaFileInfo `json:"FileInfos,omitempty" name:"FileInfos"` 7598 7599 // 输入的流信息,当 InputType 为 Stream 时必填。 7600 StreamInfos []*EditMediaStreamInfo `json:"StreamInfos,omitempty" name:"StreamInfos"` 7601 7602 // 编辑模板 ID,取值有 10,20,不填代表使用 10 模板。 7603 // <li>10:拼接时,以分辨率最高的输入为基准;</li> 7604 // <li>20:拼接时,以码率最高的输入为基准;</li> 7605 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 7606 7607 // [任务流模板](/document/product/266/11700#.E4.BB.BB.E5.8A.A1.E6.B5.81.E6.A8.A1.E6.9D.BF)名字,如果要对生成的新视频执行任务流时填写。 7608 ProcedureName *string `json:"ProcedureName,omitempty" name:"ProcedureName"` 7609 7610 // 编辑后生成的文件配置。 7611 OutputConfig *EditMediaOutputConfig `json:"OutputConfig,omitempty" name:"OutputConfig"` 7612 7613 // 标识来源上下文,用于透传用户请求信息,在EditMediaComplete回调和任务流状态变更回调将返回该字段值,最长 1000个字符。 7614 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 7615 7616 // 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。 7617 TasksPriority *int64 `json:"TasksPriority,omitempty" name:"TasksPriority"` 7618 7619 // 用于任务去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 7620 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 7621 7622 // 保留字段,特殊用途时使用。 7623 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 7624 7625 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7626 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7627} 7628 7629func (r *EditMediaRequest) ToJsonString() string { 7630 b, _ := json.Marshal(r) 7631 return string(b) 7632} 7633 7634// FromJsonString It is highly **NOT** recommended to use this function 7635// because it has no param check, nor strict type check 7636func (r *EditMediaRequest) FromJsonString(s string) error { 7637 f := make(map[string]interface{}) 7638 if err := json.Unmarshal([]byte(s), &f); err != nil { 7639 return err 7640 } 7641 delete(f, "InputType") 7642 delete(f, "FileInfos") 7643 delete(f, "StreamInfos") 7644 delete(f, "Definition") 7645 delete(f, "ProcedureName") 7646 delete(f, "OutputConfig") 7647 delete(f, "SessionContext") 7648 delete(f, "TasksPriority") 7649 delete(f, "SessionId") 7650 delete(f, "ExtInfo") 7651 delete(f, "SubAppId") 7652 if len(f) > 0 { 7653 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EditMediaRequest has unknown keys!", "") 7654 } 7655 return json.Unmarshal([]byte(s), &r) 7656} 7657 7658type EditMediaResponse struct { 7659 *tchttp.BaseResponse 7660 Response *struct { 7661 7662 // 编辑视频的任务 ID,可以通过该 ID 查询编辑任务(任务类型为 EditMedia)的状态。 7663 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 7664 7665 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7666 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7667 } `json:"Response"` 7668} 7669 7670func (r *EditMediaResponse) ToJsonString() string { 7671 b, _ := json.Marshal(r) 7672 return string(b) 7673} 7674 7675// FromJsonString It is highly **NOT** recommended to use this function 7676// because it has no param check, nor strict type check 7677func (r *EditMediaResponse) FromJsonString(s string) error { 7678 return json.Unmarshal([]byte(s), &r) 7679} 7680 7681type EditMediaStreamInfo struct { 7682 7683 // 录制的流 ID 7684 StreamId *string `json:"StreamId,omitempty" name:"StreamId"` 7685 7686 // 流剪辑的起始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 7687 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 7688 7689 // 流剪辑的结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 7690 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 7691} 7692 7693type EditMediaTask struct { 7694 7695 // 任务 ID。 7696 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 7697 7698 // 任务流状态,取值: 7699 // <li>PROCESSING:处理中;</li> 7700 // <li>FINISH:已完成。</li> 7701 Status *string `json:"Status,omitempty" name:"Status"` 7702 7703 // 错误码,0 表示成功,其他值表示失败: 7704 // <li>40000:输入参数不合法,请检查输入参数;</li> 7705 // <li>60000:源文件错误(如视频数据损坏),请确认源文件是否正常;</li> 7706 // <li>70000:内部服务错误,建议重试。</li> 7707 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 7708 7709 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 7710 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 7711 7712 // 错误信息。 7713 Message *string `json:"Message,omitempty" name:"Message"` 7714 7715 // 视频编辑任务的输入。 7716 // 注意:此字段可能返回 null,表示取不到有效值。 7717 Input *EditMediaTaskInput `json:"Input,omitempty" name:"Input"` 7718 7719 // 视频编辑任务的输出。 7720 // 注意:此字段可能返回 null,表示取不到有效值。 7721 Output *EditMediaTaskOutput `json:"Output,omitempty" name:"Output"` 7722 7723 // 若发起视频编辑任务时指定了视频处理流程,则该字段为流程任务 ID。 7724 ProcedureTaskId *string `json:"ProcedureTaskId,omitempty" name:"ProcedureTaskId"` 7725 7726 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 7727 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 7728 7729 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 7730 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 7731 7732 // 原始视频的元信息。 7733 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 7734} 7735 7736type EditMediaTaskInput struct { 7737 7738 // 输入视频的来源类型,可以取的值为 File,Stream 两种。 7739 InputType *string `json:"InputType,omitempty" name:"InputType"` 7740 7741 // 输入的视频文件信息,当 InputType 为 File 时,该字段有值。 7742 FileInfoSet []*EditMediaFileInfo `json:"FileInfoSet,omitempty" name:"FileInfoSet"` 7743 7744 // 输入的流信息,当 InputType 为 Stream 时,该字段有值。 7745 StreamInfoSet []*EditMediaStreamInfo `json:"StreamInfoSet,omitempty" name:"StreamInfoSet"` 7746} 7747 7748type EditMediaTaskOutput struct { 7749 7750 // 文件类型,例如 mp4、flv 等。 7751 FileType *string `json:"FileType,omitempty" name:"FileType"` 7752 7753 // 媒体文件播放地址。 7754 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` 7755 7756 // 媒体文件 ID。 7757 FileId *string `json:"FileId,omitempty" name:"FileId"` 7758 7759 // 输出文件名,最长 64 个字符。缺省由系统指定生成文件名。 7760 MediaName *string `json:"MediaName,omitempty" name:"MediaName"` 7761 7762 // 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。 7763 // <li>默认值:0,表示其他分类。</li> 7764 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 7765 7766 // 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 7767 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 7768} 7769 7770type EmptyTrackItem struct { 7771 7772 // 持续时间,单位为秒。 7773 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 7774} 7775 7776type EventContent struct { 7777 7778 // 事件句柄,调用方必须调用 ConfirmEvents 来确认消息已经收到,确认有效时间 30 秒。失效后,事件可重新被获取。 7779 EventHandle *string `json:"EventHandle,omitempty" name:"EventHandle"` 7780 7781 // <b>支持事件类型:</b> 7782 // <li>NewFileUpload:视频上传完成;</li> 7783 // <li>ProcedureStateChanged:任务流状态变更;</li> 7784 // <li>FileDeleted:视频删除完成;</li> 7785 // <li>PullComplete:视频转拉完成;</li> 7786 // <li>EditMediaComplete:视频编辑完成;</li> 7787 // <li>SplitMediaComplete:视频拆分完成;</li> 7788 // <li>WechatPublishComplete:微信发布完成;</li> 7789 // <li>ComposeMediaComplete:制作媒体文件完成;</li> 7790 // <li>WechatMiniProgramPublishComplete:微信小程序发布完成。</li> 7791 // <b>兼容 2017 版的事件类型:</b> 7792 // <li>TranscodeComplete:视频转码完成;</li> 7793 // <li>ConcatComplete:视频拼接完成;</li> 7794 // <li>ClipComplete:视频剪辑完成;</li> 7795 // <li>CreateImageSpriteComplete:视频截取雪碧图完成;</li> 7796 // <li>CreateSnapshotByTimeOffsetComplete:视频按时间点截图完成。</li> 7797 EventType *string `json:"EventType,omitempty" name:"EventType"` 7798 7799 // 视频上传完成事件,当事件类型为 NewFileUpload 时有效。 7800 // 注意:此字段可能返回 null,表示取不到有效值。 7801 FileUploadEvent *FileUploadTask `json:"FileUploadEvent,omitempty" name:"FileUploadEvent"` 7802 7803 // 任务流状态变更事件,当事件类型为 ProcedureStateChanged 时有效。 7804 // 注意:此字段可能返回 null,表示取不到有效值。 7805 ProcedureStateChangeEvent *ProcedureTask `json:"ProcedureStateChangeEvent,omitempty" name:"ProcedureStateChangeEvent"` 7806 7807 // 文件删除事件,当事件类型为 FileDeleted 时有效。 7808 // 注意:此字段可能返回 null,表示取不到有效值。 7809 FileDeleteEvent *FileDeleteTask `json:"FileDeleteEvent,omitempty" name:"FileDeleteEvent"` 7810 7811 // 视频转拉完成事件,当事件类型为 PullComplete 时有效。 7812 // 注意:此字段可能返回 null,表示取不到有效值。 7813 PullCompleteEvent *PullUploadTask `json:"PullCompleteEvent,omitempty" name:"PullCompleteEvent"` 7814 7815 // 视频编辑完成事件,当事件类型为 EditMediaComplete 时有效。 7816 // 注意:此字段可能返回 null,表示取不到有效值。 7817 EditMediaCompleteEvent *EditMediaTask `json:"EditMediaCompleteEvent,omitempty" name:"EditMediaCompleteEvent"` 7818 7819 // 视频拆条完成事件,当事件类型为 SplitMediaComplete 时有效。 7820 // 注意:此字段可能返回 null,表示取不到有效值。 7821 SplitMediaCompleteEvent *SplitMediaTask `json:"SplitMediaCompleteEvent,omitempty" name:"SplitMediaCompleteEvent"` 7822 7823 // 制作媒体文件任务完成事件,当事件类型为 ComposeMediaComplete 时有效。 7824 // 注意:此字段可能返回 null,表示取不到有效值。 7825 ComposeMediaCompleteEvent *ComposeMediaTask `json:"ComposeMediaCompleteEvent,omitempty" name:"ComposeMediaCompleteEvent"` 7826 7827 // 视频剪辑完成事件,当事件类型为 ClipComplete 时有效。 7828 // 注意:此字段可能返回 null,表示取不到有效值。 7829 ClipCompleteEvent *ClipTask2017 `json:"ClipCompleteEvent,omitempty" name:"ClipCompleteEvent"` 7830 7831 // 视频转码完成事件,当事件类型为 TranscodeComplete 时有效。 7832 // 注意:此字段可能返回 null,表示取不到有效值。 7833 TranscodeCompleteEvent *TranscodeTask2017 `json:"TranscodeCompleteEvent,omitempty" name:"TranscodeCompleteEvent"` 7834 7835 // 视频截取雪碧图完成事件,当事件类型为 CreateImageSpriteComplete 时有效。 7836 // 注意:此字段可能返回 null,表示取不到有效值。 7837 CreateImageSpriteCompleteEvent *CreateImageSpriteTask2017 `json:"CreateImageSpriteCompleteEvent,omitempty" name:"CreateImageSpriteCompleteEvent"` 7838 7839 // 视频拼接完成事件,当事件类型为 ConcatComplete 时有效。 7840 // 注意:此字段可能返回 null,表示取不到有效值。 7841 ConcatCompleteEvent *ConcatTask2017 `json:"ConcatCompleteEvent,omitempty" name:"ConcatCompleteEvent"` 7842 7843 // 视频按时间点截图完成事件,当事件类型为 CreateSnapshotByTimeOffsetComplete 时有效。 7844 // 注意:此字段可能返回 null,表示取不到有效值。 7845 SnapshotByTimeOffsetCompleteEvent *SnapshotByTimeOffsetTask2017 `json:"SnapshotByTimeOffsetCompleteEvent,omitempty" name:"SnapshotByTimeOffsetCompleteEvent"` 7846 7847 // 微信发布完成事件,当事件类型为 WechatPublishComplete 时有效。 7848 // 注意:此字段可能返回 null,表示取不到有效值。 7849 WechatPublishCompleteEvent *WechatPublishTask `json:"WechatPublishCompleteEvent,omitempty" name:"WechatPublishCompleteEvent"` 7850 7851 // 微信小程序发布任务完成事件,当事件类型为 WechatMiniProgramPublishComplete 时有效。 7852 // 注意:此字段可能返回 null,表示取不到有效值。 7853 WechatMiniProgramPublishCompleteEvent *WechatMiniProgramPublishTask `json:"WechatMiniProgramPublishCompleteEvent,omitempty" name:"WechatMiniProgramPublishCompleteEvent"` 7854} 7855 7856type ExecuteFunctionRequest struct { 7857 *tchttp.BaseRequest 7858 7859 // 调用后端接口名称。 7860 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 7861 7862 // 接口参数,具体参数格式调用时与后端协调。 7863 FunctionArg *string `json:"FunctionArg,omitempty" name:"FunctionArg"` 7864 7865 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 7866 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 7867 7868 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 7869 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 7870 7871 // 保留字段,特殊用途时使用。 7872 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 7873 7874 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 7875 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 7876} 7877 7878func (r *ExecuteFunctionRequest) ToJsonString() string { 7879 b, _ := json.Marshal(r) 7880 return string(b) 7881} 7882 7883// FromJsonString It is highly **NOT** recommended to use this function 7884// because it has no param check, nor strict type check 7885func (r *ExecuteFunctionRequest) FromJsonString(s string) error { 7886 f := make(map[string]interface{}) 7887 if err := json.Unmarshal([]byte(s), &f); err != nil { 7888 return err 7889 } 7890 delete(f, "FunctionName") 7891 delete(f, "FunctionArg") 7892 delete(f, "SessionContext") 7893 delete(f, "SessionId") 7894 delete(f, "ExtInfo") 7895 delete(f, "SubAppId") 7896 if len(f) > 0 { 7897 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ExecuteFunctionRequest has unknown keys!", "") 7898 } 7899 return json.Unmarshal([]byte(s), &r) 7900} 7901 7902type ExecuteFunctionResponse struct { 7903 *tchttp.BaseResponse 7904 Response *struct { 7905 7906 // 处理结果打包后的字符串,具体与后台一同协调。 7907 Result *string `json:"Result,omitempty" name:"Result"` 7908 7909 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 7910 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 7911 } `json:"Response"` 7912} 7913 7914func (r *ExecuteFunctionResponse) ToJsonString() string { 7915 b, _ := json.Marshal(r) 7916 return string(b) 7917} 7918 7919// FromJsonString It is highly **NOT** recommended to use this function 7920// because it has no param check, nor strict type check 7921func (r *ExecuteFunctionResponse) FromJsonString(s string) error { 7922 return json.Unmarshal([]byte(s), &r) 7923} 7924 7925type FaceConfigureInfo struct { 7926 7927 // 人脸识别任务开关,可选值: 7928 // <li>ON:开启智能人脸识别任务;</li> 7929 // <li>OFF:关闭智能人脸识别任务。</li> 7930 Switch *string `json:"Switch,omitempty" name:"Switch"` 7931 7932 // 人脸识别过滤分数,当识别结果达到该分数以上,返回识别结果。默认 95 分。取值范围:0 - 100。 7933 Score *float64 `json:"Score,omitempty" name:"Score"` 7934 7935 // 默认人物过滤标签,指定需要返回的默认人物的标签。如果未填或者为空,则全部默认人物结果都返回。标签可选值: 7936 // <li>entertainment:娱乐明星;</li> 7937 // <li>sport:体育明星;</li> 7938 // <li>politician:政治人物。</li> 7939 DefaultLibraryLabelSet []*string `json:"DefaultLibraryLabelSet,omitempty" name:"DefaultLibraryLabelSet"` 7940 7941 // 用户自定义人物过滤标签,指定需要返回的用户自定义人物的标签。如果未填或者为空,则全部自定义人物结果都返回。 7942 // 标签个数最多 100 个,每个标签长度最多 16 个字符。 7943 UserDefineLibraryLabelSet []*string `json:"UserDefineLibraryLabelSet,omitempty" name:"UserDefineLibraryLabelSet"` 7944 7945 // 人物库选择,可选值: 7946 // <li>Default:使用默认人物库;</li> 7947 // <li>UserDefine:使用用户自定义人物库。</li> 7948 // <li>All:同时使用默认人物库和用户自定义人物库。</li> 7949 // 默认值:All,使用系统默认人物库及用户自定义人物库。 7950 FaceLibrary *string `json:"FaceLibrary,omitempty" name:"FaceLibrary"` 7951} 7952 7953type FaceConfigureInfoForUpdate struct { 7954 7955 // 人脸识别任务开关,可选值: 7956 // <li>ON:开启智能人脸识别任务;</li> 7957 // <li>OFF:关闭智能人脸识别任务。</li> 7958 Switch *string `json:"Switch,omitempty" name:"Switch"` 7959 7960 // 人脸识别过滤分数,当识别结果达到该分数以上,返回识别结果。取值范围:0-100。 7961 Score *float64 `json:"Score,omitempty" name:"Score"` 7962 7963 // 默认人物过滤标签,指定需要返回的默认人物的标签。如果未填或者为空,则全部默认人物结果都返回。标签可选值: 7964 // <li>entertainment:娱乐明星;</li> 7965 // <li>sport:体育明星;</li> 7966 // <li>politician:政治人物。</li> 7967 DefaultLibraryLabelSet []*string `json:"DefaultLibraryLabelSet,omitempty" name:"DefaultLibraryLabelSet"` 7968 7969 // 用户自定义人物过滤标签,指定需要返回的用户自定义人物的标签。如果未填或者为空,则全部自定义人物结果都返回。 7970 // 标签个数最多 100 个,每个标签长度最多 16 个字符。 7971 UserDefineLibraryLabelSet []*string `json:"UserDefineLibraryLabelSet,omitempty" name:"UserDefineLibraryLabelSet"` 7972 7973 // 人物库选择,可选值: 7974 // <li>Default:使用默认人物库;</li> 7975 // <li>UserDefine:使用用户自定义人物库。</li> 7976 // <li>All:同时使用默认人物库和用户自定义人物库。</li> 7977 FaceLibrary *string `json:"FaceLibrary,omitempty" name:"FaceLibrary"` 7978} 7979 7980type FileDeleteTask struct { 7981 7982 // 删除文件 ID 列表。 7983 FileIdSet []*string `json:"FileIdSet,omitempty" name:"FileIdSet"` 7984} 7985 7986type FileUploadTask struct { 7987 7988 // 文件唯一 ID。 7989 FileId *string `json:"FileId,omitempty" name:"FileId"` 7990 7991 // 上传完成后生成的媒体文件基础信息。 7992 MediaBasicInfo *MediaBasicInfo `json:"MediaBasicInfo,omitempty" name:"MediaBasicInfo"` 7993 7994 // 若视频上传时指定了视频处理流程,则该字段为流程任务 ID。 7995 ProcedureTaskId *string `json:"ProcedureTaskId,omitempty" name:"ProcedureTaskId"` 7996 7997 // 元信息。包括大小、时长、视频流信息、音频流信息等。 7998 // 注意:此字段可能返回 null,表示取不到有效值。 7999 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 8000} 8001 8002type ForbidMediaDistributionRequest struct { 8003 *tchttp.BaseRequest 8004 8005 // 媒体文件列表,每次最多可提交 20 条。 8006 FileIds []*string `json:"FileIds,omitempty" name:"FileIds"` 8007 8008 // forbid:禁播,recover:解禁。 8009 Operation *string `json:"Operation,omitempty" name:"Operation"` 8010 8011 // 点播[子应用](/document/product/266/14574) ID 。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 8012 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 8013} 8014 8015func (r *ForbidMediaDistributionRequest) ToJsonString() string { 8016 b, _ := json.Marshal(r) 8017 return string(b) 8018} 8019 8020// FromJsonString It is highly **NOT** recommended to use this function 8021// because it has no param check, nor strict type check 8022func (r *ForbidMediaDistributionRequest) FromJsonString(s string) error { 8023 f := make(map[string]interface{}) 8024 if err := json.Unmarshal([]byte(s), &f); err != nil { 8025 return err 8026 } 8027 delete(f, "FileIds") 8028 delete(f, "Operation") 8029 delete(f, "SubAppId") 8030 if len(f) > 0 { 8031 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ForbidMediaDistributionRequest has unknown keys!", "") 8032 } 8033 return json.Unmarshal([]byte(s), &r) 8034} 8035 8036type ForbidMediaDistributionResponse struct { 8037 *tchttp.BaseResponse 8038 Response *struct { 8039 8040 // 不存在的文件 ID 列表。 8041 NotExistFileIdSet []*string `json:"NotExistFileIdSet,omitempty" name:"NotExistFileIdSet"` 8042 8043 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8044 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8045 } `json:"Response"` 8046} 8047 8048func (r *ForbidMediaDistributionResponse) ToJsonString() string { 8049 b, _ := json.Marshal(r) 8050 return string(b) 8051} 8052 8053// FromJsonString It is highly **NOT** recommended to use this function 8054// because it has no param check, nor strict type check 8055func (r *ForbidMediaDistributionResponse) FromJsonString(s string) error { 8056 return json.Unmarshal([]byte(s), &r) 8057} 8058 8059type FrameTagConfigureInfo struct { 8060 8061 // 智能按帧标签任务开关,可选值: 8062 // <li>ON:开启智能按帧标签任务;</li> 8063 // <li>OFF:关闭智能按帧标签任务。</li> 8064 Switch *string `json:"Switch,omitempty" name:"Switch"` 8065 8066 // 截帧间隔,单位为秒,当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。 8067 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 8068} 8069 8070type FrameTagConfigureInfoForUpdate struct { 8071 8072 // 智能按帧标签任务开关,可选值: 8073 // <li>ON:开启智能按帧标签任务;</li> 8074 // <li>OFF:关闭智能按帧标签任务。</li> 8075 Switch *string `json:"Switch,omitempty" name:"Switch"` 8076 8077 // 截帧间隔,单位为秒,最小值为 0.5 秒。 8078 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 8079} 8080 8081type HeadTailConfigureInfo struct { 8082 8083 // 视频片头片尾识别任务开关,可选值: 8084 // <li>ON:开启智能视频片头片尾识别任务;</li> 8085 // <li>OFF:关闭智能视频片头片尾识别任务。</li> 8086 Switch *string `json:"Switch,omitempty" name:"Switch"` 8087} 8088 8089type HeadTailConfigureInfoForUpdate struct { 8090 8091 // 视频片头片尾识别任务开关,可选值: 8092 // <li>ON:开启智能视频片头片尾识别任务;</li> 8093 // <li>OFF:关闭智能视频片头片尾识别任务。</li> 8094 Switch *string `json:"Switch,omitempty" name:"Switch"` 8095} 8096 8097type HeadTailTaskInput struct { 8098 8099 // 片头片尾模板号。 8100 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 8101} 8102 8103type HeadTailTemplate struct { 8104 8105 // 片头片尾模板号。 8106 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 8107 8108 // 模板名,最大支持 64 个字符。 8109 Name *string `json:"Name,omitempty" name:"Name"` 8110 8111 // 模板描述,最大支持 256 个字符。 8112 Comment *string `json:"Comment,omitempty" name:"Comment"` 8113 8114 // 片头候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 8115 HeadCandidateSet []*string `json:"HeadCandidateSet,omitempty" name:"HeadCandidateSet"` 8116 8117 // 片尾候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 8118 TailCandidateSet []*string `json:"TailCandidateSet,omitempty" name:"TailCandidateSet"` 8119 8120 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 8121 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 8122 // <li> gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;</li> 8123 // <li> white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;</li> 8124 // <li> black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 8125 // 默认值:stretch 。 8126 FillType *string `json:"FillType,omitempty" name:"FillType"` 8127} 8128 8129type HighlightSegmentItem struct { 8130 8131 // 置信度。 8132 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8133 8134 // 片段起始时间偏移。 8135 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8136 8137 // 片段结束时间偏移。 8138 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8139} 8140 8141type HighlightsConfigureInfo struct { 8142 8143 // 智能精彩片段任务开关,可选值: 8144 // <li>ON:开启智能精彩片段任务;</li> 8145 // <li>OFF:关闭智能精彩片段任务。</li> 8146 Switch *string `json:"Switch,omitempty" name:"Switch"` 8147} 8148 8149type HighlightsConfigureInfoForUpdate struct { 8150 8151 // 智能精彩片段任务开关,可选值: 8152 // <li>ON:开启智能精彩片段任务;</li> 8153 // <li>OFF:关闭智能精彩片段任务。</li> 8154 Switch *string `json:"Switch,omitempty" name:"Switch"` 8155} 8156 8157type ImageCenterCut struct { 8158 8159 // 图片的裁剪模式,可选 Circle 和 Rectangle。 8160 // <li>Circle : 内切圆裁剪,输出图片半径为 Radius。</li> 8161 // <li>Rectangle : 矩形裁剪,输出图片宽为 Width , 高为 Height。</li> 8162 Type *string `json:"Type,omitempty" name:"Type"` 8163 8164 // 输出图片的宽度,单位为像素,当 Type 取值为 Rectangle 时有效。 8165 Width *int64 `json:"Width,omitempty" name:"Width"` 8166 8167 // 输出图片的高度,单位为像素,当 Type 取值为 Rectangle 时有效。 8168 Height *int64 `json:"Height,omitempty" name:"Height"` 8169 8170 // 输出图片的半径,单位为像素,当 Type 取值为 Circle 时有效。 8171 Radius *int64 `json:"Radius,omitempty" name:"Radius"` 8172} 8173 8174type ImageOperation struct { 8175 8176 // 图片处理类型。可选类型有: 8177 // <li>Scale : 图片缩略处理。</li> 8178 // <li>CenterCut : 图片裁剪处理。</li> 8179 Type *string `json:"Type,omitempty" name:"Type"` 8180 8181 // 图片缩略处理,仅当 Type 为 Scale 时有效。 8182 Scale *ImageScale `json:"Scale,omitempty" name:"Scale"` 8183 8184 // 图片裁剪处理,仅当 Type 为 CenterCut 时有效。 8185 CenterCut *ImageCenterCut `json:"CenterCut,omitempty" name:"CenterCut"` 8186} 8187 8188type ImageProcessingTemplate struct { 8189 8190 // 图片处理模板唯一标识。 8191 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 8192 8193 // 模板类型,取值范围: 8194 // <li>Preset:系统预置模板;</li> 8195 // <li>Custom:用户自定义模板。</li> 8196 Type *string `json:"Type,omitempty" name:"Type"` 8197 8198 // 图片处理模板名称。 8199 Name *string `json:"Name,omitempty" name:"Name"` 8200 8201 // 模板描述信息。 8202 Comment *string `json:"Comment,omitempty" name:"Comment"` 8203 8204 // 图片处理操作数组,操作将以数组顺序执行。 8205 // <li>长度限制:3。</li> 8206 Operations []*ImageOperation `json:"Operations,omitempty" name:"Operations"` 8207 8208 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8209 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 8210} 8211 8212type ImageScale struct { 8213 8214 // 图片缩放的操作类型。可选模式有: 8215 // <li>WidthFirst : 指定图片的宽为 Width ,高度等比缩放。</li> 8216 // <li>HeightFirst : 指定图片的高为 Height ,宽度等比缩放。</li> 8217 // <li>LongEdgeFirst : 指定图片的长边为 LongEdge ,短边等比缩放。</li> 8218 // <li>ShortEdgeFirst : 指定图片的短边为 ShortEdge ,长边等比缩放。</li> 8219 // <li>Force : 忽略原图宽高比例,指定图片宽度为 Width,高度为 Height ,强行缩放图片,可能导致目标图片变形。</li> 8220 Type *string `json:"Type,omitempty" name:"Type"` 8221 8222 // 输出图片的高度,单位为像素。当 Type 取值为 HeightFirst 或 Force 时此字段有效。 8223 Height *uint64 `json:"Height,omitempty" name:"Height"` 8224 8225 // 输出图片的宽度,单位为像素。当 Type 取值为 WidthFirst 或 Force 时此字段有效。 8226 Width *uint64 `json:"Width,omitempty" name:"Width"` 8227 8228 // 输出图片的长边长度,单位为像素。当 Type 取值为 LongEdgeFirst 时此字段有效。 8229 LongEdge *uint64 `json:"LongEdge,omitempty" name:"LongEdge"` 8230 8231 // 输出图片的短边长度,单位为像素。当 Type 取值为 ShortEdgeFirst 时此字段有效。 8232 ShortEdge *uint64 `json:"ShortEdge,omitempty" name:"ShortEdge"` 8233} 8234 8235type ImageSpriteTaskInput struct { 8236 8237 // 雪碧图模板 ID。 8238 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 8239} 8240 8241type ImageSpriteTemplate struct { 8242 8243 // 雪碧图模板唯一标识。 8244 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 8245 8246 // 模板类型,取值范围: 8247 // <li>Preset:系统预置模板;</li> 8248 // <li>Custom:用户自定义模板。</li> 8249 Type *string `json:"Type,omitempty" name:"Type"` 8250 8251 // 雪碧图模板名称。 8252 Name *string `json:"Name,omitempty" name:"Name"` 8253 8254 // 雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 8255 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 8256 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 8257 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 8258 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 8259 // 默认值:0。 8260 Width *uint64 `json:"Width,omitempty" name:"Width"` 8261 8262 // 雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 8263 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 8264 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 8265 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 8266 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 8267 // 默认值:0。 8268 Height *uint64 `json:"Height,omitempty" name:"Height"` 8269 8270 // 分辨率自适应,可选值: 8271 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 8272 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 8273 // 默认值:open。 8274 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 8275 8276 // 采样类型。 8277 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 8278 8279 // 采样间隔。 8280 SampleInterval *uint64 `json:"SampleInterval,omitempty" name:"SampleInterval"` 8281 8282 // 雪碧图中小图的行数。 8283 RowCount *uint64 `json:"RowCount,omitempty" name:"RowCount"` 8284 8285 // 雪碧图中小图的列数。 8286 ColumnCount *uint64 `json:"ColumnCount,omitempty" name:"ColumnCount"` 8287 8288 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8289 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 8290 8291 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8292 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 8293 8294 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 8295 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 8296 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 8297 // 默认值:black 。 8298 FillType *string `json:"FillType,omitempty" name:"FillType"` 8299 8300 // 模板描述信息。 8301 Comment *string `json:"Comment,omitempty" name:"Comment"` 8302} 8303 8304type ImageTransform struct { 8305 8306 // 类型,取值有: 8307 // <li> Rotate:图像旋转。</li> 8308 // <li> Flip:图像翻转。</li> 8309 Type *string `json:"Type,omitempty" name:"Type"` 8310 8311 // 图像以中心点为原点进行旋转的角度,取值范围0~360。当 Type = Rotate 时有效。 8312 RotateAngle *float64 `json:"RotateAngle,omitempty" name:"RotateAngle"` 8313 8314 // 图像翻转动作,取值有: 8315 // <li>Horizental:水平翻转,即左右镜像。</li> 8316 // <li>Vertical:垂直翻转,即上下镜像。</li> 8317 // 当 Type = Flip 时有效。 8318 Flip *string `json:"Flip,omitempty" name:"Flip"` 8319} 8320 8321type ImageWatermarkInput struct { 8322 8323 // 水印图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串。支持 jpeg、png、gif 图片格式。 8324 ImageContent *string `json:"ImageContent,omitempty" name:"ImageContent"` 8325 8326 // 水印的宽度。支持 %、px 两种格式: 8327 // <li>当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> 8328 // <li>当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。</li> 8329 // 默认值:10%。 8330 Width *string `json:"Width,omitempty" name:"Width"` 8331 8332 // 水印的高度。支持 %、px 两种格式: 8333 // <li>当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li> 8334 // <li>当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。</li> 8335 // 默认值:0px,表示 Height 按照原始水印图片的宽高比缩放。 8336 Height *string `json:"Height,omitempty" name:"Height"` 8337 8338 // 水印重复类型。使用场景:水印为动态图像。取值范围: 8339 // <li>once:动态水印播放完后,不再出现;</li> 8340 // <li>repeat_last_frame:水印播放完后,停留在最后一帧;</li> 8341 // <li>repeat:水印循环播放,直到视频结束(默认值)。</li> 8342 RepeatType *string `json:"RepeatType,omitempty" name:"RepeatType"` 8343} 8344 8345type ImageWatermarkInputForUpdate struct { 8346 8347 // 水印图片 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串。支持 jpeg、png 图片格式。 8348 ImageContent *string `json:"ImageContent,omitempty" name:"ImageContent"` 8349 8350 // 水印的宽度。支持 %、px 两种格式: 8351 // <li>当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> 8352 // <li>当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。</li> 8353 Width *string `json:"Width,omitempty" name:"Width"` 8354 8355 // 水印的高度。支持 %、px 两种格式: 8356 // <li>当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li> 8357 // <li>当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。</li> 8358 Height *string `json:"Height,omitempty" name:"Height"` 8359 8360 // 水印重复类型。使用场景:水印为动态图像。取值范围: 8361 // <li>once:动态水印播放完后,不再出现;</li> 8362 // <li>repeat_last_frame:水印播放完后,停留在最后一帧;</li> 8363 // <li>repeat:水印循环播放,直到视频结束。</li> 8364 RepeatType *string `json:"RepeatType,omitempty" name:"RepeatType"` 8365} 8366 8367type ImageWatermarkTemplate struct { 8368 8369 // 水印图片地址。 8370 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` 8371 8372 // 水印的宽度。支持 %、px 两种格式: 8373 // <li>当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> 8374 // <li>当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。</li> 8375 Width *string `json:"Width,omitempty" name:"Width"` 8376 8377 // 水印的高度。支持 %、px 两种格式: 8378 // <li>当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li> 8379 // <li>当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;</li> 8380 // 0px:表示 Height 按照 Width 对视频宽度的比例缩放。 8381 Height *string `json:"Height,omitempty" name:"Height"` 8382 8383 // 水印重复类型。使用场景:水印为动态图像。取值范围: 8384 // <li>once:动态水印播放完后,不再出现;</li> 8385 // <li>repeat_last_frame:水印播放完后,停留在最后一帧;</li> 8386 // <li>repeat:水印循环播放,直到视频结束。</li> 8387 RepeatType *string `json:"RepeatType,omitempty" name:"RepeatType"` 8388} 8389 8390type LiveRealTimeClipMediaSegmentInfo struct { 8391 8392 // 片段的起始时间。格式参照 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 8393 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 8394 8395 // 片段的结束时间。格式参照 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 8396 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 8397} 8398 8399type LiveRealTimeClipRequest struct { 8400 *tchttp.BaseRequest 8401 8402 // 推流[直播码](https://cloud.tencent.com/document/product/267/5959)。 8403 StreamId *string `json:"StreamId,omitempty" name:"StreamId"` 8404 8405 // 流剪辑的开始时间,格式参照 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 8406 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 8407 8408 // 流剪辑的结束时间,格式参照 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 8409 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 8410 8411 // 是否固化。0 不固化,1 固化。默认不固化。 8412 IsPersistence *int64 `json:"IsPersistence,omitempty" name:"IsPersistence"` 8413 8414 // 剪辑固化后的视频存储过期时间。格式参照 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。填“9999-12-31T23:59:59Z”表示永不过期。过期后该媒体文件及其相关资源(转码结果、雪碧图等)将被永久删除。仅 IsPersistence 为 1 时有效,默认剪辑固化的视频永不过期。 8415 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 8416 8417 // 剪辑固化后的视频点播任务流处理,详见[上传指定任务流](https://cloud.tencent.com/document/product/266/9759)。仅 IsPersistence 为 1 时有效。 8418 Procedure *string `json:"Procedure,omitempty" name:"Procedure"` 8419 8420 // 是否需要返回剪辑后的视频元信息。0 不需要,1 需要。默认不需要。 8421 MetaDataRequired *uint64 `json:"MetaDataRequired,omitempty" name:"MetaDataRequired"` 8422 8423 // 云点播中添加的用于时移播放的域名,必须在云直播已经[关联录制模板和开通时移服务](https://cloud.tencent.com/document/product/266/52220#.E6.AD.A5.E9.AA.A43.EF.BC.9A.E5.85.B3.E8.81.94.E5.BD.95.E5.88.B6.E6.A8.A1.E6.9D.BF.3Ca-id.3D.22step3.22.3E.3C.2Fa.3E)。**如果本接口的首次调用时间在 2021-01-01T00:00:00Z 之后,则此字段为必选字段。** 8424 Host *string `json:"Host,omitempty" name:"Host"` 8425 8426 // 系统保留字段,请勿填写。 8427 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 8428 8429 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 8430 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 8431} 8432 8433func (r *LiveRealTimeClipRequest) ToJsonString() string { 8434 b, _ := json.Marshal(r) 8435 return string(b) 8436} 8437 8438// FromJsonString It is highly **NOT** recommended to use this function 8439// because it has no param check, nor strict type check 8440func (r *LiveRealTimeClipRequest) FromJsonString(s string) error { 8441 f := make(map[string]interface{}) 8442 if err := json.Unmarshal([]byte(s), &f); err != nil { 8443 return err 8444 } 8445 delete(f, "StreamId") 8446 delete(f, "StartTime") 8447 delete(f, "EndTime") 8448 delete(f, "IsPersistence") 8449 delete(f, "ExpireTime") 8450 delete(f, "Procedure") 8451 delete(f, "MetaDataRequired") 8452 delete(f, "Host") 8453 delete(f, "ExtInfo") 8454 delete(f, "SubAppId") 8455 if len(f) > 0 { 8456 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "LiveRealTimeClipRequest has unknown keys!", "") 8457 } 8458 return json.Unmarshal([]byte(s), &r) 8459} 8460 8461type LiveRealTimeClipResponse struct { 8462 *tchttp.BaseResponse 8463 Response *struct { 8464 8465 // 剪辑后的视频播放 URL。 8466 Url *string `json:"Url,omitempty" name:"Url"` 8467 8468 // 剪辑固化后的视频的媒体文件的唯一标识。 8469 FileId *string `json:"FileId,omitempty" name:"FileId"` 8470 8471 // 剪辑固化后的视频任务流 ID。 8472 VodTaskId *string `json:"VodTaskId,omitempty" name:"VodTaskId"` 8473 8474 // 剪辑后的视频元信息。 8475 // 注意:此字段可能返回 null,表示取不到有效值。 8476 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 8477 8478 // <span id="p_segmentset">剪辑后的视频片段信息。</span> 8479 SegmentSet []*LiveRealTimeClipMediaSegmentInfo `json:"SegmentSet,omitempty" name:"SegmentSet"` 8480 8481 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8482 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8483 } `json:"Response"` 8484} 8485 8486func (r *LiveRealTimeClipResponse) ToJsonString() string { 8487 b, _ := json.Marshal(r) 8488 return string(b) 8489} 8490 8491// FromJsonString It is highly **NOT** recommended to use this function 8492// because it has no param check, nor strict type check 8493func (r *LiveRealTimeClipResponse) FromJsonString(s string) error { 8494 return json.Unmarshal([]byte(s), &r) 8495} 8496 8497type ManageTaskRequest struct { 8498 *tchttp.BaseRequest 8499 8500 // 视频处理的任务 ID。 8501 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 8502 8503 // 操作类型,取值范围: 8504 // <li>Abort:终止任务。只能终止已发起且状态为等待中(WAITING)的任务。</li> 8505 OperationType *string `json:"OperationType,omitempty" name:"OperationType"` 8506 8507 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 8508 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 8509} 8510 8511func (r *ManageTaskRequest) ToJsonString() string { 8512 b, _ := json.Marshal(r) 8513 return string(b) 8514} 8515 8516// FromJsonString It is highly **NOT** recommended to use this function 8517// because it has no param check, nor strict type check 8518func (r *ManageTaskRequest) FromJsonString(s string) error { 8519 f := make(map[string]interface{}) 8520 if err := json.Unmarshal([]byte(s), &f); err != nil { 8521 return err 8522 } 8523 delete(f, "TaskId") 8524 delete(f, "OperationType") 8525 delete(f, "SubAppId") 8526 if len(f) > 0 { 8527 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ManageTaskRequest has unknown keys!", "") 8528 } 8529 return json.Unmarshal([]byte(s), &r) 8530} 8531 8532type ManageTaskResponse struct { 8533 *tchttp.BaseResponse 8534 Response *struct { 8535 8536 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 8537 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 8538 } `json:"Response"` 8539} 8540 8541func (r *ManageTaskResponse) ToJsonString() string { 8542 b, _ := json.Marshal(r) 8543 return string(b) 8544} 8545 8546// FromJsonString It is highly **NOT** recommended to use this function 8547// because it has no param check, nor strict type check 8548func (r *ManageTaskResponse) FromJsonString(s string) error { 8549 return json.Unmarshal([]byte(s), &r) 8550} 8551 8552type MediaAdaptiveDynamicStreamingInfo struct { 8553 8554 // 转自适应码流信息数组。 8555 AdaptiveDynamicStreamingSet []*AdaptiveDynamicStreamingInfoItem `json:"AdaptiveDynamicStreamingSet,omitempty" name:"AdaptiveDynamicStreamingSet"` 8556} 8557 8558type MediaAiAnalysisClassificationItem struct { 8559 8560 // 智能分类的类别名称。 8561 Classification *string `json:"Classification,omitempty" name:"Classification"` 8562 8563 // 智能分类的可信度,取值范围是 0 到 100。 8564 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8565} 8566 8567type MediaAiAnalysisCoverItem struct { 8568 8569 // 智能封面地址。 8570 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 8571 8572 // 智能封面的可信度,取值范围是 0 到 100。 8573 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8574} 8575 8576type MediaAiAnalysisFrameTagItem struct { 8577 8578 // 按帧标签名称。 8579 Tag *string `json:"Tag,omitempty" name:"Tag"` 8580 8581 // 按帧标签名称的分类列表,CategorySet.N 表示第 N+1级分类。 8582 // 比如 Tag 为“塔楼”时,CategorySet 包含两个元素:CategorySet.0 为“场景”,CategorySet.1为 “建筑”,表示按帧标签为“塔楼”,且第1级分类是“场景”,第2级分类是“建筑”。 8583 CategorySet []*string `json:"CategorySet,omitempty" name:"CategorySet"` 8584 8585 // 按帧标签的可信度,取值范围是 0 到 100。 8586 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8587} 8588 8589type MediaAiAnalysisFrameTagSegmentItem struct { 8590 8591 // 按帧标签起始的偏移时间。 8592 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8593 8594 // 按帧标签结束的偏移时间。 8595 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8596 8597 // 时间片段内的标签列表。 8598 TagSet []*MediaAiAnalysisFrameTagItem `json:"TagSet,omitempty" name:"TagSet"` 8599} 8600 8601type MediaAiAnalysisHighlightItem struct { 8602 8603 // 智能精彩集锦地址。 8604 HighlightUrl *string `json:"HighlightUrl,omitempty" name:"HighlightUrl"` 8605 8606 // 智能精彩集锦封面地址。 8607 CovImgUrl *string `json:"CovImgUrl,omitempty" name:"CovImgUrl"` 8608 8609 // 智能精彩集锦的可信度,取值范围是 0 到 100。 8610 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8611 8612 // 智能精彩集锦持续时间。 8613 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 8614 8615 // 智能精彩集锦子片段列表,精彩集锦片段由这些子片段拼接生成。 8616 SegmentSet []*HighlightSegmentItem `json:"SegmentSet,omitempty" name:"SegmentSet"` 8617} 8618 8619type MediaAiAnalysisTagItem struct { 8620 8621 // 标签名称。 8622 Tag *string `json:"Tag,omitempty" name:"Tag"` 8623 8624 // 标签的可信度,取值范围是 0 到 100。 8625 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8626} 8627 8628type MediaAnimatedGraphicsInfo struct { 8629 8630 // 视频转动图结果信息 8631 AnimatedGraphicsSet []*MediaAnimatedGraphicsItem `json:"AnimatedGraphicsSet,omitempty" name:"AnimatedGraphicsSet"` 8632} 8633 8634type MediaAnimatedGraphicsItem struct { 8635 8636 // 转动图的文件地址。 8637 Url *string `json:"Url,omitempty" name:"Url"` 8638 8639 // 转动图模板 ID,参见[转动图参数模板](https://cloud.tencent.com/document/product/266/33481#.3Cspan-id-.3D-.22zdt.22.3E.3C.2Fspan.3E.E8.BD.AC.E5.8A.A8.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 8640 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 8641 8642 // 动图格式,如 gif。 8643 Container *string `json:"Container,omitempty" name:"Container"` 8644 8645 // 动图的高度,单位:px。 8646 Height *int64 `json:"Height,omitempty" name:"Height"` 8647 8648 // 动图的宽度,单位:px。 8649 Width *int64 `json:"Width,omitempty" name:"Width"` 8650 8651 // 动图码率,单位:bps。 8652 Bitrate *int64 `json:"Bitrate,omitempty" name:"Bitrate"` 8653 8654 // 动图大小,单位:字节。 8655 Size *int64 `json:"Size,omitempty" name:"Size"` 8656 8657 // 动图的md5值。 8658 Md5 *string `json:"Md5,omitempty" name:"Md5"` 8659 8660 // 动图在视频中的起始时间偏移,单位:秒。 8661 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8662 8663 // 动图在视频中的结束时间偏移,单位:秒。 8664 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8665} 8666 8667type MediaAudioStreamItem struct { 8668 8669 // 音频流的码率,单位:bps。 8670 Bitrate *int64 `json:"Bitrate,omitempty" name:"Bitrate"` 8671 8672 // 音频流的采样率,单位:hz。 8673 SamplingRate *int64 `json:"SamplingRate,omitempty" name:"SamplingRate"` 8674 8675 // 音频流的编码格式,例如 aac。 8676 Codec *string `json:"Codec,omitempty" name:"Codec"` 8677} 8678 8679type MediaBasicInfo struct { 8680 8681 // 媒体文件名称。 8682 Name *string `json:"Name,omitempty" name:"Name"` 8683 8684 // 媒体文件描述。 8685 Description *string `json:"Description,omitempty" name:"Description"` 8686 8687 // 媒体文件的创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8688 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 8689 8690 // 媒体文件的最近更新时间(如修改视频属性、发起视频处理等会触发更新媒体文件信息的操作),使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8691 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 8692 8693 // 媒体文件的过期时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。过期后该媒体文件及其相关资源(转码结果、雪碧图等)将被永久删除。“9999-12-31T23:59:59Z”表示永不过期。 8694 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 8695 8696 // 媒体文件的分类 ID。 8697 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 8698 8699 // 媒体文件的分类名称。 8700 ClassName *string `json:"ClassName,omitempty" name:"ClassName"` 8701 8702 // 媒体文件的分类路径,分类间以“-”分隔,如“新的一级分类 - 新的二级分类”。 8703 ClassPath *string `json:"ClassPath,omitempty" name:"ClassPath"` 8704 8705 // 媒体文件的封面图片地址。 8706 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 8707 8708 // 媒体文件的封装格式,例如 mp4、flv 等。 8709 Type *string `json:"Type,omitempty" name:"Type"` 8710 8711 // 原始媒体文件的 URL 地址。 8712 MediaUrl *string `json:"MediaUrl,omitempty" name:"MediaUrl"` 8713 8714 // 该媒体文件的来源信息。 8715 // 注意:此字段可能返回 null,表示取不到有效值。 8716 SourceInfo *MediaSourceData `json:"SourceInfo,omitempty" name:"SourceInfo"` 8717 8718 // 媒体文件存储地区,如 ap-chongqing,参见[地域列表](https://cloud.tencent.com/document/product/266/9760#.E5.B7.B2.E6.94.AF.E6.8C.81.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8)。 8719 StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` 8720 8721 // 媒体文件的标签信息。 8722 TagSet []*string `json:"TagSet,omitempty" name:"TagSet"` 8723 8724 // 直播录制文件的唯一标识。 8725 Vid *string `json:"Vid,omitempty" name:"Vid"` 8726 8727 // 文件类型: 8728 // <li>Video: 视频文件</li> 8729 // <li>Audio: 音频文件</li> 8730 // <li>Image: 图片文件</li> 8731 Category *string `json:"Category,omitempty" name:"Category"` 8732 8733 // 文件状态:Normal:正常,Forbidden:封禁。 8734 // 8735 // *注意:此字段暂不支持。 8736 Status *string `json:"Status,omitempty" name:"Status"` 8737 8738 // 媒体文件的存储类别: 8739 // <li> STANDARD:标准存储。</li> 8740 // <li> STANDARD_IA:低频存储。</li> 8741 // <li> ARCHIVE:归档存储。</li> 8742 // <li> DEEP_ARCHIVE:深度归档存储。</li> 8743 StorageClass *string `json:"StorageClass,omitempty" name:"StorageClass"` 8744} 8745 8746type MediaClassInfo struct { 8747 8748 // 分类 ID 8749 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 8750 8751 // 父类 ID,一级分类的父类 ID 为 -1。 8752 ParentId *int64 `json:"ParentId,omitempty" name:"ParentId"` 8753 8754 // 分类名称 8755 ClassName *string `json:"ClassName,omitempty" name:"ClassName"` 8756 8757 // 分类级别,一级分类为 0,最大值为 3,即最多允许 4 级分类层次。 8758 Level *uint64 `json:"Level,omitempty" name:"Level"` 8759 8760 // 当前分类的第一级子类 ID 集合 8761 SubClassIdSet []*int64 `json:"SubClassIdSet,omitempty" name:"SubClassIdSet"` 8762} 8763 8764type MediaContentReviewAsrTextSegmentItem struct { 8765 8766 // 嫌疑片段起始的偏移时间,单位:秒。 8767 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8768 8769 // 嫌疑片段结束的偏移时间,单位:秒。 8770 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8771 8772 // 嫌疑片段置信度。 8773 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8774 8775 // 嫌疑片段审核结果建议,取值范围: 8776 // <li>pass。</li> 8777 // <li>review。</li> 8778 // <li>block。</li> 8779 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 8780 8781 // 嫌疑关键词列表。 8782 KeywordSet []*string `json:"KeywordSet,omitempty" name:"KeywordSet"` 8783} 8784 8785type MediaContentReviewOcrTextSegmentItem struct { 8786 8787 // 嫌疑片段起始的偏移时间,单位:秒。 8788 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8789 8790 // 嫌疑片段结束的偏移时间,单位:秒。 8791 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8792 8793 // 嫌疑片段置信度。 8794 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8795 8796 // 嫌疑片段审核结果建议,取值范围: 8797 // <li>pass。</li> 8798 // <li>review。</li> 8799 // <li>block。</li> 8800 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 8801 8802 // 嫌疑关键词列表。 8803 KeywordSet []*string `json:"KeywordSet,omitempty" name:"KeywordSet"` 8804 8805 // 嫌疑文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。 8806 AreaCoordSet []*int64 `json:"AreaCoordSet,omitempty" name:"AreaCoordSet"` 8807 8808 // 嫌疑图片 URL (图片不会永久存储,到达 8809 // PicUrlExpireTime 时间点后图片将被删除)。 8810 Url *string `json:"Url,omitempty" name:"Url"` 8811 8812 // 嫌疑图片 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8813 PicUrlExpireTime *string `json:"PicUrlExpireTime,omitempty" name:"PicUrlExpireTime"` 8814} 8815 8816type MediaContentReviewPoliticalSegmentItem struct { 8817 8818 // 嫌疑片段起始的偏移时间,单位:秒。 8819 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8820 8821 // 嫌疑片段结束的偏移时间,单位:秒。 8822 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8823 8824 // 嫌疑片段涉政分数。 8825 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8826 8827 // 嫌疑片段鉴政结果建议,取值范围: 8828 // <li>pass。</li> 8829 // <li>review。</li> 8830 // <li>block。</li> 8831 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 8832 8833 // 涉政人物、违规图标名字。 8834 Name *string `json:"Name,omitempty" name:"Name"` 8835 8836 // 嫌疑片段鉴政结果标签。内容审核模板[画面鉴政任务控制参数](https://cloud.tencent.com/document/api/266/31773#PoliticalImgReviewTemplateInfo)里 LabelSet 参数与此参数取值范围的对应关系: 8837 // violation_photo: 8838 // <li>violation_photo:违规图标。</li> 8839 // politician: 8840 // <li>nation_politician:国家领导人;</li> 8841 // <li>province_politician: 省部级领导人;</li> 8842 // <li>bureau_politician:厅局级领导人;</li> 8843 // <li>county_politician:县处级领导人;</li> 8844 // <li>rural_politician:乡科级领导人;</li> 8845 // <li>sensitive_politician:敏感政治人物;</li> 8846 // <li>foreign_politician:国外领导人。</li> 8847 // entertainment: 8848 // <li>sensitive_entertainment:敏感娱乐人物。</li> 8849 // sport: 8850 // <li>sensitive_sport:敏感体育人物。</li> 8851 // entrepreneur: 8852 // <li>sensitive_entrepreneur:敏感商业人物。</li> 8853 // scholar: 8854 // <li>sensitive_scholar:敏感教育学者。</li> 8855 // celebrity: 8856 // <li>sensitive_celebrity:敏感知名人物;</li> 8857 // <li>historical_celebrity:历史知名人物。</li> 8858 // military: 8859 // <li>sensitive_military:敏感军事人物。</li> 8860 Label *string `json:"Label,omitempty" name:"Label"` 8861 8862 // 嫌疑图片 URL (图片不会永久存储,到达 8863 // PicUrlExpireTime 时间点后图片将被删除)。 8864 Url *string `json:"Url,omitempty" name:"Url"` 8865 8866 // 涉政人物、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。 8867 AreaCoordSet []*int64 `json:"AreaCoordSet,omitempty" name:"AreaCoordSet"` 8868 8869 // 该字段已废弃,请使用 PicUrlExpireTime。 8870 PicUrlExpireTimeStamp *int64 `json:"PicUrlExpireTimeStamp,omitempty" name:"PicUrlExpireTimeStamp"` 8871 8872 // 嫌疑图片 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8873 PicUrlExpireTime *string `json:"PicUrlExpireTime,omitempty" name:"PicUrlExpireTime"` 8874} 8875 8876type MediaContentReviewSegmentItem struct { 8877 8878 // 嫌疑片段起始的偏移时间,单位:秒。 8879 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 8880 8881 // 嫌疑片段结束的偏移时间,单位:秒。 8882 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 8883 8884 // 嫌疑片段涉黄分数。 8885 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 8886 8887 // 嫌疑片段鉴黄结果标签。 8888 Label *string `json:"Label,omitempty" name:"Label"` 8889 8890 // 嫌疑片段鉴黄结果建议,取值范围: 8891 // <li>pass。</li> 8892 // <li>review。</li> 8893 // <li>block。</li> 8894 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 8895 8896 // 嫌疑图片 URL (图片不会永久存储,到达 8897 // PicUrlExpireTime 时间点后图片将被删除)。 8898 Url *string `json:"Url,omitempty" name:"Url"` 8899 8900 // 该字段已废弃,请使用 PicUrlExpireTime。 8901 PicUrlExpireTimeStamp *int64 `json:"PicUrlExpireTimeStamp,omitempty" name:"PicUrlExpireTimeStamp"` 8902 8903 // 嫌疑图片 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 8904 PicUrlExpireTime *string `json:"PicUrlExpireTime,omitempty" name:"PicUrlExpireTime"` 8905} 8906 8907type MediaDeleteItem struct { 8908 8909 // 所指定的删除部分。如果未填写该字段则参数无效。可选值有: 8910 // <li>TranscodeFiles(删除转码文件)。</li> 8911 // <li>WechatPublishFiles(删除微信发布文件)。</li> 8912 Type *string `json:"Type,omitempty" name:"Type"` 8913 8914 // 删除由Type参数指定的种类下的视频模板号,模板定义参见[转码模板](https://cloud.tencent.com/document/product/266/33478#.3Cspan-id-.3D-.22zm.22-.3E.3C.2Fspan.3E.E8.BD.AC.E7.A0.81.E6.A8.A1.E6.9D.BF)。 8915 // 默认值为0,表示删除参数Type指定种类下所有的视频。 8916 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 8917} 8918 8919type MediaImageSpriteInfo struct { 8920 8921 // 特定规格的雪碧图信息集合,每个元素代表一套相同规格的雪碧图。 8922 ImageSpriteSet []*MediaImageSpriteItem `json:"ImageSpriteSet,omitempty" name:"ImageSpriteSet"` 8923} 8924 8925type MediaImageSpriteItem struct { 8926 8927 // 雪碧图规格,参见[雪碧图参数模板](https://cloud.tencent.com/document/product/266/33480#.E9.9B.AA.E7.A2.A7.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 8928 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 8929 8930 // 雪碧图小图的高度。 8931 Height *int64 `json:"Height,omitempty" name:"Height"` 8932 8933 // 雪碧图小图的宽度。 8934 Width *int64 `json:"Width,omitempty" name:"Width"` 8935 8936 // 每一张雪碧图大图里小图的数量。 8937 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 8938 8939 // 每一张雪碧图大图的地址。 8940 ImageUrlSet []*string `json:"ImageUrlSet,omitempty" name:"ImageUrlSet"` 8941 8942 // 雪碧图子图位置与时间关系的 WebVtt 文件地址。WebVtt 文件表明了各个雪碧图小图对应的时间点,以及在雪碧大图里的坐标位置,一般被播放器用于实现预览。 8943 WebVttUrl *string `json:"WebVttUrl,omitempty" name:"WebVttUrl"` 8944} 8945 8946type MediaInfo struct { 8947 8948 // 基础信息。包括视频名称、分类、播放地址、封面图片等。 8949 // 注意:此字段可能返回 null,表示取不到有效值。 8950 BasicInfo *MediaBasicInfo `json:"BasicInfo,omitempty" name:"BasicInfo"` 8951 8952 // 元信息。包括大小、时长、视频流信息、音频流信息等。 8953 // 注意:此字段可能返回 null,表示取不到有效值。 8954 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 8955 8956 // 转码结果信息。包括该视频转码生成的各种码率的视频的地址、规格、码率、分辨率等。 8957 // 注意:此字段可能返回 null,表示取不到有效值。 8958 TranscodeInfo *MediaTranscodeInfo `json:"TranscodeInfo,omitempty" name:"TranscodeInfo"` 8959 8960 // 转动图结果信息。对视频转动图(如 gif)后,动图相关信息。 8961 // 注意:此字段可能返回 null,表示取不到有效值。 8962 AnimatedGraphicsInfo *MediaAnimatedGraphicsInfo `json:"AnimatedGraphicsInfo,omitempty" name:"AnimatedGraphicsInfo"` 8963 8964 // 采样截图信息。对视频采样截图后,相关截图信息。 8965 // 注意:此字段可能返回 null,表示取不到有效值。 8966 SampleSnapshotInfo *MediaSampleSnapshotInfo `json:"SampleSnapshotInfo,omitempty" name:"SampleSnapshotInfo"` 8967 8968 // 雪碧图信息。对视频截取雪碧图之后,雪碧的相关信息。 8969 // 注意:此字段可能返回 null,表示取不到有效值。 8970 ImageSpriteInfo *MediaImageSpriteInfo `json:"ImageSpriteInfo,omitempty" name:"ImageSpriteInfo"` 8971 8972 // 指定时间点截图信息。对视频依照指定时间点截图后,各个截图的信息。 8973 // 注意:此字段可能返回 null,表示取不到有效值。 8974 SnapshotByTimeOffsetInfo *MediaSnapshotByTimeOffsetInfo `json:"SnapshotByTimeOffsetInfo,omitempty" name:"SnapshotByTimeOffsetInfo"` 8975 8976 // 视频打点信息。对视频设置的各个打点信息。 8977 // 注意:此字段可能返回 null,表示取不到有效值。 8978 KeyFrameDescInfo *MediaKeyFrameDescInfo `json:"KeyFrameDescInfo,omitempty" name:"KeyFrameDescInfo"` 8979 8980 // 转自适应码流信息。包括规格、加密类型、打包格式等相关信息。 8981 // 注意:此字段可能返回 null,表示取不到有效值。 8982 AdaptiveDynamicStreamingInfo *MediaAdaptiveDynamicStreamingInfo `json:"AdaptiveDynamicStreamingInfo,omitempty" name:"AdaptiveDynamicStreamingInfo"` 8983 8984 // 小程序审核信息。 8985 // 注意:此字段可能返回 null,表示取不到有效值。 8986 MiniProgramReviewInfo *MediaMiniProgramReviewInfo `json:"MiniProgramReviewInfo,omitempty" name:"MiniProgramReviewInfo"` 8987 8988 // 字幕信息。 8989 // 注意:此字段可能返回 null,表示取不到有效值。 8990 SubtitleInfo *MediaSubtitleInfo `json:"SubtitleInfo,omitempty" name:"SubtitleInfo"` 8991 8992 // 媒体文件唯一标识 ID。 8993 FileId *string `json:"FileId,omitempty" name:"FileId"` 8994} 8995 8996type MediaInputInfo struct { 8997 8998 // 视频 URL。 8999 Url *string `json:"Url,omitempty" name:"Url"` 9000 9001 // 视频名称。 9002 Name *string `json:"Name,omitempty" name:"Name"` 9003 9004 // 视频自定义 ID。 9005 Id *string `json:"Id,omitempty" name:"Id"` 9006} 9007 9008type MediaKeyFrameDescInfo struct { 9009 9010 // 视频打点信息数组。 9011 KeyFrameDescSet []*MediaKeyFrameDescItem `json:"KeyFrameDescSet,omitempty" name:"KeyFrameDescSet"` 9012} 9013 9014type MediaKeyFrameDescItem struct { 9015 9016 // 打点的视频偏移时间,单位:秒。 9017 TimeOffset *float64 `json:"TimeOffset,omitempty" name:"TimeOffset"` 9018 9019 // 打点的内容字符串,限制 1-128 个字符。 9020 Content *string `json:"Content,omitempty" name:"Content"` 9021} 9022 9023type MediaMetaData struct { 9024 9025 // 上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。 9026 Size *int64 `json:"Size,omitempty" name:"Size"` 9027 9028 // 容器类型,例如 m4a,mp4 等。 9029 Container *string `json:"Container,omitempty" name:"Container"` 9030 9031 // 视频流码率平均值与音频流码率平均值之和,单位:bps。 9032 Bitrate *int64 `json:"Bitrate,omitempty" name:"Bitrate"` 9033 9034 // 视频流高度的最大值,单位:px。 9035 Height *int64 `json:"Height,omitempty" name:"Height"` 9036 9037 // 视频流宽度的最大值,单位:px。 9038 Width *int64 `json:"Width,omitempty" name:"Width"` 9039 9040 // 视频时长,单位:秒。 9041 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 9042 9043 // 视频拍摄时的选择角度,单位:度。 9044 Rotate *int64 `json:"Rotate,omitempty" name:"Rotate"` 9045 9046 // 视频流信息。 9047 VideoStreamSet []*MediaVideoStreamItem `json:"VideoStreamSet,omitempty" name:"VideoStreamSet"` 9048 9049 // 音频流信息。 9050 AudioStreamSet []*MediaAudioStreamItem `json:"AudioStreamSet,omitempty" name:"AudioStreamSet"` 9051 9052 // 视频时长,单位:秒。 9053 VideoDuration *float64 `json:"VideoDuration,omitempty" name:"VideoDuration"` 9054 9055 // 音频时长,单位:秒。 9056 AudioDuration *float64 `json:"AudioDuration,omitempty" name:"AudioDuration"` 9057} 9058 9059type MediaMiniProgramReviewElem struct { 9060 9061 // 审核类型。 9062 // <li>Porn:画面涉黄,</li> 9063 // <li>Porn.Ocr:文字涉黄,</li> 9064 // <li>Porn.Asr:声音涉黄,</li> 9065 // <li>Terrorism:画面涉暴恐,</li> 9066 // <li>Political:画面涉政,</li> 9067 // <li>Political.Ocr:文字涉政,</li> 9068 // <li>Political.Asr:声音涉政。</li> 9069 Type *string `json:"Type,omitempty" name:"Type"` 9070 9071 // 审核意见。 9072 // <li>pass:确认正常,</li> 9073 // <li>block:确认违规,</li> 9074 // <li>review:疑似违规。</li> 9075 Suggestion *string `json:"Suggestion,omitempty" name:"Suggestion"` 9076 9077 // 审核结果置信度。取值 0~100。 9078 Confidence *float64 `json:"Confidence,omitempty" name:"Confidence"` 9079} 9080 9081type MediaMiniProgramReviewInfo struct { 9082 9083 // 审核信息列表。 9084 MiniProgramReviewList []*MediaMiniProgramReviewInfoItem `json:"MiniProgramReviewList,omitempty" name:"MiniProgramReviewList"` 9085} 9086 9087type MediaMiniProgramReviewInfoItem struct { 9088 9089 // 模板id。小程序视频发布的视频所对应的转码模板ID,为0代表原始视频。 9090 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9091 9092 // 视频元信息。 9093 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 9094 9095 // 小程序审核视频播放地址。 9096 Url *string `json:"Url,omitempty" name:"Url"` 9097 9098 // 小程序视频发布状态: 9099 // <li>Pass:成功。</li> 9100 // <li>Rejected:未通过。</li> 9101 ReviewResult *string `json:"ReviewResult,omitempty" name:"ReviewResult"` 9102 9103 // 小程序审核元素。 9104 ReviewSummary []*MediaMiniProgramReviewElem `json:"ReviewSummary,omitempty" name:"ReviewSummary"` 9105} 9106 9107type MediaOutputInfo struct { 9108 9109 // 输出文件 Bucket 所属地域,如 ap-guangzhou 。 9110 Region *string `json:"Region,omitempty" name:"Region"` 9111 9112 // 输出文件 Bucket 。 9113 Bucket *string `json:"Bucket,omitempty" name:"Bucket"` 9114 9115 // 输出文件目录,目录名必须以 "/" 结尾。 9116 Dir *string `json:"Dir,omitempty" name:"Dir"` 9117} 9118 9119type MediaProcessTaskAdaptiveDynamicStreamingResult struct { 9120 9121 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9122 Status *string `json:"Status,omitempty" name:"Status"` 9123 9124 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9125 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9126 9127 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9128 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9129 9130 // 错误信息。 9131 Message *string `json:"Message,omitempty" name:"Message"` 9132 9133 // 对视频转自适应码流任务的输入。 9134 Input *AdaptiveDynamicStreamingTaskInput `json:"Input,omitempty" name:"Input"` 9135 9136 // 对视频转自适应码流任务的输出。 9137 Output *AdaptiveDynamicStreamingInfoItem `json:"Output,omitempty" name:"Output"` 9138} 9139 9140type MediaProcessTaskAnimatedGraphicResult struct { 9141 9142 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9143 Status *string `json:"Status,omitempty" name:"Status"` 9144 9145 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9146 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9147 9148 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9149 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9150 9151 // 错误信息。 9152 Message *string `json:"Message,omitempty" name:"Message"` 9153 9154 // 转动图任务的输入。 9155 Input *AnimatedGraphicTaskInput `json:"Input,omitempty" name:"Input"` 9156 9157 // 转动图任务的输出。 9158 // 注意:此字段可能返回 null,表示取不到有效值。 9159 Output *MediaAnimatedGraphicsItem `json:"Output,omitempty" name:"Output"` 9160} 9161 9162type MediaProcessTaskCoverBySnapshotResult struct { 9163 9164 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9165 Status *string `json:"Status,omitempty" name:"Status"` 9166 9167 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9168 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9169 9170 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9171 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9172 9173 // 错误信息。 9174 Message *string `json:"Message,omitempty" name:"Message"` 9175 9176 // 对视频截图做封面任务的输入。 9177 Input *CoverBySnapshotTaskInput `json:"Input,omitempty" name:"Input"` 9178 9179 // 对视频截图做封面任务的输出。 9180 Output *CoverBySnapshotTaskOutput `json:"Output,omitempty" name:"Output"` 9181} 9182 9183type MediaProcessTaskImageSpriteResult struct { 9184 9185 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9186 Status *string `json:"Status,omitempty" name:"Status"` 9187 9188 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9189 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9190 9191 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9192 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9193 9194 // 错误信息。 9195 Message *string `json:"Message,omitempty" name:"Message"` 9196 9197 // 对视频截雪碧图任务的输入。 9198 Input *ImageSpriteTaskInput `json:"Input,omitempty" name:"Input"` 9199 9200 // 对视频截雪碧图任务的输出。 9201 // 注意:此字段可能返回 null,表示取不到有效值。 9202 Output *MediaImageSpriteItem `json:"Output,omitempty" name:"Output"` 9203} 9204 9205type MediaProcessTaskInput struct { 9206 9207 // 视频转码任务列表。 9208 TranscodeTaskSet []*TranscodeTaskInput `json:"TranscodeTaskSet,omitempty" name:"TranscodeTaskSet"` 9209 9210 // 视频转动图任务列表。 9211 AnimatedGraphicTaskSet []*AnimatedGraphicTaskInput `json:"AnimatedGraphicTaskSet,omitempty" name:"AnimatedGraphicTaskSet"` 9212 9213 // 对视频按时间点截图任务列表。 9214 SnapshotByTimeOffsetTaskSet []*SnapshotByTimeOffsetTaskInput `json:"SnapshotByTimeOffsetTaskSet,omitempty" name:"SnapshotByTimeOffsetTaskSet"` 9215 9216 // 对视频采样截图任务列表。 9217 SampleSnapshotTaskSet []*SampleSnapshotTaskInput `json:"SampleSnapshotTaskSet,omitempty" name:"SampleSnapshotTaskSet"` 9218 9219 // 对视频截雪碧图任务列表。 9220 ImageSpriteTaskSet []*ImageSpriteTaskInput `json:"ImageSpriteTaskSet,omitempty" name:"ImageSpriteTaskSet"` 9221 9222 // 对视频截图做封面任务列表。 9223 CoverBySnapshotTaskSet []*CoverBySnapshotTaskInput `json:"CoverBySnapshotTaskSet,omitempty" name:"CoverBySnapshotTaskSet"` 9224 9225 // 对视频转自适应码流任务列表。 9226 AdaptiveDynamicStreamingTaskSet []*AdaptiveDynamicStreamingTaskInput `json:"AdaptiveDynamicStreamingTaskSet,omitempty" name:"AdaptiveDynamicStreamingTaskSet"` 9227} 9228 9229type MediaProcessTaskResult struct { 9230 9231 // 任务的类型,可以取的值有: 9232 // <li>Transcode:转码</li> 9233 // <li>AnimatedGraphics:转动图</li> 9234 // <li>SnapshotByTimeOffset:时间点截图</li> 9235 // <li>SampleSnapshot:采样截图</li> 9236 // <li>ImageSprites:雪碧图</li> 9237 // <li>CoverBySnapshot:截图做封面</li> 9238 // <li>AdaptiveDynamicStreaming:自适应码流</li> 9239 Type *string `json:"Type,omitempty" name:"Type"` 9240 9241 // 视频转码任务的查询结果,当任务类型为 Transcode 时有效。 9242 // 注意:此字段可能返回 null,表示取不到有效值。 9243 TranscodeTask *MediaProcessTaskTranscodeResult `json:"TranscodeTask,omitempty" name:"TranscodeTask"` 9244 9245 // 视频转动图任务的查询结果,当任务类型为 AnimatedGraphics 时有效。 9246 // 注意:此字段可能返回 null,表示取不到有效值。 9247 AnimatedGraphicTask *MediaProcessTaskAnimatedGraphicResult `json:"AnimatedGraphicTask,omitempty" name:"AnimatedGraphicTask"` 9248 9249 // 对视频按时间点截图任务的查询结果,当任务类型为 SnapshotByTimeOffset 时有效。 9250 // 注意:此字段可能返回 null,表示取不到有效值。 9251 SnapshotByTimeOffsetTask *MediaProcessTaskSnapshotByTimeOffsetResult `json:"SnapshotByTimeOffsetTask,omitempty" name:"SnapshotByTimeOffsetTask"` 9252 9253 // 对视频采样截图任务的查询结果,当任务类型为 SampleSnapshot 时有效。 9254 // 注意:此字段可能返回 null,表示取不到有效值。 9255 SampleSnapshotTask *MediaProcessTaskSampleSnapshotResult `json:"SampleSnapshotTask,omitempty" name:"SampleSnapshotTask"` 9256 9257 // 对视频截雪碧图任务的查询结果,当任务类型为 ImageSprite 时有效。 9258 // 注意:此字段可能返回 null,表示取不到有效值。 9259 ImageSpriteTask *MediaProcessTaskImageSpriteResult `json:"ImageSpriteTask,omitempty" name:"ImageSpriteTask"` 9260 9261 // 对视频截图做封面任务的查询结果,当任务类型为 CoverBySnapshot 时有效。 9262 // 注意:此字段可能返回 null,表示取不到有效值。 9263 CoverBySnapshotTask *MediaProcessTaskCoverBySnapshotResult `json:"CoverBySnapshotTask,omitempty" name:"CoverBySnapshotTask"` 9264 9265 // 对视频转自适应码流任务的查询结果,当任务类型为 AdaptiveDynamicStreaming 时有效。 9266 // 注意:此字段可能返回 null,表示取不到有效值。 9267 AdaptiveDynamicStreamingTask *MediaProcessTaskAdaptiveDynamicStreamingResult `json:"AdaptiveDynamicStreamingTask,omitempty" name:"AdaptiveDynamicStreamingTask"` 9268} 9269 9270type MediaProcessTaskSampleSnapshotResult struct { 9271 9272 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9273 Status *string `json:"Status,omitempty" name:"Status"` 9274 9275 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9276 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9277 9278 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9279 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9280 9281 // 错误信息。 9282 Message *string `json:"Message,omitempty" name:"Message"` 9283 9284 // 对视频做采样截图任务输入。 9285 Input *SampleSnapshotTaskInput `json:"Input,omitempty" name:"Input"` 9286 9287 // 对视频做采样截图任务输出。 9288 // 注意:此字段可能返回 null,表示取不到有效值。 9289 Output *MediaSampleSnapshotItem `json:"Output,omitempty" name:"Output"` 9290} 9291 9292type MediaProcessTaskSnapshotByTimeOffsetResult struct { 9293 9294 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9295 Status *string `json:"Status,omitempty" name:"Status"` 9296 9297 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9298 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9299 9300 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9301 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9302 9303 // 错误信息。 9304 Message *string `json:"Message,omitempty" name:"Message"` 9305 9306 // 对视频按指定时间点截图任务输入。 9307 Input *SnapshotByTimeOffsetTaskInput `json:"Input,omitempty" name:"Input"` 9308 9309 // 对视频按指定时间点截图任务输出。 9310 // 注意:此字段可能返回 null,表示取不到有效值。 9311 Output *MediaSnapshotByTimeOffsetItem `json:"Output,omitempty" name:"Output"` 9312} 9313 9314type MediaProcessTaskTranscodeResult struct { 9315 9316 // 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。 9317 Status *string `json:"Status,omitempty" name:"Status"` 9318 9319 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 9320 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 9321 9322 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 9323 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 9324 9325 // 错误信息。 9326 Message *string `json:"Message,omitempty" name:"Message"` 9327 9328 // 转码任务的输入。 9329 Input *TranscodeTaskInput `json:"Input,omitempty" name:"Input"` 9330 9331 // 转码任务的输出。 9332 // 注意:此字段可能返回 null,表示取不到有效值。 9333 Output *MediaTranscodeItem `json:"Output,omitempty" name:"Output"` 9334 9335 // 转码进度,取值范围 [0-100] 。 9336 Progress *int64 `json:"Progress,omitempty" name:"Progress"` 9337 9338 // 转码任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 9339 BeginProcessTime *string `json:"BeginProcessTime,omitempty" name:"BeginProcessTime"` 9340 9341 // 转码任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 9342 FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` 9343} 9344 9345type MediaSampleSnapshotInfo struct { 9346 9347 // 特定规格的采样截图信息集合,每个元素代表一套相同规格的采样截图。 9348 SampleSnapshotSet []*MediaSampleSnapshotItem `json:"SampleSnapshotSet,omitempty" name:"SampleSnapshotSet"` 9349} 9350 9351type MediaSampleSnapshotItem struct { 9352 9353 // 采样截图规格 ID,参见[采样截图参数模板](https://cloud.tencent.com/document/product/266/33480#.E9.87.87.E6.A0.B7.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 9354 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9355 9356 // 采样方式,取值范围: 9357 // <li>Percent:根据百分比间隔采样。</li> 9358 // <li>Time:根据时间间隔采样。</li> 9359 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 9360 9361 // 采样间隔 9362 // <li>当 SampleType 为 Percent 时,该值表示多少百分比一张图。</li> 9363 // <li>当 SampleType 为 Time 时,该值表示多少时间间隔一张图,单位秒, 第一张图均为视频首帧。</li> 9364 Interval *int64 `json:"Interval,omitempty" name:"Interval"` 9365 9366 // 生成的截图 url 列表。 9367 ImageUrlSet []*string `json:"ImageUrlSet,omitempty" name:"ImageUrlSet"` 9368 9369 // 截图如果被打上了水印,被打水印的模板 ID 列表。 9370 WaterMarkDefinition []*int64 `json:"WaterMarkDefinition,omitempty" name:"WaterMarkDefinition"` 9371} 9372 9373type MediaSnapshotByTimeOffsetInfo struct { 9374 9375 // 特定规格的指定时间点截图信息集合。目前每种规格只能有一套截图。 9376 SnapshotByTimeOffsetSet []*MediaSnapshotByTimeOffsetItem `json:"SnapshotByTimeOffsetSet,omitempty" name:"SnapshotByTimeOffsetSet"` 9377} 9378 9379type MediaSnapshotByTimeOffsetItem struct { 9380 9381 // 指定时间点截图规格,参见[指定时间点截图参数模板](https://cloud.tencent.com/document/product/266/33480#.E6.97.B6.E9.97.B4.E7.82.B9.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 9382 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9383 9384 // 同一规格的截图信息集合,每个元素代表一张截图。 9385 PicInfoSet []*MediaSnapshotByTimePicInfoItem `json:"PicInfoSet,omitempty" name:"PicInfoSet"` 9386} 9387 9388type MediaSnapshotByTimePicInfoItem struct { 9389 9390 // 该张截图对应视频文件中的时间偏移,单位为<font color=red>毫秒</font>。 9391 TimeOffset *float64 `json:"TimeOffset,omitempty" name:"TimeOffset"` 9392 9393 // 该张截图的 URL 地址。 9394 Url *string `json:"Url,omitempty" name:"Url"` 9395 9396 // 截图如果被打上了水印,被打水印的模板 ID 列表。 9397 WaterMarkDefinition []*int64 `json:"WaterMarkDefinition,omitempty" name:"WaterMarkDefinition"` 9398} 9399 9400type MediaSourceData struct { 9401 9402 // 媒体文件的来源类别: 9403 // <li>Record:来自录制。如直播录制、直播时移录制等。</li> 9404 // <li>Upload:来自上传。如拉取上传、服务端上传、客户端 UGC 上传等。</li> 9405 // <li>VideoProcessing:来自视频处理。如视频拼接、视频剪辑等。</li> 9406 // <li>Unknown:未知来源。</li> 9407 SourceType *string `json:"SourceType,omitempty" name:"SourceType"` 9408 9409 // 用户创建文件时透传的字段 9410 SourceContext *string `json:"SourceContext,omitempty" name:"SourceContext"` 9411} 9412 9413type MediaSubtitleInfo struct { 9414 9415 // 字幕信息列表。 9416 SubtitleSet []*MediaSubtitleItem `json:"SubtitleSet,omitempty" name:"SubtitleSet"` 9417} 9418 9419type MediaSubtitleInput struct { 9420 9421 // 字幕名字,长度限制:64 个字符。 9422 Name *string `json:"Name,omitempty" name:"Name"` 9423 9424 // 字幕语言。常见的取值如下: 9425 // <li>cn:中文</li> 9426 // <li>ja:日文</li> 9427 // <li>en-US:英文</li> 9428 // 其他取值参考 [RFC5646](https://tools.ietf.org/html/rfc5646) 9429 Language *string `json:"Language,omitempty" name:"Language"` 9430 9431 // 字幕格式。取值范围如下: 9432 // <li>vtt</li> 9433 Format *string `json:"Format,omitempty" name:"Format"` 9434 9435 // 字幕内容,进行 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串。 9436 Content *string `json:"Content,omitempty" name:"Content"` 9437 9438 // 字幕的唯一标识。长度不能超过16个字符,可以使用大小写字母、数字、下划线(_)或横杠(-)。不能与媒资文件中现有字幕的唯一标识重复。 9439 Id *string `json:"Id,omitempty" name:"Id"` 9440} 9441 9442type MediaSubtitleItem struct { 9443 9444 // 字幕的唯一标识。 9445 Id *string `json:"Id,omitempty" name:"Id"` 9446 9447 // 字幕名字。 9448 Name *string `json:"Name,omitempty" name:"Name"` 9449 9450 // 字幕语言。常见的取值如下: 9451 // <li>cn:中文</li> 9452 // <li>ja:日文</li> 9453 // <li>en-US:英文</li> 9454 // 其他取值参考 [RFC5646](https://tools.ietf.org/html/rfc5646) 9455 Language *string `json:"Language,omitempty" name:"Language"` 9456 9457 // 字幕格式。取值范围如下: 9458 // <li>vtt</li> 9459 Format *string `json:"Format,omitempty" name:"Format"` 9460 9461 // 字幕 URL。 9462 Url *string `json:"Url,omitempty" name:"Url"` 9463} 9464 9465type MediaTrack struct { 9466 9467 // 轨道类型,取值有: 9468 // <ul> 9469 // <li>Video :视频轨道。视频轨道由以下 Item 组成:<ul><li>VideoTrackItem</li><li>MediaTransitionItem</li> <li>EmptyTrackItem</li></ul> </li> 9470 // <li>Audio :音频轨道。音频轨道由以下 Item 组成:<ul><li>AudioTrackItem</li><li>MediaTransitionItem</li><li>EmptyTrackItem</li></ul></li> 9471 // <li>Sticker :贴图轨道。贴图轨道以下 Item 组成:<ul><li> StickerTrackItem</li><li>EmptyTrackItem</li></ul></li> 9472 // </ul> 9473 Type *string `json:"Type,omitempty" name:"Type"` 9474 9475 // 轨道上的媒体片段列表。 9476 TrackItems []*MediaTrackItem `json:"TrackItems,omitempty" name:"TrackItems"` 9477} 9478 9479type MediaTrackItem struct { 9480 9481 // 片段类型。取值有: 9482 // <li>Video:视频片段。</li> 9483 // <li>Audio:音频片段。</li> 9484 // <li>Sticker:贴图片段。</li> 9485 // <li>Transition:转场。</li> 9486 // <li>Empty:空白片段。</li> 9487 Type *string `json:"Type,omitempty" name:"Type"` 9488 9489 // 视频片段,当 Type = Video 时有效。 9490 // 注意:此字段可能返回 null,表示取不到有效值。 9491 VideoItem *VideoTrackItem `json:"VideoItem,omitempty" name:"VideoItem"` 9492 9493 // 音频片段,当 Type = Audio 时有效。 9494 // 注意:此字段可能返回 null,表示取不到有效值。 9495 AudioItem *AudioTrackItem `json:"AudioItem,omitempty" name:"AudioItem"` 9496 9497 // 贴图片段,当 Type = Sticker 时有效。 9498 // 注意:此字段可能返回 null,表示取不到有效值。 9499 StickerItem *StickerTrackItem `json:"StickerItem,omitempty" name:"StickerItem"` 9500 9501 // 转场,当 Type = Transition 时有效。 9502 // 注意:此字段可能返回 null,表示取不到有效值。 9503 TransitionItem *MediaTransitionItem `json:"TransitionItem,omitempty" name:"TransitionItem"` 9504 9505 // 空白片段,当 Type = Empty 时有效。空片段用于时间轴的占位。<li>如需要两个音频片段之间有一段时间的静音,可以用 EmptyTrackItem 来进行占位。</li> 9506 // <li>使用 EmptyTrackItem 进行占位,来定位某个Item。</li> 9507 // 注意:此字段可能返回 null,表示取不到有效值。 9508 EmptyItem *EmptyTrackItem `json:"EmptyItem,omitempty" name:"EmptyItem"` 9509} 9510 9511type MediaTranscodeInfo struct { 9512 9513 // 各规格的转码信息集合,每个元素代表一个规格的转码结果。 9514 TranscodeSet []*MediaTranscodeItem `json:"TranscodeSet,omitempty" name:"TranscodeSet"` 9515} 9516 9517type MediaTranscodeItem struct { 9518 9519 // 转码后的视频文件地址。 9520 Url *string `json:"Url,omitempty" name:"Url"` 9521 9522 // 转码规格 ID,参见[转码参数模板](https://cloud.tencent.com/document/product/266/33476)。 9523 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9524 9525 // 视频流码率平均值与音频流码率平均值之和, 单位:bps。 9526 Bitrate *int64 `json:"Bitrate,omitempty" name:"Bitrate"` 9527 9528 // 视频流高度的最大值,单位:px。 9529 Height *int64 `json:"Height,omitempty" name:"Height"` 9530 9531 // 视频流宽度的最大值,单位:px。 9532 Width *int64 `json:"Width,omitempty" name:"Width"` 9533 9534 // 媒体文件总大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。 9535 Size *int64 `json:"Size,omitempty" name:"Size"` 9536 9537 // 视频时长,单位:秒。 9538 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 9539 9540 // 容器类型,例如 m4a,mp4 等。 9541 Container *string `json:"Container,omitempty" name:"Container"` 9542 9543 // 视频的 md5 值。 9544 Md5 *string `json:"Md5,omitempty" name:"Md5"` 9545 9546 // 音频流信息。 9547 AudioStreamSet []*MediaAudioStreamItem `json:"AudioStreamSet,omitempty" name:"AudioStreamSet"` 9548 9549 // 视频流信息。 9550 VideoStreamSet []*MediaVideoStreamItem `json:"VideoStreamSet,omitempty" name:"VideoStreamSet"` 9551} 9552 9553type MediaTransitionItem struct { 9554 9555 // 转场持续时间,单位为秒。进行转场处理的两个媒体片段,第二个片段在轨道上的起始时间会自动进行调整,设置为前面一个片段的结束时间减去转场的持续时间。 9556 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 9557 9558 // 转场操作列表。图像转场操作和音频转场操作各自最多支持一个。 9559 Transitions []*TransitionOpertion `json:"Transitions,omitempty" name:"Transitions"` 9560} 9561 9562type MediaVideoStreamItem struct { 9563 9564 // 视频流的码率,单位:bps。 9565 Bitrate *int64 `json:"Bitrate,omitempty" name:"Bitrate"` 9566 9567 // 视频流的高度,单位:px。 9568 Height *int64 `json:"Height,omitempty" name:"Height"` 9569 9570 // 视频流的宽度,单位:px。 9571 Width *int64 `json:"Width,omitempty" name:"Width"` 9572 9573 // 视频流的编码格式,例如 h264。 9574 Codec *string `json:"Codec,omitempty" name:"Codec"` 9575 9576 // 帧率,单位:hz。 9577 Fps *int64 `json:"Fps,omitempty" name:"Fps"` 9578} 9579 9580type ModifyAIAnalysisTemplateRequest struct { 9581 *tchttp.BaseRequest 9582 9583 // 视频内容分析模板唯一标识。 9584 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9585 9586 // 视频内容分析模板名称,长度限制:64 个字符。 9587 Name *string `json:"Name,omitempty" name:"Name"` 9588 9589 // 视频内容分析模板描述信息,长度限制:256 个字符。 9590 Comment *string `json:"Comment,omitempty" name:"Comment"` 9591 9592 // 智能分类任务控制参数。 9593 ClassificationConfigure *ClassificationConfigureInfoForUpdate `json:"ClassificationConfigure,omitempty" name:"ClassificationConfigure"` 9594 9595 // 智能标签任务控制参数。 9596 TagConfigure *TagConfigureInfoForUpdate `json:"TagConfigure,omitempty" name:"TagConfigure"` 9597 9598 // 智能封面任务控制参数。 9599 CoverConfigure *CoverConfigureInfoForUpdate `json:"CoverConfigure,omitempty" name:"CoverConfigure"` 9600 9601 // 智能按帧标签任务控制参数。 9602 FrameTagConfigure *FrameTagConfigureInfoForUpdate `json:"FrameTagConfigure,omitempty" name:"FrameTagConfigure"` 9603 9604 // 智能精彩集锦任务控制参数。 9605 HighlightConfigure *HighlightsConfigureInfoForUpdate `json:"HighlightConfigure,omitempty" name:"HighlightConfigure"` 9606 9607 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 9608 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 9609} 9610 9611func (r *ModifyAIAnalysisTemplateRequest) ToJsonString() string { 9612 b, _ := json.Marshal(r) 9613 return string(b) 9614} 9615 9616// FromJsonString It is highly **NOT** recommended to use this function 9617// because it has no param check, nor strict type check 9618func (r *ModifyAIAnalysisTemplateRequest) FromJsonString(s string) error { 9619 f := make(map[string]interface{}) 9620 if err := json.Unmarshal([]byte(s), &f); err != nil { 9621 return err 9622 } 9623 delete(f, "Definition") 9624 delete(f, "Name") 9625 delete(f, "Comment") 9626 delete(f, "ClassificationConfigure") 9627 delete(f, "TagConfigure") 9628 delete(f, "CoverConfigure") 9629 delete(f, "FrameTagConfigure") 9630 delete(f, "HighlightConfigure") 9631 delete(f, "SubAppId") 9632 if len(f) > 0 { 9633 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAIAnalysisTemplateRequest has unknown keys!", "") 9634 } 9635 return json.Unmarshal([]byte(s), &r) 9636} 9637 9638type ModifyAIAnalysisTemplateResponse struct { 9639 *tchttp.BaseResponse 9640 Response *struct { 9641 9642 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 9643 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 9644 } `json:"Response"` 9645} 9646 9647func (r *ModifyAIAnalysisTemplateResponse) ToJsonString() string { 9648 b, _ := json.Marshal(r) 9649 return string(b) 9650} 9651 9652// FromJsonString It is highly **NOT** recommended to use this function 9653// because it has no param check, nor strict type check 9654func (r *ModifyAIAnalysisTemplateResponse) FromJsonString(s string) error { 9655 return json.Unmarshal([]byte(s), &r) 9656} 9657 9658type ModifyAIRecognitionTemplateRequest struct { 9659 *tchttp.BaseRequest 9660 9661 // 视频内容识别模板唯一标识。 9662 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9663 9664 // 视频内容识别模板名称,长度限制:64 个字符。 9665 Name *string `json:"Name,omitempty" name:"Name"` 9666 9667 // 视频内容识别模板描述信息,长度限制:256 个字符。 9668 Comment *string `json:"Comment,omitempty" name:"Comment"` 9669 9670 // 视频片头片尾识别控制参数。 9671 HeadTailConfigure *HeadTailConfigureInfoForUpdate `json:"HeadTailConfigure,omitempty" name:"HeadTailConfigure"` 9672 9673 // 视频拆条识别控制参数。 9674 SegmentConfigure *SegmentConfigureInfoForUpdate `json:"SegmentConfigure,omitempty" name:"SegmentConfigure"` 9675 9676 // 人脸识别控制参数。 9677 FaceConfigure *FaceConfigureInfoForUpdate `json:"FaceConfigure,omitempty" name:"FaceConfigure"` 9678 9679 // 文本全文识别控制参数。 9680 OcrFullTextConfigure *OcrFullTextConfigureInfoForUpdate `json:"OcrFullTextConfigure,omitempty" name:"OcrFullTextConfigure"` 9681 9682 // 文本关键词识别控制参数。 9683 OcrWordsConfigure *OcrWordsConfigureInfoForUpdate `json:"OcrWordsConfigure,omitempty" name:"OcrWordsConfigure"` 9684 9685 // 语音全文识别控制参数。 9686 AsrFullTextConfigure *AsrFullTextConfigureInfoForUpdate `json:"AsrFullTextConfigure,omitempty" name:"AsrFullTextConfigure"` 9687 9688 // 语音关键词识别控制参数。 9689 AsrWordsConfigure *AsrWordsConfigureInfoForUpdate `json:"AsrWordsConfigure,omitempty" name:"AsrWordsConfigure"` 9690 9691 // 物体识别控制参数。 9692 ObjectConfigure *ObjectConfigureInfoForUpdate `json:"ObjectConfigure,omitempty" name:"ObjectConfigure"` 9693 9694 // 截帧间隔,单位为秒,最小值为 0.5 秒。 9695 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 9696 9697 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 9698 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 9699} 9700 9701func (r *ModifyAIRecognitionTemplateRequest) ToJsonString() string { 9702 b, _ := json.Marshal(r) 9703 return string(b) 9704} 9705 9706// FromJsonString It is highly **NOT** recommended to use this function 9707// because it has no param check, nor strict type check 9708func (r *ModifyAIRecognitionTemplateRequest) FromJsonString(s string) error { 9709 f := make(map[string]interface{}) 9710 if err := json.Unmarshal([]byte(s), &f); err != nil { 9711 return err 9712 } 9713 delete(f, "Definition") 9714 delete(f, "Name") 9715 delete(f, "Comment") 9716 delete(f, "HeadTailConfigure") 9717 delete(f, "SegmentConfigure") 9718 delete(f, "FaceConfigure") 9719 delete(f, "OcrFullTextConfigure") 9720 delete(f, "OcrWordsConfigure") 9721 delete(f, "AsrFullTextConfigure") 9722 delete(f, "AsrWordsConfigure") 9723 delete(f, "ObjectConfigure") 9724 delete(f, "ScreenshotInterval") 9725 delete(f, "SubAppId") 9726 if len(f) > 0 { 9727 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAIRecognitionTemplateRequest has unknown keys!", "") 9728 } 9729 return json.Unmarshal([]byte(s), &r) 9730} 9731 9732type ModifyAIRecognitionTemplateResponse struct { 9733 *tchttp.BaseResponse 9734 Response *struct { 9735 9736 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 9737 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 9738 } `json:"Response"` 9739} 9740 9741func (r *ModifyAIRecognitionTemplateResponse) ToJsonString() string { 9742 b, _ := json.Marshal(r) 9743 return string(b) 9744} 9745 9746// FromJsonString It is highly **NOT** recommended to use this function 9747// because it has no param check, nor strict type check 9748func (r *ModifyAIRecognitionTemplateResponse) FromJsonString(s string) error { 9749 return json.Unmarshal([]byte(s), &r) 9750} 9751 9752type ModifyAdaptiveDynamicStreamingTemplateRequest struct { 9753 *tchttp.BaseRequest 9754 9755 // 自适应转码模板唯一标识。 9756 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 9757 9758 // 模板名称,长度限制:64 个字符。 9759 Name *string `json:"Name,omitempty" name:"Name"` 9760 9761 // 自适应转码格式,取值范围: 9762 // <li>HLS。</li> 9763 Format *string `json:"Format,omitempty" name:"Format"` 9764 9765 // 是否禁止视频低码率转高码率,取值范围: 9766 // <li>0:否,</li> 9767 // <li>1:是。</li> 9768 DisableHigherVideoBitrate *uint64 `json:"DisableHigherVideoBitrate,omitempty" name:"DisableHigherVideoBitrate"` 9769 9770 // 是否禁止视频分辨率转高分辨率,取值范围: 9771 // <li>0:否,</li> 9772 // <li>1:是。</li> 9773 DisableHigherVideoResolution *uint64 `json:"DisableHigherVideoResolution,omitempty" name:"DisableHigherVideoResolution"` 9774 9775 // 自适应转码输入流参数信息,最多输入10路流。 9776 // 注意:各个流的帧率必须保持一致;如果不一致,采用第一个流的帧率作为输出帧率。 9777 StreamInfos []*AdaptiveStreamTemplate `json:"StreamInfos,omitempty" name:"StreamInfos"` 9778 9779 // 模板描述信息,长度限制:256 个字符。 9780 Comment *string `json:"Comment,omitempty" name:"Comment"` 9781 9782 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 9783 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 9784} 9785 9786func (r *ModifyAdaptiveDynamicStreamingTemplateRequest) ToJsonString() string { 9787 b, _ := json.Marshal(r) 9788 return string(b) 9789} 9790 9791// FromJsonString It is highly **NOT** recommended to use this function 9792// because it has no param check, nor strict type check 9793func (r *ModifyAdaptiveDynamicStreamingTemplateRequest) FromJsonString(s string) error { 9794 f := make(map[string]interface{}) 9795 if err := json.Unmarshal([]byte(s), &f); err != nil { 9796 return err 9797 } 9798 delete(f, "Definition") 9799 delete(f, "Name") 9800 delete(f, "Format") 9801 delete(f, "DisableHigherVideoBitrate") 9802 delete(f, "DisableHigherVideoResolution") 9803 delete(f, "StreamInfos") 9804 delete(f, "Comment") 9805 delete(f, "SubAppId") 9806 if len(f) > 0 { 9807 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAdaptiveDynamicStreamingTemplateRequest has unknown keys!", "") 9808 } 9809 return json.Unmarshal([]byte(s), &r) 9810} 9811 9812type ModifyAdaptiveDynamicStreamingTemplateResponse struct { 9813 *tchttp.BaseResponse 9814 Response *struct { 9815 9816 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 9817 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 9818 } `json:"Response"` 9819} 9820 9821func (r *ModifyAdaptiveDynamicStreamingTemplateResponse) ToJsonString() string { 9822 b, _ := json.Marshal(r) 9823 return string(b) 9824} 9825 9826// FromJsonString It is highly **NOT** recommended to use this function 9827// because it has no param check, nor strict type check 9828func (r *ModifyAdaptiveDynamicStreamingTemplateResponse) FromJsonString(s string) error { 9829 return json.Unmarshal([]byte(s), &r) 9830} 9831 9832type ModifyAnimatedGraphicsTemplateRequest struct { 9833 *tchttp.BaseRequest 9834 9835 // 转动图模板唯一标识。 9836 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 9837 9838 // 转动图模板名称,长度限制:64 个字符。 9839 Name *string `json:"Name,omitempty" name:"Name"` 9840 9841 // 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 9842 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 9843 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 9844 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 9845 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 9846 // 默认值:0。 9847 Width *uint64 `json:"Width,omitempty" name:"Width"` 9848 9849 // 动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 9850 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 9851 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 9852 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 9853 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 9854 // 默认值:0。 9855 Height *uint64 `json:"Height,omitempty" name:"Height"` 9856 9857 // 分辨率自适应,可选值: 9858 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 9859 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 9860 // 默认值:open。 9861 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 9862 9863 // 动图格式,取值为 gif 和 webp。 9864 Format *string `json:"Format,omitempty" name:"Format"` 9865 9866 // 帧率,取值范围:[1, 30],单位:Hz。 9867 Fps *uint64 `json:"Fps,omitempty" name:"Fps"` 9868 9869 // 图片质量,取值范围:[1, 100],默认值为 75。 9870 Quality *float64 `json:"Quality,omitempty" name:"Quality"` 9871 9872 // 模板描述信息,长度限制:256 个字符。 9873 Comment *string `json:"Comment,omitempty" name:"Comment"` 9874 9875 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 9876 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 9877} 9878 9879func (r *ModifyAnimatedGraphicsTemplateRequest) ToJsonString() string { 9880 b, _ := json.Marshal(r) 9881 return string(b) 9882} 9883 9884// FromJsonString It is highly **NOT** recommended to use this function 9885// because it has no param check, nor strict type check 9886func (r *ModifyAnimatedGraphicsTemplateRequest) FromJsonString(s string) error { 9887 f := make(map[string]interface{}) 9888 if err := json.Unmarshal([]byte(s), &f); err != nil { 9889 return err 9890 } 9891 delete(f, "Definition") 9892 delete(f, "Name") 9893 delete(f, "Width") 9894 delete(f, "Height") 9895 delete(f, "ResolutionAdaptive") 9896 delete(f, "Format") 9897 delete(f, "Fps") 9898 delete(f, "Quality") 9899 delete(f, "Comment") 9900 delete(f, "SubAppId") 9901 if len(f) > 0 { 9902 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyAnimatedGraphicsTemplateRequest has unknown keys!", "") 9903 } 9904 return json.Unmarshal([]byte(s), &r) 9905} 9906 9907type ModifyAnimatedGraphicsTemplateResponse struct { 9908 *tchttp.BaseResponse 9909 Response *struct { 9910 9911 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 9912 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 9913 } `json:"Response"` 9914} 9915 9916func (r *ModifyAnimatedGraphicsTemplateResponse) ToJsonString() string { 9917 b, _ := json.Marshal(r) 9918 return string(b) 9919} 9920 9921// FromJsonString It is highly **NOT** recommended to use this function 9922// because it has no param check, nor strict type check 9923func (r *ModifyAnimatedGraphicsTemplateResponse) FromJsonString(s string) error { 9924 return json.Unmarshal([]byte(s), &r) 9925} 9926 9927type ModifyClassRequest struct { 9928 *tchttp.BaseRequest 9929 9930 // 分类 ID 9931 ClassId *uint64 `json:"ClassId,omitempty" name:"ClassId"` 9932 9933 // 分类名称。长度限制:1-64 个字符。 9934 ClassName *string `json:"ClassName,omitempty" name:"ClassName"` 9935 9936 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 9937 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 9938} 9939 9940func (r *ModifyClassRequest) ToJsonString() string { 9941 b, _ := json.Marshal(r) 9942 return string(b) 9943} 9944 9945// FromJsonString It is highly **NOT** recommended to use this function 9946// because it has no param check, nor strict type check 9947func (r *ModifyClassRequest) FromJsonString(s string) error { 9948 f := make(map[string]interface{}) 9949 if err := json.Unmarshal([]byte(s), &f); err != nil { 9950 return err 9951 } 9952 delete(f, "ClassId") 9953 delete(f, "ClassName") 9954 delete(f, "SubAppId") 9955 if len(f) > 0 { 9956 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyClassRequest has unknown keys!", "") 9957 } 9958 return json.Unmarshal([]byte(s), &r) 9959} 9960 9961type ModifyClassResponse struct { 9962 *tchttp.BaseResponse 9963 Response *struct { 9964 9965 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 9966 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 9967 } `json:"Response"` 9968} 9969 9970func (r *ModifyClassResponse) ToJsonString() string { 9971 b, _ := json.Marshal(r) 9972 return string(b) 9973} 9974 9975// FromJsonString It is highly **NOT** recommended to use this function 9976// because it has no param check, nor strict type check 9977func (r *ModifyClassResponse) FromJsonString(s string) error { 9978 return json.Unmarshal([]byte(s), &r) 9979} 9980 9981type ModifyContentReviewTemplateRequest struct { 9982 *tchttp.BaseRequest 9983 9984 // 内容智能识别模板唯一标识。 9985 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 9986 9987 // 内容智能识别模板名称,长度限制:64 个字符。 9988 Name *string `json:"Name,omitempty" name:"Name"` 9989 9990 // 内容智能识别模板描述信息,长度限制:256 个字符。 9991 Comment *string `json:"Comment,omitempty" name:"Comment"` 9992 9993 // 令人不安全的信息的控制参数。 9994 TerrorismConfigure *TerrorismConfigureInfoForUpdate `json:"TerrorismConfigure,omitempty" name:"TerrorismConfigure"` 9995 9996 // 令人反感的信息的控制参数。 9997 PornConfigure *PornConfigureInfoForUpdate `json:"PornConfigure,omitempty" name:"PornConfigure"` 9998 9999 // 令人不适宜的信息控制参数。 10000 PoliticalConfigure *PoliticalConfigureInfoForUpdate `json:"PoliticalConfigure,omitempty" name:"PoliticalConfigure"` 10001 10002 // 违禁控制参数。违禁内容包括: 10003 // <li>谩骂;</li> 10004 // <li>涉毒违法。</li> 10005 ProhibitedConfigure *ProhibitedConfigureInfoForUpdate `json:"ProhibitedConfigure,omitempty" name:"ProhibitedConfigure"` 10006 10007 // 用户自定义内容智能识别控制参数。 10008 UserDefineConfigure *UserDefineConfigureInfoForUpdate `json:"UserDefineConfigure,omitempty" name:"UserDefineConfigure"` 10009 10010 // 截帧间隔,单位为秒,最小值为 0.5 秒。 10011 ScreenshotInterval *float64 `json:"ScreenshotInterval,omitempty" name:"ScreenshotInterval"` 10012 10013 // 智能识别结果是否进入智能识别墙(对智能识别结果进行人工识别)的开关。 10014 // <li>ON:是;</li> 10015 // <li>OFF:否。</li> 10016 ReviewWallSwitch *string `json:"ReviewWallSwitch,omitempty" name:"ReviewWallSwitch"` 10017 10018 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10019 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10020} 10021 10022func (r *ModifyContentReviewTemplateRequest) ToJsonString() string { 10023 b, _ := json.Marshal(r) 10024 return string(b) 10025} 10026 10027// FromJsonString It is highly **NOT** recommended to use this function 10028// because it has no param check, nor strict type check 10029func (r *ModifyContentReviewTemplateRequest) FromJsonString(s string) error { 10030 f := make(map[string]interface{}) 10031 if err := json.Unmarshal([]byte(s), &f); err != nil { 10032 return err 10033 } 10034 delete(f, "Definition") 10035 delete(f, "Name") 10036 delete(f, "Comment") 10037 delete(f, "TerrorismConfigure") 10038 delete(f, "PornConfigure") 10039 delete(f, "PoliticalConfigure") 10040 delete(f, "ProhibitedConfigure") 10041 delete(f, "UserDefineConfigure") 10042 delete(f, "ScreenshotInterval") 10043 delete(f, "ReviewWallSwitch") 10044 delete(f, "SubAppId") 10045 if len(f) > 0 { 10046 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyContentReviewTemplateRequest has unknown keys!", "") 10047 } 10048 return json.Unmarshal([]byte(s), &r) 10049} 10050 10051type ModifyContentReviewTemplateResponse struct { 10052 *tchttp.BaseResponse 10053 Response *struct { 10054 10055 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10056 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10057 } `json:"Response"` 10058} 10059 10060func (r *ModifyContentReviewTemplateResponse) ToJsonString() string { 10061 b, _ := json.Marshal(r) 10062 return string(b) 10063} 10064 10065// FromJsonString It is highly **NOT** recommended to use this function 10066// because it has no param check, nor strict type check 10067func (r *ModifyContentReviewTemplateResponse) FromJsonString(s string) error { 10068 return json.Unmarshal([]byte(s), &r) 10069} 10070 10071type ModifyEventConfigRequest struct { 10072 *tchttp.BaseRequest 10073 10074 // 接收事件通知的方式。 10075 // <li>PUSH:[HTTP 回调通知](https://cloud.tencent.com/document/product/266/33779);</li> 10076 // <li>PULL:[基于消息队列的可靠通知](https://cloud.tencent.com/document/product/266/33779)。</li> 10077 Mode *string `json:"Mode,omitempty" name:"Mode"` 10078 10079 // 采用 [HTTP 回调通知](https://cloud.tencent.com/document/product/266/33779) 接收方式时,用于接收 3.0 格式回调的地址。 10080 // 注意:如果带 NotificationUrl 参数且值为空字符串时将会清空 3.0 格式回调地址。 10081 NotificationUrl *string `json:"NotificationUrl,omitempty" name:"NotificationUrl"` 10082 10083 // 是否接收 [视频上传完成](https://cloud.tencent.com/document/product/266/7830) 事件通知, 默认 "OFF" 为忽略该事件通知,"ON" 为接收事件通知。 10084 UploadMediaCompleteEventSwitch *string `json:"UploadMediaCompleteEventSwitch,omitempty" name:"UploadMediaCompleteEventSwitch"` 10085 10086 // 是否接收 [视频删除完成](https://cloud.tencent.com/document/product/266/13434) 事件通知, 默认 "OFF" 为忽略该事件通知,"ON" 为接收事件通知。 10087 DeleteMediaCompleteEventSwitch *string `json:"DeleteMediaCompleteEventSwitch,omitempty" name:"DeleteMediaCompleteEventSwitch"` 10088 10089 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10090 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10091} 10092 10093func (r *ModifyEventConfigRequest) ToJsonString() string { 10094 b, _ := json.Marshal(r) 10095 return string(b) 10096} 10097 10098// FromJsonString It is highly **NOT** recommended to use this function 10099// because it has no param check, nor strict type check 10100func (r *ModifyEventConfigRequest) FromJsonString(s string) error { 10101 f := make(map[string]interface{}) 10102 if err := json.Unmarshal([]byte(s), &f); err != nil { 10103 return err 10104 } 10105 delete(f, "Mode") 10106 delete(f, "NotificationUrl") 10107 delete(f, "UploadMediaCompleteEventSwitch") 10108 delete(f, "DeleteMediaCompleteEventSwitch") 10109 delete(f, "SubAppId") 10110 if len(f) > 0 { 10111 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyEventConfigRequest has unknown keys!", "") 10112 } 10113 return json.Unmarshal([]byte(s), &r) 10114} 10115 10116type ModifyEventConfigResponse struct { 10117 *tchttp.BaseResponse 10118 Response *struct { 10119 10120 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10121 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10122 } `json:"Response"` 10123} 10124 10125func (r *ModifyEventConfigResponse) ToJsonString() string { 10126 b, _ := json.Marshal(r) 10127 return string(b) 10128} 10129 10130// FromJsonString It is highly **NOT** recommended to use this function 10131// because it has no param check, nor strict type check 10132func (r *ModifyEventConfigResponse) FromJsonString(s string) error { 10133 return json.Unmarshal([]byte(s), &r) 10134} 10135 10136type ModifyHeadTailTemplateRequest struct { 10137 *tchttp.BaseRequest 10138 10139 // 片头片尾模板号。 10140 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 10141 10142 // 模板名,长度限制 64 个字符。不传代表不修改。 10143 Name *string `json:"Name,omitempty" name:"Name"` 10144 10145 // 模板描述,长度限制 256 个字符。不传代表不修改,传空代表清空。 10146 Comment *string `json:"Comment,omitempty" name:"Comment"` 10147 10148 // 片头候选列表,填写视频的 FileId。转码时将自动选择与正片宽高比最接近的一个片头(相同宽高比时,靠前的候选项优先)。最多支持 5 个候选片头。不传代表不修改,传空数组代表清空。 10149 HeadCandidateSet []*string `json:"HeadCandidateSet,omitempty" name:"HeadCandidateSet"` 10150 10151 // 片尾候选列表,填写视频的 FileId。转码时将自动选择与正片宽高比最接近的一个片尾(相同宽高比时,靠前的候选项优先)。最多支持 5 个候选片头。不传代表不修改,传空数组代表清空。 10152 TailCandidateSet []*string `json:"TailCandidateSet,omitempty" name:"TailCandidateSet"` 10153 10154 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 10155 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 10156 // <li> gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;</li> 10157 // <li> white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;</li> 10158 // <li> black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 10159 // 默认值为不修改。 10160 FillType *string `json:"FillType,omitempty" name:"FillType"` 10161 10162 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10163 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10164} 10165 10166func (r *ModifyHeadTailTemplateRequest) ToJsonString() string { 10167 b, _ := json.Marshal(r) 10168 return string(b) 10169} 10170 10171// FromJsonString It is highly **NOT** recommended to use this function 10172// because it has no param check, nor strict type check 10173func (r *ModifyHeadTailTemplateRequest) FromJsonString(s string) error { 10174 f := make(map[string]interface{}) 10175 if err := json.Unmarshal([]byte(s), &f); err != nil { 10176 return err 10177 } 10178 delete(f, "Definition") 10179 delete(f, "Name") 10180 delete(f, "Comment") 10181 delete(f, "HeadCandidateSet") 10182 delete(f, "TailCandidateSet") 10183 delete(f, "FillType") 10184 delete(f, "SubAppId") 10185 if len(f) > 0 { 10186 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyHeadTailTemplateRequest has unknown keys!", "") 10187 } 10188 return json.Unmarshal([]byte(s), &r) 10189} 10190 10191type ModifyHeadTailTemplateResponse struct { 10192 *tchttp.BaseResponse 10193 Response *struct { 10194 10195 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10196 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10197 } `json:"Response"` 10198} 10199 10200func (r *ModifyHeadTailTemplateResponse) ToJsonString() string { 10201 b, _ := json.Marshal(r) 10202 return string(b) 10203} 10204 10205// FromJsonString It is highly **NOT** recommended to use this function 10206// because it has no param check, nor strict type check 10207func (r *ModifyHeadTailTemplateResponse) FromJsonString(s string) error { 10208 return json.Unmarshal([]byte(s), &r) 10209} 10210 10211type ModifyImageSpriteTemplateRequest struct { 10212 *tchttp.BaseRequest 10213 10214 // 雪碧图模板唯一标识。 10215 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 10216 10217 // 雪碧图模板名称,长度限制:64 个字符。 10218 Name *string `json:"Name,omitempty" name:"Name"` 10219 10220 // 雪碧图中小图的宽度,取值范围: [128, 4096],单位:px。 10221 Width *uint64 `json:"Width,omitempty" name:"Width"` 10222 10223 // 雪碧图中小图的高度,取值范围: [128, 4096],单位:px。 10224 Height *uint64 `json:"Height,omitempty" name:"Height"` 10225 10226 // 分辨率自适应,可选值: 10227 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 10228 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 10229 // 默认值:open。 10230 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 10231 10232 // 采样类型,取值: 10233 // <li>Percent:按百分比。</li> 10234 // <li>Time:按时间间隔。</li> 10235 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 10236 10237 // 采样间隔。 10238 // <li>当 SampleType 为 Percent 时,指定采样间隔的百分比。</li> 10239 // <li>当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。</li> 10240 SampleInterval *uint64 `json:"SampleInterval,omitempty" name:"SampleInterval"` 10241 10242 // 雪碧图中小图的行数。 10243 RowCount *uint64 `json:"RowCount,omitempty" name:"RowCount"` 10244 10245 // 雪碧图中小图的列数。 10246 ColumnCount *uint64 `json:"ColumnCount,omitempty" name:"ColumnCount"` 10247 10248 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 10249 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 10250 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 10251 // 默认值:black 。 10252 FillType *string `json:"FillType,omitempty" name:"FillType"` 10253 10254 // 模板描述信息,长度限制:256 个字符。 10255 Comment *string `json:"Comment,omitempty" name:"Comment"` 10256 10257 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10258 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10259} 10260 10261func (r *ModifyImageSpriteTemplateRequest) ToJsonString() string { 10262 b, _ := json.Marshal(r) 10263 return string(b) 10264} 10265 10266// FromJsonString It is highly **NOT** recommended to use this function 10267// because it has no param check, nor strict type check 10268func (r *ModifyImageSpriteTemplateRequest) FromJsonString(s string) error { 10269 f := make(map[string]interface{}) 10270 if err := json.Unmarshal([]byte(s), &f); err != nil { 10271 return err 10272 } 10273 delete(f, "Definition") 10274 delete(f, "Name") 10275 delete(f, "Width") 10276 delete(f, "Height") 10277 delete(f, "ResolutionAdaptive") 10278 delete(f, "SampleType") 10279 delete(f, "SampleInterval") 10280 delete(f, "RowCount") 10281 delete(f, "ColumnCount") 10282 delete(f, "FillType") 10283 delete(f, "Comment") 10284 delete(f, "SubAppId") 10285 if len(f) > 0 { 10286 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyImageSpriteTemplateRequest has unknown keys!", "") 10287 } 10288 return json.Unmarshal([]byte(s), &r) 10289} 10290 10291type ModifyImageSpriteTemplateResponse struct { 10292 *tchttp.BaseResponse 10293 Response *struct { 10294 10295 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10296 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10297 } `json:"Response"` 10298} 10299 10300func (r *ModifyImageSpriteTemplateResponse) ToJsonString() string { 10301 b, _ := json.Marshal(r) 10302 return string(b) 10303} 10304 10305// FromJsonString It is highly **NOT** recommended to use this function 10306// because it has no param check, nor strict type check 10307func (r *ModifyImageSpriteTemplateResponse) FromJsonString(s string) error { 10308 return json.Unmarshal([]byte(s), &r) 10309} 10310 10311type ModifyMediaInfoRequest struct { 10312 *tchttp.BaseRequest 10313 10314 // 媒体文件唯一标识。 10315 FileId *string `json:"FileId,omitempty" name:"FileId"` 10316 10317 // 媒体文件名称,最长 64 个字符。 10318 Name *string `json:"Name,omitempty" name:"Name"` 10319 10320 // 媒体文件描述,最长 128 个字符。 10321 Description *string `json:"Description,omitempty" name:"Description"` 10322 10323 // 媒体文件分类 ID。 10324 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 10325 10326 // 媒体文件过期时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。填“9999-12-31T23:59:59Z”表示永不过期。过期后该媒体文件及其相关资源(转码结果、雪碧图等)将被永久删除。 10327 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 10328 10329 // 视频封面图片文件(如 jpeg, png 等)进行 [Base64](https://tools.ietf.org/html/rfc4648) 编码后的字符串,仅支持 gif、jpeg、png 三种图片格式。 10330 CoverData *string `json:"CoverData,omitempty" name:"CoverData"` 10331 10332 // 新增的一组视频打点信息,如果某个偏移时间已存在打点,则会进行覆盖操作,单个媒体文件最多 100 个打点信息。同一个请求里,AddKeyFrameDescs 的时间偏移参数必须与 DeleteKeyFrameDescs 都不同。 10333 AddKeyFrameDescs []*MediaKeyFrameDescItem `json:"AddKeyFrameDescs,omitempty" name:"AddKeyFrameDescs"` 10334 10335 // 要删除的一组视频打点信息的时间偏移,单位:秒。同一个请求里,AddKeyFrameDescs 的时间偏移参数必须与 DeleteKeyFrameDescs 都不同。 10336 DeleteKeyFrameDescs []*float64 `json:"DeleteKeyFrameDescs,omitempty" name:"DeleteKeyFrameDescs"` 10337 10338 // 取值 1 表示清空视频打点信息,其他值无意义。 10339 // 同一个请求里,ClearKeyFrameDescs 与 AddKeyFrameDescs 不能同时出现。 10340 ClearKeyFrameDescs *int64 `json:"ClearKeyFrameDescs,omitempty" name:"ClearKeyFrameDescs"` 10341 10342 // 新增的一组标签,单个媒体文件最多 16 个标签,单个标签最多 16 个字符。同一个请求里,AddTags 参数必须与 DeleteTags 都不同。 10343 AddTags []*string `json:"AddTags,omitempty" name:"AddTags"` 10344 10345 // 要删除的一组标签。同一个请求里,AddTags 参数必须与 DeleteTags 都不同。 10346 DeleteTags []*string `json:"DeleteTags,omitempty" name:"DeleteTags"` 10347 10348 // 取值 1 表示清空媒体文件所有标签,其他值无意义。 10349 // 同一个请求里,ClearTags 与 AddTags 不能同时出现。 10350 ClearTags *int64 `json:"ClearTags,omitempty" name:"ClearTags"` 10351 10352 // 新增一组字幕。单个媒体文件最多 16 个字幕。同一个请求中,AddSubtitles 中指定的字幕 Id 必须与 DeleteSubtitleIds 都不相同。 10353 AddSubtitles []*MediaSubtitleInput `json:"AddSubtitles,omitempty" name:"AddSubtitles"` 10354 10355 // 待删除字幕的唯一标识。同一个请求中,AddSubtitles 中指定的字幕 Id 必须与 DeleteSubtitleIds 都不相同。 10356 DeleteSubtitleIds []*string `json:"DeleteSubtitleIds,omitempty" name:"DeleteSubtitleIds"` 10357 10358 // 取值 1 表示清空媒体文件所有的字幕信息,其他值无意义。 10359 // 同一个请求里,ClearSubtitles 与 AddSubtitles不能同时出现。 10360 ClearSubtitles *int64 `json:"ClearSubtitles,omitempty" name:"ClearSubtitles"` 10361 10362 // 点播[子应用](/document/product/266/14574) ID 。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10363 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10364} 10365 10366func (r *ModifyMediaInfoRequest) ToJsonString() string { 10367 b, _ := json.Marshal(r) 10368 return string(b) 10369} 10370 10371// FromJsonString It is highly **NOT** recommended to use this function 10372// because it has no param check, nor strict type check 10373func (r *ModifyMediaInfoRequest) FromJsonString(s string) error { 10374 f := make(map[string]interface{}) 10375 if err := json.Unmarshal([]byte(s), &f); err != nil { 10376 return err 10377 } 10378 delete(f, "FileId") 10379 delete(f, "Name") 10380 delete(f, "Description") 10381 delete(f, "ClassId") 10382 delete(f, "ExpireTime") 10383 delete(f, "CoverData") 10384 delete(f, "AddKeyFrameDescs") 10385 delete(f, "DeleteKeyFrameDescs") 10386 delete(f, "ClearKeyFrameDescs") 10387 delete(f, "AddTags") 10388 delete(f, "DeleteTags") 10389 delete(f, "ClearTags") 10390 delete(f, "AddSubtitles") 10391 delete(f, "DeleteSubtitleIds") 10392 delete(f, "ClearSubtitles") 10393 delete(f, "SubAppId") 10394 if len(f) > 0 { 10395 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyMediaInfoRequest has unknown keys!", "") 10396 } 10397 return json.Unmarshal([]byte(s), &r) 10398} 10399 10400type ModifyMediaInfoResponse struct { 10401 *tchttp.BaseResponse 10402 Response *struct { 10403 10404 // 新的视频封面 URL。 10405 // * 注意:仅当请求携带 CoverData 时此返回值有效。 * 10406 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 10407 10408 // 新增的字幕信息。 10409 AddedSubtitleSet []*MediaSubtitleItem `json:"AddedSubtitleSet,omitempty" name:"AddedSubtitleSet"` 10410 10411 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10412 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10413 } `json:"Response"` 10414} 10415 10416func (r *ModifyMediaInfoResponse) ToJsonString() string { 10417 b, _ := json.Marshal(r) 10418 return string(b) 10419} 10420 10421// FromJsonString It is highly **NOT** recommended to use this function 10422// because it has no param check, nor strict type check 10423func (r *ModifyMediaInfoResponse) FromJsonString(s string) error { 10424 return json.Unmarshal([]byte(s), &r) 10425} 10426 10427type ModifyPersonSampleRequest struct { 10428 *tchttp.BaseRequest 10429 10430 // 素材 ID。 10431 PersonId *string `json:"PersonId,omitempty" name:"PersonId"` 10432 10433 // 名称,长度限制:128 个字符。 10434 Name *string `json:"Name,omitempty" name:"Name"` 10435 10436 // 描述,长度限制:1024 个字符。 10437 Description *string `json:"Description,omitempty" name:"Description"` 10438 10439 // 素材应用场景,可选值: 10440 // 1. Recognition:用于内容识别,等价于 Recognition.Face。 10441 // 2. Review:用于不适宜的内容识别,等价于 Review.Face。 10442 // 3. All:用于内容识别、不适宜的内容识别,等价于 1+2。 10443 Usages []*string `json:"Usages,omitempty" name:"Usages"` 10444 10445 // 五官操作信息。 10446 FaceOperationInfo *AiSampleFaceOperation `json:"FaceOperationInfo,omitempty" name:"FaceOperationInfo"` 10447 10448 // 标签操作信息。 10449 TagOperationInfo *AiSampleTagOperation `json:"TagOperationInfo,omitempty" name:"TagOperationInfo"` 10450 10451 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10452 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10453} 10454 10455func (r *ModifyPersonSampleRequest) ToJsonString() string { 10456 b, _ := json.Marshal(r) 10457 return string(b) 10458} 10459 10460// FromJsonString It is highly **NOT** recommended to use this function 10461// because it has no param check, nor strict type check 10462func (r *ModifyPersonSampleRequest) FromJsonString(s string) error { 10463 f := make(map[string]interface{}) 10464 if err := json.Unmarshal([]byte(s), &f); err != nil { 10465 return err 10466 } 10467 delete(f, "PersonId") 10468 delete(f, "Name") 10469 delete(f, "Description") 10470 delete(f, "Usages") 10471 delete(f, "FaceOperationInfo") 10472 delete(f, "TagOperationInfo") 10473 delete(f, "SubAppId") 10474 if len(f) > 0 { 10475 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyPersonSampleRequest has unknown keys!", "") 10476 } 10477 return json.Unmarshal([]byte(s), &r) 10478} 10479 10480type ModifyPersonSampleResponse struct { 10481 *tchttp.BaseResponse 10482 Response *struct { 10483 10484 // 素材信息。 10485 Person *AiSamplePerson `json:"Person,omitempty" name:"Person"` 10486 10487 // 处理失败的五官信息。 10488 // 注意:此字段可能返回 null,表示取不到有效值。 10489 FailFaceInfoSet []*AiSampleFailFaceInfo `json:"FailFaceInfoSet,omitempty" name:"FailFaceInfoSet"` 10490 10491 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10492 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10493 } `json:"Response"` 10494} 10495 10496func (r *ModifyPersonSampleResponse) ToJsonString() string { 10497 b, _ := json.Marshal(r) 10498 return string(b) 10499} 10500 10501// FromJsonString It is highly **NOT** recommended to use this function 10502// because it has no param check, nor strict type check 10503func (r *ModifyPersonSampleResponse) FromJsonString(s string) error { 10504 return json.Unmarshal([]byte(s), &r) 10505} 10506 10507type ModifySampleSnapshotTemplateRequest struct { 10508 *tchttp.BaseRequest 10509 10510 // 采样截图模板唯一标识。 10511 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 10512 10513 // 采样截图模板名称,长度限制:64 个字符。 10514 Name *string `json:"Name,omitempty" name:"Name"` 10515 10516 // 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 10517 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 10518 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 10519 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 10520 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 10521 // 默认值:0。 10522 Width *uint64 `json:"Width,omitempty" name:"Width"` 10523 10524 // 截图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 10525 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 10526 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 10527 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 10528 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 10529 // 默认值:0。 10530 Height *uint64 `json:"Height,omitempty" name:"Height"` 10531 10532 // 分辨率自适应,可选值: 10533 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 10534 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 10535 // 默认值:open。 10536 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 10537 10538 // 采样截图类型,取值: 10539 // <li>Percent:按百分比。</li> 10540 // <li>Time:按时间间隔。</li> 10541 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 10542 10543 // 采样间隔。 10544 // <li>当 SampleType 为 Percent 时,指定采样间隔的百分比。</li> 10545 // <li>当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。</li> 10546 SampleInterval *uint64 `json:"SampleInterval,omitempty" name:"SampleInterval"` 10547 10548 // 图片格式,取值为 jpg 和 png。 10549 Format *string `json:"Format,omitempty" name:"Format"` 10550 10551 // 模板描述信息,长度限制:256 个字符。 10552 Comment *string `json:"Comment,omitempty" name:"Comment"` 10553 10554 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10555 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10556 10557 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 10558 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 10559 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 10560 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 10561 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li> 10562 // 默认值:black 。 10563 FillType *string `json:"FillType,omitempty" name:"FillType"` 10564} 10565 10566func (r *ModifySampleSnapshotTemplateRequest) ToJsonString() string { 10567 b, _ := json.Marshal(r) 10568 return string(b) 10569} 10570 10571// FromJsonString It is highly **NOT** recommended to use this function 10572// because it has no param check, nor strict type check 10573func (r *ModifySampleSnapshotTemplateRequest) FromJsonString(s string) error { 10574 f := make(map[string]interface{}) 10575 if err := json.Unmarshal([]byte(s), &f); err != nil { 10576 return err 10577 } 10578 delete(f, "Definition") 10579 delete(f, "Name") 10580 delete(f, "Width") 10581 delete(f, "Height") 10582 delete(f, "ResolutionAdaptive") 10583 delete(f, "SampleType") 10584 delete(f, "SampleInterval") 10585 delete(f, "Format") 10586 delete(f, "Comment") 10587 delete(f, "SubAppId") 10588 delete(f, "FillType") 10589 if len(f) > 0 { 10590 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySampleSnapshotTemplateRequest has unknown keys!", "") 10591 } 10592 return json.Unmarshal([]byte(s), &r) 10593} 10594 10595type ModifySampleSnapshotTemplateResponse struct { 10596 *tchttp.BaseResponse 10597 Response *struct { 10598 10599 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10600 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10601 } `json:"Response"` 10602} 10603 10604func (r *ModifySampleSnapshotTemplateResponse) ToJsonString() string { 10605 b, _ := json.Marshal(r) 10606 return string(b) 10607} 10608 10609// FromJsonString It is highly **NOT** recommended to use this function 10610// because it has no param check, nor strict type check 10611func (r *ModifySampleSnapshotTemplateResponse) FromJsonString(s string) error { 10612 return json.Unmarshal([]byte(s), &r) 10613} 10614 10615type ModifySnapshotByTimeOffsetTemplateRequest struct { 10616 *tchttp.BaseRequest 10617 10618 // 指定时间点截图模板唯一标识。 10619 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 10620 10621 // 指定时间点截图模板名称,长度限制:64 个字符。 10622 Name *string `json:"Name,omitempty" name:"Name"` 10623 10624 // 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 10625 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 10626 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 10627 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 10628 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 10629 // 默认值:0。 10630 Width *uint64 `json:"Width,omitempty" name:"Width"` 10631 10632 // 截图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 10633 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 10634 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 10635 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 10636 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 10637 // 默认值:0。 10638 Height *uint64 `json:"Height,omitempty" name:"Height"` 10639 10640 // 分辨率自适应,可选值: 10641 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 10642 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 10643 // 默认值:open。 10644 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 10645 10646 // 图片格式,取值可以为 jpg 和 png。 10647 Format *string `json:"Format,omitempty" name:"Format"` 10648 10649 // 模板描述信息,长度限制:256 个字符。 10650 Comment *string `json:"Comment,omitempty" name:"Comment"` 10651 10652 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10653 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10654 10655 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 10656 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 10657 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 10658 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 10659 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li> 10660 // 默认值:black 。 10661 FillType *string `json:"FillType,omitempty" name:"FillType"` 10662} 10663 10664func (r *ModifySnapshotByTimeOffsetTemplateRequest) ToJsonString() string { 10665 b, _ := json.Marshal(r) 10666 return string(b) 10667} 10668 10669// FromJsonString It is highly **NOT** recommended to use this function 10670// because it has no param check, nor strict type check 10671func (r *ModifySnapshotByTimeOffsetTemplateRequest) FromJsonString(s string) error { 10672 f := make(map[string]interface{}) 10673 if err := json.Unmarshal([]byte(s), &f); err != nil { 10674 return err 10675 } 10676 delete(f, "Definition") 10677 delete(f, "Name") 10678 delete(f, "Width") 10679 delete(f, "Height") 10680 delete(f, "ResolutionAdaptive") 10681 delete(f, "Format") 10682 delete(f, "Comment") 10683 delete(f, "SubAppId") 10684 delete(f, "FillType") 10685 if len(f) > 0 { 10686 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySnapshotByTimeOffsetTemplateRequest has unknown keys!", "") 10687 } 10688 return json.Unmarshal([]byte(s), &r) 10689} 10690 10691type ModifySnapshotByTimeOffsetTemplateResponse struct { 10692 *tchttp.BaseResponse 10693 Response *struct { 10694 10695 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10696 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10697 } `json:"Response"` 10698} 10699 10700func (r *ModifySnapshotByTimeOffsetTemplateResponse) ToJsonString() string { 10701 b, _ := json.Marshal(r) 10702 return string(b) 10703} 10704 10705// FromJsonString It is highly **NOT** recommended to use this function 10706// because it has no param check, nor strict type check 10707func (r *ModifySnapshotByTimeOffsetTemplateResponse) FromJsonString(s string) error { 10708 return json.Unmarshal([]byte(s), &r) 10709} 10710 10711type ModifySubAppIdInfoRequest struct { 10712 *tchttp.BaseRequest 10713 10714 // 子应用 ID。 10715 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10716 10717 // 子应用名称,长度限制:40个字符。 10718 Name *string `json:"Name,omitempty" name:"Name"` 10719 10720 // 子应用简介,长度限制: 300个字符。 10721 Description *string `json:"Description,omitempty" name:"Description"` 10722} 10723 10724func (r *ModifySubAppIdInfoRequest) ToJsonString() string { 10725 b, _ := json.Marshal(r) 10726 return string(b) 10727} 10728 10729// FromJsonString It is highly **NOT** recommended to use this function 10730// because it has no param check, nor strict type check 10731func (r *ModifySubAppIdInfoRequest) FromJsonString(s string) error { 10732 f := make(map[string]interface{}) 10733 if err := json.Unmarshal([]byte(s), &f); err != nil { 10734 return err 10735 } 10736 delete(f, "SubAppId") 10737 delete(f, "Name") 10738 delete(f, "Description") 10739 if len(f) > 0 { 10740 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySubAppIdInfoRequest has unknown keys!", "") 10741 } 10742 return json.Unmarshal([]byte(s), &r) 10743} 10744 10745type ModifySubAppIdInfoResponse struct { 10746 *tchttp.BaseResponse 10747 Response *struct { 10748 10749 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10750 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10751 } `json:"Response"` 10752} 10753 10754func (r *ModifySubAppIdInfoResponse) ToJsonString() string { 10755 b, _ := json.Marshal(r) 10756 return string(b) 10757} 10758 10759// FromJsonString It is highly **NOT** recommended to use this function 10760// because it has no param check, nor strict type check 10761func (r *ModifySubAppIdInfoResponse) FromJsonString(s string) error { 10762 return json.Unmarshal([]byte(s), &r) 10763} 10764 10765type ModifySubAppIdStatusRequest struct { 10766 *tchttp.BaseRequest 10767 10768 // 子应用 ID。 10769 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10770 10771 // 子应用状态,取值范围: 10772 // <li>On:启用。</li> 10773 // <li>Off:停用。</li> 10774 // <li>Destroyed:销毁。</li> 10775 // 当前状态如果是 Destoying ,不能进行启用操作,需要等待销毁完成后才能重新启用。 10776 Status *string `json:"Status,omitempty" name:"Status"` 10777} 10778 10779func (r *ModifySubAppIdStatusRequest) ToJsonString() string { 10780 b, _ := json.Marshal(r) 10781 return string(b) 10782} 10783 10784// FromJsonString It is highly **NOT** recommended to use this function 10785// because it has no param check, nor strict type check 10786func (r *ModifySubAppIdStatusRequest) FromJsonString(s string) error { 10787 f := make(map[string]interface{}) 10788 if err := json.Unmarshal([]byte(s), &f); err != nil { 10789 return err 10790 } 10791 delete(f, "SubAppId") 10792 delete(f, "Status") 10793 if len(f) > 0 { 10794 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySubAppIdStatusRequest has unknown keys!", "") 10795 } 10796 return json.Unmarshal([]byte(s), &r) 10797} 10798 10799type ModifySubAppIdStatusResponse struct { 10800 *tchttp.BaseResponse 10801 Response *struct { 10802 10803 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10804 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10805 } `json:"Response"` 10806} 10807 10808func (r *ModifySubAppIdStatusResponse) ToJsonString() string { 10809 b, _ := json.Marshal(r) 10810 return string(b) 10811} 10812 10813// FromJsonString It is highly **NOT** recommended to use this function 10814// because it has no param check, nor strict type check 10815func (r *ModifySubAppIdStatusResponse) FromJsonString(s string) error { 10816 return json.Unmarshal([]byte(s), &r) 10817} 10818 10819type ModifySuperPlayerConfigRequest struct { 10820 *tchttp.BaseRequest 10821 10822 // 播放器配置名称。 10823 Name *string `json:"Name,omitempty" name:"Name"` 10824 10825 // 播放 DRM 保护的自适应码流开关: 10826 // <li>ON:开启,表示仅播放 DRM 保护的自适应码流输出;</li> 10827 // <li>OFF:关闭,表示播放未加密的自适应码流输出。</li> 10828 DrmSwitch *string `json:"DrmSwitch,omitempty" name:"DrmSwitch"` 10829 10830 // 允许输出的未加密的自适应码流模板 ID。 10831 AdaptiveDynamicStreamingDefinition *uint64 `json:"AdaptiveDynamicStreamingDefinition,omitempty" name:"AdaptiveDynamicStreamingDefinition"` 10832 10833 // 允许输出的 DRM 自适应码流模板内容。 10834 DrmStreamingsInfo *DrmStreamingsInfoForUpdate `json:"DrmStreamingsInfo,omitempty" name:"DrmStreamingsInfo"` 10835 10836 // 允许输出的雪碧图模板 ID。 10837 ImageSpriteDefinition *uint64 `json:"ImageSpriteDefinition,omitempty" name:"ImageSpriteDefinition"` 10838 10839 // 播放器对不于不同分辨率的子流展示名字。 10840 ResolutionNames []*ResolutionNameInfo `json:"ResolutionNames,omitempty" name:"ResolutionNames"` 10841 10842 // 播放时使用的域名。填 Default 表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 10843 Domain *string `json:"Domain,omitempty" name:"Domain"` 10844 10845 // 播放时使用的 Scheme。取值范围: 10846 // <li>Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;</li> 10847 // <li>HTTP;</li> 10848 // <li>HTTPS。</li> 10849 Scheme *string `json:"Scheme,omitempty" name:"Scheme"` 10850 10851 // 模板描述信息,长度限制:256 个字符。 10852 Comment *string `json:"Comment,omitempty" name:"Comment"` 10853 10854 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10855 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10856} 10857 10858func (r *ModifySuperPlayerConfigRequest) ToJsonString() string { 10859 b, _ := json.Marshal(r) 10860 return string(b) 10861} 10862 10863// FromJsonString It is highly **NOT** recommended to use this function 10864// because it has no param check, nor strict type check 10865func (r *ModifySuperPlayerConfigRequest) FromJsonString(s string) error { 10866 f := make(map[string]interface{}) 10867 if err := json.Unmarshal([]byte(s), &f); err != nil { 10868 return err 10869 } 10870 delete(f, "Name") 10871 delete(f, "DrmSwitch") 10872 delete(f, "AdaptiveDynamicStreamingDefinition") 10873 delete(f, "DrmStreamingsInfo") 10874 delete(f, "ImageSpriteDefinition") 10875 delete(f, "ResolutionNames") 10876 delete(f, "Domain") 10877 delete(f, "Scheme") 10878 delete(f, "Comment") 10879 delete(f, "SubAppId") 10880 if len(f) > 0 { 10881 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySuperPlayerConfigRequest has unknown keys!", "") 10882 } 10883 return json.Unmarshal([]byte(s), &r) 10884} 10885 10886type ModifySuperPlayerConfigResponse struct { 10887 *tchttp.BaseResponse 10888 Response *struct { 10889 10890 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10891 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10892 } `json:"Response"` 10893} 10894 10895func (r *ModifySuperPlayerConfigResponse) ToJsonString() string { 10896 b, _ := json.Marshal(r) 10897 return string(b) 10898} 10899 10900// FromJsonString It is highly **NOT** recommended to use this function 10901// because it has no param check, nor strict type check 10902func (r *ModifySuperPlayerConfigResponse) FromJsonString(s string) error { 10903 return json.Unmarshal([]byte(s), &r) 10904} 10905 10906type ModifyTranscodeTemplateRequest struct { 10907 *tchttp.BaseRequest 10908 10909 // 转码模板唯一标识。 10910 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 10911 10912 // 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。 10913 Container *string `json:"Container,omitempty" name:"Container"` 10914 10915 // 转码模板名称,长度限制:64 个字符。 10916 Name *string `json:"Name,omitempty" name:"Name"` 10917 10918 // 模板描述信息,长度限制:256 个字符。 10919 Comment *string `json:"Comment,omitempty" name:"Comment"` 10920 10921 // 是否去除视频数据,可选值: 10922 // <li>0:保留</li> 10923 // <li>1:去除</li> 10924 RemoveVideo *int64 `json:"RemoveVideo,omitempty" name:"RemoveVideo"` 10925 10926 // 是否去除音频数据,可选值: 10927 // <li>0:保留</li> 10928 // <li>1:去除</li> 10929 RemoveAudio *int64 `json:"RemoveAudio,omitempty" name:"RemoveAudio"` 10930 10931 // 视频流配置参数。 10932 VideoTemplate *VideoTemplateInfoForUpdate `json:"VideoTemplate,omitempty" name:"VideoTemplate"` 10933 10934 // 音频流配置参数。 10935 AudioTemplate *AudioTemplateInfoForUpdate `json:"AudioTemplate,omitempty" name:"AudioTemplate"` 10936 10937 // 极速高清转码参数。 10938 TEHDConfig *TEHDConfigForUpdate `json:"TEHDConfig,omitempty" name:"TEHDConfig"` 10939 10940 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 10941 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 10942} 10943 10944func (r *ModifyTranscodeTemplateRequest) ToJsonString() string { 10945 b, _ := json.Marshal(r) 10946 return string(b) 10947} 10948 10949// FromJsonString It is highly **NOT** recommended to use this function 10950// because it has no param check, nor strict type check 10951func (r *ModifyTranscodeTemplateRequest) FromJsonString(s string) error { 10952 f := make(map[string]interface{}) 10953 if err := json.Unmarshal([]byte(s), &f); err != nil { 10954 return err 10955 } 10956 delete(f, "Definition") 10957 delete(f, "Container") 10958 delete(f, "Name") 10959 delete(f, "Comment") 10960 delete(f, "RemoveVideo") 10961 delete(f, "RemoveAudio") 10962 delete(f, "VideoTemplate") 10963 delete(f, "AudioTemplate") 10964 delete(f, "TEHDConfig") 10965 delete(f, "SubAppId") 10966 if len(f) > 0 { 10967 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyTranscodeTemplateRequest has unknown keys!", "") 10968 } 10969 return json.Unmarshal([]byte(s), &r) 10970} 10971 10972type ModifyTranscodeTemplateResponse struct { 10973 *tchttp.BaseResponse 10974 Response *struct { 10975 10976 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 10977 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 10978 } `json:"Response"` 10979} 10980 10981func (r *ModifyTranscodeTemplateResponse) ToJsonString() string { 10982 b, _ := json.Marshal(r) 10983 return string(b) 10984} 10985 10986// FromJsonString It is highly **NOT** recommended to use this function 10987// because it has no param check, nor strict type check 10988func (r *ModifyTranscodeTemplateResponse) FromJsonString(s string) error { 10989 return json.Unmarshal([]byte(s), &r) 10990} 10991 10992type ModifyWatermarkTemplateRequest struct { 10993 *tchttp.BaseRequest 10994 10995 // 水印模板唯一标识。 10996 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 10997 10998 // 水印模板名称,长度限制:64 个字符。 10999 Name *string `json:"Name,omitempty" name:"Name"` 11000 11001 // 模板描述信息,长度限制:256 个字符。 11002 Comment *string `json:"Comment,omitempty" name:"Comment"` 11003 11004 // 原点位置,可选值: 11005 // <li>TopLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角;</li> 11006 // <li>TopRight:表示坐标原点位于视频图像的右上角,水印原点为图片或文字的右上角;</li> 11007 // <li>BottomLeft:表示坐标原点位于视频图像的左下角,水印原点为图片或文字的左下角;</li> 11008 // <li>BottomRight:表示坐标原点位于视频图像的右下角,水印原点为图片或文字的右下角。</li> 11009 CoordinateOrigin *string `json:"CoordinateOrigin,omitempty" name:"CoordinateOrigin"` 11010 11011 // 水印原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式: 11012 // <li>当字符串以 % 结尾,表示水印 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;</li> 11013 // <li>当字符串以 px 结尾,表示水印 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。</li> 11014 XPos *string `json:"XPos,omitempty" name:"XPos"` 11015 11016 // 水印原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式: 11017 // <li>当字符串以 % 结尾,表示水印 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;</li> 11018 // <li>当字符串以 px 结尾,表示水印 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。</li> 11019 YPos *string `json:"YPos,omitempty" name:"YPos"` 11020 11021 // 图片水印模板,该字段仅对图片水印模板有效。 11022 ImageTemplate *ImageWatermarkInputForUpdate `json:"ImageTemplate,omitempty" name:"ImageTemplate"` 11023 11024 // 文字水印模板,该字段仅对文字水印模板有效。 11025 TextTemplate *TextWatermarkTemplateInputForUpdate `json:"TextTemplate,omitempty" name:"TextTemplate"` 11026 11027 // SVG 水印模板,该字段仅对 SVG 水印模板有效。 11028 SvgTemplate *SvgWatermarkInputForUpdate `json:"SvgTemplate,omitempty" name:"SvgTemplate"` 11029 11030 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 11031 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 11032} 11033 11034func (r *ModifyWatermarkTemplateRequest) ToJsonString() string { 11035 b, _ := json.Marshal(r) 11036 return string(b) 11037} 11038 11039// FromJsonString It is highly **NOT** recommended to use this function 11040// because it has no param check, nor strict type check 11041func (r *ModifyWatermarkTemplateRequest) FromJsonString(s string) error { 11042 f := make(map[string]interface{}) 11043 if err := json.Unmarshal([]byte(s), &f); err != nil { 11044 return err 11045 } 11046 delete(f, "Definition") 11047 delete(f, "Name") 11048 delete(f, "Comment") 11049 delete(f, "CoordinateOrigin") 11050 delete(f, "XPos") 11051 delete(f, "YPos") 11052 delete(f, "ImageTemplate") 11053 delete(f, "TextTemplate") 11054 delete(f, "SvgTemplate") 11055 delete(f, "SubAppId") 11056 if len(f) > 0 { 11057 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyWatermarkTemplateRequest has unknown keys!", "") 11058 } 11059 return json.Unmarshal([]byte(s), &r) 11060} 11061 11062type ModifyWatermarkTemplateResponse struct { 11063 *tchttp.BaseResponse 11064 Response *struct { 11065 11066 // 图片水印地址,仅当 ImageTemplate.ImageContent 非空,该字段有值。 11067 ImageUrl *string `json:"ImageUrl,omitempty" name:"ImageUrl"` 11068 11069 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 11070 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 11071 } `json:"Response"` 11072} 11073 11074func (r *ModifyWatermarkTemplateResponse) ToJsonString() string { 11075 b, _ := json.Marshal(r) 11076 return string(b) 11077} 11078 11079// FromJsonString It is highly **NOT** recommended to use this function 11080// because it has no param check, nor strict type check 11081func (r *ModifyWatermarkTemplateResponse) FromJsonString(s string) error { 11082 return json.Unmarshal([]byte(s), &r) 11083} 11084 11085type ModifyWordSampleRequest struct { 11086 *tchttp.BaseRequest 11087 11088 // 关键词,长度限制:128 个字符。 11089 Keyword *string `json:"Keyword,omitempty" name:"Keyword"` 11090 11091 // <b>关键词应用场景,可选值:</b> 11092 // 1. Recognition.Ocr:通过光学字符识别技术,进行内容识别; 11093 // 2. Recognition.Asr:通过音频识别技术,进行内容识别; 11094 // 3. Review.Ocr:通过光学字符识别技术,进行不适宜的内容识别; 11095 // 4. Review.Asr:通过音频识别技术,进行不适宜的内容识别; 11096 // <b>可合并简写为:</b> 11097 // 5. Recognition:通过光学字符识别技术、音频识别技术,进行内容识别,等价于 1+2; 11098 // 6. Review:通过光学字符识别技术、音频识别技术,进行不适宜的内容识别,等价于 3+4; 11099 // 7. All:包含以上全部,等价于 1+2+3+4。 11100 Usages []*string `json:"Usages,omitempty" name:"Usages"` 11101 11102 // 标签操作信息。 11103 TagOperationInfo *AiSampleTagOperation `json:"TagOperationInfo,omitempty" name:"TagOperationInfo"` 11104 11105 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 11106 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 11107} 11108 11109func (r *ModifyWordSampleRequest) ToJsonString() string { 11110 b, _ := json.Marshal(r) 11111 return string(b) 11112} 11113 11114// FromJsonString It is highly **NOT** recommended to use this function 11115// because it has no param check, nor strict type check 11116func (r *ModifyWordSampleRequest) FromJsonString(s string) error { 11117 f := make(map[string]interface{}) 11118 if err := json.Unmarshal([]byte(s), &f); err != nil { 11119 return err 11120 } 11121 delete(f, "Keyword") 11122 delete(f, "Usages") 11123 delete(f, "TagOperationInfo") 11124 delete(f, "SubAppId") 11125 if len(f) > 0 { 11126 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyWordSampleRequest has unknown keys!", "") 11127 } 11128 return json.Unmarshal([]byte(s), &r) 11129} 11130 11131type ModifyWordSampleResponse struct { 11132 *tchttp.BaseResponse 11133 Response *struct { 11134 11135 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 11136 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 11137 } `json:"Response"` 11138} 11139 11140func (r *ModifyWordSampleResponse) ToJsonString() string { 11141 b, _ := json.Marshal(r) 11142 return string(b) 11143} 11144 11145// FromJsonString It is highly **NOT** recommended to use this function 11146// because it has no param check, nor strict type check 11147func (r *ModifyWordSampleResponse) FromJsonString(s string) error { 11148 return json.Unmarshal([]byte(s), &r) 11149} 11150 11151type MosaicInput struct { 11152 11153 // 原点位置,目前仅支持: 11154 // <li>TopLeft:表示坐标原点位于视频图像左上角,马赛克原点为图片或文字的左上角。</li> 11155 // 默认值:TopLeft。 11156 CoordinateOrigin *string `json:"CoordinateOrigin,omitempty" name:"CoordinateOrigin"` 11157 11158 // 马赛克原点距离视频图像坐标原点的水平位置。支持 %、px 两种格式: 11159 // <li>当字符串以 % 结尾,表示马赛克 XPos 为视频宽度指定百分比,如 10% 表示 XPos 为视频宽度的 10%;</li> 11160 // <li>当字符串以 px 结尾,表示马赛克 XPos 为指定像素,如 100px 表示 XPos 为 100 像素。</li> 11161 // 默认值:0px。 11162 XPos *string `json:"XPos,omitempty" name:"XPos"` 11163 11164 // 马赛克原点距离视频图像坐标原点的垂直位置。支持 %、px 两种格式: 11165 // <li>当字符串以 % 结尾,表示马赛克 YPos 为视频高度指定百分比,如 10% 表示 YPos 为视频高度的 10%;</li> 11166 // <li>当字符串以 px 结尾,表示马赛克 YPos 为指定像素,如 100px 表示 YPos 为 100 像素。</li> 11167 // 默认值:0px。 11168 YPos *string `json:"YPos,omitempty" name:"YPos"` 11169 11170 // 马赛克的宽度。支持 %、px 两种格式: 11171 // <li>当字符串以 % 结尾,表示马赛克 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> 11172 // <li>当字符串以 px 结尾,表示马赛克 Width 单位为像素,如 100px 表示 Width 为 100 像素。</li> 11173 // 默认值:10%。 11174 Width *string `json:"Width,omitempty" name:"Width"` 11175 11176 // 马赛克的高度。支持 %、px 两种格式: 11177 // <li>当字符串以 % 结尾,表示马赛克 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li> 11178 // <li>当字符串以 px 结尾,表示马赛克 Height 单位为像素,如 100px 表示 Height 为 100 像素。</li> 11179 // 默认值:10%。 11180 Height *string `json:"Height,omitempty" name:"Height"` 11181 11182 // 马赛克的起始时间偏移,单位:秒。不填或填0,表示马赛克从画面出现时开始显现。 11183 // <li>不填或填0,表示马赛克从画面开始就出现;</li> 11184 // <li>当数值大于0时(假设为 n),表示马赛克从画面开始的第 n 秒出现;</li> 11185 // <li>当数值小于0时(假设为 -n),表示马赛克从离画面结束 n 秒前开始出现。</li> 11186 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 11187 11188 // 马赛克的结束时间偏移,单位:秒。 11189 // <li>不填或填0,表示马赛克持续到画面结束;</li> 11190 // <li>当数值大于0时(假设为 n),表示马赛克持续到第 n 秒时消失;</li> 11191 // <li>当数值小于0时(假设为 -n),表示马赛克持续到离画面结束 n 秒前消失。</li> 11192 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 11193} 11194 11195type ObjectConfigureInfo struct { 11196 11197 // 物体识别任务开关,可选值: 11198 // <li>ON:开启智能物体识别任务;</li> 11199 // <li>OFF:关闭智能物体识别任务。</li> 11200 Switch *string `json:"Switch,omitempty" name:"Switch"` 11201 11202 // 物体库选择,可选值: 11203 // <li>Default:使用默认物体库;</li> 11204 // <li>UserDefine:使用用户自定义物体库。</li> 11205 // <li>All:同时使用默认物体库和用户自定义物体库。</li> 11206 // 默认值: All,同时使用默认物体库和用户自定义物体库。 11207 ObjectLibrary *string `json:"ObjectLibrary,omitempty" name:"ObjectLibrary"` 11208} 11209 11210type ObjectConfigureInfoForUpdate struct { 11211 11212 // 物体识别任务开关,可选值: 11213 // <li>ON:开启智能物体识别任务;</li> 11214 // <li>OFF:关闭智能物体识别任务。</li> 11215 Switch *string `json:"Switch,omitempty" name:"Switch"` 11216 11217 // 物体库选择,可选值: 11218 // <li>Default:使用默认物体库;</li> 11219 // <li>UserDefine:使用用户自定义物体库。</li> 11220 // <li>All:同时使用默认物体库和用户自定义物体库。</li> 11221 ObjectLibrary *string `json:"ObjectLibrary,omitempty" name:"ObjectLibrary"` 11222} 11223 11224type OcrFullTextConfigureInfo struct { 11225 11226 // 文本全文识别任务开关,可选值: 11227 // <li>ON:开启智能文本全文识别任务;</li> 11228 // <li>OFF:关闭智能文本全文识别任务。</li> 11229 Switch *string `json:"Switch,omitempty" name:"Switch"` 11230} 11231 11232type OcrFullTextConfigureInfoForUpdate struct { 11233 11234 // 文本全文识别任务开关,可选值: 11235 // <li>ON:开启智能文本全文识别任务;</li> 11236 // <li>OFF:关闭智能文本全文识别任务。</li> 11237 Switch *string `json:"Switch,omitempty" name:"Switch"` 11238} 11239 11240type OcrWordsConfigureInfo struct { 11241 11242 // 文本关键词识别任务开关,可选值: 11243 // <li>ON:开启文本关键词识别任务;</li> 11244 // <li>OFF:关闭文本关键词识别任务。</li> 11245 Switch *string `json:"Switch,omitempty" name:"Switch"` 11246 11247 // 关键词过滤标签,指定需要返回的关键词的标签。如果未填或者为空,则全部结果都返回。 11248 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 11249 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 11250} 11251 11252type OcrWordsConfigureInfoForUpdate struct { 11253 11254 // 文本关键词识别任务开关,可选值: 11255 // <li>ON:开启文本关键词识别任务;</li> 11256 // <li>OFF:关闭文本关键词识别任务。</li> 11257 Switch *string `json:"Switch,omitempty" name:"Switch"` 11258 11259 // 关键词过滤标签,指定需要返回的关键词的标签。如果未填或者为空,则全部结果都返回。 11260 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 11261 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 11262} 11263 11264type OutputAudioStream struct { 11265 11266 // 音频流的编码格式,可选值: 11267 // <li>libfdk_aac:适合 mp4 文件。</li> 11268 // 默认值:libfdk_aac。 11269 Codec *string `json:"Codec,omitempty" name:"Codec"` 11270 11271 // 音频流的采样率,可选值: 11272 // <li>16000</li> 11273 // <li>32000</li> 11274 // <li>44100</li> 11275 // <li>48000</li> 11276 // 单位:Hz。 11277 // 默认值:16000。 11278 SampleRate *int64 `json:"SampleRate,omitempty" name:"SampleRate"` 11279 11280 // 音频声道数,可选值: 11281 // <li>1:单声道 。</li> 11282 // <li>2:双声道</li> 11283 // 默认值:2。 11284 AudioChannel *int64 `json:"AudioChannel,omitempty" name:"AudioChannel"` 11285} 11286 11287type OutputVideoStream struct { 11288 11289 // 视频流的编码格式,可选值: 11290 // <li>libx264:H.264 编码 </li> 11291 // 默认值:libx264。 11292 Codec *string `json:"Codec,omitempty" name:"Codec"` 11293 11294 // 视频帧率,取值范围:[0, 60],单位:Hz。 11295 // 默认值:0,表示和第一个视频轨的第一个视频片段的视频帧率一致。 11296 Fps *int64 `json:"Fps,omitempty" name:"Fps"` 11297} 11298 11299type ParseStreamingManifestRequest struct { 11300 *tchttp.BaseRequest 11301 11302 // 待解析的索引文件内容。 11303 MediaManifestContent *string `json:"MediaManifestContent,omitempty" name:"MediaManifestContent"` 11304 11305 // 视频索引文件格式。默认 m3u8 格式。 11306 // <li>m3u8</li> 11307 // <li>mpd</li> 11308 ManifestType *string `json:"ManifestType,omitempty" name:"ManifestType"` 11309} 11310 11311func (r *ParseStreamingManifestRequest) ToJsonString() string { 11312 b, _ := json.Marshal(r) 11313 return string(b) 11314} 11315 11316// FromJsonString It is highly **NOT** recommended to use this function 11317// because it has no param check, nor strict type check 11318func (r *ParseStreamingManifestRequest) FromJsonString(s string) error { 11319 f := make(map[string]interface{}) 11320 if err := json.Unmarshal([]byte(s), &f); err != nil { 11321 return err 11322 } 11323 delete(f, "MediaManifestContent") 11324 delete(f, "ManifestType") 11325 if len(f) > 0 { 11326 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ParseStreamingManifestRequest has unknown keys!", "") 11327 } 11328 return json.Unmarshal([]byte(s), &r) 11329} 11330 11331type ParseStreamingManifestResponse struct { 11332 *tchttp.BaseResponse 11333 Response *struct { 11334 11335 // 分片文件列表。 11336 MediaSegmentSet []*string `json:"MediaSegmentSet,omitempty" name:"MediaSegmentSet"` 11337 11338 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 11339 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 11340 } `json:"Response"` 11341} 11342 11343func (r *ParseStreamingManifestResponse) ToJsonString() string { 11344 b, _ := json.Marshal(r) 11345 return string(b) 11346} 11347 11348// FromJsonString It is highly **NOT** recommended to use this function 11349// because it has no param check, nor strict type check 11350func (r *ParseStreamingManifestResponse) FromJsonString(s string) error { 11351 return json.Unmarshal([]byte(s), &r) 11352} 11353 11354type PlayStatFileInfo struct { 11355 11356 // 播放统计数据所属日期,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 11357 Date *string `json:"Date,omitempty" name:"Date"` 11358 11359 // 播放统计文件的 URL 地址。播放统计文件内容为: 11360 // <li> date:播放日期。</li> 11361 // <li> file_id:视频文件 ID。</li> 11362 // <li> ip_count:去重后的客户端 IP 数。</li> 11363 // <li> flux:播放流量,单位:字节。</li> 11364 // <li> play_times:总的播放次数。</li> 11365 // <li> pc_play_times:PC 端播放次数。</li> 11366 // <li> mobile_play_times:移动端播放次数。</li> 11367 // <li> iphone_play_times:iPhone 端播放次数。</li> 11368 // <li> android_play_times:Android 端播放次数。</li> 11369 // <li> host_name 域名。</li> 11370 Url *string `json:"Url,omitempty" name:"Url"` 11371} 11372 11373type PlayerConfig struct { 11374 11375 // 播放器配置名字。 11376 Name *string `json:"Name,omitempty" name:"Name"` 11377 11378 // 播放器配置类型,取值范围: 11379 // <li>Preset:系统预置配置;</li> 11380 // <li>Custom:用户自定义配置。</li> 11381 Type *string `json:"Type,omitempty" name:"Type"` 11382 11383 // 播放 DRM 保护的自适应码流开关: 11384 // <li>ON:开启,表示仅播放 DRM 保护的自适应码流输出;</li> 11385 // <li>OFF:关闭,表示播放未加密的自适应码流输出。</li> 11386 DrmSwitch *string `json:"DrmSwitch,omitempty" name:"DrmSwitch"` 11387 11388 // 允许输出的未加密的自适应码流模板 ID。 11389 AdaptiveDynamicStreamingDefinition *uint64 `json:"AdaptiveDynamicStreamingDefinition,omitempty" name:"AdaptiveDynamicStreamingDefinition"` 11390 11391 // 允许输出的 DRM 自适应码流模板内容。 11392 // 注意:此字段可能返回 null,表示取不到有效值。 11393 DrmStreamingsInfo *DrmStreamingsInfo `json:"DrmStreamingsInfo,omitempty" name:"DrmStreamingsInfo"` 11394 11395 // 允许输出的雪碧图模板 ID。 11396 ImageSpriteDefinition *uint64 `json:"ImageSpriteDefinition,omitempty" name:"ImageSpriteDefinition"` 11397 11398 // 播放器对不于不同分辨率的子流展示名字。 11399 ResolutionNameSet []*ResolutionNameInfo `json:"ResolutionNameSet,omitempty" name:"ResolutionNameSet"` 11400 11401 // 播放器配置创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 11402 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 11403 11404 // 播放器配置最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 11405 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 11406 11407 // 播放时使用的域名。值为 Default,表示使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的域名。 11408 Domain *string `json:"Domain,omitempty" name:"Domain"` 11409 11410 // 播放时使用的 Scheme。取值范围: 11411 // <li>Default:使用[默认分发配置](https://cloud.tencent.com/document/product/266/33373)中的 Scheme;</li> 11412 // <li>HTTP;</li> 11413 // <li>HTTPS。</li> 11414 Scheme *string `json:"Scheme,omitempty" name:"Scheme"` 11415 11416 // 模板描述信息。 11417 Comment *string `json:"Comment,omitempty" name:"Comment"` 11418} 11419 11420type PoliticalAsrReviewTemplateInfo struct { 11421 11422 // 语音鉴政任务开关,可选值: 11423 // <li>ON:开启语音鉴政任务;</li> 11424 // <li>OFF:关闭语音鉴政任务。</li> 11425 Switch *string `json:"Switch,omitempty" name:"Switch"` 11426 11427 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 11428 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11429 11430 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 11431 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11432} 11433 11434type PoliticalAsrReviewTemplateInfoForUpdate struct { 11435 11436 // 语音鉴政任务开关,可选值: 11437 // <li>ON:开启语音鉴政任务;</li> 11438 // <li>OFF:关闭语音鉴政任务。</li> 11439 Switch *string `json:"Switch,omitempty" name:"Switch"` 11440 11441 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 11442 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11443 11444 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 11445 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11446} 11447 11448type PoliticalConfigureInfo struct { 11449 11450 // 画面鉴政控制参数。 11451 // 注意:此字段可能返回 null,表示取不到有效值。 11452 ImgReviewInfo *PoliticalImgReviewTemplateInfo `json:"ImgReviewInfo,omitempty" name:"ImgReviewInfo"` 11453 11454 // 语音鉴政控制参数。 11455 // 注意:此字段可能返回 null,表示取不到有效值。 11456 AsrReviewInfo *PoliticalAsrReviewTemplateInfo `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 11457 11458 // 文本鉴政控制参数。 11459 // 注意:此字段可能返回 null,表示取不到有效值。 11460 OcrReviewInfo *PoliticalOcrReviewTemplateInfo `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 11461} 11462 11463type PoliticalConfigureInfoForUpdate struct { 11464 11465 // 画面鉴政控制参数。 11466 ImgReviewInfo *PoliticalImgReviewTemplateInfoForUpdate `json:"ImgReviewInfo,omitempty" name:"ImgReviewInfo"` 11467 11468 // 语音鉴政控制参数。 11469 AsrReviewInfo *PoliticalAsrReviewTemplateInfoForUpdate `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 11470 11471 // 文本鉴政控制参数。 11472 OcrReviewInfo *PoliticalOcrReviewTemplateInfoForUpdate `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 11473} 11474 11475type PoliticalImgReviewTemplateInfo struct { 11476 11477 // 画面鉴政任务开关,可选值: 11478 // <li>ON:开启画面鉴政任务;</li> 11479 // <li>OFF:关闭画面鉴政任务。</li> 11480 Switch *string `json:"Switch,omitempty" name:"Switch"` 11481 11482 // 画面鉴政过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回,可选值为: 11483 // <li>violation_photo:违规图标;</li> 11484 // <li>politician:政治人物;</li> 11485 // <li>entertainment:娱乐人物;</li> 11486 // <li>sport:体育人物;</li> 11487 // <li>entrepreneur:商业人物;</li> 11488 // <li>scholar:教育学者;</li> 11489 // <li>celebrity:知名人物;</li> 11490 // <li>military:军事人物。</li> 11491 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 11492 11493 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 97 分。取值范围:0~100。 11494 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11495 11496 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 95 分。取值范围:0~100。 11497 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11498} 11499 11500type PoliticalImgReviewTemplateInfoForUpdate struct { 11501 11502 // 画面鉴政任务开关,可选值: 11503 // <li>ON:开启画面鉴政任务;</li> 11504 // <li>OFF:关闭画面鉴政任务。</li> 11505 Switch *string `json:"Switch,omitempty" name:"Switch"` 11506 11507 // 画面鉴政过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回,可选值为: 11508 // <li>violation_photo:违规图标;</li> 11509 // <li>politician:政治人物;</li> 11510 // <li>entertainment:娱乐人物;</li> 11511 // <li>sport:体育人物;</li> 11512 // <li>entrepreneur:商业人物;</li> 11513 // <li>scholar:教育学者;</li> 11514 // <li>celebrity:知名人物;</li> 11515 // <li>military:军事人物。</li> 11516 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 11517 11518 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 11519 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11520 11521 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 11522 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11523} 11524 11525type PoliticalOcrReviewTemplateInfo struct { 11526 11527 // 文本鉴政任务开关,可选值: 11528 // <li>ON:开启文本鉴政任务;</li> 11529 // <li>OFF:关闭文本鉴政任务。</li> 11530 Switch *string `json:"Switch,omitempty" name:"Switch"` 11531 11532 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 11533 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11534 11535 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 11536 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11537} 11538 11539type PoliticalOcrReviewTemplateInfoForUpdate struct { 11540 11541 // 文本鉴政任务开关,可选值: 11542 // <li>ON:开启文本鉴政任务;</li> 11543 // <li>OFF:关闭文本鉴政任务。</li> 11544 Switch *string `json:"Switch,omitempty" name:"Switch"` 11545 11546 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 11547 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11548 11549 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 11550 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11551} 11552 11553type PornAsrReviewTemplateInfo struct { 11554 11555 // 语音鉴黄任务开关,可选值: 11556 // <li>ON:开启语音鉴黄任务;</li> 11557 // <li>OFF:关闭语音鉴黄任务。</li> 11558 Switch *string `json:"Switch,omitempty" name:"Switch"` 11559 11560 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 11561 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11562 11563 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 11564 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11565} 11566 11567type PornAsrReviewTemplateInfoForUpdate struct { 11568 11569 // 语音鉴黄任务开关,可选值: 11570 // <li>ON:开启语音鉴黄任务;</li> 11571 // <li>OFF:关闭语音鉴黄任务。</li> 11572 Switch *string `json:"Switch,omitempty" name:"Switch"` 11573 11574 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 11575 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11576 11577 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 11578 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11579} 11580 11581type PornConfigureInfo struct { 11582 11583 // 画面鉴黄控制参数。 11584 // 注意:此字段可能返回 null,表示取不到有效值。 11585 ImgReviewInfo *PornImgReviewTemplateInfo `json:"ImgReviewInfo,omitempty" name:"ImgReviewInfo"` 11586 11587 // 语音鉴黄控制参数。 11588 // 注意:此字段可能返回 null,表示取不到有效值。 11589 AsrReviewInfo *PornAsrReviewTemplateInfo `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 11590 11591 // 文本鉴黄控制参数。 11592 // 注意:此字段可能返回 null,表示取不到有效值。 11593 OcrReviewInfo *PornOcrReviewTemplateInfo `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 11594} 11595 11596type PornConfigureInfoForUpdate struct { 11597 11598 // 画面鉴黄控制参数。 11599 ImgReviewInfo *PornImgReviewTemplateInfoForUpdate `json:"ImgReviewInfo,omitempty" name:"ImgReviewInfo"` 11600 11601 // 语音鉴黄控制参数。 11602 AsrReviewInfo *PornAsrReviewTemplateInfoForUpdate `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 11603 11604 // 文本鉴黄控制参数。 11605 OcrReviewInfo *PornOcrReviewTemplateInfoForUpdate `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 11606} 11607 11608type PornImgReviewTemplateInfo struct { 11609 11610 // 画面鉴黄任务开关,可选值: 11611 // <li>ON:开启画面鉴黄任务;</li> 11612 // <li>OFF:关闭画面鉴黄任务。</li> 11613 Switch *string `json:"Switch,omitempty" name:"Switch"` 11614 11615 // 画面鉴黄过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回,可选值为: 11616 // <li>porn:色情;</li> 11617 // <li>vulgar:低俗;</li> 11618 // <li>intimacy:亲密行为;</li> 11619 // <li>sexy:性感。</li> 11620 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 11621 11622 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 90 分。取值范围:0~100。 11623 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11624 11625 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 0 分。取值范围:0~100。 11626 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11627} 11628 11629type PornImgReviewTemplateInfoForUpdate struct { 11630 11631 // 画面鉴黄任务开关,可选值: 11632 // <li>ON:开启画面鉴黄任务;</li> 11633 // <li>OFF:关闭画面鉴黄任务。</li> 11634 Switch *string `json:"Switch,omitempty" name:"Switch"` 11635 11636 // 画面鉴黄过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回,可选值为: 11637 // <li>porn:色情;</li> 11638 // <li>vulgar:低俗;</li> 11639 // <li>intimacy:亲密行为;</li> 11640 // <li>sexy:性感。</li> 11641 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 11642 11643 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 11644 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11645 11646 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 11647 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11648} 11649 11650type PornOcrReviewTemplateInfo struct { 11651 11652 // 文本鉴黄任务开关,可选值: 11653 // <li>ON:开启文本鉴黄任务;</li> 11654 // <li>OFF:关闭文本鉴黄任务。</li> 11655 Switch *string `json:"Switch,omitempty" name:"Switch"` 11656 11657 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 11658 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11659 11660 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 11661 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11662} 11663 11664type PornOcrReviewTemplateInfoForUpdate struct { 11665 11666 // 文本鉴黄任务开关,可选值: 11667 // <li>ON:开启文本鉴黄任务;</li> 11668 // <li>OFF:关闭文本鉴黄任务。</li> 11669 Switch *string `json:"Switch,omitempty" name:"Switch"` 11670 11671 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 11672 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 11673 11674 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 11675 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 11676} 11677 11678type ProcedureTask struct { 11679 11680 // 视频处理任务 ID。 11681 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 11682 11683 // 任务流状态,取值: 11684 // <li>PROCESSING:处理中;</li> 11685 // <li>FINISH:已完成。</li> 11686 Status *string `json:"Status,omitempty" name:"Status"` 11687 11688 // 已弃用,请使用各个具体任务的 ErrCode。 11689 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 11690 11691 // 已弃用,请使用各个具体任务的 Message。 11692 Message *string `json:"Message,omitempty" name:"Message"` 11693 11694 // 媒体文件 ID 11695 // <li>若流程由 [ProcessMedia](https://cloud.tencent.com/document/product/266/33427) 发起,该字段表示 [MediaInfo](https://cloud.tencent.com/document/product/266/31773#MediaInfo) 的 FileId;</li> 11696 // <li>若流程由 [ProcessMediaByUrl](https://cloud.tencent.com/document/product/266/33426) 发起,该字段表示 [MediaInputInfo](https://cloud.tencent.com/document/product/266/31773#MediaInputInfo) 的 Id。</li> 11697 FileId *string `json:"FileId,omitempty" name:"FileId"` 11698 11699 // 媒体文件名称 11700 // <li>若流程由 [ProcessMedia](https://cloud.tencent.com/document/product/266/33427) 发起,该字段表示 [MediaInfo](https://cloud.tencent.com/document/product/266/31773#MediaInfo) 的 BasicInfo.Name;</li> 11701 // <li>若流程由 [ProcessMediaByUrl](https://cloud.tencent.com/document/product/266/33426) 发起,该字段表示 [MediaInputInfo](https://cloud.tencent.com/document/product/266/31773#MediaInputInfo) 的 Name。</li> 11702 FileName *string `json:"FileName,omitempty" name:"FileName"` 11703 11704 // 媒体文件地址 11705 // <li>若流程由 [ProcessMedia](https://cloud.tencent.com/document/product/266/33427) 发起,该字段表示 [MediaInfo](https://cloud.tencent.com/document/product/266/31773#MediaInfo) 的 BasicInfo.MediaUrl;</li> 11706 // <li>若流程由 [ProcessMediaByUrl](https://cloud.tencent.com/document/product/266/33426) 发起,该字段表示 [MediaInputInfo](https://cloud.tencent.com/document/product/266/31773#MediaInputInfo) 的 Url。</li> 11707 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` 11708 11709 // 原始视频的元信息。 11710 // 注意:此字段可能返回 null,表示取不到有效值。 11711 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 11712 11713 // 视频处理任务的执行状态与结果。 11714 MediaProcessResultSet []*MediaProcessTaskResult `json:"MediaProcessResultSet,omitempty" name:"MediaProcessResultSet"` 11715 11716 // 视频内容审核任务的执行状态与结果。 11717 AiContentReviewResultSet []*AiContentReviewResult `json:"AiContentReviewResultSet,omitempty" name:"AiContentReviewResultSet"` 11718 11719 // 视频内容分析任务的执行状态与结果。 11720 AiAnalysisResultSet []*AiAnalysisResult `json:"AiAnalysisResultSet,omitempty" name:"AiAnalysisResultSet"` 11721 11722 // 视频内容识别任务的执行状态与结果。 11723 AiRecognitionResultSet []*AiRecognitionResult `json:"AiRecognitionResultSet,omitempty" name:"AiRecognitionResultSet"` 11724 11725 // 任务流的优先级,取值范围为 [-10, 10]。 11726 TasksPriority *int64 `json:"TasksPriority,omitempty" name:"TasksPriority"` 11727 11728 // 任务流状态变更通知模式。 11729 // <li>Finish:只有当任务流全部执行完毕时,才发起一次事件通知;</li> 11730 // <li>Change:只要任务流中每个子任务的状态发生变化,都进行事件通知;</li> 11731 // <li>None:不接受该任务流回调。</li> 11732 TasksNotifyMode *string `json:"TasksNotifyMode,omitempty" name:"TasksNotifyMode"` 11733 11734 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 11735 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 11736 11737 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 11738 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 11739} 11740 11741type ProcedureTemplate struct { 11742 11743 // 任务流名字。 11744 Name *string `json:"Name,omitempty" name:"Name"` 11745 11746 // 任务流模板类型,取值范围: 11747 // <li>Preset:系统预置任务流模板;</li> 11748 // <li>Custom:用户自定义任务流模板。</li> 11749 Type *string `json:"Type,omitempty" name:"Type"` 11750 11751 // 模板描述信息,长度限制:256 个字符。 11752 Comment *string `json:"Comment,omitempty" name:"Comment"` 11753 11754 // 视频处理类型任务参数。 11755 // 注意:此字段可能返回 null,表示取不到有效值。 11756 MediaProcessTask *MediaProcessTaskInput `json:"MediaProcessTask,omitempty" name:"MediaProcessTask"` 11757 11758 // AI 智能内容审核类型任务参数。 11759 // 注意:此字段可能返回 null,表示取不到有效值。 11760 AiContentReviewTask *AiContentReviewTaskInput `json:"AiContentReviewTask,omitempty" name:"AiContentReviewTask"` 11761 11762 // AI 智能内容分析类型任务参数。 11763 // 注意:此字段可能返回 null,表示取不到有效值。 11764 AiAnalysisTask *AiAnalysisTaskInput `json:"AiAnalysisTask,omitempty" name:"AiAnalysisTask"` 11765 11766 // AI 内容识别类型任务参数。 11767 // 注意:此字段可能返回 null,表示取不到有效值。 11768 AiRecognitionTask *AiRecognitionTaskInput `json:"AiRecognitionTask,omitempty" name:"AiRecognitionTask"` 11769 11770 // 微信小程序发布任务参数。 11771 // 注意:此字段可能返回 null,表示取不到有效值。 11772 MiniProgramPublishTask *WechatMiniProgramPublishTaskInput `json:"MiniProgramPublishTask,omitempty" name:"MiniProgramPublishTask"` 11773 11774 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 11775 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 11776 11777 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 11778 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 11779} 11780 11781type ProcessMediaByProcedureRequest struct { 11782 *tchttp.BaseRequest 11783 11784 // 媒体文件 ID。 11785 FileId *string `json:"FileId,omitempty" name:"FileId"` 11786 11787 // [任务流模板](/document/product/266/11700#.E4.BB.BB.E5.8A.A1.E6.B5.81.E6.A8.A1.E6.9D.BF)名字。 11788 ProcedureName *string `json:"ProcedureName,omitempty" name:"ProcedureName"` 11789 11790 // 任务流的优先级,数值越大优先级越高,取值范围是-10到10,不填代表0。 11791 TasksPriority *int64 `json:"TasksPriority,omitempty" name:"TasksPriority"` 11792 11793 // 任务流状态变更通知模式,可取值有 Finish,Change 和 None,不填代表 Finish。 11794 TasksNotifyMode *string `json:"TasksNotifyMode,omitempty" name:"TasksNotifyMode"` 11795 11796 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 11797 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 11798 11799 // 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 11800 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 11801 11802 // 保留字段,特殊用途时使用。 11803 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 11804 11805 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 11806 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 11807} 11808 11809func (r *ProcessMediaByProcedureRequest) ToJsonString() string { 11810 b, _ := json.Marshal(r) 11811 return string(b) 11812} 11813 11814// FromJsonString It is highly **NOT** recommended to use this function 11815// because it has no param check, nor strict type check 11816func (r *ProcessMediaByProcedureRequest) FromJsonString(s string) error { 11817 f := make(map[string]interface{}) 11818 if err := json.Unmarshal([]byte(s), &f); err != nil { 11819 return err 11820 } 11821 delete(f, "FileId") 11822 delete(f, "ProcedureName") 11823 delete(f, "TasksPriority") 11824 delete(f, "TasksNotifyMode") 11825 delete(f, "SessionContext") 11826 delete(f, "SessionId") 11827 delete(f, "ExtInfo") 11828 delete(f, "SubAppId") 11829 if len(f) > 0 { 11830 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ProcessMediaByProcedureRequest has unknown keys!", "") 11831 } 11832 return json.Unmarshal([]byte(s), &r) 11833} 11834 11835type ProcessMediaByProcedureResponse struct { 11836 *tchttp.BaseResponse 11837 Response *struct { 11838 11839 // 任务 ID。 11840 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 11841 11842 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 11843 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 11844 } `json:"Response"` 11845} 11846 11847func (r *ProcessMediaByProcedureResponse) ToJsonString() string { 11848 b, _ := json.Marshal(r) 11849 return string(b) 11850} 11851 11852// FromJsonString It is highly **NOT** recommended to use this function 11853// because it has no param check, nor strict type check 11854func (r *ProcessMediaByProcedureResponse) FromJsonString(s string) error { 11855 return json.Unmarshal([]byte(s), &r) 11856} 11857 11858type ProcessMediaByUrlRequest struct { 11859 *tchttp.BaseRequest 11860 11861 // API 已经<font color='red'>不再维护</font>。推荐使用的替代 API 请参考接口描述。 11862 InputInfo *MediaInputInfo `json:"InputInfo,omitempty" name:"InputInfo"` 11863 11864 // 输出文件 COS 路径信息。 11865 OutputInfo *MediaOutputInfo `json:"OutputInfo,omitempty" name:"OutputInfo"` 11866 11867 // 视频内容审核类型任务参数。 11868 AiContentReviewTask *AiContentReviewTaskInput `json:"AiContentReviewTask,omitempty" name:"AiContentReviewTask"` 11869 11870 // 视频内容分析类型任务参数。 11871 AiAnalysisTask *AiAnalysisTaskInput `json:"AiAnalysisTask,omitempty" name:"AiAnalysisTask"` 11872 11873 // 视频内容识别类型任务参数。 11874 AiRecognitionTask *AiRecognitionTaskInput `json:"AiRecognitionTask,omitempty" name:"AiRecognitionTask"` 11875 11876 // 任务流的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。 11877 TasksPriority *int64 `json:"TasksPriority,omitempty" name:"TasksPriority"` 11878 11879 // 任务流状态变更通知模式,可取值有 Finish,Change 和 None,不填代表 Finish。 11880 TasksNotifyMode *string `json:"TasksNotifyMode,omitempty" name:"TasksNotifyMode"` 11881 11882 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 11883 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 11884 11885 // 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 11886 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 11887 11888 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 11889 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 11890} 11891 11892func (r *ProcessMediaByUrlRequest) ToJsonString() string { 11893 b, _ := json.Marshal(r) 11894 return string(b) 11895} 11896 11897// FromJsonString It is highly **NOT** recommended to use this function 11898// because it has no param check, nor strict type check 11899func (r *ProcessMediaByUrlRequest) FromJsonString(s string) error { 11900 f := make(map[string]interface{}) 11901 if err := json.Unmarshal([]byte(s), &f); err != nil { 11902 return err 11903 } 11904 delete(f, "InputInfo") 11905 delete(f, "OutputInfo") 11906 delete(f, "AiContentReviewTask") 11907 delete(f, "AiAnalysisTask") 11908 delete(f, "AiRecognitionTask") 11909 delete(f, "TasksPriority") 11910 delete(f, "TasksNotifyMode") 11911 delete(f, "SessionContext") 11912 delete(f, "SessionId") 11913 delete(f, "SubAppId") 11914 if len(f) > 0 { 11915 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ProcessMediaByUrlRequest has unknown keys!", "") 11916 } 11917 return json.Unmarshal([]byte(s), &r) 11918} 11919 11920type ProcessMediaByUrlResponse struct { 11921 *tchttp.BaseResponse 11922 Response *struct { 11923 11924 // 任务 ID 11925 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 11926 11927 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 11928 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 11929 } `json:"Response"` 11930} 11931 11932func (r *ProcessMediaByUrlResponse) ToJsonString() string { 11933 b, _ := json.Marshal(r) 11934 return string(b) 11935} 11936 11937// FromJsonString It is highly **NOT** recommended to use this function 11938// because it has no param check, nor strict type check 11939func (r *ProcessMediaByUrlResponse) FromJsonString(s string) error { 11940 return json.Unmarshal([]byte(s), &r) 11941} 11942 11943type ProcessMediaRequest struct { 11944 *tchttp.BaseRequest 11945 11946 // 媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。 11947 FileId *string `json:"FileId,omitempty" name:"FileId"` 11948 11949 // 视频处理类型任务参数。 11950 MediaProcessTask *MediaProcessTaskInput `json:"MediaProcessTask,omitempty" name:"MediaProcessTask"` 11951 11952 // 视频内容审核类型任务参数。 11953 AiContentReviewTask *AiContentReviewTaskInput `json:"AiContentReviewTask,omitempty" name:"AiContentReviewTask"` 11954 11955 // 视频内容分析类型任务参数。 11956 AiAnalysisTask *AiAnalysisTaskInput `json:"AiAnalysisTask,omitempty" name:"AiAnalysisTask"` 11957 11958 // 视频内容识别类型任务参数。 11959 AiRecognitionTask *AiRecognitionTaskInput `json:"AiRecognitionTask,omitempty" name:"AiRecognitionTask"` 11960 11961 // 任务流的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。 11962 TasksPriority *int64 `json:"TasksPriority,omitempty" name:"TasksPriority"` 11963 11964 // 任务流状态变更通知模式,可取值有 Finish,Change 和 None,不填代表 Finish。 11965 TasksNotifyMode *string `json:"TasksNotifyMode,omitempty" name:"TasksNotifyMode"` 11966 11967 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 11968 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 11969 11970 // 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 11971 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 11972 11973 // 保留字段,特殊用途时使用。 11974 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 11975 11976 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 11977 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 11978} 11979 11980func (r *ProcessMediaRequest) ToJsonString() string { 11981 b, _ := json.Marshal(r) 11982 return string(b) 11983} 11984 11985// FromJsonString It is highly **NOT** recommended to use this function 11986// because it has no param check, nor strict type check 11987func (r *ProcessMediaRequest) FromJsonString(s string) error { 11988 f := make(map[string]interface{}) 11989 if err := json.Unmarshal([]byte(s), &f); err != nil { 11990 return err 11991 } 11992 delete(f, "FileId") 11993 delete(f, "MediaProcessTask") 11994 delete(f, "AiContentReviewTask") 11995 delete(f, "AiAnalysisTask") 11996 delete(f, "AiRecognitionTask") 11997 delete(f, "TasksPriority") 11998 delete(f, "TasksNotifyMode") 11999 delete(f, "SessionContext") 12000 delete(f, "SessionId") 12001 delete(f, "ExtInfo") 12002 delete(f, "SubAppId") 12003 if len(f) > 0 { 12004 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ProcessMediaRequest has unknown keys!", "") 12005 } 12006 return json.Unmarshal([]byte(s), &r) 12007} 12008 12009type ProcessMediaResponse struct { 12010 *tchttp.BaseResponse 12011 Response *struct { 12012 12013 // 任务 ID 12014 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 12015 12016 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12017 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12018 } `json:"Response"` 12019} 12020 12021func (r *ProcessMediaResponse) ToJsonString() string { 12022 b, _ := json.Marshal(r) 12023 return string(b) 12024} 12025 12026// FromJsonString It is highly **NOT** recommended to use this function 12027// because it has no param check, nor strict type check 12028func (r *ProcessMediaResponse) FromJsonString(s string) error { 12029 return json.Unmarshal([]byte(s), &r) 12030} 12031 12032type ProductInstance struct { 12033 12034 // 预付费商品实例类型,取值有: 12035 // <li>StarterPackage:点播新手包。</li> 12036 // <li>MiniProgramPlugin:点播小程序插件。</li> 12037 // <li>ResourcePackage:点播资源包。</li> 12038 ProductType *string `json:"ProductType,omitempty" name:"ProductType"` 12039 12040 // 资源包实例起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 12041 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 12042 12043 // 资源包实例过期日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 12044 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 12045 12046 // 资源包实例ID。对应每个资源包,系统会分配相应的资源。续费或者升级资源包时,需要带上这个资源ID。 12047 ProductInstanceId *string `json:"ProductInstanceId,omitempty" name:"ProductInstanceId"` 12048 12049 // 系统最近一次扣除资源包的日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F)。 12050 LastConsumeDate *string `json:"LastConsumeDate,omitempty" name:"LastConsumeDate"` 12051 12052 // 资源包绑定 License 状态,取值有: 12053 // <li>0:未绑定。</li> 12054 // <li>1:已绑定。</li> 12055 BindStatus *int64 `json:"BindStatus,omitempty" name:"BindStatus"` 12056 12057 // 预付费资源包实例中包含的资源包列表。 12058 ProductInstanceResourceSet []*ProductInstanceRecource `json:"ProductInstanceResourceSet,omitempty" name:"ProductInstanceResourceSet"` 12059 12060 // 资源包实例的状态,取值有: 12061 // <li>Effective:生效,可用于计费抵扣。</li> 12062 // <li>Isolated:隔离,不可用于计费抵扣。</li> 12063 ProductInstanceStatus *string `json:"ProductInstanceStatus,omitempty" name:"ProductInstanceStatus"` 12064 12065 // 资源包实例的可退还状态,取值有: 12066 // <li>FullRefund:可全额退款。</li> 12067 // <li>Denied:不可退款。</li> 12068 RefundStatus *string `json:"RefundStatus,omitempty" name:"RefundStatus"` 12069} 12070 12071type ProductInstanceRecource struct { 12072 12073 // 资源类型。 12074 // <li>Storage:存储资源包。</li> 12075 // <li>Traffic:流量资源包。</li> 12076 // <li>Transcode:普通转码资源包。</li> 12077 // <li>TESHD:极速高清转码资源包。</li> 12078 // <li>Review:视频审核转码资源包。</li> 12079 ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` 12080 12081 // 资源包额度。 12082 // <li>视频存储资源包,单位为字节。</li> 12083 // <li>视频转码资源包,单位为秒。</li> 12084 // <li>视频审核资源包,单位为秒。</li> 12085 // <li>视频极速高清资源包,单位为秒。</li> 12086 // <li>视频加速资源包,单位为字节。</li> 12087 Amount *int64 `json:"Amount,omitempty" name:"Amount"` 12088 12089 // 资源包余量。 12090 // <li>视频存储资源包,单位为字节。</li> 12091 // <li>视频转码资源包,单位为秒。</li> 12092 // <li>视频审核资源包,单位为秒。</li> 12093 // <li>视频极速高清资源包,单位为秒。</li> 12094 // <li>视频加速资源包,单位为字节。</li> 12095 Left *int64 `json:"Left,omitempty" name:"Left"` 12096} 12097 12098type ProhibitedAsrReviewTemplateInfo struct { 12099 12100 // 语音违禁任务开关,可选值: 12101 // <li>ON:开启语音违禁任务;</li> 12102 // <li>OFF:关闭语音违禁任务。</li> 12103 Switch *string `json:"Switch,omitempty" name:"Switch"` 12104 12105 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 12106 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 12107 12108 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 12109 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 12110} 12111 12112type ProhibitedAsrReviewTemplateInfoForUpdate struct { 12113 12114 // 语音违禁任务开关,可选值: 12115 // <li>ON:开启语音违禁任务;</li> 12116 // <li>OFF:关闭语音违禁任务。</li> 12117 Switch *string `json:"Switch,omitempty" name:"Switch"` 12118 12119 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 12120 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 12121 12122 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 12123 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 12124} 12125 12126type ProhibitedConfigureInfo struct { 12127 12128 // 语音违禁控制参数。 12129 // 注意:此字段可能返回 null,表示取不到有效值。 12130 AsrReviewInfo *ProhibitedAsrReviewTemplateInfo `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 12131 12132 // 文本违禁控制参数。 12133 // 注意:此字段可能返回 null,表示取不到有效值。 12134 OcrReviewInfo *ProhibitedOcrReviewTemplateInfo `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 12135} 12136 12137type ProhibitedConfigureInfoForUpdate struct { 12138 12139 // 语音违禁控制参数。 12140 AsrReviewInfo *ProhibitedAsrReviewTemplateInfoForUpdate `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 12141 12142 // 文本违禁控制参数。 12143 OcrReviewInfo *ProhibitedOcrReviewTemplateInfoForUpdate `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 12144} 12145 12146type ProhibitedOcrReviewTemplateInfo struct { 12147 12148 // 文本违禁任务开关,可选值: 12149 // <li>ON:开启文本违禁任务;</li> 12150 // <li>OFF:关闭文本违禁任务。</li> 12151 Switch *string `json:"Switch,omitempty" name:"Switch"` 12152 12153 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 12154 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 12155 12156 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 12157 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 12158} 12159 12160type ProhibitedOcrReviewTemplateInfoForUpdate struct { 12161 12162 // 文本违禁任务开关,可选值: 12163 // <li>ON:开启文本违禁任务;</li> 12164 // <li>OFF:关闭文本违禁任务。</li> 12165 Switch *string `json:"Switch,omitempty" name:"Switch"` 12166 12167 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 12168 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 12169 12170 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 12171 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 12172} 12173 12174type PullEventsRequest struct { 12175 *tchttp.BaseRequest 12176 12177 // 保留字段,特殊用途时使用。 12178 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 12179 12180 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 12181 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 12182} 12183 12184func (r *PullEventsRequest) ToJsonString() string { 12185 b, _ := json.Marshal(r) 12186 return string(b) 12187} 12188 12189// FromJsonString It is highly **NOT** recommended to use this function 12190// because it has no param check, nor strict type check 12191func (r *PullEventsRequest) FromJsonString(s string) error { 12192 f := make(map[string]interface{}) 12193 if err := json.Unmarshal([]byte(s), &f); err != nil { 12194 return err 12195 } 12196 delete(f, "ExtInfo") 12197 delete(f, "SubAppId") 12198 if len(f) > 0 { 12199 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PullEventsRequest has unknown keys!", "") 12200 } 12201 return json.Unmarshal([]byte(s), &r) 12202} 12203 12204type PullEventsResponse struct { 12205 *tchttp.BaseResponse 12206 Response *struct { 12207 12208 // 事件列表。 12209 // 注意:此字段可能返回 null,表示取不到有效值。 12210 EventSet []*EventContent `json:"EventSet,omitempty" name:"EventSet"` 12211 12212 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12213 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12214 } `json:"Response"` 12215} 12216 12217func (r *PullEventsResponse) ToJsonString() string { 12218 b, _ := json.Marshal(r) 12219 return string(b) 12220} 12221 12222// FromJsonString It is highly **NOT** recommended to use this function 12223// because it has no param check, nor strict type check 12224func (r *PullEventsResponse) FromJsonString(s string) error { 12225 return json.Unmarshal([]byte(s), &r) 12226} 12227 12228type PullUploadRequest struct { 12229 *tchttp.BaseRequest 12230 12231 // 要拉取的媒体 URL,暂不支持拉取 Dash 格式(可以支持 HLS)。 12232 // 支持的扩展名详见[媒体类型](https://cloud.tencent.com/document/product/266/9760#.E5.AA.92.E4.BD.93.E7.B1.BB.E5.9E.8B)。 12233 MediaUrl *string `json:"MediaUrl,omitempty" name:"MediaUrl"` 12234 12235 // 媒体名称。 12236 MediaName *string `json:"MediaName,omitempty" name:"MediaName"` 12237 12238 // 要拉取的视频封面 URL。仅支持 gif、jpeg、png 三种图片格式。 12239 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 12240 12241 // 媒体后续任务操作,详见[上传指定任务流](https://cloud.tencent.com/document/product/266/9759)。 12242 Procedure *string `json:"Procedure,omitempty" name:"Procedure"` 12243 12244 // 媒体文件过期时间,格式按照 ISO 8601 标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 12245 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 12246 12247 // 指定上传园区,仅适用于对上传地域有特殊需求的用户: 12248 // <li>不填默认上传至您的[默认地域](https://cloud.tencent.com/document/product/266/14059?from=11329#.E5.AD.98.E5.82.A8.E5.9C.B0.E5.9F.9F.E6.AD.A5.E9.AA.A4)。</li> 12249 // <li>若指定上传园区,请先确认[上传存储设置](https://cloud.tencent.com/document/product/266/14059?from=11329#.E5.AD.98.E5.82.A8.E5.9C.B0.E5.9F.9F.E6.AD.A5.E9.AA.A4)已经开启相应的存储地域。</li> 12250 StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` 12251 12252 // 分类ID,用于对媒体进行分类管理,可通过[创建分类](https://cloud.tencent.com/document/product/266/7812)接口,创建分类,获得分类 ID。 12253 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 12254 12255 // 来源上下文,用于透传用户请求信息,当指定 Procedure 任务后,任务流状态变更回调将返回该字段值,最长 1000 个字符。 12256 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 12257 12258 // 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 12259 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 12260 12261 // 保留字段,特殊用途时使用。 12262 ExtInfo *string `json:"ExtInfo,omitempty" name:"ExtInfo"` 12263 12264 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 12265 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 12266 12267 // 来源上下文,用于透传用户请求信息,[上传完成回调](/document/product/266/7830) 将返回该字段值,最长 250 个字符。 12268 SourceContext *string `json:"SourceContext,omitempty" name:"SourceContext"` 12269} 12270 12271func (r *PullUploadRequest) ToJsonString() string { 12272 b, _ := json.Marshal(r) 12273 return string(b) 12274} 12275 12276// FromJsonString It is highly **NOT** recommended to use this function 12277// because it has no param check, nor strict type check 12278func (r *PullUploadRequest) FromJsonString(s string) error { 12279 f := make(map[string]interface{}) 12280 if err := json.Unmarshal([]byte(s), &f); err != nil { 12281 return err 12282 } 12283 delete(f, "MediaUrl") 12284 delete(f, "MediaName") 12285 delete(f, "CoverUrl") 12286 delete(f, "Procedure") 12287 delete(f, "ExpireTime") 12288 delete(f, "StorageRegion") 12289 delete(f, "ClassId") 12290 delete(f, "SessionContext") 12291 delete(f, "SessionId") 12292 delete(f, "ExtInfo") 12293 delete(f, "SubAppId") 12294 delete(f, "SourceContext") 12295 if len(f) > 0 { 12296 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PullUploadRequest has unknown keys!", "") 12297 } 12298 return json.Unmarshal([]byte(s), &r) 12299} 12300 12301type PullUploadResponse struct { 12302 *tchttp.BaseResponse 12303 Response *struct { 12304 12305 // 拉取上传视频的任务 ID,可以通过该 ID 查询拉取上传任务的状态。 12306 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 12307 12308 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12309 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12310 } `json:"Response"` 12311} 12312 12313func (r *PullUploadResponse) ToJsonString() string { 12314 b, _ := json.Marshal(r) 12315 return string(b) 12316} 12317 12318// FromJsonString It is highly **NOT** recommended to use this function 12319// because it has no param check, nor strict type check 12320func (r *PullUploadResponse) FromJsonString(s string) error { 12321 return json.Unmarshal([]byte(s), &r) 12322} 12323 12324type PullUploadTask struct { 12325 12326 // 转拉上传任务 ID。 12327 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 12328 12329 // 任务流状态,取值: 12330 // <li>PROCESSING:处理中;</li> 12331 // <li>FINISH:已完成。</li> 12332 Status *string `json:"Status,omitempty" name:"Status"` 12333 12334 // 错误码,0 表示成功,其他值表示失败: 12335 // <li>40000:输入参数不合法,请检查输入参数;</li> 12336 // <li>60000:源文件错误(如视频数据损坏),请确认源文件是否正常;</li> 12337 // <li>70000:内部服务错误,建议重试。</li> 12338 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 12339 12340 // 错误信息。 12341 Message *string `json:"Message,omitempty" name:"Message"` 12342 12343 // 转拉上传完成后生成的视频 ID。 12344 FileId *string `json:"FileId,omitempty" name:"FileId"` 12345 12346 // 转拉完成后生成的媒体文件基础信息。 12347 // 注意:此字段可能返回 null,表示取不到有效值。 12348 MediaBasicInfo *MediaBasicInfo `json:"MediaBasicInfo,omitempty" name:"MediaBasicInfo"` 12349 12350 // 原始视频的元信息。 12351 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 12352 12353 // 转拉上传完成后生成的播放地址。 12354 FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"` 12355 12356 // 若转拉上传时指定了视频处理流程,则该参数为流程任务 ID。 12357 ProcedureTaskId *string `json:"ProcedureTaskId,omitempty" name:"ProcedureTaskId"` 12358 12359 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 12360 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 12361 12362 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 12363 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 12364} 12365 12366type PushUrlCacheRequest struct { 12367 *tchttp.BaseRequest 12368 12369 // 预热的 URL 列表,单次最多指定20个 URL。 12370 Urls []*string `json:"Urls,omitempty" name:"Urls"` 12371 12372 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 12373 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 12374} 12375 12376func (r *PushUrlCacheRequest) ToJsonString() string { 12377 b, _ := json.Marshal(r) 12378 return string(b) 12379} 12380 12381// FromJsonString It is highly **NOT** recommended to use this function 12382// because it has no param check, nor strict type check 12383func (r *PushUrlCacheRequest) FromJsonString(s string) error { 12384 f := make(map[string]interface{}) 12385 if err := json.Unmarshal([]byte(s), &f); err != nil { 12386 return err 12387 } 12388 delete(f, "Urls") 12389 delete(f, "SubAppId") 12390 if len(f) > 0 { 12391 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PushUrlCacheRequest has unknown keys!", "") 12392 } 12393 return json.Unmarshal([]byte(s), &r) 12394} 12395 12396type PushUrlCacheResponse struct { 12397 *tchttp.BaseResponse 12398 Response *struct { 12399 12400 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12401 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12402 } `json:"Response"` 12403} 12404 12405func (r *PushUrlCacheResponse) ToJsonString() string { 12406 b, _ := json.Marshal(r) 12407 return string(b) 12408} 12409 12410// FromJsonString It is highly **NOT** recommended to use this function 12411// because it has no param check, nor strict type check 12412func (r *PushUrlCacheResponse) FromJsonString(s string) error { 12413 return json.Unmarshal([]byte(s), &r) 12414} 12415 12416type RefererAuthPolicy struct { 12417 12418 // [Referer 防盗链](https://cloud.tencent.com/document/product/266/14046)设置状态,可选值: 12419 // <li>Enabled: 启用;</li> 12420 // <li>Disabled: 禁用。</li> 12421 Status *string `json:"Status,omitempty" name:"Status"` 12422 12423 // Referer 校验类型,可选值: 12424 // <li>Black: 黑名单方式校验;</li> 12425 // <li>White:白名单方式校验。</li> 12426 AuthType *string `json:"AuthType,omitempty" name:"AuthType"` 12427 12428 // 用于校验的 Referer 名单。 12429 Referers []*string `json:"Referers,omitempty" name:"Referers"` 12430 12431 // 是否允许空 Referer 访问本域名,可选值: 12432 // <li>Yes: 是;</li> 12433 // <li>No: 否。</li> 12434 BlankRefererAllowed *string `json:"BlankRefererAllowed,omitempty" name:"BlankRefererAllowed"` 12435} 12436 12437type ResetProcedureTemplateRequest struct { 12438 *tchttp.BaseRequest 12439 12440 // 任务流名字 12441 Name *string `json:"Name,omitempty" name:"Name"` 12442 12443 // 模板描述信息,长度限制:256 个字符。 12444 Comment *string `json:"Comment,omitempty" name:"Comment"` 12445 12446 // 视频处理类型任务参数。 12447 MediaProcessTask *MediaProcessTaskInput `json:"MediaProcessTask,omitempty" name:"MediaProcessTask"` 12448 12449 // AI 智能内容审核类型任务参数。 12450 AiContentReviewTask *AiContentReviewTaskInput `json:"AiContentReviewTask,omitempty" name:"AiContentReviewTask"` 12451 12452 // AI 智能内容分析类型任务参数。 12453 AiAnalysisTask *AiAnalysisTaskInput `json:"AiAnalysisTask,omitempty" name:"AiAnalysisTask"` 12454 12455 // AI 内容识别类型任务参数。 12456 AiRecognitionTask *AiRecognitionTaskInput `json:"AiRecognitionTask,omitempty" name:"AiRecognitionTask"` 12457 12458 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 12459 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 12460} 12461 12462func (r *ResetProcedureTemplateRequest) ToJsonString() string { 12463 b, _ := json.Marshal(r) 12464 return string(b) 12465} 12466 12467// FromJsonString It is highly **NOT** recommended to use this function 12468// because it has no param check, nor strict type check 12469func (r *ResetProcedureTemplateRequest) FromJsonString(s string) error { 12470 f := make(map[string]interface{}) 12471 if err := json.Unmarshal([]byte(s), &f); err != nil { 12472 return err 12473 } 12474 delete(f, "Name") 12475 delete(f, "Comment") 12476 delete(f, "MediaProcessTask") 12477 delete(f, "AiContentReviewTask") 12478 delete(f, "AiAnalysisTask") 12479 delete(f, "AiRecognitionTask") 12480 delete(f, "SubAppId") 12481 if len(f) > 0 { 12482 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ResetProcedureTemplateRequest has unknown keys!", "") 12483 } 12484 return json.Unmarshal([]byte(s), &r) 12485} 12486 12487type ResetProcedureTemplateResponse struct { 12488 *tchttp.BaseResponse 12489 Response *struct { 12490 12491 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12492 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12493 } `json:"Response"` 12494} 12495 12496func (r *ResetProcedureTemplateResponse) ToJsonString() string { 12497 b, _ := json.Marshal(r) 12498 return string(b) 12499} 12500 12501// FromJsonString It is highly **NOT** recommended to use this function 12502// because it has no param check, nor strict type check 12503func (r *ResetProcedureTemplateResponse) FromJsonString(s string) error { 12504 return json.Unmarshal([]byte(s), &r) 12505} 12506 12507type ResolutionNameInfo struct { 12508 12509 // 视频短边长度,单位:像素。 12510 MinEdgeLength *uint64 `json:"MinEdgeLength,omitempty" name:"MinEdgeLength"` 12511 12512 // 展示名字。 12513 Name *string `json:"Name,omitempty" name:"Name"` 12514} 12515 12516type ResourceTag struct { 12517 12518 // 标签键。 12519 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` 12520 12521 // 标签值。 12522 TagValue *string `json:"TagValue,omitempty" name:"TagValue"` 12523} 12524 12525type SampleSnapshotTaskInput struct { 12526 12527 // 采样截图模板 ID。 12528 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 12529 12530 // 水印列表,支持多张图片或文字水印,最大可支持 10 张。 12531 WatermarkSet []*WatermarkInput `json:"WatermarkSet,omitempty" name:"WatermarkSet"` 12532} 12533 12534type SampleSnapshotTemplate struct { 12535 12536 // 采样截图模板唯一标识。 12537 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 12538 12539 // 模板类型,取值范围: 12540 // <li>Preset:系统预置模板;</li> 12541 // <li>Custom:用户自定义模板。</li> 12542 Type *string `json:"Type,omitempty" name:"Type"` 12543 12544 // 采样截图模板名称。 12545 Name *string `json:"Name,omitempty" name:"Name"` 12546 12547 // 模板描述信息。 12548 Comment *string `json:"Comment,omitempty" name:"Comment"` 12549 12550 // 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 12551 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 12552 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 12553 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 12554 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 12555 // 默认值:0。 12556 Width *uint64 `json:"Width,omitempty" name:"Width"` 12557 12558 // 截图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 12559 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 12560 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 12561 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 12562 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 12563 // 默认值:0。 12564 Height *uint64 `json:"Height,omitempty" name:"Height"` 12565 12566 // 分辨率自适应,可选值: 12567 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 12568 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 12569 // 默认值:open。 12570 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 12571 12572 // 图片格式。 12573 Format *string `json:"Format,omitempty" name:"Format"` 12574 12575 // 采样截图类型。 12576 SampleType *string `json:"SampleType,omitempty" name:"SampleType"` 12577 12578 // 采样间隔。 12579 SampleInterval *uint64 `json:"SampleInterval,omitempty" name:"SampleInterval"` 12580 12581 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 12582 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 12583 12584 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 12585 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 12586 12587 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 12588 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 12589 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 12590 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 12591 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li> 12592 // 默认值:black 。 12593 FillType *string `json:"FillType,omitempty" name:"FillType"` 12594} 12595 12596type SearchMediaRequest struct { 12597 *tchttp.BaseRequest 12598 12599 // 文件 ID 集合,匹配集合中的任意元素。 12600 // <li>数组长度限制:10。</li> 12601 // <li>单个 ID 长度限制:40个字符。</li> 12602 FileIds []*string `json:"FileIds,omitempty" name:"FileIds"` 12603 12604 // 文件名集合,模糊匹配媒体文件的文件名,匹配度越高,排序越优先。 12605 // <li>单个文件名长度限制:40个字符。</li> 12606 // <li>数组长度限制:10。</li> 12607 Names []*string `json:"Names,omitempty" name:"Names"` 12608 12609 // 文件名前缀,前缀匹配媒体文件的文件名。 12610 // <li>单个文件名前缀长度限制:20个字符。</li> 12611 // <li>数组长度限制:10。</li> 12612 NamePrefixes []*string `json:"NamePrefixes,omitempty" name:"NamePrefixes"` 12613 12614 // 文件描述集合,模糊匹配媒体文件的描述,匹配度越高,排序越优先。 12615 // <li>单个描述长度限制:100个字符。</li> 12616 // <li>数组长度限制:10。</li> 12617 Descriptions []*string `json:"Descriptions,omitempty" name:"Descriptions"` 12618 12619 // 分类 ID 集合,匹配集合指定 ID 的分类及其所有子类。 12620 // <li>数组长度限制:10。</li> 12621 ClassIds []*int64 `json:"ClassIds,omitempty" name:"ClassIds"` 12622 12623 // 标签集合,匹配集合中任意元素。 12624 // <li>单个标签长度限制:8个字符。</li> 12625 // <li>数组长度限制:10。</li> 12626 Tags []*string `json:"Tags,omitempty" name:"Tags"` 12627 12628 // 文件类型。匹配集合中的任意元素: 12629 // <li>Video: 视频文件</li> 12630 // <li>Audio: 音频文件</li> 12631 // <li>Image: 图片文件</li> 12632 Categories []*string `json:"Categories,omitempty" name:"Categories"` 12633 12634 // 媒体文件来源集合,来源取值参见 [SourceType](https://cloud.tencent.com/document/product/266/31773#MediaSourceData)。 12635 // <li>数组长度限制:10。</li> 12636 SourceTypes []*string `json:"SourceTypes,omitempty" name:"SourceTypes"` 12637 12638 // 推流 [直播码](https://cloud.tencent.com/document/product/267/5959) 集合。匹配集合中的任意元素。 12639 // <li>数组长度限制:10。</li> 12640 StreamIds []*string `json:"StreamIds,omitempty" name:"StreamIds"` 12641 12642 // 直播录制文件的唯一标识。匹配集合中的任意元素。 12643 // <li>数组长度限制:10。</li> 12644 Vids []*string `json:"Vids,omitempty" name:"Vids"` 12645 12646 // 匹配创建时间在此时间段内的文件。 12647 // <li>包含所指定的头尾时间点。</li> 12648 CreateTime *TimeRange `json:"CreateTime,omitempty" name:"CreateTime"` 12649 12650 // 匹配过期时间在此时间段内的文件,无法检索到已过期文件。 12651 // <li>包含所指定的头尾时间点。</li> 12652 ExpireTime *TimeRange `json:"ExpireTime,omitempty" name:"ExpireTime"` 12653 12654 // 排序方式。 12655 // <li>Sort.Field 可选 CreateTime 。</li> 12656 // <li>当 Text、 Names 或 Descriptions 不为空时,Sort.Field 字段无效, 搜索结果将以匹配度排序。</li> 12657 Sort *SortBy `json:"Sort,omitempty" name:"Sort"` 12658 12659 // <div id="p_offset">分页返回的起始偏移量,默认值:0。将返回第 Offset 到第 Offset+Limit-1 条。 12660 // <li>取值范围:Offset + Limit 不超过5000。(参见:<a href="#maxResultsDesc">接口返回结果数限制</a>)</li></div> 12661 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 12662 12663 // <div id="p_limit">分页返回的记录条数,默认值:10。将返回第 Offset 到第 Offset+Limit-1 条。 12664 // <li>取值范围:Offset + Limit 不超过5000。(参见:<a href="#maxResultsDesc">接口返回结果数限制</a>)</li></div> 12665 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 12666 12667 // 指定所有媒体文件需要返回的信息,可同时指定多个信息,N 从 0 开始递增。如果未填写该字段,默认返回所有信息。选项有: 12668 // <li>basicInfo(视频基础信息)。</li> 12669 // <li>metaData(视频元信息)。</li> 12670 // <li>transcodeInfo(视频转码结果信息)。</li> 12671 // <li>animatedGraphicsInfo(视频转动图结果信息)。</li> 12672 // <li>imageSpriteInfo(视频雪碧图信息)。</li> 12673 // <li>snapshotByTimeOffsetInfo(视频指定时间点截图信息)。</li> 12674 // <li>sampleSnapshotInfo(采样截图信息)。</li> 12675 // <li>keyFrameDescInfo(打点信息)。</li> 12676 // <li>adaptiveDynamicStreamingInfo(转自适应码流信息)。</li> 12677 // <li>miniProgramReviewInfo(小程序审核信息)。</li> 12678 Filters []*string `json:"Filters,omitempty" name:"Filters"` 12679 12680 // 媒体文件存储地区,如 ap-chongqing,参见[地域列表](https://cloud.tencent.com/document/product/266/9760#.E5.B7.B2.E6.94.AF.E6.8C.81.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8)。 12681 // <li>单个存储地区长度限制:20个字符。</li> 12682 // <li>数组长度限制:20。</li> 12683 StorageRegions []*string `json:"StorageRegions,omitempty" name:"StorageRegions"` 12684 12685 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 12686 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 12687 12688 // 存储类型数组。可选值有: 12689 // <li> STANDARD:标准存储。</li> 12690 // <li> STANDARD_IA:低频存储。</li> 12691 // <li> ARCHIVE:归档存储。</li> 12692 // <li> DEEP_ARCHIVE:深度归档存储。</li> 12693 StorageClasses []*string `json:"StorageClasses,omitempty" name:"StorageClasses"` 12694 12695 // (不推荐:应使用 Names、NamePrefixes 或 Descriptions 替代) 12696 // 搜索文本,模糊匹配媒体文件名称或描述信息,匹配项越多,匹配度越高,排序越优先。长度限制:64个字符。 12697 Text *string `json:"Text,omitempty" name:"Text"` 12698 12699 // (不推荐:应使用 SourceTypes 替代) 12700 // 媒体文件来源,来源取值参见 [SourceType](https://cloud.tencent.com/document/product/266/31773#MediaSourceData)。 12701 SourceType *string `json:"SourceType,omitempty" name:"SourceType"` 12702 12703 // (不推荐:应使用 StreamIds 替代) 12704 // 推流 [直播码](https://cloud.tencent.com/document/product/267/5959)。 12705 StreamId *string `json:"StreamId,omitempty" name:"StreamId"` 12706 12707 // (不推荐:应使用 Vids 替代) 12708 // 直播录制文件的唯一标识。 12709 Vid *string `json:"Vid,omitempty" name:"Vid"` 12710 12711 // (不推荐:应使用 CreateTime 替代) 12712 // 创建时间的开始时间。 12713 // <li>大于等于开始时间。</li> 12714 // <li>当 CreateTime.After 也存在时,将优先使用 CreateTime.After。</li> 12715 // <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。</li> 12716 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 12717 12718 // (不推荐:应使用 CreateTime 替代) 12719 // 创建时间的结束时间。 12720 // <li>小于结束时间。</li> 12721 // <li>当 CreateTime.Before 也存在时,将优先使用 CreateTime.Before。</li> 12722 // <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。</li> 12723 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 12724} 12725 12726func (r *SearchMediaRequest) ToJsonString() string { 12727 b, _ := json.Marshal(r) 12728 return string(b) 12729} 12730 12731// FromJsonString It is highly **NOT** recommended to use this function 12732// because it has no param check, nor strict type check 12733func (r *SearchMediaRequest) FromJsonString(s string) error { 12734 f := make(map[string]interface{}) 12735 if err := json.Unmarshal([]byte(s), &f); err != nil { 12736 return err 12737 } 12738 delete(f, "FileIds") 12739 delete(f, "Names") 12740 delete(f, "NamePrefixes") 12741 delete(f, "Descriptions") 12742 delete(f, "ClassIds") 12743 delete(f, "Tags") 12744 delete(f, "Categories") 12745 delete(f, "SourceTypes") 12746 delete(f, "StreamIds") 12747 delete(f, "Vids") 12748 delete(f, "CreateTime") 12749 delete(f, "ExpireTime") 12750 delete(f, "Sort") 12751 delete(f, "Offset") 12752 delete(f, "Limit") 12753 delete(f, "Filters") 12754 delete(f, "StorageRegions") 12755 delete(f, "SubAppId") 12756 delete(f, "StorageClasses") 12757 delete(f, "Text") 12758 delete(f, "SourceType") 12759 delete(f, "StreamId") 12760 delete(f, "Vid") 12761 delete(f, "StartTime") 12762 delete(f, "EndTime") 12763 if len(f) > 0 { 12764 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SearchMediaRequest has unknown keys!", "") 12765 } 12766 return json.Unmarshal([]byte(s), &r) 12767} 12768 12769type SearchMediaResponse struct { 12770 *tchttp.BaseResponse 12771 Response *struct { 12772 12773 // 符合搜索条件的记录总数。 12774 // <li>最大值:5000。当命中记录数超过5000时,该字段将返回 5000,而非实际命中总数。</li> 12775 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 12776 12777 // 媒体文件信息列表。 12778 MediaInfoSet []*MediaInfo `json:"MediaInfoSet,omitempty" name:"MediaInfoSet"` 12779 12780 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12781 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12782 } `json:"Response"` 12783} 12784 12785func (r *SearchMediaResponse) ToJsonString() string { 12786 b, _ := json.Marshal(r) 12787 return string(b) 12788} 12789 12790// FromJsonString It is highly **NOT** recommended to use this function 12791// because it has no param check, nor strict type check 12792func (r *SearchMediaResponse) FromJsonString(s string) error { 12793 return json.Unmarshal([]byte(s), &r) 12794} 12795 12796type SegmentConfigureInfo struct { 12797 12798 // 视频拆条识别任务开关,可选值: 12799 // <li>ON:开启智能视频拆条识别任务;</li> 12800 // <li>OFF:关闭智能视频拆条识别任务。</li> 12801 Switch *string `json:"Switch,omitempty" name:"Switch"` 12802} 12803 12804type SegmentConfigureInfoForUpdate struct { 12805 12806 // 视频拆条识别任务开关,可选值: 12807 // <li>ON:开启智能视频拆条识别任务;</li> 12808 // <li>OFF:关闭智能视频拆条识别任务。</li> 12809 Switch *string `json:"Switch,omitempty" name:"Switch"` 12810} 12811 12812type SimpleAesEdkPair struct { 12813 12814 // 加密后的数据密钥。 12815 Edk *string `json:"Edk,omitempty" name:"Edk"` 12816 12817 // 数据密钥。返回的数据密钥 DK 为 Base64 编码字符串。 12818 Dk *string `json:"Dk,omitempty" name:"Dk"` 12819} 12820 12821type SimpleHlsClipRequest struct { 12822 *tchttp.BaseRequest 12823 12824 // 需要裁剪的腾讯云点播 HLS 视频 URL。 12825 Url *string `json:"Url,omitempty" name:"Url"` 12826 12827 // 裁剪的开始偏移时间,单位秒。默认 0,即从视频开头开始裁剪。负数表示距离视频结束多少秒开始裁剪。例如 -10 表示从倒数第 10 秒开始裁剪。 12828 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 12829 12830 // 裁剪的结束偏移时间,单位秒。默认 0,即裁剪到视频尾部。负数表示距离视频结束多少秒结束裁剪。例如 -10 表示到倒数第 10 秒结束裁剪。 12831 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 12832 12833 // 是否固化。0 不固化,1 固化。默认不固化。 12834 IsPersistence *int64 `json:"IsPersistence,omitempty" name:"IsPersistence"` 12835 12836 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 12837 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 12838} 12839 12840func (r *SimpleHlsClipRequest) ToJsonString() string { 12841 b, _ := json.Marshal(r) 12842 return string(b) 12843} 12844 12845// FromJsonString It is highly **NOT** recommended to use this function 12846// because it has no param check, nor strict type check 12847func (r *SimpleHlsClipRequest) FromJsonString(s string) error { 12848 f := make(map[string]interface{}) 12849 if err := json.Unmarshal([]byte(s), &f); err != nil { 12850 return err 12851 } 12852 delete(f, "Url") 12853 delete(f, "StartTimeOffset") 12854 delete(f, "EndTimeOffset") 12855 delete(f, "IsPersistence") 12856 delete(f, "SubAppId") 12857 if len(f) > 0 { 12858 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SimpleHlsClipRequest has unknown keys!", "") 12859 } 12860 return json.Unmarshal([]byte(s), &r) 12861} 12862 12863type SimpleHlsClipResponse struct { 12864 *tchttp.BaseResponse 12865 Response *struct { 12866 12867 // 裁剪后的视频地址。 12868 Url *string `json:"Url,omitempty" name:"Url"` 12869 12870 // 裁剪后的视频元信息。目前`Size`,`Rotate`,`VideoDuration`,`AudioDuration` 几个字段暂时缺省,没有真实数据。 12871 MetaData *MediaMetaData `json:"MetaData,omitempty" name:"MetaData"` 12872 12873 // 剪辑固化后的视频的媒体文件的唯一标识。 12874 FileId *string `json:"FileId,omitempty" name:"FileId"` 12875 12876 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 12877 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 12878 } `json:"Response"` 12879} 12880 12881func (r *SimpleHlsClipResponse) ToJsonString() string { 12882 b, _ := json.Marshal(r) 12883 return string(b) 12884} 12885 12886// FromJsonString It is highly **NOT** recommended to use this function 12887// because it has no param check, nor strict type check 12888func (r *SimpleHlsClipResponse) FromJsonString(s string) error { 12889 return json.Unmarshal([]byte(s), &r) 12890} 12891 12892type SnapshotByTimeOffset2017 struct { 12893 12894 // 错误码 12895 // <li>0:成功;</li> 12896 // <li>其他值:失败。</li> 12897 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 12898 12899 // 截图的具体时间点,单位:毫秒。 12900 TimeOffset *uint64 `json:"TimeOffset,omitempty" name:"TimeOffset"` 12901 12902 // 截图输出文件地址。 12903 Url *string `json:"Url,omitempty" name:"Url"` 12904} 12905 12906type SnapshotByTimeOffsetTask2017 struct { 12907 12908 // 截图任务 ID。 12909 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 12910 12911 // 截图文件 ID。 12912 FileId *string `json:"FileId,omitempty" name:"FileId"` 12913 12914 // 截图规格,参见[指定时间点截图参数模板](https://cloud.tencent.com/document/product/266/33480#.E6.97.B6.E9.97.B4.E7.82.B9.E6.88.AA.E5.9B.BE.E6.A8.A1.E6.9D.BF)。 12915 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 12916 12917 // 截图结果信息。 12918 SnapshotInfoSet []*SnapshotByTimeOffset2017 `json:"SnapshotInfoSet,omitempty" name:"SnapshotInfoSet"` 12919} 12920 12921type SnapshotByTimeOffsetTaskInput struct { 12922 12923 // 指定时间点截图模板 ID。 12924 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 12925 12926 // 截图时间点列表,时间点支持 s、% 两种格式: 12927 // <li>当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;</li> 12928 // <li>当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。</li> 12929 ExtTimeOffsetSet []*string `json:"ExtTimeOffsetSet,omitempty" name:"ExtTimeOffsetSet"` 12930 12931 // 截图时间点列表,单位为<font color=red>毫秒</font>。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。 12932 TimeOffsetSet []*float64 `json:"TimeOffsetSet,omitempty" name:"TimeOffsetSet"` 12933 12934 // 水印列表,支持多张图片或文字水印,最大可支持 10 张。 12935 WatermarkSet []*WatermarkInput `json:"WatermarkSet,omitempty" name:"WatermarkSet"` 12936} 12937 12938type SnapshotByTimeOffsetTemplate struct { 12939 12940 // 指定时间点截图模板唯一标识。 12941 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 12942 12943 // 模板类型,取值范围: 12944 // <li>Preset:系统预置模板;</li> 12945 // <li>Custom:用户自定义模板。</li> 12946 Type *string `json:"Type,omitempty" name:"Type"` 12947 12948 // 指定时间点截图模板名称。 12949 Name *string `json:"Name,omitempty" name:"Name"` 12950 12951 // 模板描述信息。 12952 Comment *string `json:"Comment,omitempty" name:"Comment"` 12953 12954 // 截图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 12955 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 12956 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 12957 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 12958 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 12959 // 默认值:0。 12960 Width *uint64 `json:"Width,omitempty" name:"Width"` 12961 12962 // 截图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 12963 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 12964 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 12965 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 12966 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 12967 // 默认值:0。 12968 Height *uint64 `json:"Height,omitempty" name:"Height"` 12969 12970 // 分辨率自适应,可选值: 12971 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 12972 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 12973 // 默认值:open。 12974 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 12975 12976 // 图片格式。 12977 Format *string `json:"Format,omitempty" name:"Format"` 12978 12979 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 12980 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 12981 12982 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 12983 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 12984 12985 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 12986 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 12987 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 12988 // <li>black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 12989 // <li>black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。</li> 12990 // 默认值:black 。 12991 FillType *string `json:"FillType,omitempty" name:"FillType"` 12992} 12993 12994type SortBy struct { 12995 12996 // 排序字段 12997 Field *string `json:"Field,omitempty" name:"Field"` 12998 12999 // 排序方式,可选值:Asc(升序)、Desc(降序) 13000 Order *string `json:"Order,omitempty" name:"Order"` 13001} 13002 13003type SpecificationDataItem struct { 13004 13005 // 任务规格。 13006 Specification *string `json:"Specification,omitempty" name:"Specification"` 13007 13008 // 统计数据。 13009 Data []*TaskStatDataItem `json:"Data,omitempty" name:"Data"` 13010} 13011 13012type SplitMediaOutputConfig struct { 13013 13014 // 输出文件名,最长 64 个字符。缺省由系统指定生成文件名。 13015 MediaName *string `json:"MediaName,omitempty" name:"MediaName"` 13016 13017 // 输出文件格式,可选值:mp4、hls。默认是 mp4。 13018 Type *string `json:"Type,omitempty" name:"Type"` 13019 13020 // 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。 13021 // <li>默认值:0,表示其他分类。</li> 13022 ClassId *int64 `json:"ClassId,omitempty" name:"ClassId"` 13023 13024 // 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。 13025 ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` 13026} 13027 13028type SplitMediaRequest struct { 13029 *tchttp.BaseRequest 13030 13031 // 视频的 ID。 13032 FileId *string `json:"FileId,omitempty" name:"FileId"` 13033 13034 // 视频拆条任务信息列表,最多同时支持100个拆条信息。 13035 Segments []*SplitMediaTaskConfig `json:"Segments,omitempty" name:"Segments"` 13036 13037 // 标识来源上下文,用于透传用户请求信息,在 SplitMediaComplete 回调和任务流状态变更回调将返回该字段值,最长 1000个字符。 13038 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 13039 13040 // 用于任务去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 13041 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 13042 13043 // 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。 13044 TasksPriority *int64 `json:"TasksPriority,omitempty" name:"TasksPriority"` 13045 13046 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 13047 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 13048} 13049 13050func (r *SplitMediaRequest) ToJsonString() string { 13051 b, _ := json.Marshal(r) 13052 return string(b) 13053} 13054 13055// FromJsonString It is highly **NOT** recommended to use this function 13056// because it has no param check, nor strict type check 13057func (r *SplitMediaRequest) FromJsonString(s string) error { 13058 f := make(map[string]interface{}) 13059 if err := json.Unmarshal([]byte(s), &f); err != nil { 13060 return err 13061 } 13062 delete(f, "FileId") 13063 delete(f, "Segments") 13064 delete(f, "SessionContext") 13065 delete(f, "SessionId") 13066 delete(f, "TasksPriority") 13067 delete(f, "SubAppId") 13068 if len(f) > 0 { 13069 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SplitMediaRequest has unknown keys!", "") 13070 } 13071 return json.Unmarshal([]byte(s), &r) 13072} 13073 13074type SplitMediaResponse struct { 13075 *tchttp.BaseResponse 13076 Response *struct { 13077 13078 // 视频拆条的任务 ID,可以通过该 ID 查询拆条任务(任务类型为 SplitMedia)的状态。 13079 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 13080 13081 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 13082 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 13083 } `json:"Response"` 13084} 13085 13086func (r *SplitMediaResponse) ToJsonString() string { 13087 b, _ := json.Marshal(r) 13088 return string(b) 13089} 13090 13091// FromJsonString It is highly **NOT** recommended to use this function 13092// because it has no param check, nor strict type check 13093func (r *SplitMediaResponse) FromJsonString(s string) error { 13094 return json.Unmarshal([]byte(s), &r) 13095} 13096 13097type SplitMediaTask struct { 13098 13099 // 任务 ID。 13100 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 13101 13102 // 任务流状态,取值: 13103 // <li>PROCESSING:处理中;</li> 13104 // <li>FINISH:已完成。</li> 13105 Status *string `json:"Status,omitempty" name:"Status"` 13106 13107 // 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。 13108 ErrCodeExt *string `json:"ErrCodeExt,omitempty" name:"ErrCodeExt"` 13109 13110 // 错误码,0 表示成功,其他值表示失败(该字段已不推荐使用,建议使用新的错误码字段 ErrCodeExt)。 13111 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 13112 13113 // 错误信息。 13114 Message *string `json:"Message,omitempty" name:"Message"` 13115 13116 // 视频拆条任务详细信息列表。 13117 FileInfoSet []*SplitMediaTaskSegmentInfo `json:"FileInfoSet,omitempty" name:"FileInfoSet"` 13118 13119 // 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。 13120 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 13121 13122 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。 13123 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 13124} 13125 13126type SplitMediaTaskConfig struct { 13127 13128 // 视频拆条起始的偏移时间,单位:秒。 13129 // <li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> 13130 // <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> 13131 // <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> 13132 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 13133 13134 // 视频拆条结束的偏移时间,单位:秒。 13135 // <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> 13136 // <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> 13137 // <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li> 13138 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 13139 13140 // [任务流模板](/document/product/266/11700#.E4.BB.BB.E5.8A.A1.E6.B5.81.E6.A8.A1.E6.9D.BF)名字,如果要对生成的新视频执行任务流时填写。 13141 ProcedureName *string `json:"ProcedureName,omitempty" name:"ProcedureName"` 13142 13143 // 视频拆条输出信息。 13144 OutputConfig *SplitMediaOutputConfig `json:"OutputConfig,omitempty" name:"OutputConfig"` 13145} 13146 13147type SplitMediaTaskInput struct { 13148 13149 // 视频的 ID。 13150 FileId *string `json:"FileId,omitempty" name:"FileId"` 13151 13152 // 视频拆条起始的偏移时间,单位:秒。 13153 // <li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> 13154 // <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> 13155 // <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> 13156 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 13157 13158 // 视频拆条结束的偏移时间,单位:秒。 13159 // <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> 13160 // <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> 13161 // <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li> 13162 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 13163 13164 // [任务流模板](/document/product/266/11700#.E4.BB.BB.E5.8A.A1.E6.B5.81.E6.A8.A1.E6.9D.BF)名字,如果要对生成的新视频执行任务流时填写。 13165 ProcedureName *string `json:"ProcedureName,omitempty" name:"ProcedureName"` 13166 13167 // 视频拆条输出信息。 13168 OutputConfig *SplitMediaOutputConfig `json:"OutputConfig,omitempty" name:"OutputConfig"` 13169} 13170 13171type SplitMediaTaskSegmentInfo struct { 13172 13173 // 视频拆条任务输入信息。 13174 Input *SplitMediaTaskInput `json:"Input,omitempty" name:"Input"` 13175 13176 // 视频拆条任务输出信息。 13177 // 注意:此字段可能返回 null,表示取不到有效值。 13178 Output *TaskOutputMediaInfo `json:"Output,omitempty" name:"Output"` 13179 13180 // 若发起视频拆条任务时指定了视频处理流程,则该字段为流程任务 ID。 13181 ProcedureTaskId *string `json:"ProcedureTaskId,omitempty" name:"ProcedureTaskId"` 13182} 13183 13184type StatDataItem struct { 13185 13186 // 数据所在时间区间的开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。 13187 // <li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li> 13188 // <li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li> 13189 Time *string `json:"Time,omitempty" name:"Time"` 13190 13191 // 数据大小。 13192 // <li>存储空间的数据,单位是字节。</li> 13193 // <li>转码时长的数据,单位是秒。</li> 13194 // <li>流量数据,单位是字节。</li> 13195 // <li>带宽数据,单位是比特每秒。</li> 13196 Value *int64 `json:"Value,omitempty" name:"Value"` 13197} 13198 13199type StickerTrackItem struct { 13200 13201 // 贴图片段的媒体素材来源,可以是: 13202 // <li>点播的媒体文件 ID;</li> 13203 // <li>其他媒体文件的下载 URL。</li> 13204 // 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 13205 SourceMedia *string `json:"SourceMedia,omitempty" name:"SourceMedia"` 13206 13207 // 贴图的持续时间,单位为秒。 13208 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 13209 13210 // 贴图在轨道上的起始时间,单位为秒。 13211 StartTime *float64 `json:"StartTime,omitempty" name:"StartTime"` 13212 13213 // 原点位置,取值有: 13214 // <li>Center:坐标原点为中心位置,如画布中心。</li> 13215 // 默认值:Center。 13216 CoordinateOrigin *string `json:"CoordinateOrigin,omitempty" name:"CoordinateOrigin"` 13217 13218 // 贴图原点距离画布原点的水平位置。支持 %、px 两种格式: 13219 // <li>当字符串以 % 结尾,表示贴图 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布宽度的 10%。</li><li>当字符串以 px 结尾,表示贴图 XPos 单位为像素,如 100px 表示 XPos 为 100 像素。</li> 13220 // 默认值:0px。 13221 XPos *string `json:"XPos,omitempty" name:"XPos"` 13222 13223 // 贴图原点距离画布原点的垂直位置。支持 %、px 两种格式: 13224 // <li>当字符串以 % 结尾,表示贴图 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。</li> 13225 // <li>当字符串以 px 结尾,表示贴图 YPos 单位为像素,如 100px 表示 YPos 为 100 像素。</li> 13226 // 默认值:0px。 13227 YPos *string `json:"YPos,omitempty" name:"YPos"` 13228 13229 // 贴图的宽度。支持 %、px 两种格式: 13230 // <li>当字符串以 % 结尾,表示贴图 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。</li> 13231 // <li>当字符串以 px 结尾,表示贴图 Width 单位为像素,如 100px 表示 Width 为 100 像素。</li> 13232 // <li>当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。</li> 13233 // <li>当 Width 为空0,Height 非空,则 Width 按比例缩放</li> 13234 // <li>当 Width 非空,Height 为空,则 Height 按比例缩放。</li> 13235 Width *string `json:"Width,omitempty" name:"Width"` 13236 13237 // 贴图的高度。支持 %、px 两种格式: 13238 // <li>当字符串以 % 结尾,表示贴图 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%。</li> 13239 // <li>当字符串以 px 结尾,表示贴图 Height 单位为像素,如 100px 表示 Hieght 为 100 像素。</li> 13240 // <li>当 Width、Height 均为空,则 Width 和 Height 取贴图素材本身的 Width、Height。</li> 13241 // <li>当 Width 为空,Height 非空,则 Width 按比例缩放</li> 13242 // <li>当 Width 非空,Height 为空,则 Height 按比例缩放。</li> 13243 Height *string `json:"Height,omitempty" name:"Height"` 13244 13245 // 对贴图进行的操作,如图像旋转等。 13246 ImageOperations []*ImageTransform `json:"ImageOperations,omitempty" name:"ImageOperations"` 13247} 13248 13249type StorageStatData struct { 13250 13251 // 点播存储的计费区域,可能值: 13252 // <li>Chinese Mainland:中国境内(不包含港澳台)。</li> 13253 // <li>Outside Chinese Mainland:中国境外。</li> 13254 Area *string `json:"Area,omitempty" name:"Area"` 13255 13256 // 当前总存储量,单位是字节。 13257 TotalStorage *uint64 `json:"TotalStorage,omitempty" name:"TotalStorage"` 13258 13259 // 当前低频存储量,单位是字节。 13260 InfrequentStorage *uint64 `json:"InfrequentStorage,omitempty" name:"InfrequentStorage"` 13261 13262 // 当前标准存储量,单位是字节。 13263 StandardStorage *uint64 `json:"StandardStorage,omitempty" name:"StandardStorage"` 13264 13265 // 当前归档存储量,单位是字节。 13266 ArchiveStorage *uint64 `json:"ArchiveStorage,omitempty" name:"ArchiveStorage"` 13267 13268 // 当前深度归档存储量,单位是字节。 13269 DeepArchiveStorage *uint64 `json:"DeepArchiveStorage,omitempty" name:"DeepArchiveStorage"` 13270} 13271 13272type SubAppIdInfo struct { 13273 13274 // 子应用 ID。 13275 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 13276 13277 // 子应用名称。 13278 Name *string `json:"Name,omitempty" name:"Name"` 13279 13280 // 子应用简介。 13281 Description *string `json:"Description,omitempty" name:"Description"` 13282 13283 // 子应用创建时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 13284 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 13285 13286 // 子应用状态,有效值: 13287 // <li>On:启用;</li> 13288 // <li>Off:停用。</li> 13289 // <li>Destroying:销毁中。</li> 13290 // <li>Destroyed:销毁完成。</li> 13291 Status *string `json:"Status,omitempty" name:"Status"` 13292} 13293 13294type SvgWatermarkInput struct { 13295 13296 // 水印的宽度,支持 px,%,W%,H%,S%,L% 六种格式: 13297 // <li>当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素;当填 0px 且 13298 // Height 不为 0px 时,表示水印的宽度按原始 SVG 图像等比缩放;当 Width、Height 都填 0px 时,表示水印的宽度取原始 SVG 图像的宽度;</li> 13299 // <li>当字符串以 W% 结尾,表示水印 Width 为视频宽度的百分比大小,如 10W% 表示 Width 为视频宽度的 10%;</li> 13300 // <li>当字符串以 H% 结尾,表示水印 Width 为视频高度的百分比大小,如 10H% 表示 Width 为视频高度的 10%;</li> 13301 // <li>当字符串以 S% 结尾,表示水印 Width 为视频短边的百分比大小,如 10S% 表示 Width 为视频短边的 10%;</li> 13302 // <li>当字符串以 L% 结尾,表示水印 Width 为视频长边的百分比大小,如 10L% 表示 Width 为视频长边的 10%;</li> 13303 // <li>当字符串以 % 结尾时,含义同 W%。</li> 13304 // 默认值为 10W%。 13305 Width *string `json:"Width,omitempty" name:"Width"` 13306 13307 // 水印的高度,支持 px,W%,H%,S%,L% 六种格式: 13308 // <li>当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;当填 0px 且 13309 // Width 不为 0px 时,表示水印的高度按原始 SVG 图像等比缩放;当 Width、Height 都填 0px 时,表示水印的高度取原始 SVG 图像的高度;</li> 13310 // <li>当字符串以 W% 结尾,表示水印 Height 为视频宽度的百分比大小,如 10W% 表示 Height 为视频宽度的 10%;</li> 13311 // <li>当字符串以 H% 结尾,表示水印 Height 为视频高度的百分比大小,如 10H% 表示 Height 为视频高度的 10%;</li> 13312 // <li>当字符串以 S% 结尾,表示水印 Height 为视频短边的百分比大小,如 10S% 表示 Height 为视频短边的 10%;</li> 13313 // <li>当字符串以 L% 结尾,表示水印 Height 为视频长边的百分比大小,如 10L% 表示 Height 为视频长边的 10%;</li> 13314 // <li>当字符串以 % 结尾时,含义同 H%。</li> 13315 // 默认值为 0px。 13316 Height *string `json:"Height,omitempty" name:"Height"` 13317} 13318 13319type SvgWatermarkInputForUpdate struct { 13320 13321 // 水印的宽度,支持 px,%,W%,H%,S%,L% 六种格式: 13322 // <li>当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素;当填 0px 且 13323 // Height 不为 0px 时,表示水印的宽度按原始 SVG 图像等比缩放;当 Width、Height 都填 0px 时,表示水印的宽度取原始 SVG 图像的宽度;</li> 13324 // <li>当字符串以 W% 结尾,表示水印 Width 为视频宽度的百分比大小,如 10W% 表示 Width 为视频宽度的 10%;</li> 13325 // <li>当字符串以 H% 结尾,表示水印 Width 为视频高度的百分比大小,如 10H% 表示 Width 为视频高度的 10%;</li> 13326 // <li>当字符串以 S% 结尾,表示水印 Width 为视频短边的百分比大小,如 10S% 表示 Width 为视频短边的 10%;</li> 13327 // <li>当字符串以 L% 结尾,表示水印 Width 为视频长边的百分比大小,如 10L% 表示 Width 为视频长边的 10%;</li> 13328 // <li>当字符串以 % 结尾时,含义同 W%。</li> 13329 // 默认值为 10W%。 13330 Width *string `json:"Width,omitempty" name:"Width"` 13331 13332 // 水印的高度,支持 px,%,W%,H%,S%,L% 六种格式: 13333 // <li>当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素;当填 0px 且 13334 // Width 不为 0px 时,表示水印的高度按原始 SVG 图像等比缩放;当 Width、Height 都填 0px 时,表示水印的高度取原始 SVG 图像的高度;</li> 13335 // <li>当字符串以 W% 结尾,表示水印 Height 为视频宽度的百分比大小,如 10W% 表示 Height 为视频宽度的 10%;</li> 13336 // <li>当字符串以 H% 结尾,表示水印 Height 为视频高度的百分比大小,如 10H% 表示 Height 为视频高度的 10%;</li> 13337 // <li>当字符串以 S% 结尾,表示水印 Height 为视频短边的百分比大小,如 10S% 表示 Height 为视频短边的 10%;</li> 13338 // <li>当字符串以 L% 结尾,表示水印 Height 为视频长边的百分比大小,如 10L% 表示 Height 为视频长边的 10%;</li> 13339 // <li>当字符串以 % 结尾时,含义同 H%。 13340 // 默认值为 0px。 13341 Height *string `json:"Height,omitempty" name:"Height"` 13342 13343 // 水印周期配置,用于配置水印周期性地显示与隐藏。 13344 // 主要使用场景是:为了视频防遮标,在视频多个地方设置水印,这些水印按固定顺序周期性地显示与隐藏。 13345 // 例如,设置 A、B、C、D 4 个水印分别位于视频的左上角、右上角、右下角、左下角处,视频开始时,{ A 显示 5 秒 -> B 显示 5 秒 -> C 显示 5 秒 -> D 显示 5 秒 } -> A 显示 5 秒 -> B 显示 5 秒 -> ...,任何时刻只显示一处水印。 13346 // 花括号 {} 表示由 A、B、C、D 4 个水印组成的大周期,可以看出每个大周期持续 20 秒。 13347 // 可以看出,A、B、C、D 都是周期性地显示 5 秒、隐藏 15 秒,且四者有固定的显示顺序。 13348 // 此配置项即用来描述单个水印的周期配置。 13349 CycleConfig *WatermarkCycleConfigForUpdate `json:"CycleConfig,omitempty" name:"CycleConfig"` 13350} 13351 13352type TEHDConfig struct { 13353 13354 // 极速高清类型,可选值: 13355 // <li>TEHD-100:极速高清-100。</li> 13356 // 不填代表不启用极速高清。 13357 Type *string `json:"Type,omitempty" name:"Type"` 13358 13359 // 视频码率上限,当 Type 指定了极速高清类型时有效。 13360 // 不填或填0表示不设视频码率上限。 13361 MaxVideoBitrate *uint64 `json:"MaxVideoBitrate,omitempty" name:"MaxVideoBitrate"` 13362} 13363 13364type TEHDConfigForUpdate struct { 13365 13366 // 极速高清类型,可选值: 13367 // <li>TEHD-100:极速高清-100。</li> 13368 // 不填代表不修改。 13369 Type *string `json:"Type,omitempty" name:"Type"` 13370 13371 // 视频码率上限,不填代表不修改。 13372 MaxVideoBitrate *uint64 `json:"MaxVideoBitrate,omitempty" name:"MaxVideoBitrate"` 13373} 13374 13375type TagConfigureInfo struct { 13376 13377 // 智能标签任务开关,可选值: 13378 // <li>ON:开启智能标签任务;</li> 13379 // <li>OFF:关闭智能标签任务。</li> 13380 Switch *string `json:"Switch,omitempty" name:"Switch"` 13381} 13382 13383type TagConfigureInfoForUpdate struct { 13384 13385 // 智能标签任务开关,可选值: 13386 // <li>ON:开启智能标签任务;</li> 13387 // <li>OFF:关闭智能标签任务。</li> 13388 Switch *string `json:"Switch,omitempty" name:"Switch"` 13389} 13390 13391type TaskOutputMediaInfo struct { 13392 13393 // 媒体文件 ID。 13394 FileId *string `json:"FileId,omitempty" name:"FileId"` 13395 13396 // 转拉完成后生成的媒体文件基础信息。 13397 MediaBasicInfo *MediaBasicInfo `json:"MediaBasicInfo,omitempty" name:"MediaBasicInfo"` 13398} 13399 13400type TaskSimpleInfo struct { 13401 13402 // 任务 ID。 13403 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 13404 13405 // 任务状态。取值:WAITING(等待中)、PROCESSING(处理中)、FINISH(已完成)。 13406 Status *string `json:"Status,omitempty" name:"Status"` 13407 13408 // 视频 ID。 13409 FileId *string `json:"FileId,omitempty" name:"FileId"` 13410 13411 // 任务类型,取值: 13412 // <li>Procedure:视频处理任务;</li> 13413 // <li>EditMedia:视频编辑任务</li> 13414 // <li>WechatDistribute:微信发布任务。</li> 13415 // 兼容 2017 版的任务类型: 13416 // <li>Transcode:视频转码任务;</li> 13417 // <li>SnapshotByTimeOffset:视频截图任务;</li> 13418 // <li>Concat:视频拼接任务;</li> 13419 // <li>Clip:视频剪辑任务;</li> 13420 // <li>ImageSprites:截取雪碧图任务。</li> 13421 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 13422 13423 // 任务创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 13424 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 13425 13426 // 任务开始执行时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。若任务尚未开始,该字段为空。 13427 BeginProcessTime *string `json:"BeginProcessTime,omitempty" name:"BeginProcessTime"` 13428 13429 // 任务结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。若任务尚未完成,该字段为空。 13430 FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` 13431 13432 // 用于去重的识别码,如果七天内曾有过相同的识别码的请求。 13433 SessionId *string `json:"SessionId,omitempty" name:"SessionId"` 13434 13435 // 来源上下文,用于透传用户请求信息。 13436 SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` 13437} 13438 13439type TaskStatData struct { 13440 13441 // 任务类型。 13442 // <li> Transcoding: 普通转码</li> 13443 // <li> Transcoding-TESHD: 极速高清转码</li> 13444 // <li> Editing: 视频编辑</li> 13445 // <li> AdaptiveBitrateStreaming: 自适应码流</li> 13446 // <li> ContentAudit: 内容审核</li> 13447 // <li>Transcode: 转码,包含普通转码、极速高清和视频编辑(不推荐使用)</li> 13448 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` 13449 13450 // 任务数统计数据概览,用量单位为秒。 13451 Summary []*TaskStatDataItem `json:"Summary,omitempty" name:"Summary"` 13452 13453 // 不同规格任务统计数据详情。 13454 // 转码规格: 13455 // <li>Remuxing: 转封装</li> 13456 // <li>Audio: 音频转码</li> 13457 // <li>Standard.H264.SD: H.264编码方式标清转码</li> 13458 // <li>Standard.H264.HD: H.264编码方式高清转码</li> 13459 // <li>Standard.H264.FHD: H.264编码方式全高清转码</li> 13460 // <li>Standard.H264.2K: H.264编码方式2K转码</li> 13461 // <li>Standard.H264.4K: H.264编码方式4K转码</li> 13462 // <li>Standard.H265.SD: H.265编码方式标清转码</li> 13463 // <li>Standard.H265.HD: H.265编码方式高清转码</li> 13464 // <li>Standard.H265.FHD: H.265编码方式全高清转码</li> 13465 // <li>Standard.H265.2K: H.265编码方式2K转码</li> 13466 // <li>Standard.H265.4K: H.265编码方式4K转码</li> 13467 // <li>TESHD-10.H264.SD: H.264编码方式标清极速高清转码</li> 13468 // <li>TESHD-10.H264.HD: H.264编码方式高清极速高清转码</li> 13469 // <li>TESHD-10.H264.FHD: H.264编码方式全高清极速高清转码</li> 13470 // <li>TESHD-10.H264.2K: H.264编码方式2K极速高清转码</li> 13471 // <li>TESHD-10.H264.4K: H.264编码方式4K极速高清转码</li> 13472 // <li>TESHD-10.H265.SD: H.265编码方式标清极速高清转码</li> 13473 // <li>TESHD-10.H265.HD: H.265编码方式高清极速高清转码</li> 13474 // <li>TESHD-10.H265.FHD: H.265编码方式全高清极速高清转码</li> 13475 // <li>TESHD-10.H265.2K: H.265编码方式2K极速高清转码</li> 13476 // <li>TESHD-10.H265.4K: H.265编码方式4K极速高清转码</li> 13477 // <li>Edit.Audio: 音频编辑</li> 13478 // <li>Edit.H264.SD: H.264编码方式标清视频编辑</li> 13479 // <li>Edit.H264.HD: H.264编码方式高清视频编辑</li> 13480 // <li>Edit.H264.FHD: H.264编码方式全高清视频编辑</li> 13481 // <li>Edit.H264.2K: H.264编码方式2K视频编辑</li> 13482 // <li>Edit.H264.4K: H.264编码方式4K视频编辑</li> 13483 // <li>Edit.H265.SD: H.265编码方式标清视频编辑</li> 13484 // <li>Edit.H265.HD: H.265编码方式高清视频编辑</li> 13485 // <li>Edit.H265.FHD: H.265编码方式全高清视频编辑</li> 13486 // <li>Edit.H265.2K: H.265编码方式2K视频编辑</li> 13487 // <li>Edit.H265.4K: H.265编码方式4K视频编辑</li> 13488 Details []*SpecificationDataItem `json:"Details,omitempty" name:"Details"` 13489} 13490 13491type TaskStatDataItem struct { 13492 13493 // 数据所在时间区间的开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。 13494 Time *string `json:"Time,omitempty" name:"Time"` 13495 13496 // 任务数。 13497 Count *int64 `json:"Count,omitempty" name:"Count"` 13498 13499 // 任务用量。 13500 Usage *int64 `json:"Usage,omitempty" name:"Usage"` 13501} 13502 13503type TempCertificate struct { 13504 13505 // 临时安全证书 Id。 13506 SecretId *string `json:"SecretId,omitempty" name:"SecretId"` 13507 13508 // 临时安全证书 Key。 13509 SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` 13510 13511 // Token 值。 13512 Token *string `json:"Token,omitempty" name:"Token"` 13513 13514 // 证书无效的时间,返回 Unix 时间戳,精确到秒。 13515 ExpiredTime *uint64 `json:"ExpiredTime,omitempty" name:"ExpiredTime"` 13516} 13517 13518type TerrorismConfigureInfo struct { 13519 13520 // 画面鉴恐任务控制参数。 13521 // 注意:此字段可能返回 null,表示取不到有效值。 13522 ImgReviewInfo *TerrorismImgReviewTemplateInfo `json:"ImgReviewInfo,omitempty" name:"ImgReviewInfo"` 13523 13524 // 文字鉴恐任务控制参数。 13525 // 注意:此字段可能返回 null,表示取不到有效值。 13526 OcrReviewInfo *TerrorismOcrReviewTemplateInfo `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 13527} 13528 13529type TerrorismConfigureInfoForUpdate struct { 13530 13531 // 画面鉴恐任务控制参数。 13532 ImgReviewInfo *TerrorismImgReviewTemplateInfoForUpdate `json:"ImgReviewInfo,omitempty" name:"ImgReviewInfo"` 13533 13534 // 文本鉴恐任务控制参数。 13535 OcrReviewInfo *TerrorismOcrReviewTemplateInfoForUpdate `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 13536} 13537 13538type TerrorismImgReviewTemplateInfo struct { 13539 13540 // 画面鉴恐任务开关,可选值: 13541 // <li>ON:开启画面鉴恐任务;</li> 13542 // <li>OFF:关闭画面鉴恐任务。</li> 13543 Switch *string `json:"Switch,omitempty" name:"Switch"` 13544 13545 // 画面鉴恐过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回,可选值为: 13546 // <li>guns:武器枪支;</li> 13547 // <li>crowd:人群聚集;</li> 13548 // <li>bloody:血腥画面;</li> 13549 // <li>police:警察部队;</li> 13550 // <li>banners:暴恐旗帜;</li> 13551 // <li>militant:武装分子;</li> 13552 // <li>explosion:爆炸火灾;</li> 13553 // <li>terrorists:暴恐人物;</li> 13554 // <li>scenario:暴恐画面。</li> 13555 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13556 13557 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 90 分。取值范围:0~100。 13558 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13559 13560 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 80 分。取值范围:0~100。 13561 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13562} 13563 13564type TerrorismImgReviewTemplateInfoForUpdate struct { 13565 13566 // 画面鉴恐任务开关,可选值: 13567 // <li>ON:开启画面鉴恐任务;</li> 13568 // <li>OFF:关闭画面鉴恐任务。</li> 13569 Switch *string `json:"Switch,omitempty" name:"Switch"` 13570 13571 // 画面鉴恐过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回,可选值为: 13572 // <li>guns:武器枪支;</li> 13573 // <li>crowd:人群聚集;</li> 13574 // <li>bloody:血腥画面;</li> 13575 // <li>police:警察部队;</li> 13576 // <li>banners:暴恐旗帜;</li> 13577 // <li>militant:武装分子;</li> 13578 // <li>explosion:爆炸火灾;</li> 13579 // <li>terrorists:暴恐人物;</li> 13580 // <li>scenario:暴恐画面。</li> 13581 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13582 13583 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 13584 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13585 13586 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 13587 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13588} 13589 13590type TerrorismOcrReviewTemplateInfo struct { 13591 13592 // 文本鉴恐任务开关,可选值: 13593 // <li>ON:开启文本鉴恐任务;</li> 13594 // <li>OFF:关闭文本鉴恐任务。</li> 13595 Switch *string `json:"Switch,omitempty" name:"Switch"` 13596 13597 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 13598 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13599 13600 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 13601 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13602} 13603 13604type TerrorismOcrReviewTemplateInfoForUpdate struct { 13605 13606 // 文本鉴恐任务开关,可选值: 13607 // <li>ON:开启文本鉴恐任务;</li> 13608 // <li>OFF:关闭文本鉴恐任务。</li> 13609 Switch *string `json:"Switch,omitempty" name:"Switch"` 13610 13611 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 13612 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13613 13614 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 13615 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13616} 13617 13618type TextWatermarkTemplateInput struct { 13619 13620 // 字体类型,目前可以支持两种: 13621 // <li>simkai.ttf:可以支持中文和英文;</li> 13622 // <li>arial.ttf:仅支持英文。</li> 13623 FontType *string `json:"FontType,omitempty" name:"FontType"` 13624 13625 // 字体大小,格式:Npx,N 为数值。 13626 FontSize *string `json:"FontSize,omitempty" name:"FontSize"` 13627 13628 // 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。 13629 FontColor *string `json:"FontColor,omitempty" name:"FontColor"` 13630 13631 // 文字透明度,取值范围:(0, 1] 13632 // <li>0:完全透明</li> 13633 // <li>1:完全不透明</li> 13634 // 默认值:1。 13635 FontAlpha *float64 `json:"FontAlpha,omitempty" name:"FontAlpha"` 13636} 13637 13638type TextWatermarkTemplateInputForUpdate struct { 13639 13640 // 字体类型,目前可以支持两种: 13641 // <li>simkai.ttf:可以支持中文和英文;</li> 13642 // <li>arial.ttf:仅支持英文。</li> 13643 FontType *string `json:"FontType,omitempty" name:"FontType"` 13644 13645 // 字体大小,格式:Npx,N 为数值。 13646 FontSize *string `json:"FontSize,omitempty" name:"FontSize"` 13647 13648 // 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。 13649 FontColor *string `json:"FontColor,omitempty" name:"FontColor"` 13650 13651 // 文字透明度,取值范围:(0, 1] 13652 // <li>0:完全透明</li> 13653 // <li>1:完全不透明</li> 13654 FontAlpha *float64 `json:"FontAlpha,omitempty" name:"FontAlpha"` 13655} 13656 13657type TimeRange struct { 13658 13659 // <li>大于等于此时间(起始时间)。</li> 13660 // <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。</li> 13661 After *string `json:"After,omitempty" name:"After"` 13662 13663 // <li>小于此时间(结束时间)。</li> 13664 // <li>格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。</li> 13665 Before *string `json:"Before,omitempty" name:"Before"` 13666} 13667 13668type TranscodePlayInfo2017 struct { 13669 13670 // 播放地址。 13671 Url *string `json:"Url,omitempty" name:"Url"` 13672 13673 // 转码规格 ID,参见[转码参数模板](https://cloud.tencent.com/document/product/266/33476)。 13674 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 13675 13676 // 视频流码率平均值与音频流码率平均值之和, 单位:bps。 13677 Bitrate *int64 `json:"Bitrate,omitempty" name:"Bitrate"` 13678 13679 // 视频流高度的最大值,单位:px。 13680 Height *int64 `json:"Height,omitempty" name:"Height"` 13681 13682 // 视频流宽度的最大值,单位:px。 13683 Width *int64 `json:"Width,omitempty" name:"Width"` 13684} 13685 13686type TranscodeTask2017 struct { 13687 13688 // 转码任务 ID。 13689 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 13690 13691 // 错误码 13692 // <li>0:成功;</li> 13693 // <li>其他值:失败。</li> 13694 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 13695 13696 // 错误信息。 13697 Message *string `json:"Message,omitempty" name:"Message"` 13698 13699 // 被转码文件 ID。 13700 FileId *string `json:"FileId,omitempty" name:"FileId"` 13701 13702 // 被转码文件名称。 13703 FileName *string `json:"FileName,omitempty" name:"FileName"` 13704 13705 // 视频时长,单位:秒。 13706 Duration *uint64 `json:"Duration,omitempty" name:"Duration"` 13707 13708 // 封面地址。 13709 CoverUrl *string `json:"CoverUrl,omitempty" name:"CoverUrl"` 13710 13711 // 视频转码后生成的播放信息。 13712 PlayInfoSet []*TranscodePlayInfo2017 `json:"PlayInfoSet,omitempty" name:"PlayInfoSet"` 13713} 13714 13715type TranscodeTaskInput struct { 13716 13717 // 视频转码模板 ID。 13718 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 13719 13720 // 水印列表,支持多张图片或文字水印,最大可支持 10 张。 13721 WatermarkSet []*WatermarkInput `json:"WatermarkSet,omitempty" name:"WatermarkSet"` 13722 13723 // 马赛克列表,最大可支持 10 张。 13724 MosaicSet []*MosaicInput `json:"MosaicSet,omitempty" name:"MosaicSet"` 13725 13726 // 片头片尾列表,支持多片头片尾,最大可支持 10 个。 13727 HeadTailSet []*HeadTailTaskInput `json:"HeadTailSet,omitempty" name:"HeadTailSet"` 13728 13729 // 转码后的视频的起始时间偏移,单位:秒。 13730 // <li>不填或填0,表示转码后的视频从原始视频的起始位置开始;</li> 13731 // <li>当数值大于0时(假设为 n),表示转码后的视频从原始视频的第 n 秒位置开始;</li> 13732 // <li>当数值小于0时(假设为 -n),表示转码后的视频从原始视频结束 n 秒前的位置开始。</li> 13733 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 13734 13735 // 转码后视频的终止时间偏移,单位:秒。 13736 // <li>不填或填0,表示转码后的视频持续到原始视频的末尾终止;</li> 13737 // <li>当数值大于0时(假设为 n),表示转码后的视频持续到原始视频第 n 秒时终止;</li> 13738 // <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li> 13739 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 13740} 13741 13742type TranscodeTemplate struct { 13743 13744 // 转码模板唯一标识。 13745 Definition *string `json:"Definition,omitempty" name:"Definition"` 13746 13747 // 封装格式,取值:mp4、flv、hls、mp3、flac、ogg。 13748 Container *string `json:"Container,omitempty" name:"Container"` 13749 13750 // 转码模板名称。 13751 Name *string `json:"Name,omitempty" name:"Name"` 13752 13753 // 模板描述信息。 13754 Comment *string `json:"Comment,omitempty" name:"Comment"` 13755 13756 // 模板类型,取值: 13757 // <li>Preset:系统预置模板;</li> 13758 // <li>Custom:用户自定义模板。</li> 13759 Type *string `json:"Type,omitempty" name:"Type"` 13760 13761 // 是否去除视频数据,取值: 13762 // <li>0:保留;</li> 13763 // <li>1:去除。</li> 13764 RemoveVideo *int64 `json:"RemoveVideo,omitempty" name:"RemoveVideo"` 13765 13766 // 是否去除音频数据,取值: 13767 // <li>0:保留;</li> 13768 // <li>1:去除。</li> 13769 RemoveAudio *int64 `json:"RemoveAudio,omitempty" name:"RemoveAudio"` 13770 13771 // 视频流配置参数,仅当 RemoveVideo 为 0,该字段有效。 13772 // 注意:此字段可能返回 null,表示取不到有效值。 13773 VideoTemplate *VideoTemplateInfo `json:"VideoTemplate,omitempty" name:"VideoTemplate"` 13774 13775 // 音频流配置参数,仅当 RemoveAudio 为 0,该字段有效 。 13776 // 注意:此字段可能返回 null,表示取不到有效值。 13777 AudioTemplate *AudioTemplateInfo `json:"AudioTemplate,omitempty" name:"AudioTemplate"` 13778 13779 // 极速高清转码参数。 13780 // 注意:此字段可能返回 null,表示取不到有效值。 13781 TEHDConfig *TEHDConfig `json:"TEHDConfig,omitempty" name:"TEHDConfig"` 13782 13783 // 封装格式过滤条件,可选值: 13784 // <li>Video:视频格式,可以同时包含视频流和音频流的封装格式;</li> 13785 // <li>PureAudio:纯音频格式,只能包含音频流的封装格式板。</li> 13786 ContainerType *string `json:"ContainerType,omitempty" name:"ContainerType"` 13787 13788 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 13789 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 13790 13791 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 13792 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 13793} 13794 13795type TransitionOpertion struct { 13796 13797 // 转场类型,取值有: 13798 // <ul> 13799 // <li>图像的转场操作,用于两个视频片段图像间的转场处理: 13800 // <ul> 13801 // <li>ImageFadeInFadeOut:图像淡入淡出。 </li> 13802 // <li>BowTieHorizontal:水平蝴蝶结。 </li> 13803 // <li>BowTieVertical:垂直蝴蝶结。 </li> 13804 // <li>ButterflyWaveScrawler:晃动。 </li> 13805 // <li>Cannabisleaf:枫叶。 </li> 13806 // <li>Circle:弧形收放。 </li> 13807 // <li>CircleCrop:圆环聚拢。 </li> 13808 // <li>Circleopen:椭圆聚拢。 </li> 13809 // <li>Crosswarp:横向翘曲。 </li> 13810 // <li>Cube:立方体。 </li> 13811 // <li>DoomScreenTransition:幕布。 </li> 13812 // <li>Doorway:门廊。 </li> 13813 // <li>Dreamy:波浪。 </li> 13814 // <li>DreamyZoom:水平聚拢。 </li> 13815 // <li>FilmBurn:火烧云。 </li> 13816 // <li>GlitchMemories:抖动。 </li> 13817 // <li>Heart:心形。 </li> 13818 // <li>InvertedPageCurl:翻页。 </li> 13819 // <li>Luma:腐蚀。 </li> 13820 // <li>Mosaic:九宫格。 </li> 13821 // <li>Pinwheel:风车。 </li> 13822 // <li>PolarFunction:椭圆扩散。 </li> 13823 // <li>PolkaDotsCurtain:弧形扩散。 </li> 13824 // <li>Radial:雷达扫描 </li> 13825 // <li>RotateScaleFade:上下收放。 </li> 13826 // <li>Squeeze:上下聚拢。 </li> 13827 // <li>Swap:放大切换。 </li> 13828 // <li>Swirl:螺旋。 </li> 13829 // <li>UndulatingBurnOutSwirl:水流蔓延。 </li> 13830 // <li>Windowblinds:百叶窗。 </li> 13831 // <li>WipeDown:向下收起。 </li> 13832 // <li>WipeLeft:向左收起。 </li> 13833 // <li>WipeRight:向右收起。 </li> 13834 // <li>WipeUp:向上收起。 </li> 13835 // <li>ZoomInCircles:水波纹。 </li> 13836 // </ul> 13837 // </li> 13838 // <li>音频的转场操作,用于两个音频片段间的转场处理: 13839 // <ul> 13840 // <li>AudioFadeInFadeOut:声音淡入淡出。 </li> 13841 // </ul> 13842 // </li> 13843 // </ul> 13844 Type *string `json:"Type,omitempty" name:"Type"` 13845} 13846 13847type UrlSignatureAuthPolicy struct { 13848 13849 // [Key 防盗链](https://cloud.tencent.com/document/product/266/14047)设置状态,可选值: 13850 // <li>Enabled: 启用;</li> 13851 // <li>Disabled: 禁用。</li> 13852 Status *string `json:"Status,omitempty" name:"Status"` 13853 13854 // [Key 防盗链](https://cloud.tencent.com/document/product/266/14047)中用于生成签名的密钥。 13855 EncryptedKey *string `json:"EncryptedKey,omitempty" name:"EncryptedKey"` 13856} 13857 13858type UserDefineAsrTextReviewTemplateInfo struct { 13859 13860 // 用户自定语音审核任务开关,可选值: 13861 // <li>ON:开启自定义语音审核任务;</li> 13862 // <li>OFF:关闭自定义语音审核任务。</li> 13863 Switch *string `json:"Switch,omitempty" name:"Switch"` 13864 13865 // 用户自定义语音过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回。如果要使用标签过滤功能,添加自定义语音关键词素材时需要添加对应标签。 13866 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 13867 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13868 13869 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 13870 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13871 13872 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 13873 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13874} 13875 13876type UserDefineAsrTextReviewTemplateInfoForUpdate struct { 13877 13878 // 用户自定语音审核任务开关,可选值: 13879 // <li>ON:开启自定义语音审核任务;</li> 13880 // <li>OFF:关闭自定义语音审核任务。</li> 13881 Switch *string `json:"Switch,omitempty" name:"Switch"` 13882 13883 // 用户自定义语音过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回。如果要使用标签过滤功能,添加自定义语音关键词素材时需要添加对应标签。 13884 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 13885 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13886 13887 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 13888 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13889 13890 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 13891 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13892} 13893 13894type UserDefineConfigureInfo struct { 13895 13896 // 用户自定义人物审核控制参数。 13897 // 注意:此字段可能返回 null,表示取不到有效值。 13898 FaceReviewInfo *UserDefineFaceReviewTemplateInfo `json:"FaceReviewInfo,omitempty" name:"FaceReviewInfo"` 13899 13900 // 用户自定义语音审核控制参数。 13901 // 注意:此字段可能返回 null,表示取不到有效值。 13902 AsrReviewInfo *UserDefineAsrTextReviewTemplateInfo `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 13903 13904 // 用户自定义文本审核控制参数。 13905 // 注意:此字段可能返回 null,表示取不到有效值。 13906 OcrReviewInfo *UserDefineOcrTextReviewTemplateInfo `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 13907} 13908 13909type UserDefineConfigureInfoForUpdate struct { 13910 13911 // 用户自定义人物审核控制参数。 13912 FaceReviewInfo *UserDefineFaceReviewTemplateInfoForUpdate `json:"FaceReviewInfo,omitempty" name:"FaceReviewInfo"` 13913 13914 // 用户自定义语音审核控制参数。 13915 AsrReviewInfo *UserDefineAsrTextReviewTemplateInfoForUpdate `json:"AsrReviewInfo,omitempty" name:"AsrReviewInfo"` 13916 13917 // 用户自定义文本审核控制参数。 13918 OcrReviewInfo *UserDefineOcrTextReviewTemplateInfoForUpdate `json:"OcrReviewInfo,omitempty" name:"OcrReviewInfo"` 13919} 13920 13921type UserDefineFaceReviewTemplateInfo struct { 13922 13923 // 用户自定义人物审核任务开关,可选值: 13924 // <li>ON:开启自定义人物审核任务;</li> 13925 // <li>OFF:关闭自定义人物审核任务。</li> 13926 Switch *string `json:"Switch,omitempty" name:"Switch"` 13927 13928 // 用户自定义人物过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回。如果要使用标签过滤功能,添加自定义人物库的时,需要添加对应人物标签。 13929 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 13930 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13931 13932 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 97 分。取值范围:0~100。 13933 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13934 13935 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 95 分。取值范围:0~100。 13936 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13937} 13938 13939type UserDefineFaceReviewTemplateInfoForUpdate struct { 13940 13941 // 用户自定义人物审核任务开关,可选值: 13942 // <li>ON:开启自定义人物审核任务;</li> 13943 // <li>OFF:关闭自定义人物审核任务。</li> 13944 Switch *string `json:"Switch,omitempty" name:"Switch"` 13945 13946 // 用户自定义人物过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回。如果要使用标签过滤功能,添加自定义人物库的时,需要添加对应人物标签。 13947 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 13948 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13949 13950 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 13951 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13952 13953 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 13954 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13955} 13956 13957type UserDefineOcrTextReviewTemplateInfo struct { 13958 13959 // 用户自定文本审核任务开关,可选值: 13960 // <li>ON:开启自定义文本审核任务;</li> 13961 // <li>OFF:关闭自定义文本审核任务。</li> 13962 Switch *string `json:"Switch,omitempty" name:"Switch"` 13963 13964 // 用户自定义文本过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回。如果要使用标签过滤功能,添加自定义文本关键词素材时需要添加对应标签。 13965 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 13966 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13967 13968 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规,不填默认为 100 分。取值范围:0~100。 13969 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13970 13971 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核,不填默认为 75 分。取值范围:0~100。 13972 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13973} 13974 13975type UserDefineOcrTextReviewTemplateInfoForUpdate struct { 13976 13977 // 用户自定文本审核任务开关,可选值: 13978 // <li>ON:开启自定义文本审核任务;</li> 13979 // <li>OFF:关闭自定义文本审核任务。</li> 13980 Switch *string `json:"Switch,omitempty" name:"Switch"` 13981 13982 // 用户自定义文本过滤标签,审核结果包含选择的标签则返回结果,如果过滤标签为空,则审核结果全部返回。如果要使用标签过滤功能,添加自定义文本关键词素材时需要添加对应标签。 13983 // 标签个数最多 10 个,每个标签长度最多 16 个字符。 13984 LabelSet []*string `json:"LabelSet,omitempty" name:"LabelSet"` 13985 13986 // 判定涉嫌违规的分数阈值,当智能审核达到该分数以上,认为涉嫌违规。取值范围:0~100。 13987 BlockConfidence *int64 `json:"BlockConfidence,omitempty" name:"BlockConfidence"` 13988 13989 // 判定需人工复核是否违规的分数阈值,当智能审核达到该分数以上,认为需人工复核。取值范围:0~100。 13990 ReviewConfidence *int64 `json:"ReviewConfidence,omitempty" name:"ReviewConfidence"` 13991} 13992 13993type VideoTemplateInfo struct { 13994 13995 // 视频流的编码格式,可选值: 13996 // <li>libx264:H.264 编码</li> 13997 // <li>libx265:H.265 编码</li> 13998 // <li>av1:AOMedia Video 1 编码</li> 13999 // 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 14000 Codec *string `json:"Codec,omitempty" name:"Codec"` 14001 14002 // 视频帧率,取值范围:[0, 100],单位:Hz。 14003 // 当取值为 0,表示帧率和原始视频保持一致。 14004 Fps *uint64 `json:"Fps,omitempty" name:"Fps"` 14005 14006 // 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 14007 // 当取值为 0,表示视频码率和原始视频保持一致。 14008 Bitrate *uint64 `json:"Bitrate,omitempty" name:"Bitrate"` 14009 14010 // 分辨率自适应,可选值: 14011 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 14012 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 14013 // 默认值:open。 14014 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 14015 14016 // 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 14017 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 14018 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 14019 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 14020 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 14021 // 默认值:0。 14022 Width *uint64 `json:"Width,omitempty" name:"Width"` 14023 14024 // 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 14025 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 14026 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 14027 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 14028 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 14029 // 默认值:0。 14030 Height *uint64 `json:"Height,omitempty" name:"Height"` 14031 14032 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 14033 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 14034 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 14035 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 14036 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li> 14037 // 默认值:black 。 14038 FillType *string `json:"FillType,omitempty" name:"FillType"` 14039 14040 // 视频恒定码率控制因子,取值范围为[1, 51]。 14041 // 如果指定该参数,将使用 CRF 的码率控制方式做转码(视频码率将不再生效)。 14042 // 如果没有特殊需求,不建议指定该参数。 14043 Vcrf *uint64 `json:"Vcrf,omitempty" name:"Vcrf"` 14044 14045 // 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 14046 // 当填 0 或不填时,系统将自动设置 gop 长度。 14047 Gop *uint64 `json:"Gop,omitempty" name:"Gop"` 14048} 14049 14050type VideoTemplateInfoForUpdate struct { 14051 14052 // 视频流的编码格式,可选值: 14053 // <li>libx264:H.264 编码</li> 14054 // <li>libx265:H.265 编码</li> 14055 // <li>av1:AOMedia Video 1 编码</li> 14056 // 目前 H.265 编码必须指定分辨率,并且需要在 640*480 以内。av1 编码容器目前只支持 mp4 。 14057 Codec *string `json:"Codec,omitempty" name:"Codec"` 14058 14059 // 视频帧率,取值范围:[0, 100],单位:Hz。 14060 // 当取值为 0,表示帧率和原始视频保持一致。 14061 Fps *uint64 `json:"Fps,omitempty" name:"Fps"` 14062 14063 // 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。 14064 // 当取值为 0,表示视频码率和原始视频保持一致。 14065 Bitrate *uint64 `json:"Bitrate,omitempty" name:"Bitrate"` 14066 14067 // 分辨率自适应,可选值: 14068 // <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> 14069 // <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 14070 ResolutionAdaptive *string `json:"ResolutionAdaptive,omitempty" name:"ResolutionAdaptive"` 14071 14072 // 视频流宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。 14073 // <li>当 Width、Height 均为 0,则分辨率同源;</li> 14074 // <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> 14075 // <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> 14076 // <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 14077 Width *uint64 `json:"Width,omitempty" name:"Width"` 14078 14079 // 视频流高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。 14080 Height *uint64 `json:"Height,omitempty" name:"Height"` 14081 14082 // 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式: 14083 // <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> 14084 // <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 14085 // <li>white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。</li> 14086 // <li>gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊填充。</li> 14087 FillType *string `json:"FillType,omitempty" name:"FillType"` 14088 14089 // 视频恒定码率控制因子。取值范围为[0, 51],填0表示禁用该参数。 14090 // 如果没有特殊需求,不建议指定该参数。 14091 Vcrf *uint64 `json:"Vcrf,omitempty" name:"Vcrf"` 14092 14093 // 关键帧 I 帧之间的间隔,取值范围:0 和 [1, 100000],单位:帧数。 14094 // 当填 0 或不填时,系统将自动设置 gop 长度。 14095 Gop *uint64 `json:"Gop,omitempty" name:"Gop"` 14096} 14097 14098type VideoTrackItem struct { 14099 14100 // 视频片段的媒体素材来源,可以是: 14101 // <li>点播的媒体文件 ID;</li> 14102 // <li>其他媒体文件的下载 URL。</li> 14103 // 注意:当使用其他媒体文件的下载 URL 作为素材来源,且开启了访问控制(如防盗链)时,需要在 URL 携带访问控制参数(如防盗链签名)。 14104 SourceMedia *string `json:"SourceMedia,omitempty" name:"SourceMedia"` 14105 14106 // 视频片段取自素材文件的起始时间,单位为秒。默认为0。 14107 SourceMediaStartTime *float64 `json:"SourceMediaStartTime,omitempty" name:"SourceMediaStartTime"` 14108 14109 // 视频片段时长,单位为秒。默认取视频素材本身长度,表示截取全部素材。如果源文件是图片,Duration需要大于0。 14110 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 14111 14112 // 视频原点位置,取值有: 14113 // <li>Center:坐标原点为中心位置,如画布中心。</li> 14114 // 默认值 :Center。 14115 CoordinateOrigin *string `json:"CoordinateOrigin,omitempty" name:"CoordinateOrigin"` 14116 14117 // 视频片段原点距离画布原点的水平位置。支持 %、px 两种格式: 14118 // <li>当字符串以 % 结尾,表示视频片段 XPos 为画布宽度指定百分比的位置,如 10% 表示 XPos 为画布口宽度的 10%。</li> 14119 // <li>当字符串以 px 结尾,表示视频片段 XPos 单位为像素,如 100px 表示 XPos 为100像素。</li> 14120 // 默认值:0px。 14121 XPos *string `json:"XPos,omitempty" name:"XPos"` 14122 14123 // 视频片段原点距离画布原点的垂直位置。支持 %、px 两种格式: 14124 // <li>当字符串以 % 结尾,表示视频片段 YPos 为画布高度指定百分比的位置,如 10% 表示 YPos 为画布高度的 10%。</li> 14125 // <li>当字符串以 px 结尾,表示视频片段 YPos 单位为像素,如 100px 表示 YPos 为100像素。</li> 14126 // 默认值:0px。 14127 YPos *string `json:"YPos,omitempty" name:"YPos"` 14128 14129 // 视频片段的宽度。支持 %、px 两种格式: 14130 // <li>当字符串以 % 结尾,表示视频片段 Width 为画布宽度的百分比大小,如 10% 表示 Width 为画布宽度的 10%。</li> 14131 // <li>当字符串以 px 结尾,表示视频片段 Width 单位为像素,如 100px 表示 Width 为100像素。</li> 14132 // <li>当 Width、Height 均为空,则 Width 和 Height 取视频素材本身的 Width、Height。</li> 14133 // <li>当 Width 为空,Height 非空,则 Width 按比例缩放</li> 14134 // <li>当 Width 非空,Height 为空,则 Height 按比例缩放。</li> 14135 Width *string `json:"Width,omitempty" name:"Width"` 14136 14137 // 视频片段的高度。支持 %、px 两种格式: 14138 // <li>当字符串以 % 结尾,表示视频片段 Height 为画布高度的百分比大小,如 10% 表示 Height 为画布高度的 10%; 14139 // </li><li>当字符串以 px 结尾,表示视频片段 Height 单位为像素,如 100px 表示 Height 为100像素。</li> 14140 // <li>当 Width、Height 均为空,则 Width 和 Height 取视频素材本身的 Width、Height。</li> 14141 // <li>当 Width 为空,Height 非空,则 Width 按比例缩放</li> 14142 // <li>当 Width 非空,Height 为空,则 Height 按比例缩放。</li> 14143 Height *string `json:"Height,omitempty" name:"Height"` 14144 14145 // 对图像进行的操作,如图像旋转等。 14146 ImageOperations []*ImageTransform `json:"ImageOperations,omitempty" name:"ImageOperations"` 14147 14148 // 对音频进行操作,如静音等。 14149 AudioOperations []*AudioTransform `json:"AudioOperations,omitempty" name:"AudioOperations"` 14150} 14151 14152type WatermarkCycleConfigForUpdate struct { 14153 14154 // 水印在视频里第一次出现的播放时间点,单位:秒。 14155 StartTime *float64 `json:"StartTime,omitempty" name:"StartTime"` 14156 14157 // 在一个水印周期内,水印显示的持续时间,单位:秒。 14158 DisplayDuration *float64 `json:"DisplayDuration,omitempty" name:"DisplayDuration"` 14159 14160 // 一个水印周期的持续时间,单位:秒。 14161 // 填 0 表示水印只持续一个水印周期(即在整个视频里只显示 DisplayDuration 秒)。 14162 CycleDuration *float64 `json:"CycleDuration,omitempty" name:"CycleDuration"` 14163} 14164 14165type WatermarkInput struct { 14166 14167 // 水印模板 ID。 14168 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 14169 14170 // 文字内容,长度不超过100个字符。仅当水印类型为文字水印时填写。 14171 // 文字水印不支持截图打水印。 14172 TextContent *string `json:"TextContent,omitempty" name:"TextContent"` 14173 14174 // SVG 内容。长度不超过 2000000 个字符。仅当水印类型为 SVG 水印时填写。 14175 // SVG 水印不支持截图打水印。 14176 SvgContent *string `json:"SvgContent,omitempty" name:"SvgContent"` 14177 14178 // 水印的起始时间偏移,单位:秒。不填或填0,表示水印从画面出现时开始显现。 14179 // <li>不填或填0,表示水印从画面开始就出现;</li> 14180 // <li>当数值大于0时(假设为 n),表示水印从画面开始的第 n 秒出现;</li> 14181 // <li>当数值小于0时(假设为 -n),表示水印从离画面结束 n 秒前开始出现。</li> 14182 StartTimeOffset *float64 `json:"StartTimeOffset,omitempty" name:"StartTimeOffset"` 14183 14184 // 水印的结束时间偏移,单位:秒。 14185 // <li>不填或填0,表示水印持续到画面结束;</li> 14186 // <li>当数值大于0时(假设为 n),表示水印持续到第 n 秒时消失;</li> 14187 // <li>当数值小于0时(假设为 -n),表示水印持续到离画面结束 n 秒前消失。</li> 14188 EndTimeOffset *float64 `json:"EndTimeOffset,omitempty" name:"EndTimeOffset"` 14189} 14190 14191type WatermarkTemplate struct { 14192 14193 // 水印模板唯一标识。 14194 Definition *int64 `json:"Definition,omitempty" name:"Definition"` 14195 14196 // 水印类型,取值: 14197 // <li>image:图片水印;</li> 14198 // <li>text:文字水印。</li> 14199 Type *string `json:"Type,omitempty" name:"Type"` 14200 14201 // 水印模板名称。 14202 Name *string `json:"Name,omitempty" name:"Name"` 14203 14204 // 模板描述信息。 14205 Comment *string `json:"Comment,omitempty" name:"Comment"` 14206 14207 // 水印图片原点距离视频图像原点的水平位置。 14208 // <li>当字符串以 % 结尾,表示水印 Left 为视频宽度指定百分比的位置,如 10% 表示 Left 为视频宽度的 10%;</li> 14209 // <li>当字符串以 px 结尾,表示水印 Left 为视频宽度指定像素的位置,如 100px 表示 Left 为 100 像素。</li> 14210 XPos *string `json:"XPos,omitempty" name:"XPos"` 14211 14212 // 水印图片原点距离视频图像原点的垂直位置。 14213 // <li>当字符串以 % 结尾,表示水印 Top 为视频高度指定百分比的位置,如 10% 表示 Top 为视频高度的 10%;</li> 14214 // <li>当字符串以 px 结尾,表示水印 Top 为视频高度指定像素的位置,如 100px 表示 Top 为 100 像素。</li> 14215 YPos *string `json:"YPos,omitempty" name:"YPos"` 14216 14217 // 图片水印模板,仅当 Type 为 image,该字段有效。 14218 // 注意:此字段可能返回 null,表示取不到有效值。 14219 ImageTemplate *ImageWatermarkTemplate `json:"ImageTemplate,omitempty" name:"ImageTemplate"` 14220 14221 // 文字水印模板,仅当 Type 为 text,该字段有效。 14222 // 注意:此字段可能返回 null,表示取不到有效值。 14223 TextTemplate *TextWatermarkTemplateInput `json:"TextTemplate,omitempty" name:"TextTemplate"` 14224 14225 // SVG 水印模板,当 Type 为 svg,该字段有效。 14226 // 注意:此字段可能返回 null,表示取不到有效值。 14227 SvgTemplate *SvgWatermarkInput `json:"SvgTemplate,omitempty" name:"SvgTemplate"` 14228 14229 // 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 14230 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` 14231 14232 // 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。 14233 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` 14234 14235 // 原点位置,可选值: 14236 // <li>topLeft:表示坐标原点位于视频图像左上角,水印原点为图片或文字的左上角;</li> 14237 // <li>topRight:表示坐标原点位于视频图像的右上角,水印原点为图片或文字的右上角;</li> 14238 // <li>bottomLeft:表示坐标原点位于视频图像的左下角,水印原点为图片或文字的左下角;</li> 14239 // <li>bottomRight:表示坐标原点位于视频图像的右下角,水印原点为图片或文字的右下。;</li> 14240 CoordinateOrigin *string `json:"CoordinateOrigin,omitempty" name:"CoordinateOrigin"` 14241} 14242 14243type WeChatMiniProgramPublishRequest struct { 14244 *tchttp.BaseRequest 14245 14246 // 媒体文件 ID。 14247 FileId *string `json:"FileId,omitempty" name:"FileId"` 14248 14249 // 发布视频所对应的转码模板 ID,为0代表原始视频。 14250 SourceDefinition *int64 `json:"SourceDefinition,omitempty" name:"SourceDefinition"` 14251 14252 // 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。 14253 SubAppId *uint64 `json:"SubAppId,omitempty" name:"SubAppId"` 14254} 14255 14256func (r *WeChatMiniProgramPublishRequest) ToJsonString() string { 14257 b, _ := json.Marshal(r) 14258 return string(b) 14259} 14260 14261// FromJsonString It is highly **NOT** recommended to use this function 14262// because it has no param check, nor strict type check 14263func (r *WeChatMiniProgramPublishRequest) FromJsonString(s string) error { 14264 f := make(map[string]interface{}) 14265 if err := json.Unmarshal([]byte(s), &f); err != nil { 14266 return err 14267 } 14268 delete(f, "FileId") 14269 delete(f, "SourceDefinition") 14270 delete(f, "SubAppId") 14271 if len(f) > 0 { 14272 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "WeChatMiniProgramPublishRequest has unknown keys!", "") 14273 } 14274 return json.Unmarshal([]byte(s), &r) 14275} 14276 14277type WeChatMiniProgramPublishResponse struct { 14278 *tchttp.BaseResponse 14279 Response *struct { 14280 14281 // 任务 ID。 14282 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 14283 14284 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 14285 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 14286 } `json:"Response"` 14287} 14288 14289func (r *WeChatMiniProgramPublishResponse) ToJsonString() string { 14290 b, _ := json.Marshal(r) 14291 return string(b) 14292} 14293 14294// FromJsonString It is highly **NOT** recommended to use this function 14295// because it has no param check, nor strict type check 14296func (r *WeChatMiniProgramPublishResponse) FromJsonString(s string) error { 14297 return json.Unmarshal([]byte(s), &r) 14298} 14299 14300type WechatMiniProgramPublishTask struct { 14301 14302 // 任务 ID。 14303 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 14304 14305 // 任务状态,取值: 14306 // WAITING:等待中; 14307 // PROCESSING:处理中; 14308 // FINISH:已完成。 14309 Status *string `json:"Status,omitempty" name:"Status"` 14310 14311 // 错误码 14312 // <li>0:成功;</li> 14313 // <li>其他值:失败。</li> 14314 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 14315 14316 // 错误信息。 14317 Message *string `json:"Message,omitempty" name:"Message"` 14318 14319 // 发布视频文件 ID。 14320 FileId *string `json:"FileId,omitempty" name:"FileId"` 14321 14322 // 发布视频所对应的转码模板 ID,为 0 代表原始视频。 14323 SourceDefinition *uint64 `json:"SourceDefinition,omitempty" name:"SourceDefinition"` 14324 14325 // 微信小程序视频发布状态,取值: 14326 // <li>Pass:发布成功;</li> 14327 // <li>Failed:发布失败;</li> 14328 // <li>Rejected:审核未通过。</li> 14329 PublishResult *string `json:"PublishResult,omitempty" name:"PublishResult"` 14330} 14331 14332type WechatMiniProgramPublishTaskInput struct { 14333 14334 // 发布视频所对应的转码模板 ID,为 0 代表原始视频。 14335 SourceDefinition *uint64 `json:"SourceDefinition,omitempty" name:"SourceDefinition"` 14336} 14337 14338type WechatPublishTask struct { 14339 14340 // 任务 ID。 14341 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` 14342 14343 // 任务状态,取值: 14344 // WAITING:等待中; 14345 // PROCESSING:处理中; 14346 // FINISH:已完成。 14347 Status *string `json:"Status,omitempty" name:"Status"` 14348 14349 // 错误码 14350 // <li>0:成功;</li> 14351 // <li>其他值:失败。</li> 14352 ErrCode *int64 `json:"ErrCode,omitempty" name:"ErrCode"` 14353 14354 // 错误信息。 14355 Message *string `json:"Message,omitempty" name:"Message"` 14356 14357 // 发布视频文件 ID。 14358 FileId *string `json:"FileId,omitempty" name:"FileId"` 14359 14360 // 微信发布模板 ID。 14361 Definition *uint64 `json:"Definition,omitempty" name:"Definition"` 14362 14363 // 发布视频所对应的转码模板 ID,为 0 代表原始视频。 14364 SourceDefinition *uint64 `json:"SourceDefinition,omitempty" name:"SourceDefinition"` 14365 14366 // 微信发布状态,取值: 14367 // <li>FAIL:失败;</li> 14368 // <li>SUCCESS:成功;</li> 14369 // <li>AUDITNOTPASS:审核未通过;</li> 14370 // <li>NOTTRIGGERED:尚未发起微信发布。</li> 14371 WechatStatus *string `json:"WechatStatus,omitempty" name:"WechatStatus"` 14372 14373 // 微信 Vid。 14374 WechatVid *string `json:"WechatVid,omitempty" name:"WechatVid"` 14375 14376 // 微信地址。 14377 WechatUrl *string `json:"WechatUrl,omitempty" name:"WechatUrl"` 14378} 14379