tencentcloud-sdk-vod 3.0.400 → 3.0.401

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180717/models.rb +208 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96afc546cb095e0064730f557dcc2d71ca368438
4
- data.tar.gz: 7060b23dd1b492f7423b8941f027e519e0d89aef
3
+ metadata.gz: 4a993d0a28c16b7f6bb74d246b332153f21cca9b
4
+ data.tar.gz: 822d24001935d5540158a83ae5d691a143a6ca31
5
5
  SHA512:
6
- metadata.gz: 6bbe5b15871ce6f0ad62a254b2eb5cdf65f6422a77290bf0174e93c20689190c9a9d42a18f8d7b9fbd75d30c1a7d927dd6de9ccdb7af57bce7f5743989513fcc
7
- data.tar.gz: 4cdf165f9b77375b1c4e193d3200d28d1e6fb9e0bd07e0ac5660164e44470d3946ade87282c9af95b78c385d9673a41663185c4ea65f2f34f9751982f8f5b641
6
+ metadata.gz: 6a7f50097d4efb61deae6210cfff7be4a56b8659ab8f72ab2a3cea8284c1a60a7d102251ad09eb74a6c36e218e74a6119ae72d5bd0c09f6f7d7ab1034fe6f98a
7
+ data.tar.gz: a039b7b4d71601239f9b10a97b6f8f56e25bedaec81382c118c4a5593f1566e6a24a87176a3e29268bbc4dd3855425bc4ec743410a051186c16c2925af591f52
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.400
1
+ 3.0.401
@@ -9463,7 +9463,8 @@ module TencentCloud
9463
9463
  # <li>WechatMiniProgramPublish:微信小程序视频发布任务;</li>
9464
9464
  # <li>PullUpload:拉取上传媒体文件任务;</li>
9465
9465
  # <li>FastClipMedia:快速剪辑任务;</li>
9466
- # <li>RemoveWatermarkTask:智能去除水印任务。</li>
9466
+ # <li>RemoveWatermarkTask:智能去除水印任务;</li>
9467
+ # <li> ReviewAudioVideo:音视频审核任务。</li>
9467
9468
  # @type TaskType: String
9468
9469
  # @param Status: 任务状态,取值:
9469
9470
  # <li>WAITING:等待中;</li>
@@ -9515,12 +9516,15 @@ module TencentCloud
9515
9516
  # @param RemoveWatermarkTask: 智能去除水印任务信息,仅当 TaskType 为 RemoveWatermark,该字段有值。
9516
9517
  # 注意:此字段可能返回 null,表示取不到有效值。
9517
9518
  # @type RemoveWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.RemoveWatermarkTask`
9519
+ # @param ReviewAudioVideoTask: 音视频审核任务信息,仅当 TaskType 为 ReviewAudioVideo,该字段有值。
9520
+ # 注意:此字段可能返回 null,表示取不到有效值。
9521
+ # @type ReviewAudioVideoTask: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTask`
9518
9522
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9519
9523
  # @type RequestId: String
9520
9524
 
9521
- attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :RequestId
9525
+ attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :ReviewAudioVideoTask, :RequestId
9522
9526
 
9523
- def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, proceduretask=nil, editmediatask=nil, wechatpublishtask=nil, composemediatask=nil, splitmediatask=nil, wechatminiprogrampublishtask=nil, pulluploadtask=nil, transcodetask=nil, concattask=nil, cliptask=nil, createimagespritetask=nil, snapshotbytimeoffsettask=nil, removewatermarktask=nil, requestid=nil)
9527
+ def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, proceduretask=nil, editmediatask=nil, wechatpublishtask=nil, composemediatask=nil, splitmediatask=nil, wechatminiprogrampublishtask=nil, pulluploadtask=nil, transcodetask=nil, concattask=nil, cliptask=nil, createimagespritetask=nil, snapshotbytimeoffsettask=nil, removewatermarktask=nil, reviewaudiovideotask=nil, requestid=nil)
9524
9528
  @TaskType = tasktype
9525
9529
  @Status = status
9526
9530
  @CreateTime = createtime
@@ -9539,6 +9543,7 @@ module TencentCloud
9539
9543
  @CreateImageSpriteTask = createimagespritetask
9540
9544
  @SnapshotByTimeOffsetTask = snapshotbytimeoffsettask
9541
9545
  @RemoveWatermarkTask = removewatermarktask
9546
+ @ReviewAudioVideoTask = reviewaudiovideotask
9542
9547
  @RequestId = requestid
9543
9548
  end
9544
9549
 
@@ -9600,6 +9605,10 @@ module TencentCloud
9600
9605
  @RemoveWatermarkTask = RemoveWatermarkTask.new
9601
9606
  @RemoveWatermarkTask.deserialize(params['RemoveWatermarkTask'])
9602
9607
  end
9608
+ unless params['ReviewAudioVideoTask'].nil?
9609
+ @ReviewAudioVideoTask = ReviewAudioVideoTask.new
9610
+ @ReviewAudioVideoTask.deserialize(params['ReviewAudioVideoTask'])
9611
+ end
9603
9612
  @RequestId = params['RequestId']
9604
9613
  end
9605
9614
  end
@@ -10521,7 +10530,8 @@ module TencentCloud
10521
10530
  # <li>WechatPublishComplete:微信发布完成;</li>
10522
10531
  # <li>ComposeMediaComplete:制作媒体文件完成;</li>
10523
10532
  # <li>WechatMiniProgramPublishComplete:微信小程序发布完成。</li>
10524
- # <li>FastClipMediaComplete:快速剪辑完成。</li>
10533
+ # <li>FastClipMediaComplete:快速剪辑完成;</li>
10534
+ # <li>ReviewAudioVideoComplete:音视频审核完成。</li>
10525
10535
  # <b>兼容 2017 版的事件类型:</b>
10526
10536
  # <li>TranscodeComplete:视频转码完成;</li>
10527
10537
  # <li>ConcatComplete:视频拼接完成;</li>
@@ -10577,10 +10587,13 @@ module TencentCloud
10577
10587
  # @param RestoreMediaCompleteEvent: 视频取回完成事件,当事件类型为RestoreMediaComplete 时有效。
10578
10588
  # 注意:此字段可能返回 null,表示取不到有效值。
10579
10589
  # @type RestoreMediaCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.RestoreMediaTask`
10590
+ # @param ReviewAudioVideoCompleteEvent: 音视频审核完成事件,当事件类型为 ReviewAudioVideoComplete 时有效。
10591
+ # 注意:此字段可能返回 null,表示取不到有效值。
10592
+ # @type ReviewAudioVideoCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTask`
10580
10593
 
10581
- attr_accessor :EventHandle, :EventType, :FileUploadEvent, :ProcedureStateChangeEvent, :FileDeleteEvent, :PullCompleteEvent, :EditMediaCompleteEvent, :SplitMediaCompleteEvent, :ComposeMediaCompleteEvent, :ClipCompleteEvent, :TranscodeCompleteEvent, :CreateImageSpriteCompleteEvent, :ConcatCompleteEvent, :SnapshotByTimeOffsetCompleteEvent, :WechatPublishCompleteEvent, :WechatMiniProgramPublishCompleteEvent, :RemoveWatermarkCompleteEvent, :RestoreMediaCompleteEvent
10594
+ attr_accessor :EventHandle, :EventType, :FileUploadEvent, :ProcedureStateChangeEvent, :FileDeleteEvent, :PullCompleteEvent, :EditMediaCompleteEvent, :SplitMediaCompleteEvent, :ComposeMediaCompleteEvent, :ClipCompleteEvent, :TranscodeCompleteEvent, :CreateImageSpriteCompleteEvent, :ConcatCompleteEvent, :SnapshotByTimeOffsetCompleteEvent, :WechatPublishCompleteEvent, :WechatMiniProgramPublishCompleteEvent, :RemoveWatermarkCompleteEvent, :RestoreMediaCompleteEvent, :ReviewAudioVideoCompleteEvent
10582
10595
 
10583
- def initialize(eventhandle=nil, eventtype=nil, fileuploadevent=nil, procedurestatechangeevent=nil, filedeleteevent=nil, pullcompleteevent=nil, editmediacompleteevent=nil, splitmediacompleteevent=nil, composemediacompleteevent=nil, clipcompleteevent=nil, transcodecompleteevent=nil, createimagespritecompleteevent=nil, concatcompleteevent=nil, snapshotbytimeoffsetcompleteevent=nil, wechatpublishcompleteevent=nil, wechatminiprogrampublishcompleteevent=nil, removewatermarkcompleteevent=nil, restoremediacompleteevent=nil)
10596
+ def initialize(eventhandle=nil, eventtype=nil, fileuploadevent=nil, procedurestatechangeevent=nil, filedeleteevent=nil, pullcompleteevent=nil, editmediacompleteevent=nil, splitmediacompleteevent=nil, composemediacompleteevent=nil, clipcompleteevent=nil, transcodecompleteevent=nil, createimagespritecompleteevent=nil, concatcompleteevent=nil, snapshotbytimeoffsetcompleteevent=nil, wechatpublishcompleteevent=nil, wechatminiprogrampublishcompleteevent=nil, removewatermarkcompleteevent=nil, restoremediacompleteevent=nil, reviewaudiovideocompleteevent=nil)
10584
10597
  @EventHandle = eventhandle
10585
10598
  @EventType = eventtype
10586
10599
  @FileUploadEvent = fileuploadevent
@@ -10599,6 +10612,7 @@ module TencentCloud
10599
10612
  @WechatMiniProgramPublishCompleteEvent = wechatminiprogrampublishcompleteevent
10600
10613
  @RemoveWatermarkCompleteEvent = removewatermarkcompleteevent
10601
10614
  @RestoreMediaCompleteEvent = restoremediacompleteevent
10615
+ @ReviewAudioVideoCompleteEvent = reviewaudiovideocompleteevent
10602
10616
  end
10603
10617
 
10604
10618
  def deserialize(params)
@@ -10668,6 +10682,10 @@ module TencentCloud
10668
10682
  @RestoreMediaCompleteEvent = RestoreMediaTask.new
10669
10683
  @RestoreMediaCompleteEvent.deserialize(params['RestoreMediaCompleteEvent'])
10670
10684
  end
10685
+ unless params['ReviewAudioVideoCompleteEvent'].nil?
10686
+ @ReviewAudioVideoCompleteEvent = ReviewAudioVideoTask.new
10687
+ @ReviewAudioVideoCompleteEvent.deserialize(params['ReviewAudioVideoCompleteEvent'])
10688
+ end
10671
10689
  end
10672
10690
  end
10673
10691
 
@@ -17916,6 +17934,190 @@ module TencentCloud
17916
17934
  end
17917
17935
  end
17918
17936
 
17937
+ # 音视频审核片段。
17938
+ class ReviewAudioVideoSegmentItem < TencentCloud::Common::AbstractModel
17939
+ # @param StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
17940
+ # @type StartTimeOffset: Float
17941
+ # @param EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
17942
+ # @type EndTimeOffset: Float
17943
+ # @param Confidence: 嫌疑片段涉及令人反感的信息的分数。
17944
+ # @type Confidence: Float
17945
+ # @param Suggestion: 嫌疑片段鉴别涉及违规信息的结果建议,取值范围:
17946
+ # <li>review:疑似违规,建议复审;</li>
17947
+ # <li>block:确认违规,建议封禁。</li>
17948
+ # @type Suggestion: String
17949
+ # @param Label: 嫌疑片段最可能的违规的标签,取值范围:
17950
+ # <li>Porn:色情;</li>
17951
+ # <li>Terrorism:暴恐;</li>
17952
+ # <li>Political:令人不适宜的信息。</li>
17953
+ # @type Label: String
17954
+ # @param SubLabel: 当 Form 为 Image 或 Voice 时有效,表示当前标签(Label)下的二级标签。
17955
+ # 当 Form 为 Image 且 Label 为 Porn 时,取值范围:
17956
+ # <li>porn:色情;</li>
17957
+ # <li>vulgar:低俗。</li>
17958
+
17959
+ # 当 Form 为 Image 且 Label 为 Terrorism 时,取值范围:
17960
+ # <li>guns:武器枪支;</li>
17961
+ # <li>bloody:血腥画面;</li>
17962
+ # <li>banners:暴恐旗帜;</li>
17963
+ # <li> scenario:暴恐画面;</li>
17964
+ # <li>explosion:爆炸火灾。</li>
17965
+
17966
+ # 当 Form 为 Image 且 Label 为 Political 时,取值范围:
17967
+ # <li>violation_photo:违规图标;</li>
17968
+ # <li>nation_politician:国家领导人;</li>
17969
+ # <li>province_politician:省部级领导人;</li>
17970
+ # <li>county_politician:市/县级领导人;</li>
17971
+ # <li>sensitive_politician:敏感相关人物;</li>
17972
+ # <li>foreign_politician:国外政治人物;</li>
17973
+ # <li>sensitive_entertainment:敏感娱乐明星;</li>
17974
+ # <li>sensitive_military:敏感军事人物。</li>
17975
+
17976
+ # 当 Form 为 Voice 且 Label 为 Porn 时,取值范围:
17977
+ # <li>moan:娇喘。</li>
17978
+ # @type SubLabel: String
17979
+ # @param Form: 嫌疑片段违禁的形式,取值范围:
17980
+ # <li>Image:画面上的人物或图标;</li>
17981
+ # <li>OCR:画面上的文字;</li>
17982
+ # <li>ASR:语音中的文字;</li>
17983
+ # <li>Voice:声音。</li>
17984
+ # @type Form: String
17985
+ # @param AreaCoordSet: 当 Form 为 Image 或 OCR 时有效,表示嫌疑人物、图标或文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
17986
+ # @type AreaCoordSet: Array
17987
+ # @param Text: 当 Form 为 OCR 或 ASR 时有效,表示识别出来的 OCR 或 ASR 文本内容。
17988
+ # @type Text: String
17989
+ # @param KeywordSet: 当 Form 为 OCR 或 ASR 时有效,表示嫌疑片段命中的违规关键词列表。
17990
+ # @type KeywordSet: Array
17991
+
17992
+ attr_accessor :StartTimeOffset, :EndTimeOffset, :Confidence, :Suggestion, :Label, :SubLabel, :Form, :AreaCoordSet, :Text, :KeywordSet
17993
+
17994
+ def initialize(starttimeoffset=nil, endtimeoffset=nil, confidence=nil, suggestion=nil, label=nil, sublabel=nil, form=nil, areacoordset=nil, text=nil, keywordset=nil)
17995
+ @StartTimeOffset = starttimeoffset
17996
+ @EndTimeOffset = endtimeoffset
17997
+ @Confidence = confidence
17998
+ @Suggestion = suggestion
17999
+ @Label = label
18000
+ @SubLabel = sublabel
18001
+ @Form = form
18002
+ @AreaCoordSet = areacoordset
18003
+ @Text = text
18004
+ @KeywordSet = keywordset
18005
+ end
18006
+
18007
+ def deserialize(params)
18008
+ @StartTimeOffset = params['StartTimeOffset']
18009
+ @EndTimeOffset = params['EndTimeOffset']
18010
+ @Confidence = params['Confidence']
18011
+ @Suggestion = params['Suggestion']
18012
+ @Label = params['Label']
18013
+ @SubLabel = params['SubLabel']
18014
+ @Form = params['Form']
18015
+ @AreaCoordSet = params['AreaCoordSet']
18016
+ @Text = params['Text']
18017
+ @KeywordSet = params['KeywordSet']
18018
+ end
18019
+ end
18020
+
18021
+ # 音视频审核任务信息。
18022
+ class ReviewAudioVideoTask < TencentCloud::Common::AbstractModel
18023
+ # @param TaskId: 任务 ID。
18024
+ # @type TaskId: String
18025
+ # @param Status: 任务状态,取值:
18026
+ # <li>PROCESSING:处理中;</li>
18027
+ # <li>FINISH:已完成。</li>
18028
+ # @type Status: String
18029
+ # @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](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) 列表。
18030
+ # @type ErrCodeExt: String
18031
+ # @param Message: 错误信息。
18032
+ # @type Message: String
18033
+ # @param Output: 音视频审核任务的输出。
18034
+ # 注意:此字段可能返回 null,表示取不到有效值。
18035
+ # @type Output: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTaskOutput`
18036
+ # @param SessionId: 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
18037
+ # @type SessionId: String
18038
+ # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
18039
+ # @type SessionContext: String
18040
+
18041
+ attr_accessor :TaskId, :Status, :ErrCodeExt, :Message, :Output, :SessionId, :SessionContext
18042
+
18043
+ def initialize(taskid=nil, status=nil, errcodeext=nil, message=nil, output=nil, sessionid=nil, sessioncontext=nil)
18044
+ @TaskId = taskid
18045
+ @Status = status
18046
+ @ErrCodeExt = errcodeext
18047
+ @Message = message
18048
+ @Output = output
18049
+ @SessionId = sessionid
18050
+ @SessionContext = sessioncontext
18051
+ end
18052
+
18053
+ def deserialize(params)
18054
+ @TaskId = params['TaskId']
18055
+ @Status = params['Status']
18056
+ @ErrCodeExt = params['ErrCodeExt']
18057
+ @Message = params['Message']
18058
+ unless params['Output'].nil?
18059
+ @Output = ReviewAudioVideoTaskOutput.new
18060
+ @Output.deserialize(params['Output'])
18061
+ end
18062
+ @SessionId = params['SessionId']
18063
+ @SessionContext = params['SessionContext']
18064
+ end
18065
+ end
18066
+
18067
+ # 音视频审核任务的输出。
18068
+ class ReviewAudioVideoTaskOutput < TencentCloud::Common::AbstractModel
18069
+ # @param Suggestion: 音视频内容审核的结果建议,取值范围:
18070
+ # <li>pass:建议通过;</li>
18071
+ # <li>review:建议复审;</li>
18072
+ # <li>block:建议封禁。</li>
18073
+ # @type Suggestion: String
18074
+ # @param Label: 当 Suggestion 为 review 或 block 时有效,表示音视频最可能的违规的标签,取值范围:
18075
+ # <li>Porn:色情;</li>
18076
+ # <li>Terrorism:暴恐;</li>
18077
+ # <li>Political:令人不适宜的信息。</li>
18078
+ # @type Label: String
18079
+ # @param Form: 当 Suggestion 为 review 或 block 时有效,表示音视频最可能的违禁的形式,取值范围:
18080
+ # <li>Image:画面上的人物或图标;</li>
18081
+ # <li>OCR:画面上的文字;</li>
18082
+ # <li>ASR:语音中的文字;</li>
18083
+ # <li>Voice:声音。</li>
18084
+ # @type Form: String
18085
+ # @param SegmentSet: 有违规信息的嫌疑的视频片段列表。
18086
+ # <font color=red>注意</font> :该列表最多仅展示前 10个 元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。
18087
+ # @type SegmentSet: Array
18088
+ # @param SegmentSetFileUrl: 涉及违规信息的嫌疑的视频片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。
18089
+ # @type SegmentSetFileUrl: String
18090
+ # @param SegmentSetFileUrlExpireTime: 涉及违规信息的嫌疑的视频片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
18091
+ # @type SegmentSetFileUrlExpireTime: String
18092
+
18093
+ attr_accessor :Suggestion, :Label, :Form, :SegmentSet, :SegmentSetFileUrl, :SegmentSetFileUrlExpireTime
18094
+
18095
+ def initialize(suggestion=nil, label=nil, form=nil, segmentset=nil, segmentsetfileurl=nil, segmentsetfileurlexpiretime=nil)
18096
+ @Suggestion = suggestion
18097
+ @Label = label
18098
+ @Form = form
18099
+ @SegmentSet = segmentset
18100
+ @SegmentSetFileUrl = segmentsetfileurl
18101
+ @SegmentSetFileUrlExpireTime = segmentsetfileurlexpiretime
18102
+ end
18103
+
18104
+ def deserialize(params)
18105
+ @Suggestion = params['Suggestion']
18106
+ @Label = params['Label']
18107
+ @Form = params['Form']
18108
+ unless params['SegmentSet'].nil?
18109
+ @SegmentSet = []
18110
+ params['SegmentSet'].each do |i|
18111
+ reviewaudiovideosegmentitem_tmp = ReviewAudioVideoSegmentItem.new
18112
+ reviewaudiovideosegmentitem_tmp.deserialize(i)
18113
+ @SegmentSet << reviewaudiovideosegmentitem_tmp
18114
+ end
18115
+ end
18116
+ @SegmentSetFileUrl = params['SegmentSetFileUrl']
18117
+ @SegmentSetFileUrlExpireTime = params['SegmentSetFileUrlExpireTime']
18118
+ end
18119
+ end
18120
+
17919
18121
  # ReviewImage请求参数结构体
17920
18122
  class ReviewImageRequest < TencentCloud::Common::AbstractModel
17921
18123
  # @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符。本接口要求媒体文件必须是图片格式。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vod
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.400
4
+ version: 3.0.401
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-31 00:00:00.000000000 Z
11
+ date: 2022-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common