Class: TencentCloud::Tdmq::V20200217::DescribeRocketMQTopicsResponse

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

Overview

DescribeRocketMQTopics返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeRocketMQTopicsResponse.



7469
7470
7471
7472
7473
# File 'lib/v20200217/models.rb', line 7469

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

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    总记录数

  • Topics:

    主题信息列表

  • RequestId:

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



7467
7468
7469
# File 'lib/v20200217/models.rb', line 7467

def RequestId
  @RequestId
end

#TopicsObject

Parameters:

  • TotalCount:

    总记录数

  • Topics:

    主题信息列表

  • RequestId:

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



7467
7468
7469
# File 'lib/v20200217/models.rb', line 7467

def Topics
  @Topics
end

#TotalCountObject

Parameters:

  • TotalCount:

    总记录数

  • Topics:

    主题信息列表

  • RequestId:

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



7467
7468
7469
# File 'lib/v20200217/models.rb', line 7467

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
# File 'lib/v20200217/models.rb', line 7475

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