Class: TencentCloud::Ie::V20200304::MediaCuttingWatermark

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

Overview

媒体剪切水印信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, image = nil, text = nil) ⇒ MediaCuttingWatermark

Returns a new instance of MediaCuttingWatermark.



1688
1689
1690
1691
1692
# File 'lib/v20200304/models.rb', line 1688

def initialize(type=nil, image=nil, text=nil)
  @Type = type
  @Image = image
  @Text = text
end

Instance Attribute Details

#ImageObject

<li>Image:图像水印;</li> <li>Text:文字水印。</li>

Parameters:

  • Type:

    水印类型,可选值:

  • Image:

    图像水印信息,当 Type=Image 时必选。

  • Text:

    文字水印信息,当 Type=Text 时必选。



1686
1687
1688
# File 'lib/v20200304/models.rb', line 1686

def Image
  @Image
end

#TextObject

<li>Image:图像水印;</li> <li>Text:文字水印。</li>

Parameters:

  • Type:

    水印类型,可选值:

  • Image:

    图像水印信息,当 Type=Image 时必选。

  • Text:

    文字水印信息,当 Type=Text 时必选。



1686
1687
1688
# File 'lib/v20200304/models.rb', line 1686

def Text
  @Text
end

#TypeObject

<li>Image:图像水印;</li> <li>Text:文字水印。</li>

Parameters:

  • Type:

    水印类型,可选值:

  • Image:

    图像水印信息,当 Type=Image 时必选。

  • Text:

    文字水印信息,当 Type=Text 时必选。



1686
1687
1688
# File 'lib/v20200304/models.rb', line 1686

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
# File 'lib/v20200304/models.rb', line 1694

def deserialize(params)
  @Type = params['Type']
  unless params['Image'].nil?
    @Image = MediaCuttingWatermarkImage.new
    @Image.deserialize(params['Image'])
  end
  unless params['Text'].nil?
    @Text = MediaCuttingWatermarkText.new
    @Text.deserialize(params['Text'])
  end
end