lib/v20201016/client.rb in tencentcloud-sdk-cls-3.0.643 vs lib/v20201016/client.rb in tencentcloud-sdk-cls-3.0.644
- old
+ new
@@ -1971,9 +1971,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 本接口用于预览cos导入信息
+
+ # @param request: Request instance for SearchCosRechargeInfo.
+ # @type request: :class:`Tencentcloud::cls::V20201016::SearchCosRechargeInfoRequest`
+ # @rtype: :class:`Tencentcloud::cls::V20201016::SearchCosRechargeInfoResponse`
+ def SearchCosRechargeInfo(request)
+ body = send_request('SearchCosRechargeInfo', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = SearchCosRechargeInfoResponse.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
+
# 本接口用于检索分析日志, 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
# API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
# @param request: Request instance for SearchLog.
\ No newline at end of file