Class: TencentCloud::Tke::V20220501::CreateNodePoolRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::CreateNodePoolRequest
- Defined in:
- lib/v20220501/models.rb
Overview
CreateNodePool请求参数结构体
Instance Attribute Summary collapse
- #Annotations ⇒ Object
- #ClusterId ⇒ Object
- #DeletionProtection ⇒ Object
- #Labels ⇒ Object
- #Name ⇒ Object
- #Native ⇒ Object
- #Tags ⇒ Object
- #Taints ⇒ Object
- #Type ⇒ Object
- #Unschedulable ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, name = nil, type = nil, labels = nil, taints = nil, tags = nil, deletionprotection = nil, unschedulable = nil, native = nil, annotations = nil) ⇒ CreateNodePoolRequest
constructor
A new instance of CreateNodePoolRequest.
Constructor Details
#initialize(clusterid = nil, name = nil, type = nil, labels = nil, taints = nil, tags = nil, deletionprotection = nil, unschedulable = nil, native = nil, annotations = nil) ⇒ CreateNodePoolRequest
Returns a new instance of CreateNodePoolRequest.
359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'lib/v20220501/models.rb', line 359 def initialize(clusterid=nil, name=nil, type=nil, labels=nil, taints=nil, =nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil) @ClusterId = clusterid @Name = name @Type = type @Labels = labels @Taints = taints @Tags = @DeletionProtection = deletionprotection @Unschedulable = unschedulable @Native = native @Annotations = annotations end |
Instance Attribute Details
#Annotations ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Annotations @Annotations end |
#ClusterId ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Labels @Labels end |
#Name ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Name @Name end |
#Native ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Native @Native end |
#Tags ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Tags @Tags end |
#Taints ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Taints @Taints end |
#Type ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Type @Type end |
#Unschedulable ⇒ Object
357 358 359 |
# File 'lib/v20220501/models.rb', line 357 def Unschedulable @Unschedulable end |
Instance Method Details
#deserialize(params) ⇒ Object
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/v20220501/models.rb', line 372 def deserialize(params) @ClusterId = params['ClusterId'] @Name = params['Name'] @Type = params['Type'] 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['Tags'].nil? @Tags = [] params['Tags'].each do |i| = TagSpecification.new .deserialize(i) @Tags << end end @DeletionProtection = params['DeletionProtection'] @Unschedulable = params['Unschedulable'] unless params['Native'].nil? @Native = CreateNativeNodePoolParam.new @Native.deserialize(params['Native']) end unless params['Annotations'].nil? @Annotations = [] params['Annotations'].each do |i| annotation_tmp = Annotation.new annotation_tmp.deserialize(i) @Annotations << annotation_tmp end end end |