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.
14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 |
# File 'lib/v20180525/models.rb', line 14263 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
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def Annotations @Annotations end |
#ClusterId ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def ClusterId @ClusterId end |
#DeletionProtection ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def DeletionProtection @DeletionProtection end |
#DockerGraphPath ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def DockerGraphPath @DockerGraphPath end |
#EnableAutoscale ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def EnableAutoscale @EnableAutoscale end |
#ExtraArgs ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def ExtraArgs @ExtraArgs end |
#GPUArgs ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def GPUArgs @GPUArgs end |
#IgnoreExistedNode ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def IgnoreExistedNode @IgnoreExistedNode end |
#Labels ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def Labels @Labels end |
#MaxNodesNum ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def MaxNodesNum @MaxNodesNum end |
#MinNodesNum ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def MinNodesNum @MinNodesNum end |
#Name ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def Name @Name end |
#NodePoolId ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def NodePoolId @NodePoolId end |
#OsCustomizeType ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def OsCustomizeType @OsCustomizeType end |
#OsName ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def OsName @OsName end |
#PreStartUserScript ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def PreStartUserScript @PreStartUserScript end |
#Tags ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def Tags @Tags end |
#Taints ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def Taints @Taints end |
#Unschedulable ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def Unschedulable @Unschedulable end |
#UserScript ⇒ Object
14261 14262 14263 |
# File 'lib/v20180525/models.rb', line 14261 def UserScript @UserScript end |
Instance Method Details
#deserialize(params) ⇒ Object
14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 |
# File 'lib/v20180525/models.rb', line 14286 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 |