Class: TencentCloud::Tdmq::V20200217::DescribeRabbitMQVirtualHostListResponse

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

Overview

DescribeRabbitMQVirtualHostList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeRabbitMQVirtualHostListResponse.



5672
5673
5674
5675
5676
# File 'lib/v20200217/models.rb', line 5672

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

Instance Attribute Details

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    集群列表数量

  • VirtualHostList:

    集群列表

  • RequestId:

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



5670
5671
5672
# File 'lib/v20200217/models.rb', line 5670

def RequestId
  @RequestId
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    集群列表数量

  • VirtualHostList:

    集群列表

  • RequestId:

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



5670
5671
5672
# File 'lib/v20200217/models.rb', line 5670

def TotalCount
  @TotalCount
end

#VirtualHostListObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    集群列表数量

  • VirtualHostList:

    集群列表

  • RequestId:

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



5670
5671
5672
# File 'lib/v20200217/models.rb', line 5670

def VirtualHostList
  @VirtualHostList
end

Instance Method Details

#deserialize(params) ⇒ Object



5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
# File 'lib/v20200217/models.rb', line 5678

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