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

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

Overview

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

Instance Attribute Summary collapse

  • #Subtitle ⇒ Object

    注意:允许字母、数字、-、_ 组合,最长 32 字符。

  • Subtitle:字幕样式。
  • .

  • #Type ⇒ Object

    注意:允许字母、数字、-、_ 组合,最长 32 字符。

  • Subtitle:字幕样式。
  • .

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of ComposeStyles.

    
    
    6810
    6811
    6812
    6813
    6814
    # File 'lib/v20190612/models.rb', line 6810
    
    def initialize(id=nil, type=nil, subtitle=nil)
      @Id = id
      @Type = type
      @Subtitle = subtitle
    end

    Instance Attribute Details

    #IdObject

    注意:允许字母、数字、-、_ 组合,最长 32 字符。

  • Subtitle:字幕样式。
  • Parameters:

    • Id:

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

    • Type:

      样式类型,取值有:

    • Subtitle:

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

    
    
    6808
    6809
    6810
    # File 'lib/v20190612/models.rb', line 6808
    
    def Id
      @Id
    end

    #SubtitleObject

    注意:允许字母、数字、-、_ 组合,最长 32 字符。

  • Subtitle:字幕样式。
  • Parameters:

    • Id:

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

    • Type:

      样式类型,取值有:

    • Subtitle:

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

    
    
    6808
    6809
    6810
    # File 'lib/v20190612/models.rb', line 6808
    
    def Subtitle
      @Subtitle
    end

    #TypeObject

    注意:允许字母、数字、-、_ 组合,最长 32 字符。

  • Subtitle:字幕样式。
  • Parameters:

    • Id:

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

    • Type:

      样式类型,取值有:

    • Subtitle:

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

    
    
    6808
    6809
    6810
    # File 'lib/v20190612/models.rb', line 6808
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    6816
    6817
    6818
    6819
    6820
    6821
    6822
    6823
    # File 'lib/v20190612/models.rb', line 6816
    
    def deserialize(params)
      @Id = params['Id']
      @Type = params['Type']
      unless params['Subtitle'].nil?
        @Subtitle = ComposeSubtitleStyle.new
        @Subtitle.deserialize(params['Subtitle'])
      end
    end