From 4b2147893dbdfa55b90fd71ed28de545819a5ae3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 19 Nov 2025 07:03:02 +0000 Subject: [PATCH] Update SDK to version v2.38.0 - Generated from OpenAPI spec version v2.38.0 - Auto-generated by GitHub Actions --- .sdk-version | 2 +- README.md | 4 +- build.gradle | 4 +- build.sbt | 2 +- docs/AnalysesCommentsApi.md | 24 +- docs/AnalysesCoreApi.md | 78 ++-- docs/AnalysesDynamicExecutionApi.md | 42 ++- docs/AnalysesResultsMetadataApi.md | 42 ++- docs/AnalysesSecurityChecksApi.md | 18 +- docs/AuthenticationUsersApi.md | 36 +- docs/BinariesApi.md | 36 +- docs/CollectionsApi.md | 42 ++- docs/ExternalSourcesApi.md | 36 +- docs/FirmwareApi.md | 12 +- docs/FunctionsAiDecompilationApi.md | 54 ++- docs/FunctionsBlockCommentsApi.md | 18 +- docs/FunctionsCoreApi.md | 72 ++-- docs/FunctionsDataTypesApi.md | 36 +- docs/FunctionsDecompilationApi.md | 24 +- docs/FunctionsRenamingHistoryApi.md | 24 +- docs/ModelsApi.md | 10 +- docs/SearchApi.md | 18 +- pom.xml | 2 +- .../ai/reveng/api/AnalysesCommentsApi.java | 104 ++++-- .../java/ai/reveng/api/AnalysesCoreApi.java | 338 ++++++++++++------ .../api/AnalysesDynamicExecutionApi.java | 182 ++++++---- .../api/AnalysesResultsMetadataApi.java | 182 ++++++---- .../reveng/api/AnalysesSecurityChecksApi.java | 78 ++-- .../ai/reveng/api/AuthenticationUsersApi.java | 104 ++++-- src/main/java/ai/reveng/api/BinariesApi.java | 156 +++++--- .../java/ai/reveng/api/CollectionsApi.java | 182 ++++++---- .../ai/reveng/api/ExternalSourcesApi.java | 156 +++++--- src/main/java/ai/reveng/api/FirmwareApi.java | 52 ++- .../api/FunctionsAiDecompilationApi.java | 234 +++++++----- .../reveng/api/FunctionsBlockCommentsApi.java | 78 ++-- .../java/ai/reveng/api/FunctionsCoreApi.java | 312 ++++++++++------ .../ai/reveng/api/FunctionsDataTypesApi.java | 156 +++++--- .../reveng/api/FunctionsDecompilationApi.java | 104 ++++-- .../api/FunctionsRenamingHistoryApi.java | 104 ++++-- src/main/java/ai/reveng/api/ModelsApi.java | 26 +- src/main/java/ai/reveng/api/SearchApi.java | 78 ++-- .../java/ai/reveng/invoker/ApiClient.java | 2 +- .../java/ai/reveng/invoker/Configuration.java | 2 +- .../reveng/api/AnalysesCommentsApiTest.java | 12 +- .../ai/reveng/api/AnalysesCoreApiTest.java | 39 +- .../api/AnalysesDynamicExecutionApiTest.java | 21 +- .../api/AnalysesResultsMetadataApiTest.java | 21 +- .../api/AnalysesSecurityChecksApiTest.java | 9 +- .../api/AuthenticationUsersApiTest.java | 12 +- .../java/ai/reveng/api/BinariesApiTest.java | 18 +- .../ai/reveng/api/CollectionsApiTest.java | 21 +- .../ai/reveng/api/ExternalSourcesApiTest.java | 18 +- .../java/ai/reveng/api/FirmwareApiTest.java | 6 +- .../api/FunctionsAiDecompilationApiTest.java | 27 +- .../api/FunctionsBlockCommentsApiTest.java | 9 +- .../ai/reveng/api/FunctionsCoreApiTest.java | 36 +- .../reveng/api/FunctionsDataTypesApiTest.java | 18 +- .../api/FunctionsDecompilationApiTest.java | 12 +- .../api/FunctionsRenamingHistoryApiTest.java | 12 +- .../java/ai/reveng/api/ModelsApiTest.java | 3 +- .../java/ai/reveng/api/SearchApiTest.java | 9 +- 61 files changed, 2344 insertions(+), 1225 deletions(-) diff --git a/.sdk-version b/.sdk-version index 9b8a6e4..9d52aca 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.37.4 +v2.38.0 diff --git a/README.md b/README.md index 174fb25..640fe59 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this dependency to your project's POM: ai.reveng sdk - 2.37.4 + 2.38.0 compile ``` @@ -31,7 +31,7 @@ repositories { } dependencies { - implementation "ai.reveng:sdk:2.37.4" + implementation "ai.reveng:sdk:2.38.0" } ``` diff --git a/build.gradle b/build.gradle index 0ac2f5f..f92a76a 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'ai.reveng' -version = '2.37.4' +version = '2.38.0' @@ -171,7 +171,7 @@ mavenPublishing { publishToMavenCentral(true) signAllPublications() - coordinates("ai.reveng", "sdk", "2.37.4") + coordinates("ai.reveng", "sdk", "2.38.0") pom { name = "sdk" diff --git a/build.sbt b/build.sbt index 0d96faa..e76c3fc 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "ai.reveng", name := "sdk", - version := "2.37.4", + version := "2.38.0", scalaVersion := "2.11.12", scalacOptions ++= Seq("-feature"), compile / javacOptions ++= Seq("-Xlint:deprecation"), diff --git a/docs/AnalysesCommentsApi.md b/docs/AnalysesCommentsApi.md index bfacf9f..2209ed5 100644 --- a/docs/AnalysesCommentsApi.md +++ b/docs/AnalysesCommentsApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.reveng.ai* # **createAnalysisComment** -> BaseResponseCommentResponse createAnalysisComment(analysisId, commentBase) +> BaseResponseCommentResponse createAnalysisComment(analysisId, commentBase, apiKey) Create a comment for this analysis @@ -42,8 +42,9 @@ public class Example { AnalysesCommentsApi apiInstance = new AnalysesCommentsApi(defaultClient); Integer analysisId = 56; // Integer | CommentBase commentBase = new CommentBase(); // CommentBase | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommentResponse result = apiInstance.createAnalysisComment(analysisId, commentBase); + BaseResponseCommentResponse result = apiInstance.createAnalysisComment(analysisId, commentBase, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#createAnalysisComment"); @@ -62,6 +63,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **commentBase** | [**CommentBase**](CommentBase.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -85,7 +87,7 @@ public class Example { # **deleteAnalysisComment** -> BaseResponseBool deleteAnalysisComment(commentId, analysisId) +> BaseResponseBool deleteAnalysisComment(commentId, analysisId, apiKey) Delete a comment @@ -115,8 +117,9 @@ public class Example { AnalysesCommentsApi apiInstance = new AnalysesCommentsApi(defaultClient); Integer commentId = 56; // Integer | Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBool result = apiInstance.deleteAnalysisComment(commentId, analysisId); + BaseResponseBool result = apiInstance.deleteAnalysisComment(commentId, analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#deleteAnalysisComment"); @@ -135,6 +138,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **Integer**| | | | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -159,7 +163,7 @@ public class Example { # **getAnalysisComments** -> BaseResponseListCommentResponse getAnalysisComments(analysisId) +> BaseResponseListCommentResponse getAnalysisComments(analysisId, apiKey) Get comments for this analysis @@ -188,8 +192,9 @@ public class Example { AnalysesCommentsApi apiInstance = new AnalysesCommentsApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListCommentResponse result = apiInstance.getAnalysisComments(analysisId); + BaseResponseListCommentResponse result = apiInstance.getAnalysisComments(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#getAnalysisComments"); @@ -207,6 +212,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -229,7 +235,7 @@ public class Example { # **updateAnalysisComment** -> BaseResponseCommentResponse updateAnalysisComment(commentId, analysisId, commentUpdateRequest) +> BaseResponseCommentResponse updateAnalysisComment(commentId, analysisId, commentUpdateRequest, apiKey) Update a comment @@ -260,8 +266,9 @@ public class Example { Integer commentId = 56; // Integer | Integer analysisId = 56; // Integer | CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommentResponse result = apiInstance.updateAnalysisComment(commentId, analysisId, commentUpdateRequest); + BaseResponseCommentResponse result = apiInstance.updateAnalysisComment(commentId, analysisId, commentUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCommentsApi#updateAnalysisComment"); @@ -281,6 +288,7 @@ public class Example { | **commentId** | **Integer**| | | | **analysisId** | **Integer**| | | | **commentUpdateRequest** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md index 0bccbb9..6c84ad3 100644 --- a/docs/AnalysesCoreApi.md +++ b/docs/AnalysesCoreApi.md @@ -21,7 +21,7 @@ All URIs are relative to *https://api.reveng.ai* # **createAnalysis** -> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest) +> BaseResponseAnalysisCreateResponse createAnalysis(analysisCreateRequest, apiKey) Create Analysis @@ -50,8 +50,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); AnalysisCreateRequest analysisCreateRequest = new AnalysisCreateRequest(); // AnalysisCreateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisCreateResponse result = apiInstance.createAnalysis(analysisCreateRequest); + BaseResponseAnalysisCreateResponse result = apiInstance.createAnalysis(analysisCreateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#createAnalysis"); @@ -69,6 +70,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisCreateRequest** | [**AnalysisCreateRequest**](AnalysisCreateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -93,7 +95,7 @@ public class Example { # **deleteAnalysis** -> BaseResponseDict deleteAnalysis(analysisId) +> BaseResponseDict deleteAnalysis(analysisId, apiKey) Delete Analysis @@ -122,8 +124,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseDict result = apiInstance.deleteAnalysis(analysisId); + BaseResponseDict result = apiInstance.deleteAnalysis(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#deleteAnalysis"); @@ -141,6 +144,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -165,7 +169,7 @@ public class Example { # **getAnalysisBasicInfo** -> BaseResponseBasic getAnalysisBasicInfo(analysisId) +> BaseResponseBasic getAnalysisBasicInfo(analysisId, apiKey) Gets basic analysis information @@ -194,8 +198,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBasic result = apiInstance.getAnalysisBasicInfo(analysisId); + BaseResponseBasic result = apiInstance.getAnalysisBasicInfo(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisBasicInfo"); @@ -213,6 +218,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -235,7 +241,7 @@ public class Example { # **getAnalysisFunctionMap** -> BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(analysisId) +> BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(analysisId, apiKey) Get Analysis Function Map @@ -264,8 +270,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisFunctionMapping result = apiInstance.getAnalysisFunctionMap(analysisId); + BaseResponseAnalysisFunctionMapping result = apiInstance.getAnalysisFunctionMap(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisFunctionMap"); @@ -283,6 +290,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -305,7 +313,7 @@ public class Example { # **getAnalysisLogs** -> BaseResponseLogs getAnalysisLogs(analysisId) +> BaseResponseLogs getAnalysisLogs(analysisId, apiKey) Gets the logs of an analysis @@ -334,8 +342,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseLogs result = apiInstance.getAnalysisLogs(analysisId); + BaseResponseLogs result = apiInstance.getAnalysisLogs(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisLogs"); @@ -353,6 +362,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -375,7 +385,7 @@ public class Example { # **getAnalysisParams** -> BaseResponseParams getAnalysisParams(analysisId) +> BaseResponseParams getAnalysisParams(analysisId, apiKey) Gets analysis param information @@ -404,8 +414,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseParams result = apiInstance.getAnalysisParams(analysisId); + BaseResponseParams result = apiInstance.getAnalysisParams(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisParams"); @@ -423,6 +434,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -445,7 +457,7 @@ public class Example { # **getAnalysisStatus** -> BaseResponseStatus getAnalysisStatus(analysisId) +> BaseResponseStatus getAnalysisStatus(analysisId, apiKey) Gets the status of an analysis @@ -474,8 +486,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseStatus result = apiInstance.getAnalysisStatus(analysisId); + BaseResponseStatus result = apiInstance.getAnalysisStatus(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#getAnalysisStatus"); @@ -493,6 +506,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -515,7 +529,7 @@ public class Example { # **listAnalyses** -> BaseResponseRecent listAnalyses(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order) +> BaseResponseRecent listAnalyses(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey) Gets the most recent analyses @@ -554,8 +568,9 @@ public class Example { Integer offset = 0; // Integer | AppApiRestV2AnalysesEnumsOrderBy orderBy = AppApiRestV2AnalysesEnumsOrderBy.fromValue("created"); // AppApiRestV2AnalysesEnumsOrderBy | Order order = Order.fromValue("ASC"); // Order | + String apiKey = "apiKey_example"; // String | try { - BaseResponseRecent result = apiInstance.listAnalyses(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order); + BaseResponseRecent result = apiInstance.listAnalyses(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#listAnalyses"); @@ -583,6 +598,7 @@ public class Example { | **offset** | **Integer**| | [optional] [default to 0] | | **orderBy** | [**AppApiRestV2AnalysesEnumsOrderBy**](.md)| | [optional] [enum: created, name, size] | | **order** | [**Order**](.md)| | [optional] [enum: ASC, DESC] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -605,7 +621,7 @@ public class Example { # **lookupBinaryId** -> Object lookupBinaryId(binaryId) +> Object lookupBinaryId(binaryId, apiKey) Gets the analysis ID from binary ID @@ -634,8 +650,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - Object result = apiInstance.lookupBinaryId(binaryId); + Object result = apiInstance.lookupBinaryId(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#lookupBinaryId"); @@ -653,6 +670,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -675,7 +693,7 @@ public class Example { # **requeueAnalysis** -> BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm) +> BaseResponseCreated requeueAnalysis(analysisId, reAnalysisForm, apiKey) Requeue Analysis @@ -705,8 +723,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | ReAnalysisForm reAnalysisForm = new ReAnalysisForm(); // ReAnalysisForm | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCreated result = apiInstance.requeueAnalysis(analysisId, reAnalysisForm); + BaseResponseCreated result = apiInstance.requeueAnalysis(analysisId, reAnalysisForm, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#requeueAnalysis"); @@ -725,6 +744,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **reAnalysisForm** | [**ReAnalysisForm**](ReAnalysisForm.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -749,7 +769,7 @@ public class Example { # **updateAnalysis** -> BaseResponseAnalysisDetailResponse updateAnalysis(analysisId, analysisUpdateRequest) +> BaseResponseAnalysisDetailResponse updateAnalysis(analysisId, analysisUpdateRequest, apiKey) Update Analysis @@ -779,8 +799,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | AnalysisUpdateRequest analysisUpdateRequest = new AnalysisUpdateRequest(); // AnalysisUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisDetailResponse result = apiInstance.updateAnalysis(analysisId, analysisUpdateRequest); + BaseResponseAnalysisDetailResponse result = apiInstance.updateAnalysis(analysisId, analysisUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#updateAnalysis"); @@ -799,6 +820,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **analysisUpdateRequest** | [**AnalysisUpdateRequest**](AnalysisUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -821,7 +843,7 @@ public class Example { # **updateAnalysisTags** -> BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(analysisId, analysisUpdateTagsRequest) +> BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(analysisId, analysisUpdateTagsRequest, apiKey) Update Analysis Tags @@ -851,8 +873,9 @@ public class Example { AnalysesCoreApi apiInstance = new AnalysesCoreApi(defaultClient); Integer analysisId = 56; // Integer | AnalysisUpdateTagsRequest analysisUpdateTagsRequest = new AnalysisUpdateTagsRequest(); // AnalysisUpdateTagsRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisUpdateTagsResponse result = apiInstance.updateAnalysisTags(analysisId, analysisUpdateTagsRequest); + BaseResponseAnalysisUpdateTagsResponse result = apiInstance.updateAnalysisTags(analysisId, analysisUpdateTagsRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#updateAnalysisTags"); @@ -871,6 +894,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **analysisUpdateTagsRequest** | [**AnalysisUpdateTagsRequest**](AnalysisUpdateTagsRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -893,7 +917,7 @@ public class Example { # **uploadFile** -> BaseResponseUploadResponse uploadFile(uploadFileType, _file, packedPassword, forceOverwrite) +> BaseResponseUploadResponse uploadFile(uploadFileType, _file, packedPassword, apiKey, forceOverwrite) Upload File @@ -922,9 +946,10 @@ public class Example { UploadFileType uploadFileType = UploadFileType.fromValue("BINARY"); // UploadFileType | File _file = new File("/path/to/file"); // File | String packedPassword = "packedPassword_example"; // String | + String apiKey = "apiKey_example"; // String | Boolean forceOverwrite = false; // Boolean | try { - BaseResponseUploadResponse result = apiInstance.uploadFile(uploadFileType, _file, packedPassword, forceOverwrite); + BaseResponseUploadResponse result = apiInstance.uploadFile(uploadFileType, _file, packedPassword, apiKey, forceOverwrite); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesCoreApi#uploadFile"); @@ -944,6 +969,7 @@ public class Example { | **uploadFileType** | [**UploadFileType**](UploadFileType.md)| | [enum: BINARY, DEBUG, PACKED, FIRMWARE] | | **_file** | **File**| | | | **packedPassword** | **String**| | [optional] | +| **apiKey** | **String**| | [optional] | | **forceOverwrite** | **Boolean**| | [optional] [default to false] | ### Return type diff --git a/docs/AnalysesDynamicExecutionApi.md b/docs/AnalysesDynamicExecutionApi.md index cf57922..2ef16bd 100644 --- a/docs/AnalysesDynamicExecutionApi.md +++ b/docs/AnalysesDynamicExecutionApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.reveng.ai* # **getDynamicExecutionStatus** -> BaseResponseDynamicExecutionStatus getDynamicExecutionStatus(analysisId) +> BaseResponseDynamicExecutionStatus getDynamicExecutionStatus(analysisId, apiKey) Get the status of a dynamic execution task @@ -42,8 +42,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseDynamicExecutionStatus result = apiInstance.getDynamicExecutionStatus(analysisId); + BaseResponseDynamicExecutionStatus result = apiInstance.getDynamicExecutionStatus(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getDynamicExecutionStatus"); @@ -61,6 +62,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -83,7 +85,7 @@ public class Example { # **getNetworkOverview** -> BaseResponseNetworkOverviewResponse getNetworkOverview(analysisId) +> BaseResponseNetworkOverviewResponse getNetworkOverview(analysisId, apiKey) Get the dynamic execution results for network overview @@ -110,8 +112,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseNetworkOverviewResponse result = apiInstance.getNetworkOverview(analysisId); + BaseResponseNetworkOverviewResponse result = apiInstance.getNetworkOverview(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getNetworkOverview"); @@ -129,6 +132,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -151,7 +155,7 @@ public class Example { # **getProcessDump** -> Object getProcessDump(analysisId, dumpName) +> Object getProcessDump(analysisId, dumpName, apiKey) Get the dynamic execution results for a specific process dump @@ -179,8 +183,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | String dumpName = "dumpName_example"; // String | + String apiKey = "apiKey_example"; // String | try { - Object result = apiInstance.getProcessDump(analysisId, dumpName); + Object result = apiInstance.getProcessDump(analysisId, dumpName, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getProcessDump"); @@ -199,6 +204,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **dumpName** | **String**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -221,7 +227,7 @@ public class Example { # **getProcessDumps** -> BaseResponseProcessDumps getProcessDumps(analysisId) +> BaseResponseProcessDumps getProcessDumps(analysisId, apiKey) Get the dynamic execution results for process dumps @@ -248,8 +254,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseProcessDumps result = apiInstance.getProcessDumps(analysisId); + BaseResponseProcessDumps result = apiInstance.getProcessDumps(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getProcessDumps"); @@ -267,6 +274,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -289,7 +297,7 @@ public class Example { # **getProcessRegistry** -> BaseResponseProcessRegistry getProcessRegistry(analysisId) +> BaseResponseProcessRegistry getProcessRegistry(analysisId, apiKey) Get the dynamic execution results for process registry @@ -316,8 +324,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseProcessRegistry result = apiInstance.getProcessRegistry(analysisId); + BaseResponseProcessRegistry result = apiInstance.getProcessRegistry(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getProcessRegistry"); @@ -335,6 +344,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -357,7 +367,7 @@ public class Example { # **getProcessTree** -> BaseResponseProcessTree getProcessTree(analysisId) +> BaseResponseProcessTree getProcessTree(analysisId, apiKey) Get the dynamic execution results for process tree @@ -384,8 +394,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseProcessTree result = apiInstance.getProcessTree(analysisId); + BaseResponseProcessTree result = apiInstance.getProcessTree(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getProcessTree"); @@ -403,6 +414,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -425,7 +437,7 @@ public class Example { # **getTtps** -> BaseResponseTTPS getTtps(analysisId) +> BaseResponseTTPS getTtps(analysisId, apiKey) Get the dynamic execution results for ttps @@ -452,8 +464,9 @@ public class Example { AnalysesDynamicExecutionApi apiInstance = new AnalysesDynamicExecutionApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseTTPS result = apiInstance.getTtps(analysisId); + BaseResponseTTPS result = apiInstance.getTtps(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesDynamicExecutionApi#getTtps"); @@ -471,6 +484,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/AnalysesResultsMetadataApi.md b/docs/AnalysesResultsMetadataApi.md index fff0ab1..024625f 100644 --- a/docs/AnalysesResultsMetadataApi.md +++ b/docs/AnalysesResultsMetadataApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.reveng.ai* # **getCapabilities** -> BaseResponseCapabilities getCapabilities(analysisId) +> BaseResponseCapabilities getCapabilities(analysisId, apiKey) Gets the capabilities from the analysis @@ -42,8 +42,9 @@ public class Example { AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCapabilities result = apiInstance.getCapabilities(analysisId); + BaseResponseCapabilities result = apiInstance.getCapabilities(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getCapabilities"); @@ -61,6 +62,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -83,7 +85,7 @@ public class Example { # **getCommunities** -> BaseResponseCommunities getCommunities(analysisId, userName) +> BaseResponseCommunities getCommunities(analysisId, userName, apiKey) Gets the communities found in the analysis @@ -111,8 +113,9 @@ public class Example { AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); Integer analysisId = 56; // Integer | String userName = "userName_example"; // String | The user name to limit communities to + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommunities result = apiInstance.getCommunities(analysisId, userName); + BaseResponseCommunities result = apiInstance.getCommunities(analysisId, userName, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getCommunities"); @@ -131,6 +134,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **userName** | **String**| The user name to limit communities to | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -153,7 +157,7 @@ public class Example { # **getFunctionsList** -> BaseResponseAnalysisFunctions getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr) +> BaseResponseAnalysisFunctions getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr, apiKey) Gets functions from analysis @@ -185,8 +189,9 @@ public class Example { String searchTerm = "searchTerm_example"; // String | Integer minVAddr = 56; // Integer | Integer maxVAddr = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisFunctions result = apiInstance.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr); + BaseResponseAnalysisFunctions result = apiInstance.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getFunctionsList"); @@ -207,6 +212,7 @@ public class Example { | **searchTerm** | **String**| | [optional] | | **minVAddr** | **Integer**| | [optional] | | **maxVAddr** | **Integer**| | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -229,7 +235,7 @@ public class Example { # **getPdf** -> Object getPdf(analysisId) +> Object getPdf(analysisId, apiKey) Gets the PDF found in the analysis @@ -256,8 +262,9 @@ public class Example { AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - Object result = apiInstance.getPdf(analysisId); + Object result = apiInstance.getPdf(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getPdf"); @@ -275,6 +282,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -297,7 +305,7 @@ public class Example { # **getSbom** -> BaseResponseListSBOM getSbom(analysisId) +> BaseResponseListSBOM getSbom(analysisId, apiKey) Gets the software-bill-of-materials (SBOM) found in the analysis @@ -324,8 +332,9 @@ public class Example { AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListSBOM result = apiInstance.getSbom(analysisId); + BaseResponseListSBOM result = apiInstance.getSbom(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getSbom"); @@ -343,6 +352,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -365,7 +375,7 @@ public class Example { # **getTags** -> BaseResponseAnalysisTags getTags(analysisId) +> BaseResponseAnalysisTags getTags(analysisId, apiKey) Get function tags with maliciousness score @@ -392,8 +402,9 @@ public class Example { AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisTags result = apiInstance.getTags(analysisId); + BaseResponseAnalysisTags result = apiInstance.getTags(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getTags"); @@ -411,6 +422,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -433,7 +445,7 @@ public class Example { # **getVulnerabilities** -> BaseResponseVulnerabilities getVulnerabilities(analysisId) +> BaseResponseVulnerabilities getVulnerabilities(analysisId, apiKey) Gets the vulnerabilities found in the analysis @@ -460,8 +472,9 @@ public class Example { AnalysesResultsMetadataApi apiInstance = new AnalysesResultsMetadataApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseVulnerabilities result = apiInstance.getVulnerabilities(analysisId); + BaseResponseVulnerabilities result = apiInstance.getVulnerabilities(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesResultsMetadataApi#getVulnerabilities"); @@ -479,6 +492,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/AnalysesSecurityChecksApi.md b/docs/AnalysesSecurityChecksApi.md index d7ce66e..5ed8bb2 100644 --- a/docs/AnalysesSecurityChecksApi.md +++ b/docs/AnalysesSecurityChecksApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.reveng.ai* # **createScurityChecksTask** -> QueuedSecurityChecksTaskResponse createScurityChecksTask(analysisId) +> QueuedSecurityChecksTaskResponse createScurityChecksTask(analysisId, apiKey) Queues a security check process @@ -38,8 +38,9 @@ public class Example { AnalysesSecurityChecksApi apiInstance = new AnalysesSecurityChecksApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - QueuedSecurityChecksTaskResponse result = apiInstance.createScurityChecksTask(analysisId); + QueuedSecurityChecksTaskResponse result = apiInstance.createScurityChecksTask(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesSecurityChecksApi#createScurityChecksTask"); @@ -57,6 +58,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -80,7 +82,7 @@ public class Example { # **getSecurityChecks** -> BaseResponseSecurityChecksResponse getSecurityChecks(analysisId, page, pageSize) +> BaseResponseSecurityChecksResponse getSecurityChecks(analysisId, page, pageSize, apiKey) Get Security Checks @@ -111,8 +113,9 @@ public class Example { Integer analysisId = 56; // Integer | Integer page = 56; // Integer | The page number to retrieve. Integer pageSize = 56; // Integer | Number of items per page. + String apiKey = "apiKey_example"; // String | try { - BaseResponseSecurityChecksResponse result = apiInstance.getSecurityChecks(analysisId, page, pageSize); + BaseResponseSecurityChecksResponse result = apiInstance.getSecurityChecks(analysisId, page, pageSize, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesSecurityChecksApi#getSecurityChecks"); @@ -132,6 +135,7 @@ public class Example { | **analysisId** | **Integer**| | | | **page** | **Integer**| The page number to retrieve. | | | **pageSize** | **Integer**| Number of items per page. | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -154,7 +158,7 @@ public class Example { # **getSecurityChecksTaskStatus** -> CheckSecurityChecksTaskResponse getSecurityChecksTaskStatus(analysisId) +> CheckSecurityChecksTaskResponse getSecurityChecksTaskStatus(analysisId, apiKey) Check the status of a security check process @@ -181,8 +185,9 @@ public class Example { AnalysesSecurityChecksApi apiInstance = new AnalysesSecurityChecksApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - CheckSecurityChecksTaskResponse result = apiInstance.getSecurityChecksTaskStatus(analysisId); + CheckSecurityChecksTaskResponse result = apiInstance.getSecurityChecksTaskStatus(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AnalysesSecurityChecksApi#getSecurityChecksTaskStatus"); @@ -200,6 +205,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/AuthenticationUsersApi.md b/docs/AuthenticationUsersApi.md index b96164e..a529d3d 100644 --- a/docs/AuthenticationUsersApi.md +++ b/docs/AuthenticationUsersApi.md @@ -13,7 +13,7 @@ All URIs are relative to *https://api.reveng.ai* # **getRequesterUserInfo** -> BaseResponseGetUserResponse getRequesterUserInfo() +> BaseResponseGetUserResponse getRequesterUserInfo(apiKey) Get the requesters user information @@ -39,8 +39,9 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient); + String apiKey = "apiKey_example"; // String | try { - BaseResponseGetUserResponse result = apiInstance.getRequesterUserInfo(); + BaseResponseGetUserResponse result = apiInstance.getRequesterUserInfo(apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationUsersApi#getRequesterUserInfo"); @@ -54,7 +55,10 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **apiKey** | **String**| | [optional] | ### Return type @@ -77,7 +81,7 @@ This endpoint does not need any parameter. # **getUser** -> BaseResponseGetPublicUserResponse getUser(userId) +> BaseResponseGetPublicUserResponse getUser(userId, apiKey) Get a user's public information @@ -104,8 +108,9 @@ public class Example { AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient); Integer userId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseGetPublicUserResponse result = apiInstance.getUser(userId); + BaseResponseGetPublicUserResponse result = apiInstance.getUser(userId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationUsersApi#getUser"); @@ -123,6 +128,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **userId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -145,7 +151,7 @@ public class Example { # **getUserActivity** -> BaseResponseListUserActivityResponse getUserActivity() +> BaseResponseListUserActivityResponse getUserActivity(apiKey) Get auth user activity @@ -171,8 +177,9 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient); + String apiKey = "apiKey_example"; // String | try { - BaseResponseListUserActivityResponse result = apiInstance.getUserActivity(); + BaseResponseListUserActivityResponse result = apiInstance.getUserActivity(apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationUsersApi#getUserActivity"); @@ -186,7 +193,10 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **apiKey** | **String**| | [optional] | ### Return type @@ -209,7 +219,7 @@ This endpoint does not need any parameter. # **getUserComments** -> BaseResponseListCommentResponse getUserComments() +> BaseResponseListCommentResponse getUserComments(apiKey) Get comments by user @@ -237,8 +247,9 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); AuthenticationUsersApi apiInstance = new AuthenticationUsersApi(defaultClient); + String apiKey = "apiKey_example"; // String | try { - BaseResponseListCommentResponse result = apiInstance.getUserComments(); + BaseResponseListCommentResponse result = apiInstance.getUserComments(apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationUsersApi#getUserComments"); @@ -252,7 +263,10 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/BinariesApi.md b/docs/BinariesApi.md index 5bd6b6b..1dbde0a 100644 --- a/docs/BinariesApi.md +++ b/docs/BinariesApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.reveng.ai* # **downloadZippedBinary** -> Object downloadZippedBinary(binaryId) +> Object downloadZippedBinary(binaryId, apiKey) Downloads a zipped binary with password protection @@ -41,8 +41,9 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - Object result = apiInstance.downloadZippedBinary(binaryId); + Object result = apiInstance.downloadZippedBinary(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#downloadZippedBinary"); @@ -60,6 +61,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -82,7 +84,7 @@ public class Example { # **getBinaryAdditionalDetails** -> BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(binaryId) +> BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(binaryId, apiKey) Gets the additional details of a binary @@ -109,8 +111,9 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBinaryAdditionalResponse result = apiInstance.getBinaryAdditionalDetails(binaryId); + BaseResponseBinaryAdditionalResponse result = apiInstance.getBinaryAdditionalDetails(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryAdditionalDetails"); @@ -128,6 +131,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -150,7 +154,7 @@ public class Example { # **getBinaryDetails** -> BaseResponseBinaryDetailsResponse getBinaryDetails(binaryId) +> BaseResponseBinaryDetailsResponse getBinaryDetails(binaryId, apiKey) Gets the details of a binary @@ -177,8 +181,9 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBinaryDetailsResponse result = apiInstance.getBinaryDetails(binaryId); + BaseResponseBinaryDetailsResponse result = apiInstance.getBinaryDetails(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryDetails"); @@ -196,6 +201,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -218,7 +224,7 @@ public class Example { # **getBinaryDieInfo** -> BaseResponseListDieMatch getBinaryDieInfo(binaryId) +> BaseResponseListDieMatch getBinaryDieInfo(binaryId, apiKey) Gets the die info of a binary @@ -245,8 +251,9 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListDieMatch result = apiInstance.getBinaryDieInfo(binaryId); + BaseResponseListDieMatch result = apiInstance.getBinaryDieInfo(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryDieInfo"); @@ -264,6 +271,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -286,7 +294,7 @@ public class Example { # **getBinaryExternals** -> BaseResponseBinaryExternalsResponse getBinaryExternals(binaryId) +> BaseResponseBinaryExternalsResponse getBinaryExternals(binaryId, apiKey) Gets the external details of a binary @@ -313,8 +321,9 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBinaryExternalsResponse result = apiInstance.getBinaryExternals(binaryId); + BaseResponseBinaryExternalsResponse result = apiInstance.getBinaryExternals(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getBinaryExternals"); @@ -332,6 +341,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -354,7 +364,7 @@ public class Example { # **getRelatedBinaries** -> BaseResponseChildBinariesResponse getRelatedBinaries(binaryId) +> BaseResponseChildBinariesResponse getRelatedBinaries(binaryId, apiKey) Gets the related binaries of a binary. @@ -381,8 +391,9 @@ public class Example { BinariesApi apiInstance = new BinariesApi(defaultClient); Integer binaryId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseChildBinariesResponse result = apiInstance.getRelatedBinaries(binaryId); + BaseResponseChildBinariesResponse result = apiInstance.getRelatedBinaries(binaryId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BinariesApi#getRelatedBinaries"); @@ -400,6 +411,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **binaryId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/CollectionsApi.md b/docs/CollectionsApi.md index cd85303..262f725 100644 --- a/docs/CollectionsApi.md +++ b/docs/CollectionsApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.reveng.ai* # **createCollection** -> BaseResponseCollectionResponse createCollection(collectionCreateRequest) +> BaseResponseCollectionResponse createCollection(collectionCreateRequest, apiKey) Creates new collection information @@ -44,8 +44,9 @@ public class Example { CollectionsApi apiInstance = new CollectionsApi(defaultClient); CollectionCreateRequest collectionCreateRequest = new CollectionCreateRequest(); // CollectionCreateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCollectionResponse result = apiInstance.createCollection(collectionCreateRequest); + BaseResponseCollectionResponse result = apiInstance.createCollection(collectionCreateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#createCollection"); @@ -63,6 +64,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **collectionCreateRequest** | [**CollectionCreateRequest**](CollectionCreateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -85,7 +87,7 @@ public class Example { # **deleteCollection** -> BaseResponseBool deleteCollection(collectionId) +> BaseResponseBool deleteCollection(collectionId, apiKey) Deletes a collection @@ -114,8 +116,9 @@ public class Example { CollectionsApi apiInstance = new CollectionsApi(defaultClient); Integer collectionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBool result = apiInstance.deleteCollection(collectionId); + BaseResponseBool result = apiInstance.deleteCollection(collectionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#deleteCollection"); @@ -133,6 +136,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **collectionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -155,7 +159,7 @@ public class Example { # **getCollection** -> BaseResponseCollectionResponse getCollection(collectionId, includeTags, includeBinaries) +> BaseResponseCollectionResponse getCollection(collectionId, includeTags, includeBinaries, apiKey) Returns a collection @@ -186,8 +190,9 @@ public class Example { Integer collectionId = 56; // Integer | Boolean includeTags = false; // Boolean | Boolean includeBinaries = false; // Boolean | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCollectionResponse result = apiInstance.getCollection(collectionId, includeTags, includeBinaries); + BaseResponseCollectionResponse result = apiInstance.getCollection(collectionId, includeTags, includeBinaries, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#getCollection"); @@ -207,6 +212,7 @@ public class Example { | **collectionId** | **Integer**| | | | **includeTags** | **Boolean**| | [optional] [default to false] | | **includeBinaries** | **Boolean**| | [optional] [default to false] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -229,7 +235,7 @@ public class Example { # **listCollections** -> BaseResponseListCollectionResults listCollections(searchTerm, filters, limit, offset, orderBy, order) +> BaseResponseListCollectionResults listCollections(searchTerm, filters, limit, offset, orderBy, order, apiKey) Gets basic collections information @@ -263,8 +269,9 @@ public class Example { Integer offset = 0; // Integer | AppApiRestV2CollectionsEnumsOrderBy orderBy = AppApiRestV2CollectionsEnumsOrderBy.fromValue("created"); // AppApiRestV2CollectionsEnumsOrderBy | Order order = Order.fromValue("ASC"); // Order | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListCollectionResults result = apiInstance.listCollections(searchTerm, filters, limit, offset, orderBy, order); + BaseResponseListCollectionResults result = apiInstance.listCollections(searchTerm, filters, limit, offset, orderBy, order, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#listCollections"); @@ -287,6 +294,7 @@ public class Example { | **offset** | **Integer**| | [optional] [default to 0] | | **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| | [optional] [enum: created, collection, model, owner, collection_size, updated] | | **order** | [**Order**](.md)| | [optional] [enum: ASC, DESC] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -309,7 +317,7 @@ public class Example { # **updateCollection** -> BaseResponseCollectionResponse updateCollection(collectionId, collectionUpdateRequest) +> BaseResponseCollectionResponse updateCollection(collectionId, collectionUpdateRequest, apiKey) Updates a collection @@ -339,8 +347,9 @@ public class Example { CollectionsApi apiInstance = new CollectionsApi(defaultClient); Integer collectionId = 56; // Integer | CollectionUpdateRequest collectionUpdateRequest = new CollectionUpdateRequest(); // CollectionUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCollectionResponse result = apiInstance.updateCollection(collectionId, collectionUpdateRequest); + BaseResponseCollectionResponse result = apiInstance.updateCollection(collectionId, collectionUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#updateCollection"); @@ -359,6 +368,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **collectionId** | **Integer**| | | | **collectionUpdateRequest** | [**CollectionUpdateRequest**](CollectionUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -381,7 +391,7 @@ public class Example { # **updateCollectionBinaries** -> BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest) +> BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest, apiKey) Updates a collection binaries @@ -411,8 +421,9 @@ public class Example { CollectionsApi apiInstance = new CollectionsApi(defaultClient); Integer collectionId = 56; // Integer | CollectionBinariesUpdateRequest collectionBinariesUpdateRequest = new CollectionBinariesUpdateRequest(); // CollectionBinariesUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCollectionBinariesUpdateResponse result = apiInstance.updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest); + BaseResponseCollectionBinariesUpdateResponse result = apiInstance.updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#updateCollectionBinaries"); @@ -431,6 +442,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **collectionId** | **Integer**| | | | **collectionBinariesUpdateRequest** | [**CollectionBinariesUpdateRequest**](CollectionBinariesUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -453,7 +465,7 @@ public class Example { # **updateCollectionTags** -> BaseResponseCollectionTagsUpdateResponse updateCollectionTags(collectionId, collectionTagsUpdateRequest) +> BaseResponseCollectionTagsUpdateResponse updateCollectionTags(collectionId, collectionTagsUpdateRequest, apiKey) Updates a collection tags @@ -483,8 +495,9 @@ public class Example { CollectionsApi apiInstance = new CollectionsApi(defaultClient); Integer collectionId = 56; // Integer | CollectionTagsUpdateRequest collectionTagsUpdateRequest = new CollectionTagsUpdateRequest(); // CollectionTagsUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCollectionTagsUpdateResponse result = apiInstance.updateCollectionTags(collectionId, collectionTagsUpdateRequest); + BaseResponseCollectionTagsUpdateResponse result = apiInstance.updateCollectionTags(collectionId, collectionTagsUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CollectionsApi#updateCollectionTags"); @@ -503,6 +516,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **collectionId** | **Integer**| | | | **collectionTagsUpdateRequest** | [**CollectionTagsUpdateRequest**](CollectionTagsUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/ExternalSourcesApi.md b/docs/ExternalSourcesApi.md index ef48932..32ade49 100644 --- a/docs/ExternalSourcesApi.md +++ b/docs/ExternalSourcesApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.reveng.ai* # **createExternalTaskMb** -> BaseResponseStr createExternalTaskMb(analysisId) +> BaseResponseStr createExternalTaskMb(analysisId, apiKey) Pulls data from VirusTotal @@ -41,8 +41,9 @@ public class Example { ExternalSourcesApi apiInstance = new ExternalSourcesApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseStr result = apiInstance.createExternalTaskMb(analysisId); + BaseResponseStr result = apiInstance.createExternalTaskMb(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ExternalSourcesApi#createExternalTaskMb"); @@ -60,6 +61,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -83,7 +85,7 @@ public class Example { # **createExternalTaskVt** -> BaseResponseStr createExternalTaskVt(analysisId) +> BaseResponseStr createExternalTaskVt(analysisId, apiKey) Pulls data from VirusTotal @@ -110,8 +112,9 @@ public class Example { ExternalSourcesApi apiInstance = new ExternalSourcesApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseStr result = apiInstance.createExternalTaskVt(analysisId); + BaseResponseStr result = apiInstance.createExternalTaskVt(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ExternalSourcesApi#createExternalTaskVt"); @@ -129,6 +132,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -152,7 +156,7 @@ public class Example { # **getMbData** -> BaseResponseExternalResponse getMbData(analysisId) +> BaseResponseExternalResponse getMbData(analysisId, apiKey) Get MalwareBazaar data @@ -179,8 +183,9 @@ public class Example { ExternalSourcesApi apiInstance = new ExternalSourcesApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseExternalResponse result = apiInstance.getMbData(analysisId); + BaseResponseExternalResponse result = apiInstance.getMbData(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ExternalSourcesApi#getMbData"); @@ -198,6 +203,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -221,7 +227,7 @@ public class Example { # **getMbTaskStatus** -> BaseResponseTaskResponse getMbTaskStatus(analysisId) +> BaseResponseTaskResponse getMbTaskStatus(analysisId, apiKey) Check the status of MalwareBazaar data retrieval @@ -248,8 +254,9 @@ public class Example { ExternalSourcesApi apiInstance = new ExternalSourcesApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseTaskResponse result = apiInstance.getMbTaskStatus(analysisId); + BaseResponseTaskResponse result = apiInstance.getMbTaskStatus(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ExternalSourcesApi#getMbTaskStatus"); @@ -267,6 +274,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -289,7 +297,7 @@ public class Example { # **getVtData** -> BaseResponseExternalResponse getVtData(analysisId) +> BaseResponseExternalResponse getVtData(analysisId, apiKey) Get VirusTotal data @@ -316,8 +324,9 @@ public class Example { ExternalSourcesApi apiInstance = new ExternalSourcesApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseExternalResponse result = apiInstance.getVtData(analysisId); + BaseResponseExternalResponse result = apiInstance.getVtData(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ExternalSourcesApi#getVtData"); @@ -335,6 +344,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -358,7 +368,7 @@ public class Example { # **getVtTaskStatus** -> BaseResponseTaskResponse getVtTaskStatus(analysisId) +> BaseResponseTaskResponse getVtTaskStatus(analysisId, apiKey) Check the status of VirusTotal data retrieval @@ -385,8 +395,9 @@ public class Example { ExternalSourcesApi apiInstance = new ExternalSourcesApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseTaskResponse result = apiInstance.getVtTaskStatus(analysisId); + BaseResponseTaskResponse result = apiInstance.getVtTaskStatus(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ExternalSourcesApi#getVtTaskStatus"); @@ -404,6 +415,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/FirmwareApi.md b/docs/FirmwareApi.md index 955f230..7b3bf10 100644 --- a/docs/FirmwareApi.md +++ b/docs/FirmwareApi.md @@ -10,7 +10,7 @@ All URIs are relative to *https://api.reveng.ai* # **getBinariesForFirmwareTask** -> Object getBinariesForFirmwareTask(taskId) +> Object getBinariesForFirmwareTask(taskId, apiKey) Upload firmware for unpacking @@ -39,8 +39,9 @@ public class Example { FirmwareApi apiInstance = new FirmwareApi(defaultClient); String taskId = "taskId_example"; // String | + String apiKey = "apiKey_example"; // String | try { - Object result = apiInstance.getBinariesForFirmwareTask(taskId); + Object result = apiInstance.getBinariesForFirmwareTask(taskId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FirmwareApi#getBinariesForFirmwareTask"); @@ -58,6 +59,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **taskId** | **String**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -80,7 +82,7 @@ public class Example { # **uploadFirmware** -> Object uploadFirmware(_file, password) +> Object uploadFirmware(_file, apiKey, password) Upload firmware for unpacking @@ -109,9 +111,10 @@ public class Example { FirmwareApi apiInstance = new FirmwareApi(defaultClient); File _file = new File("/path/to/file"); // File | + String apiKey = "apiKey_example"; // String | String password = "password_example"; // String | try { - Object result = apiInstance.uploadFirmware(_file, password); + Object result = apiInstance.uploadFirmware(_file, apiKey, password); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FirmwareApi#uploadFirmware"); @@ -129,6 +132,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **_file** | **File**| | | +| **apiKey** | **String**| | [optional] | | **password** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsAiDecompilationApi.md b/docs/FunctionsAiDecompilationApi.md index 78272e5..eec62fd 100644 --- a/docs/FunctionsAiDecompilationApi.md +++ b/docs/FunctionsAiDecompilationApi.md @@ -17,7 +17,7 @@ All URIs are relative to *https://api.reveng.ai* # **createAiDecompilationComment** -> BaseResponseCommentResponse createAiDecompilationComment(functionId, functionCommentCreateRequest) +> BaseResponseCommentResponse createAiDecompilationComment(functionId, functionCommentCreateRequest, apiKey) Create a comment for this function @@ -47,8 +47,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Integer functionId = 56; // Integer | FunctionCommentCreateRequest functionCommentCreateRequest = new FunctionCommentCreateRequest(); // FunctionCommentCreateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommentResponse result = apiInstance.createAiDecompilationComment(functionId, functionCommentCreateRequest); + BaseResponseCommentResponse result = apiInstance.createAiDecompilationComment(functionId, functionCommentCreateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#createAiDecompilationComment"); @@ -67,6 +68,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **functionCommentCreateRequest** | [**FunctionCommentCreateRequest**](FunctionCommentCreateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -90,7 +92,7 @@ public class Example { # **createAiDecompilationTask** -> BaseResponse createAiDecompilationTask(functionId) +> BaseResponse createAiDecompilationTask(functionId, apiKey) Begins AI Decompilation Process @@ -119,8 +121,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Long functionId = 56L; // Long | The ID of the function for which we are creating the decompilation task + String apiKey = "apiKey_example"; // String | try { - BaseResponse result = apiInstance.createAiDecompilationTask(functionId); + BaseResponse result = apiInstance.createAiDecompilationTask(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#createAiDecompilationTask"); @@ -138,6 +141,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Long**| The ID of the function for which we are creating the decompilation task | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -164,7 +168,7 @@ public class Example { # **deleteAiDecompilationComment** -> BaseResponseBool deleteAiDecompilationComment(commentId, functionId) +> BaseResponseBool deleteAiDecompilationComment(commentId, functionId, apiKey) Delete a comment @@ -194,8 +198,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBool result = apiInstance.deleteAiDecompilationComment(commentId, functionId); + BaseResponseBool result = apiInstance.deleteAiDecompilationComment(commentId, functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#deleteAiDecompilationComment"); @@ -214,6 +219,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -238,7 +244,7 @@ public class Example { # **getAiDecompilationComments** -> BaseResponseListCommentResponse getAiDecompilationComments(functionId) +> BaseResponseListCommentResponse getAiDecompilationComments(functionId, apiKey) Get comments for this function @@ -267,8 +273,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListCommentResponse result = apiInstance.getAiDecompilationComments(functionId); + BaseResponseListCommentResponse result = apiInstance.getAiDecompilationComments(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationComments"); @@ -286,6 +293,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -308,7 +316,7 @@ public class Example { # **getAiDecompilationRating** -> BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(functionId) +> BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(functionId, apiKey) Get rating for AI decompilation @@ -335,8 +343,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Long functionId = 56L; // Long | The ID of the function for which to get the rating + String apiKey = "apiKey_example"; // String | try { - BaseResponseGetAiDecompilationRatingResponse result = apiInstance.getAiDecompilationRating(functionId); + BaseResponseGetAiDecompilationRatingResponse result = apiInstance.getAiDecompilationRating(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationRating"); @@ -354,6 +363,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Long**| The ID of the function for which to get the rating | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -376,7 +386,7 @@ public class Example { # **getAiDecompilationTaskResult** -> BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(functionId, summarise, generateInlineComments) +> BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(functionId, summarise, generateInlineComments, apiKey) Polls AI Decompilation Process @@ -407,8 +417,9 @@ public class Example { Long functionId = 56L; // Long | The ID of the function being decompiled Boolean summarise = true; // Boolean | Generate a summary for the decompilation Boolean generateInlineComments = true; // Boolean | Generate inline comments for the decompilation (only works if summarise is enabled) + String apiKey = "apiKey_example"; // String | try { - BaseResponseGetAiDecompilationTask result = apiInstance.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments); + BaseResponseGetAiDecompilationTask result = apiInstance.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationTaskResult"); @@ -428,6 +439,7 @@ public class Example { | **functionId** | **Long**| The ID of the function being decompiled | | | **summarise** | **Boolean**| Generate a summary for the decompilation | [optional] [default to true] | | **generateInlineComments** | **Boolean**| Generate inline comments for the decompilation (only works if summarise is enabled) | [optional] [default to true] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -451,7 +463,7 @@ public class Example { # **getAiDecompilationTaskStatus** -> BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(functionId) +> BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(functionId, apiKey) Check the status of a function ai decompilation @@ -478,8 +490,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Long functionId = 56L; // Long | The ID of the function being checked + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionTaskResponse result = apiInstance.getAiDecompilationTaskStatus(functionId); + BaseResponseFunctionTaskResponse result = apiInstance.getAiDecompilationTaskStatus(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#getAiDecompilationTaskStatus"); @@ -497,6 +510,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Long**| The ID of the function being checked | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -519,7 +533,7 @@ public class Example { # **updateAiDecompilationComment** -> BaseResponseCommentResponse updateAiDecompilationComment(commentId, functionId, commentUpdateRequest) +> BaseResponseCommentResponse updateAiDecompilationComment(commentId, functionId, commentUpdateRequest, apiKey) Update a comment @@ -550,8 +564,9 @@ public class Example { Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommentResponse result = apiInstance.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest); + BaseResponseCommentResponse result = apiInstance.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#updateAiDecompilationComment"); @@ -571,6 +586,7 @@ public class Example { | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | | **commentUpdateRequest** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -595,7 +611,7 @@ public class Example { # **upsertAiDecompilationRating** -> BaseResponse upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest) +> BaseResponse upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest, apiKey) Upsert rating for AI decompilation @@ -623,8 +639,9 @@ public class Example { FunctionsAiDecompilationApi apiInstance = new FunctionsAiDecompilationApi(defaultClient); Long functionId = 56L; // Long | The ID of the function being rated UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest = new UpsertAiDecomplationRatingRequest(); // UpsertAiDecomplationRatingRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponse result = apiInstance.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest); + BaseResponse result = apiInstance.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsAiDecompilationApi#upsertAiDecompilationRating"); @@ -643,6 +660,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Long**| The ID of the function being rated | | | **upsertAiDecomplationRatingRequest** | [**UpsertAiDecomplationRatingRequest**](UpsertAiDecomplationRatingRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsBlockCommentsApi.md b/docs/FunctionsBlockCommentsApi.md index 6006045..fb7d322 100644 --- a/docs/FunctionsBlockCommentsApi.md +++ b/docs/FunctionsBlockCommentsApi.md @@ -11,7 +11,7 @@ All URIs are relative to *https://api.reveng.ai* # **generateBlockCommentsForBlockInFunction** -> BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForBlockInFunction(functionId, block) +> BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForBlockInFunction(functionId, block, apiKey) Generate block comments for a specific block in a function @@ -39,8 +39,9 @@ public class Example { FunctionsBlockCommentsApi apiInstance = new FunctionsBlockCommentsApi(defaultClient); Integer functionId = 56; // Integer | Block block = new Block(); // Block | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBlockCommentsGenerationForFunctionResponse result = apiInstance.generateBlockCommentsForBlockInFunction(functionId, block); + BaseResponseBlockCommentsGenerationForFunctionResponse result = apiInstance.generateBlockCommentsForBlockInFunction(functionId, block, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsBlockCommentsApi#generateBlockCommentsForBlockInFunction"); @@ -59,6 +60,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **block** | [**Block**](Block.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -81,7 +83,7 @@ public class Example { # **generateBlockCommentsForFunction** -> BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForFunction(functionId) +> BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForFunction(functionId, apiKey) Generate block comments for a function @@ -108,8 +110,9 @@ public class Example { FunctionsBlockCommentsApi apiInstance = new FunctionsBlockCommentsApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBlockCommentsGenerationForFunctionResponse result = apiInstance.generateBlockCommentsForFunction(functionId); + BaseResponseBlockCommentsGenerationForFunctionResponse result = apiInstance.generateBlockCommentsForFunction(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsBlockCommentsApi#generateBlockCommentsForFunction"); @@ -127,6 +130,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -149,7 +153,7 @@ public class Example { # **generateOverviewCommentForFunction** -> BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewCommentForFunction(functionId) +> BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewCommentForFunction(functionId, apiKey) Generate overview comment for a function @@ -176,8 +180,9 @@ public class Example { FunctionsBlockCommentsApi apiInstance = new FunctionsBlockCommentsApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBlockCommentsOverviewGenerationResponse result = apiInstance.generateOverviewCommentForFunction(functionId); + BaseResponseBlockCommentsOverviewGenerationResponse result = apiInstance.generateOverviewCommentForFunction(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsBlockCommentsApi#generateOverviewCommentForFunction"); @@ -195,6 +200,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsCoreApi.md b/docs/FunctionsCoreApi.md index 8aa4c03..077e337 100644 --- a/docs/FunctionsCoreApi.md +++ b/docs/FunctionsCoreApi.md @@ -20,7 +20,7 @@ All URIs are relative to *https://api.reveng.ai* # **aiUnstrip** -> AutoUnstripResponse aiUnstrip(analysisId, aiUnstripRequest) +> AutoUnstripResponse aiUnstrip(analysisId, aiUnstripRequest, apiKey) Performs matching and auto-unstrip for an analysis and its functions @@ -50,8 +50,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer analysisId = 56; // Integer | AiUnstripRequest aiUnstripRequest = new AiUnstripRequest(); // AiUnstripRequest | + String apiKey = "apiKey_example"; // String | try { - AutoUnstripResponse result = apiInstance.aiUnstrip(analysisId, aiUnstripRequest); + AutoUnstripResponse result = apiInstance.aiUnstrip(analysisId, aiUnstripRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#aiUnstrip"); @@ -70,6 +71,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **aiUnstripRequest** | [**AiUnstripRequest**](AiUnstripRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -92,7 +94,7 @@ public class Example { # **analysisFunctionMatching** -> FunctionMatchingBatchResponse analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest) +> FunctionMatchingBatchResponse analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest, apiKey) Perform matching for the functions of an analysis @@ -122,8 +124,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer analysisId = 56; // Integer | AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest = new AnalysisFunctionMatchingRequest(); // AnalysisFunctionMatchingRequest | + String apiKey = "apiKey_example"; // String | try { - FunctionMatchingBatchResponse result = apiInstance.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest); + FunctionMatchingBatchResponse result = apiInstance.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#analysisFunctionMatching"); @@ -142,6 +145,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **analysisFunctionMatchingRequest** | [**AnalysisFunctionMatchingRequest**](AnalysisFunctionMatchingRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -164,7 +168,7 @@ public class Example { # **autoUnstrip** -> AutoUnstripResponse autoUnstrip(analysisId, autoUnstripRequest) +> AutoUnstripResponse autoUnstrip(analysisId, autoUnstripRequest, apiKey) Performs matching and auto-unstrip for an analysis and its functions @@ -194,8 +198,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer analysisId = 56; // Integer | AutoUnstripRequest autoUnstripRequest = new AutoUnstripRequest(); // AutoUnstripRequest | + String apiKey = "apiKey_example"; // String | try { - AutoUnstripResponse result = apiInstance.autoUnstrip(analysisId, autoUnstripRequest); + AutoUnstripResponse result = apiInstance.autoUnstrip(analysisId, autoUnstripRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#autoUnstrip"); @@ -214,6 +219,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **autoUnstripRequest** | [**AutoUnstripRequest**](AutoUnstripRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -236,7 +242,7 @@ public class Example { # **batchFunctionMatching** -> FunctionMatchingBatchResponse batchFunctionMatching(functionMatchingRequest) +> FunctionMatchingBatchResponse batchFunctionMatching(functionMatchingRequest, apiKey) Perform function matching for an arbitrary batch of functions, binaries or collections @@ -265,8 +271,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); FunctionMatchingRequest functionMatchingRequest = new FunctionMatchingRequest(); // FunctionMatchingRequest | + String apiKey = "apiKey_example"; // String | try { - FunctionMatchingBatchResponse result = apiInstance.batchFunctionMatching(functionMatchingRequest); + FunctionMatchingBatchResponse result = apiInstance.batchFunctionMatching(functionMatchingRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#batchFunctionMatching"); @@ -284,6 +291,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionMatchingRequest** | [**FunctionMatchingRequest**](FunctionMatchingRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -306,7 +314,7 @@ public class Example { # **cancelAiUnstrip** -> AutoUnstripResponse cancelAiUnstrip(analysisId) +> AutoUnstripResponse cancelAiUnstrip(analysisId, apiKey) Cancels a running ai-unstrip @@ -335,8 +343,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - AutoUnstripResponse result = apiInstance.cancelAiUnstrip(analysisId); + AutoUnstripResponse result = apiInstance.cancelAiUnstrip(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#cancelAiUnstrip"); @@ -354,6 +363,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -376,7 +386,7 @@ public class Example { # **cancelAutoUnstrip** -> AutoUnstripResponse cancelAutoUnstrip(analysisId) +> AutoUnstripResponse cancelAutoUnstrip(analysisId, apiKey) Cancels a running auto-unstrip @@ -405,8 +415,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer analysisId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - AutoUnstripResponse result = apiInstance.cancelAutoUnstrip(analysisId); + AutoUnstripResponse result = apiInstance.cancelAutoUnstrip(analysisId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#cancelAutoUnstrip"); @@ -424,6 +435,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -446,7 +458,7 @@ public class Example { # **getAnalysisStrings** -> BaseResponseAnalysisStringsResponse getAnalysisStrings(analysisId, page, pageSize, search, functionSearch) +> BaseResponseAnalysisStringsResponse getAnalysisStrings(analysisId, page, pageSize, search, functionSearch, apiKey) Get string information found in the Analysis @@ -479,8 +491,9 @@ public class Example { Integer pageSize = 100; // Integer | Number of items per page. String search = "search_example"; // String | Search is applied to string value String functionSearch = "functionSearch_example"; // String | Search is applied to function names + String apiKey = "apiKey_example"; // String | try { - BaseResponseAnalysisStringsResponse result = apiInstance.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch); + BaseResponseAnalysisStringsResponse result = apiInstance.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#getAnalysisStrings"); @@ -502,6 +515,7 @@ public class Example { | **pageSize** | **Integer**| Number of items per page. | [optional] [default to 100] | | **search** | **String**| Search is applied to string value | [optional] | | **functionSearch** | **String**| Search is applied to function names | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -524,7 +538,7 @@ public class Example { # **getFunctionBlocks** -> BaseResponseFunctionBlocksResponse getFunctionBlocks(functionId) +> BaseResponseFunctionBlocksResponse getFunctionBlocks(functionId, apiKey) Get disassembly blocks related to the function @@ -553,8 +567,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionBlocksResponse result = apiInstance.getFunctionBlocks(functionId); + BaseResponseFunctionBlocksResponse result = apiInstance.getFunctionBlocks(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#getFunctionBlocks"); @@ -572,6 +587,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -595,7 +611,7 @@ public class Example { # **getFunctionCalleesCallers** -> BaseResponseCalleesCallerFunctionsResponse getFunctionCalleesCallers(functionId) +> BaseResponseCalleesCallerFunctionsResponse getFunctionCalleesCallers(functionId, apiKey) Get list of functions that call or are called by the specified function @@ -622,8 +638,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCalleesCallerFunctionsResponse result = apiInstance.getFunctionCalleesCallers(functionId); + BaseResponseCalleesCallerFunctionsResponse result = apiInstance.getFunctionCalleesCallers(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#getFunctionCalleesCallers"); @@ -641,6 +658,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -663,7 +681,7 @@ public class Example { # **getFunctionCapabilities** -> BaseResponseFunctionCapabilityResponse getFunctionCapabilities(functionId) +> BaseResponseFunctionCapabilityResponse getFunctionCapabilities(functionId, apiKey) Retrieve a functions capabilities @@ -690,8 +708,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionCapabilityResponse result = apiInstance.getFunctionCapabilities(functionId); + BaseResponseFunctionCapabilityResponse result = apiInstance.getFunctionCapabilities(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#getFunctionCapabilities"); @@ -709,6 +728,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -732,7 +752,7 @@ public class Example { # **getFunctionDetails** -> BaseResponseFunctionsDetailResponse getFunctionDetails(functionId) +> BaseResponseFunctionsDetailResponse getFunctionDetails(functionId, apiKey) Get function details @@ -759,8 +779,9 @@ public class Example { FunctionsCoreApi apiInstance = new FunctionsCoreApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionsDetailResponse result = apiInstance.getFunctionDetails(functionId); + BaseResponseFunctionsDetailResponse result = apiInstance.getFunctionDetails(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#getFunctionDetails"); @@ -778,6 +799,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -800,7 +822,7 @@ public class Example { # **getFunctionStrings** -> BaseResponseFunctionStringsResponse getFunctionStrings(functionId, page, pageSize, search) +> BaseResponseFunctionStringsResponse getFunctionStrings(functionId, page, pageSize, search, apiKey) Get string information found in the function @@ -832,8 +854,9 @@ public class Example { Integer page = 1; // Integer | The page number to retrieve. Integer pageSize = 100; // Integer | Number of items per page. String search = "search_example"; // String | Search is applied to string value + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionStringsResponse result = apiInstance.getFunctionStrings(functionId, page, pageSize, search); + BaseResponseFunctionStringsResponse result = apiInstance.getFunctionStrings(functionId, page, pageSize, search, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsCoreApi#getFunctionStrings"); @@ -854,6 +877,7 @@ public class Example { | **page** | **Integer**| The page number to retrieve. | [optional] [default to 1] | | **pageSize** | **Integer**| Number of items per page. | [optional] [default to 100] | | **search** | **String**| Search is applied to string value | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsDataTypesApi.md b/docs/FunctionsDataTypesApi.md index b6e2d8d..9c2fc71 100644 --- a/docs/FunctionsDataTypesApi.md +++ b/docs/FunctionsDataTypesApi.md @@ -14,7 +14,7 @@ All URIs are relative to *https://api.reveng.ai* # **generateFunctionDataTypesForAnalysis** -> BaseResponseGenerateFunctionDataTypes generateFunctionDataTypesForAnalysis(analysisId, functionDataTypesParams) +> BaseResponseGenerateFunctionDataTypes generateFunctionDataTypesForAnalysis(analysisId, functionDataTypesParams, apiKey) Generate Function Data Types @@ -44,8 +44,9 @@ public class Example { FunctionsDataTypesApi apiInstance = new FunctionsDataTypesApi(defaultClient); Integer analysisId = 56; // Integer | FunctionDataTypesParams functionDataTypesParams = new FunctionDataTypesParams(); // FunctionDataTypesParams | + String apiKey = "apiKey_example"; // String | try { - BaseResponseGenerateFunctionDataTypes result = apiInstance.generateFunctionDataTypesForAnalysis(analysisId, functionDataTypesParams); + BaseResponseGenerateFunctionDataTypes result = apiInstance.generateFunctionDataTypesForAnalysis(analysisId, functionDataTypesParams, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDataTypesApi#generateFunctionDataTypesForAnalysis"); @@ -64,6 +65,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **functionDataTypesParams** | [**FunctionDataTypesParams**](FunctionDataTypesParams.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -86,7 +88,7 @@ public class Example { # **generateFunctionDataTypesForFunctions** -> BaseResponseGenerationStatusList generateFunctionDataTypesForFunctions(functionDataTypesParams) +> BaseResponseGenerationStatusList generateFunctionDataTypesForFunctions(functionDataTypesParams, apiKey) Generate Function Data Types for an arbitrary list of functions @@ -115,8 +117,9 @@ public class Example { FunctionsDataTypesApi apiInstance = new FunctionsDataTypesApi(defaultClient); FunctionDataTypesParams functionDataTypesParams = new FunctionDataTypesParams(); // FunctionDataTypesParams | + String apiKey = "apiKey_example"; // String | try { - BaseResponseGenerationStatusList result = apiInstance.generateFunctionDataTypesForFunctions(functionDataTypesParams); + BaseResponseGenerationStatusList result = apiInstance.generateFunctionDataTypesForFunctions(functionDataTypesParams, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDataTypesApi#generateFunctionDataTypesForFunctions"); @@ -134,6 +137,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionDataTypesParams** | [**FunctionDataTypesParams**](FunctionDataTypesParams.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -156,7 +160,7 @@ public class Example { # **getFunctionDataTypes** -> BaseResponseFunctionDataTypes getFunctionDataTypes(analysisId, functionId) +> BaseResponseFunctionDataTypes getFunctionDataTypes(analysisId, functionId, apiKey) Get Function Data Types @@ -186,8 +190,9 @@ public class Example { FunctionsDataTypesApi apiInstance = new FunctionsDataTypesApi(defaultClient); Integer analysisId = 56; // Integer | Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionDataTypes result = apiInstance.getFunctionDataTypes(analysisId, functionId); + BaseResponseFunctionDataTypes result = apiInstance.getFunctionDataTypes(analysisId, functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDataTypesApi#getFunctionDataTypes"); @@ -206,6 +211,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -228,7 +234,7 @@ public class Example { # **listFunctionDataTypesForAnalysis** -> BaseResponseFunctionDataTypesList listFunctionDataTypesForAnalysis(analysisId, functionIds) +> BaseResponseFunctionDataTypesList listFunctionDataTypesForAnalysis(analysisId, functionIds, apiKey) List Function Data Types @@ -258,8 +264,9 @@ public class Example { FunctionsDataTypesApi apiInstance = new FunctionsDataTypesApi(defaultClient); Integer analysisId = 56; // Integer | List functionIds = Arrays.asList(); // List | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionDataTypesList result = apiInstance.listFunctionDataTypesForAnalysis(analysisId, functionIds); + BaseResponseFunctionDataTypesList result = apiInstance.listFunctionDataTypesForAnalysis(analysisId, functionIds, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDataTypesApi#listFunctionDataTypesForAnalysis"); @@ -278,6 +285,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **analysisId** | **Integer**| | | | **functionIds** | [**List<Integer>**](Integer.md)| | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -300,7 +308,7 @@ public class Example { # **listFunctionDataTypesForFunctions** -> BaseResponseFunctionDataTypesList listFunctionDataTypesForFunctions(functionIds) +> BaseResponseFunctionDataTypesList listFunctionDataTypesForFunctions(functionIds, apiKey) List Function Data Types @@ -329,8 +337,9 @@ public class Example { FunctionsDataTypesApi apiInstance = new FunctionsDataTypesApi(defaultClient); List functionIds = Arrays.asList(); // List | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionDataTypesList result = apiInstance.listFunctionDataTypesForFunctions(functionIds); + BaseResponseFunctionDataTypesList result = apiInstance.listFunctionDataTypesForFunctions(functionIds, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDataTypesApi#listFunctionDataTypesForFunctions"); @@ -348,6 +357,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionIds** | [**List<Integer>**](Integer.md)| | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -370,7 +380,7 @@ public class Example { # **updateFunctionDataTypes** -> BaseResponseFunctionDataTypes updateFunctionDataTypes(analysisId, functionId, updateFunctionDataTypes) +> BaseResponseFunctionDataTypes updateFunctionDataTypes(analysisId, functionId, updateFunctionDataTypes, apiKey) Update Function Data Types @@ -401,8 +411,9 @@ public class Example { Integer analysisId = 56; // Integer | Integer functionId = 56; // Integer | UpdateFunctionDataTypes updateFunctionDataTypes = new UpdateFunctionDataTypes(); // UpdateFunctionDataTypes | + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionDataTypes result = apiInstance.updateFunctionDataTypes(analysisId, functionId, updateFunctionDataTypes); + BaseResponseFunctionDataTypes result = apiInstance.updateFunctionDataTypes(analysisId, functionId, updateFunctionDataTypes, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDataTypesApi#updateFunctionDataTypes"); @@ -422,6 +433,7 @@ public class Example { | **analysisId** | **Integer**| | | | **functionId** | **Integer**| | | | **updateFunctionDataTypes** | [**UpdateFunctionDataTypes**](UpdateFunctionDataTypes.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsDecompilationApi.md b/docs/FunctionsDecompilationApi.md index f131a8a..8e0435e 100644 --- a/docs/FunctionsDecompilationApi.md +++ b/docs/FunctionsDecompilationApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.reveng.ai* # **createDecompilationComment** -> BaseResponseCommentResponse createDecompilationComment(functionId, functionCommentCreateRequest) +> BaseResponseCommentResponse createDecompilationComment(functionId, functionCommentCreateRequest, apiKey) Create a comment for this function @@ -42,8 +42,9 @@ public class Example { FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient); Integer functionId = 56; // Integer | FunctionCommentCreateRequest functionCommentCreateRequest = new FunctionCommentCreateRequest(); // FunctionCommentCreateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommentResponse result = apiInstance.createDecompilationComment(functionId, functionCommentCreateRequest); + BaseResponseCommentResponse result = apiInstance.createDecompilationComment(functionId, functionCommentCreateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#createDecompilationComment"); @@ -62,6 +63,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **functionCommentCreateRequest** | [**FunctionCommentCreateRequest**](FunctionCommentCreateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -85,7 +87,7 @@ public class Example { # **deleteDecompilationComment** -> BaseResponseBool deleteDecompilationComment(commentId, functionId) +> BaseResponseBool deleteDecompilationComment(commentId, functionId, apiKey) Delete a comment @@ -115,8 +117,9 @@ public class Example { FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient); Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseBool result = apiInstance.deleteDecompilationComment(commentId, functionId); + BaseResponseBool result = apiInstance.deleteDecompilationComment(commentId, functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#deleteDecompilationComment"); @@ -135,6 +138,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -159,7 +163,7 @@ public class Example { # **getDecompilationComments** -> BaseResponseListCommentResponse getDecompilationComments(functionId) +> BaseResponseListCommentResponse getDecompilationComments(functionId, apiKey) Get comments for this function @@ -188,8 +192,9 @@ public class Example { FunctionsDecompilationApi apiInstance = new FunctionsDecompilationApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListCommentResponse result = apiInstance.getDecompilationComments(functionId); + BaseResponseListCommentResponse result = apiInstance.getDecompilationComments(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#getDecompilationComments"); @@ -207,6 +212,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -229,7 +235,7 @@ public class Example { # **updateDecompilationComment** -> BaseResponseCommentResponse updateDecompilationComment(commentId, functionId, commentUpdateRequest) +> BaseResponseCommentResponse updateDecompilationComment(commentId, functionId, commentUpdateRequest, apiKey) Update a comment @@ -260,8 +266,9 @@ public class Example { Integer commentId = 56; // Integer | Integer functionId = 56; // Integer | CommentUpdateRequest commentUpdateRequest = new CommentUpdateRequest(); // CommentUpdateRequest | + String apiKey = "apiKey_example"; // String | try { - BaseResponseCommentResponse result = apiInstance.updateDecompilationComment(commentId, functionId, commentUpdateRequest); + BaseResponseCommentResponse result = apiInstance.updateDecompilationComment(commentId, functionId, commentUpdateRequest, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsDecompilationApi#updateDecompilationComment"); @@ -281,6 +288,7 @@ public class Example { | **commentId** | **Integer**| | | | **functionId** | **Integer**| | | | **commentUpdateRequest** | [**CommentUpdateRequest**](CommentUpdateRequest.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/FunctionsRenamingHistoryApi.md b/docs/FunctionsRenamingHistoryApi.md index cb564f6..6ee0966 100644 --- a/docs/FunctionsRenamingHistoryApi.md +++ b/docs/FunctionsRenamingHistoryApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.reveng.ai* # **batchRenameFunction** -> BaseResponse batchRenameFunction(functionsListRename) +> BaseResponse batchRenameFunction(functionsListRename, apiKey) Batch Rename Functions @@ -41,8 +41,9 @@ public class Example { FunctionsRenamingHistoryApi apiInstance = new FunctionsRenamingHistoryApi(defaultClient); FunctionsListRename functionsListRename = new FunctionsListRename(); // FunctionsListRename | + String apiKey = "apiKey_example"; // String | try { - BaseResponse result = apiInstance.batchRenameFunction(functionsListRename); + BaseResponse result = apiInstance.batchRenameFunction(functionsListRename, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsRenamingHistoryApi#batchRenameFunction"); @@ -60,6 +61,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionsListRename** | [**FunctionsListRename**](FunctionsListRename.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -82,7 +84,7 @@ public class Example { # **getFunctionNameHistory** -> BaseResponseListFunctionNameHistory getFunctionNameHistory(functionId) +> BaseResponseListFunctionNameHistory getFunctionNameHistory(functionId, apiKey) Get Function Name History @@ -111,8 +113,9 @@ public class Example { FunctionsRenamingHistoryApi apiInstance = new FunctionsRenamingHistoryApi(defaultClient); Integer functionId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponseListFunctionNameHistory result = apiInstance.getFunctionNameHistory(functionId); + BaseResponseListFunctionNameHistory result = apiInstance.getFunctionNameHistory(functionId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsRenamingHistoryApi#getFunctionNameHistory"); @@ -130,6 +133,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -152,7 +156,7 @@ public class Example { # **renameFunctionId** -> BaseResponse renameFunctionId(functionId, functionRename) +> BaseResponse renameFunctionId(functionId, functionRename, apiKey) Rename Function @@ -182,8 +186,9 @@ public class Example { FunctionsRenamingHistoryApi apiInstance = new FunctionsRenamingHistoryApi(defaultClient); Integer functionId = 56; // Integer | FunctionRename functionRename = new FunctionRename(); // FunctionRename | + String apiKey = "apiKey_example"; // String | try { - BaseResponse result = apiInstance.renameFunctionId(functionId, functionRename); + BaseResponse result = apiInstance.renameFunctionId(functionId, functionRename, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsRenamingHistoryApi#renameFunctionId"); @@ -202,6 +207,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **functionRename** | [**FunctionRename**](FunctionRename.md)| | | +| **apiKey** | **String**| | [optional] | ### Return type @@ -224,7 +230,7 @@ public class Example { # **revertFunctionName** -> BaseResponse revertFunctionName(functionId, historyId) +> BaseResponse revertFunctionName(functionId, historyId, apiKey) Revert the function name @@ -254,8 +260,9 @@ public class Example { FunctionsRenamingHistoryApi apiInstance = new FunctionsRenamingHistoryApi(defaultClient); Integer functionId = 56; // Integer | Integer historyId = 56; // Integer | + String apiKey = "apiKey_example"; // String | try { - BaseResponse result = apiInstance.revertFunctionName(functionId, historyId); + BaseResponse result = apiInstance.revertFunctionName(functionId, historyId, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FunctionsRenamingHistoryApi#revertFunctionName"); @@ -274,6 +281,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **functionId** | **Integer**| | | | **historyId** | **Integer**| | | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/ModelsApi.md b/docs/ModelsApi.md index 3653b51..aa852a2 100644 --- a/docs/ModelsApi.md +++ b/docs/ModelsApi.md @@ -9,7 +9,7 @@ All URIs are relative to *https://api.reveng.ai* # **getModels** -> BaseResponseModelsResponse getModels() +> BaseResponseModelsResponse getModels(apiKey) Gets models @@ -37,8 +37,9 @@ public class Example { //APIKey.setApiKeyPrefix("Token"); ModelsApi apiInstance = new ModelsApi(defaultClient); + String apiKey = "apiKey_example"; // String | try { - BaseResponseModelsResponse result = apiInstance.getModels(); + BaseResponseModelsResponse result = apiInstance.getModels(apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ModelsApi#getModels"); @@ -52,7 +53,10 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/docs/SearchApi.md b/docs/SearchApi.md index 5554745..221f6a9 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -12,7 +12,7 @@ All URIs are relative to *https://api.reveng.ai* # **searchBinaries** -> BaseResponseBinarySearchResponse searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly) +> BaseResponseBinarySearchResponse searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey) Binaries search @@ -47,8 +47,9 @@ public class Example { List tags = Arrays.asList(); // List | The tags to be searched for String modelName = "modelName_example"; // String | The name of the model used to analyze the binary the function belongs to Boolean userFilesOnly = false; // Boolean | Whether to only search user's uploaded files + String apiKey = "apiKey_example"; // String | try { - BaseResponseBinarySearchResponse result = apiInstance.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly); + BaseResponseBinarySearchResponse result = apiInstance.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SearchApi#searchBinaries"); @@ -72,6 +73,7 @@ public class Example { | **tags** | [**List<String>**](String.md)| The tags to be searched for | [optional] | | **modelName** | **String**| The name of the model used to analyze the binary the function belongs to | [optional] | | **userFilesOnly** | **Boolean**| Whether to only search user's uploaded files | [optional] [default to false] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -94,7 +96,7 @@ public class Example { # **searchCollections** -> BaseResponseCollectionSearchResponse searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection) +> BaseResponseCollectionSearchResponse searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey) Collections search @@ -132,8 +134,9 @@ public class Example { List filters = Arrays.asList(); // List | The filters to be used for the search AppApiRestV2CollectionsEnumsOrderBy orderBy = AppApiRestV2CollectionsEnumsOrderBy.fromValue("created"); // AppApiRestV2CollectionsEnumsOrderBy | The field to sort the order by in the results Order orderByDirection = Order.fromValue("ASC"); // Order | The order direction in which to return results + String apiKey = "apiKey_example"; // String | try { - BaseResponseCollectionSearchResponse result = apiInstance.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection); + BaseResponseCollectionSearchResponse result = apiInstance.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SearchApi#searchCollections"); @@ -160,6 +163,7 @@ public class Example { | **filters** | [**List<Filters>**](Filters.md)| The filters to be used for the search | [optional] | | **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] [enum: created, collection, model, owner, collection_size, updated] | | **orderByDirection** | [**Order**](.md)| The order direction in which to return results | [optional] [enum: ASC, DESC] | +| **apiKey** | **String**| | [optional] | ### Return type @@ -183,7 +187,7 @@ public class Example { # **searchFunctions** -> BaseResponseFunctionSearchResponse searchFunctions(page, pageSize, partialName, modelName) +> BaseResponseFunctionSearchResponse searchFunctions(page, pageSize, partialName, modelName, apiKey) Functions search @@ -215,8 +219,9 @@ public class Example { Integer pageSize = 10; // Integer | Number of items per page. String partialName = "partialName_example"; // String | The partial or full name of the function being searched String modelName = "modelName_example"; // String | The name of the model used to analyze the binary the function belongs to + String apiKey = "apiKey_example"; // String | try { - BaseResponseFunctionSearchResponse result = apiInstance.searchFunctions(page, pageSize, partialName, modelName); + BaseResponseFunctionSearchResponse result = apiInstance.searchFunctions(page, pageSize, partialName, modelName, apiKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SearchApi#searchFunctions"); @@ -237,6 +242,7 @@ public class Example { | **pageSize** | **Integer**| Number of items per page. | [optional] [default to 10] | | **partialName** | **String**| The partial or full name of the function being searched | [optional] | | **modelName** | **String**| The name of the model used to analyze the binary the function belongs to | [optional] | +| **apiKey** | **String**| | [optional] | ### Return type diff --git a/pom.xml b/pom.xml index 0813d3c..c076488 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ sdk jar sdk - 2.37.4 + 2.38.0 https://github.com/RevEngAI/sdk-java Java SDK for the RevEng.AI API diff --git a/src/main/java/ai/reveng/api/AnalysesCommentsApi.java b/src/main/java/ai/reveng/api/AnalysesCommentsApi.java index 22068ae..91de4a3 100644 --- a/src/main/java/ai/reveng/api/AnalysesCommentsApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCommentsApi.java @@ -80,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for createAnalysisComment * @param analysisId (required) * @param commentBase (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -92,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 400 Bad Request - */ - public okhttp3.Call createAnalysisCommentCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisCommentCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -118,6 +119,10 @@ public okhttp3.Call createAnalysisCommentCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -139,7 +144,7 @@ public okhttp3.Call createAnalysisCommentCall(@javax.annotation.Nonnull Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling createAnalysisComment(Async)"); @@ -150,7 +155,7 @@ private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.N throw new ApiException("Missing the required parameter 'commentBase' when calling createAnalysisComment(Async)"); } - return createAnalysisCommentCall(analysisId, commentBase, _callback); + return createAnalysisCommentCall(analysisId, commentBase, apiKey, _callback); } @@ -159,6 +164,7 @@ private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.N * Creates a comment associated with a specified analysis). * @param analysisId (required) * @param commentBase (required) + * @param apiKey (optional) * @return BaseResponseCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -170,8 +176,8 @@ private okhttp3.Call createAnalysisCommentValidateBeforeCall(@javax.annotation.N 400 Bad Request - */ - public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase) throws ApiException { - ApiResponse localVarResp = createAnalysisCommentWithHttpInfo(analysisId, commentBase); + public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createAnalysisCommentWithHttpInfo(analysisId, commentBase, apiKey); return localVarResp.getData(); } @@ -180,6 +186,7 @@ public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnu * Creates a comment associated with a specified analysis). * @param analysisId (required) * @param commentBase (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -191,8 +198,8 @@ public BaseResponseCommentResponse createAnalysisComment(@javax.annotation.Nonnu 400 Bad Request - */ - public ApiResponse createAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase) throws ApiException { - okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, null); + public ApiResponse createAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -202,6 +209,7 @@ public ApiResponse createAnalysisCommentWithHttpInf * Creates a comment associated with a specified analysis). * @param analysisId (required) * @param commentBase (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -214,9 +222,9 @@ public ApiResponse createAnalysisCommentWithHttpInf 400 Bad Request - */ - public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentBase commentBase, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, _callback); + okhttp3.Call localVarCall = createAnalysisCommentValidateBeforeCall(analysisId, commentBase, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -225,6 +233,7 @@ public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer * Build call for deleteAnalysisComment * @param commentId (required) * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -238,7 +247,7 @@ public okhttp3.Call createAnalysisCommentAsync(@javax.annotation.Nonnull Integer 400 Bad Request - */ - public okhttp3.Call deleteAnalysisCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAnalysisCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -265,6 +274,10 @@ public okhttp3.Call deleteAnalysisCommentCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -285,7 +298,7 @@ public okhttp3.Call deleteAnalysisCommentCall(@javax.annotation.Nonnull Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAnalysisCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAnalysisCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling deleteAnalysisComment(Async)"); @@ -296,7 +309,7 @@ private okhttp3.Call deleteAnalysisCommentValidateBeforeCall(@javax.annotation.N throw new ApiException("Missing the required parameter 'analysisId' when calling deleteAnalysisComment(Async)"); } - return deleteAnalysisCommentCall(commentId, analysisId, _callback); + return deleteAnalysisCommentCall(commentId, analysisId, apiKey, _callback); } @@ -305,6 +318,7 @@ private okhttp3.Call deleteAnalysisCommentValidateBeforeCall(@javax.annotation.N * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseBool * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,8 +331,8 @@ private okhttp3.Call deleteAnalysisCommentValidateBeforeCall(@javax.annotation.N 400 Bad Request - */ - public BaseResponseBool deleteAnalysisComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = deleteAnalysisCommentWithHttpInfo(commentId, analysisId); + public BaseResponseBool deleteAnalysisComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = deleteAnalysisCommentWithHttpInfo(commentId, analysisId, apiKey); return localVarResp.getData(); } @@ -327,6 +341,7 @@ public BaseResponseBool deleteAnalysisComment(@javax.annotation.Nonnull Integer * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBool> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -339,8 +354,8 @@ public BaseResponseBool deleteAnalysisComment(@javax.annotation.Nonnull Integer 400 Bad Request - */ - public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, null); + public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -350,6 +365,7 @@ public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.an * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -363,9 +379,9 @@ public ApiResponse deleteAnalysisCommentWithHttpInfo(@javax.an 400 Bad Request - */ - public okhttp3.Call deleteAnalysisCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAnalysisCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, _callback); + okhttp3.Call localVarCall = deleteAnalysisCommentValidateBeforeCall(commentId, analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -373,6 +389,7 @@ public okhttp3.Call deleteAnalysisCommentAsync(@javax.annotation.Nonnull Integer /** * Build call for getAnalysisComments * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -384,7 +401,7 @@ public okhttp3.Call deleteAnalysisCommentAsync(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisCommentsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisCommentsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -410,6 +427,10 @@ public okhttp3.Call getAnalysisCommentsCall(@javax.annotation.Nonnull Integer an Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -430,13 +451,13 @@ public okhttp3.Call getAnalysisCommentsCall(@javax.annotation.Nonnull Integer an } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisCommentsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisCommentsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisComments(Async)"); } - return getAnalysisCommentsCall(analysisId, _callback); + return getAnalysisCommentsCall(analysisId, apiKey, _callback); } @@ -444,6 +465,7 @@ private okhttp3.Call getAnalysisCommentsValidateBeforeCall(@javax.annotation.Non * Get comments for this analysis * Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseListCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -454,8 +476,8 @@ private okhttp3.Call getAnalysisCommentsValidateBeforeCall(@javax.annotation.Non 422 Invalid request parameters - */ - public BaseResponseListCommentResponse getAnalysisComments(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getAnalysisCommentsWithHttpInfo(analysisId); + public BaseResponseListCommentResponse getAnalysisComments(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisCommentsWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -463,6 +485,7 @@ public BaseResponseListCommentResponse getAnalysisComments(@javax.annotation.Non * Get comments for this analysis * Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -473,8 +496,8 @@ public BaseResponseListCommentResponse getAnalysisComments(@javax.annotation.Non 422 Invalid request parameters - */ - public ApiResponse getAnalysisCommentsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, null); + public ApiResponse getAnalysisCommentsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -483,6 +506,7 @@ public ApiResponse getAnalysisCommentsWithHttpI * Get comments for this analysis (asynchronously) * Retrieves all comments created for a specific analysis. Only returns comments for resources the requesting user has access to. * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -494,9 +518,9 @@ public ApiResponse getAnalysisCommentsWithHttpI 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisCommentsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisCommentsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisCommentsValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -506,6 +530,7 @@ public okhttp3.Call getAnalysisCommentsAsync(@javax.annotation.Nonnull Integer a * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -519,7 +544,7 @@ public okhttp3.Call getAnalysisCommentsAsync(@javax.annotation.Nonnull Integer a 400 Bad Request - */ - public okhttp3.Call updateAnalysisCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAnalysisCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -546,6 +571,10 @@ public okhttp3.Call updateAnalysisCommentCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -567,7 +596,7 @@ public okhttp3.Call updateAnalysisCommentCall(@javax.annotation.Nonnull Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling updateAnalysisComment(Async)"); @@ -583,7 +612,7 @@ private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.N throw new ApiException("Missing the required parameter 'commentUpdateRequest' when calling updateAnalysisComment(Async)"); } - return updateAnalysisCommentCall(commentId, analysisId, commentUpdateRequest, _callback); + return updateAnalysisCommentCall(commentId, analysisId, commentUpdateRequest, apiKey, _callback); } @@ -593,6 +622,7 @@ private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.N * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -605,8 +635,8 @@ private okhttp3.Call updateAnalysisCommentValidateBeforeCall(@javax.annotation.N 400 Bad Request - */ - public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateAnalysisCommentWithHttpInfo(commentId, analysisId, commentUpdateRequest); + public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateAnalysisCommentWithHttpInfo(commentId, analysisId, commentUpdateRequest, apiKey); return localVarResp.getData(); } @@ -616,6 +646,7 @@ public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnu * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -628,8 +659,8 @@ public BaseResponseCommentResponse updateAnalysisComment(@javax.annotation.Nonnu 400 Bad Request - */ - public ApiResponse updateAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, null); + public ApiResponse updateAnalysisCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -640,6 +671,7 @@ public ApiResponse updateAnalysisCommentWithHttpInf * @param commentId (required) * @param analysisId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -653,9 +685,9 @@ public ApiResponse updateAnalysisCommentWithHttpInf 400 Bad Request - */ - public okhttp3.Call updateAnalysisCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAnalysisCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, _callback); + okhttp3.Call localVarCall = updateAnalysisCommentValidateBeforeCall(commentId, analysisId, commentUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/AnalysesCoreApi.java b/src/main/java/ai/reveng/api/AnalysesCoreApi.java index c060c30..3f2b425 100644 --- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java +++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java @@ -98,6 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createAnalysis * @param analysisCreateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -111,7 +112,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 400 Bad Request - */ - public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -136,6 +137,10 @@ public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateR Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -157,13 +162,13 @@ public okhttp3.Call createAnalysisCall(@javax.annotation.Nonnull AnalysisCreateR } @SuppressWarnings("rawtypes") - private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisCreateRequest' is set if (analysisCreateRequest == null) { throw new ApiException("Missing the required parameter 'analysisCreateRequest' when calling createAnalysis(Async)"); } - return createAnalysisCall(analysisCreateRequest, _callback); + return createAnalysisCall(analysisCreateRequest, apiKey, _callback); } @@ -171,6 +176,7 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Create Analysis * Begins an analysis * @param analysisCreateRequest (required) + * @param apiKey (optional) * @return BaseResponseAnalysisCreateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -183,8 +189,8 @@ private okhttp3.Call createAnalysisValidateBeforeCall(@javax.annotation.Nonnull 400 Bad Request - */ - public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest) throws ApiException { - ApiResponse localVarResp = createAnalysisWithHttpInfo(analysisCreateRequest); + public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createAnalysisWithHttpInfo(analysisCreateRequest, apiKey); return localVarResp.getData(); } @@ -192,6 +198,7 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu * Create Analysis * Begins an analysis * @param analysisCreateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisCreateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -204,8 +211,8 @@ public BaseResponseAnalysisCreateResponse createAnalysis(@javax.annotation.Nonnu 400 Bad Request - */ - public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest) throws ApiException { - okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, null); + public ApiResponse createAnalysisWithHttpInfo(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -214,6 +221,7 @@ public ApiResponse createAnalysisWithHttpInf * Create Analysis (asynchronously) * Begins an analysis * @param analysisCreateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -227,9 +235,9 @@ public ApiResponse createAnalysisWithHttpInf 400 Bad Request - */ - public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreateRequest analysisCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, _callback); + okhttp3.Call localVarCall = createAnalysisValidateBeforeCall(analysisCreateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -237,6 +245,7 @@ public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreate /** * Build call for deleteAnalysis * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -250,7 +259,7 @@ public okhttp3.Call createAnalysisAsync(@javax.annotation.Nonnull AnalysisCreate 403 Forbidden - */ - public okhttp3.Call deleteAnalysisCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -276,6 +285,10 @@ public okhttp3.Call deleteAnalysisCall(@javax.annotation.Nonnull Integer analysi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -296,13 +309,13 @@ public okhttp3.Call deleteAnalysisCall(@javax.annotation.Nonnull Integer analysi } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling deleteAnalysis(Async)"); } - return deleteAnalysisCall(analysisId, _callback); + return deleteAnalysisCall(analysisId, apiKey, _callback); } @@ -310,6 +323,7 @@ private okhttp3.Call deleteAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Delete Analysis * Deletes an analysis based on the provided analysis ID. * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseDict * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -322,8 +336,8 @@ private okhttp3.Call deleteAnalysisValidateBeforeCall(@javax.annotation.Nonnull 403 Forbidden - */ - public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = deleteAnalysisWithHttpInfo(analysisId); + public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = deleteAnalysisWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -331,6 +345,7 @@ public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysi * Delete Analysis * Deletes an analysis based on the provided analysis ID. * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseDict> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -343,8 +358,8 @@ public BaseResponseDict deleteAnalysis(@javax.annotation.Nonnull Integer analysi 403 Forbidden - */ - public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, null); + public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -353,6 +368,7 @@ public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotatio * Delete Analysis (asynchronously) * Deletes an analysis based on the provided analysis ID. * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -366,9 +382,9 @@ public ApiResponse deleteAnalysisWithHttpInfo(@javax.annotatio 403 Forbidden - */ - public okhttp3.Call deleteAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = deleteAnalysisValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -376,6 +392,7 @@ public okhttp3.Call deleteAnalysisAsync(@javax.annotation.Nonnull Integer analys /** * Build call for getAnalysisBasicInfo * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -387,7 +404,7 @@ public okhttp3.Call deleteAnalysisAsync(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisBasicInfoCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisBasicInfoCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -413,6 +430,10 @@ public okhttp3.Call getAnalysisBasicInfoCall(@javax.annotation.Nonnull Integer a Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -433,13 +454,13 @@ public okhttp3.Call getAnalysisBasicInfoCall(@javax.annotation.Nonnull Integer a } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisBasicInfo(Async)"); } - return getAnalysisBasicInfoCall(analysisId, _callback); + return getAnalysisBasicInfoCall(analysisId, apiKey, _callback); } @@ -447,6 +468,7 @@ private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.No * Gets basic analysis information * Returns basic analysis information for an analysis * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseBasic * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -457,8 +479,8 @@ private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.No 422 Invalid request parameters - */ - public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getAnalysisBasicInfoWithHttpInfo(analysisId); + public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisBasicInfoWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -466,6 +488,7 @@ public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer * Gets basic analysis information * Returns basic analysis information for an analysis * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBasic> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -476,8 +499,8 @@ public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public ApiResponse getAnalysisBasicInfoWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getAnalysisBasicInfoValidateBeforeCall(analysisId, null); + public ApiResponse getAnalysisBasicInfoWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisBasicInfoValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -486,6 +509,7 @@ public ApiResponse getAnalysisBasicInfoWithHttpInfo(@javax.an * Gets basic analysis information (asynchronously) * Returns basic analysis information for an analysis * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -497,9 +521,9 @@ public ApiResponse getAnalysisBasicInfoWithHttpInfo(@javax.an 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisBasicInfoAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisBasicInfoAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisBasicInfoValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisBasicInfoValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -507,6 +531,7 @@ public okhttp3.Call getAnalysisBasicInfoAsync(@javax.annotation.Nonnull Integer /** * Build call for getAnalysisFunctionMap * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -518,7 +543,7 @@ public okhttp3.Call getAnalysisBasicInfoAsync(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -544,6 +569,10 @@ public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -564,13 +593,13 @@ public okhttp3.Call getAnalysisFunctionMapCall(@javax.annotation.Nonnull Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisFunctionMapValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisFunctionMapValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisFunctionMap(Async)"); } - return getAnalysisFunctionMapCall(analysisId, _callback); + return getAnalysisFunctionMapCall(analysisId, apiKey, _callback); } @@ -578,6 +607,7 @@ private okhttp3.Call getAnalysisFunctionMapValidateBeforeCall(@javax.annotation. * Get Analysis Function Map * Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseAnalysisFunctionMapping * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -588,8 +618,8 @@ private okhttp3.Call getAnalysisFunctionMapValidateBeforeCall(@javax.annotation. 422 Invalid request parameters - */ - public BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getAnalysisFunctionMapWithHttpInfo(analysisId); + public BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisFunctionMapWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -597,6 +627,7 @@ public BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(@javax.annotat * Get Analysis Function Map * Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisFunctionMapping> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -607,8 +638,8 @@ public BaseResponseAnalysisFunctionMapping getAnalysisFunctionMap(@javax.annotat 422 Invalid request parameters - */ - public ApiResponse getAnalysisFunctionMapWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, null); + public ApiResponse getAnalysisFunctionMapWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -617,6 +648,7 @@ public ApiResponse getAnalysisFunctionMapWi * Get Analysis Function Map (asynchronously) * Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names. * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -628,9 +660,9 @@ public ApiResponse getAnalysisFunctionMapWi 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisFunctionMapAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisFunctionMapAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisFunctionMapValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -638,6 +670,7 @@ public okhttp3.Call getAnalysisFunctionMapAsync(@javax.annotation.Nonnull Intege /** * Build call for getAnalysisLogs * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -649,7 +682,7 @@ public okhttp3.Call getAnalysisFunctionMapAsync(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisLogsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisLogsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -675,6 +708,10 @@ public okhttp3.Call getAnalysisLogsCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -695,13 +732,13 @@ public okhttp3.Call getAnalysisLogsCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisLogsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisLogsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisLogs(Async)"); } - return getAnalysisLogsCall(analysisId, _callback); + return getAnalysisLogsCall(analysisId, apiKey, _callback); } @@ -709,6 +746,7 @@ private okhttp3.Call getAnalysisLogsValidateBeforeCall(@javax.annotation.Nonnull * Gets the logs of an analysis * Given an analysis ID gets the current logs of an analysis * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseLogs * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -719,8 +757,8 @@ private okhttp3.Call getAnalysisLogsValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseLogs getAnalysisLogs(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getAnalysisLogsWithHttpInfo(analysisId); + public BaseResponseLogs getAnalysisLogs(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisLogsWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -728,6 +766,7 @@ public BaseResponseLogs getAnalysisLogs(@javax.annotation.Nonnull Integer analys * Gets the logs of an analysis * Given an analysis ID gets the current logs of an analysis * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseLogs> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -738,8 +777,8 @@ public BaseResponseLogs getAnalysisLogs(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public ApiResponse getAnalysisLogsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, null); + public ApiResponse getAnalysisLogsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -748,6 +787,7 @@ public ApiResponse getAnalysisLogsWithHttpInfo(@javax.annotati * Gets the logs of an analysis (asynchronously) * Given an analysis ID gets the current logs of an analysis * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -759,9 +799,9 @@ public ApiResponse getAnalysisLogsWithHttpInfo(@javax.annotati 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisLogsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisLogsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisLogsValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -769,6 +809,7 @@ public okhttp3.Call getAnalysisLogsAsync(@javax.annotation.Nonnull Integer analy /** * Build call for getAnalysisParams * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -780,7 +821,7 @@ public okhttp3.Call getAnalysisLogsAsync(@javax.annotation.Nonnull Integer analy 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisParamsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisParamsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -806,6 +847,10 @@ public okhttp3.Call getAnalysisParamsCall(@javax.annotation.Nonnull Integer anal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -826,13 +871,13 @@ public okhttp3.Call getAnalysisParamsCall(@javax.annotation.Nonnull Integer anal } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisParamsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisParamsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisParams(Async)"); } - return getAnalysisParamsCall(analysisId, _callback); + return getAnalysisParamsCall(analysisId, apiKey, _callback); } @@ -840,6 +885,7 @@ private okhttp3.Call getAnalysisParamsValidateBeforeCall(@javax.annotation.Nonnu * Gets analysis param information * Gets the params that the analysis was run with * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseParams * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -850,8 +896,8 @@ private okhttp3.Call getAnalysisParamsValidateBeforeCall(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public BaseResponseParams getAnalysisParams(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getAnalysisParamsWithHttpInfo(analysisId); + public BaseResponseParams getAnalysisParams(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisParamsWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -859,6 +905,7 @@ public BaseResponseParams getAnalysisParams(@javax.annotation.Nonnull Integer an * Gets analysis param information * Gets the params that the analysis was run with * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseParams> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -869,8 +916,8 @@ public BaseResponseParams getAnalysisParams(@javax.annotation.Nonnull Integer an 422 Invalid request parameters - */ - public ApiResponse getAnalysisParamsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, null); + public ApiResponse getAnalysisParamsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -879,6 +926,7 @@ public ApiResponse getAnalysisParamsWithHttpInfo(@javax.anno * Gets analysis param information (asynchronously) * Gets the params that the analysis was run with * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -890,9 +938,9 @@ public ApiResponse getAnalysisParamsWithHttpInfo(@javax.anno 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisParamsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisParamsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisParamsValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -900,6 +948,7 @@ public okhttp3.Call getAnalysisParamsAsync(@javax.annotation.Nonnull Integer ana /** * Build call for getAnalysisStatus * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -911,7 +960,7 @@ public okhttp3.Call getAnalysisParamsAsync(@javax.annotation.Nonnull Integer ana 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisStatusCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisStatusCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -937,6 +986,10 @@ public okhttp3.Call getAnalysisStatusCall(@javax.annotation.Nonnull Integer anal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -957,13 +1010,13 @@ public okhttp3.Call getAnalysisStatusCall(@javax.annotation.Nonnull Integer anal } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisStatus(Async)"); } - return getAnalysisStatusCall(analysisId, _callback); + return getAnalysisStatusCall(analysisId, apiKey, _callback); } @@ -971,6 +1024,7 @@ private okhttp3.Call getAnalysisStatusValidateBeforeCall(@javax.annotation.Nonnu * Gets the status of an analysis * Given an analysis ID gets the current status of the analysis * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -981,8 +1035,8 @@ private okhttp3.Call getAnalysisStatusValidateBeforeCall(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public BaseResponseStatus getAnalysisStatus(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getAnalysisStatusWithHttpInfo(analysisId); + public BaseResponseStatus getAnalysisStatus(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisStatusWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -990,6 +1044,7 @@ public BaseResponseStatus getAnalysisStatus(@javax.annotation.Nonnull Integer an * Gets the status of an analysis * Given an analysis ID gets the current status of the analysis * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1000,8 +1055,8 @@ public BaseResponseStatus getAnalysisStatus(@javax.annotation.Nonnull Integer an 422 Invalid request parameters - */ - public ApiResponse getAnalysisStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getAnalysisStatusValidateBeforeCall(analysisId, null); + public ApiResponse getAnalysisStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisStatusValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1010,6 +1065,7 @@ public ApiResponse getAnalysisStatusWithHttpInfo(@javax.anno * Gets the status of an analysis (asynchronously) * Given an analysis ID gets the current status of the analysis * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1021,9 +1077,9 @@ public ApiResponse getAnalysisStatusWithHttpInfo(@javax.anno 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisStatusValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getAnalysisStatusValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1041,6 +1097,7 @@ public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer ana * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1052,7 +1109,7 @@ public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer ana 422 Invalid request parameters - */ - public okhttp3.Call listAnalysesCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAnalysesCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1121,6 +1178,10 @@ public okhttp3.Call listAnalysesCall(@javax.annotation.Nullable String searchTer localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1141,8 +1202,8 @@ public okhttp3.Call listAnalysesCall(@javax.annotation.Nullable String searchTer } @SuppressWarnings("rawtypes") - private okhttp3.Call listAnalysesValidateBeforeCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, final ApiCallback _callback) throws ApiException { - return listAnalysesCall(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, _callback); + private okhttp3.Call listAnalysesValidateBeforeCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return listAnalysesCall(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey, _callback); } @@ -1160,6 +1221,7 @@ private okhttp3.Call listAnalysesValidateBeforeCall(@javax.annotation.Nullable S * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @return BaseResponseRecent * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1170,8 +1232,8 @@ private okhttp3.Call listAnalysesValidateBeforeCall(@javax.annotation.Nullable S 422 Invalid request parameters - */ - public BaseResponseRecent listAnalyses(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order) throws ApiException { - ApiResponse localVarResp = listAnalysesWithHttpInfo(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order); + public BaseResponseRecent listAnalyses(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = listAnalysesWithHttpInfo(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey); return localVarResp.getData(); } @@ -1189,6 +1251,7 @@ public BaseResponseRecent listAnalyses(@javax.annotation.Nullable String searchT * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseRecent> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1199,8 +1262,8 @@ public BaseResponseRecent listAnalyses(@javax.annotation.Nullable String searchT 422 Invalid request parameters - */ - public ApiResponse listAnalysesWithHttpInfo(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order) throws ApiException { - okhttp3.Call localVarCall = listAnalysesValidateBeforeCall(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, null); + public ApiResponse listAnalysesWithHttpInfo(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = listAnalysesValidateBeforeCall(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1219,6 +1282,7 @@ public ApiResponse listAnalysesWithHttpInfo(@javax.annotatio * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1230,9 +1294,9 @@ public ApiResponse listAnalysesWithHttpInfo(@javax.annotatio 422 Invalid request parameters - */ - public okhttp3.Call listAnalysesAsync(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAnalysesAsync(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List workspace, @javax.annotation.Nullable List status, @javax.annotation.Nullable List modelName, @javax.annotation.Nullable DynamicExecutionStatusInput dynamicExecutionStatus, @javax.annotation.Nullable List usernames, @javax.annotation.Nullable String sha256Hash, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2AnalysesEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAnalysesValidateBeforeCall(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, _callback); + okhttp3.Call localVarCall = listAnalysesValidateBeforeCall(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1240,6 +1304,7 @@ public okhttp3.Call listAnalysesAsync(@javax.annotation.Nullable String searchTe /** * Build call for lookupBinaryId * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1251,7 +1316,7 @@ public okhttp3.Call listAnalysesAsync(@javax.annotation.Nullable String searchTe 422 Invalid request parameters - */ - public okhttp3.Call lookupBinaryIdCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call lookupBinaryIdCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1277,6 +1342,10 @@ public okhttp3.Call lookupBinaryIdCall(@javax.annotation.Nonnull Integer binaryI Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1297,13 +1366,13 @@ public okhttp3.Call lookupBinaryIdCall(@javax.annotation.Nonnull Integer binaryI } @SuppressWarnings("rawtypes") - private okhttp3.Call lookupBinaryIdValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call lookupBinaryIdValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling lookupBinaryId(Async)"); } - return lookupBinaryIdCall(binaryId, _callback); + return lookupBinaryIdCall(binaryId, apiKey, _callback); } @@ -1311,6 +1380,7 @@ private okhttp3.Call lookupBinaryIdValidateBeforeCall(@javax.annotation.Nonnull * Gets the analysis ID from binary ID * Given an binary ID gets the ID of an analysis * @param binaryId (required) + * @param apiKey (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1321,8 +1391,8 @@ private okhttp3.Call lookupBinaryIdValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public Object lookupBinaryId(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = lookupBinaryIdWithHttpInfo(binaryId); + public Object lookupBinaryId(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = lookupBinaryIdWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -1330,6 +1400,7 @@ public Object lookupBinaryId(@javax.annotation.Nonnull Integer binaryId) throws * Gets the analysis ID from binary ID * Given an binary ID gets the ID of an analysis * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1340,8 +1411,8 @@ public Object lookupBinaryId(@javax.annotation.Nonnull Integer binaryId) throws 422 Invalid request parameters - */ - public ApiResponse lookupBinaryIdWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = lookupBinaryIdValidateBeforeCall(binaryId, null); + public ApiResponse lookupBinaryIdWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = lookupBinaryIdValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1350,6 +1421,7 @@ public ApiResponse lookupBinaryIdWithHttpInfo(@javax.annotation.Nonnull * Gets the analysis ID from binary ID (asynchronously) * Given an binary ID gets the ID of an analysis * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1361,9 +1433,9 @@ public ApiResponse lookupBinaryIdWithHttpInfo(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = lookupBinaryIdValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = lookupBinaryIdValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1372,6 +1444,7 @@ public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binary * Build call for requeueAnalysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1385,7 +1458,7 @@ public okhttp3.Call lookupBinaryIdAsync(@javax.annotation.Nonnull Integer binary 400 Bad Request - */ - public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1411,6 +1484,10 @@ public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1432,7 +1509,7 @@ public okhttp3.Call requeueAnalysisCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, final ApiCallback _callback) throws ApiException { + private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling requeueAnalysis(Async)"); @@ -1443,7 +1520,7 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull throw new ApiException("Missing the required parameter 'reAnalysisForm' when calling requeueAnalysis(Async)"); } - return requeueAnalysisCall(analysisId, reAnalysisForm, _callback); + return requeueAnalysisCall(analysisId, reAnalysisForm, apiKey, _callback); } @@ -1452,6 +1529,7 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param apiKey (optional) * @return BaseResponseCreated * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1464,8 +1542,8 @@ private okhttp3.Call requeueAnalysisValidateBeforeCall(@javax.annotation.Nonnull 400 Bad Request - */ - public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm) throws ApiException { - ApiResponse localVarResp = requeueAnalysisWithHttpInfo(analysisId, reAnalysisForm); + public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = requeueAnalysisWithHttpInfo(analysisId, reAnalysisForm, apiKey); return localVarResp.getData(); } @@ -1474,6 +1552,7 @@ public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer ana * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCreated> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1486,8 +1565,8 @@ public BaseResponseCreated requeueAnalysis(@javax.annotation.Nonnull Integer ana 400 Bad Request - */ - public ApiResponse requeueAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm) throws ApiException { - okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, null); + public ApiResponse requeueAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1497,6 +1576,7 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot * Re-queues an already uploaded analysis * @param analysisId (required) * @param reAnalysisForm (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1510,9 +1590,9 @@ public ApiResponse requeueAnalysisWithHttpInfo(@javax.annot 400 Bad Request - */ - public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, final ApiCallback _callback) throws ApiException { + public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull ReAnalysisForm reAnalysisForm, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, _callback); + okhttp3.Call localVarCall = requeueAnalysisValidateBeforeCall(analysisId, reAnalysisForm, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1521,6 +1601,7 @@ public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analy * Build call for updateAnalysis * @param analysisId (required) * @param analysisUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1532,7 +1613,7 @@ public okhttp3.Call requeueAnalysisAsync(@javax.annotation.Nonnull Integer analy 422 Invalid request parameters - */ - public okhttp3.Call updateAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1558,6 +1639,10 @@ public okhttp3.Call updateAnalysisCall(@javax.annotation.Nonnull Integer analysi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1579,7 +1664,7 @@ public okhttp3.Call updateAnalysisCall(@javax.annotation.Nonnull Integer analysi } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling updateAnalysis(Async)"); @@ -1590,7 +1675,7 @@ private okhttp3.Call updateAnalysisValidateBeforeCall(@javax.annotation.Nonnull throw new ApiException("Missing the required parameter 'analysisUpdateRequest' when calling updateAnalysis(Async)"); } - return updateAnalysisCall(analysisId, analysisUpdateRequest, _callback); + return updateAnalysisCall(analysisId, analysisUpdateRequest, apiKey, _callback); } @@ -1599,6 +1684,7 @@ private okhttp3.Call updateAnalysisValidateBeforeCall(@javax.annotation.Nonnull * Updates analysis attributes (binary_name, analysis_scope). User must be the owner. * @param analysisId (required) * @param analysisUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseAnalysisDetailResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1609,8 +1695,8 @@ private okhttp3.Call updateAnalysisValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseAnalysisDetailResponse updateAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateAnalysisWithHttpInfo(analysisId, analysisUpdateRequest); + public BaseResponseAnalysisDetailResponse updateAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateAnalysisWithHttpInfo(analysisId, analysisUpdateRequest, apiKey); return localVarResp.getData(); } @@ -1619,6 +1705,7 @@ public BaseResponseAnalysisDetailResponse updateAnalysis(@javax.annotation.Nonnu * Updates analysis attributes (binary_name, analysis_scope). User must be the owner. * @param analysisId (required) * @param analysisUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisDetailResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1629,8 +1716,8 @@ public BaseResponseAnalysisDetailResponse updateAnalysis(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public ApiResponse updateAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, null); + public ApiResponse updateAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1640,6 +1727,7 @@ public ApiResponse updateAnalysisWithHttpInf * Updates analysis attributes (binary_name, analysis_scope). User must be the owner. * @param analysisId (required) * @param analysisUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1651,9 +1739,9 @@ public ApiResponse updateAnalysisWithHttpInf 422 Invalid request parameters - */ - public okhttp3.Call updateAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateRequest analysisUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, _callback); + okhttp3.Call localVarCall = updateAnalysisValidateBeforeCall(analysisId, analysisUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1662,6 +1750,7 @@ public okhttp3.Call updateAnalysisAsync(@javax.annotation.Nonnull Integer analys * Build call for updateAnalysisTags * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1673,7 +1762,7 @@ public okhttp3.Call updateAnalysisAsync(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1699,6 +1788,10 @@ public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer ana Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1720,7 +1813,7 @@ public okhttp3.Call updateAnalysisTagsCall(@javax.annotation.Nonnull Integer ana } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling updateAnalysisTags(Async)"); @@ -1731,7 +1824,7 @@ private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonn throw new ApiException("Missing the required parameter 'analysisUpdateTagsRequest' when calling updateAnalysisTags(Async)"); } - return updateAnalysisTagsCall(analysisId, analysisUpdateTagsRequest, _callback); + return updateAnalysisTagsCall(analysisId, analysisUpdateTagsRequest, apiKey, _callback); } @@ -1740,6 +1833,7 @@ private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonn * Updates analysis tags. User must be the owner. * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param apiKey (optional) * @return BaseResponseAnalysisUpdateTagsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1750,8 +1844,8 @@ private okhttp3.Call updateAnalysisTagsValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest) throws ApiException { - ApiResponse localVarResp = updateAnalysisTagsWithHttpInfo(analysisId, analysisUpdateTagsRequest); + public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateAnalysisTagsWithHttpInfo(analysisId, analysisUpdateTagsRequest, apiKey); return localVarResp.getData(); } @@ -1760,6 +1854,7 @@ public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotati * Updates analysis tags. User must be the owner. * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisUpdateTagsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1770,8 +1865,8 @@ public BaseResponseAnalysisUpdateTagsResponse updateAnalysisTags(@javax.annotati 422 Invalid request parameters - */ - public ApiResponse updateAnalysisTagsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, null); + public ApiResponse updateAnalysisTagsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1781,6 +1876,7 @@ public ApiResponse updateAnalysisTagsWit * Updates analysis tags. User must be the owner. * @param analysisId (required) * @param analysisUpdateTagsRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1792,9 +1888,9 @@ public ApiResponse updateAnalysisTagsWit 422 Invalid request parameters - */ - public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisUpdateTagsRequest analysisUpdateTagsRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, _callback); + okhttp3.Call localVarCall = updateAnalysisTagsValidateBeforeCall(analysisId, analysisUpdateTagsRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1804,6 +1900,7 @@ public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer an * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param apiKey (optional) * @param forceOverwrite (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute @@ -1816,7 +1913,7 @@ public okhttp3.Call updateAnalysisTagsAsync(@javax.annotation.Nonnull Integer an 422 Invalid request parameters - */ - public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1857,6 +1954,10 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo localVarQueryParams.addAll(localVarApiClient.parameterToPair("packed_password", packedPassword)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1878,7 +1979,7 @@ public okhttp3.Call uploadFileCall(@javax.annotation.Nonnull UploadFileType uplo } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { // verify the required parameter 'uploadFileType' is set if (uploadFileType == null) { throw new ApiException("Missing the required parameter 'uploadFileType' when calling uploadFile(Async)"); @@ -1889,7 +1990,7 @@ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Uplo throw new ApiException("Missing the required parameter '_file' when calling uploadFile(Async)"); } - return uploadFileCall(uploadFileType, _file, packedPassword, forceOverwrite, _callback); + return uploadFileCall(uploadFileType, _file, packedPassword, apiKey, forceOverwrite, _callback); } @@ -1899,6 +2000,7 @@ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Uplo * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param apiKey (optional) * @param forceOverwrite (optional, default to false) * @return BaseResponseUploadResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1910,8 +2012,8 @@ private okhttp3.Call uploadFileValidateBeforeCall(@javax.annotation.Nonnull Uplo 422 Invalid request parameters - */ - public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException { - ApiResponse localVarResp = uploadFileWithHttpInfo(uploadFileType, _file, packedPassword, forceOverwrite); + public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException { + ApiResponse localVarResp = uploadFileWithHttpInfo(uploadFileType, _file, packedPassword, apiKey, forceOverwrite); return localVarResp.getData(); } @@ -1921,6 +2023,7 @@ public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFil * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param apiKey (optional) * @param forceOverwrite (optional, default to false) * @return ApiResponse<BaseResponseUploadResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -1932,8 +2035,8 @@ public BaseResponseUploadResponse uploadFile(@javax.annotation.Nonnull UploadFil 422 Invalid request parameters - */ - public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException { - okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, forceOverwrite, null); + public ApiResponse uploadFileWithHttpInfo(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable Boolean forceOverwrite) throws ApiException { + okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, apiKey, forceOverwrite, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1944,6 +2047,7 @@ public ApiResponse uploadFileWithHttpInfo(@javax.ann * @param uploadFileType (required) * @param _file (required) * @param packedPassword (optional) + * @param apiKey (optional) * @param forceOverwrite (optional, default to false) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -1956,9 +2060,9 @@ public ApiResponse uploadFileWithHttpInfo(@javax.ann 422 Invalid request parameters - */ - public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFileAsync(@javax.annotation.Nonnull UploadFileType uploadFileType, @javax.annotation.Nonnull File _file, @javax.annotation.Nullable String packedPassword, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable Boolean forceOverwrite, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, forceOverwrite, _callback); + okhttp3.Call localVarCall = uploadFileValidateBeforeCall(uploadFileType, _file, packedPassword, apiKey, forceOverwrite, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/AnalysesDynamicExecutionApi.java b/src/main/java/ai/reveng/api/AnalysesDynamicExecutionApi.java index b4caf9c..b1d2b93 100644 --- a/src/main/java/ai/reveng/api/AnalysesDynamicExecutionApi.java +++ b/src/main/java/ai/reveng/api/AnalysesDynamicExecutionApi.java @@ -80,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getDynamicExecutionStatus * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -91,7 +92,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call getDynamicExecutionStatusCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDynamicExecutionStatusCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -117,6 +118,10 @@ public okhttp3.Call getDynamicExecutionStatusCall(@javax.annotation.Nonnull Inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -137,13 +142,13 @@ public okhttp3.Call getDynamicExecutionStatusCall(@javax.annotation.Nonnull Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call getDynamicExecutionStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getDynamicExecutionStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getDynamicExecutionStatus(Async)"); } - return getDynamicExecutionStatusCall(analysisId, _callback); + return getDynamicExecutionStatusCall(analysisId, apiKey, _callback); } @@ -151,6 +156,7 @@ private okhttp3.Call getDynamicExecutionStatusValidateBeforeCall(@javax.annotati * Get the status of a dynamic execution task * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseDynamicExecutionStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -161,8 +167,8 @@ private okhttp3.Call getDynamicExecutionStatusValidateBeforeCall(@javax.annotati 422 Invalid request parameters - */ - public BaseResponseDynamicExecutionStatus getDynamicExecutionStatus(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getDynamicExecutionStatusWithHttpInfo(analysisId); + public BaseResponseDynamicExecutionStatus getDynamicExecutionStatus(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getDynamicExecutionStatusWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -170,6 +176,7 @@ public BaseResponseDynamicExecutionStatus getDynamicExecutionStatus(@javax.annot * Get the status of a dynamic execution task * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseDynamicExecutionStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -180,8 +187,8 @@ public BaseResponseDynamicExecutionStatus getDynamicExecutionStatus(@javax.annot 422 Invalid request parameters - */ - public ApiResponse getDynamicExecutionStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getDynamicExecutionStatusValidateBeforeCall(analysisId, null); + public ApiResponse getDynamicExecutionStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getDynamicExecutionStatusValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -190,6 +197,7 @@ public ApiResponse getDynamicExecutionStatus * Get the status of a dynamic execution task (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -201,9 +209,9 @@ public ApiResponse getDynamicExecutionStatus 422 Invalid request parameters - */ - public okhttp3.Call getDynamicExecutionStatusAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDynamicExecutionStatusAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getDynamicExecutionStatusValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getDynamicExecutionStatusValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -211,6 +219,7 @@ public okhttp3.Call getDynamicExecutionStatusAsync(@javax.annotation.Nonnull Int /** * Build call for getNetworkOverview * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -222,7 +231,7 @@ public okhttp3.Call getDynamicExecutionStatusAsync(@javax.annotation.Nonnull Int 422 Invalid request parameters - */ - public okhttp3.Call getNetworkOverviewCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkOverviewCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -248,6 +257,10 @@ public okhttp3.Call getNetworkOverviewCall(@javax.annotation.Nonnull Integer ana Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -268,13 +281,13 @@ public okhttp3.Call getNetworkOverviewCall(@javax.annotation.Nonnull Integer ana } @SuppressWarnings("rawtypes") - private okhttp3.Call getNetworkOverviewValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getNetworkOverviewValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getNetworkOverview(Async)"); } - return getNetworkOverviewCall(analysisId, _callback); + return getNetworkOverviewCall(analysisId, apiKey, _callback); } @@ -282,6 +295,7 @@ private okhttp3.Call getNetworkOverviewValidateBeforeCall(@javax.annotation.Nonn * Get the dynamic execution results for network overview * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseNetworkOverviewResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -292,8 +306,8 @@ private okhttp3.Call getNetworkOverviewValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseNetworkOverviewResponse getNetworkOverview(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getNetworkOverviewWithHttpInfo(analysisId); + public BaseResponseNetworkOverviewResponse getNetworkOverview(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getNetworkOverviewWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -301,6 +315,7 @@ public BaseResponseNetworkOverviewResponse getNetworkOverview(@javax.annotation. * Get the dynamic execution results for network overview * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseNetworkOverviewResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -311,8 +326,8 @@ public BaseResponseNetworkOverviewResponse getNetworkOverview(@javax.annotation. 422 Invalid request parameters - */ - public ApiResponse getNetworkOverviewWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getNetworkOverviewValidateBeforeCall(analysisId, null); + public ApiResponse getNetworkOverviewWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getNetworkOverviewValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -321,6 +336,7 @@ public ApiResponse getNetworkOverviewWithHt * Get the dynamic execution results for network overview (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -332,9 +348,9 @@ public ApiResponse getNetworkOverviewWithHt 422 Invalid request parameters - */ - public okhttp3.Call getNetworkOverviewAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getNetworkOverviewAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getNetworkOverviewValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getNetworkOverviewValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -343,6 +359,7 @@ public okhttp3.Call getNetworkOverviewAsync(@javax.annotation.Nonnull Integer an * Build call for getProcessDump * @param analysisId (required) * @param dumpName (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -354,7 +371,7 @@ public okhttp3.Call getNetworkOverviewAsync(@javax.annotation.Nonnull Integer an 422 Invalid request parameters - */ - public okhttp3.Call getProcessDumpCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessDumpCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -381,6 +398,10 @@ public okhttp3.Call getProcessDumpCall(@javax.annotation.Nonnull Integer analysi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -401,7 +422,7 @@ public okhttp3.Call getProcessDumpCall(@javax.annotation.Nonnull Integer analysi } @SuppressWarnings("rawtypes") - private okhttp3.Call getProcessDumpValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getProcessDumpValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getProcessDump(Async)"); @@ -412,7 +433,7 @@ private okhttp3.Call getProcessDumpValidateBeforeCall(@javax.annotation.Nonnull throw new ApiException("Missing the required parameter 'dumpName' when calling getProcessDump(Async)"); } - return getProcessDumpCall(analysisId, dumpName, _callback); + return getProcessDumpCall(analysisId, dumpName, apiKey, _callback); } @@ -421,6 +442,7 @@ private okhttp3.Call getProcessDumpValidateBeforeCall(@javax.annotation.Nonnull * * @param analysisId (required) * @param dumpName (required) + * @param apiKey (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -431,8 +453,8 @@ private okhttp3.Call getProcessDumpValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public Object getProcessDump(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName) throws ApiException { - ApiResponse localVarResp = getProcessDumpWithHttpInfo(analysisId, dumpName); + public Object getProcessDump(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getProcessDumpWithHttpInfo(analysisId, dumpName, apiKey); return localVarResp.getData(); } @@ -441,6 +463,7 @@ public Object getProcessDump(@javax.annotation.Nonnull Integer analysisId, @java * * @param analysisId (required) * @param dumpName (required) + * @param apiKey (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,8 +474,8 @@ public Object getProcessDump(@javax.annotation.Nonnull Integer analysisId, @java 422 Invalid request parameters - */ - public ApiResponse getProcessDumpWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName) throws ApiException { - okhttp3.Call localVarCall = getProcessDumpValidateBeforeCall(analysisId, dumpName, null); + public ApiResponse getProcessDumpWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getProcessDumpValidateBeforeCall(analysisId, dumpName, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -462,6 +485,7 @@ public ApiResponse getProcessDumpWithHttpInfo(@javax.annotation.Nonnull * * @param analysisId (required) * @param dumpName (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -473,9 +497,9 @@ public ApiResponse getProcessDumpWithHttpInfo(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call getProcessDumpAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessDumpAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull String dumpName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getProcessDumpValidateBeforeCall(analysisId, dumpName, _callback); + okhttp3.Call localVarCall = getProcessDumpValidateBeforeCall(analysisId, dumpName, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -483,6 +507,7 @@ public okhttp3.Call getProcessDumpAsync(@javax.annotation.Nonnull Integer analys /** * Build call for getProcessDumps * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -494,7 +519,7 @@ public okhttp3.Call getProcessDumpAsync(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public okhttp3.Call getProcessDumpsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessDumpsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -520,6 +545,10 @@ public okhttp3.Call getProcessDumpsCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -540,13 +569,13 @@ public okhttp3.Call getProcessDumpsCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call getProcessDumpsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getProcessDumpsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getProcessDumps(Async)"); } - return getProcessDumpsCall(analysisId, _callback); + return getProcessDumpsCall(analysisId, apiKey, _callback); } @@ -554,6 +583,7 @@ private okhttp3.Call getProcessDumpsValidateBeforeCall(@javax.annotation.Nonnull * Get the dynamic execution results for process dumps * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseProcessDumps * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -564,8 +594,8 @@ private okhttp3.Call getProcessDumpsValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseProcessDumps getProcessDumps(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getProcessDumpsWithHttpInfo(analysisId); + public BaseResponseProcessDumps getProcessDumps(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getProcessDumpsWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -573,6 +603,7 @@ public BaseResponseProcessDumps getProcessDumps(@javax.annotation.Nonnull Intege * Get the dynamic execution results for process dumps * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseProcessDumps> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -583,8 +614,8 @@ public BaseResponseProcessDumps getProcessDumps(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public ApiResponse getProcessDumpsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getProcessDumpsValidateBeforeCall(analysisId, null); + public ApiResponse getProcessDumpsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getProcessDumpsValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -593,6 +624,7 @@ public ApiResponse getProcessDumpsWithHttpInfo(@javax. * Get the dynamic execution results for process dumps (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -604,9 +636,9 @@ public ApiResponse getProcessDumpsWithHttpInfo(@javax. 422 Invalid request parameters - */ - public okhttp3.Call getProcessDumpsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessDumpsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getProcessDumpsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getProcessDumpsValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -614,6 +646,7 @@ public okhttp3.Call getProcessDumpsAsync(@javax.annotation.Nonnull Integer analy /** * Build call for getProcessRegistry * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -625,7 +658,7 @@ public okhttp3.Call getProcessDumpsAsync(@javax.annotation.Nonnull Integer analy 422 Invalid request parameters - */ - public okhttp3.Call getProcessRegistryCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessRegistryCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -651,6 +684,10 @@ public okhttp3.Call getProcessRegistryCall(@javax.annotation.Nonnull Integer ana Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -671,13 +708,13 @@ public okhttp3.Call getProcessRegistryCall(@javax.annotation.Nonnull Integer ana } @SuppressWarnings("rawtypes") - private okhttp3.Call getProcessRegistryValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getProcessRegistryValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getProcessRegistry(Async)"); } - return getProcessRegistryCall(analysisId, _callback); + return getProcessRegistryCall(analysisId, apiKey, _callback); } @@ -685,6 +722,7 @@ private okhttp3.Call getProcessRegistryValidateBeforeCall(@javax.annotation.Nonn * Get the dynamic execution results for process registry * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseProcessRegistry * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -695,8 +733,8 @@ private okhttp3.Call getProcessRegistryValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseProcessRegistry getProcessRegistry(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getProcessRegistryWithHttpInfo(analysisId); + public BaseResponseProcessRegistry getProcessRegistry(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getProcessRegistryWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -704,6 +742,7 @@ public BaseResponseProcessRegistry getProcessRegistry(@javax.annotation.Nonnull * Get the dynamic execution results for process registry * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseProcessRegistry> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -714,8 +753,8 @@ public BaseResponseProcessRegistry getProcessRegistry(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public ApiResponse getProcessRegistryWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getProcessRegistryValidateBeforeCall(analysisId, null); + public ApiResponse getProcessRegistryWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getProcessRegistryValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -724,6 +763,7 @@ public ApiResponse getProcessRegistryWithHttpInfo(@ * Get the dynamic execution results for process registry (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -735,9 +775,9 @@ public ApiResponse getProcessRegistryWithHttpInfo(@ 422 Invalid request parameters - */ - public okhttp3.Call getProcessRegistryAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessRegistryAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getProcessRegistryValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getProcessRegistryValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -745,6 +785,7 @@ public okhttp3.Call getProcessRegistryAsync(@javax.annotation.Nonnull Integer an /** * Build call for getProcessTree * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -756,7 +797,7 @@ public okhttp3.Call getProcessRegistryAsync(@javax.annotation.Nonnull Integer an 422 Invalid request parameters - */ - public okhttp3.Call getProcessTreeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessTreeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -782,6 +823,10 @@ public okhttp3.Call getProcessTreeCall(@javax.annotation.Nonnull Integer analysi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -802,13 +847,13 @@ public okhttp3.Call getProcessTreeCall(@javax.annotation.Nonnull Integer analysi } @SuppressWarnings("rawtypes") - private okhttp3.Call getProcessTreeValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getProcessTreeValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getProcessTree(Async)"); } - return getProcessTreeCall(analysisId, _callback); + return getProcessTreeCall(analysisId, apiKey, _callback); } @@ -816,6 +861,7 @@ private okhttp3.Call getProcessTreeValidateBeforeCall(@javax.annotation.Nonnull * Get the dynamic execution results for process tree * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseProcessTree * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -826,8 +872,8 @@ private okhttp3.Call getProcessTreeValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseProcessTree getProcessTree(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getProcessTreeWithHttpInfo(analysisId); + public BaseResponseProcessTree getProcessTree(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getProcessTreeWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -835,6 +881,7 @@ public BaseResponseProcessTree getProcessTree(@javax.annotation.Nonnull Integer * Get the dynamic execution results for process tree * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseProcessTree> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -845,8 +892,8 @@ public BaseResponseProcessTree getProcessTree(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public ApiResponse getProcessTreeWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getProcessTreeValidateBeforeCall(analysisId, null); + public ApiResponse getProcessTreeWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getProcessTreeValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -855,6 +902,7 @@ public ApiResponse getProcessTreeWithHttpInfo(@javax.an * Get the dynamic execution results for process tree (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -866,9 +914,9 @@ public ApiResponse getProcessTreeWithHttpInfo(@javax.an 422 Invalid request parameters - */ - public okhttp3.Call getProcessTreeAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getProcessTreeAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getProcessTreeValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getProcessTreeValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -876,6 +924,7 @@ public okhttp3.Call getProcessTreeAsync(@javax.annotation.Nonnull Integer analys /** * Build call for getTtps * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -887,7 +936,7 @@ public okhttp3.Call getProcessTreeAsync(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public okhttp3.Call getTtpsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTtpsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -913,6 +962,10 @@ public okhttp3.Call getTtpsCall(@javax.annotation.Nonnull Integer analysisId, fi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -933,13 +986,13 @@ public okhttp3.Call getTtpsCall(@javax.annotation.Nonnull Integer analysisId, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getTtpsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTtpsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getTtps(Async)"); } - return getTtpsCall(analysisId, _callback); + return getTtpsCall(analysisId, apiKey, _callback); } @@ -947,6 +1000,7 @@ private okhttp3.Call getTtpsValidateBeforeCall(@javax.annotation.Nonnull Integer * Get the dynamic execution results for ttps * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseTTPS * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -957,8 +1011,8 @@ private okhttp3.Call getTtpsValidateBeforeCall(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public BaseResponseTTPS getTtps(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getTtpsWithHttpInfo(analysisId); + public BaseResponseTTPS getTtps(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getTtpsWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -966,6 +1020,7 @@ public BaseResponseTTPS getTtps(@javax.annotation.Nonnull Integer analysisId) th * Get the dynamic execution results for ttps * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseTTPS> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -976,8 +1031,8 @@ public BaseResponseTTPS getTtps(@javax.annotation.Nonnull Integer analysisId) th 422 Invalid request parameters - */ - public ApiResponse getTtpsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getTtpsValidateBeforeCall(analysisId, null); + public ApiResponse getTtpsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getTtpsValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -986,6 +1041,7 @@ public ApiResponse getTtpsWithHttpInfo(@javax.annotation.Nonnu * Get the dynamic execution results for ttps (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -997,9 +1053,9 @@ public ApiResponse getTtpsWithHttpInfo(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public okhttp3.Call getTtpsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTtpsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTtpsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getTtpsValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java b/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java index 8297d81..f839f75 100644 --- a/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java +++ b/src/main/java/ai/reveng/api/AnalysesResultsMetadataApi.java @@ -80,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getCapabilities * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -91,7 +92,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call getCapabilitiesCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCapabilitiesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -117,6 +118,10 @@ public okhttp3.Call getCapabilitiesCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -137,13 +142,13 @@ public okhttp3.Call getCapabilitiesCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call getCapabilitiesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCapabilitiesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getCapabilities(Async)"); } - return getCapabilitiesCall(analysisId, _callback); + return getCapabilitiesCall(analysisId, apiKey, _callback); } @@ -151,6 +156,7 @@ private okhttp3.Call getCapabilitiesValidateBeforeCall(@javax.annotation.Nonnull * Gets the capabilities from the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseCapabilities * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -161,8 +167,8 @@ private okhttp3.Call getCapabilitiesValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseCapabilities getCapabilities(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getCapabilitiesWithHttpInfo(analysisId); + public BaseResponseCapabilities getCapabilities(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getCapabilitiesWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -170,6 +176,7 @@ public BaseResponseCapabilities getCapabilities(@javax.annotation.Nonnull Intege * Gets the capabilities from the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCapabilities> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -180,8 +187,8 @@ public BaseResponseCapabilities getCapabilities(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public ApiResponse getCapabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getCapabilitiesValidateBeforeCall(analysisId, null); + public ApiResponse getCapabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getCapabilitiesValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -190,6 +197,7 @@ public ApiResponse getCapabilitiesWithHttpInfo(@javax. * Gets the capabilities from the analysis (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -201,9 +209,9 @@ public ApiResponse getCapabilitiesWithHttpInfo(@javax. 422 Invalid request parameters - */ - public okhttp3.Call getCapabilitiesAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCapabilitiesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCapabilitiesValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getCapabilitiesValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -212,6 +220,7 @@ public okhttp3.Call getCapabilitiesAsync(@javax.annotation.Nonnull Integer analy * Build call for getCommunities * @param analysisId (required) * @param userName The user name to limit communities to (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -223,7 +232,7 @@ public okhttp3.Call getCapabilitiesAsync(@javax.annotation.Nonnull Integer analy 422 Invalid request parameters - */ - public okhttp3.Call getCommunitiesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCommunitiesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -253,6 +262,10 @@ public okhttp3.Call getCommunitiesCall(@javax.annotation.Nonnull Integer analysi localVarQueryParams.addAll(localVarApiClient.parameterToPair("user_name", userName)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -273,13 +286,13 @@ public okhttp3.Call getCommunitiesCall(@javax.annotation.Nonnull Integer analysi } @SuppressWarnings("rawtypes") - private okhttp3.Call getCommunitiesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCommunitiesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getCommunities(Async)"); } - return getCommunitiesCall(analysisId, userName, _callback); + return getCommunitiesCall(analysisId, userName, apiKey, _callback); } @@ -288,6 +301,7 @@ private okhttp3.Call getCommunitiesValidateBeforeCall(@javax.annotation.Nonnull * * @param analysisId (required) * @param userName The user name to limit communities to (optional) + * @param apiKey (optional) * @return BaseResponseCommunities * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +312,8 @@ private okhttp3.Call getCommunitiesValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseCommunities getCommunities(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName) throws ApiException { - ApiResponse localVarResp = getCommunitiesWithHttpInfo(analysisId, userName); + public BaseResponseCommunities getCommunities(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getCommunitiesWithHttpInfo(analysisId, userName, apiKey); return localVarResp.getData(); } @@ -308,6 +322,7 @@ public BaseResponseCommunities getCommunities(@javax.annotation.Nonnull Integer * * @param analysisId (required) * @param userName The user name to limit communities to (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommunities> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -318,8 +333,8 @@ public BaseResponseCommunities getCommunities(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public ApiResponse getCommunitiesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName) throws ApiException { - okhttp3.Call localVarCall = getCommunitiesValidateBeforeCall(analysisId, userName, null); + public ApiResponse getCommunitiesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getCommunitiesValidateBeforeCall(analysisId, userName, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -329,6 +344,7 @@ public ApiResponse getCommunitiesWithHttpInfo(@javax.an * * @param analysisId (required) * @param userName The user name to limit communities to (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -340,9 +356,9 @@ public ApiResponse getCommunitiesWithHttpInfo(@javax.an 422 Invalid request parameters - */ - public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String userName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCommunitiesValidateBeforeCall(analysisId, userName, _callback); + okhttp3.Call localVarCall = getCommunitiesValidateBeforeCall(analysisId, userName, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -353,6 +369,7 @@ public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analys * @param searchTerm (optional) * @param minVAddr (optional) * @param maxVAddr (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -364,7 +381,7 @@ public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -402,6 +419,10 @@ public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analy localVarQueryParams.addAll(localVarApiClient.parameterToPair("max_v_addr", maxVAddr)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -422,13 +443,13 @@ public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analy } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getFunctionsList(Async)"); } - return getFunctionsListCall(analysisId, searchTerm, minVAddr, maxVAddr, _callback); + return getFunctionsListCall(analysisId, searchTerm, minVAddr, maxVAddr, apiKey, _callback); } @@ -439,6 +460,7 @@ private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnul * @param searchTerm (optional) * @param minVAddr (optional) * @param maxVAddr (optional) + * @param apiKey (optional) * @return BaseResponseAnalysisFunctions * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -449,8 +471,8 @@ private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr) throws ApiException { - ApiResponse localVarResp = getFunctionsListWithHttpInfo(analysisId, searchTerm, minVAddr, maxVAddr); + public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionsListWithHttpInfo(analysisId, searchTerm, minVAddr, maxVAddr, apiKey); return localVarResp.getData(); } @@ -461,6 +483,7 @@ public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull * @param searchTerm (optional) * @param minVAddr (optional) * @param maxVAddr (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisFunctions> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -471,8 +494,8 @@ public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public ApiResponse getFunctionsListWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr) throws ApiException { - okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, null); + public ApiResponse getFunctionsListWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -484,6 +507,7 @@ public ApiResponse getFunctionsListWithHttpInfo(@ * @param searchTerm (optional) * @param minVAddr (optional) * @param maxVAddr (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -495,9 +519,9 @@ public ApiResponse getFunctionsListWithHttpInfo(@ 422 Invalid request parameters - */ - public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, _callback); + okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -505,6 +529,7 @@ public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer anal /** * Build call for getPdf * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -516,7 +541,7 @@ public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer anal 422 Invalid request parameters - */ - public okhttp3.Call getPdfCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPdfCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -542,6 +567,10 @@ public okhttp3.Call getPdfCall(@javax.annotation.Nonnull Integer analysisId, fin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -562,13 +591,13 @@ public okhttp3.Call getPdfCall(@javax.annotation.Nonnull Integer analysisId, fin } @SuppressWarnings("rawtypes") - private okhttp3.Call getPdfValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getPdfValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getPdf(Async)"); } - return getPdfCall(analysisId, _callback); + return getPdfCall(analysisId, apiKey, _callback); } @@ -576,6 +605,7 @@ private okhttp3.Call getPdfValidateBeforeCall(@javax.annotation.Nonnull Integer * Gets the PDF found in the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -586,8 +616,8 @@ private okhttp3.Call getPdfValidateBeforeCall(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public Object getPdf(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getPdfWithHttpInfo(analysisId); + public Object getPdf(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getPdfWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -595,6 +625,7 @@ public Object getPdf(@javax.annotation.Nonnull Integer analysisId) throws ApiExc * Gets the PDF found in the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -605,8 +636,8 @@ public Object getPdf(@javax.annotation.Nonnull Integer analysisId) throws ApiExc 422 Invalid request parameters - */ - public ApiResponse getPdfWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getPdfValidateBeforeCall(analysisId, null); + public ApiResponse getPdfWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getPdfValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -615,6 +646,7 @@ public ApiResponse getPdfWithHttpInfo(@javax.annotation.Nonnull Integer * Gets the PDF found in the analysis (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -626,9 +658,9 @@ public ApiResponse getPdfWithHttpInfo(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public okhttp3.Call getPdfAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getPdfAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getPdfValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getPdfValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -636,6 +668,7 @@ public okhttp3.Call getPdfAsync(@javax.annotation.Nonnull Integer analysisId, fi /** * Build call for getSbom * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -647,7 +680,7 @@ public okhttp3.Call getPdfAsync(@javax.annotation.Nonnull Integer analysisId, fi 422 Invalid request parameters - */ - public okhttp3.Call getSbomCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSbomCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,6 +706,10 @@ public okhttp3.Call getSbomCall(@javax.annotation.Nonnull Integer analysisId, fi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -693,13 +730,13 @@ public okhttp3.Call getSbomCall(@javax.annotation.Nonnull Integer analysisId, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getSbomValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSbomValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getSbom(Async)"); } - return getSbomCall(analysisId, _callback); + return getSbomCall(analysisId, apiKey, _callback); } @@ -707,6 +744,7 @@ private okhttp3.Call getSbomValidateBeforeCall(@javax.annotation.Nonnull Integer * Gets the software-bill-of-materials (SBOM) found in the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseListSBOM * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -717,8 +755,8 @@ private okhttp3.Call getSbomValidateBeforeCall(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public BaseResponseListSBOM getSbom(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getSbomWithHttpInfo(analysisId); + public BaseResponseListSBOM getSbom(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getSbomWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -726,6 +764,7 @@ public BaseResponseListSBOM getSbom(@javax.annotation.Nonnull Integer analysisId * Gets the software-bill-of-materials (SBOM) found in the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListSBOM> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -736,8 +775,8 @@ public BaseResponseListSBOM getSbom(@javax.annotation.Nonnull Integer analysisId 422 Invalid request parameters - */ - public ApiResponse getSbomWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getSbomValidateBeforeCall(analysisId, null); + public ApiResponse getSbomWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getSbomValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -746,6 +785,7 @@ public ApiResponse getSbomWithHttpInfo(@javax.annotation.N * Gets the software-bill-of-materials (SBOM) found in the analysis (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -757,9 +797,9 @@ public ApiResponse getSbomWithHttpInfo(@javax.annotation.N 422 Invalid request parameters - */ - public okhttp3.Call getSbomAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSbomAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSbomValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getSbomValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -767,6 +807,7 @@ public okhttp3.Call getSbomAsync(@javax.annotation.Nonnull Integer analysisId, f /** * Build call for getTags * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -778,7 +819,7 @@ public okhttp3.Call getSbomAsync(@javax.annotation.Nonnull Integer analysisId, f 422 Invalid request parameters - */ - public okhttp3.Call getTagsCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTagsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -804,6 +845,10 @@ public okhttp3.Call getTagsCall(@javax.annotation.Nonnull Integer analysisId, fi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -824,13 +869,13 @@ public okhttp3.Call getTagsCall(@javax.annotation.Nonnull Integer analysisId, fi } @SuppressWarnings("rawtypes") - private okhttp3.Call getTagsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getTagsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getTags(Async)"); } - return getTagsCall(analysisId, _callback); + return getTagsCall(analysisId, apiKey, _callback); } @@ -838,6 +883,7 @@ private okhttp3.Call getTagsValidateBeforeCall(@javax.annotation.Nonnull Integer * Get function tags with maliciousness score * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseAnalysisTags * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -848,8 +894,8 @@ private okhttp3.Call getTagsValidateBeforeCall(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public BaseResponseAnalysisTags getTags(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getTagsWithHttpInfo(analysisId); + public BaseResponseAnalysisTags getTags(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getTagsWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -857,6 +903,7 @@ public BaseResponseAnalysisTags getTags(@javax.annotation.Nonnull Integer analys * Get function tags with maliciousness score * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisTags> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -867,8 +914,8 @@ public BaseResponseAnalysisTags getTags(@javax.annotation.Nonnull Integer analys 422 Invalid request parameters - */ - public ApiResponse getTagsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getTagsValidateBeforeCall(analysisId, null); + public ApiResponse getTagsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getTagsValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -877,6 +924,7 @@ public ApiResponse getTagsWithHttpInfo(@javax.annotati * Get function tags with maliciousness score (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -888,9 +936,9 @@ public ApiResponse getTagsWithHttpInfo(@javax.annotati 422 Invalid request parameters - */ - public okhttp3.Call getTagsAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTagsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getTagsValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getTagsValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -898,6 +946,7 @@ public okhttp3.Call getTagsAsync(@javax.annotation.Nonnull Integer analysisId, f /** * Build call for getVulnerabilities * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -909,7 +958,7 @@ public okhttp3.Call getTagsAsync(@javax.annotation.Nonnull Integer analysisId, f 422 Invalid request parameters - */ - public okhttp3.Call getVulnerabilitiesCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVulnerabilitiesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -935,6 +984,10 @@ public okhttp3.Call getVulnerabilitiesCall(@javax.annotation.Nonnull Integer ana Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -955,13 +1008,13 @@ public okhttp3.Call getVulnerabilitiesCall(@javax.annotation.Nonnull Integer ana } @SuppressWarnings("rawtypes") - private okhttp3.Call getVulnerabilitiesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getVulnerabilitiesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getVulnerabilities(Async)"); } - return getVulnerabilitiesCall(analysisId, _callback); + return getVulnerabilitiesCall(analysisId, apiKey, _callback); } @@ -969,6 +1022,7 @@ private okhttp3.Call getVulnerabilitiesValidateBeforeCall(@javax.annotation.Nonn * Gets the vulnerabilities found in the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseVulnerabilities * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -979,8 +1033,8 @@ private okhttp3.Call getVulnerabilitiesValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseVulnerabilities getVulnerabilities(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getVulnerabilitiesWithHttpInfo(analysisId); + public BaseResponseVulnerabilities getVulnerabilities(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getVulnerabilitiesWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -988,6 +1042,7 @@ public BaseResponseVulnerabilities getVulnerabilities(@javax.annotation.Nonnull * Gets the vulnerabilities found in the analysis * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseVulnerabilities> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -998,8 +1053,8 @@ public BaseResponseVulnerabilities getVulnerabilities(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public ApiResponse getVulnerabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getVulnerabilitiesValidateBeforeCall(analysisId, null); + public ApiResponse getVulnerabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getVulnerabilitiesValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1008,6 +1063,7 @@ public ApiResponse getVulnerabilitiesWithHttpInfo(@ * Gets the vulnerabilities found in the analysis (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1019,9 +1075,9 @@ public ApiResponse getVulnerabilitiesWithHttpInfo(@ 422 Invalid request parameters - */ - public okhttp3.Call getVulnerabilitiesAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVulnerabilitiesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getVulnerabilitiesValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getVulnerabilitiesValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java b/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java index 585e683..42f91df 100644 --- a/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java +++ b/src/main/java/ai/reveng/api/AnalysesSecurityChecksApi.java @@ -78,6 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createScurityChecksTask * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -90,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 409 Security checks already extracted or queued - */ - public okhttp3.Call createScurityChecksTaskCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createScurityChecksTaskCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -116,6 +117,10 @@ public okhttp3.Call createScurityChecksTaskCall(@javax.annotation.Nonnull Intege Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -136,13 +141,13 @@ public okhttp3.Call createScurityChecksTaskCall(@javax.annotation.Nonnull Intege } @SuppressWarnings("rawtypes") - private okhttp3.Call createScurityChecksTaskValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createScurityChecksTaskValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling createScurityChecksTask(Async)"); } - return createScurityChecksTaskCall(analysisId, _callback); + return createScurityChecksTaskCall(analysisId, apiKey, _callback); } @@ -150,6 +155,7 @@ private okhttp3.Call createScurityChecksTaskValidateBeforeCall(@javax.annotation * Queues a security check process * * @param analysisId (required) + * @param apiKey (optional) * @return QueuedSecurityChecksTaskResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -161,8 +167,8 @@ private okhttp3.Call createScurityChecksTaskValidateBeforeCall(@javax.annotation 409 Security checks already extracted or queued - */ - public QueuedSecurityChecksTaskResponse createScurityChecksTask(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = createScurityChecksTaskWithHttpInfo(analysisId); + public QueuedSecurityChecksTaskResponse createScurityChecksTask(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createScurityChecksTaskWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -170,6 +176,7 @@ public QueuedSecurityChecksTaskResponse createScurityChecksTask(@javax.annotatio * Queues a security check process * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<QueuedSecurityChecksTaskResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -181,8 +188,8 @@ public QueuedSecurityChecksTaskResponse createScurityChecksTask(@javax.annotatio 409 Security checks already extracted or queued - */ - public ApiResponse createScurityChecksTaskWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = createScurityChecksTaskValidateBeforeCall(analysisId, null); + public ApiResponse createScurityChecksTaskWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createScurityChecksTaskValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -191,6 +198,7 @@ public ApiResponse createScurityChecksTaskWith * Queues a security check process (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -203,9 +211,9 @@ public ApiResponse createScurityChecksTaskWith 409 Security checks already extracted or queued - */ - public okhttp3.Call createScurityChecksTaskAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createScurityChecksTaskAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createScurityChecksTaskValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = createScurityChecksTaskValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -215,6 +223,7 @@ public okhttp3.Call createScurityChecksTaskAsync(@javax.annotation.Nonnull Integ * @param analysisId (required) * @param page The page number to retrieve. (required) * @param pageSize Number of items per page. (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -226,7 +235,7 @@ public okhttp3.Call createScurityChecksTaskAsync(@javax.annotation.Nonnull Integ 422 Invalid request parameters - */ - public okhttp3.Call getSecurityChecksCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSecurityChecksCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -260,6 +269,10 @@ public okhttp3.Call getSecurityChecksCall(@javax.annotation.Nonnull Integer anal localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -280,7 +293,7 @@ public okhttp3.Call getSecurityChecksCall(@javax.annotation.Nonnull Integer anal } @SuppressWarnings("rawtypes") - private okhttp3.Call getSecurityChecksValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSecurityChecksValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getSecurityChecks(Async)"); @@ -296,7 +309,7 @@ private okhttp3.Call getSecurityChecksValidateBeforeCall(@javax.annotation.Nonnu throw new ApiException("Missing the required parameter 'pageSize' when calling getSecurityChecks(Async)"); } - return getSecurityChecksCall(analysisId, page, pageSize, _callback); + return getSecurityChecksCall(analysisId, page, pageSize, apiKey, _callback); } @@ -306,6 +319,7 @@ private okhttp3.Call getSecurityChecksValidateBeforeCall(@javax.annotation.Nonnu * @param analysisId (required) * @param page The page number to retrieve. (required) * @param pageSize Number of items per page. (required) + * @param apiKey (optional) * @return BaseResponseSecurityChecksResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -316,8 +330,8 @@ private okhttp3.Call getSecurityChecksValidateBeforeCall(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public BaseResponseSecurityChecksResponse getSecurityChecks(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize) throws ApiException { - ApiResponse localVarResp = getSecurityChecksWithHttpInfo(analysisId, page, pageSize); + public BaseResponseSecurityChecksResponse getSecurityChecks(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getSecurityChecksWithHttpInfo(analysisId, page, pageSize, apiKey); return localVarResp.getData(); } @@ -327,6 +341,7 @@ public BaseResponseSecurityChecksResponse getSecurityChecks(@javax.annotation.No * @param analysisId (required) * @param page The page number to retrieve. (required) * @param pageSize Number of items per page. (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseSecurityChecksResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -337,8 +352,8 @@ public BaseResponseSecurityChecksResponse getSecurityChecks(@javax.annotation.No 422 Invalid request parameters - */ - public ApiResponse getSecurityChecksWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize) throws ApiException { - okhttp3.Call localVarCall = getSecurityChecksValidateBeforeCall(analysisId, page, pageSize, null); + public ApiResponse getSecurityChecksWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getSecurityChecksValidateBeforeCall(analysisId, page, pageSize, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -349,6 +364,7 @@ public ApiResponse getSecurityChecksWithHttp * @param analysisId (required) * @param page The page number to retrieve. (required) * @param pageSize Number of items per page. (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -360,9 +376,9 @@ public ApiResponse getSecurityChecksWithHttp 422 Invalid request parameters - */ - public okhttp3.Call getSecurityChecksAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSecurityChecksAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer page, @javax.annotation.Nonnull Integer pageSize, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSecurityChecksValidateBeforeCall(analysisId, page, pageSize, _callback); + okhttp3.Call localVarCall = getSecurityChecksValidateBeforeCall(analysisId, page, pageSize, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -370,6 +386,7 @@ public okhttp3.Call getSecurityChecksAsync(@javax.annotation.Nonnull Integer ana /** * Build call for getSecurityChecksTaskStatus * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -381,7 +398,7 @@ public okhttp3.Call getSecurityChecksAsync(@javax.annotation.Nonnull Integer ana 422 Invalid request parameters - */ - public okhttp3.Call getSecurityChecksTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSecurityChecksTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -407,6 +424,10 @@ public okhttp3.Call getSecurityChecksTaskStatusCall(@javax.annotation.Nonnull In Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -427,13 +448,13 @@ public okhttp3.Call getSecurityChecksTaskStatusCall(@javax.annotation.Nonnull In } @SuppressWarnings("rawtypes") - private okhttp3.Call getSecurityChecksTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getSecurityChecksTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getSecurityChecksTaskStatus(Async)"); } - return getSecurityChecksTaskStatusCall(analysisId, _callback); + return getSecurityChecksTaskStatusCall(analysisId, apiKey, _callback); } @@ -441,6 +462,7 @@ private okhttp3.Call getSecurityChecksTaskStatusValidateBeforeCall(@javax.annota * Check the status of a security check process * * @param analysisId (required) + * @param apiKey (optional) * @return CheckSecurityChecksTaskResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -451,8 +473,8 @@ private okhttp3.Call getSecurityChecksTaskStatusValidateBeforeCall(@javax.annota 422 Invalid request parameters - */ - public CheckSecurityChecksTaskResponse getSecurityChecksTaskStatus(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getSecurityChecksTaskStatusWithHttpInfo(analysisId); + public CheckSecurityChecksTaskResponse getSecurityChecksTaskStatus(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getSecurityChecksTaskStatusWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -460,6 +482,7 @@ public CheckSecurityChecksTaskResponse getSecurityChecksTaskStatus(@javax.annota * Check the status of a security check process * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<CheckSecurityChecksTaskResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -470,8 +493,8 @@ public CheckSecurityChecksTaskResponse getSecurityChecksTaskStatus(@javax.annota 422 Invalid request parameters - */ - public ApiResponse getSecurityChecksTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getSecurityChecksTaskStatusValidateBeforeCall(analysisId, null); + public ApiResponse getSecurityChecksTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getSecurityChecksTaskStatusValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -480,6 +503,7 @@ public ApiResponse getSecurityChecksTaskStatusW * Check the status of a security check process (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -491,9 +515,9 @@ public ApiResponse getSecurityChecksTaskStatusW 422 Invalid request parameters - */ - public okhttp3.Call getSecurityChecksTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSecurityChecksTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getSecurityChecksTaskStatusValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getSecurityChecksTaskStatusValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java index 31ddc2c..35988f2 100644 --- a/src/main/java/ai/reveng/api/AuthenticationUsersApi.java +++ b/src/main/java/ai/reveng/api/AuthenticationUsersApi.java @@ -79,6 +79,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getRequesterUserInfo + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -90,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call getRequesterUserInfoCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRequesterUserInfoCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -115,6 +116,10 @@ public okhttp3.Call getRequesterUserInfoCall(final ApiCallback _callback) throws Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -135,14 +140,15 @@ public okhttp3.Call getRequesterUserInfoCall(final ApiCallback _callback) throws } @SuppressWarnings("rawtypes") - private okhttp3.Call getRequesterUserInfoValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getRequesterUserInfoCall(_callback); + private okhttp3.Call getRequesterUserInfoValidateBeforeCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return getRequesterUserInfoCall(apiKey, _callback); } /** * Get the requesters user information * + * @param apiKey (optional) * @return BaseResponseGetUserResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -153,14 +159,15 @@ private okhttp3.Call getRequesterUserInfoValidateBeforeCall(final ApiCallback _c 422 Invalid request parameters - */ - public BaseResponseGetUserResponse getRequesterUserInfo() throws ApiException { - ApiResponse localVarResp = getRequesterUserInfoWithHttpInfo(); + public BaseResponseGetUserResponse getRequesterUserInfo(@javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getRequesterUserInfoWithHttpInfo(apiKey); return localVarResp.getData(); } /** * Get the requesters user information * + * @param apiKey (optional) * @return ApiResponse<BaseResponseGetUserResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -171,8 +178,8 @@ public BaseResponseGetUserResponse getRequesterUserInfo() throws ApiException { 422 Invalid request parameters - */ - public ApiResponse getRequesterUserInfoWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getRequesterUserInfoValidateBeforeCall(null); + public ApiResponse getRequesterUserInfoWithHttpInfo(@javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getRequesterUserInfoValidateBeforeCall(apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -180,6 +187,7 @@ public ApiResponse getRequesterUserInfoWithHttpInfo /** * Get the requesters user information (asynchronously) * + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -191,9 +199,9 @@ public ApiResponse getRequesterUserInfoWithHttpInfo 422 Invalid request parameters - */ - public okhttp3.Call getRequesterUserInfoAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRequesterUserInfoAsync(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getRequesterUserInfoValidateBeforeCall(_callback); + okhttp3.Call localVarCall = getRequesterUserInfoValidateBeforeCall(apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -201,6 +209,7 @@ public okhttp3.Call getRequesterUserInfoAsync(final ApiCallback 422 Invalid request parameters - */ - public okhttp3.Call getUserCall(@javax.annotation.Nonnull Integer userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserCall(@javax.annotation.Nonnull Integer userId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -238,6 +247,10 @@ public okhttp3.Call getUserCall(@javax.annotation.Nonnull Integer userId, final Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -258,13 +271,13 @@ public okhttp3.Call getUserCall(@javax.annotation.Nonnull Integer userId, final } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull Integer userId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull Integer userId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException("Missing the required parameter 'userId' when calling getUser(Async)"); } - return getUserCall(userId, _callback); + return getUserCall(userId, apiKey, _callback); } @@ -272,6 +285,7 @@ private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull Integer * Get a user's public information * * @param userId (required) + * @param apiKey (optional) * @return BaseResponseGetPublicUserResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -282,8 +296,8 @@ private okhttp3.Call getUserValidateBeforeCall(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public BaseResponseGetPublicUserResponse getUser(@javax.annotation.Nonnull Integer userId) throws ApiException { - ApiResponse localVarResp = getUserWithHttpInfo(userId); + public BaseResponseGetPublicUserResponse getUser(@javax.annotation.Nonnull Integer userId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(userId, apiKey); return localVarResp.getData(); } @@ -291,6 +305,7 @@ public BaseResponseGetPublicUserResponse getUser(@javax.annotation.Nonnull Integ * Get a user's public information * * @param userId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseGetPublicUserResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -301,8 +316,8 @@ public BaseResponseGetPublicUserResponse getUser(@javax.annotation.Nonnull Integ 422 Invalid request parameters - */ - public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull Integer userId) throws ApiException { - okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, null); + public ApiResponse getUserWithHttpInfo(@javax.annotation.Nonnull Integer userId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -311,6 +326,7 @@ public ApiResponse getUserWithHttpInfo(@javax * Get a user's public information (asynchronously) * * @param userId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -322,15 +338,16 @@ public ApiResponse getUserWithHttpInfo(@javax 422 Invalid request parameters - */ - public okhttp3.Call getUserAsync(@javax.annotation.Nonnull Integer userId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserAsync(@javax.annotation.Nonnull Integer userId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, _callback); + okhttp3.Call localVarCall = getUserValidateBeforeCall(userId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUserActivity + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -342,7 +359,7 @@ public okhttp3.Call getUserAsync(@javax.annotation.Nonnull Integer userId, final 422 Invalid request parameters - */ - public okhttp3.Call getUserActivityCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserActivityCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -367,6 +384,10 @@ public okhttp3.Call getUserActivityCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -387,14 +408,15 @@ public okhttp3.Call getUserActivityCall(final ApiCallback _callback) throws ApiE } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserActivityValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getUserActivityCall(_callback); + private okhttp3.Call getUserActivityValidateBeforeCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return getUserActivityCall(apiKey, _callback); } /** * Get auth user activity * + * @param apiKey (optional) * @return BaseResponseListUserActivityResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -405,14 +427,15 @@ private okhttp3.Call getUserActivityValidateBeforeCall(final ApiCallback _callba 422 Invalid request parameters - */ - public BaseResponseListUserActivityResponse getUserActivity() throws ApiException { - ApiResponse localVarResp = getUserActivityWithHttpInfo(); + public BaseResponseListUserActivityResponse getUserActivity(@javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getUserActivityWithHttpInfo(apiKey); return localVarResp.getData(); } /** * Get auth user activity * + * @param apiKey (optional) * @return ApiResponse<BaseResponseListUserActivityResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -423,8 +446,8 @@ public BaseResponseListUserActivityResponse getUserActivity() throws ApiExceptio 422 Invalid request parameters - */ - public ApiResponse getUserActivityWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getUserActivityValidateBeforeCall(null); + public ApiResponse getUserActivityWithHttpInfo(@javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getUserActivityValidateBeforeCall(apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -432,6 +455,7 @@ public ApiResponse getUserActivityWithHttp /** * Get auth user activity (asynchronously) * + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -443,15 +467,16 @@ public ApiResponse getUserActivityWithHttp 422 Invalid request parameters - */ - public okhttp3.Call getUserActivityAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserActivityAsync(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserActivityValidateBeforeCall(_callback); + okhttp3.Call localVarCall = getUserActivityValidateBeforeCall(apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUserComments + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -463,7 +488,7 @@ public okhttp3.Call getUserActivityAsync(final ApiCallback 422 Invalid request parameters - */ - public okhttp3.Call getUserCommentsCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserCommentsCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -488,6 +513,10 @@ public okhttp3.Call getUserCommentsCall(final ApiCallback _callback) throws ApiE Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -508,14 +537,15 @@ public okhttp3.Call getUserCommentsCall(final ApiCallback _callback) throws ApiE } @SuppressWarnings("rawtypes") - private okhttp3.Call getUserCommentsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getUserCommentsCall(_callback); + private okhttp3.Call getUserCommentsValidateBeforeCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return getUserCommentsCall(apiKey, _callback); } /** * Get comments by user * Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to. + * @param apiKey (optional) * @return BaseResponseListCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -526,14 +556,15 @@ private okhttp3.Call getUserCommentsValidateBeforeCall(final ApiCallback _callba 422 Invalid request parameters - */ - public BaseResponseListCommentResponse getUserComments() throws ApiException { - ApiResponse localVarResp = getUserCommentsWithHttpInfo(); + public BaseResponseListCommentResponse getUserComments(@javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getUserCommentsWithHttpInfo(apiKey); return localVarResp.getData(); } /** * Get comments by user * Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to. + * @param apiKey (optional) * @return ApiResponse<BaseResponseListCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -544,8 +575,8 @@ public BaseResponseListCommentResponse getUserComments() throws ApiException { 422 Invalid request parameters - */ - public ApiResponse getUserCommentsWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(null); + public ApiResponse getUserCommentsWithHttpInfo(@javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -553,6 +584,7 @@ public ApiResponse getUserCommentsWithHttpInfo( /** * Get comments by user (asynchronously) * Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to. + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -564,9 +596,9 @@ public ApiResponse getUserCommentsWithHttpInfo( 422 Invalid request parameters - */ - public okhttp3.Call getUserCommentsAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getUserCommentsAsync(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(_callback); + okhttp3.Call localVarCall = getUserCommentsValidateBeforeCall(apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/BinariesApi.java b/src/main/java/ai/reveng/api/BinariesApi.java index 7647da6..f307d7f 100644 --- a/src/main/java/ai/reveng/api/BinariesApi.java +++ b/src/main/java/ai/reveng/api/BinariesApi.java @@ -79,6 +79,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for downloadZippedBinary * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -90,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -116,6 +117,10 @@ public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer b Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -136,13 +141,13 @@ public okhttp3.Call downloadZippedBinaryCall(@javax.annotation.Nonnull Integer b } @SuppressWarnings("rawtypes") - private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling downloadZippedBinary(Async)"); } - return downloadZippedBinaryCall(binaryId, _callback); + return downloadZippedBinaryCall(binaryId, apiKey, _callback); } @@ -150,6 +155,7 @@ private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.No * Downloads a zipped binary with password protection * * @param binaryId (required) + * @param apiKey (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -160,8 +166,8 @@ private okhttp3.Call downloadZippedBinaryValidateBeforeCall(@javax.annotation.No 422 Invalid request parameters - */ - public Object downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = downloadZippedBinaryWithHttpInfo(binaryId); + public Object downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = downloadZippedBinaryWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -169,6 +175,7 @@ public Object downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) t * Downloads a zipped binary with password protection * * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -179,8 +186,8 @@ public Object downloadZippedBinary(@javax.annotation.Nonnull Integer binaryId) t 422 Invalid request parameters - */ - public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, null); + public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -189,6 +196,7 @@ public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.No * Downloads a zipped binary with password protection (asynchronously) * * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -200,9 +208,9 @@ public ApiResponse downloadZippedBinaryWithHttpInfo(@javax.annotation.No 422 Invalid request parameters - */ - public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = downloadZippedBinaryValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -210,6 +218,7 @@ public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer /** * Build call for getBinaryAdditionalDetails * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -221,7 +230,7 @@ public okhttp3.Call downloadZippedBinaryAsync(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -247,6 +256,10 @@ public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -267,13 +280,13 @@ public okhttp3.Call getBinaryAdditionalDetailsCall(@javax.annotation.Nonnull Int } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling getBinaryAdditionalDetails(Async)"); } - return getBinaryAdditionalDetailsCall(binaryId, _callback); + return getBinaryAdditionalDetailsCall(binaryId, apiKey, _callback); } @@ -281,6 +294,7 @@ private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotat * Gets the additional details of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return BaseResponseBinaryAdditionalResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -291,8 +305,8 @@ private okhttp3.Call getBinaryAdditionalDetailsValidateBeforeCall(@javax.annotat 422 Invalid request parameters - */ - public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getBinaryAdditionalDetailsWithHttpInfo(binaryId); + public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getBinaryAdditionalDetailsWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -300,6 +314,7 @@ public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.an * Gets the additional details of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBinaryAdditionalResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -310,8 +325,8 @@ public BaseResponseBinaryAdditionalResponse getBinaryAdditionalDetails(@javax.an 422 Invalid request parameters - */ - public ApiResponse getBinaryAdditionalDetailsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, null); + public ApiResponse getBinaryAdditionalDetailsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -320,6 +335,7 @@ public ApiResponse getBinaryAdditionalDeta * Gets the additional details of a binary (asynchronously) * * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -331,9 +347,9 @@ public ApiResponse getBinaryAdditionalDeta 422 Invalid request parameters - */ - public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryAdditionalDetailsValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -341,6 +357,7 @@ public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull In /** * Build call for getBinaryDetails * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -352,7 +369,7 @@ public okhttp3.Call getBinaryAdditionalDetailsAsync(@javax.annotation.Nonnull In 422 Invalid request parameters - */ - public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -378,6 +395,10 @@ public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -398,13 +419,13 @@ public okhttp3.Call getBinaryDetailsCall(@javax.annotation.Nonnull Integer binar } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling getBinaryDetails(Async)"); } - return getBinaryDetailsCall(binaryId, _callback); + return getBinaryDetailsCall(binaryId, apiKey, _callback); } @@ -412,6 +433,7 @@ private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnul * Gets the details of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return BaseResponseBinaryDetailsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -422,8 +444,8 @@ private okhttp3.Call getBinaryDetailsValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getBinaryDetailsWithHttpInfo(binaryId); + public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getBinaryDetailsWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -431,6 +453,7 @@ public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonn * Gets the details of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBinaryDetailsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -441,8 +464,8 @@ public BaseResponseBinaryDetailsResponse getBinaryDetails(@javax.annotation.Nonn 422 Invalid request parameters - */ - public ApiResponse getBinaryDetailsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, null); + public ApiResponse getBinaryDetailsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -451,6 +474,7 @@ public ApiResponse getBinaryDetailsWithHttpIn * Gets the details of a binary (asynchronously) * * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -462,9 +486,9 @@ public ApiResponse getBinaryDetailsWithHttpIn 422 Invalid request parameters - */ - public okhttp3.Call getBinaryDetailsAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryDetailsAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryDetailsValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -472,6 +496,7 @@ public okhttp3.Call getBinaryDetailsAsync(@javax.annotation.Nonnull Integer bina /** * Build call for getBinaryDieInfo * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -483,7 +508,7 @@ public okhttp3.Call getBinaryDetailsAsync(@javax.annotation.Nonnull Integer bina 422 Invalid request parameters - */ - public okhttp3.Call getBinaryDieInfoCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryDieInfoCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -509,6 +534,10 @@ public okhttp3.Call getBinaryDieInfoCall(@javax.annotation.Nonnull Integer binar Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -529,13 +558,13 @@ public okhttp3.Call getBinaryDieInfoCall(@javax.annotation.Nonnull Integer binar } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinaryDieInfoValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinaryDieInfoValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling getBinaryDieInfo(Async)"); } - return getBinaryDieInfoCall(binaryId, _callback); + return getBinaryDieInfoCall(binaryId, apiKey, _callback); } @@ -543,6 +572,7 @@ private okhttp3.Call getBinaryDieInfoValidateBeforeCall(@javax.annotation.Nonnul * Gets the die info of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return BaseResponseListDieMatch * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -553,8 +583,8 @@ private okhttp3.Call getBinaryDieInfoValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponseListDieMatch getBinaryDieInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getBinaryDieInfoWithHttpInfo(binaryId); + public BaseResponseListDieMatch getBinaryDieInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getBinaryDieInfoWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -562,6 +592,7 @@ public BaseResponseListDieMatch getBinaryDieInfo(@javax.annotation.Nonnull Integ * Gets the die info of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListDieMatch> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -572,8 +603,8 @@ public BaseResponseListDieMatch getBinaryDieInfo(@javax.annotation.Nonnull Integ 422 Invalid request parameters - */ - public ApiResponse getBinaryDieInfoWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, null); + public ApiResponse getBinaryDieInfoWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -582,6 +613,7 @@ public ApiResponse getBinaryDieInfoWithHttpInfo(@javax * Gets the die info of a binary (asynchronously) * * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -593,9 +625,9 @@ public ApiResponse getBinaryDieInfoWithHttpInfo(@javax 422 Invalid request parameters - */ - public okhttp3.Call getBinaryDieInfoAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryDieInfoAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryDieInfoValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -603,6 +635,7 @@ public okhttp3.Call getBinaryDieInfoAsync(@javax.annotation.Nonnull Integer bina /** * Build call for getBinaryExternals * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -614,7 +647,7 @@ public okhttp3.Call getBinaryDieInfoAsync(@javax.annotation.Nonnull Integer bina 422 Invalid request parameters - */ - public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -640,6 +673,10 @@ public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer bin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -660,13 +697,13 @@ public okhttp3.Call getBinaryExternalsCall(@javax.annotation.Nonnull Integer bin } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling getBinaryExternals(Async)"); } - return getBinaryExternalsCall(binaryId, _callback); + return getBinaryExternalsCall(binaryId, apiKey, _callback); } @@ -674,6 +711,7 @@ private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonn * Gets the external details of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return BaseResponseBinaryExternalsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -684,8 +722,8 @@ private okhttp3.Call getBinaryExternalsValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getBinaryExternalsWithHttpInfo(binaryId); + public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getBinaryExternalsWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -693,6 +731,7 @@ public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation. * Gets the external details of a binary * * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBinaryExternalsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -703,8 +742,8 @@ public BaseResponseBinaryExternalsResponse getBinaryExternals(@javax.annotation. 422 Invalid request parameters - */ - public ApiResponse getBinaryExternalsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, null); + public ApiResponse getBinaryExternalsWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -713,6 +752,7 @@ public ApiResponse getBinaryExternalsWithHt * Gets the external details of a binary (asynchronously) * * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -724,9 +764,9 @@ public ApiResponse getBinaryExternalsWithHt 422 Invalid request parameters - */ - public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getBinaryExternalsValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -734,6 +774,7 @@ public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer bi /** * Build call for getRelatedBinaries * @param binaryId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -746,7 +787,7 @@ public okhttp3.Call getBinaryExternalsAsync(@javax.annotation.Nonnull Integer bi 403 Forbidden - */ - public okhttp3.Call getRelatedBinariesCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRelatedBinariesCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -772,6 +813,10 @@ public okhttp3.Call getRelatedBinariesCall(@javax.annotation.Nonnull Integer bin Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -792,13 +837,13 @@ public okhttp3.Call getRelatedBinariesCall(@javax.annotation.Nonnull Integer bin } @SuppressWarnings("rawtypes") - private okhttp3.Call getRelatedBinariesValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getRelatedBinariesValidateBeforeCall(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'binaryId' is set if (binaryId == null) { throw new ApiException("Missing the required parameter 'binaryId' when calling getRelatedBinaries(Async)"); } - return getRelatedBinariesCall(binaryId, _callback); + return getRelatedBinariesCall(binaryId, apiKey, _callback); } @@ -806,6 +851,7 @@ private okhttp3.Call getRelatedBinariesValidateBeforeCall(@javax.annotation.Nonn * Gets the related binaries of a binary. * * @param binaryId (required) + * @param apiKey (optional) * @return BaseResponseChildBinariesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -817,8 +863,8 @@ private okhttp3.Call getRelatedBinariesValidateBeforeCall(@javax.annotation.Nonn 403 Forbidden - */ - public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - ApiResponse localVarResp = getRelatedBinariesWithHttpInfo(binaryId); + public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getRelatedBinariesWithHttpInfo(binaryId, apiKey); return localVarResp.getData(); } @@ -826,6 +872,7 @@ public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.No * Gets the related binaries of a binary. * * @param binaryId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseChildBinariesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -837,8 +884,8 @@ public BaseResponseChildBinariesResponse getRelatedBinaries(@javax.annotation.No 403 Forbidden - */ - public ApiResponse getRelatedBinariesWithHttpInfo(@javax.annotation.Nonnull Integer binaryId) throws ApiException { - okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, null); + public ApiResponse getRelatedBinariesWithHttpInfo(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -847,6 +894,7 @@ public ApiResponse getRelatedBinariesWithHttp * Gets the related binaries of a binary. (asynchronously) * * @param binaryId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -859,9 +907,9 @@ public ApiResponse getRelatedBinariesWithHttp 403 Forbidden - */ - public okhttp3.Call getRelatedBinariesAsync(@javax.annotation.Nonnull Integer binaryId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getRelatedBinariesAsync(@javax.annotation.Nonnull Integer binaryId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, _callback); + okhttp3.Call localVarCall = getRelatedBinariesValidateBeforeCall(binaryId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/CollectionsApi.java b/src/main/java/ai/reveng/api/CollectionsApi.java index 0fceb40..d2eb57b 100644 --- a/src/main/java/ai/reveng/api/CollectionsApi.java +++ b/src/main/java/ai/reveng/api/CollectionsApi.java @@ -86,6 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createCollection * @param collectionCreateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -97,7 +98,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call createCollectionCall(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCollectionCall(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -122,6 +123,10 @@ public okhttp3.Call createCollectionCall(@javax.annotation.Nonnull CollectionCre Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -143,13 +148,13 @@ public okhttp3.Call createCollectionCall(@javax.annotation.Nonnull CollectionCre } @SuppressWarnings("rawtypes") - private okhttp3.Call createCollectionValidateBeforeCall(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCollectionValidateBeforeCall(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionCreateRequest' is set if (collectionCreateRequest == null) { throw new ApiException("Missing the required parameter 'collectionCreateRequest' when calling createCollection(Async)"); } - return createCollectionCall(collectionCreateRequest, _callback); + return createCollectionCall(collectionCreateRequest, apiKey, _callback); } @@ -157,6 +162,7 @@ private okhttp3.Call createCollectionValidateBeforeCall(@javax.annotation.Nonnul * Creates new collection information * A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. * @param collectionCreateRequest (required) + * @param apiKey (optional) * @return BaseResponseCollectionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -167,8 +173,8 @@ private okhttp3.Call createCollectionValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponseCollectionResponse createCollection(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest) throws ApiException { - ApiResponse localVarResp = createCollectionWithHttpInfo(collectionCreateRequest); + public BaseResponseCollectionResponse createCollection(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createCollectionWithHttpInfo(collectionCreateRequest, apiKey); return localVarResp.getData(); } @@ -176,6 +182,7 @@ public BaseResponseCollectionResponse createCollection(@javax.annotation.Nonnull * Creates new collection information * A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. * @param collectionCreateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCollectionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -186,8 +193,8 @@ public BaseResponseCollectionResponse createCollection(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public ApiResponse createCollectionWithHttpInfo(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest) throws ApiException { - okhttp3.Call localVarCall = createCollectionValidateBeforeCall(collectionCreateRequest, null); + public ApiResponse createCollectionWithHttpInfo(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createCollectionValidateBeforeCall(collectionCreateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -196,6 +203,7 @@ public ApiResponse createCollectionWithHttpInfo( * Creates new collection information (asynchronously) * A collection is a group of binaries that are related in some way. This endpoint creates a new collection and allows you to add tags and binaries to it. If you add tags or binaries to the collection, they will be returned in the response. * @param collectionCreateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -207,9 +215,9 @@ public ApiResponse createCollectionWithHttpInfo( 422 Invalid request parameters - */ - public okhttp3.Call createCollectionAsync(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createCollectionAsync(@javax.annotation.Nonnull CollectionCreateRequest collectionCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createCollectionValidateBeforeCall(collectionCreateRequest, _callback); + okhttp3.Call localVarCall = createCollectionValidateBeforeCall(collectionCreateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -217,6 +225,7 @@ public okhttp3.Call createCollectionAsync(@javax.annotation.Nonnull CollectionCr /** * Build call for deleteCollection * @param collectionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -228,7 +237,7 @@ public okhttp3.Call createCollectionAsync(@javax.annotation.Nonnull CollectionCr 422 Invalid request parameters - */ - public okhttp3.Call deleteCollectionCall(@javax.annotation.Nonnull Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -254,6 +263,10 @@ public okhttp3.Call deleteCollectionCall(@javax.annotation.Nonnull Integer colle Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -274,13 +287,13 @@ public okhttp3.Call deleteCollectionCall(@javax.annotation.Nonnull Integer colle } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new ApiException("Missing the required parameter 'collectionId' when calling deleteCollection(Async)"); } - return deleteCollectionCall(collectionId, _callback); + return deleteCollectionCall(collectionId, apiKey, _callback); } @@ -288,6 +301,7 @@ private okhttp3.Call deleteCollectionValidateBeforeCall(@javax.annotation.Nonnul * Deletes a collection * Deletes a collection * @param collectionId (required) + * @param apiKey (optional) * @return BaseResponseBool * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -298,8 +312,8 @@ private okhttp3.Call deleteCollectionValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponseBool deleteCollection(@javax.annotation.Nonnull Integer collectionId) throws ApiException { - ApiResponse localVarResp = deleteCollectionWithHttpInfo(collectionId); + public BaseResponseBool deleteCollection(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = deleteCollectionWithHttpInfo(collectionId, apiKey); return localVarResp.getData(); } @@ -307,6 +321,7 @@ public BaseResponseBool deleteCollection(@javax.annotation.Nonnull Integer colle * Deletes a collection * Deletes a collection * @param collectionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBool> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,8 +332,8 @@ public BaseResponseBool deleteCollection(@javax.annotation.Nonnull Integer colle 422 Invalid request parameters - */ - public ApiResponse deleteCollectionWithHttpInfo(@javax.annotation.Nonnull Integer collectionId) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(collectionId, null); + public ApiResponse deleteCollectionWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(collectionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -327,6 +342,7 @@ public ApiResponse deleteCollectionWithHttpInfo(@javax.annotat * Deletes a collection (asynchronously) * Deletes a collection * @param collectionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -338,9 +354,9 @@ public ApiResponse deleteCollectionWithHttpInfo(@javax.annotat 422 Invalid request parameters - */ - public okhttp3.Call deleteCollectionAsync(@javax.annotation.Nonnull Integer collectionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteCollectionAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(collectionId, _callback); + okhttp3.Call localVarCall = deleteCollectionValidateBeforeCall(collectionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -350,6 +366,7 @@ public okhttp3.Call deleteCollectionAsync(@javax.annotation.Nonnull Integer coll * @param collectionId (required) * @param includeTags (optional, default to false) * @param includeBinaries (optional, default to false) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -361,7 +378,7 @@ public okhttp3.Call deleteCollectionAsync(@javax.annotation.Nonnull Integer coll 422 Invalid request parameters - */ - public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -395,6 +412,10 @@ public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collecti localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_binaries", includeBinaries)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -415,13 +436,13 @@ public okhttp3.Call getCollectionCall(@javax.annotation.Nonnull Integer collecti } @SuppressWarnings("rawtypes") - private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new ApiException("Missing the required parameter 'collectionId' when calling getCollection(Async)"); } - return getCollectionCall(collectionId, includeTags, includeBinaries, _callback); + return getCollectionCall(collectionId, includeTags, includeBinaries, apiKey, _callback); } @@ -431,6 +452,7 @@ private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull I * @param collectionId (required) * @param includeTags (optional, default to false) * @param includeBinaries (optional, default to false) + * @param apiKey (optional) * @return BaseResponseCollectionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -441,8 +463,8 @@ private okhttp3.Call getCollectionValidateBeforeCall(@javax.annotation.Nonnull I 422 Invalid request parameters - */ - public BaseResponseCollectionResponse getCollection(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries) throws ApiException { - ApiResponse localVarResp = getCollectionWithHttpInfo(collectionId, includeTags, includeBinaries); + public BaseResponseCollectionResponse getCollection(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getCollectionWithHttpInfo(collectionId, includeTags, includeBinaries, apiKey); return localVarResp.getData(); } @@ -452,6 +474,7 @@ public BaseResponseCollectionResponse getCollection(@javax.annotation.Nonnull In * @param collectionId (required) * @param includeTags (optional, default to false) * @param includeBinaries (optional, default to false) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCollectionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -462,8 +485,8 @@ public BaseResponseCollectionResponse getCollection(@javax.annotation.Nonnull In 422 Invalid request parameters - */ - public ApiResponse getCollectionWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries) throws ApiException { - okhttp3.Call localVarCall = getCollectionValidateBeforeCall(collectionId, includeTags, includeBinaries, null); + public ApiResponse getCollectionWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getCollectionValidateBeforeCall(collectionId, includeTags, includeBinaries, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -474,6 +497,7 @@ public ApiResponse getCollectionWithHttpInfo(@ja * @param collectionId (required) * @param includeTags (optional, default to false) * @param includeBinaries (optional, default to false) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -485,9 +509,9 @@ public ApiResponse getCollectionWithHttpInfo(@ja 422 Invalid request parameters - */ - public okhttp3.Call getCollectionAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getCollectionAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nullable Boolean includeTags, @javax.annotation.Nullable Boolean includeBinaries, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getCollectionValidateBeforeCall(collectionId, includeTags, includeBinaries, _callback); + okhttp3.Call localVarCall = getCollectionValidateBeforeCall(collectionId, includeTags, includeBinaries, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -500,6 +524,7 @@ public okhttp3.Call getCollectionAsync(@javax.annotation.Nonnull Integer collect * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -511,7 +536,7 @@ public okhttp3.Call getCollectionAsync(@javax.annotation.Nonnull Integer collect 422 Invalid request parameters - */ - public okhttp3.Call listCollectionsCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -560,6 +585,10 @@ public okhttp3.Call listCollectionsCall(@javax.annotation.Nullable String search localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -580,8 +609,8 @@ public okhttp3.Call listCollectionsCall(@javax.annotation.Nullable String search } @SuppressWarnings("rawtypes") - private okhttp3.Call listCollectionsValidateBeforeCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, final ApiCallback _callback) throws ApiException { - return listCollectionsCall(searchTerm, filters, limit, offset, orderBy, order, _callback); + private okhttp3.Call listCollectionsValidateBeforeCall(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return listCollectionsCall(searchTerm, filters, limit, offset, orderBy, order, apiKey, _callback); } @@ -594,6 +623,7 @@ private okhttp3.Call listCollectionsValidateBeforeCall(@javax.annotation.Nullabl * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @return BaseResponseListCollectionResults * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -604,8 +634,8 @@ private okhttp3.Call listCollectionsValidateBeforeCall(@javax.annotation.Nullabl 422 Invalid request parameters - */ - public BaseResponseListCollectionResults listCollections(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order) throws ApiException { - ApiResponse localVarResp = listCollectionsWithHttpInfo(searchTerm, filters, limit, offset, orderBy, order); + public BaseResponseListCollectionResults listCollections(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = listCollectionsWithHttpInfo(searchTerm, filters, limit, offset, orderBy, order, apiKey); return localVarResp.getData(); } @@ -618,6 +648,7 @@ public BaseResponseListCollectionResults listCollections(@javax.annotation.Nulla * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListCollectionResults> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -628,8 +659,8 @@ public BaseResponseListCollectionResults listCollections(@javax.annotation.Nulla 422 Invalid request parameters - */ - public ApiResponse listCollectionsWithHttpInfo(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order) throws ApiException { - okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(searchTerm, filters, limit, offset, orderBy, order, null); + public ApiResponse listCollectionsWithHttpInfo(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(searchTerm, filters, limit, offset, orderBy, order, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -643,6 +674,7 @@ public ApiResponse listCollectionsWithHttpInf * @param offset (optional, default to 0) * @param orderBy (optional) * @param order (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -654,9 +686,9 @@ public ApiResponse listCollectionsWithHttpInf 422 Invalid request parameters - */ - public okhttp3.Call listCollectionsAsync(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCollectionsAsync(@javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable List filters, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable Integer offset, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order order, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(searchTerm, filters, limit, offset, orderBy, order, _callback); + okhttp3.Call localVarCall = listCollectionsValidateBeforeCall(searchTerm, filters, limit, offset, orderBy, order, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -665,6 +697,7 @@ public okhttp3.Call listCollectionsAsync(@javax.annotation.Nullable String searc * Build call for updateCollection * @param collectionId (required) * @param collectionUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -676,7 +709,7 @@ public okhttp3.Call listCollectionsAsync(@javax.annotation.Nullable String searc 422 Invalid request parameters - */ - public okhttp3.Call updateCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -702,6 +735,10 @@ public okhttp3.Call updateCollectionCall(@javax.annotation.Nonnull Integer colle Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -723,7 +760,7 @@ public okhttp3.Call updateCollectionCall(@javax.annotation.Nonnull Integer colle } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCollectionValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new ApiException("Missing the required parameter 'collectionId' when calling updateCollection(Async)"); @@ -734,7 +771,7 @@ private okhttp3.Call updateCollectionValidateBeforeCall(@javax.annotation.Nonnul throw new ApiException("Missing the required parameter 'collectionUpdateRequest' when calling updateCollection(Async)"); } - return updateCollectionCall(collectionId, collectionUpdateRequest, _callback); + return updateCollectionCall(collectionId, collectionUpdateRequest, apiKey, _callback); } @@ -743,6 +780,7 @@ private okhttp3.Call updateCollectionValidateBeforeCall(@javax.annotation.Nonnul * Updates a collection, you can update the collection name, description, and scope * @param collectionId (required) * @param collectionUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseCollectionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -753,8 +791,8 @@ private okhttp3.Call updateCollectionValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponseCollectionResponse updateCollection(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateCollectionWithHttpInfo(collectionId, collectionUpdateRequest); + public BaseResponseCollectionResponse updateCollection(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateCollectionWithHttpInfo(collectionId, collectionUpdateRequest, apiKey); return localVarResp.getData(); } @@ -763,6 +801,7 @@ public BaseResponseCollectionResponse updateCollection(@javax.annotation.Nonnull * Updates a collection, you can update the collection name, description, and scope * @param collectionId (required) * @param collectionUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCollectionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -773,8 +812,8 @@ public BaseResponseCollectionResponse updateCollection(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public ApiResponse updateCollectionWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(collectionId, collectionUpdateRequest, null); + public ApiResponse updateCollectionWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(collectionId, collectionUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -784,6 +823,7 @@ public ApiResponse updateCollectionWithHttpInfo( * Updates a collection, you can update the collection name, description, and scope * @param collectionId (required) * @param collectionUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -795,9 +835,9 @@ public ApiResponse updateCollectionWithHttpInfo( 422 Invalid request parameters - */ - public okhttp3.Call updateCollectionAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionUpdateRequest collectionUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(collectionId, collectionUpdateRequest, _callback); + okhttp3.Call localVarCall = updateCollectionValidateBeforeCall(collectionId, collectionUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -806,6 +846,7 @@ public okhttp3.Call updateCollectionAsync(@javax.annotation.Nonnull Integer coll * Build call for updateCollectionBinaries * @param collectionId (required) * @param collectionBinariesUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -817,7 +858,7 @@ public okhttp3.Call updateCollectionAsync(@javax.annotation.Nonnull Integer coll 422 Invalid request parameters - */ - public okhttp3.Call updateCollectionBinariesCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionBinariesCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -843,6 +884,10 @@ public okhttp3.Call updateCollectionBinariesCall(@javax.annotation.Nonnull Integ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -864,7 +909,7 @@ public okhttp3.Call updateCollectionBinariesCall(@javax.annotation.Nonnull Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollectionBinariesValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCollectionBinariesValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new ApiException("Missing the required parameter 'collectionId' when calling updateCollectionBinaries(Async)"); @@ -875,7 +920,7 @@ private okhttp3.Call updateCollectionBinariesValidateBeforeCall(@javax.annotatio throw new ApiException("Missing the required parameter 'collectionBinariesUpdateRequest' when calling updateCollectionBinaries(Async)"); } - return updateCollectionBinariesCall(collectionId, collectionBinariesUpdateRequest, _callback); + return updateCollectionBinariesCall(collectionId, collectionBinariesUpdateRequest, apiKey, _callback); } @@ -884,6 +929,7 @@ private okhttp3.Call updateCollectionBinariesValidateBeforeCall(@javax.annotatio * Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. * @param collectionId (required) * @param collectionBinariesUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseCollectionBinariesUpdateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -894,8 +940,8 @@ private okhttp3.Call updateCollectionBinariesValidateBeforeCall(@javax.annotatio 422 Invalid request parameters - */ - public BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateCollectionBinariesWithHttpInfo(collectionId, collectionBinariesUpdateRequest); + public BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateCollectionBinariesWithHttpInfo(collectionId, collectionBinariesUpdateRequest, apiKey); return localVarResp.getData(); } @@ -904,6 +950,7 @@ public BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(@ja * Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. * @param collectionId (required) * @param collectionBinariesUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCollectionBinariesUpdateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -914,8 +961,8 @@ public BaseResponseCollectionBinariesUpdateResponse updateCollectionBinaries(@ja 422 Invalid request parameters - */ - public ApiResponse updateCollectionBinariesWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateCollectionBinariesValidateBeforeCall(collectionId, collectionBinariesUpdateRequest, null); + public ApiResponse updateCollectionBinariesWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateCollectionBinariesValidateBeforeCall(collectionId, collectionBinariesUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -925,6 +972,7 @@ public ApiResponse updateCollectio * Updates/changes a collection binaries to whatever is provided in the request. After this update the collection will only contain the binaries provided in the request. * @param collectionId (required) * @param collectionBinariesUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -936,9 +984,9 @@ public ApiResponse updateCollectio 422 Invalid request parameters - */ - public okhttp3.Call updateCollectionBinariesAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionBinariesAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionBinariesUpdateRequest collectionBinariesUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateCollectionBinariesValidateBeforeCall(collectionId, collectionBinariesUpdateRequest, _callback); + okhttp3.Call localVarCall = updateCollectionBinariesValidateBeforeCall(collectionId, collectionBinariesUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -947,6 +995,7 @@ public okhttp3.Call updateCollectionBinariesAsync(@javax.annotation.Nonnull Inte * Build call for updateCollectionTags * @param collectionId (required) * @param collectionTagsUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -958,7 +1007,7 @@ public okhttp3.Call updateCollectionBinariesAsync(@javax.annotation.Nonnull Inte 422 Invalid request parameters - */ - public okhttp3.Call updateCollectionTagsCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionTagsCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -984,6 +1033,10 @@ public okhttp3.Call updateCollectionTagsCall(@javax.annotation.Nonnull Integer c Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1005,7 +1058,7 @@ public okhttp3.Call updateCollectionTagsCall(@javax.annotation.Nonnull Integer c } @SuppressWarnings("rawtypes") - private okhttp3.Call updateCollectionTagsValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateCollectionTagsValidateBeforeCall(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new ApiException("Missing the required parameter 'collectionId' when calling updateCollectionTags(Async)"); @@ -1016,7 +1069,7 @@ private okhttp3.Call updateCollectionTagsValidateBeforeCall(@javax.annotation.No throw new ApiException("Missing the required parameter 'collectionTagsUpdateRequest' when calling updateCollectionTags(Async)"); } - return updateCollectionTagsCall(collectionId, collectionTagsUpdateRequest, _callback); + return updateCollectionTagsCall(collectionId, collectionTagsUpdateRequest, apiKey, _callback); } @@ -1025,6 +1078,7 @@ private okhttp3.Call updateCollectionTagsValidateBeforeCall(@javax.annotation.No * Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. * @param collectionId (required) * @param collectionTagsUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseCollectionTagsUpdateResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1035,8 +1089,8 @@ private okhttp3.Call updateCollectionTagsValidateBeforeCall(@javax.annotation.No 422 Invalid request parameters - */ - public BaseResponseCollectionTagsUpdateResponse updateCollectionTags(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateCollectionTagsWithHttpInfo(collectionId, collectionTagsUpdateRequest); + public BaseResponseCollectionTagsUpdateResponse updateCollectionTags(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateCollectionTagsWithHttpInfo(collectionId, collectionTagsUpdateRequest, apiKey); return localVarResp.getData(); } @@ -1045,6 +1099,7 @@ public BaseResponseCollectionTagsUpdateResponse updateCollectionTags(@javax.anno * Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. * @param collectionId (required) * @param collectionTagsUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCollectionTagsUpdateResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1055,8 +1110,8 @@ public BaseResponseCollectionTagsUpdateResponse updateCollectionTags(@javax.anno 422 Invalid request parameters - */ - public ApiResponse updateCollectionTagsWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateCollectionTagsValidateBeforeCall(collectionId, collectionTagsUpdateRequest, null); + public ApiResponse updateCollectionTagsWithHttpInfo(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateCollectionTagsValidateBeforeCall(collectionId, collectionTagsUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1066,6 +1121,7 @@ public ApiResponse updateCollectionTag * Updates/changes a collection tags to whatever is provided in the request. After this update the collection will only contain the tags provided in the request. * @param collectionId (required) * @param collectionTagsUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1077,9 +1133,9 @@ public ApiResponse updateCollectionTag 422 Invalid request parameters - */ - public okhttp3.Call updateCollectionTagsAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateCollectionTagsAsync(@javax.annotation.Nonnull Integer collectionId, @javax.annotation.Nonnull CollectionTagsUpdateRequest collectionTagsUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateCollectionTagsValidateBeforeCall(collectionId, collectionTagsUpdateRequest, _callback); + okhttp3.Call localVarCall = updateCollectionTagsValidateBeforeCall(collectionId, collectionTagsUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/ExternalSourcesApi.java b/src/main/java/ai/reveng/api/ExternalSourcesApi.java index 390b4f1..3e79a5b 100644 --- a/src/main/java/ai/reveng/api/ExternalSourcesApi.java +++ b/src/main/java/ai/reveng/api/ExternalSourcesApi.java @@ -77,6 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for createExternalTaskMb * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -89,7 +90,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 409 Request already queued - */ - public okhttp3.Call createExternalTaskMbCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createExternalTaskMbCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -115,6 +116,10 @@ public okhttp3.Call createExternalTaskMbCall(@javax.annotation.Nonnull Integer a Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -135,13 +140,13 @@ public okhttp3.Call createExternalTaskMbCall(@javax.annotation.Nonnull Integer a } @SuppressWarnings("rawtypes") - private okhttp3.Call createExternalTaskMbValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createExternalTaskMbValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling createExternalTaskMb(Async)"); } - return createExternalTaskMbCall(analysisId, _callback); + return createExternalTaskMbCall(analysisId, apiKey, _callback); } @@ -149,6 +154,7 @@ private okhttp3.Call createExternalTaskMbValidateBeforeCall(@javax.annotation.No * Pulls data from VirusTotal * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseStr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -160,8 +166,8 @@ private okhttp3.Call createExternalTaskMbValidateBeforeCall(@javax.annotation.No 409 Request already queued - */ - public BaseResponseStr createExternalTaskMb(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = createExternalTaskMbWithHttpInfo(analysisId); + public BaseResponseStr createExternalTaskMb(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createExternalTaskMbWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -169,6 +175,7 @@ public BaseResponseStr createExternalTaskMb(@javax.annotation.Nonnull Integer an * Pulls data from VirusTotal * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseStr> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -180,8 +187,8 @@ public BaseResponseStr createExternalTaskMb(@javax.annotation.Nonnull Integer an 409 Request already queued - */ - public ApiResponse createExternalTaskMbWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = createExternalTaskMbValidateBeforeCall(analysisId, null); + public ApiResponse createExternalTaskMbWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createExternalTaskMbValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -190,6 +197,7 @@ public ApiResponse createExternalTaskMbWithHttpInfo(@javax.anno * Pulls data from VirusTotal (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -202,9 +210,9 @@ public ApiResponse createExternalTaskMbWithHttpInfo(@javax.anno 409 Request already queued - */ - public okhttp3.Call createExternalTaskMbAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createExternalTaskMbAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createExternalTaskMbValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = createExternalTaskMbValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -212,6 +220,7 @@ public okhttp3.Call createExternalTaskMbAsync(@javax.annotation.Nonnull Integer /** * Build call for createExternalTaskVt * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -224,7 +233,7 @@ public okhttp3.Call createExternalTaskMbAsync(@javax.annotation.Nonnull Integer 409 Request already queued - */ - public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -250,6 +259,10 @@ public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer a Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -270,13 +283,13 @@ public okhttp3.Call createExternalTaskVtCall(@javax.annotation.Nonnull Integer a } @SuppressWarnings("rawtypes") - private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling createExternalTaskVt(Async)"); } - return createExternalTaskVtCall(analysisId, _callback); + return createExternalTaskVtCall(analysisId, apiKey, _callback); } @@ -284,6 +297,7 @@ private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.No * Pulls data from VirusTotal * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseStr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -295,8 +309,8 @@ private okhttp3.Call createExternalTaskVtValidateBeforeCall(@javax.annotation.No 409 Request already queued - */ - public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = createExternalTaskVtWithHttpInfo(analysisId); + public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createExternalTaskVtWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -304,6 +318,7 @@ public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer an * Pulls data from VirusTotal * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseStr> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -315,8 +330,8 @@ public BaseResponseStr createExternalTaskVt(@javax.annotation.Nonnull Integer an 409 Request already queued - */ - public ApiResponse createExternalTaskVtWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = createExternalTaskVtValidateBeforeCall(analysisId, null); + public ApiResponse createExternalTaskVtWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createExternalTaskVtValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -325,6 +340,7 @@ public ApiResponse createExternalTaskVtWithHttpInfo(@javax.anno * Pulls data from VirusTotal (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -337,9 +353,9 @@ public ApiResponse createExternalTaskVtWithHttpInfo(@javax.anno 409 Request already queued - */ - public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createExternalTaskVtValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = createExternalTaskVtValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -347,6 +363,7 @@ public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer /** * Build call for getMbData * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -359,7 +376,7 @@ public okhttp3.Call createExternalTaskVtAsync(@javax.annotation.Nonnull Integer 404 No data retrieved from MalwareBazaar for the given analysis_id - */ - public okhttp3.Call getMbDataCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMbDataCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -385,6 +402,10 @@ public okhttp3.Call getMbDataCall(@javax.annotation.Nonnull Integer analysisId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -405,13 +426,13 @@ public okhttp3.Call getMbDataCall(@javax.annotation.Nonnull Integer analysisId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getMbDataValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMbDataValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getMbData(Async)"); } - return getMbDataCall(analysisId, _callback); + return getMbDataCall(analysisId, apiKey, _callback); } @@ -419,6 +440,7 @@ private okhttp3.Call getMbDataValidateBeforeCall(@javax.annotation.Nonnull Integ * Get MalwareBazaar data * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseExternalResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -430,8 +452,8 @@ private okhttp3.Call getMbDataValidateBeforeCall(@javax.annotation.Nonnull Integ 404 No data retrieved from MalwareBazaar for the given analysis_id - */ - public BaseResponseExternalResponse getMbData(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getMbDataWithHttpInfo(analysisId); + public BaseResponseExternalResponse getMbData(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getMbDataWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -439,6 +461,7 @@ public BaseResponseExternalResponse getMbData(@javax.annotation.Nonnull Integer * Get MalwareBazaar data * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseExternalResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -450,8 +473,8 @@ public BaseResponseExternalResponse getMbData(@javax.annotation.Nonnull Integer 404 No data retrieved from MalwareBazaar for the given analysis_id - */ - public ApiResponse getMbDataWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getMbDataValidateBeforeCall(analysisId, null); + public ApiResponse getMbDataWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getMbDataValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -460,6 +483,7 @@ public ApiResponse getMbDataWithHttpInfo(@javax.an * Get MalwareBazaar data (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -472,9 +496,9 @@ public ApiResponse getMbDataWithHttpInfo(@javax.an 404 No data retrieved from MalwareBazaar for the given analysis_id - */ - public okhttp3.Call getMbDataAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMbDataAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getMbDataValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getMbDataValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -482,6 +506,7 @@ public okhttp3.Call getMbDataAsync(@javax.annotation.Nonnull Integer analysisId, /** * Build call for getMbTaskStatus * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -493,7 +518,7 @@ public okhttp3.Call getMbDataAsync(@javax.annotation.Nonnull Integer analysisId, 422 Invalid request parameters - */ - public okhttp3.Call getMbTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMbTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -519,6 +544,10 @@ public okhttp3.Call getMbTaskStatusCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -539,13 +568,13 @@ public okhttp3.Call getMbTaskStatusCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call getMbTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getMbTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getMbTaskStatus(Async)"); } - return getMbTaskStatusCall(analysisId, _callback); + return getMbTaskStatusCall(analysisId, apiKey, _callback); } @@ -553,6 +582,7 @@ private okhttp3.Call getMbTaskStatusValidateBeforeCall(@javax.annotation.Nonnull * Check the status of MalwareBazaar data retrieval * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseTaskResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -563,8 +593,8 @@ private okhttp3.Call getMbTaskStatusValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseTaskResponse getMbTaskStatus(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getMbTaskStatusWithHttpInfo(analysisId); + public BaseResponseTaskResponse getMbTaskStatus(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getMbTaskStatusWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -572,6 +602,7 @@ public BaseResponseTaskResponse getMbTaskStatus(@javax.annotation.Nonnull Intege * Check the status of MalwareBazaar data retrieval * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseTaskResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -582,8 +613,8 @@ public BaseResponseTaskResponse getMbTaskStatus(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public ApiResponse getMbTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getMbTaskStatusValidateBeforeCall(analysisId, null); + public ApiResponse getMbTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getMbTaskStatusValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -592,6 +623,7 @@ public ApiResponse getMbTaskStatusWithHttpInfo(@javax. * Check the status of MalwareBazaar data retrieval (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -603,9 +635,9 @@ public ApiResponse getMbTaskStatusWithHttpInfo(@javax. 422 Invalid request parameters - */ - public okhttp3.Call getMbTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getMbTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getMbTaskStatusValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getMbTaskStatusValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -613,6 +645,7 @@ public okhttp3.Call getMbTaskStatusAsync(@javax.annotation.Nonnull Integer analy /** * Build call for getVtData * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -625,7 +658,7 @@ public okhttp3.Call getMbTaskStatusAsync(@javax.annotation.Nonnull Integer analy 404 No data retrieved from VirusTotal for the given analysis_id - */ - public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -651,6 +684,10 @@ public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -671,13 +708,13 @@ public okhttp3.Call getVtDataCall(@javax.annotation.Nonnull Integer analysisId, } @SuppressWarnings("rawtypes") - private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getVtData(Async)"); } - return getVtDataCall(analysisId, _callback); + return getVtDataCall(analysisId, apiKey, _callback); } @@ -685,6 +722,7 @@ private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integ * Get VirusTotal data * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseExternalResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -696,8 +734,8 @@ private okhttp3.Call getVtDataValidateBeforeCall(@javax.annotation.Nonnull Integ 404 No data retrieved from VirusTotal for the given analysis_id - */ - public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getVtDataWithHttpInfo(analysisId); + public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getVtDataWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -705,6 +743,7 @@ public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer * Get VirusTotal data * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseExternalResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -716,8 +755,8 @@ public BaseResponseExternalResponse getVtData(@javax.annotation.Nonnull Integer 404 No data retrieved from VirusTotal for the given analysis_id - */ - public ApiResponse getVtDataWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getVtDataValidateBeforeCall(analysisId, null); + public ApiResponse getVtDataWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getVtDataValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -726,6 +765,7 @@ public ApiResponse getVtDataWithHttpInfo(@javax.an * Get VirusTotal data (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -738,9 +778,9 @@ public ApiResponse getVtDataWithHttpInfo(@javax.an 404 No data retrieved from VirusTotal for the given analysis_id - */ - public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getVtDataValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getVtDataValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -748,6 +788,7 @@ public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, /** * Build call for getVtTaskStatus * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -759,7 +800,7 @@ public okhttp3.Call getVtDataAsync(@javax.annotation.Nonnull Integer analysisId, 422 Invalid request parameters - */ - public okhttp3.Call getVtTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVtTaskStatusCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -785,6 +826,10 @@ public okhttp3.Call getVtTaskStatusCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -805,13 +850,13 @@ public okhttp3.Call getVtTaskStatusCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call getVtTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getVtTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getVtTaskStatus(Async)"); } - return getVtTaskStatusCall(analysisId, _callback); + return getVtTaskStatusCall(analysisId, apiKey, _callback); } @@ -819,6 +864,7 @@ private okhttp3.Call getVtTaskStatusValidateBeforeCall(@javax.annotation.Nonnull * Check the status of VirusTotal data retrieval * * @param analysisId (required) + * @param apiKey (optional) * @return BaseResponseTaskResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -829,8 +875,8 @@ private okhttp3.Call getVtTaskStatusValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public BaseResponseTaskResponse getVtTaskStatus(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = getVtTaskStatusWithHttpInfo(analysisId); + public BaseResponseTaskResponse getVtTaskStatus(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getVtTaskStatusWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -838,6 +884,7 @@ public BaseResponseTaskResponse getVtTaskStatus(@javax.annotation.Nonnull Intege * Check the status of VirusTotal data retrieval * * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseTaskResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -848,8 +895,8 @@ public BaseResponseTaskResponse getVtTaskStatus(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public ApiResponse getVtTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = getVtTaskStatusValidateBeforeCall(analysisId, null); + public ApiResponse getVtTaskStatusWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getVtTaskStatusValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -858,6 +905,7 @@ public ApiResponse getVtTaskStatusWithHttpInfo(@javax. * Check the status of VirusTotal data retrieval (asynchronously) * * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -869,9 +917,9 @@ public ApiResponse getVtTaskStatusWithHttpInfo(@javax. 422 Invalid request parameters - */ - public okhttp3.Call getVtTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getVtTaskStatusAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getVtTaskStatusValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = getVtTaskStatusValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FirmwareApi.java b/src/main/java/ai/reveng/api/FirmwareApi.java index 75bf84d..16da5b8 100644 --- a/src/main/java/ai/reveng/api/FirmwareApi.java +++ b/src/main/java/ai/reveng/api/FirmwareApi.java @@ -75,6 +75,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getBinariesForFirmwareTask * @param taskId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -86,7 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call getBinariesForFirmwareTaskCall(@javax.annotation.Nonnull String taskId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinariesForFirmwareTaskCall(@javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -112,6 +113,10 @@ public okhttp3.Call getBinariesForFirmwareTaskCall(@javax.annotation.Nonnull Str Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -132,13 +137,13 @@ public okhttp3.Call getBinariesForFirmwareTaskCall(@javax.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call getBinariesForFirmwareTaskValidateBeforeCall(@javax.annotation.Nonnull String taskId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getBinariesForFirmwareTaskValidateBeforeCall(@javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'taskId' is set if (taskId == null) { throw new ApiException("Missing the required parameter 'taskId' when calling getBinariesForFirmwareTask(Async)"); } - return getBinariesForFirmwareTaskCall(taskId, _callback); + return getBinariesForFirmwareTaskCall(taskId, apiKey, _callback); } @@ -146,6 +151,7 @@ private okhttp3.Call getBinariesForFirmwareTaskValidateBeforeCall(@javax.annotat * Upload firmware for unpacking * Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. * @param taskId (required) + * @param apiKey (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -156,8 +162,8 @@ private okhttp3.Call getBinariesForFirmwareTaskValidateBeforeCall(@javax.annotat 422 Invalid request parameters - */ - public Object getBinariesForFirmwareTask(@javax.annotation.Nonnull String taskId) throws ApiException { - ApiResponse localVarResp = getBinariesForFirmwareTaskWithHttpInfo(taskId); + public Object getBinariesForFirmwareTask(@javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getBinariesForFirmwareTaskWithHttpInfo(taskId, apiKey); return localVarResp.getData(); } @@ -165,6 +171,7 @@ public Object getBinariesForFirmwareTask(@javax.annotation.Nonnull String taskId * Upload firmware for unpacking * Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. * @param taskId (required) + * @param apiKey (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -175,8 +182,8 @@ public Object getBinariesForFirmwareTask(@javax.annotation.Nonnull String taskId 422 Invalid request parameters - */ - public ApiResponse getBinariesForFirmwareTaskWithHttpInfo(@javax.annotation.Nonnull String taskId) throws ApiException { - okhttp3.Call localVarCall = getBinariesForFirmwareTaskValidateBeforeCall(taskId, null); + public ApiResponse getBinariesForFirmwareTaskWithHttpInfo(@javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getBinariesForFirmwareTaskValidateBeforeCall(taskId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -185,6 +192,7 @@ public ApiResponse getBinariesForFirmwareTaskWithHttpInfo(@javax.annotat * Upload firmware for unpacking (asynchronously) * Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. * @param taskId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -196,9 +204,9 @@ public ApiResponse getBinariesForFirmwareTaskWithHttpInfo(@javax.annotat 422 Invalid request parameters - */ - public okhttp3.Call getBinariesForFirmwareTaskAsync(@javax.annotation.Nonnull String taskId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getBinariesForFirmwareTaskAsync(@javax.annotation.Nonnull String taskId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getBinariesForFirmwareTaskValidateBeforeCall(taskId, _callback); + okhttp3.Call localVarCall = getBinariesForFirmwareTaskValidateBeforeCall(taskId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -206,6 +214,7 @@ public okhttp3.Call getBinariesForFirmwareTaskAsync(@javax.annotation.Nonnull St /** * Build call for uploadFirmware * @param _file (required) + * @param apiKey (optional) * @param password (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -218,7 +227,7 @@ public okhttp3.Call getBinariesForFirmwareTaskAsync(@javax.annotation.Nonnull St 422 Invalid request parameters - */ - public okhttp3.Call uploadFirmwareCall(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFirmwareCall(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -251,6 +260,10 @@ public okhttp3.Call uploadFirmwareCall(@javax.annotation.Nonnull File _file, @ja localVarFormParams.put("password", password); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -272,13 +285,13 @@ public okhttp3.Call uploadFirmwareCall(@javax.annotation.Nonnull File _file, @ja } @SuppressWarnings("rawtypes") - private okhttp3.Call uploadFirmwareValidateBeforeCall(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { + private okhttp3.Call uploadFirmwareValidateBeforeCall(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling uploadFirmware(Async)"); } - return uploadFirmwareCall(_file, password, _callback); + return uploadFirmwareCall(_file, apiKey, password, _callback); } @@ -286,6 +299,7 @@ private okhttp3.Call uploadFirmwareValidateBeforeCall(@javax.annotation.Nonnull * Upload firmware for unpacking * Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. * @param _file (required) + * @param apiKey (optional) * @param password (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -297,8 +311,8 @@ private okhttp3.Call uploadFirmwareValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public Object uploadFirmware(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String password) throws ApiException { - ApiResponse localVarResp = uploadFirmwareWithHttpInfo(_file, password); + public Object uploadFirmware(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable String password) throws ApiException { + ApiResponse localVarResp = uploadFirmwareWithHttpInfo(_file, apiKey, password); return localVarResp.getData(); } @@ -306,6 +320,7 @@ public Object uploadFirmware(@javax.annotation.Nonnull File _file, @javax.annota * Upload firmware for unpacking * Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. * @param _file (required) + * @param apiKey (optional) * @param password (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -317,8 +332,8 @@ public Object uploadFirmware(@javax.annotation.Nonnull File _file, @javax.annota 422 Invalid request parameters - */ - public ApiResponse uploadFirmwareWithHttpInfo(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String password) throws ApiException { - okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, password, null); + public ApiResponse uploadFirmwareWithHttpInfo(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable String password) throws ApiException { + okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, apiKey, password, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -327,6 +342,7 @@ public ApiResponse uploadFirmwareWithHttpInfo(@javax.annotation.Nonnull * Upload firmware for unpacking (asynchronously) * Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response. * @param _file (required) + * @param apiKey (optional) * @param password (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -339,9 +355,9 @@ public ApiResponse uploadFirmwareWithHttpInfo(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call uploadFirmwareAsync(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { + public okhttp3.Call uploadFirmwareAsync(@javax.annotation.Nonnull File _file, @javax.annotation.Nullable String apiKey, @javax.annotation.Nullable String password, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, password, _callback); + okhttp3.Call localVarCall = uploadFirmwareValidateBeforeCall(_file, apiKey, password, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java index 83c822d..1f4fa3b 100644 --- a/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsAiDecompilationApi.java @@ -84,6 +84,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for createAiDecompilationComment * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -96,7 +97,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 400 Bad Request - */ - public okhttp3.Call createAiDecompilationCommentCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAiDecompilationCommentCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -122,6 +123,10 @@ public okhttp3.Call createAiDecompilationCommentCall(@javax.annotation.Nonnull I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -143,7 +148,7 @@ public okhttp3.Call createAiDecompilationCommentCall(@javax.annotation.Nonnull I } @SuppressWarnings("rawtypes") - private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling createAiDecompilationComment(Async)"); @@ -154,7 +159,7 @@ private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annot throw new ApiException("Missing the required parameter 'functionCommentCreateRequest' when calling createAiDecompilationComment(Async)"); } - return createAiDecompilationCommentCall(functionId, functionCommentCreateRequest, _callback); + return createAiDecompilationCommentCall(functionId, functionCommentCreateRequest, apiKey, _callback); } @@ -163,6 +168,7 @@ private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annot * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @return BaseResponseCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -174,8 +180,8 @@ private okhttp3.Call createAiDecompilationCommentValidateBeforeCall(@javax.annot 400 Bad Request - */ - public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException { - ApiResponse localVarResp = createAiDecompilationCommentWithHttpInfo(functionId, functionCommentCreateRequest); + public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createAiDecompilationCommentWithHttpInfo(functionId, functionCommentCreateRequest, apiKey); return localVarResp.getData(); } @@ -184,6 +190,7 @@ public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotatio * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -195,8 +202,8 @@ public BaseResponseCommentResponse createAiDecompilationComment(@javax.annotatio 400 Bad Request - */ - public ApiResponse createAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException { - okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, null); + public ApiResponse createAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -206,6 +213,7 @@ public ApiResponse createAiDecompilationCommentWith * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -218,9 +226,9 @@ public ApiResponse createAiDecompilationCommentWith 400 Bad Request - */ - public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, _callback); + okhttp3.Call localVarCall = createAiDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -228,6 +236,7 @@ public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull /** * Build call for createAiDecompilationTask * @param functionId The ID of the function for which we are creating the decompilation task (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -243,7 +252,7 @@ public okhttp3.Call createAiDecompilationCommentAsync(@javax.annotation.Nonnull 400 Bad Request - */ - public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -269,6 +278,10 @@ public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -289,13 +302,13 @@ public okhttp3.Call createAiDecompilationTaskCall(@javax.annotation.Nonnull Long } @SuppressWarnings("rawtypes") - private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling createAiDecompilationTask(Async)"); } - return createAiDecompilationTaskCall(functionId, _callback); + return createAiDecompilationTaskCall(functionId, apiKey, _callback); } @@ -303,6 +316,7 @@ private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotati * Begins AI Decompilation Process * Begins the AI Decompilation Process * @param functionId The ID of the function for which we are creating the decompilation task (required) + * @param apiKey (optional) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,8 +331,8 @@ private okhttp3.Call createAiDecompilationTaskValidateBeforeCall(@javax.annotati 400 Bad Request - */ - public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long functionId) throws ApiException { - ApiResponse localVarResp = createAiDecompilationTaskWithHttpInfo(functionId); + public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createAiDecompilationTaskWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -326,6 +340,7 @@ public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long fun * Begins AI Decompilation Process * Begins the AI Decompilation Process * @param functionId The ID of the function for which we are creating the decompilation task (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -340,8 +355,8 @@ public BaseResponse createAiDecompilationTask(@javax.annotation.Nonnull Long fun 400 Bad Request - */ - public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { - okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, null); + public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -350,6 +365,7 @@ public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.an * Begins AI Decompilation Process (asynchronously) * Begins the AI Decompilation Process * @param functionId The ID of the function for which we are creating the decompilation task (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -365,9 +381,9 @@ public ApiResponse createAiDecompilationTaskWithHttpInfo(@javax.an 400 Bad Request - */ - public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = createAiDecompilationTaskValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -376,6 +392,7 @@ public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Lon * Build call for deleteAiDecompilationComment * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -389,7 +406,7 @@ public okhttp3.Call createAiDecompilationTaskAsync(@javax.annotation.Nonnull Lon 400 Bad Request - */ - public okhttp3.Call deleteAiDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAiDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -416,6 +433,10 @@ public okhttp3.Call deleteAiDecompilationCommentCall(@javax.annotation.Nonnull I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -436,7 +457,7 @@ public okhttp3.Call deleteAiDecompilationCommentCall(@javax.annotation.Nonnull I } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling deleteAiDecompilationComment(Async)"); @@ -447,7 +468,7 @@ private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annot throw new ApiException("Missing the required parameter 'functionId' when calling deleteAiDecompilationComment(Async)"); } - return deleteAiDecompilationCommentCall(commentId, functionId, _callback); + return deleteAiDecompilationCommentCall(commentId, functionId, apiKey, _callback); } @@ -456,6 +477,7 @@ private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annot * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseBool * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -468,8 +490,8 @@ private okhttp3.Call deleteAiDecompilationCommentValidateBeforeCall(@javax.annot 400 Bad Request - */ - public BaseResponseBool deleteAiDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = deleteAiDecompilationCommentWithHttpInfo(commentId, functionId); + public BaseResponseBool deleteAiDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = deleteAiDecompilationCommentWithHttpInfo(commentId, functionId, apiKey); return localVarResp.getData(); } @@ -478,6 +500,7 @@ public BaseResponseBool deleteAiDecompilationComment(@javax.annotation.Nonnull I * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBool> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -490,8 +513,8 @@ public BaseResponseBool deleteAiDecompilationComment(@javax.annotation.Nonnull I 400 Bad Request - */ - public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, null); + public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -501,6 +524,7 @@ public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@j * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -514,9 +538,9 @@ public ApiResponse deleteAiDecompilationCommentWithHttpInfo(@j 400 Bad Request - */ - public okhttp3.Call deleteAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, _callback); + okhttp3.Call localVarCall = deleteAiDecompilationCommentValidateBeforeCall(commentId, functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -524,6 +548,7 @@ public okhttp3.Call deleteAiDecompilationCommentAsync(@javax.annotation.Nonnull /** * Build call for getAiDecompilationComments * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -535,7 +560,7 @@ public okhttp3.Call deleteAiDecompilationCommentAsync(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationCommentsCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationCommentsCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -561,6 +586,10 @@ public okhttp3.Call getAiDecompilationCommentsCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -581,13 +610,13 @@ public okhttp3.Call getAiDecompilationCommentsCall(@javax.annotation.Nonnull Int } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationCommentsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationCommentsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationComments(Async)"); } - return getAiDecompilationCommentsCall(functionId, _callback); + return getAiDecompilationCommentsCall(functionId, apiKey, _callback); } @@ -595,6 +624,7 @@ private okhttp3.Call getAiDecompilationCommentsValidateBeforeCall(@javax.annotat * Get comments for this function * Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to. * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseListCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -605,8 +635,8 @@ private okhttp3.Call getAiDecompilationCommentsValidateBeforeCall(@javax.annotat 422 Invalid request parameters - */ - public BaseResponseListCommentResponse getAiDecompilationComments(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getAiDecompilationCommentsWithHttpInfo(functionId); + public BaseResponseListCommentResponse getAiDecompilationComments(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAiDecompilationCommentsWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -614,6 +644,7 @@ public BaseResponseListCommentResponse getAiDecompilationComments(@javax.annotat * Get comments for this function * Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to. * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -624,8 +655,8 @@ public BaseResponseListCommentResponse getAiDecompilationComments(@javax.annotat 422 Invalid request parameters - */ - public ApiResponse getAiDecompilationCommentsWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, null); + public ApiResponse getAiDecompilationCommentsWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -634,6 +665,7 @@ public ApiResponse getAiDecompilationCommentsWi * Get comments for this function (asynchronously) * Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to. * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -645,9 +677,9 @@ public ApiResponse getAiDecompilationCommentsWi 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationCommentsAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationCommentsAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getAiDecompilationCommentsValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -655,6 +687,7 @@ public okhttp3.Call getAiDecompilationCommentsAsync(@javax.annotation.Nonnull In /** * Build call for getAiDecompilationRating * @param functionId The ID of the function for which to get the rating (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -666,7 +699,7 @@ public okhttp3.Call getAiDecompilationCommentsAsync(@javax.annotation.Nonnull In 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -692,6 +725,10 @@ public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -712,13 +749,13 @@ public okhttp3.Call getAiDecompilationRatingCall(@javax.annotation.Nonnull Long } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationRating(Async)"); } - return getAiDecompilationRatingCall(functionId, _callback); + return getAiDecompilationRatingCall(functionId, apiKey, _callback); } @@ -726,6 +763,7 @@ private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotatio * Get rating for AI decompilation * * @param functionId The ID of the function for which to get the rating (required) + * @param apiKey (optional) * @return BaseResponseGetAiDecompilationRatingResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -736,8 +774,8 @@ private okhttp3.Call getAiDecompilationRatingValidateBeforeCall(@javax.annotatio 422 Invalid request parameters - */ - public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@javax.annotation.Nonnull Long functionId) throws ApiException { - ApiResponse localVarResp = getAiDecompilationRatingWithHttpInfo(functionId); + public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAiDecompilationRatingWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -745,6 +783,7 @@ public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@ja * Get rating for AI decompilation * * @param functionId The ID of the function for which to get the rating (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseGetAiDecompilationRatingResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -755,8 +794,8 @@ public BaseResponseGetAiDecompilationRatingResponse getAiDecompilationRating(@ja 422 Invalid request parameters - */ - public ApiResponse getAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, null); + public ApiResponse getAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -765,6 +804,7 @@ public ApiResponse getAiDecompilat * Get rating for AI decompilation (asynchronously) * * @param functionId The ID of the function for which to get the rating (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -776,9 +816,9 @@ public ApiResponse getAiDecompilat 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getAiDecompilationRatingValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -788,6 +828,7 @@ public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -800,7 +841,7 @@ public okhttp3.Call getAiDecompilationRatingAsync(@javax.annotation.Nonnull Long 403 Forbidden - */ - public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -834,6 +875,10 @@ public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull L localVarQueryParams.addAll(localVarApiClient.parameterToPair("generate_inline_comments", generateInlineComments)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -854,13 +899,13 @@ public okhttp3.Call getAiDecompilationTaskResultCall(@javax.annotation.Nonnull L } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationTaskResult(Async)"); } - return getAiDecompilationTaskResultCall(functionId, summarise, generateInlineComments, _callback); + return getAiDecompilationTaskResultCall(functionId, summarise, generateInlineComments, apiKey, _callback); } @@ -870,6 +915,7 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) + * @param apiKey (optional) * @return BaseResponseGetAiDecompilationTask * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -881,8 +927,8 @@ private okhttp3.Call getAiDecompilationTaskResultValidateBeforeCall(@javax.annot 403 Forbidden - */ - public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException { - ApiResponse localVarResp = getAiDecompilationTaskResultWithHttpInfo(functionId, summarise, generateInlineComments); + public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAiDecompilationTaskResultWithHttpInfo(functionId, summarise, generateInlineComments, apiKey); return localVarResp.getData(); } @@ -892,6 +938,7 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) + * @param apiKey (optional) * @return ApiResponse<BaseResponseGetAiDecompilationTask> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -903,8 +950,8 @@ public BaseResponseGetAiDecompilationTask getAiDecompilationTaskResult(@javax.an 403 Forbidden - */ - public ApiResponse getAiDecompilationTaskResultWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, null); + public ApiResponse getAiDecompilationTaskResultWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -915,6 +962,7 @@ public ApiResponse getAiDecompilationTaskRes * @param functionId The ID of the function being decompiled (required) * @param summarise Generate a summary for the decompilation (optional, default to true) * @param generateInlineComments Generate inline comments for the decompilation (only works if summarise is enabled) (optional, default to true) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -927,9 +975,9 @@ public ApiResponse getAiDecompilationTaskRes 403 Forbidden - */ - public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable Boolean summarise, @javax.annotation.Nullable Boolean generateInlineComments, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, _callback); + okhttp3.Call localVarCall = getAiDecompilationTaskResultValidateBeforeCall(functionId, summarise, generateInlineComments, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -937,6 +985,7 @@ public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull /** * Build call for getAiDecompilationTaskStatus * @param functionId The ID of the function being checked (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -948,7 +997,7 @@ public okhttp3.Call getAiDecompilationTaskResultAsync(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -974,6 +1023,10 @@ public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull L Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -994,13 +1047,13 @@ public okhttp3.Call getAiDecompilationTaskStatusCall(@javax.annotation.Nonnull L } @SuppressWarnings("rawtypes") - private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getAiDecompilationTaskStatus(Async)"); } - return getAiDecompilationTaskStatusCall(functionId, _callback); + return getAiDecompilationTaskStatusCall(functionId, apiKey, _callback); } @@ -1008,6 +1061,7 @@ private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annot * Check the status of a function ai decompilation * * @param functionId The ID of the function being checked (required) + * @param apiKey (optional) * @return BaseResponseFunctionTaskResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1018,8 +1072,8 @@ private okhttp3.Call getAiDecompilationTaskStatusValidateBeforeCall(@javax.annot 422 Invalid request parameters - */ - public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.annotation.Nonnull Long functionId) throws ApiException { - ApiResponse localVarResp = getAiDecompilationTaskStatusWithHttpInfo(functionId); + public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAiDecompilationTaskStatusWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -1027,6 +1081,7 @@ public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.anno * Check the status of a function ai decompilation * * @param functionId The ID of the function being checked (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionTaskResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1037,8 +1092,8 @@ public BaseResponseFunctionTaskResponse getAiDecompilationTaskStatus(@javax.anno 422 Invalid request parameters - */ - public ApiResponse getAiDecompilationTaskStatusWithHttpInfo(@javax.annotation.Nonnull Long functionId) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, null); + public ApiResponse getAiDecompilationTaskStatusWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1047,6 +1102,7 @@ public ApiResponse getAiDecompilationTaskStatu * Check the status of a function ai decompilation (asynchronously) * * @param functionId The ID of the function being checked (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1058,9 +1114,9 @@ public ApiResponse getAiDecompilationTaskStatu 422 Invalid request parameters - */ - public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull Long functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getAiDecompilationTaskStatusValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1070,6 +1126,7 @@ public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1083,7 +1140,7 @@ public okhttp3.Call getAiDecompilationTaskStatusAsync(@javax.annotation.Nonnull 400 Bad Request - */ - public okhttp3.Call updateAiDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAiDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1110,6 +1167,10 @@ public okhttp3.Call updateAiDecompilationCommentCall(@javax.annotation.Nonnull I Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1131,7 +1192,7 @@ public okhttp3.Call updateAiDecompilationCommentCall(@javax.annotation.Nonnull I } @SuppressWarnings("rawtypes") - private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling updateAiDecompilationComment(Async)"); @@ -1147,7 +1208,7 @@ private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annot throw new ApiException("Missing the required parameter 'commentUpdateRequest' when calling updateAiDecompilationComment(Async)"); } - return updateAiDecompilationCommentCall(commentId, functionId, commentUpdateRequest, _callback); + return updateAiDecompilationCommentCall(commentId, functionId, commentUpdateRequest, apiKey, _callback); } @@ -1157,6 +1218,7 @@ private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annot * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1169,8 +1231,8 @@ private okhttp3.Call updateAiDecompilationCommentValidateBeforeCall(@javax.annot 400 Bad Request - */ - public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateAiDecompilationCommentWithHttpInfo(commentId, functionId, commentUpdateRequest); + public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateAiDecompilationCommentWithHttpInfo(commentId, functionId, commentUpdateRequest, apiKey); return localVarResp.getData(); } @@ -1180,6 +1242,7 @@ public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotatio * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1192,8 +1255,8 @@ public BaseResponseCommentResponse updateAiDecompilationComment(@javax.annotatio 400 Bad Request - */ - public ApiResponse updateAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, null); + public ApiResponse updateAiDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1204,6 +1267,7 @@ public ApiResponse updateAiDecompilationCommentWith * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1217,9 +1281,9 @@ public ApiResponse updateAiDecompilationCommentWith 400 Bad Request - */ - public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, _callback); + okhttp3.Call localVarCall = updateAiDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1228,6 +1292,7 @@ public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull * Build call for upsertAiDecompilationRating * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1239,7 +1304,7 @@ public okhttp3.Call updateAiDecompilationCommentAsync(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1265,6 +1330,10 @@ public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Lo Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1286,7 +1355,7 @@ public okhttp3.Call upsertAiDecompilationRatingCall(@javax.annotation.Nonnull Lo } @SuppressWarnings("rawtypes") - private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling upsertAiDecompilationRating(Async)"); @@ -1297,7 +1366,7 @@ private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annota throw new ApiException("Missing the required parameter 'upsertAiDecomplationRatingRequest' when calling upsertAiDecompilationRating(Async)"); } - return upsertAiDecompilationRatingCall(functionId, upsertAiDecomplationRatingRequest, _callback); + return upsertAiDecompilationRatingCall(functionId, upsertAiDecomplationRatingRequest, apiKey, _callback); } @@ -1306,6 +1375,7 @@ private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annota * * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) + * @param apiKey (optional) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1316,8 +1386,8 @@ private okhttp3.Call upsertAiDecompilationRatingValidateBeforeCall(@javax.annota 422 Invalid request parameters - */ - public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { - ApiResponse localVarResp = upsertAiDecompilationRatingWithHttpInfo(functionId, upsertAiDecomplationRatingRequest); + public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = upsertAiDecompilationRatingWithHttpInfo(functionId, upsertAiDecomplationRatingRequest, apiKey); return localVarResp.getData(); } @@ -1326,6 +1396,7 @@ public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long f * * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1336,8 +1407,8 @@ public BaseResponse upsertAiDecompilationRating(@javax.annotation.Nonnull Long f 422 Invalid request parameters - */ - public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest) throws ApiException { - okhttp3.Call localVarCall = upsertAiDecompilationRatingValidateBeforeCall(functionId, upsertAiDecomplationRatingRequest, null); + public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = upsertAiDecompilationRatingValidateBeforeCall(functionId, upsertAiDecomplationRatingRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1347,6 +1418,7 @@ public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax. * * @param functionId The ID of the function being rated (required) * @param upsertAiDecomplationRatingRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1358,9 +1430,9 @@ public ApiResponse upsertAiDecompilationRatingWithHttpInfo(@javax. 422 Invalid request parameters - */ - public okhttp3.Call upsertAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call upsertAiDecompilationRatingAsync(@javax.annotation.Nonnull Long functionId, @javax.annotation.Nonnull UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = upsertAiDecompilationRatingValidateBeforeCall(functionId, upsertAiDecomplationRatingRequest, _callback); + okhttp3.Call localVarCall = upsertAiDecompilationRatingValidateBeforeCall(functionId, upsertAiDecomplationRatingRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FunctionsBlockCommentsApi.java b/src/main/java/ai/reveng/api/FunctionsBlockCommentsApi.java index ae1b879..14d7250 100644 --- a/src/main/java/ai/reveng/api/FunctionsBlockCommentsApi.java +++ b/src/main/java/ai/reveng/api/FunctionsBlockCommentsApi.java @@ -78,6 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for generateBlockCommentsForBlockInFunction * @param functionId (required) * @param block (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -89,7 +90,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call generateBlockCommentsForBlockInFunctionCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateBlockCommentsForBlockInFunctionCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -115,6 +116,10 @@ public okhttp3.Call generateBlockCommentsForBlockInFunctionCall(@javax.annotatio Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -136,7 +141,7 @@ public okhttp3.Call generateBlockCommentsForBlockInFunctionCall(@javax.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call generateBlockCommentsForBlockInFunctionValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateBlockCommentsForBlockInFunctionValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling generateBlockCommentsForBlockInFunction(Async)"); @@ -147,7 +152,7 @@ private okhttp3.Call generateBlockCommentsForBlockInFunctionValidateBeforeCall(@ throw new ApiException("Missing the required parameter 'block' when calling generateBlockCommentsForBlockInFunction(Async)"); } - return generateBlockCommentsForBlockInFunctionCall(functionId, block, _callback); + return generateBlockCommentsForBlockInFunctionCall(functionId, block, apiKey, _callback); } @@ -156,6 +161,7 @@ private okhttp3.Call generateBlockCommentsForBlockInFunctionValidateBeforeCall(@ * * @param functionId (required) * @param block (required) + * @param apiKey (optional) * @return BaseResponseBlockCommentsGenerationForFunctionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -166,8 +172,8 @@ private okhttp3.Call generateBlockCommentsForBlockInFunctionValidateBeforeCall(@ 422 Invalid request parameters - */ - public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForBlockInFunction(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block) throws ApiException { - ApiResponse localVarResp = generateBlockCommentsForBlockInFunctionWithHttpInfo(functionId, block); + public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForBlockInFunction(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = generateBlockCommentsForBlockInFunctionWithHttpInfo(functionId, block, apiKey); return localVarResp.getData(); } @@ -176,6 +182,7 @@ public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockComme * * @param functionId (required) * @param block (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBlockCommentsGenerationForFunctionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -186,8 +193,8 @@ public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockComme 422 Invalid request parameters - */ - public ApiResponse generateBlockCommentsForBlockInFunctionWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block) throws ApiException { - okhttp3.Call localVarCall = generateBlockCommentsForBlockInFunctionValidateBeforeCall(functionId, block, null); + public ApiResponse generateBlockCommentsForBlockInFunctionWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = generateBlockCommentsForBlockInFunctionValidateBeforeCall(functionId, block, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -197,6 +204,7 @@ public ApiResponse gener * * @param functionId (required) * @param block (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -208,9 +216,9 @@ public ApiResponse gener 422 Invalid request parameters - */ - public okhttp3.Call generateBlockCommentsForBlockInFunctionAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateBlockCommentsForBlockInFunctionAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Block block, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateBlockCommentsForBlockInFunctionValidateBeforeCall(functionId, block, _callback); + okhttp3.Call localVarCall = generateBlockCommentsForBlockInFunctionValidateBeforeCall(functionId, block, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -218,6 +226,7 @@ public okhttp3.Call generateBlockCommentsForBlockInFunctionAsync(@javax.annotati /** * Build call for generateBlockCommentsForFunction * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -229,7 +238,7 @@ public okhttp3.Call generateBlockCommentsForBlockInFunctionAsync(@javax.annotati 422 Invalid request parameters - */ - public okhttp3.Call generateBlockCommentsForFunctionCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateBlockCommentsForFunctionCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -255,6 +264,10 @@ public okhttp3.Call generateBlockCommentsForFunctionCall(@javax.annotation.Nonnu Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -275,13 +288,13 @@ public okhttp3.Call generateBlockCommentsForFunctionCall(@javax.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call generateBlockCommentsForFunctionValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateBlockCommentsForFunctionValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling generateBlockCommentsForFunction(Async)"); } - return generateBlockCommentsForFunctionCall(functionId, _callback); + return generateBlockCommentsForFunctionCall(functionId, apiKey, _callback); } @@ -289,6 +302,7 @@ private okhttp3.Call generateBlockCommentsForFunctionValidateBeforeCall(@javax.a * Generate block comments for a function * * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseBlockCommentsGenerationForFunctionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -299,8 +313,8 @@ private okhttp3.Call generateBlockCommentsForFunctionValidateBeforeCall(@javax.a 422 Invalid request parameters - */ - public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForFunction(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = generateBlockCommentsForFunctionWithHttpInfo(functionId); + public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockCommentsForFunction(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = generateBlockCommentsForFunctionWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -308,6 +322,7 @@ public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockComme * Generate block comments for a function * * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBlockCommentsGenerationForFunctionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -318,8 +333,8 @@ public BaseResponseBlockCommentsGenerationForFunctionResponse generateBlockComme 422 Invalid request parameters - */ - public ApiResponse generateBlockCommentsForFunctionWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = generateBlockCommentsForFunctionValidateBeforeCall(functionId, null); + public ApiResponse generateBlockCommentsForFunctionWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = generateBlockCommentsForFunctionValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -328,6 +343,7 @@ public ApiResponse gener * Generate block comments for a function (asynchronously) * * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -339,9 +355,9 @@ public ApiResponse gener 422 Invalid request parameters - */ - public okhttp3.Call generateBlockCommentsForFunctionAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateBlockCommentsForFunctionAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateBlockCommentsForFunctionValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = generateBlockCommentsForFunctionValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -349,6 +365,7 @@ public okhttp3.Call generateBlockCommentsForFunctionAsync(@javax.annotation.Nonn /** * Build call for generateOverviewCommentForFunction * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -360,7 +377,7 @@ public okhttp3.Call generateBlockCommentsForFunctionAsync(@javax.annotation.Nonn 422 Invalid request parameters - */ - public okhttp3.Call generateOverviewCommentForFunctionCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateOverviewCommentForFunctionCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -386,6 +403,10 @@ public okhttp3.Call generateOverviewCommentForFunctionCall(@javax.annotation.Non Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -406,13 +427,13 @@ public okhttp3.Call generateOverviewCommentForFunctionCall(@javax.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call generateOverviewCommentForFunctionValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateOverviewCommentForFunctionValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling generateOverviewCommentForFunction(Async)"); } - return generateOverviewCommentForFunctionCall(functionId, _callback); + return generateOverviewCommentForFunctionCall(functionId, apiKey, _callback); } @@ -420,6 +441,7 @@ private okhttp3.Call generateOverviewCommentForFunctionValidateBeforeCall(@javax * Generate overview comment for a function * * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseBlockCommentsOverviewGenerationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -430,8 +452,8 @@ private okhttp3.Call generateOverviewCommentForFunctionValidateBeforeCall(@javax 422 Invalid request parameters - */ - public BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewCommentForFunction(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = generateOverviewCommentForFunctionWithHttpInfo(functionId); + public BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewCommentForFunction(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = generateOverviewCommentForFunctionWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -439,6 +461,7 @@ public BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewComme * Generate overview comment for a function * * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBlockCommentsOverviewGenerationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -449,8 +472,8 @@ public BaseResponseBlockCommentsOverviewGenerationResponse generateOverviewComme 422 Invalid request parameters - */ - public ApiResponse generateOverviewCommentForFunctionWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = generateOverviewCommentForFunctionValidateBeforeCall(functionId, null); + public ApiResponse generateOverviewCommentForFunctionWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = generateOverviewCommentForFunctionValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -459,6 +482,7 @@ public ApiResponse generate * Generate overview comment for a function (asynchronously) * * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -470,9 +494,9 @@ public ApiResponse generate 422 Invalid request parameters - */ - public okhttp3.Call generateOverviewCommentForFunctionAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateOverviewCommentForFunctionAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateOverviewCommentForFunctionValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = generateOverviewCommentForFunctionValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FunctionsCoreApi.java b/src/main/java/ai/reveng/api/FunctionsCoreApi.java index 0ded6ec..079de6a 100644 --- a/src/main/java/ai/reveng/api/FunctionsCoreApi.java +++ b/src/main/java/ai/reveng/api/FunctionsCoreApi.java @@ -87,6 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for aiUnstrip * @param analysisId (required) * @param aiUnstripRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -98,7 +99,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call aiUnstripCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call aiUnstripCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -124,6 +125,10 @@ public okhttp3.Call aiUnstripCall(@javax.annotation.Nonnull Integer analysisId, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -145,7 +150,7 @@ public okhttp3.Call aiUnstripCall(@javax.annotation.Nonnull Integer analysisId, } @SuppressWarnings("rawtypes") - private okhttp3.Call aiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call aiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling aiUnstrip(Async)"); @@ -156,7 +161,7 @@ private okhttp3.Call aiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integ throw new ApiException("Missing the required parameter 'aiUnstripRequest' when calling aiUnstrip(Async)"); } - return aiUnstripCall(analysisId, aiUnstripRequest, _callback); + return aiUnstripCall(analysisId, aiUnstripRequest, apiKey, _callback); } @@ -165,6 +170,7 @@ private okhttp3.Call aiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integ * Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system * @param analysisId (required) * @param aiUnstripRequest (required) + * @param apiKey (optional) * @return AutoUnstripResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -175,8 +181,8 @@ private okhttp3.Call aiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integ 422 Invalid request parameters - */ - public AutoUnstripResponse aiUnstrip(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest) throws ApiException { - ApiResponse localVarResp = aiUnstripWithHttpInfo(analysisId, aiUnstripRequest); + public AutoUnstripResponse aiUnstrip(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = aiUnstripWithHttpInfo(analysisId, aiUnstripRequest, apiKey); return localVarResp.getData(); } @@ -185,6 +191,7 @@ public AutoUnstripResponse aiUnstrip(@javax.annotation.Nonnull Integer analysisI * Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system * @param analysisId (required) * @param aiUnstripRequest (required) + * @param apiKey (optional) * @return ApiResponse<AutoUnstripResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -195,8 +202,8 @@ public AutoUnstripResponse aiUnstrip(@javax.annotation.Nonnull Integer analysisI 422 Invalid request parameters - */ - public ApiResponse aiUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest) throws ApiException { - okhttp3.Call localVarCall = aiUnstripValidateBeforeCall(analysisId, aiUnstripRequest, null); + public ApiResponse aiUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = aiUnstripValidateBeforeCall(analysisId, aiUnstripRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -206,6 +213,7 @@ public ApiResponse aiUnstripWithHttpInfo(@javax.annotation. * Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function groups for each function that's within the system * @param analysisId (required) * @param aiUnstripRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -217,9 +225,9 @@ public ApiResponse aiUnstripWithHttpInfo(@javax.annotation. 422 Invalid request parameters - */ - public okhttp3.Call aiUnstripAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call aiUnstripAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AiUnstripRequest aiUnstripRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = aiUnstripValidateBeforeCall(analysisId, aiUnstripRequest, _callback); + okhttp3.Call localVarCall = aiUnstripValidateBeforeCall(analysisId, aiUnstripRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -228,6 +236,7 @@ public okhttp3.Call aiUnstripAsync(@javax.annotation.Nonnull Integer analysisId, * Build call for analysisFunctionMatching * @param analysisId (required) * @param analysisFunctionMatchingRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -239,7 +248,7 @@ public okhttp3.Call aiUnstripAsync(@javax.annotation.Nonnull Integer analysisId, 422 Invalid request parameters - */ - public okhttp3.Call analysisFunctionMatchingCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call analysisFunctionMatchingCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -265,6 +274,10 @@ public okhttp3.Call analysisFunctionMatchingCall(@javax.annotation.Nonnull Integ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -286,7 +299,7 @@ public okhttp3.Call analysisFunctionMatchingCall(@javax.annotation.Nonnull Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling analysisFunctionMatching(Async)"); @@ -297,7 +310,7 @@ private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotatio throw new ApiException("Missing the required parameter 'analysisFunctionMatchingRequest' when calling analysisFunctionMatching(Async)"); } - return analysisFunctionMatchingCall(analysisId, analysisFunctionMatchingRequest, _callback); + return analysisFunctionMatchingCall(analysisId, analysisFunctionMatchingRequest, apiKey, _callback); } @@ -306,6 +319,7 @@ private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotatio * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids * @param analysisId (required) * @param analysisFunctionMatchingRequest (required) + * @param apiKey (optional) * @return FunctionMatchingBatchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -316,8 +330,8 @@ private okhttp3.Call analysisFunctionMatchingValidateBeforeCall(@javax.annotatio 422 Invalid request parameters - */ - public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest) throws ApiException { - ApiResponse localVarResp = analysisFunctionMatchingWithHttpInfo(analysisId, analysisFunctionMatchingRequest); + public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = analysisFunctionMatchingWithHttpInfo(analysisId, analysisFunctionMatchingRequest, apiKey); return localVarResp.getData(); } @@ -326,6 +340,7 @@ public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation. * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids * @param analysisId (required) * @param analysisFunctionMatchingRequest (required) + * @param apiKey (optional) * @return ApiResponse<FunctionMatchingBatchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -336,8 +351,8 @@ public FunctionMatchingBatchResponse analysisFunctionMatching(@javax.annotation. 422 Invalid request parameters - */ - public ApiResponse analysisFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest) throws ApiException { - okhttp3.Call localVarCall = analysisFunctionMatchingValidateBeforeCall(analysisId, analysisFunctionMatchingRequest, null); + public ApiResponse analysisFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = analysisFunctionMatchingValidateBeforeCall(analysisId, analysisFunctionMatchingRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -347,6 +362,7 @@ public ApiResponse analysisFunctionMatchingWithHt * Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids * @param analysisId (required) * @param analysisFunctionMatchingRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -358,9 +374,9 @@ public ApiResponse analysisFunctionMatchingWithHt 422 Invalid request parameters - */ - public okhttp3.Call analysisFunctionMatchingAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call analysisFunctionMatchingAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = analysisFunctionMatchingValidateBeforeCall(analysisId, analysisFunctionMatchingRequest, _callback); + okhttp3.Call localVarCall = analysisFunctionMatchingValidateBeforeCall(analysisId, analysisFunctionMatchingRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -369,6 +385,7 @@ public okhttp3.Call analysisFunctionMatchingAsync(@javax.annotation.Nonnull Inte * Build call for autoUnstrip * @param analysisId (required) * @param autoUnstripRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -380,7 +397,7 @@ public okhttp3.Call analysisFunctionMatchingAsync(@javax.annotation.Nonnull Inte 422 Invalid request parameters - */ - public okhttp3.Call autoUnstripCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call autoUnstripCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -406,6 +423,10 @@ public okhttp3.Call autoUnstripCall(@javax.annotation.Nonnull Integer analysisId Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -427,7 +448,7 @@ public okhttp3.Call autoUnstripCall(@javax.annotation.Nonnull Integer analysisId } @SuppressWarnings("rawtypes") - private okhttp3.Call autoUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call autoUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling autoUnstrip(Async)"); @@ -438,7 +459,7 @@ private okhttp3.Call autoUnstripValidateBeforeCall(@javax.annotation.Nonnull Int throw new ApiException("Missing the required parameter 'autoUnstripRequest' when calling autoUnstrip(Async)"); } - return autoUnstripCall(analysisId, autoUnstripRequest, _callback); + return autoUnstripCall(analysisId, autoUnstripRequest, apiKey, _callback); } @@ -447,6 +468,7 @@ private okhttp3.Call autoUnstripValidateBeforeCall(@javax.annotation.Nonnull Int * Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system * @param analysisId (required) * @param autoUnstripRequest (required) + * @param apiKey (optional) * @return AutoUnstripResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -457,8 +479,8 @@ private okhttp3.Call autoUnstripValidateBeforeCall(@javax.annotation.Nonnull Int 422 Invalid request parameters - */ - public AutoUnstripResponse autoUnstrip(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest) throws ApiException { - ApiResponse localVarResp = autoUnstripWithHttpInfo(analysisId, autoUnstripRequest); + public AutoUnstripResponse autoUnstrip(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = autoUnstripWithHttpInfo(analysisId, autoUnstripRequest, apiKey); return localVarResp.getData(); } @@ -467,6 +489,7 @@ public AutoUnstripResponse autoUnstrip(@javax.annotation.Nonnull Integer analysi * Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system * @param analysisId (required) * @param autoUnstripRequest (required) + * @param apiKey (optional) * @return ApiResponse<AutoUnstripResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -477,8 +500,8 @@ public AutoUnstripResponse autoUnstrip(@javax.annotation.Nonnull Integer analysi 422 Invalid request parameters - */ - public ApiResponse autoUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest) throws ApiException { - okhttp3.Call localVarCall = autoUnstripValidateBeforeCall(analysisId, autoUnstripRequest, null); + public ApiResponse autoUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = autoUnstripValidateBeforeCall(analysisId, autoUnstripRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -488,6 +511,7 @@ public ApiResponse autoUnstripWithHttpInfo(@javax.annotatio * Takes in the analysis ID, uses the functions ID's from it and settings to find the nearest function for each function that's within the system * @param analysisId (required) * @param autoUnstripRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -499,9 +523,9 @@ public ApiResponse autoUnstripWithHttpInfo(@javax.annotatio 422 Invalid request parameters - */ - public okhttp3.Call autoUnstripAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call autoUnstripAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull AutoUnstripRequest autoUnstripRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = autoUnstripValidateBeforeCall(analysisId, autoUnstripRequest, _callback); + okhttp3.Call localVarCall = autoUnstripValidateBeforeCall(analysisId, autoUnstripRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -509,6 +533,7 @@ public okhttp3.Call autoUnstripAsync(@javax.annotation.Nonnull Integer analysisI /** * Build call for batchFunctionMatching * @param functionMatchingRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -520,7 +545,7 @@ public okhttp3.Call autoUnstripAsync(@javax.annotation.Nonnull Integer analysisI 422 Invalid request parameters - */ - public okhttp3.Call batchFunctionMatchingCall(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call batchFunctionMatchingCall(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -545,6 +570,10 @@ public okhttp3.Call batchFunctionMatchingCall(@javax.annotation.Nonnull Function Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -566,13 +595,13 @@ public okhttp3.Call batchFunctionMatchingCall(@javax.annotation.Nonnull Function } @SuppressWarnings("rawtypes") - private okhttp3.Call batchFunctionMatchingValidateBeforeCall(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call batchFunctionMatchingValidateBeforeCall(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionMatchingRequest' is set if (functionMatchingRequest == null) { throw new ApiException("Missing the required parameter 'functionMatchingRequest' when calling batchFunctionMatching(Async)"); } - return batchFunctionMatchingCall(functionMatchingRequest, _callback); + return batchFunctionMatchingCall(functionMatchingRequest, apiKey, _callback); } @@ -580,6 +609,7 @@ private okhttp3.Call batchFunctionMatchingValidateBeforeCall(@javax.annotation.N * Perform function matching for an arbitrary batch of functions, binaries or collections * Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system * @param functionMatchingRequest (required) + * @param apiKey (optional) * @return FunctionMatchingBatchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -590,8 +620,8 @@ private okhttp3.Call batchFunctionMatchingValidateBeforeCall(@javax.annotation.N 422 Invalid request parameters - */ - public FunctionMatchingBatchResponse batchFunctionMatching(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest) throws ApiException { - ApiResponse localVarResp = batchFunctionMatchingWithHttpInfo(functionMatchingRequest); + public FunctionMatchingBatchResponse batchFunctionMatching(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = batchFunctionMatchingWithHttpInfo(functionMatchingRequest, apiKey); return localVarResp.getData(); } @@ -599,6 +629,7 @@ public FunctionMatchingBatchResponse batchFunctionMatching(@javax.annotation.Non * Perform function matching for an arbitrary batch of functions, binaries or collections * Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system * @param functionMatchingRequest (required) + * @param apiKey (optional) * @return ApiResponse<FunctionMatchingBatchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -609,8 +640,8 @@ public FunctionMatchingBatchResponse batchFunctionMatching(@javax.annotation.Non 422 Invalid request parameters - */ - public ApiResponse batchFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest) throws ApiException { - okhttp3.Call localVarCall = batchFunctionMatchingValidateBeforeCall(functionMatchingRequest, null); + public ApiResponse batchFunctionMatchingWithHttpInfo(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = batchFunctionMatchingValidateBeforeCall(functionMatchingRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -619,6 +650,7 @@ public ApiResponse batchFunctionMatchingWithHttpI * Perform function matching for an arbitrary batch of functions, binaries or collections (asynchronously) * Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system * @param functionMatchingRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -630,9 +662,9 @@ public ApiResponse batchFunctionMatchingWithHttpI 422 Invalid request parameters - */ - public okhttp3.Call batchFunctionMatchingAsync(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call batchFunctionMatchingAsync(@javax.annotation.Nonnull FunctionMatchingRequest functionMatchingRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = batchFunctionMatchingValidateBeforeCall(functionMatchingRequest, _callback); + okhttp3.Call localVarCall = batchFunctionMatchingValidateBeforeCall(functionMatchingRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -640,6 +672,7 @@ public okhttp3.Call batchFunctionMatchingAsync(@javax.annotation.Nonnull Functio /** * Build call for cancelAiUnstrip * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -651,7 +684,7 @@ public okhttp3.Call batchFunctionMatchingAsync(@javax.annotation.Nonnull Functio 422 Invalid request parameters - */ - public okhttp3.Call cancelAiUnstripCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelAiUnstripCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -677,6 +710,10 @@ public okhttp3.Call cancelAiUnstripCall(@javax.annotation.Nonnull Integer analys Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -697,13 +734,13 @@ public okhttp3.Call cancelAiUnstripCall(@javax.annotation.Nonnull Integer analys } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelAiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call cancelAiUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling cancelAiUnstrip(Async)"); } - return cancelAiUnstripCall(analysisId, _callback); + return cancelAiUnstripCall(analysisId, apiKey, _callback); } @@ -711,6 +748,7 @@ private okhttp3.Call cancelAiUnstripValidateBeforeCall(@javax.annotation.Nonnull * Cancels a running ai-unstrip * Takes in the analysis ID and cancels a running ai-unstrip operation * @param analysisId (required) + * @param apiKey (optional) * @return AutoUnstripResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -721,8 +759,8 @@ private okhttp3.Call cancelAiUnstripValidateBeforeCall(@javax.annotation.Nonnull 422 Invalid request parameters - */ - public AutoUnstripResponse cancelAiUnstrip(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = cancelAiUnstripWithHttpInfo(analysisId); + public AutoUnstripResponse cancelAiUnstrip(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = cancelAiUnstripWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -730,6 +768,7 @@ public AutoUnstripResponse cancelAiUnstrip(@javax.annotation.Nonnull Integer ana * Cancels a running ai-unstrip * Takes in the analysis ID and cancels a running ai-unstrip operation * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<AutoUnstripResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -740,8 +779,8 @@ public AutoUnstripResponse cancelAiUnstrip(@javax.annotation.Nonnull Integer ana 422 Invalid request parameters - */ - public ApiResponse cancelAiUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = cancelAiUnstripValidateBeforeCall(analysisId, null); + public ApiResponse cancelAiUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = cancelAiUnstripValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -750,6 +789,7 @@ public ApiResponse cancelAiUnstripWithHttpInfo(@javax.annot * Cancels a running ai-unstrip (asynchronously) * Takes in the analysis ID and cancels a running ai-unstrip operation * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -761,9 +801,9 @@ public ApiResponse cancelAiUnstripWithHttpInfo(@javax.annot 422 Invalid request parameters - */ - public okhttp3.Call cancelAiUnstripAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelAiUnstripAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelAiUnstripValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = cancelAiUnstripValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -771,6 +811,7 @@ public okhttp3.Call cancelAiUnstripAsync(@javax.annotation.Nonnull Integer analy /** * Build call for cancelAutoUnstrip * @param analysisId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -782,7 +823,7 @@ public okhttp3.Call cancelAiUnstripAsync(@javax.annotation.Nonnull Integer analy 422 Invalid request parameters - */ - public okhttp3.Call cancelAutoUnstripCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelAutoUnstripCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -808,6 +849,10 @@ public okhttp3.Call cancelAutoUnstripCall(@javax.annotation.Nonnull Integer anal Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -828,13 +873,13 @@ public okhttp3.Call cancelAutoUnstripCall(@javax.annotation.Nonnull Integer anal } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelAutoUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call cancelAutoUnstripValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling cancelAutoUnstrip(Async)"); } - return cancelAutoUnstripCall(analysisId, _callback); + return cancelAutoUnstripCall(analysisId, apiKey, _callback); } @@ -842,6 +887,7 @@ private okhttp3.Call cancelAutoUnstripValidateBeforeCall(@javax.annotation.Nonnu * Cancels a running auto-unstrip * Takes in the analysis ID and cancels a running auto-unstrip operation * @param analysisId (required) + * @param apiKey (optional) * @return AutoUnstripResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -852,8 +898,8 @@ private okhttp3.Call cancelAutoUnstripValidateBeforeCall(@javax.annotation.Nonnu 422 Invalid request parameters - */ - public AutoUnstripResponse cancelAutoUnstrip(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - ApiResponse localVarResp = cancelAutoUnstripWithHttpInfo(analysisId); + public AutoUnstripResponse cancelAutoUnstrip(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = cancelAutoUnstripWithHttpInfo(analysisId, apiKey); return localVarResp.getData(); } @@ -861,6 +907,7 @@ public AutoUnstripResponse cancelAutoUnstrip(@javax.annotation.Nonnull Integer a * Cancels a running auto-unstrip * Takes in the analysis ID and cancels a running auto-unstrip operation * @param analysisId (required) + * @param apiKey (optional) * @return ApiResponse<AutoUnstripResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -871,8 +918,8 @@ public AutoUnstripResponse cancelAutoUnstrip(@javax.annotation.Nonnull Integer a 422 Invalid request parameters - */ - public ApiResponse cancelAutoUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId) throws ApiException { - okhttp3.Call localVarCall = cancelAutoUnstripValidateBeforeCall(analysisId, null); + public ApiResponse cancelAutoUnstripWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = cancelAutoUnstripValidateBeforeCall(analysisId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -881,6 +928,7 @@ public ApiResponse cancelAutoUnstripWithHttpInfo(@javax.ann * Cancels a running auto-unstrip (asynchronously) * Takes in the analysis ID and cancels a running auto-unstrip operation * @param analysisId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -892,9 +940,9 @@ public ApiResponse cancelAutoUnstripWithHttpInfo(@javax.ann 422 Invalid request parameters - */ - public okhttp3.Call cancelAutoUnstripAsync(@javax.annotation.Nonnull Integer analysisId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call cancelAutoUnstripAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = cancelAutoUnstripValidateBeforeCall(analysisId, _callback); + okhttp3.Call localVarCall = cancelAutoUnstripValidateBeforeCall(analysisId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -906,6 +954,7 @@ public okhttp3.Call cancelAutoUnstripAsync(@javax.annotation.Nonnull Integer ana * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) * @param functionSearch Search is applied to function names (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -917,7 +966,7 @@ public okhttp3.Call cancelAutoUnstripAsync(@javax.annotation.Nonnull Integer ana 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -959,6 +1008,10 @@ public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer ana localVarQueryParams.addAll(localVarApiClient.parameterToPair("function_search", functionSearch)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -979,13 +1032,13 @@ public okhttp3.Call getAnalysisStringsCall(@javax.annotation.Nonnull Integer ana } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getAnalysisStrings(Async)"); } - return getAnalysisStringsCall(analysisId, page, pageSize, search, functionSearch, _callback); + return getAnalysisStringsCall(analysisId, page, pageSize, search, functionSearch, apiKey, _callback); } @@ -997,6 +1050,7 @@ private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonn * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) * @param functionSearch Search is applied to function names (optional) + * @param apiKey (optional) * @return BaseResponseAnalysisStringsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1007,8 +1061,8 @@ private okhttp3.Call getAnalysisStringsValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch) throws ApiException { - ApiResponse localVarResp = getAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, functionSearch); + public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getAnalysisStringsWithHttpInfo(analysisId, page, pageSize, search, functionSearch, apiKey); return localVarResp.getData(); } @@ -1020,6 +1074,7 @@ public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation. * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) * @param functionSearch Search is applied to function names (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseAnalysisStringsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1030,8 +1085,8 @@ public BaseResponseAnalysisStringsResponse getAnalysisStrings(@javax.annotation. 422 Invalid request parameters - */ - public ApiResponse getAnalysisStringsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch) throws ApiException { - okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, null); + public ApiResponse getAnalysisStringsWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1044,6 +1099,7 @@ public ApiResponse getAnalysisStringsWithHt * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) * @param functionSearch Search is applied to function names (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1055,9 +1111,9 @@ public ApiResponse getAnalysisStringsWithHt 422 Invalid request parameters - */ - public okhttp3.Call getAnalysisStringsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnalysisStringsAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String functionSearch, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, _callback); + okhttp3.Call localVarCall = getAnalysisStringsValidateBeforeCall(analysisId, page, pageSize, search, functionSearch, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1065,6 +1121,7 @@ public okhttp3.Call getAnalysisStringsAsync(@javax.annotation.Nonnull Integer an /** * Build call for getFunctionBlocks * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1077,7 +1134,7 @@ public okhttp3.Call getAnalysisStringsAsync(@javax.annotation.Nonnull Integer an 404 Not Found - */ - public okhttp3.Call getFunctionBlocksCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionBlocksCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1103,6 +1160,10 @@ public okhttp3.Call getFunctionBlocksCall(@javax.annotation.Nonnull Integer func Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1123,13 +1184,13 @@ public okhttp3.Call getFunctionBlocksCall(@javax.annotation.Nonnull Integer func } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionBlocksValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionBlocksValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionBlocks(Async)"); } - return getFunctionBlocksCall(functionId, _callback); + return getFunctionBlocksCall(functionId, apiKey, _callback); } @@ -1137,6 +1198,7 @@ private okhttp3.Call getFunctionBlocksValidateBeforeCall(@javax.annotation.Nonnu * Get disassembly blocks related to the function * Get disassembly blocks related to the function * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseFunctionBlocksResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1148,8 +1210,8 @@ private okhttp3.Call getFunctionBlocksValidateBeforeCall(@javax.annotation.Nonnu 404 Not Found - */ - public BaseResponseFunctionBlocksResponse getFunctionBlocks(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getFunctionBlocksWithHttpInfo(functionId); + public BaseResponseFunctionBlocksResponse getFunctionBlocks(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionBlocksWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -1157,6 +1219,7 @@ public BaseResponseFunctionBlocksResponse getFunctionBlocks(@javax.annotation.No * Get disassembly blocks related to the function * Get disassembly blocks related to the function * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionBlocksResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1168,8 +1231,8 @@ public BaseResponseFunctionBlocksResponse getFunctionBlocks(@javax.annotation.No 404 Not Found - */ - public ApiResponse getFunctionBlocksWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getFunctionBlocksValidateBeforeCall(functionId, null); + public ApiResponse getFunctionBlocksWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionBlocksValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1178,6 +1241,7 @@ public ApiResponse getFunctionBlocksWithHttp * Get disassembly blocks related to the function (asynchronously) * Get disassembly blocks related to the function * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1190,9 +1254,9 @@ public ApiResponse getFunctionBlocksWithHttp 404 Not Found - */ - public okhttp3.Call getFunctionBlocksAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionBlocksAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionBlocksValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getFunctionBlocksValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1200,6 +1264,7 @@ public okhttp3.Call getFunctionBlocksAsync(@javax.annotation.Nonnull Integer fun /** * Build call for getFunctionCalleesCallers * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1211,7 +1276,7 @@ public okhttp3.Call getFunctionBlocksAsync(@javax.annotation.Nonnull Integer fun 422 Invalid request parameters - */ - public okhttp3.Call getFunctionCalleesCallersCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionCalleesCallersCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1237,6 +1302,10 @@ public okhttp3.Call getFunctionCalleesCallersCall(@javax.annotation.Nonnull Inte Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1257,13 +1326,13 @@ public okhttp3.Call getFunctionCalleesCallersCall(@javax.annotation.Nonnull Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionCalleesCallersValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionCalleesCallersValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionCalleesCallers(Async)"); } - return getFunctionCalleesCallersCall(functionId, _callback); + return getFunctionCalleesCallersCall(functionId, apiKey, _callback); } @@ -1271,6 +1340,7 @@ private okhttp3.Call getFunctionCalleesCallersValidateBeforeCall(@javax.annotati * Get list of functions that call or are called by the specified function * * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseCalleesCallerFunctionsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1281,8 +1351,8 @@ private okhttp3.Call getFunctionCalleesCallersValidateBeforeCall(@javax.annotati 422 Invalid request parameters - */ - public BaseResponseCalleesCallerFunctionsResponse getFunctionCalleesCallers(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getFunctionCalleesCallersWithHttpInfo(functionId); + public BaseResponseCalleesCallerFunctionsResponse getFunctionCalleesCallers(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionCalleesCallersWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -1290,6 +1360,7 @@ public BaseResponseCalleesCallerFunctionsResponse getFunctionCalleesCallers(@jav * Get list of functions that call or are called by the specified function * * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCalleesCallerFunctionsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1300,8 +1371,8 @@ public BaseResponseCalleesCallerFunctionsResponse getFunctionCalleesCallers(@jav 422 Invalid request parameters - */ - public ApiResponse getFunctionCalleesCallersWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getFunctionCalleesCallersValidateBeforeCall(functionId, null); + public ApiResponse getFunctionCalleesCallersWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionCalleesCallersValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1310,6 +1381,7 @@ public ApiResponse getFunctionCallee * Get list of functions that call or are called by the specified function (asynchronously) * * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1321,9 +1393,9 @@ public ApiResponse getFunctionCallee 422 Invalid request parameters - */ - public okhttp3.Call getFunctionCalleesCallersAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionCalleesCallersAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionCalleesCallersValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getFunctionCalleesCallersValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1331,6 +1403,7 @@ public okhttp3.Call getFunctionCalleesCallersAsync(@javax.annotation.Nonnull Int /** * Build call for getFunctionCapabilities * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1343,7 +1416,7 @@ public okhttp3.Call getFunctionCalleesCallersAsync(@javax.annotation.Nonnull Int 404 Not Found - */ - public okhttp3.Call getFunctionCapabilitiesCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionCapabilitiesCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1369,6 +1442,10 @@ public okhttp3.Call getFunctionCapabilitiesCall(@javax.annotation.Nonnull Intege Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1389,13 +1466,13 @@ public okhttp3.Call getFunctionCapabilitiesCall(@javax.annotation.Nonnull Intege } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionCapabilitiesValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionCapabilitiesValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionCapabilities(Async)"); } - return getFunctionCapabilitiesCall(functionId, _callback); + return getFunctionCapabilitiesCall(functionId, apiKey, _callback); } @@ -1403,6 +1480,7 @@ private okhttp3.Call getFunctionCapabilitiesValidateBeforeCall(@javax.annotation * Retrieve a functions capabilities * * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseFunctionCapabilityResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1414,8 +1492,8 @@ private okhttp3.Call getFunctionCapabilitiesValidateBeforeCall(@javax.annotation 404 Not Found - */ - public BaseResponseFunctionCapabilityResponse getFunctionCapabilities(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getFunctionCapabilitiesWithHttpInfo(functionId); + public BaseResponseFunctionCapabilityResponse getFunctionCapabilities(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionCapabilitiesWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -1423,6 +1501,7 @@ public BaseResponseFunctionCapabilityResponse getFunctionCapabilities(@javax.ann * Retrieve a functions capabilities * * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionCapabilityResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1434,8 +1513,8 @@ public BaseResponseFunctionCapabilityResponse getFunctionCapabilities(@javax.ann 404 Not Found - */ - public ApiResponse getFunctionCapabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getFunctionCapabilitiesValidateBeforeCall(functionId, null); + public ApiResponse getFunctionCapabilitiesWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionCapabilitiesValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1444,6 +1523,7 @@ public ApiResponse getFunctionCapabiliti * Retrieve a functions capabilities (asynchronously) * * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1456,9 +1536,9 @@ public ApiResponse getFunctionCapabiliti 404 Not Found - */ - public okhttp3.Call getFunctionCapabilitiesAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionCapabilitiesAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionCapabilitiesValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getFunctionCapabilitiesValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1466,6 +1546,7 @@ public okhttp3.Call getFunctionCapabilitiesAsync(@javax.annotation.Nonnull Integ /** * Build call for getFunctionDetails * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1477,7 +1558,7 @@ public okhttp3.Call getFunctionCapabilitiesAsync(@javax.annotation.Nonnull Integ 422 Invalid request parameters - */ - public okhttp3.Call getFunctionDetailsCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionDetailsCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1503,6 +1584,10 @@ public okhttp3.Call getFunctionDetailsCall(@javax.annotation.Nonnull Integer fun Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1523,13 +1608,13 @@ public okhttp3.Call getFunctionDetailsCall(@javax.annotation.Nonnull Integer fun } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionDetailsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionDetails(Async)"); } - return getFunctionDetailsCall(functionId, _callback); + return getFunctionDetailsCall(functionId, apiKey, _callback); } @@ -1537,6 +1622,7 @@ private okhttp3.Call getFunctionDetailsValidateBeforeCall(@javax.annotation.Nonn * Get function details * * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseFunctionsDetailResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1547,8 +1633,8 @@ private okhttp3.Call getFunctionDetailsValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseFunctionsDetailResponse getFunctionDetails(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getFunctionDetailsWithHttpInfo(functionId); + public BaseResponseFunctionsDetailResponse getFunctionDetails(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionDetailsWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -1556,6 +1642,7 @@ public BaseResponseFunctionsDetailResponse getFunctionDetails(@javax.annotation. * Get function details * * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionsDetailResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1566,8 +1653,8 @@ public BaseResponseFunctionsDetailResponse getFunctionDetails(@javax.annotation. 422 Invalid request parameters - */ - public ApiResponse getFunctionDetailsWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getFunctionDetailsValidateBeforeCall(functionId, null); + public ApiResponse getFunctionDetailsWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionDetailsValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1576,6 +1663,7 @@ public ApiResponse getFunctionDetailsWithHt * Get function details (asynchronously) * * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1587,9 +1675,9 @@ public ApiResponse getFunctionDetailsWithHt 422 Invalid request parameters - */ - public okhttp3.Call getFunctionDetailsAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionDetailsAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionDetailsValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getFunctionDetailsValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1600,6 +1688,7 @@ public okhttp3.Call getFunctionDetailsAsync(@javax.annotation.Nonnull Integer fu * @param page The page number to retrieve. (optional, default to 1) * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1611,7 +1700,7 @@ public okhttp3.Call getFunctionDetailsAsync(@javax.annotation.Nonnull Integer fu 422 Invalid request parameters - */ - public okhttp3.Call getFunctionStringsCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionStringsCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1649,6 +1738,10 @@ public okhttp3.Call getFunctionStringsCall(@javax.annotation.Nonnull Integer fun localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1669,13 +1762,13 @@ public okhttp3.Call getFunctionStringsCall(@javax.annotation.Nonnull Integer fun } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionStringsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionStringsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionStrings(Async)"); } - return getFunctionStringsCall(functionId, page, pageSize, search, _callback); + return getFunctionStringsCall(functionId, page, pageSize, search, apiKey, _callback); } @@ -1686,6 +1779,7 @@ private okhttp3.Call getFunctionStringsValidateBeforeCall(@javax.annotation.Nonn * @param page The page number to retrieve. (optional, default to 1) * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) + * @param apiKey (optional) * @return BaseResponseFunctionStringsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1696,8 +1790,8 @@ private okhttp3.Call getFunctionStringsValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponseFunctionStringsResponse getFunctionStrings(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search) throws ApiException { - ApiResponse localVarResp = getFunctionStringsWithHttpInfo(functionId, page, pageSize, search); + public BaseResponseFunctionStringsResponse getFunctionStrings(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionStringsWithHttpInfo(functionId, page, pageSize, search, apiKey); return localVarResp.getData(); } @@ -1708,6 +1802,7 @@ public BaseResponseFunctionStringsResponse getFunctionStrings(@javax.annotation. * @param page The page number to retrieve. (optional, default to 1) * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionStringsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1718,8 +1813,8 @@ public BaseResponseFunctionStringsResponse getFunctionStrings(@javax.annotation. 422 Invalid request parameters - */ - public ApiResponse getFunctionStringsWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search) throws ApiException { - okhttp3.Call localVarCall = getFunctionStringsValidateBeforeCall(functionId, page, pageSize, search, null); + public ApiResponse getFunctionStringsWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionStringsValidateBeforeCall(functionId, page, pageSize, search, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1731,6 +1826,7 @@ public ApiResponse getFunctionStringsWithHt * @param page The page number to retrieve. (optional, default to 1) * @param pageSize Number of items per page. (optional, default to 100) * @param search Search is applied to string value (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1742,9 +1838,9 @@ public ApiResponse getFunctionStringsWithHt 422 Invalid request parameters - */ - public okhttp3.Call getFunctionStringsAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionStringsAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String search, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionStringsValidateBeforeCall(functionId, page, pageSize, search, _callback); + okhttp3.Call localVarCall = getFunctionStringsValidateBeforeCall(functionId, page, pageSize, search, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FunctionsDataTypesApi.java b/src/main/java/ai/reveng/api/FunctionsDataTypesApi.java index 71b9897..3bb6d8d 100644 --- a/src/main/java/ai/reveng/api/FunctionsDataTypesApi.java +++ b/src/main/java/ai/reveng/api/FunctionsDataTypesApi.java @@ -81,6 +81,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for generateFunctionDataTypesForAnalysis * @param analysisId (required) * @param functionDataTypesParams (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -92,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call generateFunctionDataTypesForAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateFunctionDataTypesForAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -118,6 +119,10 @@ public okhttp3.Call generateFunctionDataTypesForAnalysisCall(@javax.annotation.N Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -139,7 +144,7 @@ public okhttp3.Call generateFunctionDataTypesForAnalysisCall(@javax.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call generateFunctionDataTypesForAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateFunctionDataTypesForAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling generateFunctionDataTypesForAnalysis(Async)"); @@ -150,7 +155,7 @@ private okhttp3.Call generateFunctionDataTypesForAnalysisValidateBeforeCall(@jav throw new ApiException("Missing the required parameter 'functionDataTypesParams' when calling generateFunctionDataTypesForAnalysis(Async)"); } - return generateFunctionDataTypesForAnalysisCall(analysisId, functionDataTypesParams, _callback); + return generateFunctionDataTypesForAnalysisCall(analysisId, functionDataTypesParams, apiKey, _callback); } @@ -159,6 +164,7 @@ private okhttp3.Call generateFunctionDataTypesForAnalysisValidateBeforeCall(@jav * Submits a request to generate the function data types * @param analysisId (required) * @param functionDataTypesParams (required) + * @param apiKey (optional) * @return BaseResponseGenerateFunctionDataTypes * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -169,8 +175,8 @@ private okhttp3.Call generateFunctionDataTypesForAnalysisValidateBeforeCall(@jav 422 Invalid request parameters - */ - public BaseResponseGenerateFunctionDataTypes generateFunctionDataTypesForAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams) throws ApiException { - ApiResponse localVarResp = generateFunctionDataTypesForAnalysisWithHttpInfo(analysisId, functionDataTypesParams); + public BaseResponseGenerateFunctionDataTypes generateFunctionDataTypesForAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = generateFunctionDataTypesForAnalysisWithHttpInfo(analysisId, functionDataTypesParams, apiKey); return localVarResp.getData(); } @@ -179,6 +185,7 @@ public BaseResponseGenerateFunctionDataTypes generateFunctionDataTypesForAnalysi * Submits a request to generate the function data types * @param analysisId (required) * @param functionDataTypesParams (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseGenerateFunctionDataTypes> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -189,8 +196,8 @@ public BaseResponseGenerateFunctionDataTypes generateFunctionDataTypesForAnalysi 422 Invalid request parameters - */ - public ApiResponse generateFunctionDataTypesForAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams) throws ApiException { - okhttp3.Call localVarCall = generateFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionDataTypesParams, null); + public ApiResponse generateFunctionDataTypesForAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = generateFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionDataTypesParams, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -200,6 +207,7 @@ public ApiResponse generateFunctionDataTy * Submits a request to generate the function data types * @param analysisId (required) * @param functionDataTypesParams (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -211,9 +219,9 @@ public ApiResponse generateFunctionDataTy 422 Invalid request parameters - */ - public okhttp3.Call generateFunctionDataTypesForAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateFunctionDataTypesForAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionDataTypesParams, _callback); + okhttp3.Call localVarCall = generateFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionDataTypesParams, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -221,6 +229,7 @@ public okhttp3.Call generateFunctionDataTypesForAnalysisAsync(@javax.annotation. /** * Build call for generateFunctionDataTypesForFunctions * @param functionDataTypesParams (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -232,7 +241,7 @@ public okhttp3.Call generateFunctionDataTypesForAnalysisAsync(@javax.annotation. 422 Invalid request parameters - */ - public okhttp3.Call generateFunctionDataTypesForFunctionsCall(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateFunctionDataTypesForFunctionsCall(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -257,6 +266,10 @@ public okhttp3.Call generateFunctionDataTypesForFunctionsCall(@javax.annotation. Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -278,13 +291,13 @@ public okhttp3.Call generateFunctionDataTypesForFunctionsCall(@javax.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call generateFunctionDataTypesForFunctionsValidateBeforeCall(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateFunctionDataTypesForFunctionsValidateBeforeCall(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionDataTypesParams' is set if (functionDataTypesParams == null) { throw new ApiException("Missing the required parameter 'functionDataTypesParams' when calling generateFunctionDataTypesForFunctions(Async)"); } - return generateFunctionDataTypesForFunctionsCall(functionDataTypesParams, _callback); + return generateFunctionDataTypesForFunctionsCall(functionDataTypesParams, apiKey, _callback); } @@ -292,6 +305,7 @@ private okhttp3.Call generateFunctionDataTypesForFunctionsValidateBeforeCall(@ja * Generate Function Data Types for an arbitrary list of functions * Submits a request to generate the function data types * @param functionDataTypesParams (required) + * @param apiKey (optional) * @return BaseResponseGenerationStatusList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -302,8 +316,8 @@ private okhttp3.Call generateFunctionDataTypesForFunctionsValidateBeforeCall(@ja 422 Invalid request parameters - */ - public BaseResponseGenerationStatusList generateFunctionDataTypesForFunctions(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams) throws ApiException { - ApiResponse localVarResp = generateFunctionDataTypesForFunctionsWithHttpInfo(functionDataTypesParams); + public BaseResponseGenerationStatusList generateFunctionDataTypesForFunctions(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = generateFunctionDataTypesForFunctionsWithHttpInfo(functionDataTypesParams, apiKey); return localVarResp.getData(); } @@ -311,6 +325,7 @@ public BaseResponseGenerationStatusList generateFunctionDataTypesForFunctions(@j * Generate Function Data Types for an arbitrary list of functions * Submits a request to generate the function data types * @param functionDataTypesParams (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseGenerationStatusList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -321,8 +336,8 @@ public BaseResponseGenerationStatusList generateFunctionDataTypesForFunctions(@j 422 Invalid request parameters - */ - public ApiResponse generateFunctionDataTypesForFunctionsWithHttpInfo(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams) throws ApiException { - okhttp3.Call localVarCall = generateFunctionDataTypesForFunctionsValidateBeforeCall(functionDataTypesParams, null); + public ApiResponse generateFunctionDataTypesForFunctionsWithHttpInfo(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = generateFunctionDataTypesForFunctionsValidateBeforeCall(functionDataTypesParams, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -331,6 +346,7 @@ public ApiResponse generateFunctionDataTypesFo * Generate Function Data Types for an arbitrary list of functions (asynchronously) * Submits a request to generate the function data types * @param functionDataTypesParams (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -342,9 +358,9 @@ public ApiResponse generateFunctionDataTypesFo 422 Invalid request parameters - */ - public okhttp3.Call generateFunctionDataTypesForFunctionsAsync(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateFunctionDataTypesForFunctionsAsync(@javax.annotation.Nonnull FunctionDataTypesParams functionDataTypesParams, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = generateFunctionDataTypesForFunctionsValidateBeforeCall(functionDataTypesParams, _callback); + okhttp3.Call localVarCall = generateFunctionDataTypesForFunctionsValidateBeforeCall(functionDataTypesParams, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -353,6 +369,7 @@ public okhttp3.Call generateFunctionDataTypesForFunctionsAsync(@javax.annotation * Build call for getFunctionDataTypes * @param analysisId (required) * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -364,7 +381,7 @@ public okhttp3.Call generateFunctionDataTypesForFunctionsAsync(@javax.annotation 422 Invalid request parameters - */ - public okhttp3.Call getFunctionDataTypesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionDataTypesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -391,6 +408,10 @@ public okhttp3.Call getFunctionDataTypesCall(@javax.annotation.Nonnull Integer a Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -411,7 +432,7 @@ public okhttp3.Call getFunctionDataTypesCall(@javax.annotation.Nonnull Integer a } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionDataTypesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionDataTypesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling getFunctionDataTypes(Async)"); @@ -422,7 +443,7 @@ private okhttp3.Call getFunctionDataTypesValidateBeforeCall(@javax.annotation.No throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionDataTypes(Async)"); } - return getFunctionDataTypesCall(analysisId, functionId, _callback); + return getFunctionDataTypesCall(analysisId, functionId, apiKey, _callback); } @@ -431,6 +452,7 @@ private okhttp3.Call getFunctionDataTypesValidateBeforeCall(@javax.annotation.No * Polling endpoint which returns the current status of function generation and once completed the data type information * @param analysisId (required) * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseFunctionDataTypes * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -441,8 +463,8 @@ private okhttp3.Call getFunctionDataTypesValidateBeforeCall(@javax.annotation.No 422 Invalid request parameters - */ - public BaseResponseFunctionDataTypes getFunctionDataTypes(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getFunctionDataTypesWithHttpInfo(analysisId, functionId); + public BaseResponseFunctionDataTypes getFunctionDataTypes(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionDataTypesWithHttpInfo(analysisId, functionId, apiKey); return localVarResp.getData(); } @@ -451,6 +473,7 @@ public BaseResponseFunctionDataTypes getFunctionDataTypes(@javax.annotation.Nonn * Polling endpoint which returns the current status of function generation and once completed the data type information * @param analysisId (required) * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionDataTypes> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -461,8 +484,8 @@ public BaseResponseFunctionDataTypes getFunctionDataTypes(@javax.annotation.Nonn 422 Invalid request parameters - */ - public ApiResponse getFunctionDataTypesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getFunctionDataTypesValidateBeforeCall(analysisId, functionId, null); + public ApiResponse getFunctionDataTypesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionDataTypesValidateBeforeCall(analysisId, functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -472,6 +495,7 @@ public ApiResponse getFunctionDataTypesWithHttpIn * Polling endpoint which returns the current status of function generation and once completed the data type information * @param analysisId (required) * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -483,9 +507,9 @@ public ApiResponse getFunctionDataTypesWithHttpIn 422 Invalid request parameters - */ - public okhttp3.Call getFunctionDataTypesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionDataTypesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionDataTypesValidateBeforeCall(analysisId, functionId, _callback); + okhttp3.Call localVarCall = getFunctionDataTypesValidateBeforeCall(analysisId, functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -494,6 +518,7 @@ public okhttp3.Call getFunctionDataTypesAsync(@javax.annotation.Nonnull Integer * Build call for listFunctionDataTypesForAnalysis * @param analysisId (required) * @param functionIds (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -505,7 +530,7 @@ public okhttp3.Call getFunctionDataTypesAsync(@javax.annotation.Nonnull Integer 422 Invalid request parameters - */ - public okhttp3.Call listFunctionDataTypesForAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listFunctionDataTypesForAnalysisCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -535,6 +560,10 @@ public okhttp3.Call listFunctionDataTypesForAnalysisCall(@javax.annotation.Nonnu localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "function_ids", functionIds)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -555,13 +584,13 @@ public okhttp3.Call listFunctionDataTypesForAnalysisCall(@javax.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call listFunctionDataTypesForAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listFunctionDataTypesForAnalysisValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling listFunctionDataTypesForAnalysis(Async)"); } - return listFunctionDataTypesForAnalysisCall(analysisId, functionIds, _callback); + return listFunctionDataTypesForAnalysisCall(analysisId, functionIds, apiKey, _callback); } @@ -570,6 +599,7 @@ private okhttp3.Call listFunctionDataTypesForAnalysisValidateBeforeCall(@javax.a * Returns data types for multiple functions with optional function ID filtering * @param analysisId (required) * @param functionIds (optional) + * @param apiKey (optional) * @return BaseResponseFunctionDataTypesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -580,8 +610,8 @@ private okhttp3.Call listFunctionDataTypesForAnalysisValidateBeforeCall(@javax.a 422 Invalid request parameters - */ - public BaseResponseFunctionDataTypesList listFunctionDataTypesForAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds) throws ApiException { - ApiResponse localVarResp = listFunctionDataTypesForAnalysisWithHttpInfo(analysisId, functionIds); + public BaseResponseFunctionDataTypesList listFunctionDataTypesForAnalysis(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = listFunctionDataTypesForAnalysisWithHttpInfo(analysisId, functionIds, apiKey); return localVarResp.getData(); } @@ -590,6 +620,7 @@ public BaseResponseFunctionDataTypesList listFunctionDataTypesForAnalysis(@javax * Returns data types for multiple functions with optional function ID filtering * @param analysisId (required) * @param functionIds (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionDataTypesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -600,8 +631,8 @@ public BaseResponseFunctionDataTypesList listFunctionDataTypesForAnalysis(@javax 422 Invalid request parameters - */ - public ApiResponse listFunctionDataTypesForAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds) throws ApiException { - okhttp3.Call localVarCall = listFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionIds, null); + public ApiResponse listFunctionDataTypesForAnalysisWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = listFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionIds, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -611,6 +642,7 @@ public ApiResponse listFunctionDataTypesForAn * Returns data types for multiple functions with optional function ID filtering * @param analysisId (required) * @param functionIds (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -622,9 +654,9 @@ public ApiResponse listFunctionDataTypesForAn 422 Invalid request parameters - */ - public okhttp3.Call listFunctionDataTypesForAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listFunctionDataTypesForAnalysisAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionIds, _callback); + okhttp3.Call localVarCall = listFunctionDataTypesForAnalysisValidateBeforeCall(analysisId, functionIds, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -632,6 +664,7 @@ public okhttp3.Call listFunctionDataTypesForAnalysisAsync(@javax.annotation.Nonn /** * Build call for listFunctionDataTypesForFunctions * @param functionIds (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -643,7 +676,7 @@ public okhttp3.Call listFunctionDataTypesForAnalysisAsync(@javax.annotation.Nonn 422 Invalid request parameters - */ - public okhttp3.Call listFunctionDataTypesForFunctionsCall(@javax.annotation.Nullable List functionIds, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listFunctionDataTypesForFunctionsCall(@javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -672,6 +705,10 @@ public okhttp3.Call listFunctionDataTypesForFunctionsCall(@javax.annotation.Null localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "function_ids", functionIds)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -692,8 +729,8 @@ public okhttp3.Call listFunctionDataTypesForFunctionsCall(@javax.annotation.Null } @SuppressWarnings("rawtypes") - private okhttp3.Call listFunctionDataTypesForFunctionsValidateBeforeCall(@javax.annotation.Nullable List functionIds, final ApiCallback _callback) throws ApiException { - return listFunctionDataTypesForFunctionsCall(functionIds, _callback); + private okhttp3.Call listFunctionDataTypesForFunctionsValidateBeforeCall(@javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return listFunctionDataTypesForFunctionsCall(functionIds, apiKey, _callback); } @@ -701,6 +738,7 @@ private okhttp3.Call listFunctionDataTypesForFunctionsValidateBeforeCall(@javax. * List Function Data Types * Returns data types for multiple function IDs * @param functionIds (optional) + * @param apiKey (optional) * @return BaseResponseFunctionDataTypesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -711,8 +749,8 @@ private okhttp3.Call listFunctionDataTypesForFunctionsValidateBeforeCall(@javax. 422 Invalid request parameters - */ - public BaseResponseFunctionDataTypesList listFunctionDataTypesForFunctions(@javax.annotation.Nullable List functionIds) throws ApiException { - ApiResponse localVarResp = listFunctionDataTypesForFunctionsWithHttpInfo(functionIds); + public BaseResponseFunctionDataTypesList listFunctionDataTypesForFunctions(@javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = listFunctionDataTypesForFunctionsWithHttpInfo(functionIds, apiKey); return localVarResp.getData(); } @@ -720,6 +758,7 @@ public BaseResponseFunctionDataTypesList listFunctionDataTypesForFunctions(@java * List Function Data Types * Returns data types for multiple function IDs * @param functionIds (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionDataTypesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -730,8 +769,8 @@ public BaseResponseFunctionDataTypesList listFunctionDataTypesForFunctions(@java 422 Invalid request parameters - */ - public ApiResponse listFunctionDataTypesForFunctionsWithHttpInfo(@javax.annotation.Nullable List functionIds) throws ApiException { - okhttp3.Call localVarCall = listFunctionDataTypesForFunctionsValidateBeforeCall(functionIds, null); + public ApiResponse listFunctionDataTypesForFunctionsWithHttpInfo(@javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = listFunctionDataTypesForFunctionsValidateBeforeCall(functionIds, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -740,6 +779,7 @@ public ApiResponse listFunctionDataTypesForFu * List Function Data Types (asynchronously) * Returns data types for multiple function IDs * @param functionIds (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -751,9 +791,9 @@ public ApiResponse listFunctionDataTypesForFu 422 Invalid request parameters - */ - public okhttp3.Call listFunctionDataTypesForFunctionsAsync(@javax.annotation.Nullable List functionIds, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listFunctionDataTypesForFunctionsAsync(@javax.annotation.Nullable List functionIds, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listFunctionDataTypesForFunctionsValidateBeforeCall(functionIds, _callback); + okhttp3.Call localVarCall = listFunctionDataTypesForFunctionsValidateBeforeCall(functionIds, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -763,6 +803,7 @@ public okhttp3.Call listFunctionDataTypesForFunctionsAsync(@javax.annotation.Nul * @param analysisId (required) * @param functionId (required) * @param updateFunctionDataTypes (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -774,7 +815,7 @@ public okhttp3.Call listFunctionDataTypesForFunctionsAsync(@javax.annotation.Nul 422 Invalid request parameters - */ - public okhttp3.Call updateFunctionDataTypesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateFunctionDataTypesCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -801,6 +842,10 @@ public okhttp3.Call updateFunctionDataTypesCall(@javax.annotation.Nonnull Intege Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -822,7 +867,7 @@ public okhttp3.Call updateFunctionDataTypesCall(@javax.annotation.Nonnull Intege } @SuppressWarnings("rawtypes") - private okhttp3.Call updateFunctionDataTypesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateFunctionDataTypesValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'analysisId' is set if (analysisId == null) { throw new ApiException("Missing the required parameter 'analysisId' when calling updateFunctionDataTypes(Async)"); @@ -838,7 +883,7 @@ private okhttp3.Call updateFunctionDataTypesValidateBeforeCall(@javax.annotation throw new ApiException("Missing the required parameter 'updateFunctionDataTypes' when calling updateFunctionDataTypes(Async)"); } - return updateFunctionDataTypesCall(analysisId, functionId, updateFunctionDataTypes, _callback); + return updateFunctionDataTypesCall(analysisId, functionId, updateFunctionDataTypes, apiKey, _callback); } @@ -848,6 +893,7 @@ private okhttp3.Call updateFunctionDataTypesValidateBeforeCall(@javax.annotation * @param analysisId (required) * @param functionId (required) * @param updateFunctionDataTypes (required) + * @param apiKey (optional) * @return BaseResponseFunctionDataTypes * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -858,8 +904,8 @@ private okhttp3.Call updateFunctionDataTypesValidateBeforeCall(@javax.annotation 422 Invalid request parameters - */ - public BaseResponseFunctionDataTypes updateFunctionDataTypes(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes) throws ApiException { - ApiResponse localVarResp = updateFunctionDataTypesWithHttpInfo(analysisId, functionId, updateFunctionDataTypes); + public BaseResponseFunctionDataTypes updateFunctionDataTypes(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateFunctionDataTypesWithHttpInfo(analysisId, functionId, updateFunctionDataTypes, apiKey); return localVarResp.getData(); } @@ -869,6 +915,7 @@ public BaseResponseFunctionDataTypes updateFunctionDataTypes(@javax.annotation.N * @param analysisId (required) * @param functionId (required) * @param updateFunctionDataTypes (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionDataTypes> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -879,8 +926,8 @@ public BaseResponseFunctionDataTypes updateFunctionDataTypes(@javax.annotation.N 422 Invalid request parameters - */ - public ApiResponse updateFunctionDataTypesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes) throws ApiException { - okhttp3.Call localVarCall = updateFunctionDataTypesValidateBeforeCall(analysisId, functionId, updateFunctionDataTypes, null); + public ApiResponse updateFunctionDataTypesWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateFunctionDataTypesValidateBeforeCall(analysisId, functionId, updateFunctionDataTypes, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -891,6 +938,7 @@ public ApiResponse updateFunctionDataTypesWithHtt * @param analysisId (required) * @param functionId (required) * @param updateFunctionDataTypes (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -902,9 +950,9 @@ public ApiResponse updateFunctionDataTypesWithHtt 422 Invalid request parameters - */ - public okhttp3.Call updateFunctionDataTypesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateFunctionDataTypesAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull UpdateFunctionDataTypes updateFunctionDataTypes, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateFunctionDataTypesValidateBeforeCall(analysisId, functionId, updateFunctionDataTypes, _callback); + okhttp3.Call localVarCall = updateFunctionDataTypesValidateBeforeCall(analysisId, functionId, updateFunctionDataTypes, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java b/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java index db7ffbe..e7892c6 100644 --- a/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java +++ b/src/main/java/ai/reveng/api/FunctionsDecompilationApi.java @@ -80,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * Build call for createDecompilationComment * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -92,7 +93,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 400 Bad Request - */ - public okhttp3.Call createDecompilationCommentCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createDecompilationCommentCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -118,6 +119,10 @@ public okhttp3.Call createDecompilationCommentCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -139,7 +144,7 @@ public okhttp3.Call createDecompilationCommentCall(@javax.annotation.Nonnull Int } @SuppressWarnings("rawtypes") - private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling createDecompilationComment(Async)"); @@ -150,7 +155,7 @@ private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotat throw new ApiException("Missing the required parameter 'functionCommentCreateRequest' when calling createDecompilationComment(Async)"); } - return createDecompilationCommentCall(functionId, functionCommentCreateRequest, _callback); + return createDecompilationCommentCall(functionId, functionCommentCreateRequest, apiKey, _callback); } @@ -159,6 +164,7 @@ private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotat * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @return BaseResponseCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -170,8 +176,8 @@ private okhttp3.Call createDecompilationCommentValidateBeforeCall(@javax.annotat 400 Bad Request - */ - public BaseResponseCommentResponse createDecompilationComment(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException { - ApiResponse localVarResp = createDecompilationCommentWithHttpInfo(functionId, functionCommentCreateRequest); + public BaseResponseCommentResponse createDecompilationComment(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = createDecompilationCommentWithHttpInfo(functionId, functionCommentCreateRequest, apiKey); return localVarResp.getData(); } @@ -180,6 +186,7 @@ public BaseResponseCommentResponse createDecompilationComment(@javax.annotation. * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -191,8 +198,8 @@ public BaseResponseCommentResponse createDecompilationComment(@javax.annotation. 400 Bad Request - */ - public ApiResponse createDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest) throws ApiException { - okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, null); + public ApiResponse createDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -202,6 +209,7 @@ public ApiResponse createDecompilationCommentWithHt * Creates a comment associated with a specified function). * @param functionId (required) * @param functionCommentCreateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -214,9 +222,9 @@ public ApiResponse createDecompilationCommentWithHt 400 Bad Request - */ - public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionCommentCreateRequest functionCommentCreateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, _callback); + okhttp3.Call localVarCall = createDecompilationCommentValidateBeforeCall(functionId, functionCommentCreateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -225,6 +233,7 @@ public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull In * Build call for deleteDecompilationComment * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -238,7 +247,7 @@ public okhttp3.Call createDecompilationCommentAsync(@javax.annotation.Nonnull In 400 Bad Request - */ - public okhttp3.Call deleteDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -265,6 +274,10 @@ public okhttp3.Call deleteDecompilationCommentCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -285,7 +298,7 @@ public okhttp3.Call deleteDecompilationCommentCall(@javax.annotation.Nonnull Int } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling deleteDecompilationComment(Async)"); @@ -296,7 +309,7 @@ private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotat throw new ApiException("Missing the required parameter 'functionId' when calling deleteDecompilationComment(Async)"); } - return deleteDecompilationCommentCall(commentId, functionId, _callback); + return deleteDecompilationCommentCall(commentId, functionId, apiKey, _callback); } @@ -305,6 +318,7 @@ private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotat * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseBool * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -317,8 +331,8 @@ private okhttp3.Call deleteDecompilationCommentValidateBeforeCall(@javax.annotat 400 Bad Request - */ - public BaseResponseBool deleteDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = deleteDecompilationCommentWithHttpInfo(commentId, functionId); + public BaseResponseBool deleteDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = deleteDecompilationCommentWithHttpInfo(commentId, functionId, apiKey); return localVarResp.getData(); } @@ -327,6 +341,7 @@ public BaseResponseBool deleteDecompilationComment(@javax.annotation.Nonnull Int * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBool> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -339,8 +354,8 @@ public BaseResponseBool deleteDecompilationComment(@javax.annotation.Nonnull Int 400 Bad Request - */ - public ApiResponse deleteDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, null); + public ApiResponse deleteDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -350,6 +365,7 @@ public ApiResponse deleteDecompilationCommentWithHttpInfo(@jav * Deletes an existing comment. Users can only delete their own comments. * @param commentId (required) * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -363,9 +379,9 @@ public ApiResponse deleteDecompilationCommentWithHttpInfo(@jav 400 Bad Request - */ - public okhttp3.Call deleteDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, _callback); + okhttp3.Call localVarCall = deleteDecompilationCommentValidateBeforeCall(commentId, functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -373,6 +389,7 @@ public okhttp3.Call deleteDecompilationCommentAsync(@javax.annotation.Nonnull In /** * Build call for getDecompilationComments * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -384,7 +401,7 @@ public okhttp3.Call deleteDecompilationCommentAsync(@javax.annotation.Nonnull In 422 Invalid request parameters - */ - public okhttp3.Call getDecompilationCommentsCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDecompilationCommentsCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -410,6 +427,10 @@ public okhttp3.Call getDecompilationCommentsCall(@javax.annotation.Nonnull Integ Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -430,13 +451,13 @@ public okhttp3.Call getDecompilationCommentsCall(@javax.annotation.Nonnull Integ } @SuppressWarnings("rawtypes") - private okhttp3.Call getDecompilationCommentsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getDecompilationCommentsValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getDecompilationComments(Async)"); } - return getDecompilationCommentsCall(functionId, _callback); + return getDecompilationCommentsCall(functionId, apiKey, _callback); } @@ -444,6 +465,7 @@ private okhttp3.Call getDecompilationCommentsValidateBeforeCall(@javax.annotatio * Get comments for this function * Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to. * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseListCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -454,8 +476,8 @@ private okhttp3.Call getDecompilationCommentsValidateBeforeCall(@javax.annotatio 422 Invalid request parameters - */ - public BaseResponseListCommentResponse getDecompilationComments(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getDecompilationCommentsWithHttpInfo(functionId); + public BaseResponseListCommentResponse getDecompilationComments(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getDecompilationCommentsWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -463,6 +485,7 @@ public BaseResponseListCommentResponse getDecompilationComments(@javax.annotatio * Get comments for this function * Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to. * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -473,8 +496,8 @@ public BaseResponseListCommentResponse getDecompilationComments(@javax.annotatio 422 Invalid request parameters - */ - public ApiResponse getDecompilationCommentsWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, null); + public ApiResponse getDecompilationCommentsWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -483,6 +506,7 @@ public ApiResponse getDecompilationCommentsWith * Get comments for this function (asynchronously) * Retrieves all comments created for a specific function. Only returns comments for resources the requesting user has access to. * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -494,9 +518,9 @@ public ApiResponse getDecompilationCommentsWith 422 Invalid request parameters - */ - public okhttp3.Call getDecompilationCommentsAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getDecompilationCommentsAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getDecompilationCommentsValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -506,6 +530,7 @@ public okhttp3.Call getDecompilationCommentsAsync(@javax.annotation.Nonnull Inte * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -519,7 +544,7 @@ public okhttp3.Call getDecompilationCommentsAsync(@javax.annotation.Nonnull Inte 400 Bad Request - */ - public okhttp3.Call updateDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateDecompilationCommentCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -546,6 +571,10 @@ public okhttp3.Call updateDecompilationCommentCall(@javax.annotation.Nonnull Int Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -567,7 +596,7 @@ public okhttp3.Call updateDecompilationCommentCall(@javax.annotation.Nonnull Int } @SuppressWarnings("rawtypes") - private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'commentId' is set if (commentId == null) { throw new ApiException("Missing the required parameter 'commentId' when calling updateDecompilationComment(Async)"); @@ -583,7 +612,7 @@ private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotat throw new ApiException("Missing the required parameter 'commentUpdateRequest' when calling updateDecompilationComment(Async)"); } - return updateDecompilationCommentCall(commentId, functionId, commentUpdateRequest, _callback); + return updateDecompilationCommentCall(commentId, functionId, commentUpdateRequest, apiKey, _callback); } @@ -593,6 +622,7 @@ private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotat * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @return BaseResponseCommentResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -605,8 +635,8 @@ private okhttp3.Call updateDecompilationCommentValidateBeforeCall(@javax.annotat 400 Bad Request - */ - public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException { - ApiResponse localVarResp = updateDecompilationCommentWithHttpInfo(commentId, functionId, commentUpdateRequest); + public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = updateDecompilationCommentWithHttpInfo(commentId, functionId, commentUpdateRequest, apiKey); return localVarResp.getData(); } @@ -616,6 +646,7 @@ public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation. * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCommentResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -628,8 +659,8 @@ public BaseResponseCommentResponse updateDecompilationComment(@javax.annotation. 400 Bad Request - */ - public ApiResponse updateDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest) throws ApiException { - okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, null); + public ApiResponse updateDecompilationCommentWithHttpInfo(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -640,6 +671,7 @@ public ApiResponse updateDecompilationCommentWithHt * @param commentId (required) * @param functionId (required) * @param commentUpdateRequest (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -653,9 +685,9 @@ public ApiResponse updateDecompilationCommentWithHt 400 Bad Request - */ - public okhttp3.Call updateDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateDecompilationCommentAsync(@javax.annotation.Nonnull Integer commentId, @javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull CommentUpdateRequest commentUpdateRequest, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, _callback); + okhttp3.Call localVarCall = updateDecompilationCommentValidateBeforeCall(commentId, functionId, commentUpdateRequest, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java b/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java index 951e7cc..3e669c6 100644 --- a/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java +++ b/src/main/java/ai/reveng/api/FunctionsRenamingHistoryApi.java @@ -77,6 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for batchRenameFunction * @param functionsListRename (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -88,7 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call batchRenameFunctionCall(@javax.annotation.Nonnull FunctionsListRename functionsListRename, final ApiCallback _callback) throws ApiException { + public okhttp3.Call batchRenameFunctionCall(@javax.annotation.Nonnull FunctionsListRename functionsListRename, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -113,6 +114,10 @@ public okhttp3.Call batchRenameFunctionCall(@javax.annotation.Nonnull FunctionsL Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -134,13 +139,13 @@ public okhttp3.Call batchRenameFunctionCall(@javax.annotation.Nonnull FunctionsL } @SuppressWarnings("rawtypes") - private okhttp3.Call batchRenameFunctionValidateBeforeCall(@javax.annotation.Nonnull FunctionsListRename functionsListRename, final ApiCallback _callback) throws ApiException { + private okhttp3.Call batchRenameFunctionValidateBeforeCall(@javax.annotation.Nonnull FunctionsListRename functionsListRename, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionsListRename' is set if (functionsListRename == null) { throw new ApiException("Missing the required parameter 'functionsListRename' when calling batchRenameFunction(Async)"); } - return batchRenameFunctionCall(functionsListRename, _callback); + return batchRenameFunctionCall(functionsListRename, apiKey, _callback); } @@ -148,6 +153,7 @@ private okhttp3.Call batchRenameFunctionValidateBeforeCall(@javax.annotation.Non * Batch Rename Functions * Renames a list of functions using the function IDs Will record name changes in history * @param functionsListRename (required) + * @param apiKey (optional) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -158,8 +164,8 @@ private okhttp3.Call batchRenameFunctionValidateBeforeCall(@javax.annotation.Non 422 Invalid request parameters - */ - public BaseResponse batchRenameFunction(@javax.annotation.Nonnull FunctionsListRename functionsListRename) throws ApiException { - ApiResponse localVarResp = batchRenameFunctionWithHttpInfo(functionsListRename); + public BaseResponse batchRenameFunction(@javax.annotation.Nonnull FunctionsListRename functionsListRename, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = batchRenameFunctionWithHttpInfo(functionsListRename, apiKey); return localVarResp.getData(); } @@ -167,6 +173,7 @@ public BaseResponse batchRenameFunction(@javax.annotation.Nonnull FunctionsListR * Batch Rename Functions * Renames a list of functions using the function IDs Will record name changes in history * @param functionsListRename (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -177,8 +184,8 @@ public BaseResponse batchRenameFunction(@javax.annotation.Nonnull FunctionsListR 422 Invalid request parameters - */ - public ApiResponse batchRenameFunctionWithHttpInfo(@javax.annotation.Nonnull FunctionsListRename functionsListRename) throws ApiException { - okhttp3.Call localVarCall = batchRenameFunctionValidateBeforeCall(functionsListRename, null); + public ApiResponse batchRenameFunctionWithHttpInfo(@javax.annotation.Nonnull FunctionsListRename functionsListRename, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = batchRenameFunctionValidateBeforeCall(functionsListRename, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -187,6 +194,7 @@ public ApiResponse batchRenameFunctionWithHttpInfo(@javax.annotati * Batch Rename Functions (asynchronously) * Renames a list of functions using the function IDs Will record name changes in history * @param functionsListRename (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -198,9 +206,9 @@ public ApiResponse batchRenameFunctionWithHttpInfo(@javax.annotati 422 Invalid request parameters - */ - public okhttp3.Call batchRenameFunctionAsync(@javax.annotation.Nonnull FunctionsListRename functionsListRename, final ApiCallback _callback) throws ApiException { + public okhttp3.Call batchRenameFunctionAsync(@javax.annotation.Nonnull FunctionsListRename functionsListRename, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = batchRenameFunctionValidateBeforeCall(functionsListRename, _callback); + okhttp3.Call localVarCall = batchRenameFunctionValidateBeforeCall(functionsListRename, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -208,6 +216,7 @@ public okhttp3.Call batchRenameFunctionAsync(@javax.annotation.Nonnull Functions /** * Build call for getFunctionNameHistory * @param functionId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -219,7 +228,7 @@ public okhttp3.Call batchRenameFunctionAsync(@javax.annotation.Nonnull Functions 422 Invalid request parameters - */ - public okhttp3.Call getFunctionNameHistoryCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionNameHistoryCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -245,6 +254,10 @@ public okhttp3.Call getFunctionNameHistoryCall(@javax.annotation.Nonnull Integer Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -265,13 +278,13 @@ public okhttp3.Call getFunctionNameHistoryCall(@javax.annotation.Nonnull Integer } @SuppressWarnings("rawtypes") - private okhttp3.Call getFunctionNameHistoryValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getFunctionNameHistoryValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling getFunctionNameHistory(Async)"); } - return getFunctionNameHistoryCall(functionId, _callback); + return getFunctionNameHistoryCall(functionId, apiKey, _callback); } @@ -279,6 +292,7 @@ private okhttp3.Call getFunctionNameHistoryValidateBeforeCall(@javax.annotation. * Get Function Name History * Gets the name history of a function using the function ID * @param functionId (required) + * @param apiKey (optional) * @return BaseResponseListFunctionNameHistory * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -289,8 +303,8 @@ private okhttp3.Call getFunctionNameHistoryValidateBeforeCall(@javax.annotation. 422 Invalid request parameters - */ - public BaseResponseListFunctionNameHistory getFunctionNameHistory(@javax.annotation.Nonnull Integer functionId) throws ApiException { - ApiResponse localVarResp = getFunctionNameHistoryWithHttpInfo(functionId); + public BaseResponseListFunctionNameHistory getFunctionNameHistory(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getFunctionNameHistoryWithHttpInfo(functionId, apiKey); return localVarResp.getData(); } @@ -298,6 +312,7 @@ public BaseResponseListFunctionNameHistory getFunctionNameHistory(@javax.annotat * Get Function Name History * Gets the name history of a function using the function ID * @param functionId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponseListFunctionNameHistory> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -308,8 +323,8 @@ public BaseResponseListFunctionNameHistory getFunctionNameHistory(@javax.annotat 422 Invalid request parameters - */ - public ApiResponse getFunctionNameHistoryWithHttpInfo(@javax.annotation.Nonnull Integer functionId) throws ApiException { - okhttp3.Call localVarCall = getFunctionNameHistoryValidateBeforeCall(functionId, null); + public ApiResponse getFunctionNameHistoryWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getFunctionNameHistoryValidateBeforeCall(functionId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -318,6 +333,7 @@ public ApiResponse getFunctionNameHistoryWi * Get Function Name History (asynchronously) * Gets the name history of a function using the function ID * @param functionId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -329,9 +345,9 @@ public ApiResponse getFunctionNameHistoryWi 422 Invalid request parameters - */ - public okhttp3.Call getFunctionNameHistoryAsync(@javax.annotation.Nonnull Integer functionId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFunctionNameHistoryAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getFunctionNameHistoryValidateBeforeCall(functionId, _callback); + okhttp3.Call localVarCall = getFunctionNameHistoryValidateBeforeCall(functionId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -340,6 +356,7 @@ public okhttp3.Call getFunctionNameHistoryAsync(@javax.annotation.Nonnull Intege * Build call for renameFunctionId * @param functionId (required) * @param functionRename (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -351,7 +368,7 @@ public okhttp3.Call getFunctionNameHistoryAsync(@javax.annotation.Nonnull Intege 422 Invalid request parameters - */ - public okhttp3.Call renameFunctionIdCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, final ApiCallback _callback) throws ApiException { + public okhttp3.Call renameFunctionIdCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -377,6 +394,10 @@ public okhttp3.Call renameFunctionIdCall(@javax.annotation.Nonnull Integer funct Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -398,7 +419,7 @@ public okhttp3.Call renameFunctionIdCall(@javax.annotation.Nonnull Integer funct } @SuppressWarnings("rawtypes") - private okhttp3.Call renameFunctionIdValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, final ApiCallback _callback) throws ApiException { + private okhttp3.Call renameFunctionIdValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling renameFunctionId(Async)"); @@ -409,7 +430,7 @@ private okhttp3.Call renameFunctionIdValidateBeforeCall(@javax.annotation.Nonnul throw new ApiException("Missing the required parameter 'functionRename' when calling renameFunctionId(Async)"); } - return renameFunctionIdCall(functionId, functionRename, _callback); + return renameFunctionIdCall(functionId, functionRename, apiKey, _callback); } @@ -418,6 +439,7 @@ private okhttp3.Call renameFunctionIdValidateBeforeCall(@javax.annotation.Nonnul * Renames a function using the function ID Will record name change history * @param functionId (required) * @param functionRename (required) + * @param apiKey (optional) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -428,8 +450,8 @@ private okhttp3.Call renameFunctionIdValidateBeforeCall(@javax.annotation.Nonnul 422 Invalid request parameters - */ - public BaseResponse renameFunctionId(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename) throws ApiException { - ApiResponse localVarResp = renameFunctionIdWithHttpInfo(functionId, functionRename); + public BaseResponse renameFunctionId(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = renameFunctionIdWithHttpInfo(functionId, functionRename, apiKey); return localVarResp.getData(); } @@ -438,6 +460,7 @@ public BaseResponse renameFunctionId(@javax.annotation.Nonnull Integer functionI * Renames a function using the function ID Will record name change history * @param functionId (required) * @param functionRename (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -448,8 +471,8 @@ public BaseResponse renameFunctionId(@javax.annotation.Nonnull Integer functionI 422 Invalid request parameters - */ - public ApiResponse renameFunctionIdWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename) throws ApiException { - okhttp3.Call localVarCall = renameFunctionIdValidateBeforeCall(functionId, functionRename, null); + public ApiResponse renameFunctionIdWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = renameFunctionIdValidateBeforeCall(functionId, functionRename, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -459,6 +482,7 @@ public ApiResponse renameFunctionIdWithHttpInfo(@javax.annotation. * Renames a function using the function ID Will record name change history * @param functionId (required) * @param functionRename (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -470,9 +494,9 @@ public ApiResponse renameFunctionIdWithHttpInfo(@javax.annotation. 422 Invalid request parameters - */ - public okhttp3.Call renameFunctionIdAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, final ApiCallback _callback) throws ApiException { + public okhttp3.Call renameFunctionIdAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull FunctionRename functionRename, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = renameFunctionIdValidateBeforeCall(functionId, functionRename, _callback); + okhttp3.Call localVarCall = renameFunctionIdValidateBeforeCall(functionId, functionRename, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -481,6 +505,7 @@ public okhttp3.Call renameFunctionIdAsync(@javax.annotation.Nonnull Integer func * Build call for revertFunctionName * @param functionId (required) * @param historyId (required) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -492,7 +517,7 @@ public okhttp3.Call renameFunctionIdAsync(@javax.annotation.Nonnull Integer func 422 Invalid request parameters - */ - public okhttp3.Call revertFunctionNameCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call revertFunctionNameCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -519,6 +544,10 @@ public okhttp3.Call revertFunctionNameCall(@javax.annotation.Nonnull Integer fun Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -539,7 +568,7 @@ public okhttp3.Call revertFunctionNameCall(@javax.annotation.Nonnull Integer fun } @SuppressWarnings("rawtypes") - private okhttp3.Call revertFunctionNameValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call revertFunctionNameValidateBeforeCall(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { // verify the required parameter 'functionId' is set if (functionId == null) { throw new ApiException("Missing the required parameter 'functionId' when calling revertFunctionName(Async)"); @@ -550,7 +579,7 @@ private okhttp3.Call revertFunctionNameValidateBeforeCall(@javax.annotation.Nonn throw new ApiException("Missing the required parameter 'historyId' when calling revertFunctionName(Async)"); } - return revertFunctionNameCall(functionId, historyId, _callback); + return revertFunctionNameCall(functionId, historyId, apiKey, _callback); } @@ -559,6 +588,7 @@ private okhttp3.Call revertFunctionNameValidateBeforeCall(@javax.annotation.Nonn * Reverts the function name to a previous name using the function ID and history ID * @param functionId (required) * @param historyId (required) + * @param apiKey (optional) * @return BaseResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -569,8 +599,8 @@ private okhttp3.Call revertFunctionNameValidateBeforeCall(@javax.annotation.Nonn 422 Invalid request parameters - */ - public BaseResponse revertFunctionName(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId) throws ApiException { - ApiResponse localVarResp = revertFunctionNameWithHttpInfo(functionId, historyId); + public BaseResponse revertFunctionName(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = revertFunctionNameWithHttpInfo(functionId, historyId, apiKey); return localVarResp.getData(); } @@ -579,6 +609,7 @@ public BaseResponse revertFunctionName(@javax.annotation.Nonnull Integer functio * Reverts the function name to a previous name using the function ID and history ID * @param functionId (required) * @param historyId (required) + * @param apiKey (optional) * @return ApiResponse<BaseResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -589,8 +620,8 @@ public BaseResponse revertFunctionName(@javax.annotation.Nonnull Integer functio 422 Invalid request parameters - */ - public ApiResponse revertFunctionNameWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId) throws ApiException { - okhttp3.Call localVarCall = revertFunctionNameValidateBeforeCall(functionId, historyId, null); + public ApiResponse revertFunctionNameWithHttpInfo(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = revertFunctionNameValidateBeforeCall(functionId, historyId, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -600,6 +631,7 @@ public ApiResponse revertFunctionNameWithHttpInfo(@javax.annotatio * Reverts the function name to a previous name using the function ID and history ID * @param functionId (required) * @param historyId (required) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -611,9 +643,9 @@ public ApiResponse revertFunctionNameWithHttpInfo(@javax.annotatio 422 Invalid request parameters - */ - public okhttp3.Call revertFunctionNameAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call revertFunctionNameAsync(@javax.annotation.Nonnull Integer functionId, @javax.annotation.Nonnull Integer historyId, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = revertFunctionNameValidateBeforeCall(functionId, historyId, _callback); + okhttp3.Call localVarCall = revertFunctionNameValidateBeforeCall(functionId, historyId, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/ModelsApi.java b/src/main/java/ai/reveng/api/ModelsApi.java index 2242805..8f2276d 100644 --- a/src/main/java/ai/reveng/api/ModelsApi.java +++ b/src/main/java/ai/reveng/api/ModelsApi.java @@ -74,6 +74,7 @@ public void setCustomBaseUrl(String customBaseUrl) { /** * Build call for getModels + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -85,7 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 Invalid request parameters - */ - public okhttp3.Call getModelsCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getModelsCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -110,6 +111,10 @@ public okhttp3.Call getModelsCall(final ApiCallback _callback) throws ApiExcepti Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -130,14 +135,15 @@ public okhttp3.Call getModelsCall(final ApiCallback _callback) throws ApiExcepti } @SuppressWarnings("rawtypes") - private okhttp3.Call getModelsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getModelsCall(_callback); + private okhttp3.Call getModelsValidateBeforeCall(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return getModelsCall(apiKey, _callback); } /** * Gets models * Gets active models available for analysis. + * @param apiKey (optional) * @return BaseResponseModelsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -148,14 +154,15 @@ private okhttp3.Call getModelsValidateBeforeCall(final ApiCallback _callback) th 422 Invalid request parameters - */ - public BaseResponseModelsResponse getModels() throws ApiException { - ApiResponse localVarResp = getModelsWithHttpInfo(); + public BaseResponseModelsResponse getModels(@javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = getModelsWithHttpInfo(apiKey); return localVarResp.getData(); } /** * Gets models * Gets active models available for analysis. + * @param apiKey (optional) * @return ApiResponse<BaseResponseModelsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -166,8 +173,8 @@ public BaseResponseModelsResponse getModels() throws ApiException { 422 Invalid request parameters - */ - public ApiResponse getModelsWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getModelsValidateBeforeCall(null); + public ApiResponse getModelsWithHttpInfo(@javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = getModelsValidateBeforeCall(apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -175,6 +182,7 @@ public ApiResponse getModelsWithHttpInfo() throws Ap /** * Gets models (asynchronously) * Gets active models available for analysis. + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -186,9 +194,9 @@ public ApiResponse getModelsWithHttpInfo() throws Ap 422 Invalid request parameters - */ - public okhttp3.Call getModelsAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getModelsAsync(@javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getModelsValidateBeforeCall(_callback); + okhttp3.Call localVarCall = getModelsValidateBeforeCall(apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/api/SearchApi.java b/src/main/java/ai/reveng/api/SearchApi.java index a8a3cbc..6ed69b7 100644 --- a/src/main/java/ai/reveng/api/SearchApi.java +++ b/src/main/java/ai/reveng/api/SearchApi.java @@ -87,6 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @param tags The tags to be searched for (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -98,7 +99,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -151,6 +152,10 @@ public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, localVarQueryParams.addAll(localVarApiClient.parameterToPair("user_files_only", userFilesOnly)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -171,8 +176,8 @@ public okhttp3.Call searchBinariesCall(@javax.annotation.Nullable Integer page, } @SuppressWarnings("rawtypes") - private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, final ApiCallback _callback) throws ApiException { - return searchBinariesCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, _callback); + private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return searchBinariesCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey, _callback); } @@ -186,6 +191,7 @@ private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable * @param tags The tags to be searched for (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) + * @param apiKey (optional) * @return BaseResponseBinarySearchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -196,8 +202,8 @@ private okhttp3.Call searchBinariesValidateBeforeCall(@javax.annotation.Nullable 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly) throws ApiException { - ApiResponse localVarResp = searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly); + public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = searchBinariesWithHttpInfo(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey); return localVarResp.getData(); } @@ -211,6 +217,7 @@ public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullabl * @param tags The tags to be searched for (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) + * @param apiKey (optional) * @return ApiResponse<BaseResponseBinarySearchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -221,8 +228,8 @@ public BaseResponseBinarySearchResponse searchBinaries(@javax.annotation.Nullabl 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public ApiResponse searchBinariesWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly) throws ApiException { - okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, null); + public ApiResponse searchBinariesWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -237,6 +244,7 @@ public ApiResponse searchBinariesWithHttpInfo( * @param tags The tags to be searched for (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) * @param userFilesOnly Whether to only search user's uploaded files (optional, default to false) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -248,9 +256,9 @@ public ApiResponse searchBinariesWithHttpInfo( 422 You must provide at least one of the filters; partial_name, partial_sha256, tags or model_name to search - */ - public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String partialSha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable Boolean userFilesOnly, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, _callback); + okhttp3.Call localVarCall = searchBinariesValidateBeforeCall(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -267,6 +275,7 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional) * @param orderByDirection The order direction in which to return results (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -279,7 +288,7 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page, 404 The model name provided does not exist - */ - public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -344,6 +353,10 @@ public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer pag localVarQueryParams.addAll(localVarApiClient.parameterToPair("order_by_direction", orderByDirection)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -364,8 +377,8 @@ public okhttp3.Call searchCollectionsCall(@javax.annotation.Nullable Integer pag } @SuppressWarnings("rawtypes") - private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException { - return searchCollectionsCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, _callback); + private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return searchCollectionsCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey, _callback); } @@ -382,6 +395,7 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional) * @param orderByDirection The order direction in which to return results (optional) + * @param apiKey (optional) * @return BaseResponseCollectionSearchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -393,8 +407,8 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla 404 The model name provided does not exist - */ - public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection) throws ApiException { - ApiResponse localVarResp = searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection); + public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = searchCollectionsWithHttpInfo(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey); return localVarResp.getData(); } @@ -411,6 +425,7 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation. * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional) * @param orderByDirection The order direction in which to return results (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseCollectionSearchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -422,8 +437,8 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation. 404 The model name provided does not exist - */ - public ApiResponse searchCollectionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection) throws ApiException { - okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, null); + public ApiResponse searchCollectionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -441,6 +456,7 @@ public ApiResponse searchCollectionsWithHt * @param filters The filters to be used for the search (optional) * @param orderBy The field to sort the order by in the results (optional) * @param orderByDirection The order direction in which to return results (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -453,9 +469,9 @@ public ApiResponse searchCollectionsWithHt 404 The model name provided does not exist - */ - public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialCollectionName, @javax.annotation.Nullable String partialBinaryName, @javax.annotation.Nullable String partialBinarySha256, @javax.annotation.Nullable List tags, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable List filters, @javax.annotation.Nullable AppApiRestV2CollectionsEnumsOrderBy orderBy, @javax.annotation.Nullable Order orderByDirection, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, _callback); + okhttp3.Call localVarCall = searchCollectionsValidateBeforeCall(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -466,6 +482,7 @@ public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer pa * @param pageSize Number of items per page. (optional, default to 10) * @param partialName The partial or full name of the function being searched (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) + * @param apiKey (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -477,7 +494,7 @@ public okhttp3.Call searchCollectionsAsync(@javax.annotation.Nullable Integer pa 422 You must provide at least one of the filters; partial_name, or model_name to search - */ - public okhttp3.Call searchFunctionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchFunctionsCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -518,6 +535,10 @@ public okhttp3.Call searchFunctionsCall(@javax.annotation.Nullable Integer page, localVarQueryParams.addAll(localVarApiClient.parameterToPair("model_name", modelName)); } + if (apiKey != null) { + localVarCookieParams.put("api_key", localVarApiClient.parameterToString(apiKey)); + } + final String[] localVarAccepts = { "application/json" }; @@ -538,8 +559,8 @@ public okhttp3.Call searchFunctionsCall(@javax.annotation.Nullable Integer page, } @SuppressWarnings("rawtypes") - private okhttp3.Call searchFunctionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, final ApiCallback _callback) throws ApiException { - return searchFunctionsCall(page, pageSize, partialName, modelName, _callback); + private okhttp3.Call searchFunctionsValidateBeforeCall(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { + return searchFunctionsCall(page, pageSize, partialName, modelName, apiKey, _callback); } @@ -550,6 +571,7 @@ private okhttp3.Call searchFunctionsValidateBeforeCall(@javax.annotation.Nullabl * @param pageSize Number of items per page. (optional, default to 10) * @param partialName The partial or full name of the function being searched (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) + * @param apiKey (optional) * @return BaseResponseFunctionSearchResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -560,8 +582,8 @@ private okhttp3.Call searchFunctionsValidateBeforeCall(@javax.annotation.Nullabl 422 You must provide at least one of the filters; partial_name, or model_name to search - */ - public BaseResponseFunctionSearchResponse searchFunctions(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName) throws ApiException { - ApiResponse localVarResp = searchFunctionsWithHttpInfo(page, pageSize, partialName, modelName); + public BaseResponseFunctionSearchResponse searchFunctions(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable String apiKey) throws ApiException { + ApiResponse localVarResp = searchFunctionsWithHttpInfo(page, pageSize, partialName, modelName, apiKey); return localVarResp.getData(); } @@ -572,6 +594,7 @@ public BaseResponseFunctionSearchResponse searchFunctions(@javax.annotation.Null * @param pageSize Number of items per page. (optional, default to 10) * @param partialName The partial or full name of the function being searched (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) + * @param apiKey (optional) * @return ApiResponse<BaseResponseFunctionSearchResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -582,8 +605,8 @@ public BaseResponseFunctionSearchResponse searchFunctions(@javax.annotation.Null 422 You must provide at least one of the filters; partial_name, or model_name to search - */ - public ApiResponse searchFunctionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName) throws ApiException { - okhttp3.Call localVarCall = searchFunctionsValidateBeforeCall(page, pageSize, partialName, modelName, null); + public ApiResponse searchFunctionsWithHttpInfo(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable String apiKey) throws ApiException { + okhttp3.Call localVarCall = searchFunctionsValidateBeforeCall(page, pageSize, partialName, modelName, apiKey, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -595,6 +618,7 @@ public ApiResponse searchFunctionsWithHttpIn * @param pageSize Number of items per page. (optional, default to 10) * @param partialName The partial or full name of the function being searched (optional) * @param modelName The name of the model used to analyze the binary the function belongs to (optional) + * @param apiKey (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -606,9 +630,9 @@ public ApiResponse searchFunctionsWithHttpIn 422 You must provide at least one of the filters; partial_name, or model_name to search - */ - public okhttp3.Call searchFunctionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, final ApiCallback _callback) throws ApiException { + public okhttp3.Call searchFunctionsAsync(@javax.annotation.Nullable Integer page, @javax.annotation.Nullable Integer pageSize, @javax.annotation.Nullable String partialName, @javax.annotation.Nullable String modelName, @javax.annotation.Nullable String apiKey, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = searchFunctionsValidateBeforeCall(page, pageSize, partialName, modelName, _callback); + okhttp3.Call localVarCall = searchFunctionsValidateBeforeCall(page, pageSize, partialName, modelName, apiKey, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java index a025e06..8bbc05a 100644 --- a/src/main/java/ai/reveng/invoker/ApiClient.java +++ b/src/main/java/ai/reveng/invoker/ApiClient.java @@ -146,7 +146,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/2.37.4/java"); + setUserAgent("OpenAPI-Generator/2.38.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java index 32753c0..5e93812 100644 --- a/src/main/java/ai/reveng/invoker/Configuration.java +++ b/src/main/java/ai/reveng/invoker/Configuration.java @@ -18,7 +18,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "2.37.4"; + public static final String VERSION = "2.38.0"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/test/java/ai/reveng/api/AnalysesCommentsApiTest.java b/src/test/java/ai/reveng/api/AnalysesCommentsApiTest.java index 833bee3..1e819e4 100644 --- a/src/test/java/ai/reveng/api/AnalysesCommentsApiTest.java +++ b/src/test/java/ai/reveng/api/AnalysesCommentsApiTest.java @@ -46,7 +46,8 @@ public class AnalysesCommentsApiTest { public void createAnalysisCommentTest() throws ApiException { Integer analysisId = null; CommentBase commentBase = null; - BaseResponseCommentResponse response = api.createAnalysisComment(analysisId, commentBase); + String apiKey = null; + BaseResponseCommentResponse response = api.createAnalysisComment(analysisId, commentBase, apiKey); // TODO: test validations } @@ -61,7 +62,8 @@ public void createAnalysisCommentTest() throws ApiException { public void deleteAnalysisCommentTest() throws ApiException { Integer commentId = null; Integer analysisId = null; - BaseResponseBool response = api.deleteAnalysisComment(commentId, analysisId); + String apiKey = null; + BaseResponseBool response = api.deleteAnalysisComment(commentId, analysisId, apiKey); // TODO: test validations } @@ -75,7 +77,8 @@ public void deleteAnalysisCommentTest() throws ApiException { @Test public void getAnalysisCommentsTest() throws ApiException { Integer analysisId = null; - BaseResponseListCommentResponse response = api.getAnalysisComments(analysisId); + String apiKey = null; + BaseResponseListCommentResponse response = api.getAnalysisComments(analysisId, apiKey); // TODO: test validations } @@ -91,7 +94,8 @@ public void updateAnalysisCommentTest() throws ApiException { Integer commentId = null; Integer analysisId = null; CommentUpdateRequest commentUpdateRequest = null; - BaseResponseCommentResponse response = api.updateAnalysisComment(commentId, analysisId, commentUpdateRequest); + String apiKey = null; + BaseResponseCommentResponse response = api.updateAnalysisComment(commentId, analysisId, commentUpdateRequest, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java b/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java index 18db6ea..350cc69 100644 --- a/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java +++ b/src/test/java/ai/reveng/api/AnalysesCoreApiTest.java @@ -64,7 +64,8 @@ public class AnalysesCoreApiTest { @Test public void createAnalysisTest() throws ApiException { AnalysisCreateRequest analysisCreateRequest = null; - BaseResponseAnalysisCreateResponse response = api.createAnalysis(analysisCreateRequest); + String apiKey = null; + BaseResponseAnalysisCreateResponse response = api.createAnalysis(analysisCreateRequest, apiKey); // TODO: test validations } @@ -78,7 +79,8 @@ public void createAnalysisTest() throws ApiException { @Test public void deleteAnalysisTest() throws ApiException { Integer analysisId = null; - BaseResponseDict response = api.deleteAnalysis(analysisId); + String apiKey = null; + BaseResponseDict response = api.deleteAnalysis(analysisId, apiKey); // TODO: test validations } @@ -92,7 +94,8 @@ public void deleteAnalysisTest() throws ApiException { @Test public void getAnalysisBasicInfoTest() throws ApiException { Integer analysisId = null; - BaseResponseBasic response = api.getAnalysisBasicInfo(analysisId); + String apiKey = null; + BaseResponseBasic response = api.getAnalysisBasicInfo(analysisId, apiKey); // TODO: test validations } @@ -106,7 +109,8 @@ public void getAnalysisBasicInfoTest() throws ApiException { @Test public void getAnalysisFunctionMapTest() throws ApiException { Integer analysisId = null; - BaseResponseAnalysisFunctionMapping response = api.getAnalysisFunctionMap(analysisId); + String apiKey = null; + BaseResponseAnalysisFunctionMapping response = api.getAnalysisFunctionMap(analysisId, apiKey); // TODO: test validations } @@ -120,7 +124,8 @@ public void getAnalysisFunctionMapTest() throws ApiException { @Test public void getAnalysisLogsTest() throws ApiException { Integer analysisId = null; - BaseResponseLogs response = api.getAnalysisLogs(analysisId); + String apiKey = null; + BaseResponseLogs response = api.getAnalysisLogs(analysisId, apiKey); // TODO: test validations } @@ -134,7 +139,8 @@ public void getAnalysisLogsTest() throws ApiException { @Test public void getAnalysisParamsTest() throws ApiException { Integer analysisId = null; - BaseResponseParams response = api.getAnalysisParams(analysisId); + String apiKey = null; + BaseResponseParams response = api.getAnalysisParams(analysisId, apiKey); // TODO: test validations } @@ -148,7 +154,8 @@ public void getAnalysisParamsTest() throws ApiException { @Test public void getAnalysisStatusTest() throws ApiException { Integer analysisId = null; - BaseResponseStatus response = api.getAnalysisStatus(analysisId); + String apiKey = null; + BaseResponseStatus response = api.getAnalysisStatus(analysisId, apiKey); // TODO: test validations } @@ -172,7 +179,8 @@ public void listAnalysesTest() throws ApiException { Integer offset = null; AppApiRestV2AnalysesEnumsOrderBy orderBy = null; Order order = null; - BaseResponseRecent response = api.listAnalyses(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order); + String apiKey = null; + BaseResponseRecent response = api.listAnalyses(searchTerm, workspace, status, modelName, dynamicExecutionStatus, usernames, sha256Hash, limit, offset, orderBy, order, apiKey); // TODO: test validations } @@ -186,7 +194,8 @@ public void listAnalysesTest() throws ApiException { @Test public void lookupBinaryIdTest() throws ApiException { Integer binaryId = null; - Object response = api.lookupBinaryId(binaryId); + String apiKey = null; + Object response = api.lookupBinaryId(binaryId, apiKey); // TODO: test validations } @@ -201,7 +210,8 @@ public void lookupBinaryIdTest() throws ApiException { public void requeueAnalysisTest() throws ApiException { Integer analysisId = null; ReAnalysisForm reAnalysisForm = null; - BaseResponseCreated response = api.requeueAnalysis(analysisId, reAnalysisForm); + String apiKey = null; + BaseResponseCreated response = api.requeueAnalysis(analysisId, reAnalysisForm, apiKey); // TODO: test validations } @@ -216,7 +226,8 @@ public void requeueAnalysisTest() throws ApiException { public void updateAnalysisTest() throws ApiException { Integer analysisId = null; AnalysisUpdateRequest analysisUpdateRequest = null; - BaseResponseAnalysisDetailResponse response = api.updateAnalysis(analysisId, analysisUpdateRequest); + String apiKey = null; + BaseResponseAnalysisDetailResponse response = api.updateAnalysis(analysisId, analysisUpdateRequest, apiKey); // TODO: test validations } @@ -231,7 +242,8 @@ public void updateAnalysisTest() throws ApiException { public void updateAnalysisTagsTest() throws ApiException { Integer analysisId = null; AnalysisUpdateTagsRequest analysisUpdateTagsRequest = null; - BaseResponseAnalysisUpdateTagsResponse response = api.updateAnalysisTags(analysisId, analysisUpdateTagsRequest); + String apiKey = null; + BaseResponseAnalysisUpdateTagsResponse response = api.updateAnalysisTags(analysisId, analysisUpdateTagsRequest, apiKey); // TODO: test validations } @@ -245,8 +257,9 @@ public void uploadFileTest() throws ApiException { UploadFileType uploadFileType = null; File _file = null; String packedPassword = null; + String apiKey = null; Boolean forceOverwrite = null; - BaseResponseUploadResponse response = api.uploadFile(uploadFileType, _file, packedPassword, forceOverwrite); + BaseResponseUploadResponse response = api.uploadFile(uploadFileType, _file, packedPassword, apiKey, forceOverwrite); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/AnalysesDynamicExecutionApiTest.java b/src/test/java/ai/reveng/api/AnalysesDynamicExecutionApiTest.java index 9e9c9ef..a8d5585 100644 --- a/src/test/java/ai/reveng/api/AnalysesDynamicExecutionApiTest.java +++ b/src/test/java/ai/reveng/api/AnalysesDynamicExecutionApiTest.java @@ -44,7 +44,8 @@ public class AnalysesDynamicExecutionApiTest { @Test public void getDynamicExecutionStatusTest() throws ApiException { Integer analysisId = null; - BaseResponseDynamicExecutionStatus response = api.getDynamicExecutionStatus(analysisId); + String apiKey = null; + BaseResponseDynamicExecutionStatus response = api.getDynamicExecutionStatus(analysisId, apiKey); // TODO: test validations } @@ -56,7 +57,8 @@ public void getDynamicExecutionStatusTest() throws ApiException { @Test public void getNetworkOverviewTest() throws ApiException { Integer analysisId = null; - BaseResponseNetworkOverviewResponse response = api.getNetworkOverview(analysisId); + String apiKey = null; + BaseResponseNetworkOverviewResponse response = api.getNetworkOverview(analysisId, apiKey); // TODO: test validations } @@ -69,7 +71,8 @@ public void getNetworkOverviewTest() throws ApiException { public void getProcessDumpTest() throws ApiException { Integer analysisId = null; String dumpName = null; - Object response = api.getProcessDump(analysisId, dumpName); + String apiKey = null; + Object response = api.getProcessDump(analysisId, dumpName, apiKey); // TODO: test validations } @@ -81,7 +84,8 @@ public void getProcessDumpTest() throws ApiException { @Test public void getProcessDumpsTest() throws ApiException { Integer analysisId = null; - BaseResponseProcessDumps response = api.getProcessDumps(analysisId); + String apiKey = null; + BaseResponseProcessDumps response = api.getProcessDumps(analysisId, apiKey); // TODO: test validations } @@ -93,7 +97,8 @@ public void getProcessDumpsTest() throws ApiException { @Test public void getProcessRegistryTest() throws ApiException { Integer analysisId = null; - BaseResponseProcessRegistry response = api.getProcessRegistry(analysisId); + String apiKey = null; + BaseResponseProcessRegistry response = api.getProcessRegistry(analysisId, apiKey); // TODO: test validations } @@ -105,7 +110,8 @@ public void getProcessRegistryTest() throws ApiException { @Test public void getProcessTreeTest() throws ApiException { Integer analysisId = null; - BaseResponseProcessTree response = api.getProcessTree(analysisId); + String apiKey = null; + BaseResponseProcessTree response = api.getProcessTree(analysisId, apiKey); // TODO: test validations } @@ -117,7 +123,8 @@ public void getProcessTreeTest() throws ApiException { @Test public void getTtpsTest() throws ApiException { Integer analysisId = null; - BaseResponseTTPS response = api.getTtps(analysisId); + String apiKey = null; + BaseResponseTTPS response = api.getTtps(analysisId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/AnalysesResultsMetadataApiTest.java b/src/test/java/ai/reveng/api/AnalysesResultsMetadataApiTest.java index a4073b7..dd5c1da 100644 --- a/src/test/java/ai/reveng/api/AnalysesResultsMetadataApiTest.java +++ b/src/test/java/ai/reveng/api/AnalysesResultsMetadataApiTest.java @@ -44,7 +44,8 @@ public class AnalysesResultsMetadataApiTest { @Test public void getCapabilitiesTest() throws ApiException { Integer analysisId = null; - BaseResponseCapabilities response = api.getCapabilities(analysisId); + String apiKey = null; + BaseResponseCapabilities response = api.getCapabilities(analysisId, apiKey); // TODO: test validations } @@ -57,7 +58,8 @@ public void getCapabilitiesTest() throws ApiException { public void getCommunitiesTest() throws ApiException { Integer analysisId = null; String userName = null; - BaseResponseCommunities response = api.getCommunities(analysisId, userName); + String apiKey = null; + BaseResponseCommunities response = api.getCommunities(analysisId, userName, apiKey); // TODO: test validations } @@ -74,7 +76,8 @@ public void getFunctionsListTest() throws ApiException { String searchTerm = null; Integer minVAddr = null; Integer maxVAddr = null; - BaseResponseAnalysisFunctions response = api.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr); + String apiKey = null; + BaseResponseAnalysisFunctions response = api.getFunctionsList(analysisId, searchTerm, minVAddr, maxVAddr, apiKey); // TODO: test validations } @@ -86,7 +89,8 @@ public void getFunctionsListTest() throws ApiException { @Test public void getPdfTest() throws ApiException { Integer analysisId = null; - Object response = api.getPdf(analysisId); + String apiKey = null; + Object response = api.getPdf(analysisId, apiKey); // TODO: test validations } @@ -98,7 +102,8 @@ public void getPdfTest() throws ApiException { @Test public void getSbomTest() throws ApiException { Integer analysisId = null; - BaseResponseListSBOM response = api.getSbom(analysisId); + String apiKey = null; + BaseResponseListSBOM response = api.getSbom(analysisId, apiKey); // TODO: test validations } @@ -110,7 +115,8 @@ public void getSbomTest() throws ApiException { @Test public void getTagsTest() throws ApiException { Integer analysisId = null; - BaseResponseAnalysisTags response = api.getTags(analysisId); + String apiKey = null; + BaseResponseAnalysisTags response = api.getTags(analysisId, apiKey); // TODO: test validations } @@ -122,7 +128,8 @@ public void getTagsTest() throws ApiException { @Test public void getVulnerabilitiesTest() throws ApiException { Integer analysisId = null; - BaseResponseVulnerabilities response = api.getVulnerabilities(analysisId); + String apiKey = null; + BaseResponseVulnerabilities response = api.getVulnerabilities(analysisId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/AnalysesSecurityChecksApiTest.java b/src/test/java/ai/reveng/api/AnalysesSecurityChecksApiTest.java index f14d937..43c2260 100644 --- a/src/test/java/ai/reveng/api/AnalysesSecurityChecksApiTest.java +++ b/src/test/java/ai/reveng/api/AnalysesSecurityChecksApiTest.java @@ -42,7 +42,8 @@ public class AnalysesSecurityChecksApiTest { @Test public void createScurityChecksTaskTest() throws ApiException { Integer analysisId = null; - QueuedSecurityChecksTaskResponse response = api.createScurityChecksTask(analysisId); + String apiKey = null; + QueuedSecurityChecksTaskResponse response = api.createScurityChecksTask(analysisId, apiKey); // TODO: test validations } @@ -58,7 +59,8 @@ public void getSecurityChecksTest() throws ApiException { Integer analysisId = null; Integer page = null; Integer pageSize = null; - BaseResponseSecurityChecksResponse response = api.getSecurityChecks(analysisId, page, pageSize); + String apiKey = null; + BaseResponseSecurityChecksResponse response = api.getSecurityChecks(analysisId, page, pageSize, apiKey); // TODO: test validations } @@ -70,7 +72,8 @@ public void getSecurityChecksTest() throws ApiException { @Test public void getSecurityChecksTaskStatusTest() throws ApiException { Integer analysisId = null; - CheckSecurityChecksTaskResponse response = api.getSecurityChecksTaskStatus(analysisId); + String apiKey = null; + CheckSecurityChecksTaskResponse response = api.getSecurityChecksTaskStatus(analysisId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/AuthenticationUsersApiTest.java b/src/test/java/ai/reveng/api/AuthenticationUsersApiTest.java index b8785c8..e0fcd07 100644 --- a/src/test/java/ai/reveng/api/AuthenticationUsersApiTest.java +++ b/src/test/java/ai/reveng/api/AuthenticationUsersApiTest.java @@ -43,7 +43,8 @@ public class AuthenticationUsersApiTest { */ @Test public void getRequesterUserInfoTest() throws ApiException { - BaseResponseGetUserResponse response = api.getRequesterUserInfo(); + String apiKey = null; + BaseResponseGetUserResponse response = api.getRequesterUserInfo(apiKey); // TODO: test validations } @@ -55,7 +56,8 @@ public void getRequesterUserInfoTest() throws ApiException { @Test public void getUserTest() throws ApiException { Integer userId = null; - BaseResponseGetPublicUserResponse response = api.getUser(userId); + String apiKey = null; + BaseResponseGetPublicUserResponse response = api.getUser(userId, apiKey); // TODO: test validations } @@ -66,7 +68,8 @@ public void getUserTest() throws ApiException { */ @Test public void getUserActivityTest() throws ApiException { - BaseResponseListUserActivityResponse response = api.getUserActivity(); + String apiKey = null; + BaseResponseListUserActivityResponse response = api.getUserActivity(apiKey); // TODO: test validations } @@ -79,7 +82,8 @@ public void getUserActivityTest() throws ApiException { */ @Test public void getUserCommentsTest() throws ApiException { - BaseResponseListCommentResponse response = api.getUserComments(); + String apiKey = null; + BaseResponseListCommentResponse response = api.getUserComments(apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/BinariesApiTest.java b/src/test/java/ai/reveng/api/BinariesApiTest.java index 8bc5720..49ec0bd 100644 --- a/src/test/java/ai/reveng/api/BinariesApiTest.java +++ b/src/test/java/ai/reveng/api/BinariesApiTest.java @@ -43,7 +43,8 @@ public class BinariesApiTest { @Test public void downloadZippedBinaryTest() throws ApiException { Integer binaryId = null; - Object response = api.downloadZippedBinary(binaryId); + String apiKey = null; + Object response = api.downloadZippedBinary(binaryId, apiKey); // TODO: test validations } @@ -55,7 +56,8 @@ public void downloadZippedBinaryTest() throws ApiException { @Test public void getBinaryAdditionalDetailsTest() throws ApiException { Integer binaryId = null; - BaseResponseBinaryAdditionalResponse response = api.getBinaryAdditionalDetails(binaryId); + String apiKey = null; + BaseResponseBinaryAdditionalResponse response = api.getBinaryAdditionalDetails(binaryId, apiKey); // TODO: test validations } @@ -67,7 +69,8 @@ public void getBinaryAdditionalDetailsTest() throws ApiException { @Test public void getBinaryDetailsTest() throws ApiException { Integer binaryId = null; - BaseResponseBinaryDetailsResponse response = api.getBinaryDetails(binaryId); + String apiKey = null; + BaseResponseBinaryDetailsResponse response = api.getBinaryDetails(binaryId, apiKey); // TODO: test validations } @@ -79,7 +82,8 @@ public void getBinaryDetailsTest() throws ApiException { @Test public void getBinaryDieInfoTest() throws ApiException { Integer binaryId = null; - BaseResponseListDieMatch response = api.getBinaryDieInfo(binaryId); + String apiKey = null; + BaseResponseListDieMatch response = api.getBinaryDieInfo(binaryId, apiKey); // TODO: test validations } @@ -91,7 +95,8 @@ public void getBinaryDieInfoTest() throws ApiException { @Test public void getBinaryExternalsTest() throws ApiException { Integer binaryId = null; - BaseResponseBinaryExternalsResponse response = api.getBinaryExternals(binaryId); + String apiKey = null; + BaseResponseBinaryExternalsResponse response = api.getBinaryExternals(binaryId, apiKey); // TODO: test validations } @@ -103,7 +108,8 @@ public void getBinaryExternalsTest() throws ApiException { @Test public void getRelatedBinariesTest() throws ApiException { Integer binaryId = null; - BaseResponseChildBinariesResponse response = api.getRelatedBinaries(binaryId); + String apiKey = null; + BaseResponseChildBinariesResponse response = api.getRelatedBinaries(binaryId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/CollectionsApiTest.java b/src/test/java/ai/reveng/api/CollectionsApiTest.java index b7fb485..fa9f541 100644 --- a/src/test/java/ai/reveng/api/CollectionsApiTest.java +++ b/src/test/java/ai/reveng/api/CollectionsApiTest.java @@ -52,7 +52,8 @@ public class CollectionsApiTest { @Test public void createCollectionTest() throws ApiException { CollectionCreateRequest collectionCreateRequest = null; - BaseResponseCollectionResponse response = api.createCollection(collectionCreateRequest); + String apiKey = null; + BaseResponseCollectionResponse response = api.createCollection(collectionCreateRequest, apiKey); // TODO: test validations } @@ -66,7 +67,8 @@ public void createCollectionTest() throws ApiException { @Test public void deleteCollectionTest() throws ApiException { Integer collectionId = null; - BaseResponseBool response = api.deleteCollection(collectionId); + String apiKey = null; + BaseResponseBool response = api.deleteCollection(collectionId, apiKey); // TODO: test validations } @@ -82,7 +84,8 @@ public void getCollectionTest() throws ApiException { Integer collectionId = null; Boolean includeTags = null; Boolean includeBinaries = null; - BaseResponseCollectionResponse response = api.getCollection(collectionId, includeTags, includeBinaries); + String apiKey = null; + BaseResponseCollectionResponse response = api.getCollection(collectionId, includeTags, includeBinaries, apiKey); // TODO: test validations } @@ -101,7 +104,8 @@ public void listCollectionsTest() throws ApiException { Integer offset = null; AppApiRestV2CollectionsEnumsOrderBy orderBy = null; Order order = null; - BaseResponseListCollectionResults response = api.listCollections(searchTerm, filters, limit, offset, orderBy, order); + String apiKey = null; + BaseResponseListCollectionResults response = api.listCollections(searchTerm, filters, limit, offset, orderBy, order, apiKey); // TODO: test validations } @@ -116,7 +120,8 @@ public void listCollectionsTest() throws ApiException { public void updateCollectionTest() throws ApiException { Integer collectionId = null; CollectionUpdateRequest collectionUpdateRequest = null; - BaseResponseCollectionResponse response = api.updateCollection(collectionId, collectionUpdateRequest); + String apiKey = null; + BaseResponseCollectionResponse response = api.updateCollection(collectionId, collectionUpdateRequest, apiKey); // TODO: test validations } @@ -131,7 +136,8 @@ public void updateCollectionTest() throws ApiException { public void updateCollectionBinariesTest() throws ApiException { Integer collectionId = null; CollectionBinariesUpdateRequest collectionBinariesUpdateRequest = null; - BaseResponseCollectionBinariesUpdateResponse response = api.updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest); + String apiKey = null; + BaseResponseCollectionBinariesUpdateResponse response = api.updateCollectionBinaries(collectionId, collectionBinariesUpdateRequest, apiKey); // TODO: test validations } @@ -146,7 +152,8 @@ public void updateCollectionBinariesTest() throws ApiException { public void updateCollectionTagsTest() throws ApiException { Integer collectionId = null; CollectionTagsUpdateRequest collectionTagsUpdateRequest = null; - BaseResponseCollectionTagsUpdateResponse response = api.updateCollectionTags(collectionId, collectionTagsUpdateRequest); + String apiKey = null; + BaseResponseCollectionTagsUpdateResponse response = api.updateCollectionTags(collectionId, collectionTagsUpdateRequest, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/ExternalSourcesApiTest.java b/src/test/java/ai/reveng/api/ExternalSourcesApiTest.java index a84dc8f..f663f56 100644 --- a/src/test/java/ai/reveng/api/ExternalSourcesApiTest.java +++ b/src/test/java/ai/reveng/api/ExternalSourcesApiTest.java @@ -41,7 +41,8 @@ public class ExternalSourcesApiTest { @Test public void createExternalTaskMbTest() throws ApiException { Integer analysisId = null; - BaseResponseStr response = api.createExternalTaskMb(analysisId); + String apiKey = null; + BaseResponseStr response = api.createExternalTaskMb(analysisId, apiKey); // TODO: test validations } @@ -53,7 +54,8 @@ public void createExternalTaskMbTest() throws ApiException { @Test public void createExternalTaskVtTest() throws ApiException { Integer analysisId = null; - BaseResponseStr response = api.createExternalTaskVt(analysisId); + String apiKey = null; + BaseResponseStr response = api.createExternalTaskVt(analysisId, apiKey); // TODO: test validations } @@ -65,7 +67,8 @@ public void createExternalTaskVtTest() throws ApiException { @Test public void getMbDataTest() throws ApiException { Integer analysisId = null; - BaseResponseExternalResponse response = api.getMbData(analysisId); + String apiKey = null; + BaseResponseExternalResponse response = api.getMbData(analysisId, apiKey); // TODO: test validations } @@ -77,7 +80,8 @@ public void getMbDataTest() throws ApiException { @Test public void getMbTaskStatusTest() throws ApiException { Integer analysisId = null; - BaseResponseTaskResponse response = api.getMbTaskStatus(analysisId); + String apiKey = null; + BaseResponseTaskResponse response = api.getMbTaskStatus(analysisId, apiKey); // TODO: test validations } @@ -89,7 +93,8 @@ public void getMbTaskStatusTest() throws ApiException { @Test public void getVtDataTest() throws ApiException { Integer analysisId = null; - BaseResponseExternalResponse response = api.getVtData(analysisId); + String apiKey = null; + BaseResponseExternalResponse response = api.getVtData(analysisId, apiKey); // TODO: test validations } @@ -101,7 +106,8 @@ public void getVtDataTest() throws ApiException { @Test public void getVtTaskStatusTest() throws ApiException { Integer analysisId = null; - BaseResponseTaskResponse response = api.getVtTaskStatus(analysisId); + String apiKey = null; + BaseResponseTaskResponse response = api.getVtTaskStatus(analysisId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FirmwareApiTest.java b/src/test/java/ai/reveng/api/FirmwareApiTest.java index e7621f9..ce47051 100644 --- a/src/test/java/ai/reveng/api/FirmwareApiTest.java +++ b/src/test/java/ai/reveng/api/FirmwareApiTest.java @@ -41,7 +41,8 @@ public class FirmwareApiTest { @Test public void getBinariesForFirmwareTaskTest() throws ApiException { String taskId = null; - Object response = api.getBinariesForFirmwareTask(taskId); + String apiKey = null; + Object response = api.getBinariesForFirmwareTask(taskId, apiKey); // TODO: test validations } @@ -55,8 +56,9 @@ public void getBinariesForFirmwareTaskTest() throws ApiException { @Test public void uploadFirmwareTest() throws ApiException { File _file = null; + String apiKey = null; String password = null; - Object response = api.uploadFirmware(_file, password); + Object response = api.uploadFirmware(_file, apiKey, password); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java b/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java index 8f3545c..6fab622 100644 --- a/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsAiDecompilationApiTest.java @@ -50,7 +50,8 @@ public class FunctionsAiDecompilationApiTest { public void createAiDecompilationCommentTest() throws ApiException { Integer functionId = null; FunctionCommentCreateRequest functionCommentCreateRequest = null; - BaseResponseCommentResponse response = api.createAiDecompilationComment(functionId, functionCommentCreateRequest); + String apiKey = null; + BaseResponseCommentResponse response = api.createAiDecompilationComment(functionId, functionCommentCreateRequest, apiKey); // TODO: test validations } @@ -64,7 +65,8 @@ public void createAiDecompilationCommentTest() throws ApiException { @Test public void createAiDecompilationTaskTest() throws ApiException { Long functionId = null; - BaseResponse response = api.createAiDecompilationTask(functionId); + String apiKey = null; + BaseResponse response = api.createAiDecompilationTask(functionId, apiKey); // TODO: test validations } @@ -79,7 +81,8 @@ public void createAiDecompilationTaskTest() throws ApiException { public void deleteAiDecompilationCommentTest() throws ApiException { Integer commentId = null; Integer functionId = null; - BaseResponseBool response = api.deleteAiDecompilationComment(commentId, functionId); + String apiKey = null; + BaseResponseBool response = api.deleteAiDecompilationComment(commentId, functionId, apiKey); // TODO: test validations } @@ -93,7 +96,8 @@ public void deleteAiDecompilationCommentTest() throws ApiException { @Test public void getAiDecompilationCommentsTest() throws ApiException { Integer functionId = null; - BaseResponseListCommentResponse response = api.getAiDecompilationComments(functionId); + String apiKey = null; + BaseResponseListCommentResponse response = api.getAiDecompilationComments(functionId, apiKey); // TODO: test validations } @@ -105,7 +109,8 @@ public void getAiDecompilationCommentsTest() throws ApiException { @Test public void getAiDecompilationRatingTest() throws ApiException { Long functionId = null; - BaseResponseGetAiDecompilationRatingResponse response = api.getAiDecompilationRating(functionId); + String apiKey = null; + BaseResponseGetAiDecompilationRatingResponse response = api.getAiDecompilationRating(functionId, apiKey); // TODO: test validations } @@ -121,7 +126,8 @@ public void getAiDecompilationTaskResultTest() throws ApiException { Long functionId = null; Boolean summarise = null; Boolean generateInlineComments = null; - BaseResponseGetAiDecompilationTask response = api.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments); + String apiKey = null; + BaseResponseGetAiDecompilationTask response = api.getAiDecompilationTaskResult(functionId, summarise, generateInlineComments, apiKey); // TODO: test validations } @@ -133,7 +139,8 @@ public void getAiDecompilationTaskResultTest() throws ApiException { @Test public void getAiDecompilationTaskStatusTest() throws ApiException { Long functionId = null; - BaseResponseFunctionTaskResponse response = api.getAiDecompilationTaskStatus(functionId); + String apiKey = null; + BaseResponseFunctionTaskResponse response = api.getAiDecompilationTaskStatus(functionId, apiKey); // TODO: test validations } @@ -149,7 +156,8 @@ public void updateAiDecompilationCommentTest() throws ApiException { Integer commentId = null; Integer functionId = null; CommentUpdateRequest commentUpdateRequest = null; - BaseResponseCommentResponse response = api.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest); + String apiKey = null; + BaseResponseCommentResponse response = api.updateAiDecompilationComment(commentId, functionId, commentUpdateRequest, apiKey); // TODO: test validations } @@ -162,7 +170,8 @@ public void updateAiDecompilationCommentTest() throws ApiException { public void upsertAiDecompilationRatingTest() throws ApiException { Long functionId = null; UpsertAiDecomplationRatingRequest upsertAiDecomplationRatingRequest = null; - BaseResponse response = api.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest); + String apiKey = null; + BaseResponse response = api.upsertAiDecompilationRating(functionId, upsertAiDecomplationRatingRequest, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FunctionsBlockCommentsApiTest.java b/src/test/java/ai/reveng/api/FunctionsBlockCommentsApiTest.java index 278bf33..35f2bce 100644 --- a/src/test/java/ai/reveng/api/FunctionsBlockCommentsApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsBlockCommentsApiTest.java @@ -42,7 +42,8 @@ public class FunctionsBlockCommentsApiTest { public void generateBlockCommentsForBlockInFunctionTest() throws ApiException { Integer functionId = null; Block block = null; - BaseResponseBlockCommentsGenerationForFunctionResponse response = api.generateBlockCommentsForBlockInFunction(functionId, block); + String apiKey = null; + BaseResponseBlockCommentsGenerationForFunctionResponse response = api.generateBlockCommentsForBlockInFunction(functionId, block, apiKey); // TODO: test validations } @@ -54,7 +55,8 @@ public void generateBlockCommentsForBlockInFunctionTest() throws ApiException { @Test public void generateBlockCommentsForFunctionTest() throws ApiException { Integer functionId = null; - BaseResponseBlockCommentsGenerationForFunctionResponse response = api.generateBlockCommentsForFunction(functionId); + String apiKey = null; + BaseResponseBlockCommentsGenerationForFunctionResponse response = api.generateBlockCommentsForFunction(functionId, apiKey); // TODO: test validations } @@ -66,7 +68,8 @@ public void generateBlockCommentsForFunctionTest() throws ApiException { @Test public void generateOverviewCommentForFunctionTest() throws ApiException { Integer functionId = null; - BaseResponseBlockCommentsOverviewGenerationResponse response = api.generateOverviewCommentForFunction(functionId); + String apiKey = null; + BaseResponseBlockCommentsOverviewGenerationResponse response = api.generateOverviewCommentForFunction(functionId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FunctionsCoreApiTest.java b/src/test/java/ai/reveng/api/FunctionsCoreApiTest.java index 491a0d6..f0cde1b 100644 --- a/src/test/java/ai/reveng/api/FunctionsCoreApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsCoreApiTest.java @@ -53,7 +53,8 @@ public class FunctionsCoreApiTest { public void aiUnstripTest() throws ApiException { Integer analysisId = null; AiUnstripRequest aiUnstripRequest = null; - AutoUnstripResponse response = api.aiUnstrip(analysisId, aiUnstripRequest); + String apiKey = null; + AutoUnstripResponse response = api.aiUnstrip(analysisId, aiUnstripRequest, apiKey); // TODO: test validations } @@ -68,7 +69,8 @@ public void aiUnstripTest() throws ApiException { public void analysisFunctionMatchingTest() throws ApiException { Integer analysisId = null; AnalysisFunctionMatchingRequest analysisFunctionMatchingRequest = null; - FunctionMatchingBatchResponse response = api.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest); + String apiKey = null; + FunctionMatchingBatchResponse response = api.analysisFunctionMatching(analysisId, analysisFunctionMatchingRequest, apiKey); // TODO: test validations } @@ -83,7 +85,8 @@ public void analysisFunctionMatchingTest() throws ApiException { public void autoUnstripTest() throws ApiException { Integer analysisId = null; AutoUnstripRequest autoUnstripRequest = null; - AutoUnstripResponse response = api.autoUnstrip(analysisId, autoUnstripRequest); + String apiKey = null; + AutoUnstripResponse response = api.autoUnstrip(analysisId, autoUnstripRequest, apiKey); // TODO: test validations } @@ -97,7 +100,8 @@ public void autoUnstripTest() throws ApiException { @Test public void batchFunctionMatchingTest() throws ApiException { FunctionMatchingRequest functionMatchingRequest = null; - FunctionMatchingBatchResponse response = api.batchFunctionMatching(functionMatchingRequest); + String apiKey = null; + FunctionMatchingBatchResponse response = api.batchFunctionMatching(functionMatchingRequest, apiKey); // TODO: test validations } @@ -111,7 +115,8 @@ public void batchFunctionMatchingTest() throws ApiException { @Test public void cancelAiUnstripTest() throws ApiException { Integer analysisId = null; - AutoUnstripResponse response = api.cancelAiUnstrip(analysisId); + String apiKey = null; + AutoUnstripResponse response = api.cancelAiUnstrip(analysisId, apiKey); // TODO: test validations } @@ -125,7 +130,8 @@ public void cancelAiUnstripTest() throws ApiException { @Test public void cancelAutoUnstripTest() throws ApiException { Integer analysisId = null; - AutoUnstripResponse response = api.cancelAutoUnstrip(analysisId); + String apiKey = null; + AutoUnstripResponse response = api.cancelAutoUnstrip(analysisId, apiKey); // TODO: test validations } @@ -143,7 +149,8 @@ public void getAnalysisStringsTest() throws ApiException { Integer pageSize = null; String search = null; String functionSearch = null; - BaseResponseAnalysisStringsResponse response = api.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch); + String apiKey = null; + BaseResponseAnalysisStringsResponse response = api.getAnalysisStrings(analysisId, page, pageSize, search, functionSearch, apiKey); // TODO: test validations } @@ -157,7 +164,8 @@ public void getAnalysisStringsTest() throws ApiException { @Test public void getFunctionBlocksTest() throws ApiException { Integer functionId = null; - BaseResponseFunctionBlocksResponse response = api.getFunctionBlocks(functionId); + String apiKey = null; + BaseResponseFunctionBlocksResponse response = api.getFunctionBlocks(functionId, apiKey); // TODO: test validations } @@ -169,7 +177,8 @@ public void getFunctionBlocksTest() throws ApiException { @Test public void getFunctionCalleesCallersTest() throws ApiException { Integer functionId = null; - BaseResponseCalleesCallerFunctionsResponse response = api.getFunctionCalleesCallers(functionId); + String apiKey = null; + BaseResponseCalleesCallerFunctionsResponse response = api.getFunctionCalleesCallers(functionId, apiKey); // TODO: test validations } @@ -181,7 +190,8 @@ public void getFunctionCalleesCallersTest() throws ApiException { @Test public void getFunctionCapabilitiesTest() throws ApiException { Integer functionId = null; - BaseResponseFunctionCapabilityResponse response = api.getFunctionCapabilities(functionId); + String apiKey = null; + BaseResponseFunctionCapabilityResponse response = api.getFunctionCapabilities(functionId, apiKey); // TODO: test validations } @@ -193,7 +203,8 @@ public void getFunctionCapabilitiesTest() throws ApiException { @Test public void getFunctionDetailsTest() throws ApiException { Integer functionId = null; - BaseResponseFunctionsDetailResponse response = api.getFunctionDetails(functionId); + String apiKey = null; + BaseResponseFunctionsDetailResponse response = api.getFunctionDetails(functionId, apiKey); // TODO: test validations } @@ -210,7 +221,8 @@ public void getFunctionStringsTest() throws ApiException { Integer page = null; Integer pageSize = null; String search = null; - BaseResponseFunctionStringsResponse response = api.getFunctionStrings(functionId, page, pageSize, search); + String apiKey = null; + BaseResponseFunctionStringsResponse response = api.getFunctionStrings(functionId, page, pageSize, search, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FunctionsDataTypesApiTest.java b/src/test/java/ai/reveng/api/FunctionsDataTypesApiTest.java index 7126334..76583f6 100644 --- a/src/test/java/ai/reveng/api/FunctionsDataTypesApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsDataTypesApiTest.java @@ -47,7 +47,8 @@ public class FunctionsDataTypesApiTest { public void generateFunctionDataTypesForAnalysisTest() throws ApiException { Integer analysisId = null; FunctionDataTypesParams functionDataTypesParams = null; - BaseResponseGenerateFunctionDataTypes response = api.generateFunctionDataTypesForAnalysis(analysisId, functionDataTypesParams); + String apiKey = null; + BaseResponseGenerateFunctionDataTypes response = api.generateFunctionDataTypesForAnalysis(analysisId, functionDataTypesParams, apiKey); // TODO: test validations } @@ -61,7 +62,8 @@ public void generateFunctionDataTypesForAnalysisTest() throws ApiException { @Test public void generateFunctionDataTypesForFunctionsTest() throws ApiException { FunctionDataTypesParams functionDataTypesParams = null; - BaseResponseGenerationStatusList response = api.generateFunctionDataTypesForFunctions(functionDataTypesParams); + String apiKey = null; + BaseResponseGenerationStatusList response = api.generateFunctionDataTypesForFunctions(functionDataTypesParams, apiKey); // TODO: test validations } @@ -76,7 +78,8 @@ public void generateFunctionDataTypesForFunctionsTest() throws ApiException { public void getFunctionDataTypesTest() throws ApiException { Integer analysisId = null; Integer functionId = null; - BaseResponseFunctionDataTypes response = api.getFunctionDataTypes(analysisId, functionId); + String apiKey = null; + BaseResponseFunctionDataTypes response = api.getFunctionDataTypes(analysisId, functionId, apiKey); // TODO: test validations } @@ -91,7 +94,8 @@ public void getFunctionDataTypesTest() throws ApiException { public void listFunctionDataTypesForAnalysisTest() throws ApiException { Integer analysisId = null; List functionIds = null; - BaseResponseFunctionDataTypesList response = api.listFunctionDataTypesForAnalysis(analysisId, functionIds); + String apiKey = null; + BaseResponseFunctionDataTypesList response = api.listFunctionDataTypesForAnalysis(analysisId, functionIds, apiKey); // TODO: test validations } @@ -105,7 +109,8 @@ public void listFunctionDataTypesForAnalysisTest() throws ApiException { @Test public void listFunctionDataTypesForFunctionsTest() throws ApiException { List functionIds = null; - BaseResponseFunctionDataTypesList response = api.listFunctionDataTypesForFunctions(functionIds); + String apiKey = null; + BaseResponseFunctionDataTypesList response = api.listFunctionDataTypesForFunctions(functionIds, apiKey); // TODO: test validations } @@ -121,7 +126,8 @@ public void updateFunctionDataTypesTest() throws ApiException { Integer analysisId = null; Integer functionId = null; UpdateFunctionDataTypes updateFunctionDataTypes = null; - BaseResponseFunctionDataTypes response = api.updateFunctionDataTypes(analysisId, functionId, updateFunctionDataTypes); + String apiKey = null; + BaseResponseFunctionDataTypes response = api.updateFunctionDataTypes(analysisId, functionId, updateFunctionDataTypes, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FunctionsDecompilationApiTest.java b/src/test/java/ai/reveng/api/FunctionsDecompilationApiTest.java index e61c1fb..473e578 100644 --- a/src/test/java/ai/reveng/api/FunctionsDecompilationApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsDecompilationApiTest.java @@ -46,7 +46,8 @@ public class FunctionsDecompilationApiTest { public void createDecompilationCommentTest() throws ApiException { Integer functionId = null; FunctionCommentCreateRequest functionCommentCreateRequest = null; - BaseResponseCommentResponse response = api.createDecompilationComment(functionId, functionCommentCreateRequest); + String apiKey = null; + BaseResponseCommentResponse response = api.createDecompilationComment(functionId, functionCommentCreateRequest, apiKey); // TODO: test validations } @@ -61,7 +62,8 @@ public void createDecompilationCommentTest() throws ApiException { public void deleteDecompilationCommentTest() throws ApiException { Integer commentId = null; Integer functionId = null; - BaseResponseBool response = api.deleteDecompilationComment(commentId, functionId); + String apiKey = null; + BaseResponseBool response = api.deleteDecompilationComment(commentId, functionId, apiKey); // TODO: test validations } @@ -75,7 +77,8 @@ public void deleteDecompilationCommentTest() throws ApiException { @Test public void getDecompilationCommentsTest() throws ApiException { Integer functionId = null; - BaseResponseListCommentResponse response = api.getDecompilationComments(functionId); + String apiKey = null; + BaseResponseListCommentResponse response = api.getDecompilationComments(functionId, apiKey); // TODO: test validations } @@ -91,7 +94,8 @@ public void updateDecompilationCommentTest() throws ApiException { Integer commentId = null; Integer functionId = null; CommentUpdateRequest commentUpdateRequest = null; - BaseResponseCommentResponse response = api.updateDecompilationComment(commentId, functionId, commentUpdateRequest); + String apiKey = null; + BaseResponseCommentResponse response = api.updateDecompilationComment(commentId, functionId, commentUpdateRequest, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/FunctionsRenamingHistoryApiTest.java b/src/test/java/ai/reveng/api/FunctionsRenamingHistoryApiTest.java index 2284c0a..1e4a3d3 100644 --- a/src/test/java/ai/reveng/api/FunctionsRenamingHistoryApiTest.java +++ b/src/test/java/ai/reveng/api/FunctionsRenamingHistoryApiTest.java @@ -43,7 +43,8 @@ public class FunctionsRenamingHistoryApiTest { @Test public void batchRenameFunctionTest() throws ApiException { FunctionsListRename functionsListRename = null; - BaseResponse response = api.batchRenameFunction(functionsListRename); + String apiKey = null; + BaseResponse response = api.batchRenameFunction(functionsListRename, apiKey); // TODO: test validations } @@ -57,7 +58,8 @@ public void batchRenameFunctionTest() throws ApiException { @Test public void getFunctionNameHistoryTest() throws ApiException { Integer functionId = null; - BaseResponseListFunctionNameHistory response = api.getFunctionNameHistory(functionId); + String apiKey = null; + BaseResponseListFunctionNameHistory response = api.getFunctionNameHistory(functionId, apiKey); // TODO: test validations } @@ -72,7 +74,8 @@ public void getFunctionNameHistoryTest() throws ApiException { public void renameFunctionIdTest() throws ApiException { Integer functionId = null; FunctionRename functionRename = null; - BaseResponse response = api.renameFunctionId(functionId, functionRename); + String apiKey = null; + BaseResponse response = api.renameFunctionId(functionId, functionRename, apiKey); // TODO: test validations } @@ -87,7 +90,8 @@ public void renameFunctionIdTest() throws ApiException { public void revertFunctionNameTest() throws ApiException { Integer functionId = null; Integer historyId = null; - BaseResponse response = api.revertFunctionName(functionId, historyId); + String apiKey = null; + BaseResponse response = api.revertFunctionName(functionId, historyId, apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/ModelsApiTest.java b/src/test/java/ai/reveng/api/ModelsApiTest.java index 15f772e..8f8907f 100644 --- a/src/test/java/ai/reveng/api/ModelsApiTest.java +++ b/src/test/java/ai/reveng/api/ModelsApiTest.java @@ -40,7 +40,8 @@ public class ModelsApiTest { */ @Test public void getModelsTest() throws ApiException { - BaseResponseModelsResponse response = api.getModels(); + String apiKey = null; + BaseResponseModelsResponse response = api.getModels(apiKey); // TODO: test validations } diff --git a/src/test/java/ai/reveng/api/SearchApiTest.java b/src/test/java/ai/reveng/api/SearchApiTest.java index ac63d77..125fed9 100644 --- a/src/test/java/ai/reveng/api/SearchApiTest.java +++ b/src/test/java/ai/reveng/api/SearchApiTest.java @@ -53,7 +53,8 @@ public void searchBinariesTest() throws ApiException { List tags = null; String modelName = null; Boolean userFilesOnly = null; - BaseResponseBinarySearchResponse response = api.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly); + String apiKey = null; + BaseResponseBinarySearchResponse response = api.searchBinaries(page, pageSize, partialName, partialSha256, tags, modelName, userFilesOnly, apiKey); // TODO: test validations } @@ -76,7 +77,8 @@ public void searchCollectionsTest() throws ApiException { List filters = null; AppApiRestV2CollectionsEnumsOrderBy orderBy = null; Order orderByDirection = null; - BaseResponseCollectionSearchResponse response = api.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection); + String apiKey = null; + BaseResponseCollectionSearchResponse response = api.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection, apiKey); // TODO: test validations } @@ -93,7 +95,8 @@ public void searchFunctionsTest() throws ApiException { Integer pageSize = null; String partialName = null; String modelName = null; - BaseResponseFunctionSearchResponse response = api.searchFunctions(page, pageSize, partialName, modelName); + String apiKey = null; + BaseResponseFunctionSearchResponse response = api.searchFunctions(page, pageSize, partialName, modelName, apiKey); // TODO: test validations }