Class: TencentCloud::Cdb::V20170320::RollbackTask

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

Overview

回档任务详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info = nil, status = nil, progress = nil, starttime = nil, endtime = nil, detail = nil) ⇒ RollbackTask

Returns a new instance of RollbackTask.



13336
13337
13338
13339
13340
13341
13342
13343
# File 'lib/v20170320/models.rb', line 13336

def initialize(info=nil, status=nil, progress=nil, starttime=nil, endtime=nil, detail=nil)
  @Info = info
  @Status = status
  @Progress = progress
  @StartTime = starttime
  @EndTime = endtime
  @Detail = detail
end

Instance Attribute Details

#DetailObject

Parameters:

  • Info:

    任务执行信息描述。

  • Status:

    任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。

  • Progress:

    任务执行进度。取值范围为[0, 100]。

  • StartTime:

    任务开始时间。

  • EndTime:

    任务结束时间。

  • Detail:

    回档任务详情。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def Detail
  @Detail
end

#EndTimeObject

Parameters:

  • Info:

    任务执行信息描述。

  • Status:

    任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。

  • Progress:

    任务执行进度。取值范围为[0, 100]。

  • StartTime:

    任务开始时间。

  • EndTime:

    任务结束时间。

  • Detail:

    回档任务详情。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def EndTime
  @EndTime
end

#InfoObject

Parameters:

  • Info:

    任务执行信息描述。

  • Status:

    任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。

  • Progress:

    任务执行进度。取值范围为[0, 100]。

  • StartTime:

    任务开始时间。

  • EndTime:

    任务结束时间。

  • Detail:

    回档任务详情。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def Info
  @Info
end

#ProgressObject

Parameters:

  • Info:

    任务执行信息描述。

  • Status:

    任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。

  • Progress:

    任务执行进度。取值范围为[0, 100]。

  • StartTime:

    任务开始时间。

  • EndTime:

    任务结束时间。

  • Detail:

    回档任务详情。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def Progress
  @Progress
end

#StartTimeObject

Parameters:

  • Info:

    任务执行信息描述。

  • Status:

    任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。

  • Progress:

    任务执行进度。取值范围为[0, 100]。

  • StartTime:

    任务开始时间。

  • EndTime:

    任务结束时间。

  • Detail:

    回档任务详情。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def StartTime
  @StartTime
end

#StatusObject

Parameters:

  • Info:

    任务执行信息描述。

  • Status:

    任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。

  • Progress:

    任务执行进度。取值范围为[0, 100]。

  • StartTime:

    任务开始时间。

  • EndTime:

    任务结束时间。

  • Detail:

    回档任务详情。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
# File 'lib/v20170320/models.rb', line 13345

def deserialize(params)
  @Info = params['Info']
  @Status = params['Status']
  @Progress = params['Progress']
  @StartTime = params['StartTime']
  @EndTime = params['EndTime']
  unless params['Detail'].nil?
    @Detail = []
    params['Detail'].each do |i|
      rollbackinstancesinfo_tmp = RollbackInstancesInfo.new
      rollbackinstancesinfo_tmp.deserialize(i)
      @Detail << rollbackinstancesinfo_tmp
    end
  end
end