Class: TencentCloud::Dcdb::V20180411::DescribeDCDBShardsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dcdb::V20180411::DescribeDCDBShardsResponse
- Defined in:
- lib/v20180411/models.rb
Overview
DescribeDCDBShards返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(totalcount = nil, shards = nil, dcnflag = nil, requestid = nil) ⇒ DescribeDCDBShardsResponse
constructor
A new instance of DescribeDCDBShardsResponse.
Constructor Details
#initialize(totalcount = nil, shards = nil, dcnflag = nil, requestid = nil) ⇒ DescribeDCDBShardsResponse
Returns a new instance of DescribeDCDBShardsResponse.
3342 3343 3344 3345 3346 3347 |
# File 'lib/v20180411/models.rb', line 3342 def initialize(totalcount=nil, shards=nil, dcnflag=nil, requestid=nil) @TotalCount = totalcount @Shards = shards @DcnFlag = dcnflag @RequestId = requestid end |
Instance Attribute Details
#DcnFlag ⇒ Object
3340 3341 3342 |
# File 'lib/v20180411/models.rb', line 3340 def DcnFlag @DcnFlag end |
#RequestId ⇒ Object
3340 3341 3342 |
# File 'lib/v20180411/models.rb', line 3340 def RequestId @RequestId end |
#Shards ⇒ Object
3340 3341 3342 |
# File 'lib/v20180411/models.rb', line 3340 def Shards @Shards end |
#TotalCount ⇒ Object
3340 3341 3342 |
# File 'lib/v20180411/models.rb', line 3340 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 |
# File 'lib/v20180411/models.rb', line 3349 def deserialize(params) @TotalCount = params['TotalCount'] unless params['Shards'].nil? @Shards = [] params['Shards'].each do |i| dcdbshardinfo_tmp = DCDBShardInfo.new dcdbshardinfo_tmp.deserialize(i) @Shards << dcdbshardinfo_tmp end end @DcnFlag = params['DcnFlag'] @RequestId = params['RequestId'] end |