lib/v20201016/client.rb in tencentcloud-sdk-cls-3.0.625 vs lib/v20201016/client.rb in tencentcloud-sdk-cls-3.0.626

- old
+ new

@@ -1203,9 +1203,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口用于获取kafka用户信息 + + # @param request: Request instance for DescribeKafkaUser. + # @type request: :class:`Tencentcloud::cls::V20201016::DescribeKafkaUserRequest` + # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeKafkaUserResponse` + def DescribeKafkaUser(request) + body = send_request('DescribeKafkaUser', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeKafkaUserResponse.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 + # 本接口用于搜索日志上下文附近的内容 # @param request: Request instance for DescribeLogContext. # @type request: :class:`Tencentcloud::cls::V20201016::DescribeLogContextRequest` # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeLogContextResponse` \ No newline at end of file