Class: TencentCloud::Tke::V20220501::DescribeClustersResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::DescribeClustersResponse
- Defined in:
- lib/v20220501/models.rb
Overview
DescribeClusters返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, clusters = nil, errors = nil, requestid = nil) ⇒ DescribeClustersResponse
constructor
A new instance of DescribeClustersResponse.
Constructor Details
#initialize(totalcount = nil, clusters = nil, errors = nil, requestid = nil) ⇒ DescribeClustersResponse
Returns a new instance of DescribeClustersResponse.
784 785 786 787 788 789 |
# File 'lib/v20220501/models.rb', line 784 def initialize(totalcount=nil, clusters=nil, errors=nil, requestid=nil) @TotalCount = totalcount @Clusters = clusters @Errors = errors @RequestId = requestid end |
Instance Attribute Details
#Clusters ⇒ Object
782 783 784 |
# File 'lib/v20220501/models.rb', line 782 def Clusters @Clusters end |
#Errors ⇒ Object
782 783 784 |
# File 'lib/v20220501/models.rb', line 782 def Errors @Errors end |
#RequestId ⇒ Object
782 783 784 |
# File 'lib/v20220501/models.rb', line 782 def RequestId @RequestId end |
#TotalCount ⇒ Object
782 783 784 |
# File 'lib/v20220501/models.rb', line 782 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
791 792 793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/v20220501/models.rb', line 791 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 @Errors = params['Errors'] @RequestId = params['RequestId'] end |