Class: TencentCloud::Drm::V20181115::StartEncryptionRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181115/models.rb

Overview

StartEncryption请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cosendpoint = nil, cossecretid = nil, cossecretkey = nil, drmtype = nil, sourceobject = nil, outputobjects = nil) ⇒ StartEncryptionRequest

Returns a new instance of StartEncryptionRequest.



804
805
806
807
808
809
810
811
# File 'lib/v20181115/models.rb', line 804

def initialize(cosendpoint=nil, cossecretid=nil, cossecretkey=nil, drmtype=nil, sourceobject=nil, outputobjects=nil)
  @CosEndPoint = cosendpoint
  @CosSecretId = cossecretid
  @CosSecretKey = cossecretkey
  @DrmType = drmtype
  @SourceObject = sourceobject
  @OutputObjects = outputobjects
end

Instance Attribute Details

#CosEndPointObject

Parameters:

  • CosEndPoint:

    cos的end point。

  • CosSecretId:

    cos api密钥id。

  • CosSecretKey:

    cos api密钥。

  • DrmType:

    使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY

  • SourceObject:

    存储在COS上的原始内容信息

  • OutputObjects:

    加密后的内容存储到COS的对象



802
803
804
# File 'lib/v20181115/models.rb', line 802

def CosEndPoint
  @CosEndPoint
end

#CosSecretIdObject

Parameters:

  • CosEndPoint:

    cos的end point。

  • CosSecretId:

    cos api密钥id。

  • CosSecretKey:

    cos api密钥。

  • DrmType:

    使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY

  • SourceObject:

    存储在COS上的原始内容信息

  • OutputObjects:

    加密后的内容存储到COS的对象



802
803
804
# File 'lib/v20181115/models.rb', line 802

def CosSecretId
  @CosSecretId
end

#CosSecretKeyObject

Parameters:

  • CosEndPoint:

    cos的end point。

  • CosSecretId:

    cos api密钥id。

  • CosSecretKey:

    cos api密钥。

  • DrmType:

    使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY

  • SourceObject:

    存储在COS上的原始内容信息

  • OutputObjects:

    加密后的内容存储到COS的对象



802
803
804
# File 'lib/v20181115/models.rb', line 802

def CosSecretKey
  @CosSecretKey
end

#DrmTypeObject

Parameters:

  • CosEndPoint:

    cos的end point。

  • CosSecretId:

    cos api密钥id。

  • CosSecretKey:

    cos api密钥。

  • DrmType:

    使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY

  • SourceObject:

    存储在COS上的原始内容信息

  • OutputObjects:

    加密后的内容存储到COS的对象



802
803
804
# File 'lib/v20181115/models.rb', line 802

def DrmType
  @DrmType
end

#OutputObjectsObject

Parameters:

  • CosEndPoint:

    cos的end point。

  • CosSecretId:

    cos api密钥id。

  • CosSecretKey:

    cos api密钥。

  • DrmType:

    使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY

  • SourceObject:

    存储在COS上的原始内容信息

  • OutputObjects:

    加密后的内容存储到COS的对象



802
803
804
# File 'lib/v20181115/models.rb', line 802

def OutputObjects
  @OutputObjects
end

#SourceObjectObject

Parameters:

  • CosEndPoint:

    cos的end point。

  • CosSecretId:

    cos api密钥id。

  • CosSecretKey:

    cos api密钥。

  • DrmType:

    使用的DRM方案类型,接口取值WIDEVINE,FAIRPLAY

  • SourceObject:

    存储在COS上的原始内容信息

  • OutputObjects:

    加密后的内容存储到COS的对象



802
803
804
# File 'lib/v20181115/models.rb', line 802

def SourceObject
  @SourceObject
end

Instance Method Details

#deserialize(params) ⇒ Object



813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
# File 'lib/v20181115/models.rb', line 813

def deserialize(params)
  @CosEndPoint = params['CosEndPoint']
  @CosSecretId = params['CosSecretId']
  @CosSecretKey = params['CosSecretKey']
  @DrmType = params['DrmType']
  unless params['SourceObject'].nil?
    @SourceObject = DrmSourceObject.new
    @SourceObject.deserialize(params['SourceObject'])
  end
  unless params['OutputObjects'].nil?
    @OutputObjects = []
    params['OutputObjects'].each do |i|
      drmoutputobject_tmp = DrmOutputObject.new
      drmoutputobject_tmp.deserialize(i)
      @OutputObjects << drmoutputobject_tmp
    end
  end
end