lib/v20200217/client.rb in tencentcloud-sdk-tdmq-3.0.692 vs lib/v20200217/client.rb in tencentcloud-sdk-tdmq-3.0.693

- old
+ new

@@ -1275,9 +1275,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询消息轨迹 + + # @param request: Request instance for DescribeMsgTrace. + # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeMsgTraceRequest` + # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeMsgTraceResponse` + def DescribeMsgTrace(request) + body = send_request('DescribeMsgTrace', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeMsgTraceResponse.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 + # 运营端获取命名空间bundle列表 # @param request: Request instance for DescribeNamespaceBundlesOpt. # @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeNamespaceBundlesOptRequest` # @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeNamespaceBundlesOptResponse` \ No newline at end of file