Class: TencentCloud::Dcdb::V20180411::DescribeDCDBShardsResponse

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

Overview

DescribeDCDBShards返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#DcnFlagObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

    灾备标志,0-无,1-主实例,2-灾备实例

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3340
3341
3342
# File 'lib/v20180411/models.rb', line 3340

def DcnFlag
  @DcnFlag
end

#RequestIdObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

    灾备标志,0-无,1-主实例,2-灾备实例

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3340
3341
3342
# File 'lib/v20180411/models.rb', line 3340

def RequestId
  @RequestId
end

#ShardsObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

    灾备标志,0-无,1-主实例,2-灾备实例

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3340
3341
3342
# File 'lib/v20180411/models.rb', line 3340

def Shards
  @Shards
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

    灾备标志,0-无,1-主实例,2-灾备实例

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



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