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.
287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/v20220501/models.rb', line 287 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
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Annotations @Annotations end |
#ClusterId ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Labels @Labels end |
#Name ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Name @Name end |
#Native ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Native @Native end |
#Tags ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Tags @Tags end |
#Taints ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Taints @Taints end |
#Type ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Type @Type end |
#Unschedulable ⇒ Object
285 286 287 |
# File 'lib/v20220501/models.rb', line 285 def Unschedulable @Unschedulable end |
Instance Method Details
#deserialize(params) ⇒ Object
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/v20220501/models.rb', line 300 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 |