Class: TencentCloud::Mrs::V20200910::ImageToObjectResponse

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

Overview

ImageToObject返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template = nil, texttypelist = nil, requestid = nil) ⇒ ImageToObjectResponse

Returns a new instance of ImageToObjectResponse.



5158
5159
5160
5161
5162
# File 'lib/v20200910/models.rb', line 5158

def initialize(template=nil, texttypelist=nil, requestid=nil)
  @Template = template
  @TextTypeList = texttypelist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Template:

    报告结构化结果

  • TextTypeList:

    多级分类结果

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5156
5157
5158
# File 'lib/v20200910/models.rb', line 5156

def RequestId
  @RequestId
end

#TemplateObject

Parameters:

  • Template:

    报告结构化结果

  • TextTypeList:

    多级分类结果

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5156
5157
5158
# File 'lib/v20200910/models.rb', line 5156

def Template
  @Template
end

#TextTypeListObject

Parameters:

  • Template:

    报告结构化结果

  • TextTypeList:

    多级分类结果

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



5156
5157
5158
# File 'lib/v20200910/models.rb', line 5156

def TextTypeList
  @TextTypeList
end

Instance Method Details

#deserialize(params) ⇒ Object



5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
# File 'lib/v20200910/models.rb', line 5164

def deserialize(params)
  unless params['Template'].nil?
    @Template = Template.new
    @Template.deserialize(params['Template'])
  end
  unless params['TextTypeList'].nil?
    @TextTypeList = []
    params['TextTypeList'].each do |i|
      texttype_tmp = TextType.new
      texttype_tmp.deserialize(i)
      @TextTypeList << texttype_tmp
    end
  end
  @RequestId = params['RequestId']
end