tencentcloud-sdk-drm 3.0.690 → 3.0.691

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: 70b05f6f58d3f7ec7cfb52ee9afc9519b0045b68
4
- data.tar.gz: 0c3bb2838302e095306221e595dba38f5c256653
3
+ metadata.gz: bfacb9a107bd994072ee6fe095d749f9568ca225
4
+ data.tar.gz: a28b80122489ac29d2c18b7bec1f6cbbfb8ffab6
5
5
  SHA512:
6
- metadata.gz: 86ea1c7a4f528771107578ff6d6fb585d353ee9c13e6ac6bd151eee2b8269d001472819215971ea0c5cca2977045c400d81459c9d6f039c7d73a1e336199f811
7
- data.tar.gz: da78251b20bec50798c33ed4773c166a0a81057f75447ebb52e346729660bb0d15982c7402db4f1fafea7541430251808dd04715b8d96abd228a42e790c8266c
6
+ metadata.gz: 33f9f386416ba2cb2df35903fad2bd2b0d6f51544599b2d87070366ace121328b6fd218c481c21fe1ca3e2963e6181dc22a11f91a2979eb4efd4bb2e2db65690
7
+ data.tar.gz: c079cb0668d117199e8ad967d5d08779afc135cb75a2c4658bd15324ef6e766d56932bd9e269568ddd5ed14b7a6c5f343dc7ba09aecbbdfddbe46499326ac3c1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.690
1
+ 3.0.691
@@ -153,6 +153,30 @@ module TencentCloud
153
153
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
154
154
  end
155
155
 
156
+ # 开发者需要指定使用的DRM类型取值 NORMALAES、和需要加密的Track类型取值 SD,ContentType取值 LiveVideo
157
+
158
+ # @param request: Request instance for DescribeDRMLicense.
159
+ # @type request: :class:`Tencentcloud::drm::V20181115::DescribeDRMLicenseRequest`
160
+ # @rtype: :class:`Tencentcloud::drm::V20181115::DescribeDRMLicenseResponse`
161
+ def DescribeDRMLicense(request)
162
+ body = send_request('DescribeDRMLicense', request.serialize)
163
+ response = JSON.parse(body)
164
+ if response['Response'].key?('Error') == false
165
+ model = DescribeDRMLicenseResponse.new
166
+ model.deserialize(response['Response'])
167
+ model
168
+ else
169
+ code = response['Response']['Error']['Code']
170
+ message = response['Response']['Error']['Message']
171
+ reqid = response['Response']['RequestId']
172
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
173
+ end
174
+ rescue TencentCloud::Common::TencentCloudSDKException => e
175
+ raise e
176
+ rescue StandardError => e
177
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
178
+ end
179
+
156
180
  # 该接口用来查询设置的FairPlay私钥校验信息。可用该接口校验设置的私钥与本身的私钥是否一致。
157
181
 
158
182
  # @param request: Request instance for DescribeFairPlayPem.
@@ -297,6 +297,58 @@ module TencentCloud
297
297
  end
298
298
  end
299
299
 
300
+ # DescribeDRMLicense请求参数结构体
301
+ class DescribeDRMLicenseRequest < TencentCloud::Common::AbstractModel
302
+ # @param DrmType: 使用的DRM方案类型,接口取值 NORMALAES 。
303
+ # @type DrmType: String
304
+ # @param Tracks: 加密的track列表,接口取值 SD 。
305
+ # @type Tracks: Array
306
+ # @param ContentId: 一个加密内容的唯一标识。
307
+ # @type ContentId: String
308
+ # @param ContentType: 内容类型。接口取值 LiveVideo 。
309
+ # @type ContentType: String
310
+
311
+ attr_accessor :DrmType, :Tracks, :ContentId, :ContentType
312
+
313
+ def initialize(drmtype=nil, tracks=nil, contentid=nil, contenttype=nil)
314
+ @DrmType = drmtype
315
+ @Tracks = tracks
316
+ @ContentId = contentid
317
+ @ContentType = contenttype
318
+ end
319
+
320
+ def deserialize(params)
321
+ @DrmType = params['DrmType']
322
+ @Tracks = params['Tracks']
323
+ @ContentId = params['ContentId']
324
+ @ContentType = params['ContentType']
325
+ end
326
+ end
327
+
328
+ # DescribeDRMLicense返回参数结构体
329
+ class DescribeDRMLicenseResponse < TencentCloud::Common::AbstractModel
330
+ # @param ContentId: 内容ID。
331
+ # @type ContentId: String
332
+ # @param TXEncryptionToken: 加密密钥。
333
+ # @type TXEncryptionToken: String
334
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
335
+ # @type RequestId: String
336
+
337
+ attr_accessor :ContentId, :TXEncryptionToken, :RequestId
338
+
339
+ def initialize(contentid=nil, txencryptiontoken=nil, requestid=nil)
340
+ @ContentId = contentid
341
+ @TXEncryptionToken = txencryptiontoken
342
+ @RequestId = requestid
343
+ end
344
+
345
+ def deserialize(params)
346
+ @ContentId = params['ContentId']
347
+ @TXEncryptionToken = params['TXEncryptionToken']
348
+ @RequestId = params['RequestId']
349
+ end
350
+ end
351
+
300
352
  # DescribeFairPlayPem请求参数结构体
301
353
  class DescribeFairPlayPemRequest < TencentCloud::Common::AbstractModel
302
354
  # @param BailorId: 委托者Id,适用于托管自身证书的客户。普通客户无需填该字段。
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-drm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.690
4
+ version: 3.0.691
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20181115/client.rb
37
- - lib/v20181115/models.rb
38
36
  - lib/tencentcloud-sdk-drm.rb
37
+ - lib/v20181115/models.rb
38
+ - lib/v20181115/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: