Class: TencentCloud::Tdmq::V20200217::DescribeRabbitMQVirtualHostResponse

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

Overview

DescribeRabbitMQVirtualHost返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, virtualhostlist = nil, requestid = nil) ⇒ DescribeRabbitMQVirtualHostResponse

Returns a new instance of DescribeRabbitMQVirtualHostResponse.



5750
5751
5752
5753
5754
# File 'lib/v20200217/models.rb', line 5750

def initialize(totalcount=nil, virtualhostlist=nil, requestid=nil)
  @TotalCount = totalcount
  @VirtualHostList = virtualhostlist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    返回vhost数量

  • VirtualHostList:

    vhost详情列表

  • RequestId:

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



5748
5749
5750
# File 'lib/v20200217/models.rb', line 5748

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    返回vhost数量

  • VirtualHostList:

    vhost详情列表

  • RequestId:

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



5748
5749
5750
# File 'lib/v20200217/models.rb', line 5748

def TotalCount
  @TotalCount
end

#VirtualHostListObject

Parameters:

  • TotalCount:

    返回vhost数量

  • VirtualHostList:

    vhost详情列表

  • RequestId:

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



5748
5749
5750
# File 'lib/v20200217/models.rb', line 5748

def VirtualHostList
  @VirtualHostList
end

Instance Method Details

#deserialize(params) ⇒ Object



5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
# File 'lib/v20200217/models.rb', line 5756

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['VirtualHostList'].nil?
    @VirtualHostList = []
    params['VirtualHostList'].each do |i|
      rabbitmqvirtualhostinfo_tmp = RabbitMQVirtualHostInfo.new
      rabbitmqvirtualhostinfo_tmp.deserialize(i)
      @VirtualHostList << rabbitmqvirtualhostinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end