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.
3334 3335 3336 3337 3338 3339 |
# File 'lib/v20180411/models.rb', line 3334 def initialize(totalcount=nil, shards=nil, dcnflag=nil, requestid=nil) @TotalCount = totalcount @Shards = shards @DcnFlag = dcnflag @RequestId = requestid end |
Instance Attribute Details
#DcnFlag ⇒ Object
3332 3333 3334 |
# File 'lib/v20180411/models.rb', line 3332 def DcnFlag @DcnFlag end |
#RequestId ⇒ Object
3332 3333 3334 |
# File 'lib/v20180411/models.rb', line 3332 def RequestId @RequestId end |
#Shards ⇒ Object
3332 3333 3334 |
# File 'lib/v20180411/models.rb', line 3332 def Shards @Shards end |
#TotalCount ⇒ Object
3332 3333 3334 |
# File 'lib/v20180411/models.rb', line 3332 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 |
# File 'lib/v20180411/models.rb', line 3341 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 |