tencentcloud-sdk-vod 3.0.714 → 3.0.715
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 +42 -2
- 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: 4241650b593a527316434041c523d0e96c4c89b7
|
4
|
+
data.tar.gz: afa85b27849157891b082a65f15d509c1e0efa8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cbd7b877f3ca5b3a92dc5634b751b62cc68ed50952ee5ef3087ae277798c2b6432ed2bcec445ad92375ee3105cf356420cc9c8f70211a1ca9e78838eeabedff
|
7
|
+
data.tar.gz: 904b6c0d7293410608de67ef728239b5d93c1416b2210d91cc79e55895be99ab8f7d47dce6b11c56ee9cd0bf9f115df27e763e4245ae1160600e084d52e0c927
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.715
|
data/lib/v20180717/client.rb
CHANGED
@@ -4173,6 +4173,30 @@ module TencentCloud
|
|
4173
4173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4174
4174
|
end
|
4175
4175
|
|
4176
|
+
# 设置点播域名 HTTPS 证书。
|
4177
|
+
|
4178
|
+
# @param request: Request instance for SetVodDomainCertificate.
|
4179
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::SetVodDomainCertificateRequest`
|
4180
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::SetVodDomainCertificateResponse`
|
4181
|
+
def SetVodDomainCertificate(request)
|
4182
|
+
body = send_request('SetVodDomainCertificate', request.serialize)
|
4183
|
+
response = JSON.parse(body)
|
4184
|
+
if response['Response'].key?('Error') == false
|
4185
|
+
model = SetVodDomainCertificateResponse.new
|
4186
|
+
model.deserialize(response['Response'])
|
4187
|
+
model
|
4188
|
+
else
|
4189
|
+
code = response['Response']['Error']['Code']
|
4190
|
+
message = response['Response']['Error']['Message']
|
4191
|
+
reqid = response['Response']['RequestId']
|
4192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4193
|
+
end
|
4194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4195
|
+
raise e
|
4196
|
+
rescue StandardError => e
|
4197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4198
|
+
end
|
4199
|
+
|
4176
4200
|
# 对 HLS 视频进行按时间段裁剪,实时生成一个新的视频(HLS 格式),开发者可以将其立即分享出去,或者长久保存起来。
|
4177
4201
|
|
4178
4202
|
# 腾讯云点播支持两种剪辑模式:
|
data/lib/v20180717/models.rb
CHANGED
@@ -12450,6 +12450,15 @@ module TencentCloud
|
|
12450
12450
|
|
12451
12451
|
# 视频流配置信息
|
12452
12452
|
class EditMediaVideoStream < TencentCloud::Common::AbstractModel
|
12453
|
+
# @param Codec: 视频流的编码格式,可选值:
|
12454
|
+
# <li>libx264:H.264 编码;</li>
|
12455
|
+
# <li>libx265:H.265 编码;</li>
|
12456
|
+
# <li>av1:AOMedia Video 1 编码;</li>
|
12457
|
+
# <li>H.266:H.266 编码。</li>
|
12458
|
+
# @type Codec: String
|
12459
|
+
# @param Bitrate: 视频流的码率,取值范围:0 和 [128, 35000],单位:kbps。
|
12460
|
+
# 当取值为 0 或不填时,表示自动选择最佳视频码率。
|
12461
|
+
# @type Bitrate: Integer
|
12453
12462
|
# @param ResolutionAdaptive: 分辨率自适应,可选值:
|
12454
12463
|
# <li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li>
|
12455
12464
|
# <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li>
|
@@ -12474,9 +12483,11 @@ module TencentCloud
|
|
12474
12483
|
# 默认值为 0。
|
12475
12484
|
# @type Fps: Integer
|
12476
12485
|
|
12477
|
-
attr_accessor :ResolutionAdaptive, :Width, :Height, :Fps
|
12486
|
+
attr_accessor :Codec, :Bitrate, :ResolutionAdaptive, :Width, :Height, :Fps
|
12478
12487
|
|
12479
|
-
def initialize(resolutionadaptive=nil, width=nil, height=nil, fps=nil)
|
12488
|
+
def initialize(codec=nil, bitrate=nil, resolutionadaptive=nil, width=nil, height=nil, fps=nil)
|
12489
|
+
@Codec = codec
|
12490
|
+
@Bitrate = bitrate
|
12480
12491
|
@ResolutionAdaptive = resolutionadaptive
|
12481
12492
|
@Width = width
|
12482
12493
|
@Height = height
|
@@ -12484,6 +12495,8 @@ module TencentCloud
|
|
12484
12495
|
end
|
12485
12496
|
|
12486
12497
|
def deserialize(params)
|
12498
|
+
@Codec = params['Codec']
|
12499
|
+
@Bitrate = params['Bitrate']
|
12487
12500
|
@ResolutionAdaptive = params['ResolutionAdaptive']
|
12488
12501
|
@Width = params['Width']
|
12489
12502
|
@Height = params['Height']
|
@@ -24351,6 +24364,33 @@ module TencentCloud
|
|
24351
24364
|
end
|
24352
24365
|
end
|
24353
24366
|
|
24367
|
+
# SetVodDomainCertificate请求参数结构体
|
24368
|
+
class SetVodDomainCertificateRequest < TencentCloud::Common::AbstractModel
|
24369
|
+
|
24370
|
+
|
24371
|
+
def initialize()
|
24372
|
+
end
|
24373
|
+
|
24374
|
+
def deserialize(params)
|
24375
|
+
end
|
24376
|
+
end
|
24377
|
+
|
24378
|
+
# SetVodDomainCertificate返回参数结构体
|
24379
|
+
class SetVodDomainCertificateResponse < TencentCloud::Common::AbstractModel
|
24380
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
24381
|
+
# @type RequestId: String
|
24382
|
+
|
24383
|
+
attr_accessor :RequestId
|
24384
|
+
|
24385
|
+
def initialize(requestid=nil)
|
24386
|
+
@RequestId = requestid
|
24387
|
+
end
|
24388
|
+
|
24389
|
+
def deserialize(params)
|
24390
|
+
@RequestId = params['RequestId']
|
24391
|
+
end
|
24392
|
+
end
|
24393
|
+
|
24354
24394
|
# 细节增强控制
|
24355
24395
|
class SharpEnhanceInfo < TencentCloud::Common::AbstractModel
|
24356
24396
|
# @param Switch: 细节增强控制开关,可选值:
|
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.715
|
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-11-
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|