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.



1109
1110
1111
1112
1113
1114
1115
# File 'lib/v20180525/models.rb', line 1109

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:

    创建时间



1107
1108
1109
# File 'lib/v20180525/models.rb', line 1107

def AutoScalingGroupId
  @AutoScalingGroupId
end

#CreatedTimeObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

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

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1107
1108
1109
# File 'lib/v20180525/models.rb', line 1107

def CreatedTime
  @CreatedTime
end

#IsUnschedulableObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

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

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1107
1108
1109
# File 'lib/v20180525/models.rb', line 1107

def IsUnschedulable
  @IsUnschedulable
end

#LabelsObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

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

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1107
1108
1109
# File 'lib/v20180525/models.rb', line 1107

def Labels
  @Labels
end

#StatusObject

Parameters:

  • AutoScalingGroupId:

    伸缩组ID

  • Status:

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

  • IsUnschedulable:

    节点是否设置成不可调度

  • Labels:

    伸缩组的label列表

  • CreatedTime:

    创建时间



1107
1108
1109
# File 'lib/v20180525/models.rb', line 1107

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'lib/v20180525/models.rb', line 1117

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