Class: TencentCloud::Tmt::V20180321::FileTranslateResponse

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

Overview

FileTranslate返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ FileTranslateResponse

Returns a new instance of FileTranslateResponse.



105
106
107
108
# File 'lib/v20180321/models.rb', line 105

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    文件翻译的请求返回结果,包含结果查询需要的TaskId

  • RequestId:

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



103
104
105
# File 'lib/v20180321/models.rb', line 103

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    文件翻译的请求返回结果,包含结果查询需要的TaskId

  • RequestId:

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



103
104
105
# File 'lib/v20180321/models.rb', line 103

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



110
111
112
113
114
115
116
# File 'lib/v20180321/models.rb', line 110

def deserialize(params)
  unless params['Data'].nil?
    @Data = Task.new
    @Data.deserialize(params['Data'])
  end
  @RequestId = params['RequestId']
end