Class: TencentCloud::Vod::V20180717::WatermarkConfigureInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vod::V20180717::WatermarkConfigureInfo
- Defined in:
- lib/v20180717/models.rb
Overview
即时转码水印模板配置。
Instance Attribute Summary collapse
-
#Height ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>.
-
#ImageContent ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>.
-
#Switch ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>.
-
#Width ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>.
-
#XPos ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>.
-
#YPos ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, imagecontent = nil, width = nil, height = nil, xpos = nil, ypos = nil) ⇒ WatermarkConfigureInfo
constructor
A new instance of WatermarkConfigureInfo.
Constructor Details
#initialize(switch = nil, imagecontent = nil, width = nil, height = nil, xpos = nil, ypos = nil) ⇒ WatermarkConfigureInfo
Returns a new instance of WatermarkConfigureInfo.
29527 29528 29529 29530 29531 29532 29533 29534 |
# File 'lib/v20180717/models.rb', line 29527 def initialize(switch=nil, imagecontent=nil, width=nil, height=nil, xpos=nil, ypos=nil) @Switch = switch @ImageContent = imagecontent @Width = width @Height = height @XPos = xpos @YPos = ypos end |
Instance Attribute Details
#Height ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
29525 29526 29527 |
# File 'lib/v20180717/models.rb', line 29525 def Height @Height end |
#ImageContent ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
29525 29526 29527 |
# File 'lib/v20180717/models.rb', line 29525 def ImageContent @ImageContent end |
#Switch ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
29525 29526 29527 |
# File 'lib/v20180717/models.rb', line 29525 def Switch @Switch end |
#Width ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
29525 29526 29527 |
# File 'lib/v20180717/models.rb', line 29525 def Width @Width end |
#XPos ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
29525 29526 29527 |
# File 'lib/v20180717/models.rb', line 29525 def XPos @XPos end |
#YPos ⇒ Object
<li>ON:表示启用水印;</li> <li>OFF:表示关闭水印。</li> <li>字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li> <li>字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
29525 29526 29527 |
# File 'lib/v20180717/models.rb', line 29525 def YPos @YPos end |
Instance Method Details
#deserialize(params) ⇒ Object
29536 29537 29538 29539 29540 29541 29542 29543 |
# File 'lib/v20180717/models.rb', line 29536 def deserialize(params) @Switch = params['Switch'] @ImageContent = params['ImageContent'] @Width = params['Width'] @Height = params['Height'] @XPos = params['XPos'] @YPos = params['YPos'] end |