Class: TencentCloud::Tdmq::V20200217::DescribeTopicMsgsResponse

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

Overview

DescribeTopicMsgs返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, topicmsglogsets = nil, requestid = nil) ⇒ DescribeTopicMsgsResponse

Returns a new instance of DescribeTopicMsgsResponse.



7806
7807
7808
7809
7810
# File 'lib/v20200217/models.rb', line 7806

def initialize(totalcount=nil, topicmsglogsets=nil, requestid=nil)
  @TotalCount = totalcount
  @TopicMsgLogSets = topicmsglogsets
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    总记录数。

  • TopicMsgLogSets:

    消息日志列表。

  • RequestId:

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



7804
7805
7806
# File 'lib/v20200217/models.rb', line 7804

def RequestId
  @RequestId
end

#TopicMsgLogSetsObject

Parameters:

  • TotalCount:

    总记录数。

  • TopicMsgLogSets:

    消息日志列表。

  • RequestId:

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



7804
7805
7806
# File 'lib/v20200217/models.rb', line 7804

def TopicMsgLogSets
  @TopicMsgLogSets
end

#TotalCountObject

Parameters:

  • TotalCount:

    总记录数。

  • TopicMsgLogSets:

    消息日志列表。

  • RequestId:

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



7804
7805
7806
# File 'lib/v20200217/models.rb', line 7804

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
# File 'lib/v20200217/models.rb', line 7812

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['TopicMsgLogSets'].nil?
    @TopicMsgLogSets = []
    params['TopicMsgLogSets'].each do |i|
      msglog_tmp = MsgLog.new
      msglog_tmp.deserialize(i)
      @TopicMsgLogSets << msglog_tmp
    end
  end
  @RequestId = params['RequestId']
end