Class: TencentCloud::Ocr::V20181119::GetTaskStateResponse

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

Overview

GetTaskState返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(taskstate = nil, requestid = nil) ⇒ GetTaskStateResponse

Returns a new instance of GetTaskStateResponse.



3965
3966
3967
3968
# File 'lib/v20181119/models.rb', line 3965

def initialize(taskstate=nil, requestid=nil)
  @TaskState = taskstate
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

2:任务已手动关闭 3:任务已提交 4:任务识别中 5:超时:任务超过了可操作的24H时限 6:任务识别失败

Parameters:

  • TaskState:

    1:任务识别完成,还未提交

  • RequestId:

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



3963
3964
3965
# File 'lib/v20181119/models.rb', line 3963

def RequestId
  @RequestId
end

#TaskStateObject

2:任务已手动关闭 3:任务已提交 4:任务识别中 5:超时:任务超过了可操作的24H时限 6:任务识别失败

Parameters:

  • TaskState:

    1:任务识别完成,还未提交

  • RequestId:

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



3963
3964
3965
# File 'lib/v20181119/models.rb', line 3963

def TaskState
  @TaskState
end

Instance Method Details

#deserialize(params) ⇒ Object



3970
3971
3972
3973
# File 'lib/v20181119/models.rb', line 3970

def deserialize(params)
  @TaskState = params['TaskState']
  @RequestId = params['RequestId']
end