tencentcloud-sdk-live 3.0.502 → 3.0.504
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/v20180801/client.rb +169 -0
- data/lib/v20180801/models.rb +396 -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: e6f58f3680029747c8523765179162cd5d17a73e
|
4
|
+
data.tar.gz: 4cdec74ba4e76b8bc8f1fb6ef20a3e28eda82d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a504dd3250ff188bb045c50d2d2cdaea9f7f60414c797751a1a451ae921b68bb026d7e35323ea657c5ee6e55ab074fb41ac41d2878a2d15d89ff9854f157c63e
|
7
|
+
data.tar.gz: c55dea78fa2c0ebe50bd1cfcd816eb0f3ba0a3a741e1d28b2dc01411b760c4e6ec4d60371e62d5e4ad264b8b28585692d9a5ac5065dacdb5846022503f5329e9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.504
|
data/lib/v20180801/client.rb
CHANGED
@@ -400,6 +400,55 @@ module TencentCloud
|
|
400
400
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
401
401
|
end
|
402
402
|
|
403
|
+
# 创建直播时移规则,需要先调用[CreateLiveTimeShiftTemplate](/document/product/267/84589)接口创建录制模板,将返回的模板id绑定到流使用。
|
404
|
+
# <br>直播时移相关文档:[直播时移](/document/product/267/86134)。
|
405
|
+
|
406
|
+
# @param request: Request instance for CreateLiveTimeShiftRule.
|
407
|
+
# @type request: :class:`Tencentcloud::live::V20180801::CreateLiveTimeShiftRuleRequest`
|
408
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::CreateLiveTimeShiftRuleResponse`
|
409
|
+
def CreateLiveTimeShiftRule(request)
|
410
|
+
body = send_request('CreateLiveTimeShiftRule', request.serialize)
|
411
|
+
response = JSON.parse(body)
|
412
|
+
if response['Response'].key?('Error') == false
|
413
|
+
model = CreateLiveTimeShiftRuleResponse.new
|
414
|
+
model.deserialize(response['Response'])
|
415
|
+
model
|
416
|
+
else
|
417
|
+
code = response['Response']['Error']['Code']
|
418
|
+
message = response['Response']['Error']['Message']
|
419
|
+
reqid = response['Response']['RequestId']
|
420
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
421
|
+
end
|
422
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
423
|
+
raise e
|
424
|
+
rescue StandardError => e
|
425
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
426
|
+
end
|
427
|
+
|
428
|
+
# 创建直播垫片模板。
|
429
|
+
|
430
|
+
# @param request: Request instance for CreateLiveTimeShiftTemplate.
|
431
|
+
# @type request: :class:`Tencentcloud::live::V20180801::CreateLiveTimeShiftTemplateRequest`
|
432
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::CreateLiveTimeShiftTemplateResponse`
|
433
|
+
def CreateLiveTimeShiftTemplate(request)
|
434
|
+
body = send_request('CreateLiveTimeShiftTemplate', request.serialize)
|
435
|
+
response = JSON.parse(body)
|
436
|
+
if response['Response'].key?('Error') == false
|
437
|
+
model = CreateLiveTimeShiftTemplateResponse.new
|
438
|
+
model.deserialize(response['Response'])
|
439
|
+
model
|
440
|
+
else
|
441
|
+
code = response['Response']['Error']['Code']
|
442
|
+
message = response['Response']['Error']['Message']
|
443
|
+
reqid = response['Response']['RequestId']
|
444
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
445
|
+
end
|
446
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
447
|
+
raise e
|
448
|
+
rescue StandardError => e
|
449
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
450
|
+
end
|
451
|
+
|
403
452
|
# 创建转码规则,需要先调用[CreateLiveTranscodeTemplate](/document/product/267/32646)接口创建转码模板,将返回的模板id绑定到流使用。
|
404
453
|
# <br>转码相关文档:[直播转封装及转码](/document/product/267/32736)。
|
405
454
|
|
@@ -785,6 +834,54 @@ module TencentCloud
|
|
785
834
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
786
835
|
end
|
787
836
|
|
837
|
+
# 删除直播时移规则。
|
838
|
+
|
839
|
+
# @param request: Request instance for DeleteLiveTimeShiftRule.
|
840
|
+
# @type request: :class:`Tencentcloud::live::V20180801::DeleteLiveTimeShiftRuleRequest`
|
841
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::DeleteLiveTimeShiftRuleResponse`
|
842
|
+
def DeleteLiveTimeShiftRule(request)
|
843
|
+
body = send_request('DeleteLiveTimeShiftRule', request.serialize)
|
844
|
+
response = JSON.parse(body)
|
845
|
+
if response['Response'].key?('Error') == false
|
846
|
+
model = DeleteLiveTimeShiftRuleResponse.new
|
847
|
+
model.deserialize(response['Response'])
|
848
|
+
model
|
849
|
+
else
|
850
|
+
code = response['Response']['Error']['Code']
|
851
|
+
message = response['Response']['Error']['Message']
|
852
|
+
reqid = response['Response']['RequestId']
|
853
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
854
|
+
end
|
855
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
856
|
+
raise e
|
857
|
+
rescue StandardError => e
|
858
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
859
|
+
end
|
860
|
+
|
861
|
+
# 删除直播时移模板。
|
862
|
+
|
863
|
+
# @param request: Request instance for DeleteLiveTimeShiftTemplate.
|
864
|
+
# @type request: :class:`Tencentcloud::live::V20180801::DeleteLiveTimeShiftTemplateRequest`
|
865
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::DeleteLiveTimeShiftTemplateResponse`
|
866
|
+
def DeleteLiveTimeShiftTemplate(request)
|
867
|
+
body = send_request('DeleteLiveTimeShiftTemplate', request.serialize)
|
868
|
+
response = JSON.parse(body)
|
869
|
+
if response['Response'].key?('Error') == false
|
870
|
+
model = DeleteLiveTimeShiftTemplateResponse.new
|
871
|
+
model.deserialize(response['Response'])
|
872
|
+
model
|
873
|
+
else
|
874
|
+
code = response['Response']['Error']['Code']
|
875
|
+
message = response['Response']['Error']['Message']
|
876
|
+
reqid = response['Response']['RequestId']
|
877
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
878
|
+
end
|
879
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
880
|
+
raise e
|
881
|
+
rescue StandardError => e
|
882
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
883
|
+
end
|
884
|
+
|
788
885
|
# 删除转码规则。
|
789
886
|
# DomainName+AppName+StreamName+TemplateId唯一标识单个转码规则,如需删除需要强匹配。其中TemplateId必填,其余参数为空时也需要传空字符串进行强匹配。
|
790
887
|
|
@@ -1865,6 +1962,54 @@ module TencentCloud
|
|
1865
1962
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1866
1963
|
end
|
1867
1964
|
|
1965
|
+
# 获取直播时移规则列表。
|
1966
|
+
|
1967
|
+
# @param request: Request instance for DescribeLiveTimeShiftRules.
|
1968
|
+
# @type request: :class:`Tencentcloud::live::V20180801::DescribeLiveTimeShiftRulesRequest`
|
1969
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::DescribeLiveTimeShiftRulesResponse`
|
1970
|
+
def DescribeLiveTimeShiftRules(request)
|
1971
|
+
body = send_request('DescribeLiveTimeShiftRules', request.serialize)
|
1972
|
+
response = JSON.parse(body)
|
1973
|
+
if response['Response'].key?('Error') == false
|
1974
|
+
model = DescribeLiveTimeShiftRulesResponse.new
|
1975
|
+
model.deserialize(response['Response'])
|
1976
|
+
model
|
1977
|
+
else
|
1978
|
+
code = response['Response']['Error']['Code']
|
1979
|
+
message = response['Response']['Error']['Message']
|
1980
|
+
reqid = response['Response']['RequestId']
|
1981
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1982
|
+
end
|
1983
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1984
|
+
raise e
|
1985
|
+
rescue StandardError => e
|
1986
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1987
|
+
end
|
1988
|
+
|
1989
|
+
# 获取直播时移模板。
|
1990
|
+
|
1991
|
+
# @param request: Request instance for DescribeLiveTimeShiftTemplates.
|
1992
|
+
# @type request: :class:`Tencentcloud::live::V20180801::DescribeLiveTimeShiftTemplatesRequest`
|
1993
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::DescribeLiveTimeShiftTemplatesResponse`
|
1994
|
+
def DescribeLiveTimeShiftTemplates(request)
|
1995
|
+
body = send_request('DescribeLiveTimeShiftTemplates', request.serialize)
|
1996
|
+
response = JSON.parse(body)
|
1997
|
+
if response['Response'].key?('Error') == false
|
1998
|
+
model = DescribeLiveTimeShiftTemplatesResponse.new
|
1999
|
+
model.deserialize(response['Response'])
|
2000
|
+
model
|
2001
|
+
else
|
2002
|
+
code = response['Response']['Error']['Code']
|
2003
|
+
message = response['Response']['Error']['Message']
|
2004
|
+
reqid = response['Response']['RequestId']
|
2005
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2006
|
+
end
|
2007
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2008
|
+
raise e
|
2009
|
+
rescue StandardError => e
|
2010
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2011
|
+
end
|
2012
|
+
|
1868
2013
|
# 支持查询某天或某段时间的转码详细信息。由于转码数据量较大,如果查询时间跨度太长可能会拉不到数据,可以尝试将查询时间范围缩小些再重试。
|
1869
2014
|
|
1870
2015
|
# @param request: Request instance for DescribeLiveTranscodeDetailInfo.
|
@@ -2842,6 +2987,30 @@ module TencentCloud
|
|
2842
2987
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2843
2988
|
end
|
2844
2989
|
|
2990
|
+
# 修改直播垫片模板。
|
2991
|
+
|
2992
|
+
# @param request: Request instance for ModifyLiveTimeShiftTemplate.
|
2993
|
+
# @type request: :class:`Tencentcloud::live::V20180801::ModifyLiveTimeShiftTemplateRequest`
|
2994
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::ModifyLiveTimeShiftTemplateResponse`
|
2995
|
+
def ModifyLiveTimeShiftTemplate(request)
|
2996
|
+
body = send_request('ModifyLiveTimeShiftTemplate', request.serialize)
|
2997
|
+
response = JSON.parse(body)
|
2998
|
+
if response['Response'].key?('Error') == false
|
2999
|
+
model = ModifyLiveTimeShiftTemplateResponse.new
|
3000
|
+
model.deserialize(response['Response'])
|
3001
|
+
model
|
3002
|
+
else
|
3003
|
+
code = response['Response']['Error']['Code']
|
3004
|
+
message = response['Response']['Error']['Message']
|
3005
|
+
reqid = response['Response']['RequestId']
|
3006
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3007
|
+
end
|
3008
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3009
|
+
raise e
|
3010
|
+
rescue StandardError => e
|
3011
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3012
|
+
end
|
3013
|
+
|
2845
3014
|
# 修改转码模板配置。
|
2846
3015
|
|
2847
3016
|
# @param request: Request instance for ModifyLiveTranscodeTemplate.
|
data/lib/v20180801/models.rb
CHANGED
@@ -1649,6 +1649,124 @@ module TencentCloud
|
|
1649
1649
|
end
|
1650
1650
|
end
|
1651
1651
|
|
1652
|
+
# CreateLiveTimeShiftRule请求参数结构体
|
1653
|
+
class CreateLiveTimeShiftRuleRequest < TencentCloud::Common::AbstractModel
|
1654
|
+
# @param DomainName: 推流域名。
|
1655
|
+
# @type DomainName: String
|
1656
|
+
# @param AppName: 推流路径,与推流和播放地址中的AppName保持一致,默认为 live。
|
1657
|
+
# @type AppName: String
|
1658
|
+
# @param StreamName: 流名称。
|
1659
|
+
# 注:如果本参数设置为非空字符串,规则将只对此推流起作用。
|
1660
|
+
# @type StreamName: String
|
1661
|
+
# @param TemplateId: 模板 ID。
|
1662
|
+
# @type TemplateId: Integer
|
1663
|
+
|
1664
|
+
attr_accessor :DomainName, :AppName, :StreamName, :TemplateId
|
1665
|
+
|
1666
|
+
def initialize(domainname=nil, appname=nil, streamname=nil, templateid=nil)
|
1667
|
+
@DomainName = domainname
|
1668
|
+
@AppName = appname
|
1669
|
+
@StreamName = streamname
|
1670
|
+
@TemplateId = templateid
|
1671
|
+
end
|
1672
|
+
|
1673
|
+
def deserialize(params)
|
1674
|
+
@DomainName = params['DomainName']
|
1675
|
+
@AppName = params['AppName']
|
1676
|
+
@StreamName = params['StreamName']
|
1677
|
+
@TemplateId = params['TemplateId']
|
1678
|
+
end
|
1679
|
+
end
|
1680
|
+
|
1681
|
+
# CreateLiveTimeShiftRule返回参数结构体
|
1682
|
+
class CreateLiveTimeShiftRuleResponse < TencentCloud::Common::AbstractModel
|
1683
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1684
|
+
# @type RequestId: String
|
1685
|
+
|
1686
|
+
attr_accessor :RequestId
|
1687
|
+
|
1688
|
+
def initialize(requestid=nil)
|
1689
|
+
@RequestId = requestid
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
def deserialize(params)
|
1693
|
+
@RequestId = params['RequestId']
|
1694
|
+
end
|
1695
|
+
end
|
1696
|
+
|
1697
|
+
# CreateLiveTimeShiftTemplate请求参数结构体
|
1698
|
+
class CreateLiveTimeShiftTemplateRequest < TencentCloud::Common::AbstractModel
|
1699
|
+
# @param TemplateName: 模板名称。
|
1700
|
+
# 长度上限:255字节。
|
1701
|
+
# 仅支持中文、英文、数字、_、-。
|
1702
|
+
# @type TemplateName: String
|
1703
|
+
# @param Duration: 时移时长。
|
1704
|
+
# 单位:s。
|
1705
|
+
# @type Duration: Integer
|
1706
|
+
# @param Description: 描述信息。
|
1707
|
+
# 仅支持中文、英文、数字、_、-。
|
1708
|
+
# @type Description: String
|
1709
|
+
# @param Area: 地域。
|
1710
|
+
# Mainland:中国大陆。
|
1711
|
+
# Overseas:海外及港澳台地区。
|
1712
|
+
# 默认值:Mainland。
|
1713
|
+
# @type Area: String
|
1714
|
+
# @param ItemDuration: 分片时长。
|
1715
|
+
# 可取3-10。
|
1716
|
+
# 单位:s。
|
1717
|
+
# 默认值:5。
|
1718
|
+
# @type ItemDuration: Integer
|
1719
|
+
# @param RemoveWatermark: 是否去除水印。
|
1720
|
+
# 传true则将录制原始流。
|
1721
|
+
# 默认值:false。
|
1722
|
+
# @type RemoveWatermark: Boolean
|
1723
|
+
# @param TranscodeTemplateIds: 转码流id列表。
|
1724
|
+
# 此参数仅在 RemoveWatermark为false时生效。
|
1725
|
+
# @type TranscodeTemplateIds: Array
|
1726
|
+
|
1727
|
+
attr_accessor :TemplateName, :Duration, :Description, :Area, :ItemDuration, :RemoveWatermark, :TranscodeTemplateIds
|
1728
|
+
|
1729
|
+
def initialize(templatename=nil, duration=nil, description=nil, area=nil, itemduration=nil, removewatermark=nil, transcodetemplateids=nil)
|
1730
|
+
@TemplateName = templatename
|
1731
|
+
@Duration = duration
|
1732
|
+
@Description = description
|
1733
|
+
@Area = area
|
1734
|
+
@ItemDuration = itemduration
|
1735
|
+
@RemoveWatermark = removewatermark
|
1736
|
+
@TranscodeTemplateIds = transcodetemplateids
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
def deserialize(params)
|
1740
|
+
@TemplateName = params['TemplateName']
|
1741
|
+
@Duration = params['Duration']
|
1742
|
+
@Description = params['Description']
|
1743
|
+
@Area = params['Area']
|
1744
|
+
@ItemDuration = params['ItemDuration']
|
1745
|
+
@RemoveWatermark = params['RemoveWatermark']
|
1746
|
+
@TranscodeTemplateIds = params['TranscodeTemplateIds']
|
1747
|
+
end
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
# CreateLiveTimeShiftTemplate返回参数结构体
|
1751
|
+
class CreateLiveTimeShiftTemplateResponse < TencentCloud::Common::AbstractModel
|
1752
|
+
# @param TemplateId: 模板Id。
|
1753
|
+
# @type TemplateId: Integer
|
1754
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1755
|
+
# @type RequestId: String
|
1756
|
+
|
1757
|
+
attr_accessor :TemplateId, :RequestId
|
1758
|
+
|
1759
|
+
def initialize(templateid=nil, requestid=nil)
|
1760
|
+
@TemplateId = templateid
|
1761
|
+
@RequestId = requestid
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
def deserialize(params)
|
1765
|
+
@TemplateId = params['TemplateId']
|
1766
|
+
@RequestId = params['RequestId']
|
1767
|
+
end
|
1768
|
+
end
|
1769
|
+
|
1652
1770
|
# CreateLiveTranscodeRule请求参数结构体
|
1653
1771
|
class CreateLiveTranscodeRuleRequest < TencentCloud::Common::AbstractModel
|
1654
1772
|
# @param DomainName: 播放域名。
|
@@ -2505,6 +2623,81 @@ module TencentCloud
|
|
2505
2623
|
end
|
2506
2624
|
end
|
2507
2625
|
|
2626
|
+
# DeleteLiveTimeShiftRule请求参数结构体
|
2627
|
+
class DeleteLiveTimeShiftRuleRequest < TencentCloud::Common::AbstractModel
|
2628
|
+
# @param DomainName: 推流域名。
|
2629
|
+
# 域名+AppName+StreamName唯一标识单个时移规则,如需删除需要强匹配,例如AppName为空也需要传空字符串进行强匹配。
|
2630
|
+
# @type DomainName: String
|
2631
|
+
# @param AppName: 推流路径,与推流和播放地址中的AppName保持一致,默认为 live。
|
2632
|
+
# 域名+AppName+StreamName唯一标识单个时移规则,如需删除需要强匹配,例如AppName为空也需要传空字符串进行强匹配。
|
2633
|
+
# @type AppName: String
|
2634
|
+
# @param StreamName: 流名称。
|
2635
|
+
# 域名+AppName+StreamName唯一标识单个时移规则,如需删除需要强匹配,例如AppName为空也需要传空字符串进行强匹配。
|
2636
|
+
# @type StreamName: String
|
2637
|
+
|
2638
|
+
attr_accessor :DomainName, :AppName, :StreamName
|
2639
|
+
|
2640
|
+
def initialize(domainname=nil, appname=nil, streamname=nil)
|
2641
|
+
@DomainName = domainname
|
2642
|
+
@AppName = appname
|
2643
|
+
@StreamName = streamname
|
2644
|
+
end
|
2645
|
+
|
2646
|
+
def deserialize(params)
|
2647
|
+
@DomainName = params['DomainName']
|
2648
|
+
@AppName = params['AppName']
|
2649
|
+
@StreamName = params['StreamName']
|
2650
|
+
end
|
2651
|
+
end
|
2652
|
+
|
2653
|
+
# DeleteLiveTimeShiftRule返回参数结构体
|
2654
|
+
class DeleteLiveTimeShiftRuleResponse < TencentCloud::Common::AbstractModel
|
2655
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2656
|
+
# @type RequestId: String
|
2657
|
+
|
2658
|
+
attr_accessor :RequestId
|
2659
|
+
|
2660
|
+
def initialize(requestid=nil)
|
2661
|
+
@RequestId = requestid
|
2662
|
+
end
|
2663
|
+
|
2664
|
+
def deserialize(params)
|
2665
|
+
@RequestId = params['RequestId']
|
2666
|
+
end
|
2667
|
+
end
|
2668
|
+
|
2669
|
+
# DeleteLiveTimeShiftTemplate请求参数结构体
|
2670
|
+
class DeleteLiveTimeShiftTemplateRequest < TencentCloud::Common::AbstractModel
|
2671
|
+
# @param TemplateId: 模板 ID。
|
2672
|
+
# @type TemplateId: Integer
|
2673
|
+
|
2674
|
+
attr_accessor :TemplateId
|
2675
|
+
|
2676
|
+
def initialize(templateid=nil)
|
2677
|
+
@TemplateId = templateid
|
2678
|
+
end
|
2679
|
+
|
2680
|
+
def deserialize(params)
|
2681
|
+
@TemplateId = params['TemplateId']
|
2682
|
+
end
|
2683
|
+
end
|
2684
|
+
|
2685
|
+
# DeleteLiveTimeShiftTemplate返回参数结构体
|
2686
|
+
class DeleteLiveTimeShiftTemplateResponse < TencentCloud::Common::AbstractModel
|
2687
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2688
|
+
# @type RequestId: String
|
2689
|
+
|
2690
|
+
attr_accessor :RequestId
|
2691
|
+
|
2692
|
+
def initialize(requestid=nil)
|
2693
|
+
@RequestId = requestid
|
2694
|
+
end
|
2695
|
+
|
2696
|
+
def deserialize(params)
|
2697
|
+
@RequestId = params['RequestId']
|
2698
|
+
end
|
2699
|
+
end
|
2700
|
+
|
2508
2701
|
# DeleteLiveTranscodeRule请求参数结构体
|
2509
2702
|
class DeleteLiveTranscodeRuleRequest < TencentCloud::Common::AbstractModel
|
2510
2703
|
# @param DomainName: 播放域名。
|
@@ -4871,6 +5064,82 @@ module TencentCloud
|
|
4871
5064
|
end
|
4872
5065
|
end
|
4873
5066
|
|
5067
|
+
# DescribeLiveTimeShiftRules请求参数结构体
|
5068
|
+
class DescribeLiveTimeShiftRulesRequest < TencentCloud::Common::AbstractModel
|
5069
|
+
|
5070
|
+
|
5071
|
+
def initialize()
|
5072
|
+
end
|
5073
|
+
|
5074
|
+
def deserialize(params)
|
5075
|
+
end
|
5076
|
+
end
|
5077
|
+
|
5078
|
+
# DescribeLiveTimeShiftRules返回参数结构体
|
5079
|
+
class DescribeLiveTimeShiftRulesResponse < TencentCloud::Common::AbstractModel
|
5080
|
+
# @param Rules: 规则信息列表。
|
5081
|
+
# @type Rules: Array
|
5082
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5083
|
+
# @type RequestId: String
|
5084
|
+
|
5085
|
+
attr_accessor :Rules, :RequestId
|
5086
|
+
|
5087
|
+
def initialize(rules=nil, requestid=nil)
|
5088
|
+
@Rules = rules
|
5089
|
+
@RequestId = requestid
|
5090
|
+
end
|
5091
|
+
|
5092
|
+
def deserialize(params)
|
5093
|
+
unless params['Rules'].nil?
|
5094
|
+
@Rules = []
|
5095
|
+
params['Rules'].each do |i|
|
5096
|
+
ruleinfo_tmp = RuleInfo.new
|
5097
|
+
ruleinfo_tmp.deserialize(i)
|
5098
|
+
@Rules << ruleinfo_tmp
|
5099
|
+
end
|
5100
|
+
end
|
5101
|
+
@RequestId = params['RequestId']
|
5102
|
+
end
|
5103
|
+
end
|
5104
|
+
|
5105
|
+
# DescribeLiveTimeShiftTemplates请求参数结构体
|
5106
|
+
class DescribeLiveTimeShiftTemplatesRequest < TencentCloud::Common::AbstractModel
|
5107
|
+
|
5108
|
+
|
5109
|
+
def initialize()
|
5110
|
+
end
|
5111
|
+
|
5112
|
+
def deserialize(params)
|
5113
|
+
end
|
5114
|
+
end
|
5115
|
+
|
5116
|
+
# DescribeLiveTimeShiftTemplates返回参数结构体
|
5117
|
+
class DescribeLiveTimeShiftTemplatesResponse < TencentCloud::Common::AbstractModel
|
5118
|
+
# @param Templates: 直播时移模板信息。
|
5119
|
+
# @type Templates: Array
|
5120
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5121
|
+
# @type RequestId: String
|
5122
|
+
|
5123
|
+
attr_accessor :Templates, :RequestId
|
5124
|
+
|
5125
|
+
def initialize(templates=nil, requestid=nil)
|
5126
|
+
@Templates = templates
|
5127
|
+
@RequestId = requestid
|
5128
|
+
end
|
5129
|
+
|
5130
|
+
def deserialize(params)
|
5131
|
+
unless params['Templates'].nil?
|
5132
|
+
@Templates = []
|
5133
|
+
params['Templates'].each do |i|
|
5134
|
+
timeshifttemplate_tmp = TimeShiftTemplate.new
|
5135
|
+
timeshifttemplate_tmp.deserialize(i)
|
5136
|
+
@Templates << timeshifttemplate_tmp
|
5137
|
+
end
|
5138
|
+
end
|
5139
|
+
@RequestId = params['RequestId']
|
5140
|
+
end
|
5141
|
+
end
|
5142
|
+
|
4874
5143
|
# DescribeLiveTranscodeDetailInfo请求参数结构体
|
4875
5144
|
class DescribeLiveTranscodeDetailInfoRequest < TencentCloud::Common::AbstractModel
|
4876
5145
|
# @param PushDomain: 推流域名。
|
@@ -8088,6 +8357,79 @@ module TencentCloud
|
|
8088
8357
|
end
|
8089
8358
|
end
|
8090
8359
|
|
8360
|
+
# ModifyLiveTimeShiftTemplate请求参数结构体
|
8361
|
+
class ModifyLiveTimeShiftTemplateRequest < TencentCloud::Common::AbstractModel
|
8362
|
+
# @param TemplateId: 时移模板id。
|
8363
|
+
# @type TemplateId: Integer
|
8364
|
+
# @param TemplateName: 模板名称。
|
8365
|
+
# 仅支持中文、英文、数字、_、-。
|
8366
|
+
# @type TemplateName: String
|
8367
|
+
# @param Description: 描述信息。
|
8368
|
+
# 长度上限:1024字节。
|
8369
|
+
# 仅支持中文、英文、数字、_、-。
|
8370
|
+
# @type Description: String
|
8371
|
+
# @param Duration: 时移时长。
|
8372
|
+
# 单位:s。
|
8373
|
+
# @type Duration: Integer
|
8374
|
+
# @param ItemDuration: 分片时长。
|
8375
|
+
# 可取3-10。
|
8376
|
+
# 单位:s。
|
8377
|
+
# 默认值:5。
|
8378
|
+
# @type ItemDuration: Integer
|
8379
|
+
# @param RemoveWatermark: 是否去除水印。
|
8380
|
+
# 传true则将录制原始流。
|
8381
|
+
# 默认值:false。
|
8382
|
+
# @type RemoveWatermark: Boolean
|
8383
|
+
# @param TranscodeTemplateIds: 转码流id列表。
|
8384
|
+
# 此参数仅在 RemoveWatermark为false时生效。
|
8385
|
+
# @type TranscodeTemplateIds: Array
|
8386
|
+
# @param Area: 地域。
|
8387
|
+
# Mainland:中国大陆。
|
8388
|
+
# Overseas:海外及港澳台地区。
|
8389
|
+
# 默认值:Mainland。
|
8390
|
+
# @type Area: String
|
8391
|
+
|
8392
|
+
attr_accessor :TemplateId, :TemplateName, :Description, :Duration, :ItemDuration, :RemoveWatermark, :TranscodeTemplateIds, :Area
|
8393
|
+
|
8394
|
+
def initialize(templateid=nil, templatename=nil, description=nil, duration=nil, itemduration=nil, removewatermark=nil, transcodetemplateids=nil, area=nil)
|
8395
|
+
@TemplateId = templateid
|
8396
|
+
@TemplateName = templatename
|
8397
|
+
@Description = description
|
8398
|
+
@Duration = duration
|
8399
|
+
@ItemDuration = itemduration
|
8400
|
+
@RemoveWatermark = removewatermark
|
8401
|
+
@TranscodeTemplateIds = transcodetemplateids
|
8402
|
+
@Area = area
|
8403
|
+
end
|
8404
|
+
|
8405
|
+
def deserialize(params)
|
8406
|
+
@TemplateId = params['TemplateId']
|
8407
|
+
@TemplateName = params['TemplateName']
|
8408
|
+
@Description = params['Description']
|
8409
|
+
@Duration = params['Duration']
|
8410
|
+
@ItemDuration = params['ItemDuration']
|
8411
|
+
@RemoveWatermark = params['RemoveWatermark']
|
8412
|
+
@TranscodeTemplateIds = params['TranscodeTemplateIds']
|
8413
|
+
@Area = params['Area']
|
8414
|
+
end
|
8415
|
+
end
|
8416
|
+
|
8417
|
+
# ModifyLiveTimeShiftTemplate返回参数结构体
|
8418
|
+
class ModifyLiveTimeShiftTemplateResponse < TencentCloud::Common::AbstractModel
|
8419
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8420
|
+
# @type RequestId: String
|
8421
|
+
|
8422
|
+
attr_accessor :RequestId
|
8423
|
+
|
8424
|
+
def initialize(requestid=nil)
|
8425
|
+
@RequestId = requestid
|
8426
|
+
end
|
8427
|
+
|
8428
|
+
def deserialize(params)
|
8429
|
+
@RequestId = params['RequestId']
|
8430
|
+
end
|
8431
|
+
end
|
8432
|
+
|
8091
8433
|
# ModifyLiveTranscodeTemplate请求参数结构体
|
8092
8434
|
class ModifyLiveTranscodeTemplateRequest < TencentCloud::Common::AbstractModel
|
8093
8435
|
# @param TemplateId: 模板 Id。
|
@@ -10065,6 +10407,60 @@ module TencentCloud
|
|
10065
10407
|
end
|
10066
10408
|
end
|
10067
10409
|
|
10410
|
+
# 直播时移模板配置
|
10411
|
+
class TimeShiftTemplate < TencentCloud::Common::AbstractModel
|
10412
|
+
# @param TemplateName: 模板名称。
|
10413
|
+
# @type TemplateName: String
|
10414
|
+
# @param Duration: 时移时长。
|
10415
|
+
# 单位:秒。
|
10416
|
+
# @type Duration: Integer
|
10417
|
+
# @param ItemDuration: 分片时长。
|
10418
|
+
# 可取3-10。
|
10419
|
+
# 单位:s。
|
10420
|
+
# 默认值:5。
|
10421
|
+
# @type ItemDuration: Integer
|
10422
|
+
# @param TemplateId: 模板id。
|
10423
|
+
# @type TemplateId: Integer
|
10424
|
+
# @param Description: 模板描述。
|
10425
|
+
# @type Description: String
|
10426
|
+
# @param Area: 地域:
|
10427
|
+
# Mainland:中国大陆;
|
10428
|
+
# Overseas:海外及港澳台地区;
|
10429
|
+
# 默认值:Mainland。
|
10430
|
+
# @type Area: String
|
10431
|
+
# @param RemoveWatermark: 是否去除水印。
|
10432
|
+
# 为true则将录制原始流。
|
10433
|
+
# 默认值:false。
|
10434
|
+
# @type RemoveWatermark: Boolean
|
10435
|
+
# @param TranscodeTemplateIds: 转码流id列表。
|
10436
|
+
# 此参数仅在 RemoveWatermark为false时生效。
|
10437
|
+
# @type TranscodeTemplateIds: Array
|
10438
|
+
|
10439
|
+
attr_accessor :TemplateName, :Duration, :ItemDuration, :TemplateId, :Description, :Area, :RemoveWatermark, :TranscodeTemplateIds
|
10440
|
+
|
10441
|
+
def initialize(templatename=nil, duration=nil, itemduration=nil, templateid=nil, description=nil, area=nil, removewatermark=nil, transcodetemplateids=nil)
|
10442
|
+
@TemplateName = templatename
|
10443
|
+
@Duration = duration
|
10444
|
+
@ItemDuration = itemduration
|
10445
|
+
@TemplateId = templateid
|
10446
|
+
@Description = description
|
10447
|
+
@Area = area
|
10448
|
+
@RemoveWatermark = removewatermark
|
10449
|
+
@TranscodeTemplateIds = transcodetemplateids
|
10450
|
+
end
|
10451
|
+
|
10452
|
+
def deserialize(params)
|
10453
|
+
@TemplateName = params['TemplateName']
|
10454
|
+
@Duration = params['Duration']
|
10455
|
+
@ItemDuration = params['ItemDuration']
|
10456
|
+
@TemplateId = params['TemplateId']
|
10457
|
+
@Description = params['Description']
|
10458
|
+
@Area = params['Area']
|
10459
|
+
@RemoveWatermark = params['RemoveWatermark']
|
10460
|
+
@TranscodeTemplateIds = params['TranscodeTemplateIds']
|
10461
|
+
end
|
10462
|
+
end
|
10463
|
+
|
10068
10464
|
# 某个时间点的指标的数值是多少。
|
10069
10465
|
class TimeValue < TencentCloud::Common::AbstractModel
|
10070
10466
|
# @param Time: UTC 时间,时间格式:yyyy-mm-ddTHH:MM:SSZ。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-live
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.504
|
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-02-
|
11
|
+
date: 2023-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|