Class: TencentCloud::Mrs::V20200910::ImageToClassRequest

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

Overview

ImageToClass请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imageinfolist = nil, handleparam = nil, type = nil, usertype = nil) ⇒ ImageToClassRequest



5046
5047
5048
5049
5050
5051
# File 'lib/v20200910/models.rb', line 5046

def initialize(imageinfolist=nil, handleparam=nil, type=nil, usertype=nil)
  @ImageInfoList = imageinfolist
  @HandleParam = handleparam
  @Type = type
  @UserType = usertype
end

Instance Attribute Details

#HandleParamObject



5044
5045
5046
# File 'lib/v20200910/models.rb', line 5044

def HandleParam
  @HandleParam
end

#ImageInfoListObject



5044
5045
5046
# File 'lib/v20200910/models.rb', line 5044

def ImageInfoList
  @ImageInfoList
end

#TypeObject



5044
5045
5046
# File 'lib/v20200910/models.rb', line 5044

def Type
  @Type
end

#UserTypeObject



5044
5045
5046
# File 'lib/v20200910/models.rb', line 5044

def UserType
  @UserType
end

Instance Method Details

#deserialize(params) ⇒ Object



5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'lib/v20200910/models.rb', line 5053

def deserialize(params)
  unless params['ImageInfoList'].nil?
    @ImageInfoList = []
    params['ImageInfoList'].each do |i|
      imageinfo_tmp = ImageInfo.new
      imageinfo_tmp.deserialize(i)
      @ImageInfoList << imageinfo_tmp
    end
  end
  unless params['HandleParam'].nil?
    @HandleParam = HandleParam.new
    @HandleParam.deserialize(params['HandleParam'])
  end
  @Type = params['Type']
  @UserType = params['UserType']
end