lib/v20180411/client.rb in tencentcloud-sdk-dcdb-1.0.225 vs lib/v20180411/client.rb in tencentcloud-sdk-dcdb-1.0.226
- old
+ new
@@ -654,9 +654,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 本接口(DescribeFileDownloadUrl)用于获取数据库指定备份或日志文件的下载连接。
+
+ # @param request: Request instance for DescribeFileDownloadUrl.
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeFileDownloadUrlRequest`
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeFileDownloadUrlResponse`
+ def DescribeFileDownloadUrl(request)
+ body = send_request('DescribeFileDownloadUrl', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeFileDownloadUrlResponse.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
+
# 本接口(DescribeFlow)用于查询流程状态
# @param request: Request instance for DescribeFlow.
# @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeFlowRequest`
# @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeFlowResponse`
\ No newline at end of file