Class: TencentCloud::Vod::V20180717::ImageProcessingTemplate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vod::V20180717::ImageProcessingTemplate
- Defined in:
- lib/v20180717/models.rb
Overview
图片处理模板, 最多支持三次操作。例如:裁剪-缩略-裁剪。
Instance Attribute Summary collapse
-
#Comment ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>.
-
#CreateTime ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>.
-
#Definition ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>.
-
#Name ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>.
-
#Operations ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>.
-
#Type ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(definition = nil, type = nil, name = nil, comment = nil, operations = nil, createtime = nil) ⇒ ImageProcessingTemplate
constructor
A new instance of ImageProcessingTemplate.
Constructor Details
#initialize(definition = nil, type = nil, name = nil, comment = nil, operations = nil, createtime = nil) ⇒ ImageProcessingTemplate
Returns a new instance of ImageProcessingTemplate.
15622 15623 15624 15625 15626 15627 15628 15629 |
# File 'lib/v20180717/models.rb', line 15622 def initialize(definition=nil, type=nil, name=nil, comment=nil, operations=nil, createtime=nil) @Definition = definition @Type = type @Name = name @Comment = comment @Operations = operations @CreateTime = createtime end |
Instance Attribute Details
#Comment ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>
15620 15621 15622 |
# File 'lib/v20180717/models.rb', line 15620 def Comment @Comment end |
#CreateTime ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>
15620 15621 15622 |
# File 'lib/v20180717/models.rb', line 15620 def CreateTime @CreateTime end |
#Definition ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>
15620 15621 15622 |
# File 'lib/v20180717/models.rb', line 15620 def Definition @Definition end |
#Name ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>
15620 15621 15622 |
# File 'lib/v20180717/models.rb', line 15620 def Name @Name end |
#Operations ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>
15620 15621 15622 |
# File 'lib/v20180717/models.rb', line 15620 def Operations @Operations end |
#Type ⇒ Object
<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>长度限制:3。</li>
15620 15621 15622 |
# File 'lib/v20180717/models.rb', line 15620 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 |
# File 'lib/v20180717/models.rb', line 15631 def deserialize(params) @Definition = params['Definition'] @Type = params['Type'] @Name = params['Name'] @Comment = params['Comment'] unless params['Operations'].nil? @Operations = [] params['Operations'].each do |i| imageoperation_tmp = ImageOperation.new imageoperation_tmp.deserialize(i) @Operations << imageoperation_tmp end end @CreateTime = params['CreateTime'] end |