tencentcloud-sdk-vod 3.0.714 → 3.0.716
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 +61 -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: 7e31fb0383508f9b9c05dc02f8b1427b7b1e8afa
|
4
|
+
data.tar.gz: 545a55106288cb9263d6bb989f99ccc0558d83e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a445b87cb9d6fddd831bd0d7314167fad95c44d6a111b7e9116b9ef85a2e14346e3ee2751f3cdc168d9fd2fc934fec8761877a7f60b5f8460443e99288f6d5c2
|
7
|
+
data.tar.gz: 88f6828bd807caf12fdecbaa43d062c2a63b33ef0cb74db32ac2e91752d1e07c7b7e2b05c750e75b816ae866aa132dbaef24107329c565227b641cf1361abb9a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.716
|
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,52 @@ module TencentCloud
|
|
24351
24364
|
end
|
24352
24365
|
end
|
24353
24366
|
|
24367
|
+
# SetVodDomainCertificate请求参数结构体
|
24368
|
+
class SetVodDomainCertificateRequest < TencentCloud::Common::AbstractModel
|
24369
|
+
# @param Domain: 域名。
|
24370
|
+
# @type Domain: String
|
24371
|
+
# @param Operation: 本次接口调用的操作类型,可选值:
|
24372
|
+
# <li>Set:设置域名的 HTTPS 所需证书;</li>
|
24373
|
+
# <li>Clear: 清空域名 HTTPS 配置,清空后该域名无法支持 HTTPS 访问。</li>
|
24374
|
+
# @type Operation: String
|
24375
|
+
# @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
|
24376
|
+
# @type SubAppId: Integer
|
24377
|
+
# @param CertID: [腾讯云SSL](/document/product/400/7572) 上传的证书 ID。清空域名 HTTPS 配置时无需填写该字段。
|
24378
|
+
# @type CertID: String
|
24379
|
+
|
24380
|
+
attr_accessor :Domain, :Operation, :SubAppId, :CertID
|
24381
|
+
|
24382
|
+
def initialize(domain=nil, operation=nil, subappid=nil, certid=nil)
|
24383
|
+
@Domain = domain
|
24384
|
+
@Operation = operation
|
24385
|
+
@SubAppId = subappid
|
24386
|
+
@CertID = certid
|
24387
|
+
end
|
24388
|
+
|
24389
|
+
def deserialize(params)
|
24390
|
+
@Domain = params['Domain']
|
24391
|
+
@Operation = params['Operation']
|
24392
|
+
@SubAppId = params['SubAppId']
|
24393
|
+
@CertID = params['CertID']
|
24394
|
+
end
|
24395
|
+
end
|
24396
|
+
|
24397
|
+
# SetVodDomainCertificate返回参数结构体
|
24398
|
+
class SetVodDomainCertificateResponse < TencentCloud::Common::AbstractModel
|
24399
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
24400
|
+
# @type RequestId: String
|
24401
|
+
|
24402
|
+
attr_accessor :RequestId
|
24403
|
+
|
24404
|
+
def initialize(requestid=nil)
|
24405
|
+
@RequestId = requestid
|
24406
|
+
end
|
24407
|
+
|
24408
|
+
def deserialize(params)
|
24409
|
+
@RequestId = params['RequestId']
|
24410
|
+
end
|
24411
|
+
end
|
24412
|
+
|
24354
24413
|
# 细节增强控制
|
24355
24414
|
class SharpEnhanceInfo < TencentCloud::Common::AbstractModel
|
24356
24415
|
# @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.716
|
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-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|