Class: TencentCloud::Tke::V20180525::SetNodePoolNodeProtectionRequest

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

Overview

SetNodePoolNodeProtection请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, nodepoolid = nil, instanceids = nil, protectedfromscalein = nil) ⇒ SetNodePoolNodeProtectionRequest

Returns a new instance of SetNodePoolNodeProtectionRequest.



18181
18182
18183
18184
18185
18186
# File 'lib/v20180525/models.rb', line 18181

def initialize(clusterid=nil, nodepoolid=nil, instanceids=nil, protectedfromscalein=nil)
  @ClusterId = clusterid
  @NodePoolId = nodepoolid
  @InstanceIds = instanceids
  @ProtectedFromScaleIn = protectedfromscalein
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18179
18180
18181
# File 'lib/v20180525/models.rb', line 18179

def ClusterId
  @ClusterId
end

#InstanceIdsObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18179
18180
18181
# File 'lib/v20180525/models.rb', line 18179

def InstanceIds
  @InstanceIds
end

#NodePoolIdObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18179
18180
18181
# File 'lib/v20180525/models.rb', line 18179

def NodePoolId
  @NodePoolId
end

#ProtectedFromScaleInObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18179
18180
18181
# File 'lib/v20180525/models.rb', line 18179

def ProtectedFromScaleIn
  @ProtectedFromScaleIn
end

Instance Method Details

#deserialize(params) ⇒ Object



18188
18189
18190
18191
18192
18193
# File 'lib/v20180525/models.rb', line 18188

def deserialize(params)
  @ClusterId = params['ClusterId']
  @NodePoolId = params['NodePoolId']
  @InstanceIds = params['InstanceIds']
  @ProtectedFromScaleIn = params['ProtectedFromScaleIn']
end