Class: TencentCloud::Mps::V20190612::SampleSnapshotTaskInput

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

Overview

对视频做采样截图任务输入参数类型。

Instance Attribute Summary collapse

  • #ObjectNumberFormat ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:{inputName}_sampleSnapshot_{definition}_{number}.{format}。 注意:此字段可能返回 null,表示取不到有效值。.

  • #OutputObjectPath ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:{inputName}_sampleSnapshot_{definition}_{number}.{format}。 注意:此字段可能返回 null,表示取不到有效值。.

  • #OutputStorage ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:{inputName}_sampleSnapshot_{definition}_{number}.{format}。 注意:此字段可能返回 null,表示取不到有效值。.

  • #WatermarkSet ⇒ Object

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:{inputName}_sampleSnapshot_{definition}_{number}.{format}。 注意:此字段可能返回 null,表示取不到有效值。.

    Instance Method Summary collapse

    Constructor Details

    #initialize(definition = nil, watermarkset = nil, outputstorage = nil, outputobjectpath = nil, objectnumberformat = nil) ⇒ SampleSnapshotTaskInput

    Returns a new instance of SampleSnapshotTaskInput.

    
    
    27047
    27048
    27049
    27050
    27051
    27052
    27053
    # File 'lib/v20190612/models.rb', line 27047
    
    def initialize(definition=nil, watermarkset=nil, outputstorage=nil, outputobjectpath=nil, objectnumberformat=nil)
      @Definition = definition
      @WatermarkSet = watermarkset
      @OutputStorage = outputstorage
      @OutputObjectPath = outputobjectpath
      @ObjectNumberFormat = objectnumberformat
    end

    Instance Attribute Details

    #DefinitionObject

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_sampleSnapshot_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      采样截图模板 ID。

    • WatermarkSet:

      水印列表,支持多张图片或文字水印,最大可支持 10 张。

    • OutputStorage:

      采样截图后文件的目标存储,不填则继承上层的 OutputStorage 值。

    • OutputObjectPath:

      采样截图后图片文件的输出路径,可以为相对路径或者绝对路径。

    • ObjectNumberFormat:

      采样截图后输出路径中的{number}变量的规则。

    
    
    27045
    27046
    27047
    # File 'lib/v20190612/models.rb', line 27045
    
    def Definition
      @Definition
    end

    #ObjectNumberFormatObject

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_sampleSnapshot_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      采样截图模板 ID。

    • WatermarkSet:

      水印列表,支持多张图片或文字水印,最大可支持 10 张。

    • OutputStorage:

      采样截图后文件的目标存储,不填则继承上层的 OutputStorage 值。

    • OutputObjectPath:

      采样截图后图片文件的输出路径,可以为相对路径或者绝对路径。

    • ObjectNumberFormat:

      采样截图后输出路径中的{number}变量的规则。

    
    
    27045
    27046
    27047
    # File 'lib/v20190612/models.rb', line 27045
    
    def ObjectNumberFormat
      @ObjectNumberFormat
    end

    #OutputObjectPathObject

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_sampleSnapshot_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      采样截图模板 ID。

    • WatermarkSet:

      水印列表,支持多张图片或文字水印,最大可支持 10 张。

    • OutputStorage:

      采样截图后文件的目标存储,不填则继承上层的 OutputStorage 值。

    • OutputObjectPath:

      采样截图后图片文件的输出路径,可以为相对路径或者绝对路径。

    • ObjectNumberFormat:

      采样截图后输出路径中的{number}变量的规则。

    
    
    27045
    27046
    27047
    # File 'lib/v20190612/models.rb', line 27045
    
    def OutputObjectPath
      @OutputObjectPath
    end

    #OutputStorageObject

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_sampleSnapshot_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      采样截图模板 ID。

    • WatermarkSet:

      水印列表,支持多张图片或文字水印,最大可支持 10 张。

    • OutputStorage:

      采样截图后文件的目标存储,不填则继承上层的 OutputStorage 值。

    • OutputObjectPath:

      采样截图后图片文件的输出路径,可以为相对路径或者绝对路径。

    • ObjectNumberFormat:

      采样截图后输出路径中的{number}变量的规则。

    
    
    27045
    27046
    27047
    # File 'lib/v20190612/models.rb', line 27045
    
    def OutputStorage
      @OutputStorage
    end

    #WatermarkSetObject

    注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以.{format}结尾。变量名请参考 文件名变量说明。 相对路径示例:

  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_sampleSnapshot_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      采样截图模板 ID。

    • WatermarkSet:

      水印列表,支持多张图片或文字水印,最大可支持 10 张。

    • OutputStorage:

      采样截图后文件的目标存储,不填则继承上层的 OutputStorage 值。

    • OutputObjectPath:

      采样截图后图片文件的输出路径,可以为相对路径或者绝对路径。

    • ObjectNumberFormat:

      采样截图后输出路径中的{number}变量的规则。

    
    
    27045
    27046
    27047
    # File 'lib/v20190612/models.rb', line 27045
    
    def WatermarkSet
      @WatermarkSet
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    27055
    27056
    27057
    27058
    27059
    27060
    27061
    27062
    27063
    27064
    27065
    27066
    27067
    27068
    27069
    27070
    27071
    27072
    27073
    27074
    # File 'lib/v20190612/models.rb', line 27055
    
    def deserialize(params)
      @Definition = params['Definition']
      unless params['WatermarkSet'].nil?
        @WatermarkSet = []
        params['WatermarkSet'].each do |i|
          watermarkinput_tmp = WatermarkInput.new
          watermarkinput_tmp.deserialize(i)
          @WatermarkSet << watermarkinput_tmp
        end
      end
      unless params['OutputStorage'].nil?
        @OutputStorage = TaskOutputStorage.new
        @OutputStorage.deserialize(params['OutputStorage'])
      end
      @OutputObjectPath = params['OutputObjectPath']
      unless params['ObjectNumberFormat'].nil?
        @ObjectNumberFormat = NumberFormat.new
        @ObjectNumberFormat.deserialize(params['ObjectNumberFormat'])
      end
    end