Class: TencentCloud::Tke::V20180525::GetUpgradeInstanceProgressResponse

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

Overview

GetUpgradeInstanceProgress返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, done = nil, lifestate = nil, instances = nil, clusterstatus = nil, requestid = nil) ⇒ GetUpgradeInstanceProgressResponse



13180
13181
13182
13183
13184
13185
13186
13187
# File 'lib/v20180525/models.rb', line 13180

def initialize(total=nil, done=nil, lifestate=nil, instances=nil, clusterstatus=nil, requestid=nil)
  @Total = total
  @Done = done
  @LifeState = lifestate
  @Instances = instances
  @ClusterStatus = clusterstatus
  @RequestId = requestid
end

Instance Attribute Details

#ClusterStatusObject

pending 还未开始process 运行中paused 已停止pauing 正在停止done 已完成timeout 已超时aborted 已取消



13178
13179
13180
# File 'lib/v20180525/models.rb', line 13178

def ClusterStatus
  @ClusterStatus
end

#DoneObject

pending 还未开始process 运行中paused 已停止pauing 正在停止done 已完成timeout 已超时aborted 已取消



13178
13179
13180
# File 'lib/v20180525/models.rb', line 13178

def Done
  @Done
end

#InstancesObject

pending 还未开始process 运行中paused 已停止pauing 正在停止done 已完成timeout 已超时aborted 已取消



13178
13179
13180
# File 'lib/v20180525/models.rb', line 13178

def Instances
  @Instances
end

#LifeStateObject

pending 还未开始process 运行中paused 已停止pauing 正在停止done 已完成timeout 已超时aborted 已取消



13178
13179
13180
# File 'lib/v20180525/models.rb', line 13178

def LifeState
  @LifeState
end

#RequestIdObject

pending 还未开始process 运行中paused 已停止pauing 正在停止done 已完成timeout 已超时aborted 已取消



13178
13179
13180
# File 'lib/v20180525/models.rb', line 13178

def RequestId
  @RequestId
end

#TotalObject

pending 还未开始process 运行中paused 已停止pauing 正在停止done 已完成timeout 已超时aborted 已取消



13178
13179
13180
# File 'lib/v20180525/models.rb', line 13178

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
# File 'lib/v20180525/models.rb', line 13189

def deserialize(params)
  @Total = params['Total']
  @Done = params['Done']
  @LifeState = params['LifeState']
  unless params['Instances'].nil?
    @Instances = []
    params['Instances'].each do |i|
      instanceupgradeprogressitem_tmp = InstanceUpgradeProgressItem.new
      instanceupgradeprogressitem_tmp.deserialize(i)
      @Instances << instanceupgradeprogressitem_tmp
    end
  end
  unless params['ClusterStatus'].nil?
    @ClusterStatus = InstanceUpgradeClusterStatus.new
    @ClusterStatus.deserialize(params['ClusterStatus'])
  end
  @RequestId = params['RequestId']
end