Class: TencentCloud::Thpc::V20220401::ClusterOverview
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20220401::ClusterOverview
- Defined in:
- lib/v20220401/models.rb
Overview
集群概览信息。
Instance Attribute Summary collapse
- #ClusterId ⇒ Object
- #ClusterName ⇒ Object
- #ClusterStatus ⇒ Object
- #ComputeNodeCount ⇒ Object
- #ComputeNodeSet ⇒ Object
- #CreateTime ⇒ Object
- #LoginNodeCount ⇒ Object
- #LoginNodeSet ⇒ Object
- #ManagerNodeCount ⇒ Object
- #ManagerNodeSet ⇒ Object
- #Placement ⇒ Object
- #SchedulerType ⇒ Object
- #VpcId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterid = nil, clusterstatus = nil, clustername = nil, placement = nil, createtime = nil, schedulertype = nil, computenodecount = nil, computenodeset = nil, managernodecount = nil, managernodeset = nil, loginnodeset = nil, loginnodecount = nil, vpcid = nil) ⇒ ClusterOverview
constructor
A new instance of ClusterOverview.
Constructor Details
#initialize(clusterid = nil, clusterstatus = nil, clustername = nil, placement = nil, createtime = nil, schedulertype = nil, computenodecount = nil, computenodeset = nil, managernodecount = nil, managernodeset = nil, loginnodeset = nil, loginnodecount = nil, vpcid = nil) ⇒ ClusterOverview
Returns a new instance of ClusterOverview.
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 |
# File 'lib/v20220401/models.rb', line 462 def initialize(clusterid=nil, clusterstatus=nil, clustername=nil, placement=nil, createtime=nil, schedulertype=nil, computenodecount=nil, computenodeset=nil, managernodecount=nil, managernodeset=nil, loginnodeset=nil, loginnodecount=nil, vpcid=nil) @ClusterId = clusterid @ClusterStatus = clusterstatus @ClusterName = clustername @Placement = placement @CreateTime = createtime @SchedulerType = schedulertype @ComputeNodeCount = computenodecount @ComputeNodeSet = computenodeset @ManagerNodeCount = managernodecount @ManagerNodeSet = managernodeset @LoginNodeSet = loginnodeset @LoginNodeCount = loginnodecount @VpcId = vpcid end |
Instance Attribute Details
#ClusterId ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ClusterId @ClusterId end |
#ClusterName ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ClusterName @ClusterName end |
#ClusterStatus ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ClusterStatus @ClusterStatus end |
#ComputeNodeCount ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ComputeNodeCount @ComputeNodeCount end |
#ComputeNodeSet ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ComputeNodeSet @ComputeNodeSet end |
#CreateTime ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def CreateTime @CreateTime end |
#LoginNodeCount ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def LoginNodeCount @LoginNodeCount end |
#LoginNodeSet ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def LoginNodeSet @LoginNodeSet end |
#ManagerNodeCount ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ManagerNodeCount @ManagerNodeCount end |
#ManagerNodeSet ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def ManagerNodeSet @ManagerNodeSet end |
#Placement ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def Placement @Placement end |
#SchedulerType ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def SchedulerType @SchedulerType end |
#VpcId ⇒ Object
460 461 462 |
# File 'lib/v20220401/models.rb', line 460 def VpcId @VpcId end |
Instance Method Details
#deserialize(params) ⇒ Object
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 |
# File 'lib/v20220401/models.rb', line 478 def deserialize(params) @ClusterId = params['ClusterId'] @ClusterStatus = params['ClusterStatus'] @ClusterName = params['ClusterName'] unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @CreateTime = params['CreateTime'] @SchedulerType = params['SchedulerType'] @ComputeNodeCount = params['ComputeNodeCount'] unless params['ComputeNodeSet'].nil? @ComputeNodeSet = [] params['ComputeNodeSet'].each do |i| computenodeoverview_tmp = ComputeNodeOverview.new computenodeoverview_tmp.deserialize(i) @ComputeNodeSet << computenodeoverview_tmp end end @ManagerNodeCount = params['ManagerNodeCount'] unless params['ManagerNodeSet'].nil? @ManagerNodeSet = [] params['ManagerNodeSet'].each do |i| managernodeoverview_tmp = ManagerNodeOverview.new managernodeoverview_tmp.deserialize(i) @ManagerNodeSet << managernodeoverview_tmp end end unless params['LoginNodeSet'].nil? @LoginNodeSet = [] params['LoginNodeSet'].each do |i| loginnodeoverview_tmp = LoginNodeOverview.new loginnodeoverview_tmp.deserialize(i) @LoginNodeSet << loginnodeoverview_tmp end end @LoginNodeCount = params['LoginNodeCount'] @VpcId = params['VpcId'] end |