Class: TencentCloud::Tke::V20180525::CreateClusterVirtualNodePoolRequest

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

Overview

CreateClusterVirtualNodePool请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, name = nil, subnetids = nil, securitygroupids = nil, labels = nil, taints = nil, virtualnodes = nil, deletionprotection = nil, os = nil) ⇒ CreateClusterVirtualNodePoolRequest

Returns a new instance of CreateClusterVirtualNodePoolRequest.



2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
# File 'lib/v20180525/models.rb', line 2532

def initialize(clusterid=nil, name=nil, subnetids=nil, securitygroupids=nil, labels=nil, taints=nil, virtualnodes=nil, deletionprotection=nil, os=nil)
  @ClusterId = clusterid
  @Name = name
  @SubnetIds = subnetids
  @SecurityGroupIds = securitygroupids
  @Labels = labels
  @Taints = taints
  @VirtualNodes = virtualnodes
  @DeletionProtection = deletionprotection
  @OS = os
end

Instance Attribute Details

#ClusterIdObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def ClusterId
  @ClusterId
end

#DeletionProtectionObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def DeletionProtection
  @DeletionProtection
end

#LabelsObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def Labels
  @Labels
end

#NameObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def Name
  @Name
end

#OSObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def OS
  @OS
end

#SecurityGroupIdsObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def SecurityGroupIds
  @SecurityGroupIds
end

#SubnetIdsObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def SubnetIds
  @SubnetIds
end

#TaintsObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def Taints
  @Taints
end

#VirtualNodesObject

  • linux(默认)

  • windows

Parameters:

  • ClusterId:

    集群Id

  • Name:

    节点池名称

  • SubnetIds:

    子网ID列表

  • SecurityGroupIds:

    安全组ID列表

  • Labels:

    虚拟节点label

  • Taints:

    虚拟节点taint

  • VirtualNodes:

    节点列表

  • DeletionProtection:

    删除保护开关

  • OS:

    节点池操作系统:



2530
2531
2532
# File 'lib/v20180525/models.rb', line 2530

def VirtualNodes
  @VirtualNodes
end

Instance Method Details

#deserialize(params) ⇒ Object



2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
# File 'lib/v20180525/models.rb', line 2544

def deserialize(params)
  @ClusterId = params['ClusterId']
  @Name = params['Name']
  @SubnetIds = params['SubnetIds']
  @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
  unless params['VirtualNodes'].nil?
    @VirtualNodes = []
    params['VirtualNodes'].each do |i|
      virtualnodespec_tmp = VirtualNodeSpec.new
      virtualnodespec_tmp.deserialize(i)
      @VirtualNodes << virtualnodespec_tmp
    end
  end
  @DeletionProtection = params['DeletionProtection']
  @OS = params['OS']
end