Class: TencentCloud::Dlc::V20210125::DescribeSparkSessionBatchSQLResponse

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

Overview

DescribeSparkSessionBatchSQL返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state = nil, tasks = nil, event = nil, requestid = nil) ⇒ DescribeSparkSessionBatchSQLResponse

Returns a new instance of DescribeSparkSessionBatchSQLResponse.



8522
8523
8524
8525
8526
8527
# File 'lib/v20210125/models.rb', line 8522

def initialize(state=nil, tasks=nil, event=nil, requestid=nil)
  @State = state
  @Tasks = tasks
  @Event = event
  @RequestId = requestid
end

Instance Attribute Details

#EventObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • State:

    状态:0:运行中、1:成功、2:失败、3:取消、4:超时;

  • Tasks:

    SQL子任务列表,仅展示运行完成的子任务,若某个任务运行失败,后续其它子任务不返回

  • Event:

    非sql运行的异常事件信息,包含资源创建失败、调度异常,JOB超时等,正常运行下该Event值为空

  • RequestId:

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



8520
8521
8522
# File 'lib/v20210125/models.rb', line 8520

def Event
  @Event
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • State:

    状态:0:运行中、1:成功、2:失败、3:取消、4:超时;

  • Tasks:

    SQL子任务列表,仅展示运行完成的子任务,若某个任务运行失败,后续其它子任务不返回

  • Event:

    非sql运行的异常事件信息,包含资源创建失败、调度异常,JOB超时等,正常运行下该Event值为空

  • RequestId:

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



8520
8521
8522
# File 'lib/v20210125/models.rb', line 8520

def RequestId
  @RequestId
end

#StateObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • State:

    状态:0:运行中、1:成功、2:失败、3:取消、4:超时;

  • Tasks:

    SQL子任务列表,仅展示运行完成的子任务,若某个任务运行失败,后续其它子任务不返回

  • Event:

    非sql运行的异常事件信息,包含资源创建失败、调度异常,JOB超时等,正常运行下该Event值为空

  • RequestId:

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



8520
8521
8522
# File 'lib/v20210125/models.rb', line 8520

def State
  @State
end

#TasksObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • State:

    状态:0:运行中、1:成功、2:失败、3:取消、4:超时;

  • Tasks:

    SQL子任务列表,仅展示运行完成的子任务,若某个任务运行失败,后续其它子任务不返回

  • Event:

    非sql运行的异常事件信息,包含资源创建失败、调度异常,JOB超时等,正常运行下该Event值为空

  • RequestId:

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



8520
8521
8522
# File 'lib/v20210125/models.rb', line 8520

def Tasks
  @Tasks
end

Instance Method Details

#deserialize(params) ⇒ Object



8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
# File 'lib/v20210125/models.rb', line 8529

def deserialize(params)
  @State = params['State']
  unless params['Tasks'].nil?
    @Tasks = []
    params['Tasks'].each do |i|
      batchsqltask_tmp = BatchSqlTask.new
      batchsqltask_tmp.deserialize(i)
      @Tasks << batchsqltask_tmp
    end
  end
  @Event = params['Event']
  @RequestId = params['RequestId']
end