Class: TencentCloud::Thpc::V20230321::DescribeClustersResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20230321::DescribeClustersResponse
- Defined in:
- lib/v20230321/models.rb
Overview
DescribeClusters返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(clusterset = nil, totalcount = nil, requestid = nil) ⇒ DescribeClustersResponse
constructor
A new instance of DescribeClustersResponse.
Constructor Details
#initialize(clusterset = nil, totalcount = nil, requestid = nil) ⇒ DescribeClustersResponse
Returns a new instance of DescribeClustersResponse.
1273 1274 1275 1276 1277 |
# File 'lib/v20230321/models.rb', line 1273 def initialize(clusterset=nil, totalcount=nil, requestid=nil) @ClusterSet = clusterset @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#ClusterSet ⇒ Object
1271 1272 1273 |
# File 'lib/v20230321/models.rb', line 1271 def ClusterSet @ClusterSet end |
#RequestId ⇒ Object
1271 1272 1273 |
# File 'lib/v20230321/models.rb', line 1271 def RequestId @RequestId end |
#TotalCount ⇒ Object
1271 1272 1273 |
# File 'lib/v20230321/models.rb', line 1271 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'lib/v20230321/models.rb', line 1279 def deserialize(params) unless params['ClusterSet'].nil? @ClusterSet = [] params['ClusterSet'].each do |i| clusteroverview_tmp = ClusterOverview.new clusteroverview_tmp.deserialize(i) @ClusterSet << clusteroverview_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end |