Class: TencentCloud::Tke::V20180525::DescribeClustersResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribeClustersResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribeClusters返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, clusters = nil, requestid = nil) ⇒ DescribeClustersResponse
constructor
A new instance of DescribeClustersResponse.
Constructor Details
#initialize(totalcount = nil, clusters = nil, requestid = nil) ⇒ DescribeClustersResponse
Returns a new instance of DescribeClustersResponse.
7523 7524 7525 7526 7527 |
# File 'lib/v20180525/models.rb', line 7523 def initialize(totalcount=nil, clusters=nil, requestid=nil) @TotalCount = totalcount @Clusters = clusters @RequestId = requestid end |
Instance Attribute Details
#Clusters ⇒ Object
7521 7522 7523 |
# File 'lib/v20180525/models.rb', line 7521 def Clusters @Clusters end |
#RequestId ⇒ Object
7521 7522 7523 |
# File 'lib/v20180525/models.rb', line 7521 def RequestId @RequestId end |
#TotalCount ⇒ Object
7521 7522 7523 |
# File 'lib/v20180525/models.rb', line 7521 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 |
# File 'lib/v20180525/models.rb', line 7529 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Clusters'].nil? @Clusters = [] params['Clusters'].each do |i| cluster_tmp = Cluster.new cluster_tmp.deserialize(i) @Clusters << cluster_tmp end end @RequestId = params['RequestId'] end |