|
38 | 38 | import ai.reveng.model.BaseResponseFunctionCapabilityResponse; |
39 | 39 | import ai.reveng.model.BaseResponseFunctionStringsResponse; |
40 | 40 | import ai.reveng.model.BaseResponseFunctionsDetailResponse; |
| 41 | +import ai.reveng.model.BaseResponseListCalleesCallerFunctionsResponse; |
41 | 42 | import ai.reveng.model.FunctionMatchingRequest; |
42 | 43 | import ai.reveng.model.FunctionMatchingResponse; |
43 | 44 |
|
@@ -1476,6 +1477,140 @@ public okhttp3.Call getFunctionCalleesCallersAsync(@javax.annotation.Nonnull Int |
1476 | 1477 | localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); |
1477 | 1478 | return localVarCall; |
1478 | 1479 | } |
| 1480 | + /** |
| 1481 | + * Build call for getFunctionCalleesCallersBulk |
| 1482 | + * @param functionIds (required) |
| 1483 | + * @param _callback Callback for upload/download progress |
| 1484 | + * @return Call to execute |
| 1485 | + * @throws ApiException If fail to serialize the request body object |
| 1486 | + * @http.response.details |
| 1487 | + <table border="1"> |
| 1488 | + <caption>Response Details</caption> |
| 1489 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 1490 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 1491 | + <tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr> |
| 1492 | + </table> |
| 1493 | + */ |
| 1494 | + public okhttp3.Call getFunctionCalleesCallersBulkCall(@javax.annotation.Nonnull List<Integer> functionIds, final ApiCallback _callback) throws ApiException { |
| 1495 | + String basePath = null; |
| 1496 | + // Operation Servers |
| 1497 | + String[] localBasePaths = new String[] { }; |
| 1498 | + |
| 1499 | + // Determine Base Path to Use |
| 1500 | + if (localCustomBaseUrl != null){ |
| 1501 | + basePath = localCustomBaseUrl; |
| 1502 | + } else if ( localBasePaths.length > 0 ) { |
| 1503 | + basePath = localBasePaths[localHostIndex]; |
| 1504 | + } else { |
| 1505 | + basePath = null; |
| 1506 | + } |
| 1507 | + |
| 1508 | + Object localVarPostBody = null; |
| 1509 | + |
| 1510 | + // create path and map variables |
| 1511 | + String localVarPath = "/v2/functions/callees_callers"; |
| 1512 | + |
| 1513 | + List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
| 1514 | + List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); |
| 1515 | + Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
| 1516 | + Map<String, String> localVarCookieParams = new HashMap<String, String>(); |
| 1517 | + Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
| 1518 | + |
| 1519 | + if (functionIds != null) { |
| 1520 | + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "function_ids", functionIds)); |
| 1521 | + } |
| 1522 | + |
| 1523 | + final String[] localVarAccepts = { |
| 1524 | + "application/json" |
| 1525 | + }; |
| 1526 | + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
| 1527 | + if (localVarAccept != null) { |
| 1528 | + localVarHeaderParams.put("Accept", localVarAccept); |
| 1529 | + } |
| 1530 | + |
| 1531 | + final String[] localVarContentTypes = { |
| 1532 | + }; |
| 1533 | + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); |
| 1534 | + if (localVarContentType != null) { |
| 1535 | + localVarHeaderParams.put("Content-Type", localVarContentType); |
| 1536 | + } |
| 1537 | + |
| 1538 | + String[] localVarAuthNames = new String[] { "APIKey" }; |
| 1539 | + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
| 1540 | + } |
| 1541 | + |
| 1542 | + @SuppressWarnings("rawtypes") |
| 1543 | + private okhttp3.Call getFunctionCalleesCallersBulkValidateBeforeCall(@javax.annotation.Nonnull List<Integer> functionIds, final ApiCallback _callback) throws ApiException { |
| 1544 | + // verify the required parameter 'functionIds' is set |
| 1545 | + if (functionIds == null) { |
| 1546 | + throw new ApiException("Missing the required parameter 'functionIds' when calling getFunctionCalleesCallersBulk(Async)"); |
| 1547 | + } |
| 1548 | + |
| 1549 | + return getFunctionCalleesCallersBulkCall(functionIds, _callback); |
| 1550 | + |
| 1551 | + } |
| 1552 | + |
| 1553 | + /** |
| 1554 | + * Get list of functions that call or are called for a list of functions |
| 1555 | + * |
| 1556 | + * @param functionIds (required) |
| 1557 | + * @return BaseResponseListCalleesCallerFunctionsResponse |
| 1558 | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
| 1559 | + * @http.response.details |
| 1560 | + <table border="1"> |
| 1561 | + <caption>Response Details</caption> |
| 1562 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 1563 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 1564 | + <tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr> |
| 1565 | + </table> |
| 1566 | + */ |
| 1567 | + public BaseResponseListCalleesCallerFunctionsResponse getFunctionCalleesCallersBulk(@javax.annotation.Nonnull List<Integer> functionIds) throws ApiException { |
| 1568 | + ApiResponse<BaseResponseListCalleesCallerFunctionsResponse> localVarResp = getFunctionCalleesCallersBulkWithHttpInfo(functionIds); |
| 1569 | + return localVarResp.getData(); |
| 1570 | + } |
| 1571 | + |
| 1572 | + /** |
| 1573 | + * Get list of functions that call or are called for a list of functions |
| 1574 | + * |
| 1575 | + * @param functionIds (required) |
| 1576 | + * @return ApiResponse<BaseResponseListCalleesCallerFunctionsResponse> |
| 1577 | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
| 1578 | + * @http.response.details |
| 1579 | + <table border="1"> |
| 1580 | + <caption>Response Details</caption> |
| 1581 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 1582 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 1583 | + <tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr> |
| 1584 | + </table> |
| 1585 | + */ |
| 1586 | + public ApiResponse<BaseResponseListCalleesCallerFunctionsResponse> getFunctionCalleesCallersBulkWithHttpInfo(@javax.annotation.Nonnull List<Integer> functionIds) throws ApiException { |
| 1587 | + okhttp3.Call localVarCall = getFunctionCalleesCallersBulkValidateBeforeCall(functionIds, null); |
| 1588 | + Type localVarReturnType = new TypeToken<BaseResponseListCalleesCallerFunctionsResponse>(){}.getType(); |
| 1589 | + return localVarApiClient.execute(localVarCall, localVarReturnType); |
| 1590 | + } |
| 1591 | + |
| 1592 | + /** |
| 1593 | + * Get list of functions that call or are called for a list of functions (asynchronously) |
| 1594 | + * |
| 1595 | + * @param functionIds (required) |
| 1596 | + * @param _callback The callback to be executed when the API call finishes |
| 1597 | + * @return The request call |
| 1598 | + * @throws ApiException If fail to process the API call, e.g. serializing the request body object |
| 1599 | + * @http.response.details |
| 1600 | + <table border="1"> |
| 1601 | + <caption>Response Details</caption> |
| 1602 | + <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
| 1603 | + <tr><td> 200 </td><td> Successful Response </td><td> - </td></tr> |
| 1604 | + <tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr> |
| 1605 | + </table> |
| 1606 | + */ |
| 1607 | + public okhttp3.Call getFunctionCalleesCallersBulkAsync(@javax.annotation.Nonnull List<Integer> functionIds, final ApiCallback<BaseResponseListCalleesCallerFunctionsResponse> _callback) throws ApiException { |
| 1608 | + |
| 1609 | + okhttp3.Call localVarCall = getFunctionCalleesCallersBulkValidateBeforeCall(functionIds, _callback); |
| 1610 | + Type localVarReturnType = new TypeToken<BaseResponseListCalleesCallerFunctionsResponse>(){}.getType(); |
| 1611 | + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); |
| 1612 | + return localVarCall; |
| 1613 | + } |
1479 | 1614 | /** |
1480 | 1615 | * Build call for getFunctionCapabilities |
1481 | 1616 | * @param functionId (required) |
|
0 commit comments