Class: TencentCloud::Tke::V20180525::CreateClusterVirtualNodeRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreateClusterVirtualNodeRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreateClusterVirtualNode请求参数结构体
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #NodePoolId ⇒ Object
- #SubnetId ⇒ Object
- #SubnetIds ⇒ Object
- #VirtualNodes ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, nodepoolid = nil, subnetid = nil, subnetids = nil, virtualnodes = nil) ⇒ CreateClusterVirtualNodeRequest
constructor
A new instance of CreateClusterVirtualNodeRequest.
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
#ClusterId ⇒ Object
2611 2612 2613 |
# File 'lib/v20180525/models.rb', line 2611 def ClusterId @ClusterId end |
#NodePoolId ⇒ Object
2611 2612 2613 |
# File 'lib/v20180525/models.rb', line 2611 def NodePoolId @NodePoolId end |
#SubnetId ⇒ Object
2611 2612 2613 |
# File 'lib/v20180525/models.rb', line 2611 def SubnetId @SubnetId end |
#SubnetIds ⇒ Object
2611 2612 2613 |
# File 'lib/v20180525/models.rb', line 2611 def SubnetIds @SubnetIds end |
#VirtualNodes ⇒ Object
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 |