Class: TencentCloud::Cdb::V20170320::DescribeDBSwitchRecordsResponse

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

Overview

DescribeDBSwitchRecords返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, items = nil, requestid = nil) ⇒ DescribeDBSwitchRecordsResponse

Returns a new instance of DescribeDBSwitchRecordsResponse.



6748
6749
6750
6751
6752
# File 'lib/v20170320/models.rb', line 6748

def initialize(totalcount=nil, items=nil, requestid=nil)
  @TotalCount = totalcount
  @Items = items
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCount:

    实例切换记录的总数。

  • Items:

    实例切换记录详情。

  • RequestId:

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



6746
6747
6748
# File 'lib/v20170320/models.rb', line 6746

def Items
  @Items
end

#RequestIdObject

Parameters:

  • TotalCount:

    实例切换记录的总数。

  • Items:

    实例切换记录详情。

  • RequestId:

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



6746
6747
6748
# File 'lib/v20170320/models.rb', line 6746

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    实例切换记录的总数。

  • Items:

    实例切换记录详情。

  • RequestId:

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



6746
6747
6748
# File 'lib/v20170320/models.rb', line 6746

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
# File 'lib/v20170320/models.rb', line 6754

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      dbswitchinfo_tmp = DBSwitchInfo.new
      dbswitchinfo_tmp.deserialize(i)
      @Items << dbswitchinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end