Class: TencentCloud::Drm::V20181115::CreateEncryptKeysRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Drm::V20181115::CreateEncryptKeysRequest
- Defined in:
- lib/v20181115/models.rb
Overview
CreateEncryptKeys请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(drmtype = nil, keys = nil, contentid = nil, contenttype = nil) ⇒ CreateEncryptKeysRequest
constructor
A new instance of CreateEncryptKeysRequest.
Constructor Details
#initialize(drmtype = nil, keys = nil, contentid = nil, contenttype = nil) ⇒ CreateEncryptKeysRequest
Returns a new instance of CreateEncryptKeysRequest.
96 97 98 99 100 101 |
# File 'lib/v20181115/models.rb', line 96 def initialize(drmtype=nil, keys=nil, contentid=nil, contenttype=nil) @DrmType = drmtype @Keys = keys @ContentId = contentid @ContentType = contenttype end |
Instance Attribute Details
#ContentId ⇒ Object
94 95 96 |
# File 'lib/v20181115/models.rb', line 94 def ContentId @ContentId end |
#ContentType ⇒ Object
94 95 96 |
# File 'lib/v20181115/models.rb', line 94 def ContentType @ContentType end |
#DrmType ⇒ Object
94 95 96 |
# File 'lib/v20181115/models.rb', line 94 def DrmType @DrmType end |
#Keys ⇒ Object
94 95 96 |
# File 'lib/v20181115/models.rb', line 94 def Keys @Keys end |
Instance Method Details
#deserialize(params) ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/v20181115/models.rb', line 103 def deserialize(params) @DrmType = params['DrmType'] unless params['Keys'].nil? @Keys = [] params['Keys'].each do |i| keyparam_tmp = KeyParam.new keyparam_tmp.deserialize(i) @Keys << keyparam_tmp end end @ContentId = params['ContentId'] @ContentType = params['ContentType'] end |