Class: TencentCloud::Mps::V20190612::AddOnParameter
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::AddOnParameter
- Defined in:
- lib/v20190612/models.rb
Overview
图片处理附加输入参数。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imageset = nil, outputconfig = nil, extprompt = nil) ⇒ AddOnParameter
constructor
A new instance of AddOnParameter.
Constructor Details
#initialize(imageset = nil, outputconfig = nil, extprompt = nil) ⇒ AddOnParameter
Returns a new instance of AddOnParameter.
834 835 836 837 838 |
# File 'lib/v20190612/models.rb', line 834 def initialize(imageset=nil, outputconfig=nil, extprompt=nil) @ImageSet = imageset @OutputConfig = outputconfig @ExtPrompt = extprompt end |
Instance Attribute Details
#ExtPrompt ⇒ Object
832 833 834 |
# File 'lib/v20190612/models.rb', line 832 def ExtPrompt @ExtPrompt end |
#ImageSet ⇒ Object
832 833 834 |
# File 'lib/v20190612/models.rb', line 832 def ImageSet @ImageSet end |
#OutputConfig ⇒ Object
832 833 834 |
# File 'lib/v20190612/models.rb', line 832 def OutputConfig @OutputConfig end |
Instance Method Details
#deserialize(params) ⇒ Object
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 |
# File 'lib/v20190612/models.rb', line 840 def deserialize(params) unless params['ImageSet'].nil? @ImageSet = [] params['ImageSet'].each do |i| addonimageinput_tmp = AddOnImageInput.new addonimageinput_tmp.deserialize(i) @ImageSet << addonimageinput_tmp end end unless params['OutputConfig'].nil? @OutputConfig = ImageProcessOutputConfig.new @OutputConfig.deserialize(params['OutputConfig']) end unless params['ExtPrompt'].nil? @ExtPrompt = [] params['ExtPrompt'].each do |i| imageprocessprompt_tmp = ImageProcessPrompt.new imageprocessprompt_tmp.deserialize(i) @ExtPrompt << imageprocessprompt_tmp end end end |