lib/v20200217/client.rb in tencentcloud-sdk-tdmq-3.0.529 vs lib/v20200217/client.rb in tencentcloud-sdk-tdmq-3.0.530

- old
+ new

@@ -1643,9 +1643,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 获取单个RabbitMQ专享实例信息 + + # @param request: Request instance for DescribeRabbitMQVipInstance. + # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVipInstanceRequest` + # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVipInstanceResponse` + def DescribeRabbitMQVipInstance(request) + body = send_request('DescribeRabbitMQVipInstance', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeRabbitMQVipInstanceResponse.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 DescribeRabbitMQVipInstances. # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVipInstancesRequest` # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeRabbitMQVipInstancesResponse` \ No newline at end of file