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.



5177
5178
5179
5180
5181
# File 'lib/v20200910/models.rb', line 5177

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。



5175
5176
5177
# File 'lib/v20200910/models.rb', line 5175

def RequestId
  @RequestId
end

#TemplateObject

Parameters:

  • Template:

    报告结构化结果

  • TextTypeList:

    多级分类结果

  • RequestId:

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



5175
5176
5177
# File 'lib/v20200910/models.rb', line 5175

def Template
  @Template
end

#TextTypeListObject

Parameters:

  • Template:

    报告结构化结果

  • TextTypeList:

    多级分类结果

  • RequestId:

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



5175
5176
5177
# File 'lib/v20200910/models.rb', line 5175

def TextTypeList
  @TextTypeList
end

Instance Method Details

#deserialize(params) ⇒ Object



5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
# File 'lib/v20200910/models.rb', line 5183

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