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

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

Overview

CreateAnimatedGraphicsTemplate请求参数结构体

Instance Attribute Summary collapse

  • #Format ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.
  • #Fps ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.
  • #Height ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.
  • #Name ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.
  • #Quality ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.
  • #ResolutionAdaptive ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.
  • #Width ⇒ Object
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • 当 Width、Height 均为 0,则分辨率同源;
  • 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
  • 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
  • 当 Width、Height 均非 0,则分辨率按用户指定。
  • 默认值:0。
  • open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
  • close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
  • 默认值:open。.

    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.

    
    
    8032
    8033
    8034
    8035
    8036
    8037
    8038
    8039
    8040
    8041
    # File 'lib/v20190612/models.rb', line 8032
    
    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

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Comment
      @Comment
    end

    #FormatObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Format
      @Format
    end

    #FpsObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Fps
      @Fps
    end

    #HeightObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Height
      @Height
    end

    #NameObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Name
      @Name
    end

    #QualityObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Quality
      @Quality
    end

    #ResolutionAdaptiveObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def ResolutionAdaptive
      @ResolutionAdaptive
    end

    #WidthObject

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

    
    
    8030
    8031
    8032
    # File 'lib/v20190612/models.rb', line 8030
    
    def Width
      @Width
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    8043
    8044
    8045
    8046
    8047
    8048
    8049
    8050
    8051
    8052
    # File 'lib/v20190612/models.rb', line 8043
    
    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