Class: TencentCloud::Tdmq::V20200217::DescribeRocketMQGroupsResponse

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

Overview

DescribeRocketMQGroups返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, groups = nil, requestid = nil) ⇒ DescribeRocketMQGroupsResponse

Returns a new instance of DescribeRocketMQGroupsResponse.



6241
6242
6243
6244
6245
# File 'lib/v20200217/models.rb', line 6241

def initialize(totalcount=nil, groups=nil, requestid=nil)
  @TotalCount = totalcount
  @Groups = groups
  @RequestId = requestid
end

Instance Attribute Details

#GroupsObject

Parameters:

  • TotalCount:

    总数量

  • Groups:

    订阅组列表

  • RequestId:

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



6239
6240
6241
# File 'lib/v20200217/models.rb', line 6239

def Groups
  @Groups
end

#RequestIdObject

Parameters:

  • TotalCount:

    总数量

  • Groups:

    订阅组列表

  • RequestId:

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



6239
6240
6241
# File 'lib/v20200217/models.rb', line 6239

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    总数量

  • Groups:

    订阅组列表

  • RequestId:

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



6239
6240
6241
# File 'lib/v20200217/models.rb', line 6239

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
# File 'lib/v20200217/models.rb', line 6247

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Groups'].nil?
    @Groups = []
    params['Groups'].each do |i|
      rocketmqgroup_tmp = RocketMQGroup.new
      rocketmqgroup_tmp.deserialize(i)
      @Groups << rocketmqgroup_tmp
    end
  end
  @RequestId = params['RequestId']
end