Class: TencentCloud::Thpc::V20220401::DescribeClustersResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20220401::DescribeClustersResponse
- Defined in:
- lib/v20220401/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.
1081 1082 1083 1084 1085 |
# File 'lib/v20220401/models.rb', line 1081 def initialize(clusterset=nil, totalcount=nil, requestid=nil) @ClusterSet = clusterset @TotalCount = totalcount @RequestId = requestid end |
Instance Attribute Details
#ClusterSet ⇒ Object
1079 1080 1081 |
# File 'lib/v20220401/models.rb', line 1079 def ClusterSet @ClusterSet end |
#RequestId ⇒ Object
1079 1080 1081 |
# File 'lib/v20220401/models.rb', line 1079 def RequestId @RequestId end |
#TotalCount ⇒ Object
1079 1080 1081 |
# File 'lib/v20220401/models.rb', line 1079 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 |
# File 'lib/v20220401/models.rb', line 1087 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 |