lib/v20180412/models.rb in tencentcloud-sdk-redis-3.0.766 vs lib/v20180412/models.rb in tencentcloud-sdk-redis-3.0.767

- old
+ new

@@ -3468,20 +3468,23 @@ # DescribeSlowLog返回参数结构体 class DescribeSlowLogResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 慢查询总数。 # @type TotalCount: Integer - # @param InstanceSlowlogDetail: 慢查询详情。 + # @param InstanceSlowlogDetail: 该参数存在命名不规范问题,建议用参数InstanceSlowLogDetail取代。慢查询详情。 # @type InstanceSlowlogDetail: Array + # @param InstanceSlowLogDetail: 慢查询详情。 + # @type InstanceSlowLogDetail: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String - attr_accessor :TotalCount, :InstanceSlowlogDetail, :RequestId + attr_accessor :TotalCount, :InstanceSlowlogDetail, :InstanceSlowLogDetail, :RequestId - def initialize(totalcount=nil, instanceslowlogdetail=nil, requestid=nil) + def initialize(totalcount=nil, instanceslowlogdetail=nil, instanceslowlogdetail=nil, requestid=nil) @TotalCount = totalcount @InstanceSlowlogDetail = instanceslowlogdetail + @InstanceSlowLogDetail = instanceslowlogdetail @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] @@ -3489,9 +3492,17 @@ @InstanceSlowlogDetail = [] params['InstanceSlowlogDetail'].each do |i| instanceslowlogdetail_tmp = InstanceSlowlogDetail.new instanceslowlogdetail_tmp.deserialize(i) @InstanceSlowlogDetail << instanceslowlogdetail_tmp + end + end + unless params['InstanceSlowLogDetail'].nil? + @InstanceSlowLogDetail = [] + params['InstanceSlowLogDetail'].each do |i| + instanceslowlogdetail_tmp = InstanceSlowlogDetail.new + instanceslowlogdetail_tmp.deserialize(i) + @InstanceSlowLogDetail << instanceslowlogdetail_tmp end end @RequestId = params['RequestId'] end end