Class: TencentCloud::Mps::V20190612::SnapshotByTimeOffsetTaskInput

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

Overview

对视频按指定时间点截图任务输入参数类型

Instance Attribute Summary collapse

  • #ExtTimeOffsetSet ⇒ Object
  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。.
  • #ObjectNumberFormat ⇒ Object
  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。.
  • #OutputObjectPath ⇒ Object
  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。.
  • #OutputStorage ⇒ Object
  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。.
  • #TimeOffsetSet ⇒ Object
  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。.
  • #WatermarkSet ⇒ Object
  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。.

    Instance Method Summary collapse

    Constructor Details

    #initialize(definition = nil, exttimeoffsetset = nil, timeoffsetset = nil, watermarkset = nil, outputstorage = nil, outputobjectpath = nil, objectnumberformat = nil) ⇒ SnapshotByTimeOffsetTaskInput

    Returns a new instance of SnapshotByTimeOffsetTaskInput.

    
    
    29005
    29006
    29007
    29008
    29009
    29010
    29011
    29012
    29013
    # File 'lib/v20190612/models.rb', line 29005
    
    def initialize(definition=nil, exttimeoffsetset=nil, timeoffsetset=nil, watermarkset=nil, outputstorage=nil, outputobjectpath=nil, objectnumberformat=nil)
      @Definition = definition
      @ExtTimeOffsetSet = exttimeoffsetset
      @TimeOffsetSet = timeoffsetset
      @WatermarkSet = watermarkset
      @OutputStorage = outputstorage
      @OutputObjectPath = outputobjectpath
      @ObjectNumberFormat = objectnumberformat
    end

    Instance Attribute Details

    #DefinitionObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def Definition
      @Definition
    end

    #ExtTimeOffsetSetObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def ExtTimeOffsetSet
      @ExtTimeOffsetSet
    end

    #ObjectNumberFormatObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def ObjectNumberFormat
      @ObjectNumberFormat
    end

    #OutputObjectPathObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def OutputObjectPath
      @OutputObjectPath
    end

    #OutputStorageObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def OutputStorage
      @OutputStorage
    end

    #TimeOffsetSetObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def TimeOffsetSet
      @TimeOffsetSet
    end

    #WatermarkSetObject

  • 当字符串以 s 结尾,表示时间点单位为秒,如 3.5s 表示时间点为第3.5秒;
  • 当字符串以 % 结尾,表示时间点为视频时长的百分比大小,如10%表示时间点为视频前第10%的时间。
  • 注意:此字段可能返回 null,表示取不到有效值。 若需定义输出路径,路径需以`.format`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。 相对路径示例:
  • 文件名_变量名.format
  • 文件名.format
  • 绝对路径示例:
  • /自定义路径/文件名_变量名.format
  • 如果不填,则默认为相对路径:`inputName}_snapshotByTimeOffset_{definition}_{number.format`。 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

    • Definition:

      指定时间点截图模板 ID。

    • ExtTimeOffsetSet:

      截图时间点列表,时间点支持 s、% 两种格式:

    • TimeOffsetSet:

      截图时间点列表,单位为。此参数已不再建议使用,建议您使用 ExtTimeOffsetSet 参数。

    • WatermarkSet:

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

    • OutputStorage:

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

    • OutputObjectPath:

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

    • ObjectNumberFormat:

      时间点截图后输出路径中的{number}变量的规则。

    
    
    29003
    29004
    29005
    # File 'lib/v20190612/models.rb', line 29003
    
    def WatermarkSet
      @WatermarkSet
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    29015
    29016
    29017
    29018
    29019
    29020
    29021
    29022
    29023
    29024
    29025
    29026
    29027
    29028
    29029
    29030
    29031
    29032
    29033
    29034
    29035
    29036
    # File 'lib/v20190612/models.rb', line 29015
    
    def deserialize(params)
      @Definition = params['Definition']
      @ExtTimeOffsetSet = params['ExtTimeOffsetSet']
      @TimeOffsetSet = params['TimeOffsetSet']
      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