Class: TencentCloud::Tke::V20180525::CreateClusterVirtualNodePoolRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreateClusterVirtualNodePoolRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreateClusterVirtualNodePool请求参数结构体
Instance Attribute Summary collapse
-
#ClusterId ⇒ Object
-
linux(默认) - windows.
-
-
#DeletionProtection ⇒ Object
-
linux(默认) - windows.
-
-
#Labels ⇒ Object
-
linux(默认) - windows.
-
-
#Name ⇒ Object
-
linux(默认) - windows.
-
-
#OS ⇒ Object
-
linux(默认) - windows.
-
-
#SecurityGroupIds ⇒ Object
-
linux(默认) - windows.
-
-
#SubnetIds ⇒ Object
-
linux(默认) - windows.
-
-
#Taints ⇒ Object
-
linux(默认) - windows.
-
-
#VirtualNodes ⇒ Object
-
linux(默认) - windows.
-
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, name = nil, subnetids = nil, securitygroupids = nil, labels = nil, taints = nil, virtualnodes = nil, deletionprotection = nil, os = nil) ⇒ CreateClusterVirtualNodePoolRequest
constructor
A new instance of CreateClusterVirtualNodePoolRequest.
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
#ClusterId ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def Labels @Labels end |
#Name ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def Name @Name end |
#OS ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def OS @OS end |
#SecurityGroupIds ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def SecurityGroupIds @SecurityGroupIds end |
#SubnetIds ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def SubnetIds @SubnetIds end |
#Taints ⇒ Object
-
linux(默认)
-
windows
2530 2531 2532 |
# File 'lib/v20180525/models.rb', line 2530 def Taints @Taints end |
#VirtualNodes ⇒ Object
-
linux(默认)
-
windows
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 |