lib/v20210526/client.rb in tencentcloud-sdk-essbasic-1.0.229 vs lib/v20210526/client.rb in tencentcloud-sdk-essbasic-1.0.230

- old
+ new

@@ -99,9 +99,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 此接口(DescribeFlowDetailInfo)用于查询合同(流程)的详细信息。 + + # @param request: Request instance for DescribeFlowDetailInfo. + # @type request: :class:`Tencentcloud::essbasic::V20210526::DescribeFlowDetailInfoRequest` + # @rtype: :class:`Tencentcloud::essbasic::V20210526::DescribeFlowDetailInfoResponse` + def DescribeFlowDetailInfo(request) + body = send_request('DescribeFlowDetailInfo', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeFlowDetailInfoResponse.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 DescribeResourceUrlsByFlows. # @type request: :class:`Tencentcloud::essbasic::V20210526::DescribeResourceUrlsByFlowsRequest` # @rtype: :class:`Tencentcloud::essbasic::V20210526::DescribeResourceUrlsByFlowsResponse` \ No newline at end of file