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.
6887 6888 6889 6890 6891 |
# File 'lib/v20180525/models.rb', line 6887 def initialize(totalcount=nil, clusters=nil, requestid=nil) @TotalCount = totalcount @Clusters = clusters @RequestId = requestid end |
Instance Attribute Details
#Clusters ⇒ Object
6885 6886 6887 |
# File 'lib/v20180525/models.rb', line 6885 def Clusters @Clusters end |
#RequestId ⇒ Object
6885 6886 6887 |
# File 'lib/v20180525/models.rb', line 6885 def RequestId @RequestId end |
#TotalCount ⇒ Object
6885 6886 6887 |
# File 'lib/v20180525/models.rb', line 6885 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 |
# File 'lib/v20180525/models.rb', line 6893 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 |