Class: TencentCloud::Tmt::V20180321::GetFileTranslateResponse

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

Overview

GetFileTranslate返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GetFileTranslateResponse.



179
180
181
182
# File 'lib/v20180321/models.rb', line 179

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

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    任务id

  • RequestId:

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



177
178
179
# File 'lib/v20180321/models.rb', line 177

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    任务id

  • RequestId:

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



177
178
179
# File 'lib/v20180321/models.rb', line 177

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



184
185
186
187
188
189
190
# File 'lib/v20180321/models.rb', line 184

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