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.
7428 7429 7430 7431 7432 |
# File 'lib/v20180525/models.rb', line 7428 def initialize(totalcount=nil, clusters=nil, requestid=nil) @TotalCount = totalcount @Clusters = clusters @RequestId = requestid end |
Instance Attribute Details
#Clusters ⇒ Object
7426 7427 7428 |
# File 'lib/v20180525/models.rb', line 7426 def Clusters @Clusters end |
#RequestId ⇒ Object
7426 7427 7428 |
# File 'lib/v20180525/models.rb', line 7426 def RequestId @RequestId end |
#TotalCount ⇒ Object
7426 7427 7428 |
# File 'lib/v20180525/models.rb', line 7426 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 |
# File 'lib/v20180525/models.rb', line 7434 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 |