Class: TencentCloud::Tke::V20180525::ModifyClusterNodePoolRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ModifyClusterNodePoolRequest
- Defined in:
- lib/v20180525/models.rb
Overview
ModifyClusterNodePool请求参数结构体
Instance Attribute Summary collapse
- #Annotations ⇒ Object
- #ClusterId ⇒ Object
- #DeletionProtection ⇒ Object
- #DockerGraphPath ⇒ Object
- #EnableAutoscale ⇒ Object
- #ExtraArgs ⇒ Object
- #GPUArgs ⇒ Object
- #IgnoreExistedNode ⇒ Object
- #Labels ⇒ Object
- #MaxNodesNum ⇒ Object
- #MinNodesNum ⇒ Object
- #Name ⇒ Object
- #NodePoolId ⇒ Object
- #OsCustomizeType ⇒ Object
- #OsName ⇒ Object
- #PreStartUserScript ⇒ Object
- #Tags ⇒ Object
- #Taints ⇒ Object
- #Unschedulable ⇒ Object
- #UserScript ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, nodepoolid = nil, name = nil, maxnodesnum = nil, minnodesnum = nil, labels = nil, taints = nil, annotations = nil, enableautoscale = nil, osname = nil, oscustomizetype = nil, gpuargs = nil, userscript = nil, ignoreexistednode = nil, extraargs = nil, tags = nil, unschedulable = nil, deletionprotection = nil, dockergraphpath = nil, prestartuserscript = nil) ⇒ ModifyClusterNodePoolRequest
constructor
A new instance of ModifyClusterNodePoolRequest.
Constructor Details
#initialize(clusterid = nil, nodepoolid = nil, name = nil, maxnodesnum = nil, minnodesnum = nil, labels = nil, taints = nil, annotations = nil, enableautoscale = nil, osname = nil, oscustomizetype = nil, gpuargs = nil, userscript = nil, ignoreexistednode = nil, extraargs = nil, tags = nil, unschedulable = nil, deletionprotection = nil, dockergraphpath = nil, prestartuserscript = nil) ⇒ ModifyClusterNodePoolRequest
Returns a new instance of ModifyClusterNodePoolRequest.
15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 |
# File 'lib/v20180525/models.rb', line 15277 def initialize(clusterid=nil, nodepoolid=nil, name=nil, maxnodesnum=nil, minnodesnum=nil, labels=nil, taints=nil, annotations=nil, enableautoscale=nil, osname=nil, oscustomizetype=nil, gpuargs=nil, userscript=nil, ignoreexistednode=nil, extraargs=nil, =nil, unschedulable=nil, deletionprotection=nil, dockergraphpath=nil, prestartuserscript=nil) @ClusterId = clusterid @NodePoolId = nodepoolid @Name = name @MaxNodesNum = maxnodesnum @MinNodesNum = minnodesnum @Labels = labels @Taints = taints @Annotations = annotations @EnableAutoscale = enableautoscale @OsName = osname @OsCustomizeType = oscustomizetype @GPUArgs = gpuargs @UserScript = userscript @IgnoreExistedNode = ignoreexistednode @ExtraArgs = extraargs @Tags = @Unschedulable = unschedulable @DeletionProtection = deletionprotection @DockerGraphPath = dockergraphpath @PreStartUserScript = prestartuserscript end |
Instance Attribute Details
#Annotations ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def Annotations @Annotations end |
#ClusterId ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def DeletionProtection @DeletionProtection end |
#DockerGraphPath ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def DockerGraphPath @DockerGraphPath end |
#EnableAutoscale ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def EnableAutoscale @EnableAutoscale end |
#ExtraArgs ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def ExtraArgs @ExtraArgs end |
#GPUArgs ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def GPUArgs @GPUArgs end |
#IgnoreExistedNode ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def IgnoreExistedNode @IgnoreExistedNode end |
#Labels ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def Labels @Labels end |
#MaxNodesNum ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def MaxNodesNum @MaxNodesNum end |
#MinNodesNum ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def MinNodesNum @MinNodesNum end |
#Name ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def Name @Name end |
#NodePoolId ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def NodePoolId @NodePoolId end |
#OsCustomizeType ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def OsCustomizeType @OsCustomizeType end |
#OsName ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def OsName @OsName end |
#PreStartUserScript ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def PreStartUserScript @PreStartUserScript end |
#Tags ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def Tags @Tags end |
#Taints ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def Taints @Taints end |
#Unschedulable ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def Unschedulable @Unschedulable end |
#UserScript ⇒ Object
15275 15276 15277 |
# File 'lib/v20180525/models.rb', line 15275 def UserScript @UserScript end |
Instance Method Details
#deserialize(params) ⇒ Object
15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 |
# File 'lib/v20180525/models.rb', line 15300 def deserialize(params) @ClusterId = params['ClusterId'] @NodePoolId = params['NodePoolId'] @Name = params['Name'] @MaxNodesNum = params['MaxNodesNum'] @MinNodesNum = params['MinNodesNum'] 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 @EnableAutoscale = params['EnableAutoscale'] @OsName = params['OsName'] @OsCustomizeType = params['OsCustomizeType'] unless params['GPUArgs'].nil? @GPUArgs = GPUArgs.new @GPUArgs.deserialize(params['GPUArgs']) end @UserScript = params['UserScript'] @IgnoreExistedNode = params['IgnoreExistedNode'] unless params['ExtraArgs'].nil? @ExtraArgs = InstanceExtraArgs.new @ExtraArgs.deserialize(params['ExtraArgs']) end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @Unschedulable = params['Unschedulable'] @DeletionProtection = params['DeletionProtection'] @DockerGraphPath = params['DockerGraphPath'] @PreStartUserScript = params['PreStartUserScript'] end |