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.
2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 |
# File 'lib/v20220501/models.rb', line 2068 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
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Annotations @Annotations end |
#ClusterId ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def DeletionProtection @DeletionProtection end |
#Labels ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Labels @Labels end |
#Name ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Name @Name end |
#Native ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Native @Native end |
#NodePoolId ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def NodePoolId @NodePoolId end |
#Tags ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Tags @Tags end |
#Taints ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Taints @Taints end |
#Unschedulable ⇒ Object
2066 2067 2068 |
# File 'lib/v20220501/models.rb', line 2066 def Unschedulable @Unschedulable end |
Instance Method Details
#deserialize(params) ⇒ Object
2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 |
# File 'lib/v20220501/models.rb', line 2081 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 |