Class: TencentCloud::Dts::V20211206::SubscribeCheckStepInfo

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

Overview

订阅校验任务的各步骤信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stepname = nil, stepid = nil, stepno = nil, status = nil, percent = nil, errors = nil, warnings = nil) ⇒ SubscribeCheckStepInfo

Returns a new instance of SubscribeCheckStepInfo.



7213
7214
7215
7216
7217
7218
7219
7220
7221
# File 'lib/v20211206/models.rb', line 7213

def initialize(stepname=nil, stepid=nil, stepno=nil, status=nil, percent=nil, errors=nil, warnings=nil)
  @StepName = stepname
  @StepId = stepid
  @StepNo = stepno
  @Status = status
  @Percent = percent
  @Errors = errors
  @Warnings = warnings
end

Instance Attribute Details

#ErrorsObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def Errors
  @Errors
end

#PercentObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def Percent
  @Percent
end

#StatusObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def Status
  @Status
end

#StepIdObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def StepId
  @StepId
end

#StepNameObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def StepName
  @StepName
end

#StepNoObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def StepNo
  @StepNo
end

#WarningsObject

Parameters:

  • 步骤名称

  • 步骤Id

  • 步骤编号,从 1 开始

  • 当前步骤状态,可能值为 notStarted-未开始,running-运行中,finished-已完成,failed-失败,unknown-未知

  • 当前步骤进度

  • 错误提示

  • 告警提示



7211
7212
7213
# File 'lib/v20211206/models.rb', line 7211

def Warnings
  @Warnings
end

Instance Method Details

#deserialize(params) ⇒ Object



7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
# File 'lib/v20211206/models.rb', line 7223

def deserialize(params)
  @StepName = params['StepName']
  @StepId = params['StepId']
  @StepNo = params['StepNo']
  @Status = params['Status']
  @Percent = params['Percent']
  unless params['Errors'].nil?
    @Errors = []
    params['Errors'].each do |i|
      subscribechecksteptip_tmp = SubscribeCheckStepTip.new
      subscribechecksteptip_tmp.deserialize(i)
      @Errors << subscribechecksteptip_tmp
    end
  end
  unless params['Warnings'].nil?
    @Warnings = []
    params['Warnings'].each do |i|
      subscribechecksteptip_tmp = SubscribeCheckStepTip.new
      subscribechecksteptip_tmp.deserialize(i)
      @Warnings << subscribechecksteptip_tmp
    end
  end
end