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.



18517
18518
18519
18520
18521
18522
# File 'lib/v20180525/models.rb', line 18517

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:

    节点是否需要移出保护



18515
18516
18517
# File 'lib/v20180525/models.rb', line 18515

def ClusterId
  @ClusterId
end

#InstanceIdsObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18515
18516
18517
# File 'lib/v20180525/models.rb', line 18515

def InstanceIds
  @InstanceIds
end

#NodePoolIdObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18515
18516
18517
# File 'lib/v20180525/models.rb', line 18515

def NodePoolId
  @NodePoolId
end

#ProtectedFromScaleInObject

Parameters:

  • ClusterId:

    集群id

  • NodePoolId:

    节点池id

  • InstanceIds:

    节点id

  • ProtectedFromScaleIn:

    节点是否需要移出保护



18515
18516
18517
# File 'lib/v20180525/models.rb', line 18515

def ProtectedFromScaleIn
  @ProtectedFromScaleIn
end

Instance Method Details

#deserialize(params) ⇒ Object



18524
18525
18526
18527
18528
18529
# File 'lib/v20180525/models.rb', line 18524

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