tencentcloud-sdk-drm 3.0.695 → 3.0.697

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: aee2793abadaacf9eef3c43add6e300aacf44d92
4
- data.tar.gz: 31e4f76d630718fe4677171b6da37ac29fe8febf
3
+ metadata.gz: 78176ac86759ecce722dfc4ca9241bb9e2748610
4
+ data.tar.gz: 2642eff3aeae7310eef1bf042c2cb3213e673b0b
5
5
  SHA512:
6
- metadata.gz: 1d695bc016c240c9c9d87b740bc5cd0e69af06b1e6be51d981bf23741282c57afb1e874d56fe9edf42401e49a97c2b8748cefceefd53a45c01eef6555baf547c
7
- data.tar.gz: 9c8664e688fe6320b8706ce12ccc65c01ef665f77bcf2c79859d00b51477eb02a111032aba74c5c3c2ec9fdb9c3137d6cd052158bcb2fd1b9d52595383d4880a
6
+ metadata.gz: d924c2990d4f2c9c75a2b0f4ea7829bdc0001626c2225d28c2c1707cb4ce53ac38fa8193a5a8cfd209f039858590d5dd93727ae96958537724aeea328dfe71ee
7
+ data.tar.gz: 64f9a86ffa05118a8b99a721a61de6d1f2e6538494ab1c28c3e739256a44d9defaf868d1b9b8a7ef639d66d9273fd04c9ba9f69ec8af8c5a839599f92dfba354
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.695
1
+ 3.0.697
@@ -226,6 +226,30 @@ module TencentCloud
226
226
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
227
227
  end
228
228
 
229
+ # 开发者需要指定使用的DRM类型取值 NORMALAES、和需要加密的Track类型取值 SD,ContentType取值 LiveVideo
230
+
231
+ # @param request: Request instance for GenerateTDRMKey.
232
+ # @type request: :class:`Tencentcloud::drm::V20181115::GenerateTDRMKeyRequest`
233
+ # @rtype: :class:`Tencentcloud::drm::V20181115::GenerateTDRMKeyResponse`
234
+ def GenerateTDRMKey(request)
235
+ body = send_request('GenerateTDRMKey', request.serialize)
236
+ response = JSON.parse(body)
237
+ if response['Response'].key?('Error') == false
238
+ model = GenerateTDRMKeyResponse.new
239
+ model.deserialize(response['Response'])
240
+ model
241
+ else
242
+ code = response['Response']['Error']['Code']
243
+ message = response['Response']['Error']['Message']
244
+ reqid = response['Response']['RequestId']
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
246
+ end
247
+ rescue TencentCloud::Common::TencentCloudSDKException => e
248
+ raise e
249
+ rescue StandardError => e
250
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
251
+ end
252
+
229
253
  # 本接口用来设置fairplay方案所需的私钥、私钥密钥、ask等信息。
230
254
  # 如需使用fairplay方案,请务必先设置私钥。
231
255
 
@@ -578,6 +578,58 @@ module TencentCloud
578
578
  end
579
579
  end
580
580
 
581
+ # GenerateTDRMKey请求参数结构体
582
+ class GenerateTDRMKeyRequest < TencentCloud::Common::AbstractModel
583
+ # @param DrmType: 使用的DRM方案类型,接口取值 NORMALAES 。
584
+ # @type DrmType: String
585
+ # @param Tracks: 加密的track列表,接口取值 SD 。
586
+ # @type Tracks: Array
587
+ # @param ContentId: 一个加密内容的唯一标识。
588
+ # @type ContentId: String
589
+ # @param ContentType: 内容类型。接口取值 LiveVideo 。
590
+ # @type ContentType: String
591
+
592
+ attr_accessor :DrmType, :Tracks, :ContentId, :ContentType
593
+
594
+ def initialize(drmtype=nil, tracks=nil, contentid=nil, contenttype=nil)
595
+ @DrmType = drmtype
596
+ @Tracks = tracks
597
+ @ContentId = contentid
598
+ @ContentType = contenttype
599
+ end
600
+
601
+ def deserialize(params)
602
+ @DrmType = params['DrmType']
603
+ @Tracks = params['Tracks']
604
+ @ContentId = params['ContentId']
605
+ @ContentType = params['ContentType']
606
+ end
607
+ end
608
+
609
+ # GenerateTDRMKey返回参数结构体
610
+ class GenerateTDRMKeyResponse < TencentCloud::Common::AbstractModel
611
+ # @param ContentId: 内容ID。
612
+ # @type ContentId: String
613
+ # @param TXEncryptionToken: 加密密钥。
614
+ # @type TXEncryptionToken: String
615
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
616
+ # @type RequestId: String
617
+
618
+ attr_accessor :ContentId, :TXEncryptionToken, :RequestId
619
+
620
+ def initialize(contentid=nil, txencryptiontoken=nil, requestid=nil)
621
+ @ContentId = contentid
622
+ @TXEncryptionToken = txencryptiontoken
623
+ @RequestId = requestid
624
+ end
625
+
626
+ def deserialize(params)
627
+ @ContentId = params['ContentId']
628
+ @TXEncryptionToken = params['TXEncryptionToken']
629
+ @RequestId = params['RequestId']
630
+ end
631
+ end
632
+
581
633
  # DRM加密密钥
582
634
  class Key < TencentCloud::Common::AbstractModel
583
635
  # @param Track: 加密track类型。Widevine支持SD、HD、UHD1、UHD2、AUDIO。Fairplay只支持HD。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-drm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.695
4
+ version: 3.0.697
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-07 00:00:00.000000000 Z
11
+ date: 2023-11-09 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-drm.rb
37
- - lib/v20181115/models.rb
38
36
  - lib/v20181115/client.rb
37
+ - lib/v20181115/models.rb
38
+ - lib/tencentcloud-sdk-drm.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: