Class: TencentCloud::Thpc::V20211109::ClusterOverview
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20211109::ClusterOverview
- Defined in:
- lib/v20211109/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
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) ⇒ 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) ⇒ ClusterOverview
Returns a new instance of ClusterOverview.
148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/v20211109/models.rb', line 148 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) @ClusterId = clusterid @ClusterStatus = clusterstatus @ClusterName = clustername @Placement = placement @CreateTime = createtime @SchedulerType = schedulertype @ComputeNodeCount = computenodecount @ComputeNodeSet = computenodeset @ManagerNodeCount = managernodecount @ManagerNodeSet = managernodeset @LoginNodeSet = loginnodeset @LoginNodeCount = loginnodecount end |
Instance Attribute Details
#ClusterId ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ClusterId @ClusterId end |
#ClusterName ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ClusterName @ClusterName end |
#ClusterStatus ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ClusterStatus @ClusterStatus end |
#ComputeNodeCount ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ComputeNodeCount @ComputeNodeCount end |
#ComputeNodeSet ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ComputeNodeSet @ComputeNodeSet end |
#CreateTime ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def CreateTime @CreateTime end |
#LoginNodeCount ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def LoginNodeCount @LoginNodeCount end |
#LoginNodeSet ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def LoginNodeSet @LoginNodeSet end |
#ManagerNodeCount ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ManagerNodeCount @ManagerNodeCount end |
#ManagerNodeSet ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def ManagerNodeSet @ManagerNodeSet end |
#Placement ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def Placement @Placement end |
#SchedulerType ⇒ Object
146 147 148 |
# File 'lib/v20211109/models.rb', line 146 def SchedulerType @SchedulerType end |
Instance Method Details
#deserialize(params) ⇒ Object
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/v20211109/models.rb', line 163 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'] end |