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.



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

#DcnFlagObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

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

  • RequestId:

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



3332
3333
3334
# File 'lib/v20180411/models.rb', line 3332

def DcnFlag
  @DcnFlag
end

#RequestIdObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

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

  • RequestId:

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



3332
3333
3334
# File 'lib/v20180411/models.rb', line 3332

def RequestId
  @RequestId
end

#ShardsObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

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

  • RequestId:

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



3332
3333
3334
# File 'lib/v20180411/models.rb', line 3332

def Shards
  @Shards
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合条件的分片数量

  • Shards:

    分片信息列表

  • DcnFlag:

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

  • RequestId:

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



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