Class: TencentCloud::Tke::V20180525::ClusterAsGroup

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

Overview

集群关联的伸缩组信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(autoscalinggroupid = nil, status = nil, isunschedulable = nil, labels = nil, createdtime = nil) ⇒ ClusterAsGroup

Returns a new instance of ClusterAsGroup.



1101
1102
1103
1104
1105
1106
1107
# File 'lib/v20180525/models.rb', line 1101

def initialize(autoscalinggroupid=nil, status=nil, isunschedulable=nil, labels=nil, createdtime=nil)
  @AutoScalingGroupId = autoscalinggroupid
  @Status = status
  @IsUnschedulable = isunschedulable
  @Labels = labels
  @CreatedTime = createdtime
end

Instance Attribute Details

#AutoScalingGroupIdObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

    伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling)

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1099
1100
1101
# File 'lib/v20180525/models.rb', line 1099

def AutoScalingGroupId
  @AutoScalingGroupId
end

#CreatedTimeObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

    伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling)

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1099
1100
1101
# File 'lib/v20180525/models.rb', line 1099

def CreatedTime
  @CreatedTime
end

#IsUnschedulableObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

    伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling)

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1099
1100
1101
# File 'lib/v20180525/models.rb', line 1099

def IsUnschedulable
  @IsUnschedulable
end

#LabelsObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

    伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling)

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1099
1100
1101
# File 'lib/v20180525/models.rb', line 1099

def Labels
  @Labels
end

#StatusObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

    伸缩组状态(开启 enabled 开启中 enabling 关闭 disabled 关闭中 disabling 更新中 updating 删除中 deleting 开启缩容中 scaleDownEnabling 关闭缩容中 scaleDownDisabling)

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1099
1100
1101
# File 'lib/v20180525/models.rb', line 1099

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
# File 'lib/v20180525/models.rb', line 1109

def deserialize(params)
  @AutoScalingGroupId = params['AutoScalingGroupId']
  @Status = params['Status']
  @IsUnschedulable = params['IsUnschedulable']
  unless params['Labels'].nil?
    @Labels = []
    params['Labels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Labels << label_tmp
    end
  end
  @CreatedTime = params['CreatedTime']
end