Class: TencentCloud::Tke::V20180525::ModifyClusterVirtualNodePoolRequest

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

Overview

ModifyClusterVirtualNodePool请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, nodepoolid = nil, name = nil, securitygroupids = nil, labels = nil, taints = nil, deletionprotection = nil) ⇒ ModifyClusterVirtualNodePoolRequest

Returns a new instance of ModifyClusterVirtualNodePoolRequest.



14292
14293
14294
14295
14296
14297
14298
14299
14300
# File 'lib/v20180525/models.rb', line 14292

def initialize(clusterid=nil, nodepoolid=nil, name=nil, securitygroupids=nil, labels=nil, taints=nil, deletionprotection=nil)
  @ClusterId = clusterid
  @NodePoolId = nodepoolid
  @Name = name
  @SecurityGroupIds = securitygroupids
  @Labels = labels
  @Taints = taints
  @DeletionProtection = deletionprotection
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def ClusterId
  @ClusterId
end

#DeletionProtectionObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def DeletionProtection
  @DeletionProtection
end

#LabelsObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def Labels
  @Labels
end

#NameObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def Name
  @Name
end

#NodePoolIdObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def NodePoolId
  @NodePoolId
end

#SecurityGroupIdsObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def SecurityGroupIds
  @SecurityGroupIds
end

#TaintsObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    节点池ID

  • Name:

    节点池名称

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • DeletionProtection:

    删除保护开关



14290
14291
14292
# File 'lib/v20180525/models.rb', line 14290

def Taints
  @Taints
end

Instance Method Details

#deserialize(params) ⇒ Object



14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
# File 'lib/v20180525/models.rb', line 14302

def deserialize(params)
  @ClusterId = params['ClusterId']
  @NodePoolId = params['NodePoolId']
  @Name = params['Name']
  @SecurityGroupIds = params['SecurityGroupIds']
  unless params['Labels'].nil?
    @Labels = []
    params['Labels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @Labels << label_tmp
    end
  end
  unless params['Taints'].nil?
    @Taints = []
    params['Taints'].each do |i|
      taint_tmp = Taint.new
      taint_tmp.deserialize(i)
      @Taints << taint_tmp
    end
  end
  @DeletionProtection = params['DeletionProtection']
end