Class: TencentCloud::Tcaplusdb::V20190823::DescribeClustersResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190823/models.rb

Overview

DescribeClusters返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, clusters = nil, requestid = nil) ⇒ DescribeClustersResponse

Returns a new instance of DescribeClustersResponse.



1622
1623
1624
1625
1626
# File 'lib/v20190823/models.rb', line 1622

def initialize(totalcount=nil, clusters=nil, requestid=nil)
  @TotalCount = totalcount
  @Clusters = clusters
  @RequestId = requestid
end

Instance Attribute Details

#ClustersObject

Parameters:

  • TotalCount:

    集群实例数

  • Clusters:

    集群实例列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1620
1621
1622
# File 'lib/v20190823/models.rb', line 1620

def Clusters
  @Clusters
end

#RequestIdObject

Parameters:

  • TotalCount:

    集群实例数

  • Clusters:

    集群实例列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1620
1621
1622
# File 'lib/v20190823/models.rb', line 1620

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    集群实例数

  • Clusters:

    集群实例列表

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



1620
1621
1622
# File 'lib/v20190823/models.rb', line 1620

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
# File 'lib/v20190823/models.rb', line 1628

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Clusters'].nil?
    @Clusters = []
    params['Clusters'].each do |i|
      clusterinfo_tmp = ClusterInfo.new
      clusterinfo_tmp.deserialize(i)
      @Clusters << clusterinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end