tencentcloud-sdk-live 3.0.677 → 3.0.679

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: 582bc1987f13a9c992af2a48a72f802b6eadf0eb
4
- data.tar.gz: 1f399af5ff5bc5ef196d920cbd4c3857b9663a27
3
+ metadata.gz: 2be8bf27280f64fbecff800dd6b7d6d6d43c8eb7
4
+ data.tar.gz: 85f2c2376f8f353ac563614f03d5ec2c80e06395
5
5
  SHA512:
6
- metadata.gz: 4fe8cd77da557a9000507649082f430b21320642f0ee25ebd932dbf8c0b36b943df725c3625fc02ddfd150c31c5c1b08c36ad54cb11a832ad4b31cd1a86efd73
7
- data.tar.gz: a1dcc48c87f608ca9facf955137b1469b5973693c4720baab038b0039d8869743369181429254ff8cf0fd65902fc7122242564d7995147d6f02ece665cb487d9
6
+ metadata.gz: 7fea3b1b6704123fc5def57391dc83cee523638e5a260f7331f66be13594e6abda640e6e1a42829b76958416db43147a45b2ce0f6d0f943dadf6faa925bc983e
7
+ data.tar.gz: b064deb4835b43cb728a111c8378f5f15a004b6be0784dd6350a579d21bd04dccb62f1fff66cda1b7ee2d103c47c78165e9f18b7953637f466218b0e023c769b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.677
1
+ 3.0.679
@@ -1243,6 +1243,34 @@ module TencentCloud
1243
1243
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1244
1244
  end
1245
1245
 
1246
+ # 返回正在直播中的流列表。适用于推流成功后查询在线流信息。
1247
+
1248
+ # 注意:
1249
+ # 1. 该接口仅提供辅助查询在线流列表功能,业务重要场景不可强依赖该接口。
1250
+ # 2. 该接口仅适用于流数少于2万路的情况,对于流数较大用户请联系售后。
1251
+
1252
+ # @param request: Request instance for DescribeBackupStreamList.
1253
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeBackupStreamListRequest`
1254
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeBackupStreamListResponse`
1255
+ def DescribeBackupStreamList(request)
1256
+ body = send_request('DescribeBackupStreamList', request.serialize)
1257
+ response = JSON.parse(body)
1258
+ if response['Response'].key?('Error') == false
1259
+ model = DescribeBackupStreamListResponse.new
1260
+ model.deserialize(response['Response'])
1261
+ model
1262
+ else
1263
+ code = response['Response']['Error']['Code']
1264
+ message = response['Response']['Error']['Message']
1265
+ reqid = response['Response']['RequestId']
1266
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1267
+ end
1268
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1269
+ raise e
1270
+ rescue StandardError => e
1271
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1272
+ end
1273
+
1246
1274
  # 直播播放带宽和流量数据查询。
1247
1275
 
1248
1276
  # @param request: Request instance for DescribeBillBandwidthAndFluxList.
@@ -3091,6 +3119,31 @@ module TencentCloud
3091
3119
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3092
3120
  end
3093
3121
 
3122
+ # 启用择优调度。
3123
+ # 注意:流维度的择优调度,当主备流结束后自动失效。
3124
+
3125
+ # @param request: Request instance for EnableOptimalSwitching.
3126
+ # @type request: :class:`Tencentcloud::live::V20180801::EnableOptimalSwitchingRequest`
3127
+ # @rtype: :class:`Tencentcloud::live::V20180801::EnableOptimalSwitchingResponse`
3128
+ def EnableOptimalSwitching(request)
3129
+ body = send_request('EnableOptimalSwitching', request.serialize)
3130
+ response = JSON.parse(body)
3131
+ if response['Response'].key?('Error') == false
3132
+ model = EnableOptimalSwitchingResponse.new
3133
+ model.deserialize(response['Response'])
3134
+ model
3135
+ else
3136
+ code = response['Response']['Error']['Code']
3137
+ message = response['Response']['Error']['Message']
3138
+ reqid = response['Response']['RequestId']
3139
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3140
+ end
3141
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3142
+ raise e
3143
+ rescue StandardError => e
3144
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3145
+ end
3146
+
3094
3147
  # 停止使用某个直播域名。
3095
3148
 
3096
3149
  # @param request: Request instance for ForbidLiveDomain.
@@ -3701,6 +3754,30 @@ module TencentCloud
3701
3754
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3702
3755
  end
3703
3756
 
3757
+ # 调用该接口实现切换当前播放所使用的主备流。
3758
+
3759
+ # @param request: Request instance for SwitchBackupStream.
3760
+ # @type request: :class:`Tencentcloud::live::V20180801::SwitchBackupStreamRequest`
3761
+ # @rtype: :class:`Tencentcloud::live::V20180801::SwitchBackupStreamResponse`
3762
+ def SwitchBackupStream(request)
3763
+ body = send_request('SwitchBackupStream', request.serialize)
3764
+ response = JSON.parse(body)
3765
+ if response['Response'].key?('Error') == false
3766
+ model = SwitchBackupStreamResponse.new
3767
+ model.deserialize(response['Response'])
3768
+ model
3769
+ else
3770
+ code = response['Response']['Error']['Code']
3771
+ message = response['Response']['Error']['Message']
3772
+ reqid = response['Response']['RequestId']
3773
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3774
+ end
3775
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3776
+ raise e
3777
+ rescue StandardError => e
3778
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3779
+ end
3780
+
3704
3781
  # 解绑域名证书
3705
3782
 
3706
3783
  # @param request: Request instance for UnBindLiveDomainCert.
@@ -260,6 +260,96 @@ module TencentCloud
260
260
  end
261
261
  end
262
262
 
263
+ # 主备流详细信息。
264
+ class BackupStreamDetailData < TencentCloud::Common::AbstractModel
265
+ # @param DomainName: 推流域名。
266
+ # 注意:此字段可能返回 null,表示取不到有效值。
267
+ # @type DomainName: String
268
+ # @param AppName: 推流路径。
269
+ # 注意:此字段可能返回 null,表示取不到有效值。
270
+ # @type AppName: String
271
+ # @param PublishTime: UTC 格式,例如:2018-06-29T19:00:00Z。
272
+ # 注意:和北京时间相差8小时。
273
+ # 注意:此字段可能返回 null,表示取不到有效值。
274
+ # @type PublishTime: String
275
+ # @param UpstreamSequence: 推流唯一标识。
276
+ # 注意:此字段可能返回 null,表示取不到有效值。
277
+ # @type UpstreamSequence: String
278
+ # @param SourceFrom: 推流来源。示例:
279
+ # 直推流;
280
+ # 拉流转推(1234);
281
+ # 注意:拉流转推来源括号中为拉流转推的任务
282
+ # ID。
283
+ # 注意:此字段可能返回 null,表示取不到有效值。
284
+ # @type SourceFrom: String
285
+ # @param MasterFlag: 主备标识。
286
+ # 当前流为主流:1,
287
+ # 当前流为备流: 0。
288
+ # 注意:此字段可能返回 null,表示取不到有效值。
289
+ # @type MasterFlag: Integer
290
+
291
+ attr_accessor :DomainName, :AppName, :PublishTime, :UpstreamSequence, :SourceFrom, :MasterFlag
292
+
293
+ def initialize(domainname=nil, appname=nil, publishtime=nil, upstreamsequence=nil, sourcefrom=nil, masterflag=nil)
294
+ @DomainName = domainname
295
+ @AppName = appname
296
+ @PublishTime = publishtime
297
+ @UpstreamSequence = upstreamsequence
298
+ @SourceFrom = sourcefrom
299
+ @MasterFlag = masterflag
300
+ end
301
+
302
+ def deserialize(params)
303
+ @DomainName = params['DomainName']
304
+ @AppName = params['AppName']
305
+ @PublishTime = params['PublishTime']
306
+ @UpstreamSequence = params['UpstreamSequence']
307
+ @SourceFrom = params['SourceFrom']
308
+ @MasterFlag = params['MasterFlag']
309
+ end
310
+ end
311
+
312
+ # 主备流分组信息。
313
+ class BackupStreamGroupInfo < TencentCloud::Common::AbstractModel
314
+ # @param StreamName: 流名称。
315
+ # 注意:此字段可能返回 null,表示取不到有效值。
316
+ # @type StreamName: String
317
+ # @param BackupList: 主备流信息。
318
+ # 注意:此字段可能返回 null,表示取不到有效值。
319
+ # @type BackupList: Array
320
+ # @param OptimalEnable: 是否对该流开启了择优调度。
321
+ # 0 - 未开启。
322
+ # 1 - 已开启。
323
+ # 注意:此字段可能返回 null,表示取不到有效值。
324
+ # @type OptimalEnable: Integer
325
+ # @param HostGroupName: 域名分组的分组名称。
326
+ # 注意:此字段可能返回 null,表示取不到有效值。
327
+ # @type HostGroupName: String
328
+
329
+ attr_accessor :StreamName, :BackupList, :OptimalEnable, :HostGroupName
330
+
331
+ def initialize(streamname=nil, backuplist=nil, optimalenable=nil, hostgroupname=nil)
332
+ @StreamName = streamname
333
+ @BackupList = backuplist
334
+ @OptimalEnable = optimalenable
335
+ @HostGroupName = hostgroupname
336
+ end
337
+
338
+ def deserialize(params)
339
+ @StreamName = params['StreamName']
340
+ unless params['BackupList'].nil?
341
+ @BackupList = []
342
+ params['BackupList'].each do |i|
343
+ backupstreamdetaildata_tmp = BackupStreamDetailData.new
344
+ backupstreamdetaildata_tmp.deserialize(i)
345
+ @BackupList << backupstreamdetaildata_tmp
346
+ end
347
+ end
348
+ @OptimalEnable = params['OptimalEnable']
349
+ @HostGroupName = params['HostGroupName']
350
+ end
351
+ end
352
+
263
353
  # 带宽信息
264
354
  class BandwidthInfo < TencentCloud::Common::AbstractModel
265
355
  # @param Time: 返回格式:
@@ -3437,6 +3527,50 @@ module TencentCloud
3437
3527
  end
3438
3528
  end
3439
3529
 
3530
+ # DescribeBackupStreamList请求参数结构体
3531
+ class DescribeBackupStreamListRequest < TencentCloud::Common::AbstractModel
3532
+ # @param StreamName: 流名称,用于精确查询。
3533
+ # @type StreamName: String
3534
+
3535
+ attr_accessor :StreamName
3536
+
3537
+ def initialize(streamname=nil)
3538
+ @StreamName = streamname
3539
+ end
3540
+
3541
+ def deserialize(params)
3542
+ @StreamName = params['StreamName']
3543
+ end
3544
+ end
3545
+
3546
+ # DescribeBackupStreamList返回参数结构体
3547
+ class DescribeBackupStreamListResponse < TencentCloud::Common::AbstractModel
3548
+ # @param StreamInfoList: 主备流分组信息列表。
3549
+ # 注意:此字段可能返回 null,表示取不到有效值。
3550
+ # @type StreamInfoList: Array
3551
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3552
+ # @type RequestId: String
3553
+
3554
+ attr_accessor :StreamInfoList, :RequestId
3555
+
3556
+ def initialize(streaminfolist=nil, requestid=nil)
3557
+ @StreamInfoList = streaminfolist
3558
+ @RequestId = requestid
3559
+ end
3560
+
3561
+ def deserialize(params)
3562
+ unless params['StreamInfoList'].nil?
3563
+ @StreamInfoList = []
3564
+ params['StreamInfoList'].each do |i|
3565
+ backupstreamgroupinfo_tmp = BackupStreamGroupInfo.new
3566
+ backupstreamgroupinfo_tmp.deserialize(i)
3567
+ @StreamInfoList << backupstreamgroupinfo_tmp
3568
+ end
3569
+ end
3570
+ @RequestId = params['RequestId']
3571
+ end
3572
+ end
3573
+
3440
3574
  # DescribeBillBandwidthAndFluxList请求参数结构体
3441
3575
  class DescribeBillBandwidthAndFluxListRequest < TencentCloud::Common::AbstractModel
3442
3576
  # @param StartTime: 起始时间点,接口查询支持两种时间格式:
@@ -8134,6 +8268,48 @@ module TencentCloud
8134
8268
  end
8135
8269
  end
8136
8270
 
8271
+ # EnableOptimalSwitching请求参数结构体
8272
+ class EnableOptimalSwitchingRequest < TencentCloud::Common::AbstractModel
8273
+ # @param StreamName: 针对该流 ID 启用择优调度。
8274
+ # @type StreamName: String
8275
+ # @param EnableSwitch: 启用开关,默认为启用。
8276
+ # 0 - 禁用。
8277
+ # 1 - 启用。
8278
+ # @type EnableSwitch: Integer
8279
+ # @param HostGroupName: 要启用自动择优的流所属的域名分组名称。
8280
+ # @type HostGroupName: String
8281
+
8282
+ attr_accessor :StreamName, :EnableSwitch, :HostGroupName
8283
+
8284
+ def initialize(streamname=nil, enableswitch=nil, hostgroupname=nil)
8285
+ @StreamName = streamname
8286
+ @EnableSwitch = enableswitch
8287
+ @HostGroupName = hostgroupname
8288
+ end
8289
+
8290
+ def deserialize(params)
8291
+ @StreamName = params['StreamName']
8292
+ @EnableSwitch = params['EnableSwitch']
8293
+ @HostGroupName = params['HostGroupName']
8294
+ end
8295
+ end
8296
+
8297
+ # EnableOptimalSwitching返回参数结构体
8298
+ class EnableOptimalSwitchingResponse < TencentCloud::Common::AbstractModel
8299
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8300
+ # @type RequestId: String
8301
+
8302
+ attr_accessor :RequestId
8303
+
8304
+ def initialize(requestid=nil)
8305
+ @RequestId = requestid
8306
+ end
8307
+
8308
+ def deserialize(params)
8309
+ @RequestId = params['RequestId']
8310
+ end
8311
+ end
8312
+
8137
8313
  # flv格式特殊配置
8138
8314
  class FlvSpecialParam < TencentCloud::Common::AbstractModel
8139
8315
  # @param UploadInRecording: 是否开启边录边传,仅flv格式有效。
@@ -11729,6 +11905,50 @@ module TencentCloud
11729
11905
  end
11730
11906
  end
11731
11907
 
11908
+ # SwitchBackupStream请求参数结构体
11909
+ class SwitchBackupStreamRequest < TencentCloud::Common::AbstractModel
11910
+ # @param PushDomainName: 推流域名。
11911
+ # @type PushDomainName: String
11912
+ # @param AppName: 应用名称。
11913
+ # @type AppName: String
11914
+ # @param StreamName: 流名称。
11915
+ # @type StreamName: String
11916
+ # @param UpstreamSequence: 查询接口获取到该流所有在推的上行 Sequence。指定要切到的目标上行 Sequence。
11917
+ # @type UpstreamSequence: String
11918
+
11919
+ attr_accessor :PushDomainName, :AppName, :StreamName, :UpstreamSequence
11920
+
11921
+ def initialize(pushdomainname=nil, appname=nil, streamname=nil, upstreamsequence=nil)
11922
+ @PushDomainName = pushdomainname
11923
+ @AppName = appname
11924
+ @StreamName = streamname
11925
+ @UpstreamSequence = upstreamsequence
11926
+ end
11927
+
11928
+ def deserialize(params)
11929
+ @PushDomainName = params['PushDomainName']
11930
+ @AppName = params['AppName']
11931
+ @StreamName = params['StreamName']
11932
+ @UpstreamSequence = params['UpstreamSequence']
11933
+ end
11934
+ end
11935
+
11936
+ # SwitchBackupStream返回参数结构体
11937
+ class SwitchBackupStreamResponse < TencentCloud::Common::AbstractModel
11938
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11939
+ # @type RequestId: String
11940
+
11941
+ attr_accessor :RequestId
11942
+
11943
+ def initialize(requestid=nil)
11944
+ @RequestId = requestid
11945
+ end
11946
+
11947
+ def deserialize(params)
11948
+ @RequestId = params['RequestId']
11949
+ end
11950
+ end
11951
+
11732
11952
  # 直播拉流任务状态信息。
11733
11953
  class TaskStatusInfo < TencentCloud::Common::AbstractModel
11734
11954
  # @param FileUrl: 当前使用的源 URL。
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.677
4
+ version: 3.0.679
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-10-16 00:00:00.000000000 Z
11
+ date: 2023-10-18 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-live.rb
37
- - lib/v20180801/client.rb
38
36
  - lib/v20180801/models.rb
37
+ - lib/v20180801/client.rb
38
+ - lib/tencentcloud-sdk-live.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: