Class: TencentCloud::Mps::V20190612::ModifyLiveRecordTemplateRequest

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

Overview

ModifyLiveRecordTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition = nil, hlsconfigure = nil, mp4configure = nil, name = nil, comment = nil, recordtype = nil) ⇒ ModifyLiveRecordTemplateRequest

Returns a new instance of ModifyLiveRecordTemplateRequest.



21776
21777
21778
21779
21780
21781
21782
21783
# File 'lib/v20190612/models.rb', line 21776

def initialize(definition=nil, hlsconfigure=nil, mp4configure=nil, name=nil, comment=nil, recordtype=nil)
  @Definition = definition
  @HLSConfigure = hlsconfigure
  @MP4Configure = mp4configure
  @Name = name
  @Comment = comment
  @RecordType = recordtype
end

Instance Attribute Details

#CommentObject

Parameters:

  • Definition:

    录制模板唯一标识。

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。



21774
21775
21776
# File 'lib/v20190612/models.rb', line 21774

def Comment
  @Comment
end

#DefinitionObject

Parameters:

  • Definition:

    录制模板唯一标识。

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。



21774
21775
21776
# File 'lib/v20190612/models.rb', line 21774

def Definition
  @Definition
end

#HLSConfigureObject

Parameters:

  • Definition:

    录制模板唯一标识。

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。



21774
21775
21776
# File 'lib/v20190612/models.rb', line 21774

def HLSConfigure
  @HLSConfigure
end

#MP4ConfigureObject

Parameters:

  • Definition:

    录制模板唯一标识。

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。



21774
21775
21776
# File 'lib/v20190612/models.rb', line 21774

def MP4Configure
  @MP4Configure
end

#NameObject

Parameters:

  • Definition:

    录制模板唯一标识。

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。



21774
21775
21776
# File 'lib/v20190612/models.rb', line 21774

def Name
  @Name
end

#RecordTypeObject

Parameters:

  • Definition:

    录制模板唯一标识。

  • HLSConfigure:

    HLS配置参数,和MP4Configure需要二选一必填。

  • MP4Configure:

    MP4配置参数,和HLSConfigure需要二选一必填。

  • Name:

    录制模板名称,长度限制:64 个字符。

  • Comment:

    模板描述信息,长度限制:256 个字符。

  • RecordType:

    录制类型,取值为video(音视频录制)、audio(纯音频录制)、auto(自动探测)。



21774
21775
21776
# File 'lib/v20190612/models.rb', line 21774

def RecordType
  @RecordType
end

Instance Method Details

#deserialize(params) ⇒ Object



21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
# File 'lib/v20190612/models.rb', line 21785

def deserialize(params)
  @Definition = params['Definition']
  unless params['HLSConfigure'].nil?
    @HLSConfigure = HLSConfigureInfo.new
    @HLSConfigure.deserialize(params['HLSConfigure'])
  end
  unless params['MP4Configure'].nil?
    @MP4Configure = MP4ConfigureInfo.new
    @MP4Configure.deserialize(params['MP4Configure'])
  end
  @Name = params['Name']
  @Comment = params['Comment']
  @RecordType = params['RecordType']
end