Class: TencentCloud::Tke::V20180525::ScaleInMaster

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

Overview

master节点缩容参数

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, noderole = nil, instancedeletemode = nil) ⇒ ScaleInMaster

Returns a new instance of ScaleInMaster.



18035
18036
18037
18038
18039
# File 'lib/v20180525/models.rb', line 18035

def initialize(instanceid=nil, noderole=nil, instancedeletemode=nil)
  @InstanceId = instanceid
  @NodeRole = noderole
  @InstanceDeleteMode = instancedeletemode
end

Instance Attribute Details

#InstanceDeleteModeObject

Parameters:

  • InstanceId:

    实例ID

  • NodeRole:

    缩容的实例角色:MASTER,ETCD,MASTER_ETCD

  • InstanceDeleteMode:

    实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)



18033
18034
18035
# File 'lib/v20180525/models.rb', line 18033

def InstanceDeleteMode
  @InstanceDeleteMode
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID

  • NodeRole:

    缩容的实例角色:MASTER,ETCD,MASTER_ETCD

  • InstanceDeleteMode:

    实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)



18033
18034
18035
# File 'lib/v20180525/models.rb', line 18033

def InstanceId
  @InstanceId
end

#NodeRoleObject

Parameters:

  • InstanceId:

    实例ID

  • NodeRole:

    缩容的实例角色:MASTER,ETCD,MASTER_ETCD

  • InstanceDeleteMode:

    实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例) retain (仅移除,保留实例)



18033
18034
18035
# File 'lib/v20180525/models.rb', line 18033

def NodeRole
  @NodeRole
end

Instance Method Details

#deserialize(params) ⇒ Object



18041
18042
18043
18044
18045
# File 'lib/v20180525/models.rb', line 18041

def deserialize(params)
  @InstanceId = params['InstanceId']
  @NodeRole = params['NodeRole']
  @InstanceDeleteMode = params['InstanceDeleteMode']
end