Class: TencentCloud::Mps::V20190612::ComposeStyles

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

Overview

视频编辑/合成任务 样式信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, type = nil, subtitle = nil) ⇒ ComposeStyles

Returns a new instance of ComposeStyles.



6749
6750
6751
6752
6753
# File 'lib/v20190612/models.rb', line 6749

def initialize(id=nil, type=nil, subtitle=nil)
  @Id = id
  @Type = type
  @Subtitle = subtitle
end

Instance Attribute Details

#IdObject

注意:允许字母、数字、-、_ 组合,最长 32 字符。<li>Subtitle:字幕样式。</li>

Parameters:

  • Id:

    样式 Id,用于和轨道元素中的样式关联。

  • Type:

    样式类型,取值有:

  • Subtitle:

    字幕样式信息,当 Type = Subtitle 时有效。



6747
6748
6749
# File 'lib/v20190612/models.rb', line 6747

def Id
  @Id
end

#SubtitleObject

注意:允许字母、数字、-、_ 组合,最长 32 字符。<li>Subtitle:字幕样式。</li>

Parameters:

  • Id:

    样式 Id,用于和轨道元素中的样式关联。

  • Type:

    样式类型,取值有:

  • Subtitle:

    字幕样式信息,当 Type = Subtitle 时有效。



6747
6748
6749
# File 'lib/v20190612/models.rb', line 6747

def Subtitle
  @Subtitle
end

#TypeObject

注意:允许字母、数字、-、_ 组合,最长 32 字符。<li>Subtitle:字幕样式。</li>

Parameters:

  • Id:

    样式 Id,用于和轨道元素中的样式关联。

  • Type:

    样式类型,取值有:

  • Subtitle:

    字幕样式信息,当 Type = Subtitle 时有效。



6747
6748
6749
# File 'lib/v20190612/models.rb', line 6747

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6755
6756
6757
6758
6759
6760
6761
6762
# File 'lib/v20190612/models.rb', line 6755

def deserialize(params)
  @Id = params['Id']
  @Type = params['Type']
  unless params['Subtitle'].nil?
    @Subtitle = ComposeSubtitleStyle.new
    @Subtitle.deserialize(params['Subtitle'])
  end
end