lib/v20190919/client.rb in tencentcloud-sdk-tiw-3.0.618 vs lib/v20190919/client.rb in tencentcloud-sdk-tiw-3.0.619

- old
+ new

@@ -679,9 +679,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 通过文档URL查询转码任务,返回最近的一次转码结果 + + # @param request: Request instance for DescribeTranscodeByUrl. + # @type request: :class:`Tencentcloud::tiw::V20190919::DescribeTranscodeByUrlRequest` + # @rtype: :class:`Tencentcloud::tiw::V20190919::DescribeTranscodeByUrlResponse` + def DescribeTranscodeByUrl(request) + body = send_request('DescribeTranscodeByUrl', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeTranscodeByUrlResponse.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 DescribeTranscodeCallback. # @type request: :class:`Tencentcloud::tiw::V20190919::DescribeTranscodeCallbackRequest` # @rtype: :class:`Tencentcloud::tiw::V20190919::DescribeTranscodeCallbackResponse` \ No newline at end of file