tencentcloud-sdk-live 3.0.379 → 3.0.382

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a9723cd74b89427bf29bcf7e50ca2700dfa5022
4
- data.tar.gz: 1a27a308236c7fa8cdfaaee9ea7ccaf29d59e63c
3
+ metadata.gz: a82265bf68a42edee8552ef4419fa1e2ed87e647
4
+ data.tar.gz: a2b4ab7ffe16da936f2a6751e0f5175c94aa7711
5
5
  SHA512:
6
- metadata.gz: 56b377487565436762e242b96bb92e770ce98f961451b6814710df11172d4b8e99a0bc127a34c9b0246d402ca9be8acac79304d4dc0095335d52b172e170951a
7
- data.tar.gz: 2f4dd82e1062d06f18580d201e485933f4332d68f4728b4e9150f02f1f84ad201399d7774f59870c47ff99d457f17e42e18638ff6152ce170a5e04a60ba51882
6
+ metadata.gz: 16610065cb4d8095b213567f61132baac1c09aadf7959b346974822584005949202bacac2a82075ffaa16a46c46156b2ef45e8d44ea2cfea3c466c4b1a8894c8
7
+ data.tar.gz: 86098601324b48ecfe4ef98fb8661049c341df23ac9ba18205a5c51db0c7f97e9c2ca8f572433b96b9b23b72f10197453fc15dee3ee473aa8acafb0eed9fe1ef
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.379
1
+ 3.0.382
@@ -1314,6 +1314,30 @@ module TencentCloud
1314
1314
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1315
1315
  end
1316
1316
 
1317
+ # 查询绑定证书的域名列表。
1318
+
1319
+ # @param request: Request instance for DescribeLiveDomainCertBindings.
1320
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeLiveDomainCertBindingsRequest`
1321
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeLiveDomainCertBindingsResponse`
1322
+ def DescribeLiveDomainCertBindings(request)
1323
+ body = send_request('DescribeLiveDomainCertBindings', request.serialize)
1324
+ response = JSON.parse(body)
1325
+ if response['Response'].key?('Error') == false
1326
+ model = DescribeLiveDomainCertBindingsResponse.new
1327
+ model.deserialize(response['Response'])
1328
+ model
1329
+ else
1330
+ code = response['Response']['Error']['Code']
1331
+ message = response['Response']['Error']['Message']
1332
+ reqid = response['Response']['RequestId']
1333
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1334
+ end
1335
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1336
+ raise e
1337
+ rescue StandardError => e
1338
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1339
+ end
1340
+
1317
1341
  # 查询实时的域名维度下行播放数据,由于数据处理有耗时,接口默认查询4分钟前的准实时数据。
1318
1342
 
1319
1343
  # @param request: Request instance for DescribeLiveDomainPlayInfoList.
@@ -2525,6 +2549,31 @@ module TencentCloud
2525
2549
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2526
2550
  end
2527
2551
 
2552
+ # 批量绑定证书对应的播放域名,并更新启用状态。
2553
+ # 新建自有证书将自动上传至腾讯云ssl。
2554
+
2555
+ # @param request: Request instance for ModifyLiveDomainCertBindings.
2556
+ # @type request: :class:`Tencentcloud::live::V20180801::ModifyLiveDomainCertBindingsRequest`
2557
+ # @rtype: :class:`Tencentcloud::live::V20180801::ModifyLiveDomainCertBindingsResponse`
2558
+ def ModifyLiveDomainCertBindings(request)
2559
+ body = send_request('ModifyLiveDomainCertBindings', request.serialize)
2560
+ response = JSON.parse(body)
2561
+ if response['Response'].key?('Error') == false
2562
+ model = ModifyLiveDomainCertBindingsResponse.new
2563
+ model.deserialize(response['Response'])
2564
+ model
2565
+ else
2566
+ code = response['Response']['Error']['Code']
2567
+ message = response['Response']['Error']['Message']
2568
+ reqid = response['Response']['RequestId']
2569
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2570
+ end
2571
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2572
+ raise e
2573
+ rescue StandardError => e
2574
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2575
+ end
2576
+
2528
2577
  # 设置直播域名 Referer 黑白名单。
2529
2578
  # 由于 Referer 信息包含在 http 协议中,在开启配置后,播放协议为 rtmp 或 WebRTC 不会校验 Referer 配置,仍可正常播放。如需配置 Referer 鉴权建议使用 http-flv 或 http-hls 协议播放。
2530
2579
 
@@ -209,6 +209,30 @@ module TencentCloud
209
209
  end
210
210
  end
211
211
 
212
+ # 批量操作域名相关接口,若其中个别域名操作失败将会跳过,相应的域名错误信息将统一汇总在此类型中
213
+ class BatchDomainOperateErrors < TencentCloud::Common::AbstractModel
214
+ # @param DomainName: 操作失败的域名。
215
+ # @type DomainName: String
216
+ # @param Code: API3.0错误码。
217
+ # @type Code: String
218
+ # @param Message: API3.0错误信息。
219
+ # @type Message: String
220
+
221
+ attr_accessor :DomainName, :Code, :Message
222
+
223
+ def initialize(domainname=nil, code=nil, message=nil)
224
+ @DomainName = domainname
225
+ @Code = code
226
+ @Message = message
227
+ end
228
+
229
+ def deserialize(params)
230
+ @DomainName = params['DomainName']
231
+ @Code = params['Code']
232
+ @Message = params['Message']
233
+ end
234
+ end
235
+
212
236
  # 海外分区直播带宽出参,分区信息
213
237
  class BillAreaInfo < TencentCloud::Common::AbstractModel
214
238
  # @param Name: 大区名称
@@ -3382,6 +3406,72 @@ module TencentCloud
3382
3406
  end
3383
3407
  end
3384
3408
 
3409
+ # DescribeLiveDomainCertBindings请求参数结构体
3410
+ class DescribeLiveDomainCertBindingsRequest < TencentCloud::Common::AbstractModel
3411
+ # @param DomainSearch: 要搜索的域名字符串。
3412
+ # @type DomainSearch: String
3413
+ # @param Offset: 记录行的位置,从0开始。默认0。
3414
+ # @type Offset: Integer
3415
+ # @param Length: 记录行的最大数目。默认50。
3416
+ # 若不传,则最多返回50条数据。
3417
+ # @type Length: Integer
3418
+ # @param DomainName: 要查询的单个域名。
3419
+ # @type DomainName: String
3420
+ # @param OrderBy: 可取值:
3421
+ # ExpireTimeAsc:证书过期时间升序。
3422
+ # ExpireTimeDesc:证书过期时间降序。
3423
+ # @type OrderBy: String
3424
+
3425
+ attr_accessor :DomainSearch, :Offset, :Length, :DomainName, :OrderBy
3426
+
3427
+ def initialize(domainsearch=nil, offset=nil, length=nil, domainname=nil, orderby=nil)
3428
+ @DomainSearch = domainsearch
3429
+ @Offset = offset
3430
+ @Length = length
3431
+ @DomainName = domainname
3432
+ @OrderBy = orderby
3433
+ end
3434
+
3435
+ def deserialize(params)
3436
+ @DomainSearch = params['DomainSearch']
3437
+ @Offset = params['Offset']
3438
+ @Length = params['Length']
3439
+ @DomainName = params['DomainName']
3440
+ @OrderBy = params['OrderBy']
3441
+ end
3442
+ end
3443
+
3444
+ # DescribeLiveDomainCertBindings返回参数结构体
3445
+ class DescribeLiveDomainCertBindingsResponse < TencentCloud::Common::AbstractModel
3446
+ # @param LiveDomainCertBindings: 有绑定证书的域名信息数组。
3447
+ # @type LiveDomainCertBindings: Array
3448
+ # @param TotalNum: 总的记录行数,便于分页。
3449
+ # @type TotalNum: Integer
3450
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3451
+ # @type RequestId: String
3452
+
3453
+ attr_accessor :LiveDomainCertBindings, :TotalNum, :RequestId
3454
+
3455
+ def initialize(livedomaincertbindings=nil, totalnum=nil, requestid=nil)
3456
+ @LiveDomainCertBindings = livedomaincertbindings
3457
+ @TotalNum = totalnum
3458
+ @RequestId = requestid
3459
+ end
3460
+
3461
+ def deserialize(params)
3462
+ unless params['LiveDomainCertBindings'].nil?
3463
+ @LiveDomainCertBindings = []
3464
+ params['LiveDomainCertBindings'].each do |i|
3465
+ livedomaincertbindings_tmp = LiveDomainCertBindings.new
3466
+ livedomaincertbindings_tmp.deserialize(i)
3467
+ @LiveDomainCertBindings << livedomaincertbindings_tmp
3468
+ end
3469
+ end
3470
+ @TotalNum = params['TotalNum']
3471
+ @RequestId = params['RequestId']
3472
+ end
3473
+ end
3474
+
3385
3475
  # DescribeLiveDomainCert请求参数结构体
3386
3476
  class DescribeLiveDomainCertRequest < TencentCloud::Common::AbstractModel
3387
3477
  # @param DomainName: 播放域名。
@@ -6866,6 +6956,78 @@ module TencentCloud
6866
6956
  end
6867
6957
  end
6868
6958
 
6959
+ # 用作批量绑定域名和证书。
6960
+ class LiveCertDomainInfo < TencentCloud::Common::AbstractModel
6961
+ # @param DomainName: 域名。
6962
+ # @type DomainName: String
6963
+ # @param Status: 是否启用域名的https规则。
6964
+ # 1:启用
6965
+ # 0:禁用
6966
+ # -1:保持不变
6967
+ # @type Status: Integer
6968
+
6969
+ attr_accessor :DomainName, :Status
6970
+
6971
+ def initialize(domainname=nil, status=nil)
6972
+ @DomainName = domainname
6973
+ @Status = status
6974
+ end
6975
+
6976
+ def deserialize(params)
6977
+ @DomainName = params['DomainName']
6978
+ @Status = params['Status']
6979
+ end
6980
+ end
6981
+
6982
+ # DescribeLiveDomainCertBindings, DescribeLiveDomainCertBindingsGray接口返回的域名证书信息
6983
+ class LiveDomainCertBindings < TencentCloud::Common::AbstractModel
6984
+ # @param DomainName: 域名。
6985
+ # @type DomainName: String
6986
+ # @param CertificateAlias: 证书备注。与CertName同义。
6987
+ # @type CertificateAlias: String
6988
+ # @param CertType: 证书类型。
6989
+ # 0:自有证书
6990
+ # 1:腾讯云ssl托管证书
6991
+ # @type CertType: Integer
6992
+ # @param Status: https状态。
6993
+ # 1:已开启。
6994
+ # 0:已关闭。
6995
+ # @type Status: Integer
6996
+ # @param CertExpireTime: 证书过期时间。
6997
+ # @type CertExpireTime: String
6998
+ # @param CertId: 证书Id。
6999
+ # @type CertId: Integer
7000
+ # @param CloudCertId: 腾讯云ssl的证书Id。
7001
+ # @type CloudCertId: String
7002
+ # @param UpdateTime: 规则最后更新时间。
7003
+ # 注意:此字段可能返回 null,表示取不到有效值。
7004
+ # @type UpdateTime: String
7005
+
7006
+ attr_accessor :DomainName, :CertificateAlias, :CertType, :Status, :CertExpireTime, :CertId, :CloudCertId, :UpdateTime
7007
+
7008
+ def initialize(domainname=nil, certificatealias=nil, certtype=nil, status=nil, certexpiretime=nil, certid=nil, cloudcertid=nil, updatetime=nil)
7009
+ @DomainName = domainname
7010
+ @CertificateAlias = certificatealias
7011
+ @CertType = certtype
7012
+ @Status = status
7013
+ @CertExpireTime = certexpiretime
7014
+ @CertId = certid
7015
+ @CloudCertId = cloudcertid
7016
+ @UpdateTime = updatetime
7017
+ end
7018
+
7019
+ def deserialize(params)
7020
+ @DomainName = params['DomainName']
7021
+ @CertificateAlias = params['CertificateAlias']
7022
+ @CertType = params['CertType']
7023
+ @Status = params['Status']
7024
+ @CertExpireTime = params['CertExpireTime']
7025
+ @CertId = params['CertId']
7026
+ @CloudCertId = params['CloudCertId']
7027
+ @UpdateTime = params['UpdateTime']
7028
+ end
7029
+ end
7030
+
6869
7031
  # 直播包信息。
6870
7032
  class LivePackageInfo < TencentCloud::Common::AbstractModel
6871
7033
  # @param Id: 包 ID。
@@ -7021,6 +7183,81 @@ module TencentCloud
7021
7183
  end
7022
7184
  end
7023
7185
 
7186
+ # ModifyLiveDomainCertBindings请求参数结构体
7187
+ class ModifyLiveDomainCertBindingsRequest < TencentCloud::Common::AbstractModel
7188
+ # @param DomainInfos: 要绑定证书的播放域名/状态 信息列表。
7189
+ # 如果CloudCertId和证书公钥私钥对均不传,且域名列表已有绑定规则,只批量更新域名https规则的启用状态,并把未上传至腾讯云ssl的已有自有证书上传。
7190
+ # @type DomainInfos: Array
7191
+ # @param CloudCertId: 腾讯云ssl的证书Id。
7192
+ # 见 https://cloud.tencent.com/document/api/400/41665
7193
+ # @type CloudCertId: String
7194
+ # @param CertificatePublicKey: 证书公钥。
7195
+ # CloudCertId和公钥私钥对二选一,若CloudCertId将会舍弃公钥和私钥参数,否则将自动先把公钥私钥对上传至ssl新建证书,并使用上传成功后返回的CloudCertId。
7196
+ # @type CertificatePublicKey: String
7197
+ # @param CertificatePrivateKey: 证书私钥。
7198
+ # CloudCertId和公钥私钥对二选一,若传CloudCertId将会舍弃公钥和私钥参数,否则将自动先把公钥私钥对上传至ssl新建证书,并使用上传成功后返回的CloudCertId。
7199
+ # @type CertificatePrivateKey: String
7200
+ # @param CertificateAlias: 上传至ssl证书中心的备注信息,只有新建证书时有效。传CloudCertId时会忽略。
7201
+ # @type CertificateAlias: String
7202
+
7203
+ attr_accessor :DomainInfos, :CloudCertId, :CertificatePublicKey, :CertificatePrivateKey, :CertificateAlias
7204
+
7205
+ def initialize(domaininfos=nil, cloudcertid=nil, certificatepublickey=nil, certificateprivatekey=nil, certificatealias=nil)
7206
+ @DomainInfos = domaininfos
7207
+ @CloudCertId = cloudcertid
7208
+ @CertificatePublicKey = certificatepublickey
7209
+ @CertificatePrivateKey = certificateprivatekey
7210
+ @CertificateAlias = certificatealias
7211
+ end
7212
+
7213
+ def deserialize(params)
7214
+ unless params['DomainInfos'].nil?
7215
+ @DomainInfos = []
7216
+ params['DomainInfos'].each do |i|
7217
+ livecertdomaininfo_tmp = LiveCertDomainInfo.new
7218
+ livecertdomaininfo_tmp.deserialize(i)
7219
+ @DomainInfos << livecertdomaininfo_tmp
7220
+ end
7221
+ end
7222
+ @CloudCertId = params['CloudCertId']
7223
+ @CertificatePublicKey = params['CertificatePublicKey']
7224
+ @CertificatePrivateKey = params['CertificatePrivateKey']
7225
+ @CertificateAlias = params['CertificateAlias']
7226
+ end
7227
+ end
7228
+
7229
+ # ModifyLiveDomainCertBindings返回参数结构体
7230
+ class ModifyLiveDomainCertBindingsResponse < TencentCloud::Common::AbstractModel
7231
+ # @param MismatchedDomainNames: DomainNames 入参中,与证书不匹配的域名列表,将会跳过处理。
7232
+ # @type MismatchedDomainNames: Array
7233
+ # @param Errors: 操作失败的域名及错误码,错误信息,包括MismatchedDomainNames中的域名。
7234
+ # 注意:此字段可能返回 null,表示取不到有效值。
7235
+ # @type Errors: Array
7236
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7237
+ # @type RequestId: String
7238
+
7239
+ attr_accessor :MismatchedDomainNames, :Errors, :RequestId
7240
+
7241
+ def initialize(mismatcheddomainnames=nil, errors=nil, requestid=nil)
7242
+ @MismatchedDomainNames = mismatcheddomainnames
7243
+ @Errors = errors
7244
+ @RequestId = requestid
7245
+ end
7246
+
7247
+ def deserialize(params)
7248
+ @MismatchedDomainNames = params['MismatchedDomainNames']
7249
+ unless params['Errors'].nil?
7250
+ @Errors = []
7251
+ params['Errors'].each do |i|
7252
+ batchdomainoperateerrors_tmp = BatchDomainOperateErrors.new
7253
+ batchdomainoperateerrors_tmp.deserialize(i)
7254
+ @Errors << batchdomainoperateerrors_tmp
7255
+ end
7256
+ end
7257
+ @RequestId = params['RequestId']
7258
+ end
7259
+ end
7260
+
7024
7261
  # ModifyLiveDomainReferer请求参数结构体
7025
7262
  class ModifyLiveDomainRefererRequest < TencentCloud::Common::AbstractModel
7026
7263
  # @param DomainName: 播放域名。
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.379
4
+ version: 3.0.382
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common