Class: TencentCloud::Tke::V20180525::CreateClusterVirtualNodeRequest

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

Overview

CreateClusterVirtualNode请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, nodepoolid = nil, subnetid = nil, subnetids = nil, virtualnodes = nil) ⇒ CreateClusterVirtualNodeRequest

Returns a new instance of CreateClusterVirtualNodeRequest.



2613
2614
2615
2616
2617
2618
2619
# File 'lib/v20180525/models.rb', line 2613

def initialize(clusterid=nil, nodepoolid=nil, subnetid=nil, subnetids=nil, virtualnodes=nil)
  @ClusterId = clusterid
  @NodePoolId = nodepoolid
  @SubnetId = subnetid
  @SubnetIds = subnetids
  @VirtualNodes = virtualnodes
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    虚拟节点所属节点池

  • SubnetId:

    虚拟节点所属子网

  • SubnetIds:

    虚拟节点子网ID列表,和参数SubnetId互斥

  • VirtualNodes:

    虚拟节点列表



2611
2612
2613
# File 'lib/v20180525/models.rb', line 2611

def ClusterId
  @ClusterId
end

#NodePoolIdObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    虚拟节点所属节点池

  • SubnetId:

    虚拟节点所属子网

  • SubnetIds:

    虚拟节点子网ID列表,和参数SubnetId互斥

  • VirtualNodes:

    虚拟节点列表



2611
2612
2613
# File 'lib/v20180525/models.rb', line 2611

def NodePoolId
  @NodePoolId
end

#SubnetIdObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    虚拟节点所属节点池

  • SubnetId:

    虚拟节点所属子网

  • SubnetIds:

    虚拟节点子网ID列表,和参数SubnetId互斥

  • VirtualNodes:

    虚拟节点列表



2611
2612
2613
# File 'lib/v20180525/models.rb', line 2611

def SubnetId
  @SubnetId
end

#SubnetIdsObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    虚拟节点所属节点池

  • SubnetId:

    虚拟节点所属子网

  • SubnetIds:

    虚拟节点子网ID列表,和参数SubnetId互斥

  • VirtualNodes:

    虚拟节点列表



2611
2612
2613
# File 'lib/v20180525/models.rb', line 2611

def SubnetIds
  @SubnetIds
end

#VirtualNodesObject

Parameters:

  • ClusterId:

    集群ID

  • NodePoolId:

    虚拟节点所属节点池

  • SubnetId:

    虚拟节点所属子网

  • SubnetIds:

    虚拟节点子网ID列表,和参数SubnetId互斥

  • VirtualNodes:

    虚拟节点列表



2611
2612
2613
# File 'lib/v20180525/models.rb', line 2611

def VirtualNodes
  @VirtualNodes
end

Instance Method Details

#deserialize(params) ⇒ Object



2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
# File 'lib/v20180525/models.rb', line 2621

def deserialize(params)
  @ClusterId = params['ClusterId']
  @NodePoolId = params['NodePoolId']
  @SubnetId = params['SubnetId']
  @SubnetIds = params['SubnetIds']
  unless params['VirtualNodes'].nil?
    @VirtualNodes = []
    params['VirtualNodes'].each do |i|
      virtualnodespec_tmp = VirtualNodeSpec.new
      virtualnodespec_tmp.deserialize(i)
      @VirtualNodes << virtualnodespec_tmp
    end
  end
end