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.
6848 6849 6850 6851 6852 |
# File 'lib/v20180525/models.rb', line 6848 def initialize(totalcount=nil, clusters=nil, requestid=nil) @TotalCount = totalcount @Clusters = clusters @RequestId = requestid end |
Instance Attribute Details
#Clusters ⇒ Object
6846 6847 6848 |
# File 'lib/v20180525/models.rb', line 6846 def Clusters @Clusters end |
#RequestId ⇒ Object
6846 6847 6848 |
# File 'lib/v20180525/models.rb', line 6846 def RequestId @RequestId end |
#TotalCount ⇒ Object
6846 6847 6848 |
# File 'lib/v20180525/models.rb', line 6846 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 |
# File 'lib/v20180525/models.rb', line 6854 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 |