lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.394 vs lib/v20201111/client.rb in tencentcloud-sdk-ess-3.0.398

- old
+ new

@@ -206,9 +206,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 创建出证报告,返回报告 URL + + # @param request: Request instance for CreateFlowEvidenceReport. + # @type request: :class:`Tencentcloud::ess::V20201111::CreateFlowEvidenceReportRequest` + # @rtype: :class:`Tencentcloud::ess::V20201111::CreateFlowEvidenceReportResponse` + def CreateFlowEvidenceReport(request) + body = send_request('CreateFlowEvidenceReport', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = CreateFlowEvidenceReportResponse.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 + # 提交企业签署流程审批结果 # 适用场景: # 在通过接口(CreateFlow 或者CreateFlowByFiles)创建签署流程时,若指定了参数 NeedSignReview 为true,则可以调用此接口提交企业内部签署审批结果。 # 若签署流程状态正常,且本企业存在签署方未签署,同一签署流程可以多次提交签署审批结果,签署时的最后一个“审批结果”有效。 \ No newline at end of file