lib/v20200217/client.rb in tencentcloud-sdk-tdmq-3.0.849 vs lib/v20200217/client.rb in tencentcloud-sdk-tdmq-3.0.850
- old
+ new
@@ -1637,9 +1637,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 查询RabbitMQ exchange 列表
+
+ # @param request: Request instance for DescribeRabbitMQExchanges.
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQExchangesRequest`
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQExchangesResponse`
+ def DescribeRabbitMQExchanges(request)
+ body = send_request('DescribeRabbitMQExchanges', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeRabbitMQExchangesResponse.new
+ model.deserialize(response['Response'])
+ model
+ else
+ code = response['Response']['Error']['Code']
+ message = response['Response']['Error']['Message']
+ reqid = response['Response']['RequestId']
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
+ end
+ rescue TencentCloud::Common::TencentCloudSDKException => e
+ raise e
+ rescue StandardError => e
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
+ end
+
# RabbitMQ专享版查询节点列表
# @param request: Request instance for DescribeRabbitMQNodeList.
# @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQNodeListRequest`
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQNodeListResponse`
\ No newline at end of file