Class: TencentCloud::Mps::V20190612::CreateAnimatedGraphicsTemplateRequest

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

Overview

CreateAnimatedGraphicsTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fps = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, quality = nil, name = nil, comment = nil) ⇒ CreateAnimatedGraphicsTemplateRequest

Returns a new instance of CreateAnimatedGraphicsTemplateRequest.



6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
# File 'lib/v20190612/models.rb', line 6867

def initialize(fps=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, quality=nil, name=nil, comment=nil)
  @Fps = fps
  @Width = width
  @Height = height
  @ResolutionAdaptive = resolutionadaptive
  @Format = format
  @Quality = quality
  @Name = name
  @Comment = comment
end

Instance Attribute Details

#CommentObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Comment
  @Comment
end

#FormatObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Format
  @Format
end

#FpsObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Fps
  @Fps
end

#HeightObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Height
  @Height
end

#NameObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Name
  @Name
end

#QualityObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Quality
  @Quality
end

#ResolutionAdaptiveObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def ResolutionAdaptive
  @ResolutionAdaptive
end

#WidthObject

<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。

Parameters:

  • Fps:

    帧率,取值范围:[1, 30],单位:Hz。

  • Width:

    动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    动图高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • Format:

    动图格式,取值为 gif 和 webp。默认为 gif。

  • Quality:

    图片质量,取值范围:[1, 100],默认值为 75。

  • Name:

    转动图模板名称,长度限制:64 个字符。

  • Comment:

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



6865
6866
6867
# File 'lib/v20190612/models.rb', line 6865

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
# File 'lib/v20190612/models.rb', line 6878

def deserialize(params)
  @Fps = params['Fps']
  @Width = params['Width']
  @Height = params['Height']
  @ResolutionAdaptive = params['ResolutionAdaptive']
  @Format = params['Format']
  @Quality = params['Quality']
  @Name = params['Name']
  @Comment = params['Comment']
end