Class: TencentCloud::Tke::V20220501::ModifyNodePoolRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::ModifyNodePoolRequest
- Defined in:
- lib/v20220501/models.rb
Overview
ModifyNodePool请求参数结构体
Instance Attribute Summary collapse
- #Annotations ⇒ Object
- #ClusterId ⇒ Object
- #DeletionProtection ⇒ Object
- #Labels ⇒ Object
- #Name ⇒ Object
- #Native ⇒ Object
- #NodePoolId ⇒ Object
- #Tags ⇒ Object
- #Taints ⇒ Object
- #Unschedulable ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, nodepoolid = nil, name = nil, labels = nil, taints = nil, tags = nil, deletionprotection = nil, unschedulable = nil, native = nil, annotations = nil) ⇒ ModifyNodePoolRequest
constructor
A new instance of ModifyNodePoolRequest.
Constructor Details
#initialize(clusterid = nil, nodepoolid = nil, name = nil, labels = nil, taints = nil, tags = nil, deletionprotection = nil, unschedulable = nil, native = nil, annotations = nil) ⇒ ModifyNodePoolRequest
Returns a new instance of ModifyNodePoolRequest.
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 |
# File 'lib/v20220501/models.rb', line 1534 def initialize(clusterid=nil, nodepoolid=nil, name=nil, labels=nil, taints=nil, =nil, deletionprotection=nil, unschedulable=nil, native=nil, annotations=nil) @ClusterId = clusterid @NodePoolId = nodepoolid @Name = name @Labels = labels @Taints = taints @Tags = @DeletionProtection = deletionprotection @Unschedulable = unschedulable @Native = native @Annotations = annotations end |
Instance Attribute Details
#Annotations ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Annotations @Annotations end |
#ClusterId ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Labels @Labels end |
#Name ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Name @Name end |
#Native ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Native @Native end |
#NodePoolId ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def NodePoolId @NodePoolId end |
#Tags ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Tags @Tags end |
#Taints ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Taints @Taints end |
#Unschedulable ⇒ Object
1532 1533 1534 |
# File 'lib/v20220501/models.rb', line 1532 def Unschedulable @Unschedulable end |
Instance Method Details
#deserialize(params) ⇒ Object
1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 |
# File 'lib/v20220501/models.rb', line 1547 def deserialize(params) @ClusterId = params['ClusterId'] @NodePoolId = params['NodePoolId'] @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['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 = UpdateNativeNodePoolParam.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 |