tencentcloud-sdk-live 3.0.380 → 3.0.381

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: 4a7e6109d45acaf368bbeff2f4a0c7abfeec20e0
4
- data.tar.gz: dd0f9e9800b16e96e9ff576276cc3350b578f3e8
3
+ metadata.gz: ef2b65b3ec6f21642d537aacec0a118a28161d6b
4
+ data.tar.gz: 012d81b3f5c11e6eb7a2a5068725381c7c417e29
5
5
  SHA512:
6
- metadata.gz: 14e631b59e19e8abf34ec0fcc167dcb7ec424b7f07adcb60b23c4f1985e7a0f16c68dd461c43d2f70507fda894e9b33e6dfeaac7e3f6caf969d9b78982a26629
7
- data.tar.gz: 35c02d78b84fd2f0ad8c20b59c5a652b23940068cbbe059c19900ff40d9758f6033ae08b723c52df217ecb7dcd72d44637f1232775000b4f99f7e3e5cef5e8a2
6
+ metadata.gz: 96f010f7da1a57502886227d01d64c015260e49a274b033bdc2abc10d16b35b4ab216f596ec1f7a4b1adfcd25795a56c09e736ab52511622c9e694166bff729d
7
+ data.tar.gz: 196c52f8fe0e7877c54813f65ddc3e63ed5ca6fc7c3931cb0003ecd666e0efaa2a5587f6b89cc049aa7c6a943ee60b41b3d9e9f7ef8dd8475b7a45ba0038ffe5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.380
1
+ 3.0.381
@@ -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
 
@@ -3382,6 +3382,57 @@ module TencentCloud
3382
3382
  end
3383
3383
  end
3384
3384
 
3385
+ # DescribeLiveDomainCertBindings请求参数结构体
3386
+ class DescribeLiveDomainCertBindingsRequest < TencentCloud::Common::AbstractModel
3387
+ # @param DomainSearch: 要搜索的域名字符串。
3388
+ # @type DomainSearch: String
3389
+ # @param Offset: 记录行的位置,从0开始。默认0。
3390
+ # @type Offset: Integer
3391
+ # @param Length: 记录行的最大数目。默认50。
3392
+ # 若不传,则最多返回50条数据。
3393
+ # @type Length: Integer
3394
+ # @param DomainName: 要查询的单个域名。
3395
+ # @type DomainName: String
3396
+ # @param OrderBy: 可取值:
3397
+ # ExpireTimeAsc:证书过期时间降序。
3398
+ # ExpireTimeDesc:证书过期时间升序。
3399
+ # @type OrderBy: String
3400
+
3401
+ attr_accessor :DomainSearch, :Offset, :Length, :DomainName, :OrderBy
3402
+
3403
+ def initialize(domainsearch=nil, offset=nil, length=nil, domainname=nil, orderby=nil)
3404
+ @DomainSearch = domainsearch
3405
+ @Offset = offset
3406
+ @Length = length
3407
+ @DomainName = domainname
3408
+ @OrderBy = orderby
3409
+ end
3410
+
3411
+ def deserialize(params)
3412
+ @DomainSearch = params['DomainSearch']
3413
+ @Offset = params['Offset']
3414
+ @Length = params['Length']
3415
+ @DomainName = params['DomainName']
3416
+ @OrderBy = params['OrderBy']
3417
+ end
3418
+ end
3419
+
3420
+ # DescribeLiveDomainCertBindings返回参数结构体
3421
+ class DescribeLiveDomainCertBindingsResponse < TencentCloud::Common::AbstractModel
3422
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3423
+ # @type RequestId: String
3424
+
3425
+ attr_accessor :RequestId
3426
+
3427
+ def initialize(requestid=nil)
3428
+ @RequestId = requestid
3429
+ end
3430
+
3431
+ def deserialize(params)
3432
+ @RequestId = params['RequestId']
3433
+ end
3434
+ end
3435
+
3385
3436
  # DescribeLiveDomainCert请求参数结构体
3386
3437
  class DescribeLiveDomainCertRequest < TencentCloud::Common::AbstractModel
3387
3438
  # @param DomainName: 播放域名。
@@ -6866,6 +6917,29 @@ module TencentCloud
6866
6917
  end
6867
6918
  end
6868
6919
 
6920
+ # 用作批量绑定域名和证书。
6921
+ class LiveCertDomainInfo < TencentCloud::Common::AbstractModel
6922
+ # @param DomainName: 域名。
6923
+ # @type DomainName: String
6924
+ # @param Status: 是否启用域名的https规则。
6925
+ # 1:启用
6926
+ # 0:禁用
6927
+ # -1:保持不变
6928
+ # @type Status: Integer
6929
+
6930
+ attr_accessor :DomainName, :Status
6931
+
6932
+ def initialize(domainname=nil, status=nil)
6933
+ @DomainName = domainname
6934
+ @Status = status
6935
+ end
6936
+
6937
+ def deserialize(params)
6938
+ @DomainName = params['DomainName']
6939
+ @Status = params['Status']
6940
+ end
6941
+ end
6942
+
6869
6943
  # 直播包信息。
6870
6944
  class LivePackageInfo < TencentCloud::Common::AbstractModel
6871
6945
  # @param Id: 包 ID。
@@ -7021,6 +7095,69 @@ module TencentCloud
7021
7095
  end
7022
7096
  end
7023
7097
 
7098
+ # ModifyLiveDomainCertBindings请求参数结构体
7099
+ class ModifyLiveDomainCertBindingsRequest < TencentCloud::Common::AbstractModel
7100
+ # @param DomainInfos: 要绑定证书的播放域名/状态 信息列表。
7101
+ # 如果CloudCertId和证书公钥私钥对均不传,且域名列表已有绑定规则,只批量更新域名https规则的启用状态,并把未上传至腾讯云ssl的已有自有证书上传。
7102
+ # @type DomainInfos: Array
7103
+ # @param CloudCertId: 腾讯云ssl的证书Id。
7104
+ # 见 https://cloud.tencent.com/document/api/400/41665
7105
+ # @type CloudCertId: String
7106
+ # @param CertificatePublicKey: 证书公钥。
7107
+ # CloudCertId和公钥私钥对二选一,若CloudCertId将会舍弃公钥和私钥参数,否则将自动先把公钥私钥对上传至ssl新建证书,并使用上传成功后返回的CloudCertId。
7108
+ # @type CertificatePublicKey: String
7109
+ # @param CertificatePrivateKey: 证书私钥。
7110
+ # CloudCertId和公钥私钥对二选一,若传CloudCertId将会舍弃公钥和私钥参数,否则将自动先把公钥私钥对上传至ssl新建证书,并使用上传成功后返回的CloudCertId。
7111
+ # @type CertificatePrivateKey: String
7112
+ # @param CertificateAlias: 上传至ssl证书中心的备注信息,只有新建证书时有效。传CloudCertId时会忽略。
7113
+ # @type CertificateAlias: String
7114
+
7115
+ attr_accessor :DomainInfos, :CloudCertId, :CertificatePublicKey, :CertificatePrivateKey, :CertificateAlias
7116
+
7117
+ def initialize(domaininfos=nil, cloudcertid=nil, certificatepublickey=nil, certificateprivatekey=nil, certificatealias=nil)
7118
+ @DomainInfos = domaininfos
7119
+ @CloudCertId = cloudcertid
7120
+ @CertificatePublicKey = certificatepublickey
7121
+ @CertificatePrivateKey = certificateprivatekey
7122
+ @CertificateAlias = certificatealias
7123
+ end
7124
+
7125
+ def deserialize(params)
7126
+ unless params['DomainInfos'].nil?
7127
+ @DomainInfos = []
7128
+ params['DomainInfos'].each do |i|
7129
+ livecertdomaininfo_tmp = LiveCertDomainInfo.new
7130
+ livecertdomaininfo_tmp.deserialize(i)
7131
+ @DomainInfos << livecertdomaininfo_tmp
7132
+ end
7133
+ end
7134
+ @CloudCertId = params['CloudCertId']
7135
+ @CertificatePublicKey = params['CertificatePublicKey']
7136
+ @CertificatePrivateKey = params['CertificatePrivateKey']
7137
+ @CertificateAlias = params['CertificateAlias']
7138
+ end
7139
+ end
7140
+
7141
+ # ModifyLiveDomainCertBindings返回参数结构体
7142
+ class ModifyLiveDomainCertBindingsResponse < TencentCloud::Common::AbstractModel
7143
+ # @param MismatchedDomainNames: DomainNames 入参中,与证书不匹配的域名列表,将会跳过处理。
7144
+ # @type MismatchedDomainNames: Array
7145
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7146
+ # @type RequestId: String
7147
+
7148
+ attr_accessor :MismatchedDomainNames, :RequestId
7149
+
7150
+ def initialize(mismatcheddomainnames=nil, requestid=nil)
7151
+ @MismatchedDomainNames = mismatcheddomainnames
7152
+ @RequestId = requestid
7153
+ end
7154
+
7155
+ def deserialize(params)
7156
+ @MismatchedDomainNames = params['MismatchedDomainNames']
7157
+ @RequestId = params['RequestId']
7158
+ end
7159
+ end
7160
+
7024
7161
  # ModifyLiveDomainReferer请求参数结构体
7025
7162
  class ModifyLiveDomainRefererRequest < TencentCloud::Common::AbstractModel
7026
7163
  # @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.380
4
+ version: 3.0.381
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-04 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common