Class: TencentCloud::Cls::V20201016::DescribeTopicsResponse

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

Overview

DescribeTopics返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topics = nil, totalcount = nil, requestid = nil) ⇒ DescribeTopicsResponse

Returns a new instance of DescribeTopicsResponse.



10240
10241
10242
10243
10244
# File 'lib/v20201016/models.rb', line 10240

def initialize(topics=nil, totalcount=nil, requestid=nil)
  @Topics = topics
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#RequestId ⇒ Object

Parameters:

  • Topics: —

    主题列表

  • TotalCount: —

    总数目

  • RequestId: —

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



10238
10239
10240
# File 'lib/v20201016/models.rb', line 10238

def RequestId
  @RequestId
end

#Topics ⇒ Object

Parameters:

  • Topics: —

    主题列表

  • TotalCount: —

    总数目

  • RequestId: —

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



10238
10239
10240
# File 'lib/v20201016/models.rb', line 10238

def Topics
  @Topics
end

#TotalCount ⇒ Object

Parameters:

  • Topics: —

    主题列表

  • TotalCount: —

    总数目

  • RequestId: —

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



10238
10239
10240
# File 'lib/v20201016/models.rb', line 10238

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
# File 'lib/v20201016/models.rb', line 10246

def deserialize(params)
  unless params['Topics'].nil?
    @Topics = []
    params['Topics'].each do |i|
      topicinfo_tmp = TopicInfo.new
      topicinfo_tmp.deserialize(i)
      @Topics << topicinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end