tencentcloud-sdk-vod 3.0.592 → 3.0.594

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54c10262fa75ef747968f76fa0cf815e2f57578d
4
- data.tar.gz: 1ca64717f19eaf05d47cbd9de5f2c7abcfc419b8
3
+ metadata.gz: b770f4869dbe303470fde1bf279f3a193d186768
4
+ data.tar.gz: d4279ffbd83afcae97d2283853b450ed8d2ebf6b
5
5
  SHA512:
6
- metadata.gz: 8dbdde4de2833cf9e3b29c03fcdc29cd878a1270f3c01f1084e82eee65ad628c8c1c1937859a7f5858f7b5aba28f36f26178bb681ab2a4e78782e8a362419e41
7
- data.tar.gz: 5cf16d3380fb37c0f01337ce78721e23a629b0780d5cd490a2240daa1209d506554475f81383f9bde41342b4c48f6f40cdfdf4587f407db864166cbf51e2187c
6
+ metadata.gz: 0c38385186af79a9db4ca2b533fedc8b728347641c3da0f3d5824c2843167898cc0f527460c3d25da9895ebd897dd821d0e0505115ec653163e247699f9af83c
7
+ data.tar.gz: 4da66496b7f790a4e220bccfe200780874f3fcedfc2f6833808e53c015bb732c97d32e68e6f0a93e4b4590acf6e060a38ee037bb387ecadc5981a2d7599f6142
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.592
1
+ 3.0.594
@@ -2602,6 +2602,30 @@ module TencentCloud
2602
2602
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2603
2603
  end
2604
2604
 
2605
+ # 提取版权水印信息。
2606
+
2607
+ # @param request: Request instance for ExtractCopyRightWatermark.
2608
+ # @type request: :class:`Tencentcloud::vod::V20180717::ExtractCopyRightWatermarkRequest`
2609
+ # @rtype: :class:`Tencentcloud::vod::V20180717::ExtractCopyRightWatermarkResponse`
2610
+ def ExtractCopyRightWatermark(request)
2611
+ body = send_request('ExtractCopyRightWatermark', request.serialize)
2612
+ response = JSON.parse(body)
2613
+ if response['Response'].key?('Error') == false
2614
+ model = ExtractCopyRightWatermarkResponse.new
2615
+ model.deserialize(response['Response'])
2616
+ model
2617
+ else
2618
+ code = response['Response']['Error']['Code']
2619
+ message = response['Response']['Error']['Message']
2620
+ reqid = response['Response']['RequestId']
2621
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2622
+ end
2623
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2624
+ raise e
2625
+ rescue StandardError => e
2626
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2627
+ end
2628
+
2605
2629
  # 用于提取溯源水印。
2606
2630
 
2607
2631
  # @param request: Request instance for ExtractTraceWatermark.
@@ -235,14 +235,17 @@ module TencentCloud
235
235
  # @type Size: Integer
236
236
  # @param DigitalWatermarkType: 数字水印类型。可选值:
237
237
  # <li>Trace 表示经过溯源水印处理;</li>
238
+ # <li>CopyRight 表示经过版权水印处理;</li>
238
239
  # <li>None 表示没有经过数字水印处理。</li>
239
240
  # @type DigitalWatermarkType: String
240
241
  # @param SubStreamSet: 子流信息列表。
241
242
  # @type SubStreamSet: Array
243
+ # @param CopyRightWatermarkText: 版权信息。
244
+ # @type CopyRightWatermarkText: String
242
245
 
243
- attr_accessor :Definition, :Package, :DrmType, :Url, :Size, :DigitalWatermarkType, :SubStreamSet
246
+ attr_accessor :Definition, :Package, :DrmType, :Url, :Size, :DigitalWatermarkType, :SubStreamSet, :CopyRightWatermarkText
244
247
 
245
- def initialize(definition=nil, package=nil, drmtype=nil, url=nil, size=nil, digitalwatermarktype=nil, substreamset=nil)
248
+ def initialize(definition=nil, package=nil, drmtype=nil, url=nil, size=nil, digitalwatermarktype=nil, substreamset=nil, copyrightwatermarktext=nil)
246
249
  @Definition = definition
247
250
  @Package = package
248
251
  @DrmType = drmtype
@@ -250,6 +253,7 @@ module TencentCloud
250
253
  @Size = size
251
254
  @DigitalWatermarkType = digitalwatermarktype
252
255
  @SubStreamSet = substreamset
256
+ @CopyRightWatermarkText = copyrightwatermarktext
253
257
  end
254
258
 
255
259
  def deserialize(params)
@@ -267,6 +271,7 @@ module TencentCloud
267
271
  @SubStreamSet << mediasubstreaminfoitem_tmp
268
272
  end
269
273
  end
274
+ @CopyRightWatermarkText = params['CopyRightWatermarkText']
270
275
  end
271
276
  end
272
277
 
@@ -278,15 +283,18 @@ module TencentCloud
278
283
  # @type WatermarkSet: Array
279
284
  # @param TraceWatermark: 溯源水印。
280
285
  # @type TraceWatermark: :class:`Tencentcloud::Vod.v20180717.models.TraceWatermarkInput`
286
+ # @param CopyRightWatermark: 版权水印。
287
+ # @type CopyRightWatermark: :class:`Tencentcloud::Vod.v20180717.models.CopyRightWatermarkInput`
281
288
  # @param SubtitleSet: 字幕列表,元素为字幕 ID,支持多个字幕,最大可支持16个。
282
289
  # @type SubtitleSet: Array
283
290
 
284
- attr_accessor :Definition, :WatermarkSet, :TraceWatermark, :SubtitleSet
291
+ attr_accessor :Definition, :WatermarkSet, :TraceWatermark, :CopyRightWatermark, :SubtitleSet
285
292
 
286
- def initialize(definition=nil, watermarkset=nil, tracewatermark=nil, subtitleset=nil)
293
+ def initialize(definition=nil, watermarkset=nil, tracewatermark=nil, copyrightwatermark=nil, subtitleset=nil)
287
294
  @Definition = definition
288
295
  @WatermarkSet = watermarkset
289
296
  @TraceWatermark = tracewatermark
297
+ @CopyRightWatermark = copyrightwatermark
290
298
  @SubtitleSet = subtitleset
291
299
  end
292
300
 
@@ -304,6 +312,10 @@ module TencentCloud
304
312
  @TraceWatermark = TraceWatermarkInput.new
305
313
  @TraceWatermark.deserialize(params['TraceWatermark'])
306
314
  end
315
+ unless params['CopyRightWatermark'].nil?
316
+ @CopyRightWatermark = CopyRightWatermarkInput.new
317
+ @CopyRightWatermark.deserialize(params['CopyRightWatermark'])
318
+ end
307
319
  @SubtitleSet = params['SubtitleSet']
308
320
  end
309
321
  end
@@ -4404,10 +4416,10 @@ module TencentCloud
4404
4416
  # <li>White:白色背景</li>
4405
4417
  # 默认值:Black。
4406
4418
  # @type Color: String
4407
- # @param Width: 画布宽度,即输出视频的宽度,取值范围:0~ 4096,单位:px。
4419
+ # @param Width: 画布宽度,即输出视频的宽度,取值范围:0~ 3840,单位:px。
4408
4420
  # 默认值:0,表示和第一个视频轨的第一个视频片段的视频宽度一致。
4409
4421
  # @type Width: Integer
4410
- # @param Height: 画布高度,即输出视频的高度(或长边),取值范围:0~ 4096,单位:px。
4422
+ # @param Height: 画布高度,即输出视频的高度(或长边),取值范围:0~ 3840,单位:px。
4411
4423
  # 默认值:0,表示和第一个视频轨的第一个视频片段的视频高度一致。
4412
4424
  # @type Height: Integer
4413
4425
 
@@ -5192,6 +5204,22 @@ module TencentCloud
5192
5204
  end
5193
5205
  end
5194
5206
 
5207
+ # 版权水印参数
5208
+ class CopyRightWatermarkInput < TencentCloud::Common::AbstractModel
5209
+ # @param Text: 版权信息,最大长度为 200 个字符。
5210
+ # @type Text: String
5211
+
5212
+ attr_accessor :Text
5213
+
5214
+ def initialize(text=nil)
5215
+ @Text = text
5216
+ end
5217
+
5218
+ def deserialize(params)
5219
+ @Text = params['Text']
5220
+ end
5221
+ end
5222
+
5195
5223
  # 对视频截图做封面任务输入参数类型
5196
5224
  class CoverBySnapshotTaskInput < TencentCloud::Common::AbstractModel
5197
5225
  # @param Definition: 指定时间点截图模板 ID。
@@ -10667,7 +10695,8 @@ module TencentCloud
10667
10695
  # <li>DescribeFileAttributesTask:获取文件属性任务;</li>
10668
10696
  # <li>RebuildMedia:音画质重生任务;</li>
10669
10697
  # <li>ReviewAudioVideo:音视频审核任务;</li>
10670
- # <li>ExtractTraceWatermark:提取溯源水印任务。</li>
10698
+ # <li>ExtractTraceWatermark:提取溯源水印任务;</li>
10699
+ # <li>ExtractCopyRightWatermark:提取版权水印任务。</li>
10671
10700
  # @type TaskType: String
10672
10701
  # @param Status: 任务状态,取值:
10673
10702
  # <li>WAITING:等待中;</li>
@@ -10725,6 +10754,9 @@ module TencentCloud
10725
10754
  # @param ExtractTraceWatermarkTask: 提取溯源水印任务信息,仅当 TaskType 为 ExtractTraceWatermark,该字段有值。
10726
10755
  # 注意:此字段可能返回 null,表示取不到有效值。
10727
10756
  # @type ExtractTraceWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTask`
10757
+ # @param ExtractCopyRightWatermarkTask: 提取版权水印任务信息,仅当 TaskType 为 ExtractCopyRightWatermark,该字段有值。
10758
+ # 注意:此字段可能返回 null,表示取不到有效值。
10759
+ # @type ExtractCopyRightWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.ExtractCopyRightWatermarkTask`
10728
10760
  # @param ReviewAudioVideoTask: 音视频审核任务信息,仅当 TaskType 为 ReviewAudioVideo,该字段有值。
10729
10761
  # 注意:此字段可能返回 null,表示取不到有效值。
10730
10762
  # @type ReviewAudioVideoTask: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTask`
@@ -10737,9 +10769,9 @@ module TencentCloud
10737
10769
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
10738
10770
  # @type RequestId: String
10739
10771
 
10740
- attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :RebuildMediaTask, :ExtractTraceWatermarkTask, :ReviewAudioVideoTask, :ReduceMediaBitrateTask, :DescribeFileAttributesTask, :RequestId
10772
+ attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :RebuildMediaTask, :ExtractTraceWatermarkTask, :ExtractCopyRightWatermarkTask, :ReviewAudioVideoTask, :ReduceMediaBitrateTask, :DescribeFileAttributesTask, :RequestId
10741
10773
 
10742
- 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, rebuildmediatask=nil, extracttracewatermarktask=nil, reviewaudiovideotask=nil, reducemediabitratetask=nil, describefileattributestask=nil, requestid=nil)
10774
+ 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, rebuildmediatask=nil, extracttracewatermarktask=nil, extractcopyrightwatermarktask=nil, reviewaudiovideotask=nil, reducemediabitratetask=nil, describefileattributestask=nil, requestid=nil)
10743
10775
  @TaskType = tasktype
10744
10776
  @Status = status
10745
10777
  @CreateTime = createtime
@@ -10760,6 +10792,7 @@ module TencentCloud
10760
10792
  @RemoveWatermarkTask = removewatermarktask
10761
10793
  @RebuildMediaTask = rebuildmediatask
10762
10794
  @ExtractTraceWatermarkTask = extracttracewatermarktask
10795
+ @ExtractCopyRightWatermarkTask = extractcopyrightwatermarktask
10763
10796
  @ReviewAudioVideoTask = reviewaudiovideotask
10764
10797
  @ReduceMediaBitrateTask = reducemediabitratetask
10765
10798
  @DescribeFileAttributesTask = describefileattributestask
@@ -10832,6 +10865,10 @@ module TencentCloud
10832
10865
  @ExtractTraceWatermarkTask = ExtractTraceWatermarkTask.new
10833
10866
  @ExtractTraceWatermarkTask.deserialize(params['ExtractTraceWatermarkTask'])
10834
10867
  end
10868
+ unless params['ExtractCopyRightWatermarkTask'].nil?
10869
+ @ExtractCopyRightWatermarkTask = ExtractCopyRightWatermarkTask.new
10870
+ @ExtractCopyRightWatermarkTask.deserialize(params['ExtractCopyRightWatermarkTask'])
10871
+ end
10835
10872
  unless params['ReviewAudioVideoTask'].nil?
10836
10873
  @ReviewAudioVideoTask = ReviewAudioVideoTask.new
10837
10874
  @ReviewAudioVideoTask.deserialize(params['ReviewAudioVideoTask'])
@@ -11904,6 +11941,7 @@ module TencentCloud
11904
11941
  # <li>RebuildMediaComplete:音画质重生完成事件。</li>
11905
11942
  # <li>ReviewAudioVideoComplete:音视频审核完成;</li>
11906
11943
  # <li>ExtractTraceWatermarkComplete:提取溯源水印完成;</li>
11944
+ # <li>ExtractCopyRightWatermarkComplete:提取版权水印完成;</li>
11907
11945
  # <li>DescribeFileAttributesComplete:获取文件属性完成;</li>
11908
11946
  # <b>兼容 2017 版的事件类型:</b>
11909
11947
  # <li>TranscodeComplete:视频转码完成;</li>
@@ -11966,6 +12004,9 @@ module TencentCloud
11966
12004
  # @param ExtractTraceWatermarkCompleteEvent: 溯源水印提取完成事件,当事件类型为 ExtractTraceWatermarkComplete 时有效。
11967
12005
  # 注意:此字段可能返回 null,表示取不到有效值。
11968
12006
  # @type ExtractTraceWatermarkCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTask`
12007
+ # @param ExtractCopyRightWatermarkCompleteEvent: 版权水印提取完成事件,当事件类型为 ExtractCopyRightWatermarkComplete 时有效。
12008
+ # 注意:此字段可能返回 null,表示取不到有效值。
12009
+ # @type ExtractCopyRightWatermarkCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ExtractCopyRightWatermarkTask`
11969
12010
  # @param ReviewAudioVideoCompleteEvent: 音视频审核完成事件,当事件类型为 ReviewAudioVideoComplete 时有效。
11970
12011
  # 注意:此字段可能返回 null,表示取不到有效值。
11971
12012
  # @type ReviewAudioVideoCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTask`
@@ -11976,9 +12017,9 @@ module TencentCloud
11976
12017
  # 注意:此字段可能返回 null,表示取不到有效值。
11977
12018
  # @type DescribeFileAttributesCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.DescribeFileAttributesTask`
11978
12019
 
11979
- attr_accessor :EventHandle, :EventType, :FileUploadEvent, :ProcedureStateChangeEvent, :FileDeleteEvent, :PullCompleteEvent, :EditMediaCompleteEvent, :SplitMediaCompleteEvent, :ComposeMediaCompleteEvent, :ClipCompleteEvent, :TranscodeCompleteEvent, :CreateImageSpriteCompleteEvent, :ConcatCompleteEvent, :SnapshotByTimeOffsetCompleteEvent, :WechatPublishCompleteEvent, :WechatMiniProgramPublishCompleteEvent, :RemoveWatermarkCompleteEvent, :RestoreMediaCompleteEvent, :RebuildMediaCompleteEvent, :ExtractTraceWatermarkCompleteEvent, :ReviewAudioVideoCompleteEvent, :ReduceMediaBitrateCompleteEvent, :DescribeFileAttributesCompleteEvent
12020
+ attr_accessor :EventHandle, :EventType, :FileUploadEvent, :ProcedureStateChangeEvent, :FileDeleteEvent, :PullCompleteEvent, :EditMediaCompleteEvent, :SplitMediaCompleteEvent, :ComposeMediaCompleteEvent, :ClipCompleteEvent, :TranscodeCompleteEvent, :CreateImageSpriteCompleteEvent, :ConcatCompleteEvent, :SnapshotByTimeOffsetCompleteEvent, :WechatPublishCompleteEvent, :WechatMiniProgramPublishCompleteEvent, :RemoveWatermarkCompleteEvent, :RestoreMediaCompleteEvent, :RebuildMediaCompleteEvent, :ExtractTraceWatermarkCompleteEvent, :ExtractCopyRightWatermarkCompleteEvent, :ReviewAudioVideoCompleteEvent, :ReduceMediaBitrateCompleteEvent, :DescribeFileAttributesCompleteEvent
11980
12021
 
11981
- 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, rebuildmediacompleteevent=nil, extracttracewatermarkcompleteevent=nil, reviewaudiovideocompleteevent=nil, reducemediabitratecompleteevent=nil, describefileattributescompleteevent=nil)
12022
+ 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, rebuildmediacompleteevent=nil, extracttracewatermarkcompleteevent=nil, extractcopyrightwatermarkcompleteevent=nil, reviewaudiovideocompleteevent=nil, reducemediabitratecompleteevent=nil, describefileattributescompleteevent=nil)
11982
12023
  @EventHandle = eventhandle
11983
12024
  @EventType = eventtype
11984
12025
  @FileUploadEvent = fileuploadevent
@@ -11999,6 +12040,7 @@ module TencentCloud
11999
12040
  @RestoreMediaCompleteEvent = restoremediacompleteevent
12000
12041
  @RebuildMediaCompleteEvent = rebuildmediacompleteevent
12001
12042
  @ExtractTraceWatermarkCompleteEvent = extracttracewatermarkcompleteevent
12043
+ @ExtractCopyRightWatermarkCompleteEvent = extractcopyrightwatermarkcompleteevent
12002
12044
  @ReviewAudioVideoCompleteEvent = reviewaudiovideocompleteevent
12003
12045
  @ReduceMediaBitrateCompleteEvent = reducemediabitratecompleteevent
12004
12046
  @DescribeFileAttributesCompleteEvent = describefileattributescompleteevent
@@ -12079,6 +12121,10 @@ module TencentCloud
12079
12121
  @ExtractTraceWatermarkCompleteEvent = ExtractTraceWatermarkTask.new
12080
12122
  @ExtractTraceWatermarkCompleteEvent.deserialize(params['ExtractTraceWatermarkCompleteEvent'])
12081
12123
  end
12124
+ unless params['ExtractCopyRightWatermarkCompleteEvent'].nil?
12125
+ @ExtractCopyRightWatermarkCompleteEvent = ExtractCopyRightWatermarkTask.new
12126
+ @ExtractCopyRightWatermarkCompleteEvent.deserialize(params['ExtractCopyRightWatermarkCompleteEvent'])
12127
+ end
12082
12128
  unless params['ReviewAudioVideoCompleteEvent'].nil?
12083
12129
  @ReviewAudioVideoCompleteEvent = ReviewAudioVideoTask.new
12084
12130
  @ReviewAudioVideoCompleteEvent.deserialize(params['ReviewAudioVideoCompleteEvent'])
@@ -12150,6 +12196,155 @@ module TencentCloud
12150
12196
  end
12151
12197
  end
12152
12198
 
12199
+ # ExtractCopyRightWatermark请求参数结构体
12200
+ class ExtractCopyRightWatermarkRequest < TencentCloud::Common::AbstractModel
12201
+ # @param Url: 需要提取水印的媒体 URL。
12202
+ # @type Url: String
12203
+ # @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
12204
+ # @type SubAppId: Integer
12205
+ # @param SessionContext: 标识来源上下文,用于透传用户请求信息,在 ExtractCopyRightWatermarkComplete 回调和任务流状态变更回调将返回该字段值,最长 1000 个字符。
12206
+ # @type SessionContext: String
12207
+ # @param SessionId: 用于任务去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
12208
+ # @type SessionId: String
12209
+ # @param TasksPriority: 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。
12210
+ # @type TasksPriority: Integer
12211
+ # @param ExtInfo: 保留字段,特殊用途时使用。
12212
+ # @type ExtInfo: String
12213
+
12214
+ attr_accessor :Url, :SubAppId, :SessionContext, :SessionId, :TasksPriority, :ExtInfo
12215
+
12216
+ def initialize(url=nil, subappid=nil, sessioncontext=nil, sessionid=nil, taskspriority=nil, extinfo=nil)
12217
+ @Url = url
12218
+ @SubAppId = subappid
12219
+ @SessionContext = sessioncontext
12220
+ @SessionId = sessionid
12221
+ @TasksPriority = taskspriority
12222
+ @ExtInfo = extinfo
12223
+ end
12224
+
12225
+ def deserialize(params)
12226
+ @Url = params['Url']
12227
+ @SubAppId = params['SubAppId']
12228
+ @SessionContext = params['SessionContext']
12229
+ @SessionId = params['SessionId']
12230
+ @TasksPriority = params['TasksPriority']
12231
+ @ExtInfo = params['ExtInfo']
12232
+ end
12233
+ end
12234
+
12235
+ # ExtractCopyRightWatermark返回参数结构体
12236
+ class ExtractCopyRightWatermarkResponse < TencentCloud::Common::AbstractModel
12237
+ # @param TaskId: 任务 ID。
12238
+ # @type TaskId: String
12239
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12240
+ # @type RequestId: String
12241
+
12242
+ attr_accessor :TaskId, :RequestId
12243
+
12244
+ def initialize(taskid=nil, requestid=nil)
12245
+ @TaskId = taskid
12246
+ @RequestId = requestid
12247
+ end
12248
+
12249
+ def deserialize(params)
12250
+ @TaskId = params['TaskId']
12251
+ @RequestId = params['RequestId']
12252
+ end
12253
+ end
12254
+
12255
+ # 提取版权水印任务。
12256
+ class ExtractCopyRightWatermarkTask < TencentCloud::Common::AbstractModel
12257
+ # @param TaskId: 任务 ID。
12258
+ # @type TaskId: String
12259
+ # @param Status: 任务状态,取值:
12260
+ # <li>PROCESSING:处理中;</li>
12261
+ # <li>FINISH:已完成。</li>
12262
+ # @type Status: String
12263
+ # @param ErrCode: 错误码,0 表示成功,其他值表示失败:
12264
+ # <li>40000:输入参数不合法,请检查输入参数;</li>
12265
+ # <li>60000:源文件错误(如视频数据损坏),请确认源文件是否正常;</li>
12266
+ # <li>70000:内部服务错误,建议重试。</li>
12267
+ # @type ErrCode: Integer
12268
+ # @param Message: 错误信息。
12269
+ # @type Message: String
12270
+ # @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) 列表。
12271
+ # @type ErrCodeExt: String
12272
+ # @param Input: 提取版权水印任务输入信息。
12273
+ # 注意:此字段可能返回 null,表示取不到有效值。
12274
+ # @type Input: :class:`Tencentcloud::Vod.v20180717.models.ExtractCopyRightWatermarkTaskInput`
12275
+ # @param Output: 提取版权水印任务输出信息。
12276
+ # 注意:此字段可能返回 null,表示取不到有效值。
12277
+ # @type Output: :class:`Tencentcloud::Vod.v20180717.models.ExtractCopyRightWatermarkTaskOutput`
12278
+ # @param SessionId: 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
12279
+ # @type SessionId: String
12280
+ # @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
12281
+ # @type SessionContext: String
12282
+
12283
+ attr_accessor :TaskId, :Status, :ErrCode, :Message, :ErrCodeExt, :Input, :Output, :SessionId, :SessionContext
12284
+
12285
+ def initialize(taskid=nil, status=nil, errcode=nil, message=nil, errcodeext=nil, input=nil, output=nil, sessionid=nil, sessioncontext=nil)
12286
+ @TaskId = taskid
12287
+ @Status = status
12288
+ @ErrCode = errcode
12289
+ @Message = message
12290
+ @ErrCodeExt = errcodeext
12291
+ @Input = input
12292
+ @Output = output
12293
+ @SessionId = sessionid
12294
+ @SessionContext = sessioncontext
12295
+ end
12296
+
12297
+ def deserialize(params)
12298
+ @TaskId = params['TaskId']
12299
+ @Status = params['Status']
12300
+ @ErrCode = params['ErrCode']
12301
+ @Message = params['Message']
12302
+ @ErrCodeExt = params['ErrCodeExt']
12303
+ unless params['Input'].nil?
12304
+ @Input = ExtractCopyRightWatermarkTaskInput.new
12305
+ @Input.deserialize(params['Input'])
12306
+ end
12307
+ unless params['Output'].nil?
12308
+ @Output = ExtractCopyRightWatermarkTaskOutput.new
12309
+ @Output.deserialize(params['Output'])
12310
+ end
12311
+ @SessionId = params['SessionId']
12312
+ @SessionContext = params['SessionContext']
12313
+ end
12314
+ end
12315
+
12316
+ # 提取版权水印任务输入
12317
+ class ExtractCopyRightWatermarkTaskInput < TencentCloud::Common::AbstractModel
12318
+ # @param Url: 需要提取水印的媒体 URL。
12319
+ # @type Url: String
12320
+
12321
+ attr_accessor :Url
12322
+
12323
+ def initialize(url=nil)
12324
+ @Url = url
12325
+ end
12326
+
12327
+ def deserialize(params)
12328
+ @Url = params['Url']
12329
+ end
12330
+ end
12331
+
12332
+ # 提取版权水印输出信息
12333
+ class ExtractCopyRightWatermarkTaskOutput < TencentCloud::Common::AbstractModel
12334
+ # @param Text: 版权信息。
12335
+ # @type Text: String
12336
+
12337
+ attr_accessor :Text
12338
+
12339
+ def initialize(text=nil)
12340
+ @Text = text
12341
+ end
12342
+
12343
+ def deserialize(params)
12344
+ @Text = params['Text']
12345
+ end
12346
+ end
12347
+
12153
12348
  # ExtractTraceWatermark请求参数结构体
12154
12349
  class ExtractTraceWatermarkRequest < TencentCloud::Common::AbstractModel
12155
12350
  # @param Url: 需要提取水印的媒体 URL。
@@ -15618,12 +15813,15 @@ module TencentCloud
15618
15813
  # @type AudioStreamSet: Array
15619
15814
  # @param DigitalWatermarkType: 数字水印类型。可选值:
15620
15815
  # <li>Trace 表示经过溯源水印处理;</li>
15816
+ # <li>CopyRight 表示经过版权水印处理;</li>
15621
15817
  # <li>None 表示没有经过数字水印处理。</li>
15622
15818
  # @type DigitalWatermarkType: String
15819
+ # @param CopyRightWatermarkText: 版权信息。
15820
+ # @type CopyRightWatermarkText: String
15623
15821
 
15624
- attr_accessor :Url, :Definition, :Bitrate, :Height, :Width, :Size, :Duration, :Md5, :Container, :VideoStreamSet, :AudioStreamSet, :DigitalWatermarkType
15822
+ attr_accessor :Url, :Definition, :Bitrate, :Height, :Width, :Size, :Duration, :Md5, :Container, :VideoStreamSet, :AudioStreamSet, :DigitalWatermarkType, :CopyRightWatermarkText
15625
15823
 
15626
- def initialize(url=nil, definition=nil, bitrate=nil, height=nil, width=nil, size=nil, duration=nil, md5=nil, container=nil, videostreamset=nil, audiostreamset=nil, digitalwatermarktype=nil)
15824
+ def initialize(url=nil, definition=nil, bitrate=nil, height=nil, width=nil, size=nil, duration=nil, md5=nil, container=nil, videostreamset=nil, audiostreamset=nil, digitalwatermarktype=nil, copyrightwatermarktext=nil)
15627
15825
  @Url = url
15628
15826
  @Definition = definition
15629
15827
  @Bitrate = bitrate
@@ -15636,6 +15834,7 @@ module TencentCloud
15636
15834
  @VideoStreamSet = videostreamset
15637
15835
  @AudioStreamSet = audiostreamset
15638
15836
  @DigitalWatermarkType = digitalwatermarktype
15837
+ @CopyRightWatermarkText = copyrightwatermarktext
15639
15838
  end
15640
15839
 
15641
15840
  def deserialize(params)
@@ -15665,6 +15864,7 @@ module TencentCloud
15665
15864
  end
15666
15865
  end
15667
15866
  @DigitalWatermarkType = params['DigitalWatermarkType']
15867
+ @CopyRightWatermarkText = params['CopyRightWatermarkText']
15668
15868
  end
15669
15869
  end
15670
15870
 
@@ -24118,6 +24318,8 @@ module TencentCloud
24118
24318
  # @type WatermarkSet: Array
24119
24319
  # @param TraceWatermark: 溯源水印。
24120
24320
  # @type TraceWatermark: :class:`Tencentcloud::Vod.v20180717.models.TraceWatermarkInput`
24321
+ # @param CopyRightWatermark: 版权水印。
24322
+ # @type CopyRightWatermark: :class:`Tencentcloud::Vod.v20180717.models.CopyRightWatermarkInput`
24121
24323
  # @param MosaicSet: 马赛克列表,最大可支持 10 张。
24122
24324
  # @type MosaicSet: Array
24123
24325
  # @param HeadTailSet: 片头片尾列表,支持多片头片尾,最大可支持 10 个。
@@ -24133,12 +24335,13 @@ module TencentCloud
24133
24335
  # <li>当数值小于0时(假设为 -n),表示转码后的视频持续到原始视频结束 n 秒前终止。</li>
24134
24336
  # @type EndTimeOffset: Float
24135
24337
 
24136
- attr_accessor :Definition, :WatermarkSet, :TraceWatermark, :MosaicSet, :HeadTailSet, :StartTimeOffset, :EndTimeOffset
24338
+ attr_accessor :Definition, :WatermarkSet, :TraceWatermark, :CopyRightWatermark, :MosaicSet, :HeadTailSet, :StartTimeOffset, :EndTimeOffset
24137
24339
 
24138
- def initialize(definition=nil, watermarkset=nil, tracewatermark=nil, mosaicset=nil, headtailset=nil, starttimeoffset=nil, endtimeoffset=nil)
24340
+ def initialize(definition=nil, watermarkset=nil, tracewatermark=nil, copyrightwatermark=nil, mosaicset=nil, headtailset=nil, starttimeoffset=nil, endtimeoffset=nil)
24139
24341
  @Definition = definition
24140
24342
  @WatermarkSet = watermarkset
24141
24343
  @TraceWatermark = tracewatermark
24344
+ @CopyRightWatermark = copyrightwatermark
24142
24345
  @MosaicSet = mosaicset
24143
24346
  @HeadTailSet = headtailset
24144
24347
  @StartTimeOffset = starttimeoffset
@@ -24159,6 +24362,10 @@ module TencentCloud
24159
24362
  @TraceWatermark = TraceWatermarkInput.new
24160
24363
  @TraceWatermark.deserialize(params['TraceWatermark'])
24161
24364
  end
24365
+ unless params['CopyRightWatermark'].nil?
24366
+ @CopyRightWatermark = CopyRightWatermarkInput.new
24367
+ @CopyRightWatermark.deserialize(params['CopyRightWatermark'])
24368
+ end
24162
24369
  unless params['MosaicSet'].nil?
24163
24370
  @MosaicSet = []
24164
24371
  params['MosaicSet'].each do |i|
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.592
4
+ version: 3.0.594
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-14 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-vod.rb
37
36
  - lib/v20180717/client.rb
38
37
  - lib/v20180717/models.rb
38
+ - lib/tencentcloud-sdk-vod.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: