tencentcloud-sdk-vod 3.0.731 → 3.0.733
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180717/client.rb +24 -0
- data/lib/v20180717/models.rb +88 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d4b25e8f4973303329d80ed9e4f718903cdf2e0
|
4
|
+
data.tar.gz: 8fd6e11f3ec6c8031334134a50d288f0ae7c6a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0384b626522a295472eb859943e1d153bd07f3284025968b83b76804d6aa043abb7893521f7c631570947770fd8db584393e298920451c9de0e570e0c10ece2d
|
7
|
+
data.tar.gz: 1958753a68641fe5a51cd9e40b47907ed90bb4cf2a340390a5b7cd3c682e83c3601aaf96aa2e476c5c396bb356256b912bc3e0e8921603259bec3a9eb6b0268a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.733
|
data/lib/v20180717/client.rb
CHANGED
@@ -2746,6 +2746,30 @@ module TencentCloud
|
|
2746
2746
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2747
2747
|
end
|
2748
2748
|
|
2749
|
+
# 对点播中的音视频媒体发起音画质重生任务。
|
2750
|
+
|
2751
|
+
# @param request: Request instance for EnhanceMediaQuality.
|
2752
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::EnhanceMediaQualityRequest`
|
2753
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::EnhanceMediaQualityResponse`
|
2754
|
+
def EnhanceMediaQuality(request)
|
2755
|
+
body = send_request('EnhanceMediaQuality', request.serialize)
|
2756
|
+
response = JSON.parse(body)
|
2757
|
+
if response['Response'].key?('Error') == false
|
2758
|
+
model = EnhanceMediaQualityResponse.new
|
2759
|
+
model.deserialize(response['Response'])
|
2760
|
+
model
|
2761
|
+
else
|
2762
|
+
code = response['Response']['Error']['Code']
|
2763
|
+
message = response['Response']['Error']['Message']
|
2764
|
+
reqid = response['Response']['RequestId']
|
2765
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2766
|
+
end
|
2767
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2768
|
+
raise e
|
2769
|
+
rescue StandardError => e
|
2770
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2771
|
+
end
|
2772
|
+
|
2749
2773
|
# 本接口仅用于定制开发的特殊场景,除非云点播客服人员主动告知您需要使用本接口,其它情况请勿调用。
|
2750
2774
|
|
2751
2775
|
# @param request: Request instance for ExecuteFunction.
|
data/lib/v20180717/models.rb
CHANGED
@@ -12595,6 +12595,94 @@ module TencentCloud
|
|
12595
12595
|
end
|
12596
12596
|
end
|
12597
12597
|
|
12598
|
+
# 音画质重生结果文件输出。
|
12599
|
+
class EnhanceMediaQualityOutputConfig < TencentCloud::Common::AbstractModel
|
12600
|
+
# @param MediaName: 输出文件名,最长 64 个字符。缺省由系统指定生成文件名。
|
12601
|
+
# @type MediaName: String
|
12602
|
+
# @param ClassId: 分类ID,用于对媒体进行分类管理,可通过 [创建分类](/document/product/266/7812) 接口,创建分类,获得分类 ID。
|
12603
|
+
# <li>默认值:0,表示其他分类。</li>
|
12604
|
+
# @type ClassId: Integer
|
12605
|
+
# @param ExpireTime: 输出文件的过期时间,超过该时间文件将被删除,默认为永久不过期,格式按照 ISO 8601标准表示,详见 [ISO 日期格式说明](https://cloud.tencent.com/document/product/266/11732#I)。
|
12606
|
+
# @type ExpireTime: String
|
12607
|
+
|
12608
|
+
attr_accessor :MediaName, :ClassId, :ExpireTime
|
12609
|
+
|
12610
|
+
def initialize(medianame=nil, classid=nil, expiretime=nil)
|
12611
|
+
@MediaName = medianame
|
12612
|
+
@ClassId = classid
|
12613
|
+
@ExpireTime = expiretime
|
12614
|
+
end
|
12615
|
+
|
12616
|
+
def deserialize(params)
|
12617
|
+
@MediaName = params['MediaName']
|
12618
|
+
@ClassId = params['ClassId']
|
12619
|
+
@ExpireTime = params['ExpireTime']
|
12620
|
+
end
|
12621
|
+
end
|
12622
|
+
|
12623
|
+
# EnhanceMediaQuality请求参数结构体
|
12624
|
+
class EnhanceMediaQualityRequest < TencentCloud::Common::AbstractModel
|
12625
|
+
# @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。
|
12626
|
+
# @type FileId: String
|
12627
|
+
# @param Definition: 音画质重生模板 ID,请联系腾讯云获取。
|
12628
|
+
# @type Definition: Integer
|
12629
|
+
# @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
|
12630
|
+
# @type SubAppId: Integer
|
12631
|
+
# @param OutputConfig: 音画质重生后的媒体文件配置。
|
12632
|
+
# @type OutputConfig: :class:`Tencentcloud::Vod.v20180717.models.EnhanceMediaQualityOutputConfig`
|
12633
|
+
# @param SessionId: 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
12634
|
+
# @type SessionId: String
|
12635
|
+
# @param SessionContext: 来源上下文,用于透传用户请求信息,音画质重生完成回调将返回该字段值,最长 1000 个字符。
|
12636
|
+
# @type SessionContext: String
|
12637
|
+
# @param TasksPriority: 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。
|
12638
|
+
# @type TasksPriority: Integer
|
12639
|
+
|
12640
|
+
attr_accessor :FileId, :Definition, :SubAppId, :OutputConfig, :SessionId, :SessionContext, :TasksPriority
|
12641
|
+
|
12642
|
+
def initialize(fileid=nil, definition=nil, subappid=nil, outputconfig=nil, sessionid=nil, sessioncontext=nil, taskspriority=nil)
|
12643
|
+
@FileId = fileid
|
12644
|
+
@Definition = definition
|
12645
|
+
@SubAppId = subappid
|
12646
|
+
@OutputConfig = outputconfig
|
12647
|
+
@SessionId = sessionid
|
12648
|
+
@SessionContext = sessioncontext
|
12649
|
+
@TasksPriority = taskspriority
|
12650
|
+
end
|
12651
|
+
|
12652
|
+
def deserialize(params)
|
12653
|
+
@FileId = params['FileId']
|
12654
|
+
@Definition = params['Definition']
|
12655
|
+
@SubAppId = params['SubAppId']
|
12656
|
+
unless params['OutputConfig'].nil?
|
12657
|
+
@OutputConfig = EnhanceMediaQualityOutputConfig.new
|
12658
|
+
@OutputConfig.deserialize(params['OutputConfig'])
|
12659
|
+
end
|
12660
|
+
@SessionId = params['SessionId']
|
12661
|
+
@SessionContext = params['SessionContext']
|
12662
|
+
@TasksPriority = params['TasksPriority']
|
12663
|
+
end
|
12664
|
+
end
|
12665
|
+
|
12666
|
+
# EnhanceMediaQuality返回参数结构体
|
12667
|
+
class EnhanceMediaQualityResponse < TencentCloud::Common::AbstractModel
|
12668
|
+
# @param TaskId: 音画质重生任务 ID。
|
12669
|
+
# @type TaskId: String
|
12670
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
12671
|
+
# @type RequestId: String
|
12672
|
+
|
12673
|
+
attr_accessor :TaskId, :RequestId
|
12674
|
+
|
12675
|
+
def initialize(taskid=nil, requestid=nil)
|
12676
|
+
@TaskId = taskid
|
12677
|
+
@RequestId = requestid
|
12678
|
+
end
|
12679
|
+
|
12680
|
+
def deserialize(params)
|
12681
|
+
@TaskId = params['TaskId']
|
12682
|
+
@RequestId = params['RequestId']
|
12683
|
+
end
|
12684
|
+
end
|
12685
|
+
|
12598
12686
|
# 事件通知内容,其中,TranscodeCompleteEvent、ConcatCompleteEvent、ClipCompleteEvent、CreateImageSpriteCompleteEvent、SnapshotByTimeOffsetCompleteEvent 为兼容 2017 版接口发起任务的事件通知。
|
12599
12687
|
class EventContent < TencentCloud::Common::AbstractModel
|
12600
12688
|
# @param EventHandle: 事件句柄,调用方必须调用 ConfirmEvents 来确认消息已经收到,确认有效时间 30 秒。失效后,事件可重新被获取。
|
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.
|
4
|
+
version: 3.0.733
|
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-12-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|