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.
15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 |
# File 'lib/v20180525/models.rb', line 15492 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
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def Annotations @Annotations end |
#ClusterId ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def DeletionProtection @DeletionProtection end |
#DockerGraphPath ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def DockerGraphPath @DockerGraphPath end |
#EnableAutoscale ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def EnableAutoscale @EnableAutoscale end |
#ExtraArgs ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def ExtraArgs @ExtraArgs end |
#GPUArgs ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def GPUArgs @GPUArgs end |
#IgnoreExistedNode ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def IgnoreExistedNode @IgnoreExistedNode end |
#Labels ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def Labels @Labels end |
#MaxNodesNum ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def MaxNodesNum @MaxNodesNum end |
#MinNodesNum ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def MinNodesNum @MinNodesNum end |
#Name ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def Name @Name end |
#NodePoolId ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def NodePoolId @NodePoolId end |
#OsCustomizeType ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def OsCustomizeType @OsCustomizeType end |
#OsName ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def OsName @OsName end |
#PreStartUserScript ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def PreStartUserScript @PreStartUserScript end |
#Tags ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def Tags @Tags end |
#Taints ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def Taints @Taints end |
#Unschedulable ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def Unschedulable @Unschedulable end |
#UserScript ⇒ Object
15490 15491 15492 |
# File 'lib/v20180525/models.rb', line 15490 def UserScript @UserScript end |
Instance Method Details
#deserialize(params) ⇒ Object
15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 |
# File 'lib/v20180525/models.rb', line 15515 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 |