Class: TencentCloud::Tke::V20180525::CreateClusterNodePoolRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreateClusterNodePoolRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreateClusterNodePool请求参数结构体
Instance Attribute Summary collapse
- #Annotations ⇒ Object
- #AutoScalingGroupPara ⇒ Object
- #ClusterId ⇒ Object
- #ContainerRuntime ⇒ Object
- #DeletionProtection ⇒ Object
- #EnableAutoscale ⇒ Object
- #InstanceAdvancedSettings ⇒ Object
- #Labels ⇒ Object
- #LaunchConfigurePara ⇒ Object
- #Name ⇒ Object
- #NodePoolOs ⇒ Object
- #OsCustomizeType ⇒ Object
- #RuntimeVersion ⇒ Object
- #Tags ⇒ Object
- #Taints ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, autoscalinggrouppara = nil, launchconfigurepara = nil, instanceadvancedsettings = nil, enableautoscale = nil, name = nil, labels = nil, taints = nil, annotations = nil, containerruntime = nil, runtimeversion = nil, nodepoolos = nil, oscustomizetype = nil, tags = nil, deletionprotection = nil) ⇒ CreateClusterNodePoolRequest
constructor
A new instance of CreateClusterNodePoolRequest.
Constructor Details
#initialize(clusterid = nil, autoscalinggrouppara = nil, launchconfigurepara = nil, instanceadvancedsettings = nil, enableautoscale = nil, name = nil, labels = nil, taints = nil, annotations = nil, containerruntime = nil, runtimeversion = nil, nodepoolos = nil, oscustomizetype = nil, tags = nil, deletionprotection = nil) ⇒ CreateClusterNodePoolRequest
Returns a new instance of CreateClusterNodePoolRequest.
2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 |
# File 'lib/v20180525/models.rb', line 2364 def initialize(clusterid=nil, autoscalinggrouppara=nil, launchconfigurepara=nil, instanceadvancedsettings=nil, enableautoscale=nil, name=nil, labels=nil, taints=nil, annotations=nil, containerruntime=nil, runtimeversion=nil, nodepoolos=nil, oscustomizetype=nil, =nil, deletionprotection=nil) @ClusterId = clusterid @AutoScalingGroupPara = autoscalinggrouppara @LaunchConfigurePara = launchconfigurepara @InstanceAdvancedSettings = instanceadvancedsettings @EnableAutoscale = enableautoscale @Name = name @Labels = labels @Taints = taints @Annotations = annotations @ContainerRuntime = containerruntime @RuntimeVersion = runtimeversion @NodePoolOs = nodepoolos @OsCustomizeType = oscustomizetype @Tags = @DeletionProtection = deletionprotection end |
Instance Attribute Details
#Annotations ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def Annotations @Annotations end |
#AutoScalingGroupPara ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def AutoScalingGroupPara @AutoScalingGroupPara end |
#ClusterId ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def ClusterId @ClusterId end |
#ContainerRuntime ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def ContainerRuntime @ContainerRuntime end |
#DeletionProtection ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def DeletionProtection @DeletionProtection end |
#EnableAutoscale ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def EnableAutoscale @EnableAutoscale end |
#InstanceAdvancedSettings ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def InstanceAdvancedSettings @InstanceAdvancedSettings end |
#Labels ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def Labels @Labels end |
#LaunchConfigurePara ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def LaunchConfigurePara @LaunchConfigurePara end |
#Name ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def Name @Name end |
#NodePoolOs ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def NodePoolOs @NodePoolOs end |
#OsCustomizeType ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def OsCustomizeType @OsCustomizeType end |
#RuntimeVersion ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def RuntimeVersion @RuntimeVersion end |
#Tags ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def Tags @Tags end |
#Taints ⇒ Object
2362 2363 2364 |
# File 'lib/v20180525/models.rb', line 2362 def Taints @Taints end |
Instance Method Details
#deserialize(params) ⇒ Object
2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 |
# File 'lib/v20180525/models.rb', line 2382 def deserialize(params) @ClusterId = params['ClusterId'] @AutoScalingGroupPara = params['AutoScalingGroupPara'] @LaunchConfigurePara = params['LaunchConfigurePara'] unless params['InstanceAdvancedSettings'].nil? @InstanceAdvancedSettings = InstanceAdvancedSettings.new @InstanceAdvancedSettings.deserialize(params['InstanceAdvancedSettings']) end @EnableAutoscale = params['EnableAutoscale'] @Name = params['Name'] 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['Annotations'].nil? @Annotations = [] params['Annotations'].each do |i| annotationvalue_tmp = AnnotationValue.new annotationvalue_tmp.deserialize(i) @Annotations << annotationvalue_tmp end end @ContainerRuntime = params['ContainerRuntime'] @RuntimeVersion = params['RuntimeVersion'] @NodePoolOs = params['NodePoolOs'] @OsCustomizeType = params['OsCustomizeType'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @DeletionProtection = params['DeletionProtection'] end |